forked from Revvity/teselagen-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
1162 lines (1058 loc) · 27.3 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* eslint-disable no-unreachable*/
import * as React from "react";
import { Intent, IMenuItemProps, IAnchorButtonProps } from "@blueprintjs/core";
/*~ If this module has methods, export them as functions like so.
*/
interface SchemaField {
displayName?: string;
alternatePathMatch?: string | string[];
path?: string;
width?: number;
/**
* this will display as a tooltip on column header hover
*/
description?: string;
type?: "string" | "number" | "integer" | "boolean" | "timestamp" | "lookup" | "action" | "markdown" | "color";
filterDisabled?: boolean;
sortDisabled?: boolean;
/**
* sometimes you need to have the paths of multiple columns be the same to get filters working.
* Here is a place to still give the columns unique paths so that column ordering will still work
*/
placementPath?: string;
isHidden?: boolean;
isForcedHidden?: boolean
}
interface objectSchema {
model: string;
fields: SchemaField[]
}
export type dataTableSchema = SchemaField[] | objectSchema
interface showDialogOnDocBodyOptions {
/**
* * @property {boolean} addDialogContainer - add a dialog to this
*/
addDialogContainer: false;
}
export function showDialogOnDocBody(
DialogComp,
showDialogOnDocBodyOptions
): void;
/**
* Note all these options can be passed at Design Time or at Runtime (like reduxForm())
*/
interface WithTableParamsOptions {
/**
* @property {*string} formName - required unique identifier for the table
*/
formName: string;
/**
* @property The data table schema or a function returning it. The function wll be called with props as the argument.
*/
schema: dataTableSchema | (() => {});
/**
* @property whether the table should connect to/update the URL
*/
urlConnected: boolean;
/**
* @property whether or not to pass the selected entities
*/
withSelectedEntities: boolean;
/**
* @property whether the model is keyed by code instead of id in the db
*/
isCodeModel: boolean;
/**
* @property tableParam defaults such as pageSize, filter, etc
*/
defaults: tableParamDefaults;
/**
* @property won't console an error if an order is not found on schema
*/
noOrderError: boolean;
/**
* @property extra filter for query
*/
additionalFilter: (props: object, qb: Function, currentParams: object) => {}
}
interface tableParamDefaults {
pageSize: number;
page: number;
order: Array<string>;
}
/**
* Withs table params
* @param options
* @example
* withTableParams({formName: "mySequenceTable"})
*/
export function withTableParams(options: WithTableParamsOptions): void;
interface ToastrFunc {
/**
* Fire a little toastr notification
*
* @example
* // they all work similarly
*
* window.toastr.warning("Error")
* you can also chain them using a unique key
* window.toastr.info("Sequence Saving", {key: "seqSave"})
* window.toastr.success("Sequence Saved!", {key: "seqSave"})
* window.toastr.info("Sequence Saving", {
* link: modelNameToLink("oligo", seq.id),
* linkText: "Open Oligo"
* })
* window.toastr.success("Sequence Saved!", {timeout: 10000}) //wait longer or shorter to clear the toast
* window.toastr.success("Sequence Saved!", {icon: "chat"})
*/
(message: string, options: ToastrFuncOptions): void;
}
interface ToastrFuncOptions {
icon: string;
timeout: number;
/**
* defaults to false, set this only if you're also using a key option and you want to
* have the timeout be refreshed
*/
updateTimeout: boolean;
/**
* use a unique key to update the toastr
*/
key: string;
}
declare global {
interface Window {
toastr: {
success: ToastrFunc;
error: ToastrFunc;
warning: ToastrFunc;
info: ToastrFunc;
default: ToastrFunc;
};
}
}
// export function myOtherMethod(a: number): number;
// /*~ You can export types that are available via importing the module */
// export interface SomeType {
// name: string;
// length: number;
// extras?: string[];
// }
// /*~ You can export properties of the module using const, let, or var */
// export const myField: number;
// /*~ If there are types, properties, or methods inside dotted names
// *~ of the module, export them inside a 'namespace'.
// */
// export namespace subProp {
// /*~ For example, given this definition, someone could write:
// *~ import { subProp } from 'yourModule';
// *~ subProp.foo();
// *~ or
// *~ import * as yourMod from 'yourModule';
// import { withTableParams } from "./index";
// *~ yourMod.subProp.foo();
// */
// export function foo(): void;
// }
export class SimpleSelect extends React.Component<SimpleSelectProps, any> { }
type OptionValue = string | { value: any, label: any }
export interface SimpleSelectProps {
autofocus?: boolean;
cancelKeyboardEventOnSelection?: boolean;
className?: string;
createFromSearch?(items: OptionValue[], search: string): OptionValue;
defaultValue?: OptionValue;
delimiters?: [any];
disabled?: boolean;
// ...
}
// AsyncValidateFieldSpinner
export class AsyncValidateFieldSpinner extends React.Component<
AsyncValidateFieldSpinnerProps,
any
> { }
export interface AsyncValidateFieldSpinnerProps {
validating?: boolean;
}
// BlueprintError
export class BlueprintError extends React.Component<BlueprintErrorProps, any> { }
export interface BlueprintErrorProps {
error: string;
}
// BounceLoader
export class BounceLoader extends React.Component<BounceLoaderProps, any> { }
export interface BounceLoaderProps {
style: object;
className: string;
}
/**
* @example
* <CollapsibleCard
title="Additives"
noCard
openTitleElements={
<ButtonGroup minimal>
<Button
text="Add Additives"
icon="add"
intent={Intent.SUCCESS}
onClick={this.renderAddAdditivesDialog}
/>
</ButtonGroup>
}
>
<DataTable
{...tableParams}
className="additives-card"
contextMenu={this.renderContextMenu}
/>
</CollapsibleCard>
@example
<CollapsibleCard title="Replicate Aliquots" noCard>
{aliquot.replicateAliquots && (
<DataTable
entities={aliquot.replicateAliquots}
maxHeight={300}
isSimple
schema={schema}
formName="replicateAliquotForm"
onDoubleClick={routeDoubleClick}
/>
)}
</CollapsibleCard>
const schema = {
model: "defaultPositions",
fields: [
{
displayName: "Name",
path: "name"
},
{
displayName: "Label",
path: "label"
},
{
displayName: "Index",
path: "index"
}
]
};
const schema = [
"name",
{
displayName: "Destination Plate Type",
path: "containerArrayType"
}
];
*/
export class CollapsibleCard extends React.Component<
CollapsibleCardProps,
any
> { }
export interface CollapsibleCardProps {
noCard: boolean;
title: string;
icon: string;
openTitleElements: boolean;
initialClosed: boolean;
}
export class CmdCheckbox extends React.Component<CmdProps, any> { }
export class CmdSwitch extends React.Component<CmdProps, any> { }
export class CmdDiv extends React.Component<CmdProps, any> { }
export class CmdButton extends React.Component<CmdProps, any> { }
export interface CmdProps {
name: string;
prefix: string;
cmd: () => {};
}
// DNALoader
export class DNALoader extends React.Component<DNALoaderProps, any> { }
export interface DNALoaderProps {
style: object;
className: string;
}
/**
* @example
* <DataTable
formName="placementStrategyDescriptionTypes"
entities={types}
schema={schema}
isSimple
compact
/>
@example
<DataTable
withCheckboxes={false}
isSingleSelect
isSimple
formName="sequencesToSubmitTable"
withSelectedEntitites
schema={orderSequencesSchema}
entities={sequencesToOrder}
/>
@example
<DataTable
schema={[
"name",
"strain",
{
displayName: "Species",
path: "species",
render: v => <i>{v}</i>
}
]}
formName="strainMaterialsTable"
entities={strainMaterialCompEntities}
isSimple
onDoubleClick={routeDoubleClick}
/>
*/
export class DataTable extends React.Component<DataTableProps, any> { }
interface DropdownButtonProps extends IAnchorButtonProps {
disabled: boolean,
menu: any,
className: string,
noRightIcon: boolean,
}
/**
* @example
<DropdownButton menu={
<Menu>
<MenuItem onClick={() => {
console.log(`Ready to Roll OUT!`)
}} text={"Yep"}></MenuItem>
<MenuItem onClick={() => {
console.log(`Ready to Roll OUT!`)
}} text={"Nope"}></MenuItem>
</Menu>
}></DropdownButton>
*/
export function DropdownButton({
}: DropdownButtonProps) {
}
/**
* @example
<AdvancedOptions isOpenByDefault={true} content={
<div>more options here</div>
}></AdvancedOptions>
*/
export function AdvancedOptions({
isOpenByDefault,
content,
children,
label
}) {
}
interface MenuItemWithTooltipProps extends IMenuItemProps {
tooltip: string
}
/**
* @example
<MenuItemWithTooltip tooltip={"tooltip content"} text="hello squirrel" />
*/
export function MenuItemWithTooltip({
}: MenuItemWithTooltipProps) {
return
}
export interface DataTableProps {
extraClasses: string;
className: string;
tableName: string;
mustClickCheckboxToSelect: boolean;
isLoading: boolean;
searchTerm: string;
noRowsFoundMessage: string;
setSearchTerm: () => {};
clearFilters: () => {};
hidePageSizeWhenPossible: boolean;
doNotShowEmptyRows: boolean;
withTitle: boolean;
withCheckboxes: boolean;
autoFocusSearch: boolean;
withSearch: boolean;
withPaging: boolean;
isInfinite: boolean;
disabled: boolean;
noHeader: boolean;
noFooter: boolean;
noPadding: boolean;
noFullscreenButton: boolean;
withDisplayOptions: boolean;
resized: boolean;
resizePersist: boolean;
updateColumnVisibility: () => {};
updateTableDisplayDensity: () => {};
syncDisplayOptionsToDb: boolean;
resetDefaultVisibility: () => {};
maxHeight: number;
style: object;
pageSize: number;
formName: string;
schema: dataTableSchema;
filters: object;
userSpecifiedCompact: boolean;
hideDisplayOptionsIcon: boolean;
/**
* By deafult compact is true! To get the table to be "comfortable", set compact={false}
*/
compact: boolean;
extraCompact: boolean;
compactPaging: boolean;
entityCount: number;
showCount: boolean;
isSingleSelect: boolean;
noSelect: boolean;
SubComponent: any;
shouldShowSubComponent: boolean;
ReactTableProps: object;
hideSelectedCount: boolean;
hideColumnHeader: boolean;
subHeader: any;
isViewable: boolean;
isOpenable: boolean;
entities: any;
children: any;
topLeftItems: any;
hasOptionForForcedHidden: boolean;
showForcedHiddenColumns: boolean;
searchMenuButton: any;
isEntityDisabled: function;
setShowForcedHidden: () => {};
/**
* Caution: this will be slow for large data sets
* can be passed (along with safeQuery) to a query connected table to add the select all button. When
* clicked it will query for all items across all pages and select them.
*/
withSelectAll: boolean;
safeQuery(): Promise;
}
/**
* @example
* <DialogFooter
text="Next"
submitting={submitting}
onClick={handleSubmit(onSubmit)}
/>
@example
<DialogFooter
onBackClick={() => {}}
hideModal={hideModal}
submitting={submitting}
onClick={handleSubmit(onSubmit)}
/>
*/
export function DialogFooter({
hideModal = noop,
loading,
onBackClick,
submitting,
onClick = noop,
secondaryAction,
intent = Intent.PRIMARY,
secondaryIntent,
secondaryText = "Cancel",
additionalButtons,
className,
secondaryClassName = "",
text = "Submit",
disabled,
noCancel
}) {
return "";
}
export interface DialogFooterProps {
hideModal: () => {};
loading: boolean;
submitting: boolean;
onClick: () => {};
error: string;
secondaryAction: () => {};
intent: Blueprint.Intent;
secondaryIntent: Blueprint.Intent;
secondaryText: string;
additionalButtons: any;
className: string;
secondaryClassName: string;
text: string;
disabled: boolean;
noCancel: boolean;
}
// FillWindow
export class FillWindow extends React.Component<FillWindowProps, any> { }
export interface FillWindowProps {
containerStyle: string;
style: string;
styleOverrides: string;
className: string;
disabled: boolean;
children: any;
}
/**
* fieldRequired
* @example
* <Field
* name="someField"
* component="input"
* validate={fieldRequired}
* />
*/
export function fieldRequired(value: string | Array): string | undefined;
export interface GenericFormFieldProps {
name: string;
isRequired: boolean;
onFieldSubmit: () => {};
leftEl: any;
rightEl: any;
noMarginBottom: boolean;
children: any;
defaultValue: any;
onDefaultValChanged: () => {};
generateDefaultValue: any;
tooltipProps: any;
tooltipError: any;
isLabelTooltip: boolean;
disabled: boolean;
intent: Blueprint.Intent;
tooltipInfo: any;
label: any;
inlineLabel: any;
secondaryLabel: any;
className: string;
showErrorIfUntouched: boolean;
containerStyle: object;
noOuterLabel: boolean;
noFillField: boolean;
asyncValidate: () => {};
validateOnChange: boolean;
touchOnChange: boolean;
}
// BPSelect
// InputField
/**
* @example
* <InputField label="Search" isRequired name="searchQuery"></InputField>
*/
export class InputField extends React.Component<InputFieldProps, any> { }
export interface InputFieldProps extends GenericFormFieldProps { }
/**
* @example
* <FileUploadField
name="alignmentToolSequenceUpload"
innerText="Upload Sequences to Align (.ab1, .fasta, .gb)"
accept={[".ab1", ".fasta", ".fa", ".gb"]}
style={{ maxWidth: 400 }}
readBeforeUpload //if passed file.parsedString will show up if the read is successful
beforeUpload={async (files, onChange) => {
try {
console.log(`files[0].parsedString:`,files[0].parsedString)
} catch (e) {
console.error(`e:`,e)
window.toastr.error("Something went wrong with the file upload. Check the dev console for more details.")
}
}}
/>
* <FileUploadField accept={[".csv", ".xlsx"]} name="oligoFiles" />
* <FileUploadField
accept={[".csv", ".json", ".xlsx"]}
label="Upload Existing Design Template File Here"
name="inputFiles"
fileLimit={1}
/>
*/
export class FileUploadField extends React.Component<
FileUploadFieldProps,
any
> { }
type AcceptObj = {
validateAgainstSchema: ValidateAgainstSchemaObj;
type: string;
exampleFile: string | (() => string);
description: string;
isTemplate: boolean
}
type ValidateAgainstSchemaObj = {
tableWideValidation: ({ entities }) => {
cellId: string;
};
tableWideAsyncValidation: ({ entities }) => {
cellId: string;
};
fields: SchemaField[];
}
export interface FileUploadFieldProps extends GenericFormFieldProps {
innerIcon: "string";
innerText: "string";
threeDotMenuItems: any;
accept: string | [string] | AcceptObj | [AcceptObj];
contentOverride: () => {};
action: string;
className: string;
fileLimit: number;
readBeforeUpload: boolean;
showUploadList: boolean;
onFileClick: () => {};
dropzoneProps: object;
showFilesCount: boolean;
axiosInstance: object;
}
/**
* @example
* <DateInputField
defaultValue={new Date()}
label="Start Date"
name="startDate"
minDate={initialValues ? undefined : new Date()}
/>
* <DateInputField
name="serviceContractExpiration"
label="Service Contract Expiration Date"
minDate={new Date("1/1/2010")}
maxDate={new Date("12/31/2100")}
/>
*/
export class DateInputField extends React.Component<DateInputFieldProps, any> { }
export interface DateInputFieldProps extends GenericFormFieldProps { }
// DateRangeInputField
export class DateRangeInputField extends React.Component<
DateRangeInputFieldProps,
any
> { }
export interface DateRangeInputFieldProps extends GenericFormFieldProps { }
/**
* @example
* <CheckboxField
name={fieldPrefix + "shouldAssignToLocation"}
label="Assign to Location"
defaultValue
/>
* <CheckboxField
name="isInfinite"
style={{ marginTop: 20 }}
label="Set Infinite Capacity"
defaultValue={false}
/>
*/
export class CheckboxField extends React.Component<CheckboxFieldProps, any> { }
export interface CheckboxFieldProps extends GenericFormFieldProps {
beforeOnChange: function
}
/**
* @example
* <SwitchField name="combineWorklists" label="Combine Worklists" />
* <SwitchField
label="Only Show Pending Worklists"
name="onlyShowPending"
defaultValue={true}
beforeOnChange={async val => {
if (!val) {
const keepGoing = await showConfirmationDialog({
text: "Are you sure???",
intent: "danger" //applied to the right most confirm button
});
return { stopEarly: !keepGoing };
}
return;
}}
onFieldSubmit={() => {
setNewParams({
...currentParams,
showAllWorklists: !currentParams.showAllWorklists
});
}}
/>
*/
export class SwitchField extends React.Component<SwitchFieldProps, any> { }
export interface SwitchFieldProps extends GenericFormFieldProps {
beforeOnChange: function
}
/**
* @example
* <TextareaField
style={{ maxWidth: 400 }}
placeholder="AGTTGAGC"
name="sequence"
/>
* <TextareaField
name="description"
label="Description"
readOnly={!!design.isLocked}
onFieldSubmit={this.handleFieldSubmit("description")}
/>
*/
export class TextareaField extends React.Component<TextareaFieldProps, any> { }
export interface TextareaFieldProps extends GenericFormFieldProps { }
/**
* @example
* <EditableTextField
disabled={isUsedInWorkflowRun}
placeholder="Input name..."
name={"inputLabel.id" + id}
onFieldSubmit={async v => {
await safeUpsert(["workflowToolInputDefinition", "id label"], {
id,
label: v
});
this.props.triggerSaved();
}}
/>
<EditableTextField
name="name"
onFieldSubmit={handleSubmit(this.onSubmit)}
placeholder="Workflow Name..."
/>
*/
export class EditableTextField extends React.Component<
EditableTextFieldProps,
any
> { }
export interface EditableTextFieldProps extends GenericFormFieldProps { }
/**
* @example
* <NumericInputField
label="End Offset"
name="partEndOffset"
defaultValue={0}
placeholder="600"
disabled={!createPartsFromSequences}
/>
<NumericInputField name="part.endBp" label="End BP" readOnly />
*/
export class NumericInputField extends React.Component<
NumericInputFieldProps,
any
> { }
export interface NumericInputFieldProps extends GenericFormFieldProps { }
/**
* @example
* <RadioGroupField
name="format"
label="Export as"
options={[
{ label: "Genbank", value: "genbank" },
{ label: "Fasta", value: "fasta" }
]}
defaultValue="genbank"
/>
<RadioGroupField
name="readOrientation"
defaultValue="fr"
options={[
{
label: "Forward / Reverse",
value: "fr"
},
{
label: "Reverse / Forward",
value: "rf"
},
{
label: "Forward / Forward",
value: "ff"
}
]}
/>
*/
export class RadioGroupField extends React.Component<
RadioGroupFieldProps,
any
> { }
export interface RadioGroupFieldProps extends GenericFormFieldProps { }
/**
* @example
* <SuggestField
validate={validateNames}
options={["taoh", "thomas", "tiff"]}
name={`username`}
/>
*/
export class SuggestField extends React.Component<SuggestFieldProps, any> { }
export interface SuggestFieldProps extends GenericFormFieldProps { }
/**
* @example
* <ReactSelectField
name="containerTypeCode"
label="Container Type"
placeholder="Select a container type"
options={arrayToIdOrCodeValuedOptions(containerTypes)}
disabled={!!initialValues.id}
defaultValue={initialItemType}
isRequired
/>
*/
export class ReactSelectField extends React.Component<
ReactSelectFieldProps,
any
> { }
export interface ReactSelectFieldProps extends GenericFormFieldProps, TgSelectProps {
multi: boolean;
}
// SelectField
export class SelectField extends React.Component<SelectFieldProps, any> { }
export interface SelectFieldProps extends GenericFormFieldProps { }
/**
* @example
* <ReactColorField
defaultValue="lightblue"
label="Color"
name="color"
/>
*/
export class ReactColorField extends React.Component<
ReactColorFieldProps,
any
> { }
export interface ReactColorFieldProps extends GenericFormFieldProps { }
// HotkeysDialog
export class HotkeysDialog extends React.Component<HotkeysDialogProps, any> { }
export interface HotkeysDialogProps {
hotkeySets: object;
isOpen: boolean;
onClose: boolean;
}
/**
* @example
* <InfoHelper
isInline
color="darkgrey"
icon="lock"
onClick={() => {...}}
content={
<div>
{lockedMessage}{" "}
<div style={{ fontSize: 11, fontStyle: "italic" }}>
{lockMsgDescription}
</div>
</div>
}
/>
<InfoHelper isButton disabled content={"Hey I'm some helpful info!"} />
<InfoHelper isPopover content={"Hey I'm some helpful info!"} />
*/
export class InfoHelper extends React.Component<InfoHelperProps, any> { }
export interface InfoHelperProps {
className: string;
content: any;
children: any;
icon: string;
color: string;
noMarginTop: boolean;
clickable: boolean;
isPopover: boolean;
isInline: boolean;
isButton: boolean;
size: number;
popoverProps: object;
disabled: boolean;
displayToSide: boolean;
style: object;
}
// IntentText
export class IntentText extends React.Component<IntentTextProps, any> { }
export interface IntentTextProps {
intent: Intent;
text: string;
children: any;
}
// Loading
export class Loading extends React.Component<LoadingProps, any> { }
export interface LoadingProps {
loading: any;
style: any;
className: any;
containerStyle: any;
children: any;
displayInstantly: any;
bounce: any;
withTimeout: any;
inDialog: any;
}
// MenuBar
export class MenuBar extends React.Component<MenuBarProps, any> { }
export interface MenuBarProps {
menu: any;
context: any;
enhancers: any;
menuSearchHotkey: any;
}
// // MultiSelectSideBySide
// export class MultiSelectSideBySide extends React.Component<MultiSelectSideBySideProps, any> { }
// export interface MultiSelectSideBySideProps {
// selectedItems: array;
// filteredItems: array;
// loading: boolean;
// messages: object;
// onChange: func;
// showSearch: boolean;
// showSelectAll: boolean;
// showSelectedItems: boolean;
// searchIcon: string;
// deleteIcon: string;
// searchRenderer: func;
// selectedItemRenderer: any;
// height: number;
// itemHeight: number;
// selectAllHeight: number;
// loaderRenderer: any;
// maxSelectedItems: number;
// }
// ResizableDraggableDialog
export class ResizableDraggableDialog extends React.Component<
ResizableDraggableDialogProps,
any
> { }
export interface ResizableDraggableDialogProps {
width: number;
height: number;
RndProps: object;
}
// ScrollToTop
export class ScrollToTop extends React.Component<ScrollToTopProps, any> { }
export interface ScrollToTopProps {
showAt: number;
scrollContainer: any;
}
// TgSelect
export class TgSelect extends React.Component<TgSelectProps, any> { }