amotify 0.0.45 → 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.
- package/@types/fn.tsx +7 -2
- package/dist/amotify.js +2 -2
- package/dist/amotify.min.css +1 -1
- package/dist/coreVender.js +1 -1
- package/package.json +1 -1
- package/src/functions/Input/Time/Picker.tsx +428 -5
- package/src/functions/Input/Time/_.tsx +26 -12
- package/src/functions/Input/_.tsx +38 -25
- package/src/functions/Layout/RootViewController/parts.tsx +1 -0
- package/src/functions/Sheet/parts.tsx +1 -0
- package/src/functions/Table/Data/parts.tsx +7 -2
- package/src/functions/Tooltips/parts.tsx +2 -2
|
@@ -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
|
-
|
|
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={
|
|
43
|
+
padding={ '1/2' }
|
|
44
44
|
backgroundColor='dark'
|
|
45
45
|
borderRadius={ '2.tone.secondary' }
|
|
46
46
|
fontColor='white'
|
|
47
|
-
boxShadow={
|
|
47
|
+
boxShadow={ 1 }
|
|
48
48
|
{ ...params }
|
|
49
49
|
/> )
|
|
50
50
|
}
|