forstok-ui-lib 5.7.0 → 5.7.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.
- package/dist/index.d.ts +132 -1
- package/package.json +1 -1
- package/src/typeds/shares.typed.ts +162 -1
package/dist/index.d.ts
CHANGED
|
@@ -365,6 +365,137 @@ type TMasterProps = {
|
|
|
365
365
|
setForceUpdate?: TState<boolean>;
|
|
366
366
|
evPickAll?: TMouseEvent;
|
|
367
367
|
};
|
|
368
|
+
type TInData<TData = never> = {
|
|
369
|
+
loading: boolean;
|
|
370
|
+
data?: TData | null;
|
|
371
|
+
};
|
|
372
|
+
type TInListProps = {
|
|
373
|
+
loadName: string;
|
|
374
|
+
searchByDef: string;
|
|
375
|
+
hasCheckAll?: boolean;
|
|
376
|
+
hasSubscription?: boolean;
|
|
377
|
+
hasTab?: boolean;
|
|
378
|
+
hasSort?: boolean;
|
|
379
|
+
tabStorage?: string;
|
|
380
|
+
sortStorage?: string;
|
|
381
|
+
pageStorage?: string;
|
|
382
|
+
};
|
|
383
|
+
type TInPart = {
|
|
384
|
+
evOpenPopup?: TPopupOpenFunction;
|
|
385
|
+
evForcePopUp?: TPopupFunction;
|
|
386
|
+
evCloseDropdown?: TCloseDropdownFunction;
|
|
387
|
+
evCreateMessage?: TMessageFunction;
|
|
388
|
+
evCreateMessageQuestion?: TMessageQuestionFunction;
|
|
389
|
+
saveSubscription?: (statuses: (string | null)[], id: number) => void;
|
|
390
|
+
clearSubscription?: () => void;
|
|
391
|
+
data?: any;
|
|
392
|
+
id?: string;
|
|
393
|
+
evPrintReceipt?: (dataOrder: any) => void;
|
|
394
|
+
};
|
|
395
|
+
type TInList = TInPart & {
|
|
396
|
+
firstDispatch: Dispatch<any>;
|
|
397
|
+
resetByOption: (opt?: string | string[], callback?: () => void, noScroll?: boolean) => void;
|
|
398
|
+
activeStatusTab?: string;
|
|
399
|
+
evClickTab?: TMouseEvent;
|
|
400
|
+
loadName?: string;
|
|
401
|
+
activePageOption: number;
|
|
402
|
+
evSetPageOption: TMouseEvent;
|
|
403
|
+
activePage: number;
|
|
404
|
+
evSetPage: TMouseEvent;
|
|
405
|
+
activeCursor: string;
|
|
406
|
+
searchInput: string;
|
|
407
|
+
evSearchInput: TChangeEvent;
|
|
408
|
+
activeSearchBy: string;
|
|
409
|
+
evClickSearchBy: TMouseEvent;
|
|
410
|
+
abortRef: AbortController;
|
|
411
|
+
abortSecRef: AbortController;
|
|
412
|
+
isForceUpdate: boolean;
|
|
413
|
+
checkboxData?: TObject[];
|
|
414
|
+
isCheckAll?: boolean;
|
|
415
|
+
isForceUpdateCheckAll?: boolean;
|
|
416
|
+
isResetSubscription?: boolean;
|
|
417
|
+
activeSort?: string;
|
|
418
|
+
evChangeSort?: TChangeEvent;
|
|
419
|
+
isForceUpdateSort?: boolean;
|
|
420
|
+
evClickCollapse?: TMouseEvent;
|
|
421
|
+
isReadyQuery: boolean;
|
|
422
|
+
};
|
|
423
|
+
type TInlistPart = Omit<TInList, 'evClickTab' | 'activePageOption' | 'evSetPageOption' | 'activePage' | 'evSetPage' | 'activeCursor' | 'searchInput' | 'abortRef' | 'abortSecRef' | 'isResetSubscription' | 'isReadyQuery'> & {
|
|
424
|
+
pageEl: JSX.Element | null;
|
|
425
|
+
readyFilter?: string[];
|
|
426
|
+
parseSetForceUpdate?: (value: boolean) => void;
|
|
427
|
+
evReload?: () => void;
|
|
428
|
+
};
|
|
429
|
+
type TPagination = {
|
|
430
|
+
data?: TPage | null;
|
|
431
|
+
type: string;
|
|
432
|
+
activePage: number;
|
|
433
|
+
evSetPage: TMouseEvent;
|
|
434
|
+
activePageOption?: number;
|
|
435
|
+
evSetPageOption: TMouseEvent;
|
|
436
|
+
$mode?: string;
|
|
437
|
+
};
|
|
438
|
+
type TObjPage = {
|
|
439
|
+
cursor?: string;
|
|
440
|
+
page: number;
|
|
441
|
+
isCurrent: boolean;
|
|
442
|
+
};
|
|
443
|
+
type TPageObj = {
|
|
444
|
+
first: TObjPage;
|
|
445
|
+
last: TObjPage;
|
|
446
|
+
next: TObjPage;
|
|
447
|
+
prev: TObjPage;
|
|
448
|
+
around: TObjPage;
|
|
449
|
+
dot: {
|
|
450
|
+
start: boolean;
|
|
451
|
+
end: boolean;
|
|
452
|
+
};
|
|
453
|
+
} | TObject | null;
|
|
454
|
+
type TNewFilterPartial = {
|
|
455
|
+
firstDispatch?: Dispatch<any>;
|
|
456
|
+
activeStatusTab?: string;
|
|
457
|
+
evCloseDropdown?: TCloseDropdownFunction;
|
|
458
|
+
readyFilter?: string[];
|
|
459
|
+
isForceUpdate: boolean;
|
|
460
|
+
setForceUpdate?: TState<boolean>;
|
|
461
|
+
localStorageName?: string;
|
|
462
|
+
loadName?: string;
|
|
463
|
+
resetByOption?: (opt?: string | string[], callback?: () => void, noScroll?: boolean) => void;
|
|
464
|
+
};
|
|
465
|
+
type TTimeFilter = {
|
|
466
|
+
startDate: Date | null;
|
|
467
|
+
endDate: Date | null;
|
|
468
|
+
rangeDate: string;
|
|
469
|
+
};
|
|
470
|
+
type TNewFunction = {
|
|
471
|
+
checkboxData?: TObject[];
|
|
472
|
+
evReload?: () => void;
|
|
473
|
+
evForcePopUp?: TPopupFunction;
|
|
474
|
+
evCreateMessage?: TMessageFunction;
|
|
475
|
+
evCreateMessageQuestion?: TMessageQuestionFunction;
|
|
476
|
+
type?: string;
|
|
477
|
+
data?: TObject[];
|
|
478
|
+
evOpenPopup?: TPopupOpenFunction;
|
|
479
|
+
inboundId?: number;
|
|
480
|
+
outboundId?: number;
|
|
481
|
+
adjustmentId?: number;
|
|
482
|
+
evMarkIncomplete?: TMouseEvent;
|
|
483
|
+
source?: string;
|
|
484
|
+
portalKey?: number;
|
|
485
|
+
};
|
|
486
|
+
type TDetailNew<TData = never> = {
|
|
487
|
+
activeTab?: string;
|
|
488
|
+
evOpenPopup?: TPopupOpenFunction;
|
|
489
|
+
data: TData;
|
|
490
|
+
evClickTabDetail?: TMouseEvent;
|
|
491
|
+
evCreateMessage?: TMessageFunction;
|
|
492
|
+
evCreateMessageQuestion?: TMessageQuestionFunction;
|
|
493
|
+
evCloseDropdown?: TCloseDropdownFunction;
|
|
494
|
+
evReload?: () => void;
|
|
495
|
+
};
|
|
496
|
+
type Callback<S> = (state: S) => void | (() => void | undefined);
|
|
497
|
+
type DispatchWithCallback<A, S> = (value: A, callback: Callback<S>) => void;
|
|
498
|
+
type TStateCallback<TData> = DispatchWithCallback<React.SetStateAction<TData>, TData>;
|
|
368
499
|
|
|
369
500
|
type TskuAddons = {
|
|
370
501
|
id?: number;
|
|
@@ -836,4 +967,4 @@ declare const configDateRange: {
|
|
|
836
967
|
minDate: string;
|
|
837
968
|
};
|
|
838
969
|
|
|
839
|
-
export { BoxContainer, BreadcrumbContainer, BulkActionWrapper, ButtonComponent, ButtonGroup, ButtonLabel, CardContainer, CardWrapper, CheckboxComponent, CollapseContainer, ContentLoaderAccountsList, ContentLoaderActivityList, ContentLoaderAddition, ContentLoaderAnalyticsMenu, ContentLoaderCategoryList, ContentLoaderChatAccounts, ContentLoaderChatMessages, ContentLoaderChatProducts, ContentLoaderChatStores, ContentLoaderDashboardCard, ContentLoaderEditBundle, ContentLoaderFilterCategories, ContentLoaderFilters, ContentLoaderInvoiceListPaymentreceiveDetail, ContentLoaderMasterBundleDetail, ContentLoaderMasterDetail, ContentLoaderMasterList, ContentLoaderMasterListingDetail, ContentLoaderNonOrderList, ContentLoaderNotifUpdate, ContentLoaderOneLinePromotion, ContentLoaderOnlyBodyDashboardCard, ContentLoaderOnlyBodyTableList, ContentLoaderOnlyHeaderTableList, ContentLoaderOrderDetail, ContentLoaderOrderList, ContentLoaderPagination, ContentLoaderPopupBundle, ContentLoaderPopupChooseStore, ContentLoaderPopupLinkedListing, ContentLoaderPopupListOrder, ContentLoaderPopupPaymentReceive, ContentLoaderPopupPaymentReceived, ContentLoaderPopupPicklist, ContentLoaderPopupReadyToShip, ContentLoaderPopupStoreSelect, ContentLoaderPromotionHover, ContentLoaderReportingDashboard, ContentLoaderSetting, ContentLoaderTableList, CreateContainer, CreateHeaderWrapper, CreateToolWrapper, DateComponent, DateTimeComponent, DateWrapper, DetailItem, DetailItemAction, DetailItemInfo, DetailItemTitle, DetailItemWrapper, DetailList, DetailPanelWrapper, DetailWrapper, DropdownAction, DropDownComponent as DropdownComponent, DropdownItem, DropdownList, DropdownTitle, ErrorComponent, FigureWraper, FilterButton, FilterContainer, FilterItem, FilterList, FilterListTitle, FilterWrapper, FoContainer, FormContainer, HeaderContainer, IconComponent, IconDot, ImageComponent, InfoGroup, InitialContainer, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, IsNumeric, ItemPriceLabel, ItemTable, type KeysToSnakeCase, LabelComponent, LeftPanelContainer, LinkComponent, LinkContainer, ListAddItemContainer, ListComponent, ListContainer, ListTable, ListTableContainer, LoadingComponent, MasterTableActionWrapper, MasterTableComponent, MenuList, MessageComponent, MessageQuestionComponent, MultiPanelContainer, MuteLabel, NameLabel, PageButton, PageDot, PageLabel, PageWrapper, PaginationContainer, PanelBody, PanelContainer, PanelWrapper, type PartialBy, PopupAddProductContainer, PopupBoxWrapper, PopupCard, PopupComponent, PopupDownloadWrapper, PopupExportCardWrapper, RadioComponent, ReactPortalComponent, RightPanelContainer, SearchDropdownContainer, SearchFilterContainer, SearchFormWrapper, SearchResultItem, SearchResultList, SearchResultWrapper, SearchWrapper, SearchWrapperPopup, SelectComponent, SingleFormContainer, SortByWrapper, SwitchComponent, type TActionMeta, type TCSSObject, type TCSSObjectWithLabel, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TControlPropsWithVariable, type TCustomStylesWithVariable, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type TGroupBaseWithVariable, type THeadProps, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TLoadOption, type TMasterProps, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TObject, type TOnChangeValue, type TOnChangeValueFalse, type TOnChangeValueTrue, type TOption, type TOptionProps, type TOptionPropsWithVariable, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TSelectAsyncPaginate, type TSingleValueProps, type TState, type TUser, TableColumnGroup, TableHeadLabel, TableHeadWrapper, TableItemColumn, TableItemWrapper, TableLabel, TableRightGroup, TableRowGroup, TabsContainer, TabsContent, TabsHeader, TabsItem, TabsList, TabsWrapper, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, colorCommonQuantity, colorStockAdjust, colorStockInboundQuantity, colorStockInboundStatus, colorStockQuantity, colorStockStatus, configDateRange, currencyNumber, dateRangeDays, dateRangeStatus, debounce, dropBase, elipsis, errorMessage, errorTitle, evCheckAllValidation, evExecuteError, evGenerateValueMatch, evHighlight, evKeyMapperScanner, evScrollTo, evUpdateInputRc, formLabel, formatNumber, generateMessage, generateMessageQuestion, generateValue, generateValueTable, getSizeContainer, getStorage, headTable, historyType, multiElipsis, pageMasterTable, removeStorage, responseWidth, setStorage, statusColor, thirdElipsis, typePage, unCamelCaseKeys, unescapeHTML, validateByApproveJs };
|
|
970
|
+
export { BoxContainer, BreadcrumbContainer, BulkActionWrapper, ButtonComponent, ButtonGroup, ButtonLabel, CardContainer, CardWrapper, CheckboxComponent, CollapseContainer, ContentLoaderAccountsList, ContentLoaderActivityList, ContentLoaderAddition, ContentLoaderAnalyticsMenu, ContentLoaderCategoryList, ContentLoaderChatAccounts, ContentLoaderChatMessages, ContentLoaderChatProducts, ContentLoaderChatStores, ContentLoaderDashboardCard, ContentLoaderEditBundle, ContentLoaderFilterCategories, ContentLoaderFilters, ContentLoaderInvoiceListPaymentreceiveDetail, ContentLoaderMasterBundleDetail, ContentLoaderMasterDetail, ContentLoaderMasterList, ContentLoaderMasterListingDetail, ContentLoaderNonOrderList, ContentLoaderNotifUpdate, ContentLoaderOneLinePromotion, ContentLoaderOnlyBodyDashboardCard, ContentLoaderOnlyBodyTableList, ContentLoaderOnlyHeaderTableList, ContentLoaderOrderDetail, ContentLoaderOrderList, ContentLoaderPagination, ContentLoaderPopupBundle, ContentLoaderPopupChooseStore, ContentLoaderPopupLinkedListing, ContentLoaderPopupListOrder, ContentLoaderPopupPaymentReceive, ContentLoaderPopupPaymentReceived, ContentLoaderPopupPicklist, ContentLoaderPopupReadyToShip, ContentLoaderPopupStoreSelect, ContentLoaderPromotionHover, ContentLoaderReportingDashboard, ContentLoaderSetting, ContentLoaderTableList, CreateContainer, CreateHeaderWrapper, CreateToolWrapper, DateComponent, DateTimeComponent, DateWrapper, DetailItem, DetailItemAction, DetailItemInfo, DetailItemTitle, DetailItemWrapper, DetailList, DetailPanelWrapper, DetailWrapper, DropdownAction, DropDownComponent as DropdownComponent, DropdownItem, DropdownList, DropdownTitle, ErrorComponent, FigureWraper, FilterButton, FilterContainer, FilterItem, FilterList, FilterListTitle, FilterWrapper, FoContainer, FormContainer, HeaderContainer, IconComponent, IconDot, ImageComponent, InfoGroup, InitialContainer, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, IsNumeric, ItemPriceLabel, ItemTable, type KeysToSnakeCase, LabelComponent, LeftPanelContainer, LinkComponent, LinkContainer, ListAddItemContainer, ListComponent, ListContainer, ListTable, ListTableContainer, LoadingComponent, MasterTableActionWrapper, MasterTableComponent, MenuList, MessageComponent, MessageQuestionComponent, MultiPanelContainer, MuteLabel, NameLabel, PageButton, PageDot, PageLabel, PageWrapper, PaginationContainer, PanelBody, PanelContainer, PanelWrapper, type PartialBy, PopupAddProductContainer, PopupBoxWrapper, PopupCard, PopupComponent, PopupDownloadWrapper, PopupExportCardWrapper, RadioComponent, ReactPortalComponent, RightPanelContainer, SearchDropdownContainer, SearchFilterContainer, SearchFormWrapper, SearchResultItem, SearchResultList, SearchResultWrapper, SearchWrapper, SearchWrapperPopup, SelectComponent, SingleFormContainer, SortByWrapper, SwitchComponent, type TActionMeta, type TCSSObject, type TCSSObjectWithLabel, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TControlPropsWithVariable, type TCustomStylesWithVariable, type TDetailNew, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type TGroupBaseWithVariable, type THeadProps, type THierarchy, type TIdNum, type TIdStr, type TInData, type TInList, type TInListProps, type TInPart, type TInlistPart, type TKeyboadEvent, type TLoadOption, type TMasterProps, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TNewFilterPartial, type TNewFunction, type TObjPage, type TObject, type TOnChangeValue, type TOnChangeValueFalse, type TOnChangeValueTrue, type TOption, type TOptionProps, type TOptionPropsWithVariable, type TPage, type TPageObj, type TPagination, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TSelectAsyncPaginate, type TSingleValueProps, type TState, type TStateCallback, type TTimeFilter, type TUser, TableColumnGroup, TableHeadLabel, TableHeadWrapper, TableItemColumn, TableItemWrapper, TableLabel, TableRightGroup, TableRowGroup, TabsContainer, TabsContent, TabsHeader, TabsItem, TabsList, TabsWrapper, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, colorCommonQuantity, colorStockAdjust, colorStockInboundQuantity, colorStockInboundStatus, colorStockQuantity, colorStockStatus, configDateRange, currencyNumber, dateRangeDays, dateRangeStatus, debounce, dropBase, elipsis, errorMessage, errorTitle, evCheckAllValidation, evExecuteError, evGenerateValueMatch, evHighlight, evKeyMapperScanner, evScrollTo, evUpdateInputRc, formLabel, formatNumber, generateMessage, generateMessageQuestion, generateValue, generateValueTable, getSizeContainer, getStorage, headTable, historyType, multiElipsis, pageMasterTable, removeStorage, responseWidth, setStorage, statusColor, thirdElipsis, typePage, unCamelCaseKeys, unescapeHTML, validateByApproveJs };
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dispatch, JSX } from 'react';
|
|
2
|
+
import { TChangeEvent, TMouseEvent, TObject, TPage, TState } from './base.typed';
|
|
2
3
|
import { TCloseDropdownFunction } from '../components/dropdown/typed';
|
|
3
4
|
import { TCustomField, TAutoCopy } from '../components/masterTable/typed';
|
|
4
5
|
import { TMessageFunction, TMessageQuestionFunction } from '../components/message/typed';
|
|
@@ -108,3 +109,163 @@ export type TMasterProps = {
|
|
|
108
109
|
setForceUpdate?: TState<boolean>
|
|
109
110
|
evPickAll?: TMouseEvent
|
|
110
111
|
}
|
|
112
|
+
|
|
113
|
+
export type TInData<TData = never> = {
|
|
114
|
+
loading: boolean
|
|
115
|
+
data?: TData | null
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type TInListProps = {
|
|
119
|
+
loadName: string
|
|
120
|
+
searchByDef: string
|
|
121
|
+
hasCheckAll?: boolean
|
|
122
|
+
hasSubscription?: boolean
|
|
123
|
+
hasTab?: boolean
|
|
124
|
+
hasSort?: boolean
|
|
125
|
+
tabStorage?: string
|
|
126
|
+
sortStorage?: string
|
|
127
|
+
pageStorage?: string
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type TInPart = {
|
|
131
|
+
evOpenPopup?: TPopupOpenFunction
|
|
132
|
+
evForcePopUp?: TPopupFunction
|
|
133
|
+
evCloseDropdown?: TCloseDropdownFunction
|
|
134
|
+
evCreateMessage?: TMessageFunction
|
|
135
|
+
evCreateMessageQuestion?: TMessageQuestionFunction
|
|
136
|
+
saveSubscription?: (statuses: (string | null)[], id: number) => void
|
|
137
|
+
clearSubscription?: ()=> void
|
|
138
|
+
data?: any
|
|
139
|
+
id?: string
|
|
140
|
+
evPrintReceipt?: (dataOrder: any) => void
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type TInList = TInPart & {
|
|
144
|
+
firstDispatch: Dispatch<any>
|
|
145
|
+
resetByOption: (opt?: string | string[], callback?: () => void, noScroll?: boolean) => void
|
|
146
|
+
activeStatusTab?: string
|
|
147
|
+
evClickTab?: TMouseEvent
|
|
148
|
+
loadName?: string,
|
|
149
|
+
activePageOption: number
|
|
150
|
+
evSetPageOption: TMouseEvent
|
|
151
|
+
activePage: number
|
|
152
|
+
evSetPage: TMouseEvent
|
|
153
|
+
activeCursor: string
|
|
154
|
+
searchInput: string
|
|
155
|
+
evSearchInput: TChangeEvent
|
|
156
|
+
activeSearchBy: string
|
|
157
|
+
evClickSearchBy: TMouseEvent
|
|
158
|
+
abortRef: AbortController
|
|
159
|
+
abortSecRef: AbortController
|
|
160
|
+
isForceUpdate: boolean
|
|
161
|
+
checkboxData?: TObject[]
|
|
162
|
+
isCheckAll?: boolean
|
|
163
|
+
isForceUpdateCheckAll?: boolean
|
|
164
|
+
isResetSubscription?: boolean
|
|
165
|
+
activeSort?: string
|
|
166
|
+
evChangeSort?: TChangeEvent
|
|
167
|
+
isForceUpdateSort?: boolean
|
|
168
|
+
evClickCollapse?: TMouseEvent
|
|
169
|
+
isReadyQuery: boolean
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type TInlistPart = Omit<TInList,
|
|
173
|
+
'evClickTab' |
|
|
174
|
+
'activePageOption' |
|
|
175
|
+
'evSetPageOption' |
|
|
176
|
+
'activePage' |
|
|
177
|
+
'evSetPage' |
|
|
178
|
+
'activeCursor' |
|
|
179
|
+
'searchInput' |
|
|
180
|
+
'abortRef' |
|
|
181
|
+
'abortSecRef' |
|
|
182
|
+
'isResetSubscription' |
|
|
183
|
+
'isReadyQuery'> & {
|
|
184
|
+
pageEl: JSX.Element | null
|
|
185
|
+
readyFilter?: string[]
|
|
186
|
+
parseSetForceUpdate?: (value: boolean) => void
|
|
187
|
+
evReload?: () => void
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export type TPagination = {
|
|
191
|
+
data?: TPage | null
|
|
192
|
+
type: string
|
|
193
|
+
activePage: number
|
|
194
|
+
evSetPage: TMouseEvent
|
|
195
|
+
activePageOption?: number
|
|
196
|
+
evSetPageOption: TMouseEvent
|
|
197
|
+
$mode?: string
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type TObjPage = {
|
|
201
|
+
cursor?: string
|
|
202
|
+
page: number
|
|
203
|
+
isCurrent: boolean
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type TPageObj = {
|
|
207
|
+
first: TObjPage
|
|
208
|
+
last: TObjPage
|
|
209
|
+
next: TObjPage
|
|
210
|
+
prev: TObjPage
|
|
211
|
+
around: TObjPage
|
|
212
|
+
dot: {
|
|
213
|
+
start: boolean
|
|
214
|
+
end: boolean
|
|
215
|
+
}
|
|
216
|
+
} | TObject | null
|
|
217
|
+
|
|
218
|
+
export type TNewFilterPartial = {
|
|
219
|
+
firstDispatch?: Dispatch<any>
|
|
220
|
+
activeStatusTab?: string
|
|
221
|
+
evCloseDropdown?: TCloseDropdownFunction
|
|
222
|
+
readyFilter?: string[]
|
|
223
|
+
isForceUpdate: boolean
|
|
224
|
+
setForceUpdate?: TState<boolean>
|
|
225
|
+
localStorageName?: string
|
|
226
|
+
loadName?: string
|
|
227
|
+
resetByOption?: (opt?: string | string[], callback?: () => void, noScroll?: boolean) => void
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export type TTimeFilter = {
|
|
231
|
+
startDate: Date | null
|
|
232
|
+
endDate: Date | null
|
|
233
|
+
rangeDate : string
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type TNewFunction = {
|
|
237
|
+
checkboxData?: TObject[]
|
|
238
|
+
evReload?: () => void
|
|
239
|
+
evForcePopUp?: TPopupFunction
|
|
240
|
+
evCreateMessage?: TMessageFunction
|
|
241
|
+
evCreateMessageQuestion?: TMessageQuestionFunction
|
|
242
|
+
type?: string
|
|
243
|
+
data?: TObject[]
|
|
244
|
+
evOpenPopup?: TPopupOpenFunction
|
|
245
|
+
inboundId?: number
|
|
246
|
+
outboundId?: number
|
|
247
|
+
adjustmentId?: number
|
|
248
|
+
evMarkIncomplete?: TMouseEvent
|
|
249
|
+
source?: string
|
|
250
|
+
portalKey?: number
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type TDetailNew<TData = never> = {
|
|
254
|
+
activeTab?: string
|
|
255
|
+
evOpenPopup?: TPopupOpenFunction
|
|
256
|
+
data: TData
|
|
257
|
+
evClickTabDetail?: TMouseEvent
|
|
258
|
+
evCreateMessage?: TMessageFunction
|
|
259
|
+
evCreateMessageQuestion?: TMessageQuestionFunction
|
|
260
|
+
evCloseDropdown?: TCloseDropdownFunction
|
|
261
|
+
evReload?: () => void
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type Callback<S> = (state: S) => void | (() => void | undefined);
|
|
265
|
+
|
|
266
|
+
type DispatchWithCallback<A, S> = (
|
|
267
|
+
value: A,
|
|
268
|
+
callback: Callback<S>,
|
|
269
|
+
) => void;
|
|
270
|
+
|
|
271
|
+
export type TStateCallback<TData> = DispatchWithCallback<React.SetStateAction<TData>, TData>
|