@aloudata/aloudata-design 2.12.3 → 2.12.4-beta.1

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.
@@ -73,18 +73,27 @@
73
73
  cursor: col-resize;
74
74
  user-select: none;
75
75
  touch-action: none;
76
+ background: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
76
77
 
77
78
  &::after {
79
+ position: absolute;
78
80
  content: '';
79
81
  display: block;
80
- height: 100%;
82
+ height: 16px;
81
83
  width: 1px;
82
- position: absolute;
83
- top: 50%;
84
- right: -1px;
85
84
  z-index: 1;
86
- transform: translateY(-50%);
87
- background-color: var(--alias-colors-border-default, #e5e7eb);
85
+ top: 50%;
86
+ transform: translate(4px, -50%);
87
+ background: var(--alias-colors-border-strong, #d1d5db);
88
+ }
89
+
90
+ &.ald-table-self-resizing {
91
+ width: 2px;
92
+ background-color: #126fdd;
93
+
94
+ &::after {
95
+ display: none;
96
+ }
88
97
  }
89
98
  }
90
99
 
@@ -174,6 +183,7 @@
174
183
  padding: @td-padding-size;
175
184
  font-size: 12px;
176
185
  overflow: hidden;
186
+ white-space: nowrap;
177
187
  height: @header-height;
178
188
  display: flex;
179
189
  align-items: center;
@@ -320,7 +330,7 @@
320
330
  }
321
331
 
322
332
  .ald-table-header {
323
- background-color: #fff;
333
+ background: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
324
334
  }
325
335
 
326
336
  .ald-table-header-scroll-placeholder {
@@ -362,7 +372,13 @@
362
372
  align-items: center;
363
373
  width: 100%;
364
374
  height: 100%;
365
- justify-content: center;
375
+ }
376
+
377
+ .ald-table-row-selection-all-header-wrap {
378
+ padding: 0 16px;
379
+ display: flex;
380
+ align-items: center;
381
+ height: 100%;
366
382
  }
367
383
 
368
384
  /** Footer **/
@@ -0,0 +1,14 @@
1
+ export declare function getTableProps(): {
2
+ columns: import("../types").ITableColumn<object>[];
3
+ data: {
4
+ id: string;
5
+ firstName: string;
6
+ lastName: string;
7
+ date: string;
8
+ description: string;
9
+ }[];
10
+ scroll: {
11
+ x: string;
12
+ y: string;
13
+ };
14
+ };
@@ -0,0 +1,41 @@
1
+ import _ from 'lodash';
2
+ export function getTableProps() {
3
+ var columns = [{
4
+ title: 'First Name',
5
+ dataIndex: 'firstName',
6
+ width: '20%'
7
+ }, {
8
+ title: 'Last Name',
9
+ dataIndex: 'lastName',
10
+ width: '20%'
11
+ }, {
12
+ title: 'Date',
13
+ dataIndex: 'date',
14
+ width: '20%'
15
+ }, {
16
+ title: 'description',
17
+ dataIndex: 'description',
18
+ width: '30%'
19
+ }, {
20
+ title: 'Action',
21
+ dataIndex: '',
22
+ width: 60
23
+ }];
24
+ var data = _.map(_.range(10), function (i) {
25
+ return {
26
+ id: i.toString(),
27
+ firstName: "firstName_".concat(i),
28
+ lastName: "lastName_".concat(i),
29
+ date: "date_".concat(i),
30
+ description: "description_".concat(i)
31
+ };
32
+ });
33
+ return {
34
+ columns: columns,
35
+ data: data,
36
+ scroll: {
37
+ x: '100%',
38
+ y: '100%'
39
+ }
40
+ };
41
+ }
@@ -41,6 +41,7 @@ export interface ITableColumn<TDataItem = unknown> {
41
41
  title: string | React.ReactNode;
42
42
  dataIndex?: string;
43
43
  width?: number | string;
44
+ minWidth?: number;
44
45
  render?: (text: any, record: TDataItem, rowIndex: number) => React.ReactNode;
45
46
  ellipsis?: boolean;
46
47
  noPadding?: boolean;