amotify 0.0.44 → 0.0.46

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.
@@ -246,6 +246,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
246
246
  />;
247
247
  },
248
248
  Bar: ( params ) => ( <Box
249
+ flexSizing={ 'none' }
249
250
  backgroundColor={ 'lcOpMiddle' }
250
251
  unitHeight={ '1/3' }
251
252
  margin={ [ '2/3',1 ] }
@@ -752,6 +752,7 @@ const Comps = {
752
752
  data-sheet-content={ val_componentID }
753
753
  maxHeight={ 'viewHeight' }
754
754
  overflow={ 'auto' }
755
+ padding={ 1 }
755
756
  { ...others }
756
757
  freeCSS={ {
757
758
  maxWidth: '98vw',
@@ -63,6 +63,9 @@ type DataTableOptionParams = {
63
63
  ( params: amotify.fn.Tables.StylesCallbackInput ): amotifyUniStyleParams
64
64
  }
65
65
  onRowClick?: amotify.fn.Tables.OnRowClick
66
+ onOrderChanged?: {
67
+ ( args: amotify.fn.Tables.Data.OrderParams ): void
68
+ }
66
69
  }
67
70
 
68
71
  const Components = {
@@ -76,7 +79,6 @@ const Components = {
76
79
  let {
77
80
  val_status,
78
81
  set_status,
79
-
80
82
  KeywordFilterRows
81
83
  } = { ...params };
82
84
 
@@ -325,8 +327,10 @@ const Components = {
325
327
  onClick={ ( event ) => {
326
328
  if ( orderable ) {
327
329
  let newOptions = { ...val_status }
328
- newOptions.order.current = [ colIndex,orderIndex === colIndex && orderDirection == 'ASC' ? 'DESC' : 'ASC' ];
330
+ let orderObject: amotify.fn.Tables.Data.OrderParams = [ colIndex,orderIndex === colIndex && orderDirection == 'ASC' ? 'DESC' : 'ASC' ];
331
+ newOptions.order.current = orderObject;
329
332
  set_status( newOptions );
333
+ val_status.onOrderChanged && val_status.onOrderChanged( orderObject );
330
334
  }
331
335
  } }
332
336
  >
@@ -751,6 +755,7 @@ const Components = {
751
755
  cellClassName: params.cellClassName || '',
752
756
  cellStylesCallback: params.cellStylesCallback,
753
757
  onRowClick: params.onRowClick,
758
+ onOrderChanged: params.onOrderChanged
754
759
  }
755
760
  let [ val_status,set_status ] = React.useState( DefStatus );
756
761
 
@@ -40,11 +40,11 @@ const Tooltips: amotify.fn.Tooltips.Methods = {
40
40
  },
41
41
  Comps: {
42
42
  Body: ( params ) => ( <Box
43
- padding={ [ '1/3','2/3' ] }
43
+ padding={ '1/2' }
44
44
  backgroundColor='dark'
45
45
  borderRadius={ '2.tone.secondary' }
46
46
  fontColor='white'
47
- boxShadow={ 2 }
47
+ boxShadow={ 1 }
48
48
  { ...params }
49
49
  /> )
50
50
  }