forstok-ui-lib 5.6.5 → 5.6.8
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 +10 -2
- package/package.json +1 -1
- package/src/components/select/typed.ts +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -366,6 +366,13 @@ type TMasterProps = {
|
|
|
366
366
|
evPickAll?: TMouseEvent;
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
+
type TskuAddons = {
|
|
370
|
+
id?: number;
|
|
371
|
+
productId?: number;
|
|
372
|
+
masterProductId?: string;
|
|
373
|
+
imageUrl?: string;
|
|
374
|
+
sku?: string;
|
|
375
|
+
};
|
|
369
376
|
type TOption = {
|
|
370
377
|
readonly value: any;
|
|
371
378
|
readonly label: string;
|
|
@@ -380,7 +387,7 @@ type TOption = {
|
|
|
380
387
|
readonly label: string;
|
|
381
388
|
localId?: string;
|
|
382
389
|
}[];
|
|
383
|
-
};
|
|
390
|
+
} & TskuAddons;
|
|
384
391
|
type TLoadOption = (search: string, callback: () => void, { endCursor }: {
|
|
385
392
|
endCursor: string;
|
|
386
393
|
}) => Promise<{
|
|
@@ -396,6 +403,7 @@ type TLoadOption = (search: string, callback: () => void, { endCursor }: {
|
|
|
396
403
|
} | undefined>;
|
|
397
404
|
type TOnChangeValue = OnChangeValue<TOption, boolean>;
|
|
398
405
|
type TOnChangeValueFalse = OnChangeValue<TOption, false>;
|
|
406
|
+
type TOnChangeValueTrue = OnChangeValue<TOption, true>;
|
|
399
407
|
type TActionMeta = ActionMeta<TOption>;
|
|
400
408
|
type TSelectAsyncPaginate = {
|
|
401
409
|
customOption?: (arg0: OptionProps) => void;
|
|
@@ -685,4 +693,4 @@ declare const configDateRange: {
|
|
|
685
693
|
minDate: string;
|
|
686
694
|
};
|
|
687
695
|
|
|
688
|
-
export { BoxContainer, BreadcrumbContainer, BulkActionWrapper, ButtonComponent, CheckboxComponent, 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, DateComponent, DateTimeComponent, DropDownComponent as DropdownComponent, ErrorComponent, FigureWraper, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InitialContainer, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, IsNumeric, type KeysToSnakeCase, LabelComponent, LinkComponent, ListComponent, ListContainer, LoadingComponent, MasterTableActionWrapper, MasterTableComponent, MenuList, MessageComponent, MessageQuestionComponent, MuteLabel, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, RadioComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, 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 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, TabsContainer, TabsContent, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, colorCommonQuantity, configDateRange, currencyNumber, dateRangeDays, dateRangeStatus, debounce, dropBase, elipsis, errorTitle, evGenerateValueMatch, evUpdateInputRc, formLabel, formatNumber, generateMessage, generateMessageQuestion, generateValue, generateValueTable, getSizeContainer, getStorage, headTable, multiElipsis, pageMasterTable, removeStorage, responseWidth, setStorage, thirdElipsis, unescapeHTML, validateByApproveJs };
|
|
696
|
+
export { BoxContainer, BreadcrumbContainer, BulkActionWrapper, ButtonComponent, CheckboxComponent, 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, DateComponent, DateTimeComponent, DropDownComponent as DropdownComponent, ErrorComponent, FigureWraper, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InitialContainer, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, IsNumeric, type KeysToSnakeCase, LabelComponent, LinkComponent, ListComponent, ListContainer, LoadingComponent, MasterTableActionWrapper, MasterTableComponent, MenuList, MessageComponent, MessageQuestionComponent, MuteLabel, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, RadioComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, 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, TabsContainer, TabsContent, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, colorCommonQuantity, configDateRange, currencyNumber, dateRangeDays, dateRangeStatus, debounce, dropBase, elipsis, errorTitle, evGenerateValueMatch, evUpdateInputRc, formLabel, formatNumber, generateMessage, generateMessageQuestion, generateValue, generateValueTable, getSizeContainer, getStorage, headTable, multiElipsis, pageMasterTable, removeStorage, responseWidth, setStorage, thirdElipsis, unescapeHTML, validateByApproveJs };
|
package/package.json
CHANGED
|
@@ -4,6 +4,14 @@ import { CSSObject } from '@emotion/serialize'
|
|
|
4
4
|
import type { TChannel } from '../../typeds/shares.typed';
|
|
5
5
|
import type { TState } from '../../typeds';
|
|
6
6
|
|
|
7
|
+
type TskuAddons = {
|
|
8
|
+
id?: number
|
|
9
|
+
productId?: number
|
|
10
|
+
masterProductId?: string
|
|
11
|
+
imageUrl?: string
|
|
12
|
+
sku?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
export type TOption = {
|
|
8
16
|
readonly value: any
|
|
9
17
|
readonly label: string
|
|
@@ -18,7 +26,7 @@ export type TOption = {
|
|
|
18
26
|
readonly label: string
|
|
19
27
|
localId?: string
|
|
20
28
|
}[]
|
|
21
|
-
}
|
|
29
|
+
} & TskuAddons
|
|
22
30
|
|
|
23
31
|
export type TLoadOption = (search: string, callback: () => void, { endCursor }: {
|
|
24
32
|
endCursor: string;
|
|
@@ -38,6 +46,8 @@ export type TOnChangeValue = OnChangeValue<TOption, boolean>
|
|
|
38
46
|
|
|
39
47
|
export type TOnChangeValueFalse = OnChangeValue<TOption, false>
|
|
40
48
|
|
|
49
|
+
export type TOnChangeValueTrue = OnChangeValue<TOption, true>
|
|
50
|
+
|
|
41
51
|
export type TActionMeta = ActionMeta<TOption>
|
|
42
52
|
|
|
43
53
|
export type TSelectAsyncPaginate = {
|