ados-rcm 1.0.52 → 1.0.54

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.
@@ -55,18 +55,6 @@ export interface IATableDef<T extends IItem> {
55
55
  * Description : width of the column
56
56
  */
57
57
  width?: TCanCallback<IATableTHProps<T>, number>;
58
- /**
59
- * maxWidth? : TCanCallback<IATableTHProps<T>, number>
60
- *
61
- * Description : maxWidth of the column
62
- */
63
- maxWidth?: TCanCallback<IATableTHProps<T>, number>;
64
- /**
65
- * minWidth? : TCanCallback<IATableTHProps<T>, number>
66
- *
67
- * Description : minWidth of the column
68
- */
69
- minWidth?: TCanCallback<IATableTHProps<T>, number>;
70
58
  /**
71
59
  * align? : TCanCallback<IATableTHProps<T>, React.CSSProperties['justifyContent']>
72
60
  *
@@ -86,17 +74,11 @@ export interface IATableDef<T extends IItem> {
86
74
  */
87
75
  hContent?: TCanCallback<IATableTHProps<T>, React.ReactNode>;
88
76
  /**
89
- * hColor? : TCanCallback<IATableTHProps<T>, React.CSSProperties['color']>
77
+ * hStyle? : TCanCallback<IATableTHProps<T>, React.CSSProperties>
90
78
  *
91
- * Description : color of the th
79
+ * Description : style of the th. I woudn't touch width, minWidth, maxWidth if I were you.
92
80
  */
93
- hColor?: TCanCallback<IATableTHProps<T>, React.CSSProperties['color']>;
94
- /**
95
- * hBackgroundColor? : TCanCallback<IATableTHProps<T>, React.CSSProperties['backgroundColor']>
96
- *
97
- * Description : backgroundColor of the th
98
- */
99
- hBackgroundColor?: TCanCallback<IATableTHProps<T>, React.CSSProperties['backgroundColor']>;
81
+ hStyle?: TCanCallback<IATableTHProps<T>, React.CSSProperties>;
100
82
  /**
101
83
  * isSortable? : boolean
102
84
  *
@@ -128,17 +110,11 @@ export interface IATableDef<T extends IItem> {
128
110
  */
129
111
  asText?: TCanCallback<IATableTDProps<T>, string | number>;
130
112
  /**
131
- * color? : TCanCallback<IATableTDProps<T>, React.CSSProperties['color']>
132
- *
133
- * Description : color of the td
134
- */
135
- color?: TCanCallback<IATableTDProps<T>, React.CSSProperties['color']>;
136
- /**
137
- * backgroundColor? : TCanCallback<IATableTDProps<T>, React.CSSProperties['backgroundColor']>
113
+ * style? : TCanCallback<IATableTDProps<T>, React.CSSProperties>
138
114
  *
139
- * Description : backgroundColor of the td
115
+ * Description : style of the td. I woudn't touch width, minWidth, maxWidth, flexGrow if I were you.
140
116
  */
141
- backgroundColor?: TCanCallback<IATableTDProps<T>, React.CSSProperties['backgroundColor']>;
117
+ style?: TCanCallback<IATableTDProps<T>, React.CSSProperties>;
142
118
  }
143
119
  export type TATableDefs<T extends IItem> = {
144
120
  [key in Exclude<keyof T, symbol>]?: IATableDef<T>;
@@ -1,8 +1,8 @@
1
+ import React from 'react';
2
+ import { TUseValues } from '../../AHooks/useValues';
1
3
  import { TCanCallback } from '../../AUtils/cbF';
2
4
  import { IItem } from '../../AUtils/objF';
3
5
  import { IATablePagination, IATableSortation, IATableTRProps, TATableDefs, TATableFilteration } from './ATable';
4
- import { TUseValues } from '../../AHooks/useValues';
5
- import React from 'react';
6
6
  interface IATableBodyProps<T extends IItem> {
7
7
  defs: TATableDefs<T>;
8
8
  rProps?: TCanCallback<IATableTRProps<T>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>>;