@devtable/dashboard 10.45.0 → 10.46.0
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/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +24 -28
- package/dist/components/plugins/plugin-context.d.ts +24 -28
- package/dist/contexts/panel-context.d.ts +48 -56
- package/dist/dashboard-editor/model/filters/index.d.ts +2 -2
- package/dist/dashboard-editor/model/panels/panel.d.ts +12 -14
- package/dist/dashboard-editor/model/views/index.d.ts +341 -2
- package/dist/dashboard-editor/model/views/view.d.ts +271 -0
- package/dist/dashboard-editor/ui/header/download-this-view/index.d.ts +3 -0
- package/dist/dashboard.es.js +3851 -3768
- package/dist/dashboard.umd.js +65 -65
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +2 -2
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +12 -14
- package/dist/model/render-model/dashboard/content/panels/panels.d.ts +84 -98
- package/dist/stats.html +1 -1
- package/package.json +4 -2
|
@@ -235,6 +235,272 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
235
235
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
236
236
|
visibleViewIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
237
237
|
} & {
|
|
238
|
+
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
239
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
240
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
241
|
+
type: import("mobx-state-tree").ISimpleType<EViewComponentType>;
|
|
242
|
+
config: import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
243
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
244
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
245
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
246
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
247
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
248
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
249
|
+
}, {
|
|
250
|
+
readonly json: {
|
|
251
|
+
enabled: boolean;
|
|
252
|
+
func_content: string;
|
|
253
|
+
};
|
|
254
|
+
readonly value: any;
|
|
255
|
+
} & {
|
|
256
|
+
setEnabled(v: boolean): void;
|
|
257
|
+
setFuncContent(v: string): void;
|
|
258
|
+
replace({ enabled, func_content }: {
|
|
259
|
+
enabled: boolean;
|
|
260
|
+
func_content: string;
|
|
261
|
+
}): void;
|
|
262
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
263
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
264
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
265
|
+
tabs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
266
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
267
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
268
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
269
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
270
|
+
}, {
|
|
271
|
+
readonly json: {
|
|
272
|
+
id: string;
|
|
273
|
+
name: string;
|
|
274
|
+
color: string;
|
|
275
|
+
view_id: string;
|
|
276
|
+
};
|
|
277
|
+
} & {
|
|
278
|
+
setName(v: string): void;
|
|
279
|
+
setViewID(v: string): void;
|
|
280
|
+
setColor(v: string): void;
|
|
281
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
282
|
+
variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
|
|
283
|
+
orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
|
|
284
|
+
grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
285
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
286
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
287
|
+
}>>, import("mobx-state-tree").ModelSnapshotType<{
|
|
288
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
289
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
290
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
291
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
292
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
293
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
294
|
+
}, {
|
|
295
|
+
readonly json: {
|
|
296
|
+
enabled: boolean;
|
|
297
|
+
func_content: string;
|
|
298
|
+
};
|
|
299
|
+
readonly value: any;
|
|
300
|
+
} & {
|
|
301
|
+
setEnabled(v: boolean): void;
|
|
302
|
+
setFuncContent(v: string): void;
|
|
303
|
+
replace({ enabled, func_content }: {
|
|
304
|
+
enabled: boolean;
|
|
305
|
+
func_content: string;
|
|
306
|
+
}): void;
|
|
307
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
308
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
309
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
310
|
+
tabs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
311
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
312
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
313
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
314
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
315
|
+
}, {
|
|
316
|
+
readonly json: {
|
|
317
|
+
id: string;
|
|
318
|
+
name: string;
|
|
319
|
+
color: string;
|
|
320
|
+
view_id: string;
|
|
321
|
+
};
|
|
322
|
+
} & {
|
|
323
|
+
setName(v: string): void;
|
|
324
|
+
setViewID(v: string): void;
|
|
325
|
+
setColor(v: string): void;
|
|
326
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
327
|
+
variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
|
|
328
|
+
orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
|
|
329
|
+
grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
330
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
331
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
332
|
+
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
333
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
334
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
335
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
336
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
337
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
338
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
339
|
+
}, {
|
|
340
|
+
readonly json: {
|
|
341
|
+
enabled: boolean;
|
|
342
|
+
func_content: string;
|
|
343
|
+
};
|
|
344
|
+
readonly value: any;
|
|
345
|
+
} & {
|
|
346
|
+
setEnabled(v: boolean): void;
|
|
347
|
+
setFuncContent(v: string): void;
|
|
348
|
+
replace({ enabled, func_content }: {
|
|
349
|
+
enabled: boolean;
|
|
350
|
+
func_content: string;
|
|
351
|
+
}): void;
|
|
352
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
353
|
+
}, {
|
|
354
|
+
readonly json: {
|
|
355
|
+
_name: EViewComponentType.Modal;
|
|
356
|
+
width: string;
|
|
357
|
+
height: string;
|
|
358
|
+
custom_modal_title: {
|
|
359
|
+
enabled: boolean;
|
|
360
|
+
func_content: string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
} & {
|
|
364
|
+
setWidth(v: string): void;
|
|
365
|
+
setHeight(v: string): void;
|
|
366
|
+
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
367
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
368
|
+
tabs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
369
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
370
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
371
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
372
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
373
|
+
}, {
|
|
374
|
+
readonly json: {
|
|
375
|
+
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
color: string;
|
|
378
|
+
view_id: string;
|
|
379
|
+
};
|
|
380
|
+
} & {
|
|
381
|
+
setName(v: string): void;
|
|
382
|
+
setViewID(v: string): void;
|
|
383
|
+
setColor(v: string): void;
|
|
384
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
385
|
+
variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
|
|
386
|
+
orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
|
|
387
|
+
grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
388
|
+
}, {
|
|
389
|
+
readonly json: {
|
|
390
|
+
grow: boolean;
|
|
391
|
+
tabs: {
|
|
392
|
+
id: string;
|
|
393
|
+
name: string;
|
|
394
|
+
color: string;
|
|
395
|
+
view_id: string;
|
|
396
|
+
}[];
|
|
397
|
+
_name: EViewComponentType.Modal;
|
|
398
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
399
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
400
|
+
};
|
|
401
|
+
} & {
|
|
402
|
+
setVariant(v: import("@mantine/core").TabsVariant): void;
|
|
403
|
+
setOrientation(v: import("@mantine/core").TabsOrientation): void;
|
|
404
|
+
setGrow(v: boolean): void;
|
|
405
|
+
setTabs(v: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
406
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
407
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
408
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
409
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
410
|
+
}>>[]): void;
|
|
411
|
+
addTab(): void;
|
|
412
|
+
removeTab(index: number): void;
|
|
413
|
+
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
414
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
415
|
+
}, {
|
|
416
|
+
readonly json: {
|
|
417
|
+
_name: EViewComponentType.Division;
|
|
418
|
+
};
|
|
419
|
+
}>>;
|
|
420
|
+
panelIDs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
421
|
+
} & {
|
|
422
|
+
tab: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
423
|
+
}, {
|
|
424
|
+
readonly json: {
|
|
425
|
+
id: string;
|
|
426
|
+
name: string;
|
|
427
|
+
type: EViewComponentType;
|
|
428
|
+
config: {
|
|
429
|
+
_name: EViewComponentType.Modal;
|
|
430
|
+
width: string;
|
|
431
|
+
height: string;
|
|
432
|
+
custom_modal_title: {
|
|
433
|
+
enabled: boolean;
|
|
434
|
+
func_content: string;
|
|
435
|
+
};
|
|
436
|
+
} | {
|
|
437
|
+
grow: boolean;
|
|
438
|
+
tabs: {
|
|
439
|
+
id: string;
|
|
440
|
+
name: string;
|
|
441
|
+
color: string;
|
|
442
|
+
view_id: string;
|
|
443
|
+
}[];
|
|
444
|
+
_name: EViewComponentType.Modal;
|
|
445
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
446
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
447
|
+
} | {
|
|
448
|
+
_name: EViewComponentType.Division;
|
|
449
|
+
};
|
|
450
|
+
panelIDs: string[];
|
|
451
|
+
};
|
|
452
|
+
} & {
|
|
453
|
+
setName(name: string): void;
|
|
454
|
+
setType(type: EViewComponentType): void;
|
|
455
|
+
appendPanelID(id: string): void;
|
|
456
|
+
appendPanelIDs(ids: string[]): void;
|
|
457
|
+
removePanelID(id: string): void;
|
|
458
|
+
} & {
|
|
459
|
+
readonly defaultTab: string;
|
|
460
|
+
readonly tabViewID: string;
|
|
461
|
+
readonly contentModel: any;
|
|
462
|
+
readonly panels: any;
|
|
463
|
+
readonly renderViewIDs: string[];
|
|
464
|
+
} & {
|
|
465
|
+
setTab(tab: string | null): void;
|
|
466
|
+
afterCreate(): void;
|
|
467
|
+
} & {
|
|
468
|
+
getSchema(): {
|
|
469
|
+
views: {
|
|
470
|
+
id: string;
|
|
471
|
+
name: string;
|
|
472
|
+
type: EViewComponentType;
|
|
473
|
+
config: {
|
|
474
|
+
_name: EViewComponentType.Modal;
|
|
475
|
+
width: string;
|
|
476
|
+
height: string;
|
|
477
|
+
custom_modal_title: {
|
|
478
|
+
enabled: boolean;
|
|
479
|
+
func_content: string;
|
|
480
|
+
};
|
|
481
|
+
} | {
|
|
482
|
+
grow: boolean;
|
|
483
|
+
tabs: {
|
|
484
|
+
id: string;
|
|
485
|
+
name: string;
|
|
486
|
+
color: string;
|
|
487
|
+
view_id: string;
|
|
488
|
+
}[];
|
|
489
|
+
_name: EViewComponentType.Modal;
|
|
490
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
491
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
492
|
+
} | {
|
|
493
|
+
_name: EViewComponentType.Division;
|
|
494
|
+
};
|
|
495
|
+
panelIDs: string[];
|
|
496
|
+
}[];
|
|
497
|
+
panels: import('../../../types').AnyObject[];
|
|
498
|
+
definition: {
|
|
499
|
+
queries: import('../../../types').AnyObject[];
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
downloadSchema(): void;
|
|
503
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
238
504
|
idOfVIE: import("mobx-state-tree").ISimpleType<string>;
|
|
239
505
|
}, {
|
|
240
506
|
readonly json: {
|
|
@@ -3973,7 +4239,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
3973
4239
|
rmVisibleViewID(id: string): void;
|
|
3974
4240
|
} & {
|
|
3975
4241
|
readonly isVIETheFirstView: boolean;
|
|
3976
|
-
readonly VIE:
|
|
4242
|
+
readonly VIE: {
|
|
3977
4243
|
id: string;
|
|
3978
4244
|
name: string;
|
|
3979
4245
|
type: EViewComponentType;
|
|
@@ -4674,6 +4940,42 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
4674
4940
|
} & {
|
|
4675
4941
|
setTab(tab: string | null): void;
|
|
4676
4942
|
afterCreate(): void;
|
|
4943
|
+
} & {
|
|
4944
|
+
getSchema(): {
|
|
4945
|
+
views: {
|
|
4946
|
+
id: string;
|
|
4947
|
+
name: string;
|
|
4948
|
+
type: EViewComponentType;
|
|
4949
|
+
config: {
|
|
4950
|
+
_name: EViewComponentType.Modal;
|
|
4951
|
+
width: string;
|
|
4952
|
+
height: string;
|
|
4953
|
+
custom_modal_title: {
|
|
4954
|
+
enabled: boolean;
|
|
4955
|
+
func_content: string;
|
|
4956
|
+
};
|
|
4957
|
+
} | {
|
|
4958
|
+
grow: boolean;
|
|
4959
|
+
tabs: {
|
|
4960
|
+
id: string;
|
|
4961
|
+
name: string;
|
|
4962
|
+
color: string;
|
|
4963
|
+
view_id: string;
|
|
4964
|
+
}[];
|
|
4965
|
+
_name: EViewComponentType.Modal;
|
|
4966
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
4967
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
4968
|
+
} | {
|
|
4969
|
+
_name: EViewComponentType.Division;
|
|
4970
|
+
};
|
|
4971
|
+
panelIDs: string[];
|
|
4972
|
+
}[];
|
|
4973
|
+
panels: import('../../../types').AnyObject[];
|
|
4974
|
+
definition: {
|
|
4975
|
+
queries: import('../../../types').AnyObject[];
|
|
4976
|
+
};
|
|
4977
|
+
};
|
|
4978
|
+
downloadSchema(): void;
|
|
4677
4979
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
4678
4980
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
4679
4981
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -4903,7 +5205,43 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
4903
5205
|
} & {
|
|
4904
5206
|
setTab(tab: string | null): void;
|
|
4905
5207
|
afterCreate(): void;
|
|
4906
|
-
}
|
|
5208
|
+
} & {
|
|
5209
|
+
getSchema(): {
|
|
5210
|
+
views: {
|
|
5211
|
+
id: string;
|
|
5212
|
+
name: string;
|
|
5213
|
+
type: EViewComponentType;
|
|
5214
|
+
config: {
|
|
5215
|
+
_name: EViewComponentType.Modal;
|
|
5216
|
+
width: string;
|
|
5217
|
+
height: string;
|
|
5218
|
+
custom_modal_title: {
|
|
5219
|
+
enabled: boolean;
|
|
5220
|
+
func_content: string;
|
|
5221
|
+
};
|
|
5222
|
+
} | {
|
|
5223
|
+
grow: boolean;
|
|
5224
|
+
tabs: {
|
|
5225
|
+
id: string;
|
|
5226
|
+
name: string;
|
|
5227
|
+
color: string;
|
|
5228
|
+
view_id: string;
|
|
5229
|
+
}[];
|
|
5230
|
+
_name: EViewComponentType.Modal;
|
|
5231
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
5232
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
5233
|
+
} | {
|
|
5234
|
+
_name: EViewComponentType.Division;
|
|
5235
|
+
};
|
|
5236
|
+
panelIDs: string[];
|
|
5237
|
+
}[];
|
|
5238
|
+
panels: import('../../../types').AnyObject[];
|
|
5239
|
+
definition: {
|
|
5240
|
+
queries: import('../../../types').AnyObject[];
|
|
5241
|
+
};
|
|
5242
|
+
};
|
|
5243
|
+
downloadSchema(): void;
|
|
5244
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
4907
5245
|
readonly options: {
|
|
4908
5246
|
label: string;
|
|
4909
5247
|
value: string;
|
|
@@ -4920,6 +5258,7 @@ export declare const ViewsModel: import("mobx-state-tree").IModelType<{
|
|
|
4920
5258
|
replace(current: Array<ViewRenderModelInstance>): void;
|
|
4921
5259
|
addANewView(id: string, name: string, type: EViewComponentType, config: ViewDivisionConfigSnapshotIn | ViewModalConfigSnapshotIn): void;
|
|
4922
5260
|
append(item: ViewRenderModelInstance): void;
|
|
5261
|
+
appendMultiple(items: ViewRenderModelInstance[]): void;
|
|
4923
5262
|
remove(index: number): void;
|
|
4924
5263
|
removeByID(id: string): void;
|
|
4925
5264
|
replaceByIndex(index: number, replacement: ViewRenderModelInstance): void;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import { EViewComponentType } from '../../../model';
|
|
3
|
+
import { AnyObject } from '../../../types';
|
|
4
|
+
export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
5
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
+
type: import("mobx-state-tree").ISimpleType<EViewComponentType>;
|
|
8
|
+
config: import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
9
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
10
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
11
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
12
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
13
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
14
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
15
|
+
}, {
|
|
16
|
+
readonly json: {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
func_content: string;
|
|
19
|
+
};
|
|
20
|
+
readonly value: any;
|
|
21
|
+
} & {
|
|
22
|
+
setEnabled(v: boolean): void;
|
|
23
|
+
setFuncContent(v: string): void;
|
|
24
|
+
replace({ enabled, func_content }: {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
func_content: string;
|
|
27
|
+
}): void;
|
|
28
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
29
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
30
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
31
|
+
tabs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
32
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
34
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
35
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
36
|
+
}, {
|
|
37
|
+
readonly json: {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
color: string;
|
|
41
|
+
view_id: string;
|
|
42
|
+
};
|
|
43
|
+
} & {
|
|
44
|
+
setName(v: string): void;
|
|
45
|
+
setViewID(v: string): void;
|
|
46
|
+
setColor(v: string): void;
|
|
47
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
48
|
+
variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
|
|
49
|
+
orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
|
|
50
|
+
grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
51
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
52
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
53
|
+
}>>, import("mobx-state-tree").ModelSnapshotType<{
|
|
54
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
55
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
56
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
57
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
58
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
59
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
60
|
+
}, {
|
|
61
|
+
readonly json: {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
func_content: string;
|
|
64
|
+
};
|
|
65
|
+
readonly value: any;
|
|
66
|
+
} & {
|
|
67
|
+
setEnabled(v: boolean): void;
|
|
68
|
+
setFuncContent(v: string): void;
|
|
69
|
+
replace({ enabled, func_content }: {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
func_content: string;
|
|
72
|
+
}): void;
|
|
73
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
74
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
75
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
76
|
+
tabs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
77
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
78
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
79
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
80
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
81
|
+
}, {
|
|
82
|
+
readonly json: {
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
color: string;
|
|
86
|
+
view_id: string;
|
|
87
|
+
};
|
|
88
|
+
} & {
|
|
89
|
+
setName(v: string): void;
|
|
90
|
+
setViewID(v: string): void;
|
|
91
|
+
setColor(v: string): void;
|
|
92
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
93
|
+
variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
|
|
94
|
+
orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
|
|
95
|
+
grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
96
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
97
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
98
|
+
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
99
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
100
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
101
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
102
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
103
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
104
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
105
|
+
}, {
|
|
106
|
+
readonly json: {
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
func_content: string;
|
|
109
|
+
};
|
|
110
|
+
readonly value: any;
|
|
111
|
+
} & {
|
|
112
|
+
setEnabled(v: boolean): void;
|
|
113
|
+
setFuncContent(v: string): void;
|
|
114
|
+
replace({ enabled, func_content }: {
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
func_content: string;
|
|
117
|
+
}): void;
|
|
118
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
119
|
+
}, {
|
|
120
|
+
readonly json: {
|
|
121
|
+
_name: EViewComponentType.Modal;
|
|
122
|
+
width: string;
|
|
123
|
+
height: string;
|
|
124
|
+
custom_modal_title: {
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
func_content: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
} & {
|
|
130
|
+
setWidth(v: string): void;
|
|
131
|
+
setHeight(v: string): void;
|
|
132
|
+
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
133
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
134
|
+
tabs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
135
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
136
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
137
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
138
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
139
|
+
}, {
|
|
140
|
+
readonly json: {
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
color: string;
|
|
144
|
+
view_id: string;
|
|
145
|
+
};
|
|
146
|
+
} & {
|
|
147
|
+
setName(v: string): void;
|
|
148
|
+
setViewID(v: string): void;
|
|
149
|
+
setColor(v: string): void;
|
|
150
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
151
|
+
variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
|
|
152
|
+
orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
|
|
153
|
+
grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
154
|
+
}, {
|
|
155
|
+
readonly json: {
|
|
156
|
+
grow: boolean;
|
|
157
|
+
tabs: {
|
|
158
|
+
id: string;
|
|
159
|
+
name: string;
|
|
160
|
+
color: string;
|
|
161
|
+
view_id: string;
|
|
162
|
+
}[];
|
|
163
|
+
_name: EViewComponentType.Modal;
|
|
164
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
165
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
166
|
+
};
|
|
167
|
+
} & {
|
|
168
|
+
setVariant(v: import("@mantine/core").TabsVariant): void;
|
|
169
|
+
setOrientation(v: import("@mantine/core").TabsOrientation): void;
|
|
170
|
+
setGrow(v: boolean): void;
|
|
171
|
+
setTabs(v: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
172
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
173
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
174
|
+
view_id: import("mobx-state-tree").ISimpleType<string>;
|
|
175
|
+
color: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
176
|
+
}>>[]): void;
|
|
177
|
+
addTab(): void;
|
|
178
|
+
removeTab(index: number): void;
|
|
179
|
+
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
180
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
181
|
+
}, {
|
|
182
|
+
readonly json: {
|
|
183
|
+
_name: EViewComponentType.Division;
|
|
184
|
+
};
|
|
185
|
+
}>>;
|
|
186
|
+
panelIDs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
187
|
+
} & {
|
|
188
|
+
tab: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
189
|
+
}, {
|
|
190
|
+
readonly json: {
|
|
191
|
+
id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
type: EViewComponentType;
|
|
194
|
+
config: {
|
|
195
|
+
_name: EViewComponentType.Modal;
|
|
196
|
+
width: string;
|
|
197
|
+
height: string;
|
|
198
|
+
custom_modal_title: {
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
func_content: string;
|
|
201
|
+
};
|
|
202
|
+
} | {
|
|
203
|
+
grow: boolean;
|
|
204
|
+
tabs: {
|
|
205
|
+
id: string;
|
|
206
|
+
name: string;
|
|
207
|
+
color: string;
|
|
208
|
+
view_id: string;
|
|
209
|
+
}[];
|
|
210
|
+
_name: EViewComponentType.Modal;
|
|
211
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
212
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
213
|
+
} | {
|
|
214
|
+
_name: EViewComponentType.Division;
|
|
215
|
+
};
|
|
216
|
+
panelIDs: string[];
|
|
217
|
+
};
|
|
218
|
+
} & {
|
|
219
|
+
setName(name: string): void;
|
|
220
|
+
setType(type: EViewComponentType): void;
|
|
221
|
+
appendPanelID(id: string): void;
|
|
222
|
+
appendPanelIDs(ids: string[]): void;
|
|
223
|
+
removePanelID(id: string): void;
|
|
224
|
+
} & {
|
|
225
|
+
readonly defaultTab: string;
|
|
226
|
+
readonly tabViewID: string;
|
|
227
|
+
readonly contentModel: any;
|
|
228
|
+
readonly panels: any;
|
|
229
|
+
readonly renderViewIDs: string[];
|
|
230
|
+
} & {
|
|
231
|
+
setTab(tab: string | null): void;
|
|
232
|
+
afterCreate(): void;
|
|
233
|
+
} & {
|
|
234
|
+
getSchema(): {
|
|
235
|
+
views: {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
type: EViewComponentType;
|
|
239
|
+
config: {
|
|
240
|
+
_name: EViewComponentType.Modal;
|
|
241
|
+
width: string;
|
|
242
|
+
height: string;
|
|
243
|
+
custom_modal_title: {
|
|
244
|
+
enabled: boolean;
|
|
245
|
+
func_content: string;
|
|
246
|
+
};
|
|
247
|
+
} | {
|
|
248
|
+
grow: boolean;
|
|
249
|
+
tabs: {
|
|
250
|
+
id: string;
|
|
251
|
+
name: string;
|
|
252
|
+
color: string;
|
|
253
|
+
view_id: string;
|
|
254
|
+
}[];
|
|
255
|
+
_name: EViewComponentType.Modal;
|
|
256
|
+
variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
|
|
257
|
+
orientation: import("@mantine/core").TabsOrientation;
|
|
258
|
+
} | {
|
|
259
|
+
_name: EViewComponentType.Division;
|
|
260
|
+
};
|
|
261
|
+
panelIDs: string[];
|
|
262
|
+
}[];
|
|
263
|
+
panels: AnyObject[];
|
|
264
|
+
definition: {
|
|
265
|
+
queries: AnyObject[];
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
downloadSchema(): void;
|
|
269
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
270
|
+
export type ViewModelInstance = Instance<typeof ViewModel>;
|
|
271
|
+
export type ViewModelSnapshotIn = SnapshotIn<ViewModelInstance>;
|