dce-reactkit 4.2.4-beta-timestamp.2 → 4.2.6
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/cjs/index.js +255 -74
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ProgressBar.d.ts +22 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/cjs/types/types/ProgressBarSize.d.ts +10 -0
- package/dist/esm/index.js +255 -75
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ProgressBar.d.ts +22 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/types/types/ProgressBarSize.d.ts +10 -0
- package/dist/index.d.ts +77 -47
- package/package.json +1 -1
- package/src/components/ProgressBar.tsx +347 -0
- package/src/helpers/getTimestampFromTimeInfoInET.ts +10 -58
- package/src/index.ts +2 -0
- package/src/types/ProgressBarSize.ts +11 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customizable Progress Bar component using Bootstrap styles
|
|
3
|
+
* @author Allison Zhang
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import Variant from '../types/Variant';
|
|
7
|
+
import ProgressBarSize from '../types/ProgressBarSize';
|
|
8
|
+
type Props = (({
|
|
9
|
+
percentProgress: number;
|
|
10
|
+
numDecimalPlaces?: number;
|
|
11
|
+
} | {
|
|
12
|
+
numComplete: number;
|
|
13
|
+
total: number;
|
|
14
|
+
}) & {
|
|
15
|
+
striped?: boolean;
|
|
16
|
+
variant?: Variant;
|
|
17
|
+
bgVariant?: Variant;
|
|
18
|
+
showOutline?: boolean;
|
|
19
|
+
size?: ProgressBarSize;
|
|
20
|
+
});
|
|
21
|
+
declare const ProgressBar: React.FC<Props>;
|
|
22
|
+
export default ProgressBar;
|
|
@@ -23,6 +23,7 @@ import ToggleSwitch from './components/ToggleSwitch';
|
|
|
23
23
|
import AutoscrollToBottomContainer from './components/AutoscrollToBottomContainer';
|
|
24
24
|
import MultiSwitch from './components/MultiSwitch';
|
|
25
25
|
import Dropdown from './components/Dropdown';
|
|
26
|
+
import ProgressBar from './components/ProgressBar';
|
|
26
27
|
import ErrorWithCode from './errors/ErrorWithCode';
|
|
27
28
|
import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
|
|
28
29
|
import HOUR_IN_MS from './constants/HOUR_IN_MS';
|
|
@@ -107,4 +108,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
|
107
108
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
108
109
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
109
110
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
110
|
-
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, SELECT_ADMIN_CHECK_ROUTE, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, cloneDeep, getTimestampFromTimeInfoInET, isSelectAdmin, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
|
|
111
|
+
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, ProgressBar, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, SELECT_ADMIN_CHECK_ROUTE, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, cloneDeep, getTimestampFromTimeInfoInET, isSelectAdmin, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare enum Variant {
|
|
|
23
23
|
* @author Gabe Abrams
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
type Props$
|
|
26
|
+
type Props$n = {
|
|
27
27
|
children: React$1.ReactNode;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -106,7 +106,7 @@ declare const showFatalError: (error: any, errorTitle?: string) => Promise<void>
|
|
|
106
106
|
* @author Gabe Abrams
|
|
107
107
|
*/
|
|
108
108
|
declare const addFatalErrorHandler: (handler: () => void) => void;
|
|
109
|
-
declare const AppWrapper: React$1.FC<Props$
|
|
109
|
+
declare const AppWrapper: React$1.FC<Props$n>;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* Loading spinner/indicator
|
|
@@ -120,14 +120,14 @@ declare const LoadingSpinner: () => React$1.JSX.Element;
|
|
|
120
120
|
* @author Gabe Abrams
|
|
121
121
|
*/
|
|
122
122
|
|
|
123
|
-
type Props$
|
|
123
|
+
type Props$m = {
|
|
124
124
|
error: any;
|
|
125
125
|
title?: string;
|
|
126
126
|
onClose?: () => void;
|
|
127
127
|
variant?: Variant;
|
|
128
128
|
icon?: IconProp;
|
|
129
129
|
};
|
|
130
|
-
declare const ErrorBox: React$1.FC<Props$
|
|
130
|
+
declare const ErrorBox: React$1.FC<Props$m>;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Types of buttons in the modal
|
|
@@ -226,7 +226,7 @@ declare const Modal: React$1.FC<ModalProps>;
|
|
|
226
226
|
* @author Gabe Abrams
|
|
227
227
|
*/
|
|
228
228
|
|
|
229
|
-
type Props$
|
|
229
|
+
type Props$l = {
|
|
230
230
|
title: React$1.ReactNode;
|
|
231
231
|
children: React$1.ReactNode;
|
|
232
232
|
topRightChildren?: React$1.ReactNode;
|
|
@@ -234,14 +234,14 @@ type Props$k = {
|
|
|
234
234
|
noBottomPadding?: boolean;
|
|
235
235
|
minTitleWidth?: string;
|
|
236
236
|
};
|
|
237
|
-
declare const TabBox: React$1.FC<Props$
|
|
237
|
+
declare const TabBox: React$1.FC<Props$l>;
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
240
|
* A radio selection button
|
|
241
241
|
* @author Gabe Abrams
|
|
242
242
|
*/
|
|
243
243
|
|
|
244
|
-
type Props$
|
|
244
|
+
type Props$k = {
|
|
245
245
|
text: React$1.ReactNode;
|
|
246
246
|
onSelected: () => void;
|
|
247
247
|
ariaLabel: string;
|
|
@@ -255,14 +255,14 @@ type Props$j = {
|
|
|
255
255
|
small?: boolean;
|
|
256
256
|
useComplexFormatting?: boolean;
|
|
257
257
|
};
|
|
258
|
-
declare const RadioButton: React$1.FC<Props$
|
|
258
|
+
declare const RadioButton: React$1.FC<Props$k>;
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* A checkbox button
|
|
262
262
|
* @author Gabe Abrams
|
|
263
263
|
*/
|
|
264
264
|
|
|
265
|
-
type Props$
|
|
265
|
+
type Props$j = {
|
|
266
266
|
text: React$1.ReactNode;
|
|
267
267
|
onChanged: (checked: boolean) => void;
|
|
268
268
|
ariaLabel: string;
|
|
@@ -277,14 +277,14 @@ type Props$i = {
|
|
|
277
277
|
dashed?: boolean;
|
|
278
278
|
useComplexFormatting?: boolean;
|
|
279
279
|
};
|
|
280
|
-
declare const CheckboxButton: React$1.FC<Props$
|
|
280
|
+
declare const CheckboxButton: React$1.FC<Props$j>;
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* Input group with a title and space for buttons
|
|
284
284
|
* @author Gabe Abrams
|
|
285
285
|
*/
|
|
286
286
|
|
|
287
|
-
type Props$
|
|
287
|
+
type Props$i = {
|
|
288
288
|
label: React$1.ReactNode;
|
|
289
289
|
minLabelWidth?: string;
|
|
290
290
|
children: React$1.ReactNode;
|
|
@@ -293,7 +293,7 @@ type Props$h = {
|
|
|
293
293
|
isAdminFeature?: boolean;
|
|
294
294
|
noMarginOnBottom?: boolean;
|
|
295
295
|
};
|
|
296
|
-
declare const ButtonInputGroup: React$1.FC<Props$
|
|
296
|
+
declare const ButtonInputGroup: React$1.FC<Props$i>;
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* A very simple, lightweight date chooser
|
|
@@ -301,7 +301,7 @@ declare const ButtonInputGroup: React$1.FC<Props$h>;
|
|
|
301
301
|
* @author Gardenia Liu
|
|
302
302
|
*/
|
|
303
303
|
|
|
304
|
-
type Props$
|
|
304
|
+
type Props$h = {
|
|
305
305
|
ariaLabel: string;
|
|
306
306
|
name: string;
|
|
307
307
|
month: number;
|
|
@@ -319,14 +319,14 @@ type Props$g = {
|
|
|
319
319
|
dontAllowFuture?: boolean;
|
|
320
320
|
isDisabled?: boolean;
|
|
321
321
|
};
|
|
322
|
-
declare const SimpleDateChooser: React$1.FC<Props$
|
|
322
|
+
declare const SimpleDateChooser: React$1.FC<Props$h>;
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* A very simple, lightweight time chooser
|
|
326
326
|
* @author Gardenia Liu
|
|
327
327
|
*/
|
|
328
328
|
|
|
329
|
-
type Props$
|
|
329
|
+
type Props$g = {
|
|
330
330
|
ariaLabel: string;
|
|
331
331
|
name: string;
|
|
332
332
|
hour: number;
|
|
@@ -340,62 +340,62 @@ type Props$f = {
|
|
|
340
340
|
intervalMin?: number;
|
|
341
341
|
isDisabled?: boolean;
|
|
342
342
|
};
|
|
343
|
-
declare const SimpleTimeChooser: React$1.FC<Props$
|
|
343
|
+
declare const SimpleTimeChooser: React$1.FC<Props$g>;
|
|
344
344
|
|
|
345
345
|
/**
|
|
346
346
|
* Drawer container
|
|
347
347
|
* @author Gabe Abrams
|
|
348
348
|
*/
|
|
349
349
|
|
|
350
|
-
type Props$
|
|
350
|
+
type Props$f = {
|
|
351
351
|
grayBackground?: boolean;
|
|
352
352
|
customBackgroundColor?: string;
|
|
353
353
|
children: React$1.ReactNode;
|
|
354
354
|
};
|
|
355
|
-
declare const Drawer: React$1.FC<Props$
|
|
355
|
+
declare const Drawer: React$1.FC<Props$f>;
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
358
|
* Success checkmark that pops into view
|
|
359
359
|
* @author Gabe Abrams
|
|
360
360
|
*/
|
|
361
361
|
|
|
362
|
-
type Props$
|
|
362
|
+
type Props$e = {
|
|
363
363
|
sizeRem?: number;
|
|
364
364
|
circleVariant?: string;
|
|
365
365
|
checkVariant?: string;
|
|
366
366
|
};
|
|
367
|
-
declare const PopSuccessMark: React$1.FC<Props$
|
|
367
|
+
declare const PopSuccessMark: React$1.FC<Props$e>;
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Failure x mark that pops into view
|
|
371
371
|
* @author Gabe Abrams
|
|
372
372
|
*/
|
|
373
373
|
|
|
374
|
-
type Props$
|
|
374
|
+
type Props$d = {
|
|
375
375
|
sizeRem?: number;
|
|
376
376
|
circleVariant?: string;
|
|
377
377
|
xVariant?: string;
|
|
378
378
|
};
|
|
379
|
-
declare const PopFailureMark: React$1.FC<Props$
|
|
379
|
+
declare const PopFailureMark: React$1.FC<Props$d>;
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
382
|
* Failure pending that pops into view
|
|
383
383
|
* @author Gabe Abrams
|
|
384
384
|
*/
|
|
385
385
|
|
|
386
|
-
type Props$
|
|
386
|
+
type Props$c = {
|
|
387
387
|
sizeRem?: number;
|
|
388
388
|
circleVariant?: string;
|
|
389
389
|
hourglassVariant?: string;
|
|
390
390
|
};
|
|
391
|
-
declare const PopPendingMark: React$1.FC<Props$
|
|
391
|
+
declare const PopPendingMark: React$1.FC<Props$c>;
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
394
|
* Copiable text box
|
|
395
395
|
* @author Gabe Abrams
|
|
396
396
|
*/
|
|
397
397
|
|
|
398
|
-
type Props$
|
|
398
|
+
type Props$b = {
|
|
399
399
|
text: string;
|
|
400
400
|
maxTextWidthRem?: number;
|
|
401
401
|
label?: string;
|
|
@@ -407,7 +407,7 @@ type Props$a = {
|
|
|
407
407
|
textAreaId?: string;
|
|
408
408
|
copyButtonId?: string;
|
|
409
409
|
};
|
|
410
|
-
declare const CopiableBox: React$1.FC<Props$
|
|
410
|
+
declare const CopiableBox: React$1.FC<Props$b>;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* An item that can be chosen (for use within ItemPicker)
|
|
@@ -430,7 +430,7 @@ type PickableItem = ({
|
|
|
430
430
|
* @author Yuen Ler Chow
|
|
431
431
|
*/
|
|
432
432
|
|
|
433
|
-
type Props$
|
|
433
|
+
type Props$a = {
|
|
434
434
|
title: string;
|
|
435
435
|
items: PickableItem[];
|
|
436
436
|
/**
|
|
@@ -442,7 +442,7 @@ type Props$9 = {
|
|
|
442
442
|
noBottomMargin?: boolean;
|
|
443
443
|
hideSelectAllOrNoneButtons?: boolean;
|
|
444
444
|
};
|
|
445
|
-
declare const ItemPicker: React$1.FC<Props$
|
|
445
|
+
declare const ItemPicker: React$1.FC<Props$a>;
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
448
|
* Type of the context map in a LogMetadata file
|
|
@@ -487,11 +487,11 @@ type LogMetadataType = {
|
|
|
487
487
|
* @author Gabe Abrams
|
|
488
488
|
*/
|
|
489
489
|
|
|
490
|
-
type Props$
|
|
490
|
+
type Props$9 = {
|
|
491
491
|
LogMetadata: LogMetadataType;
|
|
492
492
|
onClose: () => void;
|
|
493
493
|
};
|
|
494
|
-
declare const LogReviewer: React$1.FC<Props$
|
|
494
|
+
declare const LogReviewer: React$1.FC<Props$9>;
|
|
495
495
|
|
|
496
496
|
/**
|
|
497
497
|
* Server-side API param types
|
|
@@ -526,7 +526,7 @@ type IntelliTableColumn = {
|
|
|
526
526
|
* @author Gabe Abrams
|
|
527
527
|
*/
|
|
528
528
|
|
|
529
|
-
type Props$
|
|
529
|
+
type Props$8 = {
|
|
530
530
|
title: string;
|
|
531
531
|
id: string;
|
|
532
532
|
data: {
|
|
@@ -536,14 +536,14 @@ type Props$7 = {
|
|
|
536
536
|
columns: IntelliTableColumn[];
|
|
537
537
|
csvName?: string;
|
|
538
538
|
};
|
|
539
|
-
declare const IntelliTable: React$1.FC<Props$
|
|
539
|
+
declare const IntelliTable: React$1.FC<Props$8>;
|
|
540
540
|
|
|
541
541
|
/**
|
|
542
542
|
* Button for downloading a csv file
|
|
543
543
|
* @author Gabe Abrams
|
|
544
544
|
*/
|
|
545
545
|
|
|
546
|
-
type Props$
|
|
546
|
+
type Props$7 = {
|
|
547
547
|
filename: string;
|
|
548
548
|
csv: string;
|
|
549
549
|
label?: string;
|
|
@@ -556,7 +556,7 @@ type Props$6 = {
|
|
|
556
556
|
onClick?: () => void;
|
|
557
557
|
children?: React$1.ReactNode;
|
|
558
558
|
};
|
|
559
|
-
declare const CSVDownloadButton: React$1.FC<Props$
|
|
559
|
+
declare const CSVDownloadButton: React$1.FC<Props$7>;
|
|
560
560
|
|
|
561
561
|
/**
|
|
562
562
|
* Generic type for an object
|
|
@@ -632,7 +632,7 @@ type DBEntryField = ({
|
|
|
632
632
|
* @author Gabe Abrams
|
|
633
633
|
*/
|
|
634
634
|
|
|
635
|
-
type Props$
|
|
635
|
+
type Props$6 = {
|
|
636
636
|
entryFields: DBEntryField[];
|
|
637
637
|
idPropName: string;
|
|
638
638
|
titlePropName: string;
|
|
@@ -658,18 +658,18 @@ type Props$5 = {
|
|
|
658
658
|
[k: string]: any;
|
|
659
659
|
};
|
|
660
660
|
};
|
|
661
|
-
declare const DBEntryManagerPanel: React$1.FC<Props$
|
|
661
|
+
declare const DBEntryManagerPanel: React$1.FC<Props$6>;
|
|
662
662
|
|
|
663
663
|
/**
|
|
664
664
|
* Simple tooltip component
|
|
665
665
|
* @author Gabe Abrams
|
|
666
666
|
*/
|
|
667
667
|
|
|
668
|
-
type Props$
|
|
668
|
+
type Props$5 = {
|
|
669
669
|
text: string;
|
|
670
670
|
children: any;
|
|
671
671
|
};
|
|
672
|
-
declare const Tooltip: React$1.FC<Props$
|
|
672
|
+
declare const Tooltip: React$1.FC<Props$5>;
|
|
673
673
|
|
|
674
674
|
/**
|
|
675
675
|
* A toggle switch that toggles on or off
|
|
@@ -677,7 +677,7 @@ declare const Tooltip: React$1.FC<Props$4>;
|
|
|
677
677
|
* @author Gabe Abrams
|
|
678
678
|
*/
|
|
679
679
|
|
|
680
|
-
type Props$
|
|
680
|
+
type Props$4 = {
|
|
681
681
|
isOn: boolean;
|
|
682
682
|
/**
|
|
683
683
|
* A handler to call when the switch is toggled
|
|
@@ -689,7 +689,7 @@ type Props$3 = {
|
|
|
689
689
|
description: string;
|
|
690
690
|
backgroundVariantWhenOn?: Variant;
|
|
691
691
|
};
|
|
692
|
-
declare const ToggleSwitch: React$1.FC<Props$
|
|
692
|
+
declare const ToggleSwitch: React$1.FC<Props$4>;
|
|
693
693
|
|
|
694
694
|
/**
|
|
695
695
|
* Container that automatically scrolls when new items are added,
|
|
@@ -700,7 +700,7 @@ declare const ToggleSwitch: React$1.FC<Props$3>;
|
|
|
700
700
|
* @author Gabe Abrams
|
|
701
701
|
*/
|
|
702
702
|
|
|
703
|
-
type Props$
|
|
703
|
+
type Props$3 = {
|
|
704
704
|
itemsName?: string;
|
|
705
705
|
items: AutoScrollItem[];
|
|
706
706
|
jumpToBottomButtonVariant?: Variant;
|
|
@@ -711,7 +711,7 @@ type AutoScrollItem = {
|
|
|
711
711
|
id: string | number;
|
|
712
712
|
item: React$1.ReactNode;
|
|
713
713
|
};
|
|
714
|
-
declare const AutoscrollToBottomContainer: React$1.FC<Props$
|
|
714
|
+
declare const AutoscrollToBottomContainer: React$1.FC<Props$3>;
|
|
715
715
|
|
|
716
716
|
/**
|
|
717
717
|
* A switch with multiple options for selection
|
|
@@ -720,7 +720,7 @@ declare const AutoscrollToBottomContainer: React$1.FC<Props$2>;
|
|
|
720
720
|
* @author Austen Money
|
|
721
721
|
*/
|
|
722
722
|
|
|
723
|
-
type Props$
|
|
723
|
+
type Props$2 = {
|
|
724
724
|
options: Option[];
|
|
725
725
|
selectedOptionId: string;
|
|
726
726
|
/**
|
|
@@ -735,7 +735,7 @@ type Option = {
|
|
|
735
735
|
icon: IconProp;
|
|
736
736
|
id: string;
|
|
737
737
|
};
|
|
738
|
-
declare const MultiSwitch: React$1.FC<Props$
|
|
738
|
+
declare const MultiSwitch: React$1.FC<Props$2>;
|
|
739
739
|
|
|
740
740
|
declare enum DropdownItemType {
|
|
741
741
|
Header = "Header",
|
|
@@ -750,7 +750,7 @@ declare enum DropdownItemType {
|
|
|
750
750
|
* @author Gabe Abrams
|
|
751
751
|
*/
|
|
752
752
|
|
|
753
|
-
type Props = {
|
|
753
|
+
type Props$1 = {
|
|
754
754
|
items: DropdownItem[];
|
|
755
755
|
dropdownButton: {
|
|
756
756
|
ariaLabel: string;
|
|
@@ -771,7 +771,37 @@ type DropdownItem = ({
|
|
|
771
771
|
id: string;
|
|
772
772
|
onClick: () => void;
|
|
773
773
|
});
|
|
774
|
-
declare const Dropdown: React$1.FC<Props>;
|
|
774
|
+
declare const Dropdown: React$1.FC<Props$1>;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Progress bar sizes
|
|
778
|
+
* @author Allison Zhang
|
|
779
|
+
*/
|
|
780
|
+
declare enum ProgressBarSize {
|
|
781
|
+
Small = "Small",
|
|
782
|
+
Medium = "Medium",
|
|
783
|
+
Large = "Large"
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Customizable Progress Bar component using Bootstrap styles
|
|
788
|
+
* @author Allison Zhang
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
type Props = (({
|
|
792
|
+
percentProgress: number;
|
|
793
|
+
numDecimalPlaces?: number;
|
|
794
|
+
} | {
|
|
795
|
+
numComplete: number;
|
|
796
|
+
total: number;
|
|
797
|
+
}) & {
|
|
798
|
+
striped?: boolean;
|
|
799
|
+
variant?: Variant;
|
|
800
|
+
bgVariant?: Variant;
|
|
801
|
+
showOutline?: boolean;
|
|
802
|
+
size?: ProgressBarSize;
|
|
803
|
+
});
|
|
804
|
+
declare const ProgressBar: React$1.FC<Props>;
|
|
775
805
|
|
|
776
806
|
/**
|
|
777
807
|
* An error with a code
|
|
@@ -1719,4 +1749,4 @@ type LogReviewerFilterState = {
|
|
|
1719
1749
|
advancedFilterState: AdvancedFilterState;
|
|
1720
1750
|
};
|
|
1721
1751
|
|
|
1722
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LOG_REVIEW_GET_LOGS_ROUTE, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogReviewerFilterState, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SELECT_ADMIN_CHECK_ROUTE, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, cloneDeep, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, getTimestampFromTimeInfoInET, getWordCount, idify, initClient, isMobileOrTablet, isSelectAdmin, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
1752
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LOG_REVIEW_GET_LOGS_ROUTE, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogReviewerFilterState, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, ProgressBar, RadioButton, ReactKitErrorCode, SELECT_ADMIN_CHECK_ROUTE, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, cloneDeep, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, getTimestampFromTimeInfoInET, getWordCount, idify, initClient, isMobileOrTablet, isSelectAdmin, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|