@drayman/elements 1.8.0 → 1.9.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.
|
@@ -213,7 +213,7 @@ export interface DraymanTable {
|
|
|
213
213
|
rowIndex: number;
|
|
214
214
|
}>;
|
|
215
215
|
}
|
|
216
|
-
export declare type CellType = 'text' | 'text-field' | 'button' | 'number-field' | 'select' | 'file-uploader' | 'checkbox' | 'datepicker' | 'timepicker';
|
|
216
|
+
export declare type CellType = 'text' | 'text-field' | 'button' | 'number-field' | 'select' | 'file-uploader' | 'checkbox' | 'datepicker' | 'timepicker' | 'progress';
|
|
217
217
|
export interface GridCellBase {
|
|
218
218
|
type?: CellType;
|
|
219
219
|
style?: any;
|
|
@@ -308,6 +308,12 @@ export interface DraymanTableCheckboxCell extends DraymanTableCellBase<boolean>
|
|
|
308
308
|
*/
|
|
309
309
|
disabled?: boolean;
|
|
310
310
|
}
|
|
311
|
+
export interface DraymanTableProgressCell extends DraymanTableCellBase<number> {
|
|
312
|
+
type: 'progress';
|
|
313
|
+
barLabel?: any;
|
|
314
|
+
labelStyle?: any;
|
|
315
|
+
barStyle?: any;
|
|
316
|
+
}
|
|
311
317
|
export interface DraymanTableDatepickerCell extends DraymanTableCellBase<string> {
|
|
312
318
|
type: 'datepicker';
|
|
313
319
|
/**
|
|
@@ -404,7 +410,7 @@ export interface DraymanTableButton {
|
|
|
404
410
|
selectionButton?: boolean;
|
|
405
411
|
}
|
|
406
412
|
export declare type DraymanTableRow = {
|
|
407
|
-
[field: string]: DraymanTableTextCell | DraymanTableTextFieldCell | DraymanTableButtonCell | DraymanTableNumberFieldCell | DraymanTableSelectCell | DraymanTableFileUploaderCell | DraymanTableCheckboxCell | DraymanTableDatepickerCell | DraymanTableTimepickerCell;
|
|
413
|
+
[field: string]: DraymanTableProgressCell | DraymanTableTextCell | DraymanTableTextFieldCell | DraymanTableButtonCell | DraymanTableNumberFieldCell | DraymanTableSelectCell | DraymanTableFileUploaderCell | DraymanTableCheckboxCell | DraymanTableDatepickerCell | DraymanTableTimepickerCell;
|
|
408
414
|
};
|
|
409
415
|
export interface DraymanTableColumn {
|
|
410
416
|
label: string;
|
|
@@ -433,6 +439,9 @@ export interface GridTimepickerCell extends GridCellBase {
|
|
|
433
439
|
type: 'timepicker';
|
|
434
440
|
options: DraymanTimepicker;
|
|
435
441
|
}
|
|
442
|
+
export interface GridProgressCell extends GridCellBase {
|
|
443
|
+
type: 'progress';
|
|
444
|
+
}
|
|
436
445
|
export interface GridFileUploaderCell extends GridCellBase {
|
|
437
446
|
type: 'file-uploader';
|
|
438
447
|
options: DraymanFileUploader;
|
|
@@ -452,4 +461,4 @@ export interface GridButtonCell extends GridCellBase {
|
|
|
452
461
|
export interface GridTextCell extends GridCellBase {
|
|
453
462
|
type: 'text';
|
|
454
463
|
}
|
|
455
|
-
export declare type GridCellType = GridTextCell | GridTextFieldCell | GridButtonCell | GridNumberFieldCell | GridSelectCell | GridFileUploaderCell | GridCheckboxCell | GridDatepickerCell | GridTimepickerCell;
|
|
464
|
+
export declare type GridCellType = GridTextCell | GridTextFieldCell | GridButtonCell | GridNumberFieldCell | GridSelectCell | GridFileUploaderCell | GridCheckboxCell | GridDatepickerCell | GridTimepickerCell | GridProgressCell;
|