@drayman/elements 1.7.1 → 1.10.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.
@@ -39,6 +39,7 @@ export interface DraymanGrid {
39
39
  selectedCells: GridCell[];
40
40
  clearPrevious: boolean;
41
41
  }>;
42
+ gridRef?: string;
42
43
  }
43
44
  export interface GridCell {
44
45
  row: number;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drayman/elements",
3
- "version": "1.7.1",
3
+ "version": "1.10.0",
4
4
  "description": "A collection of web components for Drayman.",
5
5
  "license": "MIT",
6
6
  "keywords": [