@dialob/composer-material 0.0.2
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/LICENSE +202 -0
- package/README.md +104 -0
- package/dist-lib/index.d.ts +615 -0
- package/dist-lib/index.js +42356 -0
- package/dist-lib/vite.svg +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
|
+
import { LabelField } from '../items/ItemComponents';
|
|
4
|
+
import { LanguageEditor } from '../components/translations/LanguageEditor';
|
|
5
|
+
import { default as NavigationTreeItem } from '../components/tree/NavigationTreeItem';
|
|
6
|
+
import { SvgIconProps } from '@mui/material';
|
|
7
|
+
import { TreeDraggableProvided } from '@atlaskit/tree/dist/types/components/TreeItem/TreeItem-types';
|
|
8
|
+
import { TreeItem } from '@atlaskit/tree';
|
|
9
|
+
import { VisibilityField } from '../items/ItemComponents';
|
|
10
|
+
|
|
11
|
+
declare interface ApiResponse {
|
|
12
|
+
success: boolean;
|
|
13
|
+
result?: SaveResult | DuplicateResult | CreateTagResult | ChangeIdResult | CreateSessionResult;
|
|
14
|
+
apiError?: any;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare interface AppConfig {
|
|
18
|
+
formId: string;
|
|
19
|
+
csrfHeader: string;
|
|
20
|
+
csrf: string;
|
|
21
|
+
backend_api_url: string;
|
|
22
|
+
filling_app_url: string;
|
|
23
|
+
adminAppUrl: string;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
credentialMode: RequestCredentials;
|
|
26
|
+
version: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare interface BackendState {
|
|
30
|
+
formId: string;
|
|
31
|
+
loaded: boolean;
|
|
32
|
+
form: ComposerState | null;
|
|
33
|
+
config: DialobComposerConfig;
|
|
34
|
+
loadForm(formId: string, tagName?: string): Promise<ComposerState>;
|
|
35
|
+
saveForm(form: ComposerState, dryRun?: boolean): Promise<ApiResponse>;
|
|
36
|
+
createForm(form: ComposerState): Promise<ApiResponse>;
|
|
37
|
+
duplicateItem(form: ComposerState, itemId: string): Promise<ApiResponse>;
|
|
38
|
+
createTag(request: CreateTagRequest): Promise<ApiResponse>;
|
|
39
|
+
getTags(formName: string): Promise<ComposerTag[]>;
|
|
40
|
+
changeItemId(form: ComposerState, oldId: string, newId: string): Promise<ApiResponse>;
|
|
41
|
+
createPreviewSession(formId: string, language: string, context?: PreviewSessionContext): Promise<ApiResponse>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare namespace BackendTypes {
|
|
45
|
+
export {
|
|
46
|
+
SaveResult,
|
|
47
|
+
DuplicateResult,
|
|
48
|
+
ChangeIdResult,
|
|
49
|
+
CreateTagResult,
|
|
50
|
+
CreateSessionResult,
|
|
51
|
+
ApiResponse,
|
|
52
|
+
CreateTagRequest,
|
|
53
|
+
PreviewSessionContext,
|
|
54
|
+
PreviewSessionData,
|
|
55
|
+
TransportConfig,
|
|
56
|
+
DialobComposerConfig,
|
|
57
|
+
AppConfig,
|
|
58
|
+
BackendState
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export { BackendTypes }
|
|
62
|
+
|
|
63
|
+
declare const BoolProp: (props: any) => JSX_2.Element;
|
|
64
|
+
|
|
65
|
+
declare interface CategoryItem {
|
|
66
|
+
title: string;
|
|
67
|
+
optionEditors?: OptionEditor[];
|
|
68
|
+
propEditors?: PropEditorsType;
|
|
69
|
+
convertible?: DialobItemType[];
|
|
70
|
+
config: DialobItemTemplate;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare interface ChangeIdResult {
|
|
74
|
+
ok: boolean;
|
|
75
|
+
id: string;
|
|
76
|
+
rev: string;
|
|
77
|
+
form: ComposerState;
|
|
78
|
+
errors: EditorError[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare const ChoiceDeleteDialog: default_2.FC<{
|
|
82
|
+
open: boolean;
|
|
83
|
+
itemId: string;
|
|
84
|
+
onClick: () => void;
|
|
85
|
+
onClose: () => void;
|
|
86
|
+
}>;
|
|
87
|
+
|
|
88
|
+
export declare const ChoiceEditor: default_2.FC;
|
|
89
|
+
|
|
90
|
+
export declare const ChoiceItem: default_2.FC<ChoiceItemProps>;
|
|
91
|
+
|
|
92
|
+
declare interface ChoiceItemProps {
|
|
93
|
+
item: TreeItem;
|
|
94
|
+
valueSetId?: string;
|
|
95
|
+
provided: TreeDraggableProvided;
|
|
96
|
+
isGlobal?: boolean;
|
|
97
|
+
expanded: string[];
|
|
98
|
+
onToggleExpand: (id: string) => void;
|
|
99
|
+
onRuleEdit: (entry: ValueSetEntry, rule: string) => void;
|
|
100
|
+
onTextEdit: (entry: ValueSetEntry, label: LocalizedString) => void;
|
|
101
|
+
onDelete: (entry: ValueSetEntry) => void;
|
|
102
|
+
onUpdateId: (entry: ValueSetEntry, id: string) => void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export declare const ChoiceList: default_2.FC<{
|
|
106
|
+
valueSet?: ValueSet;
|
|
107
|
+
updateValueSet: (value: default_2.SetStateAction<ValueSet | undefined>) => void;
|
|
108
|
+
isGlobal?: boolean;
|
|
109
|
+
}>;
|
|
110
|
+
|
|
111
|
+
declare const ChoiceProp: (props: any) => JSX_2.Element;
|
|
112
|
+
|
|
113
|
+
declare type ComposerCallbacks = {
|
|
114
|
+
onAddItem?: (state: ComposerState, item: DialobItem) => void;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare type ComposerState = {
|
|
118
|
+
_id?: string;
|
|
119
|
+
_rev?: string;
|
|
120
|
+
_tag?: string;
|
|
121
|
+
name: string;
|
|
122
|
+
data: {
|
|
123
|
+
[item: string]: DialobItem;
|
|
124
|
+
};
|
|
125
|
+
variables?: (Variable | ContextVariable)[];
|
|
126
|
+
valueSets?: ValueSet[];
|
|
127
|
+
metadata: {
|
|
128
|
+
label?: string;
|
|
129
|
+
labels?: string[];
|
|
130
|
+
showDisabled?: boolean;
|
|
131
|
+
questionClientVisibility?: VisibilityType;
|
|
132
|
+
answersRequiredByDefault?: boolean;
|
|
133
|
+
creator?: string;
|
|
134
|
+
tenantId?: string;
|
|
135
|
+
savedBy?: string;
|
|
136
|
+
languages?: string[];
|
|
137
|
+
valid?: boolean;
|
|
138
|
+
created?: string;
|
|
139
|
+
lastSaved?: string;
|
|
140
|
+
composer?: {
|
|
141
|
+
globalValueSets?: {
|
|
142
|
+
label?: string;
|
|
143
|
+
valueSetId: string;
|
|
144
|
+
}[];
|
|
145
|
+
contextValues?: {
|
|
146
|
+
[name: string]: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
[prop: string]: any;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
declare type ComposerTag = {
|
|
154
|
+
name: string;
|
|
155
|
+
formName: string;
|
|
156
|
+
formId?: string;
|
|
157
|
+
description?: string;
|
|
158
|
+
created?: string;
|
|
159
|
+
type: 'NORMAL' | 'MUTABLE';
|
|
160
|
+
creator?: string;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare interface ConfigItemProps {
|
|
164
|
+
icon: React.ComponentType<SvgIconProps>;
|
|
165
|
+
placeholder: string;
|
|
166
|
+
treeCollapsible?: boolean;
|
|
167
|
+
style?: 'normal' | 'success' | 'info' | 'warning' | 'error';
|
|
168
|
+
[key: string]: any;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare const ConfirmationDialog: default_2.FC;
|
|
172
|
+
|
|
173
|
+
declare type ContextVariable = {
|
|
174
|
+
name: string;
|
|
175
|
+
published?: boolean;
|
|
176
|
+
defaultValue?: any;
|
|
177
|
+
context: boolean;
|
|
178
|
+
contextType: ContextVariableType | string;
|
|
179
|
+
description?: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export declare const ContextVariableRow: default_2.FC<VariableProps>;
|
|
183
|
+
|
|
184
|
+
export declare const ContextVariables: default_2.FC<{
|
|
185
|
+
onClose: () => void;
|
|
186
|
+
}>;
|
|
187
|
+
|
|
188
|
+
declare type ContextVariableType = 'text' | 'number' | 'decimal' | 'boolean' | 'date' | 'time';
|
|
189
|
+
|
|
190
|
+
export declare const ConvertConfirmationDialog: default_2.FC<{
|
|
191
|
+
type: 'local' | 'global' | undefined;
|
|
192
|
+
onClick: () => void;
|
|
193
|
+
onClose: () => void;
|
|
194
|
+
}>;
|
|
195
|
+
|
|
196
|
+
declare interface CreateSessionResult {
|
|
197
|
+
_id: string;
|
|
198
|
+
_rev: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export declare const CreateTagDialog: default_2.FC<{
|
|
202
|
+
open: boolean;
|
|
203
|
+
onClose: () => void;
|
|
204
|
+
}>;
|
|
205
|
+
|
|
206
|
+
declare interface CreateTagRequest {
|
|
207
|
+
name: string;
|
|
208
|
+
description: string;
|
|
209
|
+
formName: string;
|
|
210
|
+
formId?: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare interface CreateTagResult {
|
|
214
|
+
ok: boolean;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export declare const DEFAULT_ITEM_CONFIG: ItemConfig;
|
|
218
|
+
|
|
219
|
+
export declare const DEFAULT_ITEMTYPE_CONFIG: ItemTypeConfig;
|
|
220
|
+
|
|
221
|
+
export declare const DEFAULT_VALUESET_PROPS: ValueSetProp[];
|
|
222
|
+
|
|
223
|
+
declare namespace DefaultTypes {
|
|
224
|
+
export {
|
|
225
|
+
ItemConfig,
|
|
226
|
+
ItemConfigItem,
|
|
227
|
+
ConfigItemProps,
|
|
228
|
+
ItemTypeConfig,
|
|
229
|
+
ItemTypeCategory,
|
|
230
|
+
CategoryItem,
|
|
231
|
+
OptionEditor,
|
|
232
|
+
PropEditorsType
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export { DefaultTypes }
|
|
236
|
+
|
|
237
|
+
export declare const DefaultValueEditor: default_2.FC;
|
|
238
|
+
|
|
239
|
+
export declare const DescriptionEditor: default_2.FC;
|
|
240
|
+
|
|
241
|
+
declare type DialobCategoryType = 'structure' | 'input' | 'output';
|
|
242
|
+
|
|
243
|
+
export declare const DialobComposer: React.FC<{
|
|
244
|
+
config: DialobComposerConfig;
|
|
245
|
+
formId: string;
|
|
246
|
+
}>;
|
|
247
|
+
|
|
248
|
+
declare interface DialobComposerConfig {
|
|
249
|
+
transport: TransportConfig;
|
|
250
|
+
documentationUrl?: string;
|
|
251
|
+
itemEditors?: ItemConfig;
|
|
252
|
+
itemTypes?: ItemTypeConfig;
|
|
253
|
+
backendVersion: string;
|
|
254
|
+
closeHandler: () => void;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare type DialobItem = DialobItemTemplate & {
|
|
258
|
+
id: string;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
declare type DialobItems = {
|
|
262
|
+
[key: string]: DialobItem;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
declare type DialobItemTemplate = {
|
|
266
|
+
type: DialobItemType | string;
|
|
267
|
+
view?: string;
|
|
268
|
+
label?: LocalizedString;
|
|
269
|
+
description?: LocalizedString;
|
|
270
|
+
required?: string;
|
|
271
|
+
valueSetId?: string;
|
|
272
|
+
activeWhen?: string;
|
|
273
|
+
canAddRowWhen?: string;
|
|
274
|
+
canRemoveRowWhen?: string;
|
|
275
|
+
items?: string[];
|
|
276
|
+
className?: string[];
|
|
277
|
+
props?: {
|
|
278
|
+
[prop: string]: any;
|
|
279
|
+
};
|
|
280
|
+
validations?: ValidationRule[];
|
|
281
|
+
[prop: string]: any;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
declare type DialobItemType = 'questionnaire' | 'group' | 'text' | 'number' | 'boolean' | 'multichoice' | 'survey' | 'surveygroup' | 'list' | 'note' | 'date' | 'time' | 'decimal' | 'row' | 'rowgroup' | 'verticalSurveygroup' | 'address' | 'textBox' | 'page';
|
|
285
|
+
|
|
286
|
+
declare namespace DialobTypes {
|
|
287
|
+
export {
|
|
288
|
+
LocalizedString,
|
|
289
|
+
Variable,
|
|
290
|
+
ContextVariableType,
|
|
291
|
+
ContextVariable,
|
|
292
|
+
ValueSetEntry,
|
|
293
|
+
ValueSet,
|
|
294
|
+
DialobItemType,
|
|
295
|
+
DialobCategoryType,
|
|
296
|
+
ValidationRule,
|
|
297
|
+
DialobItemTemplate,
|
|
298
|
+
DialobItem,
|
|
299
|
+
DialobItems,
|
|
300
|
+
VisibilityType,
|
|
301
|
+
ComposerTag,
|
|
302
|
+
ComposerState,
|
|
303
|
+
INIT_STATE,
|
|
304
|
+
ComposerCallbacks
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
export { DialobTypes }
|
|
308
|
+
|
|
309
|
+
declare interface DuplicateResult {
|
|
310
|
+
ok: boolean;
|
|
311
|
+
id: string;
|
|
312
|
+
rev: string;
|
|
313
|
+
form: ComposerState;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export declare const Editor: default_2.FC;
|
|
317
|
+
|
|
318
|
+
declare type EditorError = {
|
|
319
|
+
level: ErrorSeverity;
|
|
320
|
+
message: string;
|
|
321
|
+
type?: string;
|
|
322
|
+
itemId?: string;
|
|
323
|
+
expression?: string;
|
|
324
|
+
startIndex?: number;
|
|
325
|
+
endIndex?: number;
|
|
326
|
+
index?: number;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
declare type ErrorSeverity = 'ERROR' | 'WARNING' | 'INFO' | 'FATAL';
|
|
330
|
+
|
|
331
|
+
export declare const ExpressionVariableRow: default_2.FC<VariableProps>;
|
|
332
|
+
|
|
333
|
+
export declare const ExpressionVariables: default_2.FC<{
|
|
334
|
+
onClose: () => void;
|
|
335
|
+
}>;
|
|
336
|
+
|
|
337
|
+
export declare const FormOptionsDialog: default_2.FC<{
|
|
338
|
+
open: boolean;
|
|
339
|
+
onClose: () => void;
|
|
340
|
+
}>;
|
|
341
|
+
|
|
342
|
+
export declare const GlobalList: default_2.FC<{
|
|
343
|
+
entries?: ValueSetEntry[];
|
|
344
|
+
}>;
|
|
345
|
+
|
|
346
|
+
export declare const GlobalListsDialog: default_2.FC<{
|
|
347
|
+
open: boolean;
|
|
348
|
+
onClose: () => void;
|
|
349
|
+
}>;
|
|
350
|
+
|
|
351
|
+
export declare const Group: default_2.FC<{
|
|
352
|
+
item: DialobItem;
|
|
353
|
+
} & Record<string, any>>;
|
|
354
|
+
|
|
355
|
+
declare interface IndexedRule {
|
|
356
|
+
index: number;
|
|
357
|
+
validationRule: ValidationRule;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
declare const INIT_STATE: ComposerState;
|
|
361
|
+
|
|
362
|
+
declare const InputProp: (props: any) => JSX_2.Element;
|
|
363
|
+
|
|
364
|
+
declare interface ItemConfig {
|
|
365
|
+
defaultIcon: React.ComponentType<SvgIconProps>;
|
|
366
|
+
items: ItemConfigItem[];
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
declare interface ItemConfigItem {
|
|
370
|
+
matcher: (item: DialobItem) => boolean;
|
|
371
|
+
component: React.FC<{
|
|
372
|
+
item: DialobItem;
|
|
373
|
+
} & Record<string, any>>;
|
|
374
|
+
props: ConfigItemProps;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export declare const itemFactory: (item: DialobItem, itemConfig?: ItemConfig, props?: any) => JSX_2.Element | null;
|
|
378
|
+
|
|
379
|
+
export declare const ItemOptionsDialog: default_2.FC;
|
|
380
|
+
|
|
381
|
+
declare interface ItemProp {
|
|
382
|
+
key: string;
|
|
383
|
+
value: PropValue;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
declare interface ItemTypeCategory {
|
|
387
|
+
title: string;
|
|
388
|
+
type: DialobCategoryType;
|
|
389
|
+
items: CategoryItem[];
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare interface ItemTypeConfig {
|
|
393
|
+
categories: ItemTypeCategory[];
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export declare const LabelEditor: default_2.FC;
|
|
397
|
+
|
|
398
|
+
export { LabelField }
|
|
399
|
+
|
|
400
|
+
export { LanguageEditor }
|
|
401
|
+
|
|
402
|
+
declare type LocalizedString = {
|
|
403
|
+
[language: string]: string;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
export declare const LocalizedStringEditor: default_2.FC<{
|
|
407
|
+
type: 'label' | 'description' | 'validations';
|
|
408
|
+
rule?: IndexedRule;
|
|
409
|
+
setRule?: default_2.Dispatch<default_2.SetStateAction<IndexedRule | undefined>>;
|
|
410
|
+
}>;
|
|
411
|
+
|
|
412
|
+
export declare const MissingTranslations: default_2.FC;
|
|
413
|
+
|
|
414
|
+
declare const MultiChoiceProp: (props: any) => JSX_2.Element;
|
|
415
|
+
|
|
416
|
+
export { NavigationTreeItem }
|
|
417
|
+
|
|
418
|
+
export declare const NavigationTreeView: default_2.FC;
|
|
419
|
+
|
|
420
|
+
export declare const Note: default_2.FC<{
|
|
421
|
+
item: DialobItem;
|
|
422
|
+
} & Record<string, any>>;
|
|
423
|
+
|
|
424
|
+
declare interface OptionEditor {
|
|
425
|
+
name: string;
|
|
426
|
+
editor: React.FC;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export declare const PageTabs: default_2.FC<{
|
|
430
|
+
items: DialobItems;
|
|
431
|
+
}>;
|
|
432
|
+
|
|
433
|
+
export declare const PreviewDialog: default_2.FC<{
|
|
434
|
+
open: boolean;
|
|
435
|
+
onClose: () => void;
|
|
436
|
+
}>;
|
|
437
|
+
|
|
438
|
+
declare type PreviewSessionContext = {
|
|
439
|
+
id: string;
|
|
440
|
+
value: any;
|
|
441
|
+
}[];
|
|
442
|
+
|
|
443
|
+
declare interface PreviewSessionData {
|
|
444
|
+
metadata: {
|
|
445
|
+
formId: string;
|
|
446
|
+
formRev: string;
|
|
447
|
+
language: string;
|
|
448
|
+
};
|
|
449
|
+
context?: PreviewSessionContext;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare namespace PropEditors {
|
|
453
|
+
export {
|
|
454
|
+
InputProp,
|
|
455
|
+
MultiChoiceProp,
|
|
456
|
+
ChoiceProp,
|
|
457
|
+
BoolProp
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
export { PropEditors }
|
|
461
|
+
|
|
462
|
+
declare interface PropEditorsType {
|
|
463
|
+
[key: string]: {
|
|
464
|
+
component: any;
|
|
465
|
+
props?: any;
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export declare const PropertiesEditor: default_2.FC;
|
|
470
|
+
|
|
471
|
+
export declare const PropItem: default_2.FC<{
|
|
472
|
+
prop: ItemProp;
|
|
473
|
+
propEditor: {
|
|
474
|
+
component: any;
|
|
475
|
+
props?: any;
|
|
476
|
+
} | undefined;
|
|
477
|
+
onEdit: (key: string, value: PropValue) => void;
|
|
478
|
+
onDelete: (key: string) => void;
|
|
479
|
+
}>;
|
|
480
|
+
|
|
481
|
+
declare type PropValue = string | string[] | boolean;
|
|
482
|
+
|
|
483
|
+
export declare const RuleEditor: default_2.FC<{
|
|
484
|
+
type: RuleType;
|
|
485
|
+
}>;
|
|
486
|
+
|
|
487
|
+
export declare const RulesEditor: default_2.FC;
|
|
488
|
+
|
|
489
|
+
declare type RuleType = 'visibility' | 'requirement' | 'canaddrow' | 'canremoverow';
|
|
490
|
+
|
|
491
|
+
declare interface SaveResult {
|
|
492
|
+
ok: boolean;
|
|
493
|
+
id: string;
|
|
494
|
+
rev: string;
|
|
495
|
+
errors: EditorError[];
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export declare const SimpleField: default_2.FC<{
|
|
499
|
+
item: DialobItem;
|
|
500
|
+
} & Record<string, any>>;
|
|
501
|
+
|
|
502
|
+
export declare const TranslationDialog: default_2.FC<{
|
|
503
|
+
open: boolean;
|
|
504
|
+
onClose: () => void;
|
|
505
|
+
}>;
|
|
506
|
+
|
|
507
|
+
export declare const TranslationFileEditor: default_2.FC;
|
|
508
|
+
|
|
509
|
+
declare interface TransportConfig {
|
|
510
|
+
csrf?: {
|
|
511
|
+
headerName: string;
|
|
512
|
+
token: string;
|
|
513
|
+
};
|
|
514
|
+
apiUrl: string;
|
|
515
|
+
previewUrl: string;
|
|
516
|
+
tenantId?: string;
|
|
517
|
+
credentialMode?: RequestCredentials;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export declare const UploadValuesetDialog: default_2.FC<{
|
|
521
|
+
open: boolean;
|
|
522
|
+
onClose: () => void;
|
|
523
|
+
currentValueSet: ValueSet | undefined;
|
|
524
|
+
setCurrentValueSet: default_2.Dispatch<default_2.SetStateAction<ValueSet | undefined>>;
|
|
525
|
+
}>;
|
|
526
|
+
|
|
527
|
+
declare type ValidationRule = {
|
|
528
|
+
message?: LocalizedString;
|
|
529
|
+
rule?: string;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
export declare const ValidationRuleEditor: default_2.FC;
|
|
533
|
+
|
|
534
|
+
declare type ValueSet = {
|
|
535
|
+
id: string;
|
|
536
|
+
entries?: ValueSetEntry[];
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
declare type ValueSetEntry = {
|
|
540
|
+
id: string;
|
|
541
|
+
label: LocalizedString;
|
|
542
|
+
when?: string;
|
|
543
|
+
[prop: string]: any;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
declare interface ValueSetProp {
|
|
547
|
+
title: string;
|
|
548
|
+
name: string;
|
|
549
|
+
editor: React.FC;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
declare type Variable = {
|
|
553
|
+
name: string;
|
|
554
|
+
published?: boolean;
|
|
555
|
+
expression: string;
|
|
556
|
+
description?: string;
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
declare interface VariableProps {
|
|
560
|
+
item: TreeItem;
|
|
561
|
+
provided: TreeDraggableProvided;
|
|
562
|
+
onClose: () => void;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export declare const VariablesDialog: default_2.FC<{
|
|
566
|
+
open: boolean;
|
|
567
|
+
onClose: () => void;
|
|
568
|
+
}>;
|
|
569
|
+
|
|
570
|
+
export declare const VersioningDialog: default_2.FC<{
|
|
571
|
+
open: boolean;
|
|
572
|
+
onClose: () => void;
|
|
573
|
+
}>;
|
|
574
|
+
|
|
575
|
+
export { VisibilityField }
|
|
576
|
+
|
|
577
|
+
declare type VisibilityType = 'ONLY_ENABLED' | 'SHOW_DISABLED' | 'ALL';
|
|
578
|
+
|
|
579
|
+
export { }
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
declare module '@mui/material/styles' {
|
|
583
|
+
interface Palette {
|
|
584
|
+
article: Palette['primary'];
|
|
585
|
+
page: Palette['primary'];
|
|
586
|
+
link: Palette['primary'];
|
|
587
|
+
workflow: Palette['primary'];
|
|
588
|
+
release: Palette['primary'];
|
|
589
|
+
locale: Palette['primary'];
|
|
590
|
+
import: Palette['primary'];
|
|
591
|
+
activeItem: Palette['primary'];
|
|
592
|
+
save: Palette['primary'];
|
|
593
|
+
explorer: Palette['primary'];
|
|
594
|
+
explorerItem: Palette['primary'];
|
|
595
|
+
mainContent: Palette['primary'];
|
|
596
|
+
uiElements: Palette['primary'];
|
|
597
|
+
table: Palette['primary'];
|
|
598
|
+
}
|
|
599
|
+
interface PaletteOptions {
|
|
600
|
+
article: Palette['primary'];
|
|
601
|
+
page: Palette['primary'];
|
|
602
|
+
link: Palette['primary'];
|
|
603
|
+
workflow: Palette['primary'];
|
|
604
|
+
release: Palette['primary'];
|
|
605
|
+
locale: Palette['primary'];
|
|
606
|
+
import: Palette['primary'];
|
|
607
|
+
activeItem: Palette['primary'];
|
|
608
|
+
save: Palette['primary'];
|
|
609
|
+
explorer: Palette['primary'];
|
|
610
|
+
explorerItem: Palette['primary'];
|
|
611
|
+
mainContent: Palette['primary'];
|
|
612
|
+
uiElements: Palette['primary'];
|
|
613
|
+
table: Palette['primary'];
|
|
614
|
+
}
|
|
615
|
+
}
|