amotify 0.0.59 → 0.0.60
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/_.tsx +5 -5
- package/@types/amot.tsx +11 -11
- package/@types/fn.tsx +1 -1
- package/@types/module.tsx +1 -1
- package/dist/amotify.js +1 -1
- package/dist/amotify.min.css +3 -3
- package/package.json +1 -1
- package/src/@atoms.tsx +3 -3
- package/src/@functions.tsx +11 -11
- package/src/@global.tsx +40 -40
- package/src/@jsminAmotifyExtension/_.tsx +4 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +30 -30
- package/src/@jsminAmotifyExtension/formCollect.tsx +32 -32
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +71 -71
- package/src/@jsminAmotifyExtension/variables.tsx +38 -38
- package/src/@molecules.tsx +6 -6
- package/src/@styles/props.scss +1 -1
- package/src/@styles/var.scss +0 -1
- package/src/@templates.tsx +1 -1
- package/src/@variables.tsx +2 -2
- package/src/atoms/FAI/parts.tsx +105 -105
- package/src/atoms/Logo/parts.tsx +19 -19
- package/src/atoms/Various/parts.tsx +26 -26
- package/src/config.tsx +62 -59
- package/src/functions/Button/_.tsx +49 -49
- package/src/functions/Cropper/parts.tsx +249 -249
- package/src/functions/Effects/Fade.tsx +18 -18
- package/src/functions/Effects/Ripple.tsx +24 -24
- package/src/functions/Effects/_.tsx +5 -5
- package/src/functions/Input/Chips/Selector.tsx +107 -107
- package/src/functions/Input/Chips/_.tsx +66 -66
- package/src/functions/Input/Contenteditable.tsx +18 -18
- package/src/functions/Input/DigitCharacters.tsx +48 -48
- package/src/functions/Input/File/_.tsx +114 -114
- package/src/functions/Input/Hidden.tsx +3 -3
- package/src/functions/Input/List/_.tsx +61 -61
- package/src/functions/Input/RichSelect/_.tsx +38 -38
- package/src/functions/Input/Segmented/_.tsx +30 -30
- package/src/functions/Input/Select/_.tsx +42 -42
- package/src/functions/Input/Slider/_.tsx +93 -93
- package/src/functions/Input/Switch/_.tsx +21 -21
- package/src/functions/Input/Text.tsx +99 -97
- package/src/functions/Input/TextArea.tsx +17 -17
- package/src/functions/Input/Time/Picker.tsx +199 -199
- package/src/functions/Input/Time/_.tsx +173 -173
- package/src/functions/Input/_.tsx +135 -135
- package/src/functions/Input/core.tsx +96 -96
- package/src/functions/Inputs/_.tsx +1 -1
- package/src/functions/Inputs/text.tsx +5 -5
- package/src/functions/Layout/PageNotFound.tsx +6 -6
- package/src/functions/Layout/PageRouter.tsx +34 -34
- package/src/functions/Layout/PageViewController/parts.tsx +7 -7
- package/src/functions/Layout/Plate.tsx +5 -5
- package/src/functions/Layout/RootViewController/parts.tsx +53 -53
- package/src/functions/Layout/SwipeView/parts.tsx +90 -90
- package/src/functions/Layout/TabBar.tsx +10 -10
- package/src/functions/Layout/_.tsx +7 -7
- package/src/functions/Loader/corner.tsx +10 -10
- package/src/functions/Loader/mini.tsx +25 -25
- package/src/functions/Loader/parts.tsx +31 -31
- package/src/functions/Loader/top.tsx +10 -10
- package/src/functions/Sheet/parts.tsx +219 -219
- package/src/functions/Sheet/style.module.scss +0 -20
- package/src/functions/SnackBar/parts.tsx +50 -50
- package/src/functions/Table/Data/parts.tsx +202 -202
- package/src/functions/Table/Drag/parts.tsx +76 -76
- package/src/functions/Table/Normal/parts.tsx +23 -23
- package/src/functions/Table/_.tsx +33 -33
- package/src/functions/Tooltips/parts.tsx +7 -7
- package/src/global/LaunchReactApplication.tsx +28 -28
- package/src/global/styleConverter.tsx +133 -133
- package/src/launch.tsx +27 -27
- package/src/molecules/Accordion/parts.tsx +41 -41
- package/src/molecules/LinkifyText/parts.tsx +18 -18
- package/src/molecules/List.tsx +6 -6
- package/src/preload.tsx +5 -45
- package/src/templates/PlayGround/parts.tsx +8 -8
- package/webpack.config.js +9 -9
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useStore,
|
|
3
3
|
React
|
|
4
|
-
} from '@global'
|
|
4
|
+
} from '@global'
|
|
5
5
|
import {
|
|
6
6
|
Flex,
|
|
7
7
|
Box,
|
|
8
8
|
Span,
|
|
9
9
|
FAI
|
|
10
|
-
} from '@atoms'
|
|
10
|
+
} from '@atoms'
|
|
11
11
|
import {
|
|
12
12
|
Column,
|
|
13
13
|
Row,Text
|
|
14
|
-
} from '@mols'
|
|
14
|
+
} from '@mols'
|
|
15
15
|
import {
|
|
16
16
|
Buttons,
|
|
17
17
|
Input,
|
|
18
18
|
Sheet,
|
|
19
|
-
} from '@fn'
|
|
19
|
+
} from '@fn'
|
|
20
20
|
|
|
21
|
-
import { faArrowUp } from '@fortawesome/free-solid-svg-icons/faArrowUp'
|
|
22
|
-
import { faArrowDown } from '@fortawesome/free-solid-svg-icons/faArrowDown'
|
|
23
|
-
import { faArrowRight } from '@fortawesome/free-solid-svg-icons/faArrowRight'
|
|
24
|
-
import { faFilter } from '@fortawesome/free-solid-svg-icons/faFilter'
|
|
21
|
+
import { faArrowUp } from '@fortawesome/free-solid-svg-icons/faArrowUp'
|
|
22
|
+
import { faArrowDown } from '@fortawesome/free-solid-svg-icons/faArrowDown'
|
|
23
|
+
import { faArrowRight } from '@fortawesome/free-solid-svg-icons/faArrowRight'
|
|
24
|
+
import { faFilter } from '@fortawesome/free-solid-svg-icons/faFilter'
|
|
25
25
|
|
|
26
|
-
import style from '../style.module.scss'
|
|
26
|
+
import style from '../style.module.scss'
|
|
27
27
|
|
|
28
28
|
import {
|
|
29
29
|
Comps,
|
|
30
30
|
DefaultCellSystemStyles,
|
|
31
|
-
} from '../_'
|
|
31
|
+
} from '../_'
|
|
32
32
|
|
|
33
33
|
type DataTableOptionParams = {
|
|
34
34
|
tableID: string
|
|
@@ -80,17 +80,17 @@ const Components = {
|
|
|
80
80
|
val_status,
|
|
81
81
|
set_status,
|
|
82
82
|
KeywordFilterRows
|
|
83
|
-
} = { ...params }
|
|
83
|
+
} = { ...params }
|
|
84
84
|
|
|
85
85
|
let {
|
|
86
86
|
order,
|
|
87
87
|
filter
|
|
88
|
-
} = val_status
|
|
89
|
-
let [ orderIndex,orderDirection ] = order.current
|
|
88
|
+
} = val_status
|
|
89
|
+
let [ orderIndex,orderDirection ] = order.current
|
|
90
90
|
|
|
91
|
-
let Cols = []
|
|
91
|
+
let Cols = []
|
|
92
92
|
|
|
93
|
-
let HEAD = [ ...val_status.head ]
|
|
93
|
+
let HEAD = [ ...val_status.head ]
|
|
94
94
|
if ( val_status.checker ) {
|
|
95
95
|
Cols.push( <Comps.TH
|
|
96
96
|
{ ...val_status.cellStyles }
|
|
@@ -128,10 +128,10 @@ const Components = {
|
|
|
128
128
|
label={ null }
|
|
129
129
|
value={ false }
|
|
130
130
|
onUpdateValidValue={ ( { value } ) => {
|
|
131
|
-
let newRows = val_status.rows
|
|
131
|
+
let newRows = val_status.rows
|
|
132
132
|
newRows.forEach( ( rows ) => {
|
|
133
|
-
rows.checked = value
|
|
134
|
-
} )
|
|
133
|
+
rows.checked = value
|
|
134
|
+
} )
|
|
135
135
|
set_status( {
|
|
136
136
|
...val_status,
|
|
137
137
|
rows: newRows
|
|
@@ -139,17 +139,17 @@ const Components = {
|
|
|
139
139
|
} }
|
|
140
140
|
/>
|
|
141
141
|
</Box>
|
|
142
|
-
</Comps.TH> )
|
|
142
|
+
</Comps.TH> )
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
for ( let colIndex = 0; colIndex < val_status.colLength; colIndex++ ) {
|
|
146
|
-
let col = HEAD[ colIndex ]
|
|
147
|
-
if ( !col ) continue
|
|
146
|
+
let col = HEAD[ colIndex ]
|
|
147
|
+
if ( !col ) continue
|
|
148
148
|
|
|
149
|
-
let DisplayLabel = col.children || col.data
|
|
149
|
+
let DisplayLabel = col.children || col.data
|
|
150
150
|
|
|
151
|
-
let orderable = order.enabled && order.column[ colIndex ]
|
|
152
|
-
let filterable = filter.enabled && filter.column[ colIndex ]
|
|
151
|
+
let orderable = order.enabled && order.column[ colIndex ]
|
|
152
|
+
let filterable = filter.enabled && filter.column[ colIndex ]
|
|
153
153
|
|
|
154
154
|
let OrderButton = orderable ? <FAI
|
|
155
155
|
fontSize={ '1.mini' }
|
|
@@ -159,23 +159,23 @@ const Components = {
|
|
|
159
159
|
? faArrowDown
|
|
160
160
|
: faArrowUp
|
|
161
161
|
: faArrowRight }
|
|
162
|
-
/> : null
|
|
162
|
+
/> : null
|
|
163
163
|
|
|
164
|
-
let FilterButton =
|
|
164
|
+
let FilterButton = <></>
|
|
165
165
|
if ( filterable ) {
|
|
166
166
|
let ColumnDatas = KeywordFilterRows.map( ( row ) => {
|
|
167
|
-
return row[ colIndex ]?.data
|
|
168
|
-
} )
|
|
167
|
+
return row[ colIndex ]?.data
|
|
168
|
+
} )
|
|
169
169
|
ColumnDatas = [ ... new Set( ColumnDatas ) ].order( {
|
|
170
170
|
direction: 'ASC',
|
|
171
|
-
} )
|
|
172
|
-
let filterList: any = filter.current[ colIndex ]
|
|
171
|
+
} )
|
|
172
|
+
let filterList: any = filter.current[ colIndex ]
|
|
173
173
|
|
|
174
174
|
if ( filterList ) {
|
|
175
|
-
let ValueList = ColumnDatas.filter( ( data ) => !filterList.includes( data ) )
|
|
176
|
-
let SelectList: amotify.fn.Input.List.OptionParams[] = []
|
|
175
|
+
let ValueList = ColumnDatas.filter( ( data ) => !filterList.includes( data ) )
|
|
176
|
+
let SelectList: amotify.fn.Input.List.OptionParams[] = []
|
|
177
177
|
ColumnDatas.forEach( ( data ) => {
|
|
178
|
-
if ( !data ) return
|
|
178
|
+
if ( !data ) return
|
|
179
179
|
SelectList.push( {
|
|
180
180
|
value: data,
|
|
181
181
|
label: <Box
|
|
@@ -183,11 +183,11 @@ const Components = {
|
|
|
183
183
|
>
|
|
184
184
|
{ data }
|
|
185
185
|
</Box>
|
|
186
|
-
} )
|
|
187
|
-
} )
|
|
186
|
+
} )
|
|
187
|
+
} )
|
|
188
188
|
|
|
189
|
-
let FilterModaButtonID = 'BUTTON-' + val_status.componentID + '-' + colIndex
|
|
190
|
-
let FilterSheetID = val_status.componentID + '-' + colIndex
|
|
189
|
+
let FilterModaButtonID = 'BUTTON-' + val_status.componentID + '-' + colIndex
|
|
190
|
+
let FilterSheetID = val_status.componentID + '-' + colIndex
|
|
191
191
|
|
|
192
192
|
let SheetParams: amotify.fn.Sheet.Params = {
|
|
193
193
|
sheetID: FilterSheetID,
|
|
@@ -228,11 +228,11 @@ const Components = {
|
|
|
228
228
|
padding: '2/3'
|
|
229
229
|
} }
|
|
230
230
|
onUpdateValidValue={ ( { value } ) => {
|
|
231
|
-
let DropValues = ColumnDatas.filter( ( data ) => !value.includes( data ) )
|
|
231
|
+
let DropValues = ColumnDatas.filter( ( data ) => !value.includes( data ) )
|
|
232
232
|
let newOptions = { ...val_status }
|
|
233
|
-
newOptions.filter.current[ colIndex ] = DropValues as string[]
|
|
233
|
+
newOptions.filter.current[ colIndex ] = DropValues as string[]
|
|
234
234
|
|
|
235
|
-
set_status( newOptions )
|
|
235
|
+
set_status( newOptions )
|
|
236
236
|
} }
|
|
237
237
|
/>
|
|
238
238
|
</Column>
|
|
@@ -244,7 +244,7 @@ const Components = {
|
|
|
244
244
|
<Buttons.Button.Border.S
|
|
245
245
|
isRounded
|
|
246
246
|
onClick={ () => {
|
|
247
|
-
Sheet.close( FilterSheetID )
|
|
247
|
+
Sheet.close( FilterSheetID )
|
|
248
248
|
} }
|
|
249
249
|
>
|
|
250
250
|
閉じる
|
|
@@ -254,13 +254,13 @@ const Components = {
|
|
|
254
254
|
isRounded
|
|
255
255
|
ssEffectsOnActive='shrink'
|
|
256
256
|
onClick={ () => {
|
|
257
|
-
let newFilterList = [] as string[]
|
|
258
|
-
if ( !filterList.length ) newFilterList = ColumnDatas as string[]
|
|
257
|
+
let newFilterList = [] as string[]
|
|
258
|
+
if ( !filterList.length ) newFilterList = ColumnDatas as string[]
|
|
259
259
|
|
|
260
260
|
let newOptions = { ...val_status }
|
|
261
|
-
newOptions.filter.current[ colIndex ] = newFilterList
|
|
261
|
+
newOptions.filter.current[ colIndex ] = newFilterList
|
|
262
262
|
|
|
263
|
-
set_status( newOptions )
|
|
263
|
+
set_status( newOptions )
|
|
264
264
|
} }
|
|
265
265
|
>
|
|
266
266
|
全選択
|
|
@@ -269,7 +269,7 @@ const Components = {
|
|
|
269
269
|
</Flex>
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
Sheet.refresh( SheetParams,true )
|
|
272
|
+
Sheet.refresh( SheetParams,true )
|
|
273
273
|
|
|
274
274
|
FilterButton = <Box className={ style.FilterRegion }>
|
|
275
275
|
<Buttons.Button.Sub.S
|
|
@@ -278,8 +278,8 @@ const Components = {
|
|
|
278
278
|
className={ style[ 'Filtering_' + !!filterList.length ] }
|
|
279
279
|
id={ FilterModaButtonID }
|
|
280
280
|
onClick={ ( event ) => {
|
|
281
|
-
event.stopPropagation()
|
|
282
|
-
Sheet.open( SheetParams )
|
|
281
|
+
event.stopPropagation()
|
|
282
|
+
Sheet.open( SheetParams )
|
|
283
283
|
} }
|
|
284
284
|
>
|
|
285
285
|
<FAI icon={ faFilter } />
|
|
@@ -327,10 +327,10 @@ const Components = {
|
|
|
327
327
|
onClick={ ( event ) => {
|
|
328
328
|
if ( orderable ) {
|
|
329
329
|
let newOptions = { ...val_status }
|
|
330
|
-
let orderObject: amotify.fn.Tables.Data.OrderParams = [ colIndex,orderIndex === colIndex && orderDirection == 'ASC' ? 'DESC' : 'ASC' ]
|
|
331
|
-
newOptions.order.current = orderObject
|
|
332
|
-
set_status( newOptions )
|
|
333
|
-
val_status.onOrderChanged && val_status.onOrderChanged( orderObject )
|
|
330
|
+
let orderObject: amotify.fn.Tables.Data.OrderParams = [ colIndex,orderIndex === colIndex && orderDirection == 'ASC' ? 'DESC' : 'ASC' ]
|
|
331
|
+
newOptions.order.current = orderObject
|
|
332
|
+
set_status( newOptions )
|
|
333
|
+
val_status.onOrderChanged && val_status.onOrderChanged( orderObject )
|
|
334
334
|
}
|
|
335
335
|
} }
|
|
336
336
|
>
|
|
@@ -354,13 +354,13 @@ const Components = {
|
|
|
354
354
|
{ DisplayLabel }
|
|
355
355
|
</Flex>
|
|
356
356
|
</Flex>
|
|
357
|
-
</Comps.TH> )
|
|
357
|
+
</Comps.TH> )
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
return <Comps.Row
|
|
361
361
|
className={ [ style.Row,style.HeadRow ].join( ' ' ) }
|
|
362
362
|
children={ Cols }
|
|
363
|
-
|
|
363
|
+
/>
|
|
364
364
|
},
|
|
365
365
|
Body: ( params: {
|
|
366
366
|
val_status: DataTableOptionParams
|
|
@@ -370,12 +370,12 @@ const Components = {
|
|
|
370
370
|
let {
|
|
371
371
|
val_status,
|
|
372
372
|
PageRows
|
|
373
|
-
} = params
|
|
373
|
+
} = params
|
|
374
374
|
|
|
375
|
-
let BodyRows: ReactElement[] = []
|
|
375
|
+
let BodyRows: ReactElement[] = []
|
|
376
376
|
PageRows.forEach( ( row,rowIndex ) => {
|
|
377
|
-
let ROW = [ ...row ]
|
|
378
|
-
let Cols: ReactElement[] = []
|
|
377
|
+
let ROW = [ ...row ]
|
|
378
|
+
let Cols: ReactElement[] = []
|
|
379
379
|
|
|
380
380
|
if ( val_status.checker ) {
|
|
381
381
|
Cols.push( <Comps.TH
|
|
@@ -410,24 +410,24 @@ const Components = {
|
|
|
410
410
|
value={ row.checked }
|
|
411
411
|
override='force'
|
|
412
412
|
onUpdateValidValue={ ( { value } ) => {
|
|
413
|
-
let newRows = val_status.rows
|
|
414
|
-
newRows[ rowIndex ].checked = value
|
|
413
|
+
let newRows = val_status.rows
|
|
414
|
+
newRows[ rowIndex ].checked = value
|
|
415
415
|
params.set_status( {
|
|
416
416
|
...val_status,
|
|
417
417
|
rows: newRows
|
|
418
|
-
} )
|
|
418
|
+
} )
|
|
419
419
|
} }
|
|
420
420
|
/>
|
|
421
421
|
</Box>
|
|
422
|
-
</Comps.TH> )
|
|
422
|
+
</Comps.TH> )
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
ROW.forEach( ( col,colIndex ) => {
|
|
426
|
-
if ( !col ) return
|
|
426
|
+
if ( !col ) return
|
|
427
427
|
let {
|
|
428
428
|
type = 'td',
|
|
429
429
|
...Params
|
|
430
|
-
} = col
|
|
430
|
+
} = col
|
|
431
431
|
|
|
432
432
|
Params = {
|
|
433
433
|
...val_status.cellStyles,
|
|
@@ -455,22 +455,22 @@ const Components = {
|
|
|
455
455
|
].join( ' ' )
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
let Cell = Comps[ type == 'td' ? 'TD' : 'TH' ]
|
|
458
|
+
let Cell = Comps[ type == 'td' ? 'TD' : 'TH' ]
|
|
459
459
|
Cols.push( <Cell
|
|
460
460
|
key={ colIndex }
|
|
461
|
-
{ ...Params } /> )
|
|
462
|
-
} )
|
|
461
|
+
{ ...Params } /> )
|
|
462
|
+
} )
|
|
463
463
|
|
|
464
464
|
BodyRows.push( <Comps.Row
|
|
465
465
|
key={ rowIndex }
|
|
466
466
|
className={ [ style.Row,style.BodyRow ].join( ' ' ) }
|
|
467
467
|
children={ Cols }
|
|
468
468
|
onClick={ ( event ) => {
|
|
469
|
-
if ( !val_status.onRowClick ) return
|
|
470
|
-
val_status.onRowClick( JSON.parse( row.rowID ) as any,event )
|
|
469
|
+
if ( !val_status.onRowClick ) return
|
|
470
|
+
val_status.onRowClick( JSON.parse( row.rowID ) as any,event )
|
|
471
471
|
} }
|
|
472
|
-
/> )
|
|
473
|
-
} )
|
|
472
|
+
/> )
|
|
473
|
+
} )
|
|
474
474
|
|
|
475
475
|
if ( !PageRows.length ) {
|
|
476
476
|
let Content = <Box
|
|
@@ -481,11 +481,11 @@ const Components = {
|
|
|
481
481
|
} }
|
|
482
482
|
borderTop='1.thin'
|
|
483
483
|
children={ 'テーブルがありません' }
|
|
484
|
-
|
|
484
|
+
/>
|
|
485
485
|
if ( val_status.noRecords ) {
|
|
486
486
|
Content = <>
|
|
487
487
|
{ val_status.noRecords }
|
|
488
|
-
|
|
488
|
+
</>
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
BodyRows.push( <Comps.Row
|
|
@@ -502,9 +502,9 @@ const Components = {
|
|
|
502
502
|
>
|
|
503
503
|
{ Content }
|
|
504
504
|
</Comps.TD>
|
|
505
|
-
</Comps.Row> )
|
|
505
|
+
</Comps.Row> )
|
|
506
506
|
}
|
|
507
|
-
return <>{ BodyRows }
|
|
507
|
+
return <>{ BodyRows }</>
|
|
508
508
|
},
|
|
509
509
|
Core: ( params: {
|
|
510
510
|
val_status: DataTableOptionParams
|
|
@@ -513,36 +513,36 @@ const Components = {
|
|
|
513
513
|
let {
|
|
514
514
|
val_status,
|
|
515
515
|
set_status
|
|
516
|
-
} = params
|
|
516
|
+
} = params
|
|
517
517
|
|
|
518
518
|
let {
|
|
519
519
|
searchKeyword,
|
|
520
520
|
filter,
|
|
521
521
|
order,
|
|
522
522
|
paging
|
|
523
|
-
} = val_status
|
|
523
|
+
} = val_status
|
|
524
524
|
|
|
525
|
-
let MotherRows = [ ...val_status.rows ]
|
|
526
|
-
let KeywordFilterRows = [ ...val_status.rows ]
|
|
527
|
-
let FilterRows = [ ...val_status.rows ]
|
|
528
|
-
let PageRows = [ ...val_status.rows ]
|
|
525
|
+
let MotherRows = [ ...val_status.rows ]
|
|
526
|
+
let KeywordFilterRows = [ ...val_status.rows ]
|
|
527
|
+
let FilterRows = [ ...val_status.rows ]
|
|
528
|
+
let PageRows = [ ...val_status.rows ]
|
|
529
529
|
|
|
530
530
|
if ( searchKeyword ) {
|
|
531
531
|
KeywordFilterRows = MotherRows.filter( ( row ) => {
|
|
532
|
-
if ( ( row.__sys4SearchKey || '' ).match( new RegExp( searchKeyword,'i' ) ) ) return 1
|
|
533
|
-
return 0
|
|
534
|
-
} )
|
|
535
|
-
FilterRows = [ ...KeywordFilterRows ]
|
|
536
|
-
PageRows = [ ...KeywordFilterRows ]
|
|
532
|
+
if ( ( row.__sys4SearchKey || '' ).match( new RegExp( searchKeyword,'i' ) ) ) return 1
|
|
533
|
+
return 0
|
|
534
|
+
} )
|
|
535
|
+
FilterRows = [ ...KeywordFilterRows ]
|
|
536
|
+
PageRows = [ ...KeywordFilterRows ]
|
|
537
537
|
}
|
|
538
538
|
if ( filter.enabled ) {
|
|
539
539
|
for ( let i = 0; i < val_status.colLength; i++ ) {
|
|
540
|
-
let enabled = filter.column[ i ]
|
|
541
|
-
let current = filter.current[ i ]
|
|
540
|
+
let enabled = filter.column[ i ]
|
|
541
|
+
let current = filter.current[ i ]
|
|
542
542
|
|
|
543
543
|
if ( enabled && current && current.length ) {
|
|
544
|
-
FilterRows = FilterRows.filter( ( row ) => !current.includes( row[ i ].data as string ) )
|
|
545
|
-
PageRows = [ ...FilterRows ]
|
|
544
|
+
FilterRows = FilterRows.filter( ( row ) => !current.includes( row[ i ].data as string ) )
|
|
545
|
+
PageRows = [ ...FilterRows ]
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
@@ -553,19 +553,19 @@ const Components = {
|
|
|
553
553
|
order.current[ 0 ],
|
|
554
554
|
'orderIndex'
|
|
555
555
|
]
|
|
556
|
-
} )
|
|
557
|
-
PageRows = [ ...FilterRows ]
|
|
556
|
+
} )
|
|
557
|
+
PageRows = [ ...FilterRows ]
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
{
|
|
561
561
|
let {
|
|
562
562
|
currentPageIndex,
|
|
563
563
|
rowLength
|
|
564
|
-
} = paging
|
|
565
|
-
PageRows = [ ...PageRows ].splice( ( currentPageIndex - 1 ) * rowLength,rowLength )
|
|
564
|
+
} = paging
|
|
565
|
+
PageRows = [ ...PageRows ].splice( ( currentPageIndex - 1 ) * rowLength,rowLength )
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
let tableObjectID = Components.__memoryID + '_' + val_status.tableID
|
|
568
|
+
let tableObjectID = Components.__memoryID + '_' + val_status.tableID
|
|
569
569
|
|
|
570
570
|
let useStatusOutput: amotify.fn.Tables.Data.useStatusOutput = {
|
|
571
571
|
tableComponentDidMount: true,
|
|
@@ -583,10 +583,10 @@ const Components = {
|
|
|
583
583
|
value: {
|
|
584
584
|
status: useStatusOutput,
|
|
585
585
|
updatePageIndex: ( index: number ) => {
|
|
586
|
-
let Index = Math.min( Math.max( 1,index ),val_status.paging.pageLength )
|
|
586
|
+
let Index = Math.min( Math.max( 1,index ),val_status.paging.pageLength )
|
|
587
587
|
let newOptions = { ...val_status }
|
|
588
|
-
newOptions.paging.currentPageIndex = Index
|
|
589
|
-
set_status( newOptions )
|
|
588
|
+
newOptions.paging.currentPageIndex = Index
|
|
589
|
+
set_status( newOptions )
|
|
590
590
|
},
|
|
591
591
|
updateRowLength: ( index: number ) => {
|
|
592
592
|
let newOptions = { ...val_status }
|
|
@@ -595,22 +595,22 @@ const Components = {
|
|
|
595
595
|
currentPageIndex: 1,
|
|
596
596
|
pageLength: Math.ceil( FilterRows.length / index )
|
|
597
597
|
}
|
|
598
|
-
set_status( newOptions )
|
|
598
|
+
set_status( newOptions )
|
|
599
599
|
},
|
|
600
600
|
updateKeyword: ( keyword: string ) => {
|
|
601
|
-
$.interval.clear( 'InputSearchTime' )
|
|
601
|
+
$.interval.clear( 'InputSearchTime' )
|
|
602
602
|
$.interval.standBy( 'InputSearchTime',200,() => {
|
|
603
603
|
let newOptions = { ...val_status }
|
|
604
604
|
|
|
605
|
-
newOptions.searchKeyword = keyword
|
|
606
|
-
newOptions.paging.currentPageIndex = 1
|
|
607
|
-
newOptions.filter.current = newOptions.filter.current.map( () => [] )
|
|
605
|
+
newOptions.searchKeyword = keyword
|
|
606
|
+
newOptions.paging.currentPageIndex = 1
|
|
607
|
+
newOptions.filter.current = newOptions.filter.current.map( () => [] )
|
|
608
608
|
|
|
609
|
-
set_status( newOptions )
|
|
610
|
-
} )
|
|
609
|
+
set_status( newOptions )
|
|
610
|
+
} )
|
|
611
611
|
},
|
|
612
612
|
getRowData: () => {
|
|
613
|
-
let ReturnRows = [ ...MotherRows ]
|
|
613
|
+
let ReturnRows = [ ...MotherRows ]
|
|
614
614
|
|
|
615
615
|
if ( order.enabled ) {
|
|
616
616
|
ReturnRows = ReturnRows.order( {
|
|
@@ -619,35 +619,35 @@ const Components = {
|
|
|
619
619
|
order.current[ 0 ],
|
|
620
620
|
'orderIndex'
|
|
621
621
|
]
|
|
622
|
-
} )
|
|
622
|
+
} )
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
ReturnRows.forEach( ( row ) => {
|
|
626
|
-
row.currentPage = false
|
|
627
|
-
row.filtered = false
|
|
628
|
-
// row.checked = val_checked[ row.rowID! ]
|
|
626
|
+
row.currentPage = false
|
|
627
|
+
row.filtered = false
|
|
628
|
+
// row.checked = val_checked[ row.rowID! ]
|
|
629
629
|
} )
|
|
630
630
|
PageRows.forEach( ( row ) => {
|
|
631
|
-
let { rowID } = row
|
|
632
|
-
ReturnRows.find( ( row ) => row.rowID == rowID )!.currentPage = true
|
|
633
|
-
} )
|
|
631
|
+
let { rowID } = row
|
|
632
|
+
ReturnRows.find( ( row ) => row.rowID == rowID )!.currentPage = true
|
|
633
|
+
} )
|
|
634
634
|
FilterRows.forEach( ( row ) => {
|
|
635
|
-
let { rowID } = row
|
|
636
|
-
ReturnRows.find( ( row ) => row.rowID == rowID )!.filtered = true
|
|
637
|
-
} )
|
|
638
|
-
return ReturnRows
|
|
635
|
+
let { rowID } = row
|
|
636
|
+
ReturnRows.find( ( row ) => row.rowID == rowID )!.filtered = true
|
|
637
|
+
} )
|
|
638
|
+
return ReturnRows
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
} )
|
|
641
|
+
} )
|
|
642
642
|
|
|
643
643
|
React.useEffect( () => {
|
|
644
|
-
let Propagations = Components.Propagations[ val_status.tableID ] || []
|
|
644
|
+
let Propagations = Components.Propagations[ val_status.tableID ] || []
|
|
645
645
|
Object.keys( Propagations ).forEach( ( key ) => {
|
|
646
|
-
let propagationObject = useStore.get( key )
|
|
647
|
-
if ( !propagationObject?.refresh ) return
|
|
648
|
-
propagationObject.refresh()
|
|
649
|
-
} )
|
|
650
|
-
} )
|
|
646
|
+
let propagationObject = useStore.get( key )
|
|
647
|
+
if ( !propagationObject?.refresh ) return
|
|
648
|
+
propagationObject.refresh()
|
|
649
|
+
} )
|
|
650
|
+
} )
|
|
651
651
|
|
|
652
652
|
return <Box
|
|
653
653
|
className={ style.TableBase }
|
|
@@ -664,27 +664,27 @@ const Components = {
|
|
|
664
664
|
PageRows={ PageRows }
|
|
665
665
|
/>
|
|
666
666
|
</Comps.Table>
|
|
667
|
-
</Box
|
|
667
|
+
</Box>
|
|
668
668
|
},
|
|
669
669
|
Propagations: {} as any,
|
|
670
670
|
|
|
671
671
|
DataLeveler: ( params: amotify.fn.Tables.Data.Params ) => {
|
|
672
|
-
params = { ...params }
|
|
673
|
-
params.filter = params.filter ?? false
|
|
672
|
+
params = { ...params }
|
|
673
|
+
params.filter = params.filter ?? false
|
|
674
674
|
params.filter = Array.from( { length: params.colLength } ).map( ( a,index ) => {
|
|
675
675
|
if ( $.is.boolean( params.filter ) ) {
|
|
676
|
-
return params.filter
|
|
676
|
+
return params.filter
|
|
677
677
|
}
|
|
678
|
-
return ( params.filter as boolean[] )![ index ] ?? false
|
|
679
|
-
} )
|
|
678
|
+
return ( params.filter as boolean[] )![ index ] ?? false
|
|
679
|
+
} )
|
|
680
680
|
|
|
681
|
-
params.order = params.order ?? true
|
|
681
|
+
params.order = params.order ?? true
|
|
682
682
|
params.order = Array.from( { length: params.colLength } ).map( ( a,index ) => {
|
|
683
683
|
if ( $.is.boolean( params.order ) ) {
|
|
684
|
-
return params.order
|
|
684
|
+
return params.order
|
|
685
685
|
}
|
|
686
|
-
return ( params.order as boolean[] )![ index ] ?? true
|
|
687
|
-
} )
|
|
686
|
+
return ( params.order as boolean[] )![ index ] ?? true
|
|
687
|
+
} )
|
|
688
688
|
|
|
689
689
|
params = {
|
|
690
690
|
checker: false,
|
|
@@ -695,24 +695,24 @@ const Components = {
|
|
|
695
695
|
...params
|
|
696
696
|
}
|
|
697
697
|
params.rows.forEach( ( row,rowIndex ) => {
|
|
698
|
-
row.rowID = JSON.stringify( row.rowID || rowIndex )
|
|
699
|
-
let __sys4SearchKey: string[] = []
|
|
698
|
+
row.rowID = JSON.stringify( row.rowID || rowIndex )
|
|
699
|
+
let __sys4SearchKey: string[] = []
|
|
700
700
|
row.forEach( ( col,colIndex ) => {
|
|
701
701
|
let {
|
|
702
702
|
data,
|
|
703
703
|
children,
|
|
704
704
|
orderIndex
|
|
705
|
-
} = col
|
|
706
|
-
col.orderIndex = $.is.exist( orderIndex ) ? String( orderIndex ) : String( data )
|
|
707
|
-
col.children = children || String( data )
|
|
708
|
-
__sys4SearchKey.push( String( col.data ) )
|
|
709
|
-
} )
|
|
710
|
-
row.__sys4SearchKey = __sys4SearchKey.join( '
|
|
711
|
-
} )
|
|
705
|
+
} = col
|
|
706
|
+
col.orderIndex = $.is.exist( orderIndex ) ? String( orderIndex ) : String( data )
|
|
707
|
+
col.children = children || String( data )
|
|
708
|
+
__sys4SearchKey.push( String( col.data ) )
|
|
709
|
+
} )
|
|
710
|
+
row.__sys4SearchKey = __sys4SearchKey.join( '/' )
|
|
711
|
+
} )
|
|
712
712
|
return <Components.StateManager
|
|
713
713
|
eventID={ $.uuidGen() }
|
|
714
714
|
{ ...params }
|
|
715
|
-
|
|
715
|
+
/>
|
|
716
716
|
},
|
|
717
717
|
StateManager: ( params: amotify.fn.Tables.Data.Params ) => {
|
|
718
718
|
let {
|
|
@@ -724,8 +724,8 @@ const Components = {
|
|
|
724
724
|
order,
|
|
725
725
|
defaultOrder = [ 0,'ASC' ] as amotify.fn.Tables.Data.OrderParams,
|
|
726
726
|
pageRowLength = 30
|
|
727
|
-
} = params
|
|
728
|
-
let [ val_componentID ] = React.useState( $.uuidGen() )
|
|
727
|
+
} = params
|
|
728
|
+
let [ val_componentID ] = React.useState( $.uuidGen() )
|
|
729
729
|
|
|
730
730
|
let DefStatus: DataTableOptionParams = {
|
|
731
731
|
tableID: params.tableID || val_componentID,
|
|
@@ -757,28 +757,28 @@ const Components = {
|
|
|
757
757
|
onRowClick: params.onRowClick,
|
|
758
758
|
onOrderChanged: params.onOrderChanged
|
|
759
759
|
}
|
|
760
|
-
let [ val_status,set_status ] = React.useState( DefStatus )
|
|
760
|
+
let [ val_status,set_status ] = React.useState( DefStatus )
|
|
761
761
|
|
|
762
|
-
let [ val_eventID,set_eventID ] = React.useState( params.eventID )
|
|
762
|
+
let [ val_eventID,set_eventID ] = React.useState( params.eventID )
|
|
763
763
|
if ( val_eventID != params.eventID ) {
|
|
764
|
-
set_eventID( params.eventID )
|
|
765
|
-
set_status( DefStatus )
|
|
764
|
+
set_eventID( params.eventID )
|
|
765
|
+
set_status( DefStatus )
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
return <Components.Core
|
|
769
769
|
val_status={ val_status }
|
|
770
770
|
set_status={ set_status }
|
|
771
|
-
|
|
771
|
+
/>
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
export const DataFNs: amotify.fn.Tables.Data.FNs = {
|
|
776
776
|
__memoryID: Components.__memoryID,
|
|
777
777
|
useStatus: ( tableID ) => {
|
|
778
|
-
let [ val_statusID ] = React.useState( $.uuidGen() )
|
|
779
|
-
let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() )
|
|
778
|
+
let [ val_statusID ] = React.useState( $.uuidGen() )
|
|
779
|
+
let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() )
|
|
780
780
|
|
|
781
|
-
let tableObjectID = Components.__memoryID + '_' + tableID
|
|
781
|
+
let tableObjectID = Components.__memoryID + '_' + tableID
|
|
782
782
|
React.useEffect( () => {
|
|
783
783
|
Components.Propagations[ tableID ] = {
|
|
784
784
|
...Components.Propagations[ tableID ],
|
|
@@ -788,45 +788,45 @@ export const DataFNs: amotify.fn.Tables.Data.FNs = {
|
|
|
788
788
|
key: val_statusID,
|
|
789
789
|
value: {
|
|
790
790
|
refresh: () => {
|
|
791
|
-
set_refresh( $.uuidGen() )
|
|
791
|
+
set_refresh( $.uuidGen() )
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
-
} )
|
|
794
|
+
} )
|
|
795
795
|
|
|
796
796
|
return () => {
|
|
797
|
-
delete Components.Propagations[ tableID ][ val_statusID ]
|
|
797
|
+
delete Components.Propagations[ tableID ][ val_statusID ]
|
|
798
798
|
}
|
|
799
|
-
},[] )
|
|
799
|
+
},[] )
|
|
800
800
|
|
|
801
801
|
return useStore.get( tableObjectID )?.status || {
|
|
802
802
|
tableComponentDidMount: false
|
|
803
|
-
}
|
|
803
|
+
}
|
|
804
804
|
},
|
|
805
805
|
getRowData: ( tableID ) => {
|
|
806
|
-
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
807
|
-
if ( !tableObject?.getRowData ) return
|
|
808
|
-
return tableObject.getRowData()
|
|
806
|
+
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
807
|
+
if ( !tableObject?.getRowData ) return
|
|
808
|
+
return tableObject.getRowData()
|
|
809
809
|
},
|
|
810
810
|
setPageIndex: ( tableID,pageIndex ) => {
|
|
811
|
-
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
812
|
-
if ( !tableObject?.updatePageIndex ) return
|
|
813
|
-
tableObject.updatePageIndex( pageIndex )
|
|
811
|
+
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
812
|
+
if ( !tableObject?.updatePageIndex ) return
|
|
813
|
+
tableObject.updatePageIndex( pageIndex )
|
|
814
814
|
},
|
|
815
815
|
setRowLength: ( tableID,rowLength ) => {
|
|
816
|
-
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
817
|
-
if ( !tableObject?.updateRowLength ) return
|
|
818
|
-
tableObject.updateRowLength( rowLength )
|
|
816
|
+
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
817
|
+
if ( !tableObject?.updateRowLength ) return
|
|
818
|
+
tableObject.updateRowLength( rowLength )
|
|
819
819
|
},
|
|
820
820
|
setSearchKeyword: ( tableID,keyword ) => {
|
|
821
|
-
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
822
|
-
if ( !tableObject?.updateKeyword ) return
|
|
823
|
-
tableObject.updateKeyword( keyword )
|
|
821
|
+
let tableObject = useStore.get( Components.__memoryID + '_' + tableID )
|
|
822
|
+
if ( !tableObject?.updateKeyword ) return
|
|
823
|
+
tableObject.updateKeyword( keyword )
|
|
824
824
|
},
|
|
825
825
|
}
|
|
826
826
|
export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
827
827
|
SearchInput: ( params ) => {
|
|
828
|
-
let status = DataFNs.useStatus( params.tableID )
|
|
829
|
-
if ( !status.tableComponentDidMount ) return null
|
|
828
|
+
let status = DataFNs.useStatus( params.tableID )
|
|
829
|
+
if ( !status.tableComponentDidMount ) return null
|
|
830
830
|
|
|
831
831
|
return <Input.Text.Normal
|
|
832
832
|
placeholder='検索...'
|
|
@@ -842,14 +842,14 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
|
842
842
|
override='force'
|
|
843
843
|
value={ status.searchKeyword }
|
|
844
844
|
onUpdateValidValue={ ( { value } ) => {
|
|
845
|
-
DataFNs.setSearchKeyword( params.tableID,value )
|
|
845
|
+
DataFNs.setSearchKeyword( params.tableID,value )
|
|
846
846
|
} }
|
|
847
|
-
|
|
847
|
+
/>
|
|
848
848
|
},
|
|
849
849
|
Info: ( params ) => {
|
|
850
|
-
let status = DataFNs.useStatus( params.tableID )
|
|
851
|
-
if ( !status.tableComponentDidMount ) return null
|
|
852
|
-
let Ratio = status.filteredRows.ratio( status.totalRows ) || 0
|
|
850
|
+
let status = DataFNs.useStatus( params.tableID )
|
|
851
|
+
if ( !status.tableComponentDidMount ) return null
|
|
852
|
+
let Ratio = status.filteredRows.ratio( status.totalRows ) || 0
|
|
853
853
|
|
|
854
854
|
return <Flex
|
|
855
855
|
verticalAlign='baseline'
|
|
@@ -864,15 +864,15 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
|
864
864
|
{ status.filteredRows.toLocaleString() }
|
|
865
865
|
</Span>
|
|
866
866
|
/ { status.totalRows.toLocaleString() }件 ({ Ratio }%)
|
|
867
|
-
</Flex
|
|
867
|
+
</Flex>
|
|
868
868
|
},
|
|
869
869
|
Paging: ( params ) => {
|
|
870
|
-
let status = DataFNs.useStatus( params.tableID )
|
|
871
|
-
if ( !status.tableComponentDidMount ) return null
|
|
870
|
+
let status = DataFNs.useStatus( params.tableID )
|
|
871
|
+
if ( !status.tableComponentDidMount ) return null
|
|
872
872
|
|
|
873
|
-
let PageSelect: amotify.fn.Input.Select.OptionProps[] = []
|
|
873
|
+
let PageSelect: amotify.fn.Input.Select.OptionProps[] = []
|
|
874
874
|
for ( let index = 0; index < status.paging.pageLength; index++ ) {
|
|
875
|
-
PageSelect.push( { value: index + 1,label: ( index + 1 ).toString() } )
|
|
875
|
+
PageSelect.push( { value: index + 1,label: ( index + 1 ).toString() } )
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
return <Row.Center>
|
|
@@ -889,7 +889,7 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
|
889
889
|
value={ status.paging.currentPageIndex }
|
|
890
890
|
options={ PageSelect }
|
|
891
891
|
onUpdateValidValue={ ( { value } ) => {
|
|
892
|
-
DataFNs.setPageIndex( params.tableID,value )
|
|
892
|
+
DataFNs.setPageIndex( params.tableID,value )
|
|
893
893
|
} }
|
|
894
894
|
/>
|
|
895
895
|
/ { status.paging.pageLength }
|
|
@@ -899,10 +899,10 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
|
899
899
|
ssSphere={ 3 }
|
|
900
900
|
onClick={ () => {
|
|
901
901
|
if ( status.paging.currentPageIndex == 1 ) {
|
|
902
|
-
DataFNs.setPageIndex( params.tableID,status.paging.pageLength )
|
|
903
|
-
return
|
|
902
|
+
DataFNs.setPageIndex( params.tableID,status.paging.pageLength )
|
|
903
|
+
return
|
|
904
904
|
}
|
|
905
|
-
DataFNs.setPageIndex( params.tableID,status.paging.currentPageIndex - 1 )
|
|
905
|
+
DataFNs.setPageIndex( params.tableID,status.paging.currentPageIndex - 1 )
|
|
906
906
|
} }
|
|
907
907
|
>
|
|
908
908
|
<FAI.ChevronLeft />
|
|
@@ -911,36 +911,36 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
|
911
911
|
ssSphere={ 3 }
|
|
912
912
|
onClick={ () => {
|
|
913
913
|
if ( status.paging.currentPageIndex == status.paging.pageLength ) {
|
|
914
|
-
DataFNs.setPageIndex( params.tableID,1 )
|
|
915
|
-
return
|
|
914
|
+
DataFNs.setPageIndex( params.tableID,1 )
|
|
915
|
+
return
|
|
916
916
|
}
|
|
917
|
-
DataFNs.setPageIndex( params.tableID,status.paging.currentPageIndex + 1 )
|
|
917
|
+
DataFNs.setPageIndex( params.tableID,status.paging.currentPageIndex + 1 )
|
|
918
918
|
} }
|
|
919
919
|
>
|
|
920
920
|
<FAI.ChevronRight />
|
|
921
921
|
</Buttons.Button.Sub.R>
|
|
922
922
|
</Row.Right>
|
|
923
|
-
</Row.Center
|
|
923
|
+
</Row.Center>
|
|
924
924
|
},
|
|
925
925
|
RowLength: ( params ) => {
|
|
926
|
-
let status = DataFNs.useStatus( params.tableID )
|
|
927
|
-
if ( !status.tableComponentDidMount ) return null
|
|
926
|
+
let status = DataFNs.useStatus( params.tableID )
|
|
927
|
+
if ( !status.tableComponentDidMount ) return null
|
|
928
928
|
|
|
929
|
-
let currentLength = status.paging.rowLength
|
|
930
|
-
let ExistCurrentLength = 0
|
|
929
|
+
let currentLength = status.paging.rowLength
|
|
930
|
+
let ExistCurrentLength = 0
|
|
931
931
|
let LengthList: amotify.fn.Input.Select.OptionProps[] = params.lengthSelect.map( ( l ) => {
|
|
932
|
-
ExistCurrentLength |= Number( l == currentLength )
|
|
932
|
+
ExistCurrentLength |= Number( l == currentLength )
|
|
933
933
|
|
|
934
934
|
return { value: l,label: l.toString() }
|
|
935
|
-
} )
|
|
935
|
+
} )
|
|
936
936
|
if ( !ExistCurrentLength ) {
|
|
937
|
-
LengthList.push( { value: currentLength,label: currentLength.toString() } )
|
|
937
|
+
LengthList.push( { value: currentLength,label: currentLength.toString() } )
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
LengthList = LengthList.order( {
|
|
941
941
|
direction: 'ASC',
|
|
942
942
|
keys: [ 'value' ],
|
|
943
|
-
} )
|
|
943
|
+
} )
|
|
944
944
|
|
|
945
945
|
return <Row.Center
|
|
946
946
|
gap={ '1/2' }
|
|
@@ -955,11 +955,11 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
|
|
|
955
955
|
value={ status.paging.rowLength }
|
|
956
956
|
options={ LengthList }
|
|
957
957
|
onUpdateValidValue={ ( { value } ) => {
|
|
958
|
-
DataFNs.setRowLength( params.tableID,value )
|
|
958
|
+
DataFNs.setRowLength( params.tableID,value )
|
|
959
959
|
} }
|
|
960
960
|
/>
|
|
961
|
-
</Row.Center
|
|
961
|
+
</Row.Center>
|
|
962
962
|
},
|
|
963
963
|
}
|
|
964
964
|
|
|
965
|
-
export const DataTable = ( params: amotify.fn.Tables.Data.Params ) => ( <Components.DataLeveler{ ...params } /> )
|
|
965
|
+
export const DataTable = ( params: amotify.fn.Tables.Data.Params ) => ( <Components.DataLeveler{ ...params } /> )
|