forstok-ui-lib 6.20.2 → 6.21.2
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 -49
- package/dist/index.js +571 -1167
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +569 -1165
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/javascripts/function.ts +21 -0
- package/src/assets/javascripts/helper.ts +11 -2
- package/src/components/index.ts +0 -1
- package/src/components/link/index.tsx +4 -1
- package/src/components/link/styles.ts +152 -144
- package/src/components/link/typed.ts +10 -0
- package/src/typeds/shares.typed.ts +26 -26
- package/src/components/masterTable/index.tsx +0 -649
- package/src/components/masterTable/partials/datas/confirm.tsx +0 -92
- package/src/components/masterTable/partials/datas/index.tsx +0 -81
- package/src/components/masterTable/partials/editors/date.bare.tsx +0 -39
- package/src/components/masterTable/partials/editors/date.tsx +0 -123
- package/src/components/masterTable/partials/editors/image.tsx +0 -61
- package/src/components/masterTable/partials/editors/input.bare.tsx +0 -127
- package/src/components/masterTable/partials/editors/input.tsx +0 -140
- package/src/components/masterTable/partials/editors/label.tsx +0 -128
- package/src/components/masterTable/partials/editors/select.bare.tsx +0 -104
- package/src/components/masterTable/partials/editors/select.tsx +0 -142
- package/src/components/masterTable/partials/editors/switch.tsx +0 -56
- package/src/components/masterTable/partials/editors/tag.tsx +0 -49
- package/src/components/masterTable/partials/editors/textarea.tsx +0 -7
- package/src/components/masterTable/styles.tsx +0 -1011
- package/src/components/masterTable/typed.ts +0 -87
package/dist/index.d.ts
CHANGED
|
@@ -15,9 +15,11 @@ type TText = HTMLAttributes<HTMLSpanElement> & {
|
|
|
15
15
|
};
|
|
16
16
|
declare const TextComponent: ({ children, $color, $elipsis, ...props }: TText) => react_jsx_runtime.JSX.Element;
|
|
17
17
|
|
|
18
|
+
type LinkMode = 'clear' | 'clearR' | 'blue' | 'trans' | 'hover' | 'whiteB' | 'redB' | 'greyB' | 'table';
|
|
19
|
+
|
|
18
20
|
type TLinkBase = {
|
|
19
21
|
children: ReactNode;
|
|
20
|
-
mode?:
|
|
22
|
+
mode?: LinkMode;
|
|
21
23
|
$activated?: boolean;
|
|
22
24
|
$elipsis?: boolean;
|
|
23
25
|
$shadow?: boolean;
|
|
@@ -165,26 +167,6 @@ type TPopup = {
|
|
|
165
167
|
type?: string;
|
|
166
168
|
} & TPopupFunctionParam & TPopupFunctionGroup;
|
|
167
169
|
|
|
168
|
-
type TAutoCopyObj = {
|
|
169
|
-
category: string;
|
|
170
|
-
copy: {
|
|
171
|
-
id: number;
|
|
172
|
-
accountIds: number[];
|
|
173
|
-
}[];
|
|
174
|
-
channelId?: number;
|
|
175
|
-
start?: {
|
|
176
|
-
accId: number;
|
|
177
|
-
id: number;
|
|
178
|
-
};
|
|
179
|
-
keys?: string[];
|
|
180
|
-
};
|
|
181
|
-
type TAutoCopy = TAutoCopyObj[];
|
|
182
|
-
type TCustomField = {
|
|
183
|
-
accountId: number;
|
|
184
|
-
header: any;
|
|
185
|
-
id: number;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
170
|
type TskuAddons = {
|
|
189
171
|
id?: number;
|
|
190
172
|
productId?: number;
|
|
@@ -343,30 +325,7 @@ type THeadProps = {
|
|
|
343
325
|
placeholder?: string;
|
|
344
326
|
isHidden?: boolean;
|
|
345
327
|
showFormat?: string;
|
|
346
|
-
|
|
347
|
-
type TMasterProps = {
|
|
348
|
-
data: any;
|
|
349
|
-
setData: any;
|
|
350
|
-
headerColumns: THeadProps[];
|
|
351
|
-
evCreateMessage?: TMessageFunction;
|
|
352
|
-
evCreateMessageQuestion?: TMessageQuestionFunction;
|
|
353
|
-
type?: string;
|
|
354
|
-
isLessField?: boolean;
|
|
355
|
-
isForceUpdateField?: boolean;
|
|
356
|
-
setForceUpdateField?: TState<boolean>;
|
|
357
|
-
evOpenPopup?: TPopupOpenFunction;
|
|
358
|
-
autoCopy?: TAutoCopy;
|
|
359
|
-
setAutoCopy?: TState<TAutoCopy>;
|
|
360
|
-
isAutoCopyField?: boolean;
|
|
361
|
-
resultPopup?: TObject | null;
|
|
362
|
-
setResultPopup?: TState<TObject | null>;
|
|
363
|
-
evCheckAllValidation?: any;
|
|
364
|
-
dataCustomField?: TCustomField[];
|
|
365
|
-
setDataCustomField?: TState<TCustomField[]>;
|
|
366
|
-
isRemovable?: boolean;
|
|
367
|
-
isForceUpdate?: boolean;
|
|
368
|
-
setForceUpdate?: TState<boolean>;
|
|
369
|
-
evPickAll?: TMouseEvent;
|
|
328
|
+
containOfType?: string[] | null;
|
|
370
329
|
};
|
|
371
330
|
type TInData<TData = never> = {
|
|
372
331
|
loading: boolean;
|
|
@@ -511,6 +470,8 @@ type TInDetailProps = {
|
|
|
511
470
|
hasSubscription?: boolean;
|
|
512
471
|
};
|
|
513
472
|
type modeTable = 'picklist' | 'listing' | 'price' | 'price' | 'price-full' | 'price-mid';
|
|
473
|
+
type BodyContentStyle = 'create-return' | 'create-price' | 'create-adjustment' | 'create-outbound' | 'confirm-inbound' | 'confirm-outbound' | 'confirm-adjustment';
|
|
474
|
+
type BodyContentMode = BodyContentStyle | 'create-promotion' | 'create-inbound' | 'create-transfer' | 'create-picklist' | 'edit-picklist' | 'create-package' | 'edit-master' | 'putaway-inbound' | 'create-paymentreceive' | 'create-master' | 'create-listing' | 'create-adjustment' | 'edit-listing';
|
|
514
475
|
|
|
515
476
|
declare const InputOTPComponent: ({ otpLength, value, onChange, ...props }: {
|
|
516
477
|
otpLength: number;
|
|
@@ -717,8 +678,6 @@ type TInput = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
717
678
|
};
|
|
718
679
|
declare const SwitchComponent: ({ isForceUpdate, setForceUpdate, reset, setReset, evChange, ...props }: TInput) => react_jsx_runtime.JSX.Element;
|
|
719
680
|
|
|
720
|
-
declare const MasterTableComponent: (props: TMasterProps) => react_jsx_runtime.JSX.Element;
|
|
721
|
-
|
|
722
681
|
declare const ListComponent: ({ children, $mode, $selected, $type, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
723
682
|
children: ReactNode;
|
|
724
683
|
$mode: string;
|
|
@@ -1042,6 +1001,7 @@ declare const IsNumeric: (val?: any) => boolean;
|
|
|
1042
1001
|
declare const generateMessage: (type: string, value: string | ReactNode, callback?: () => void, timer?: number) => TMessage;
|
|
1043
1002
|
declare const generateMessageQuestion: (type: string, title: string, subtitle: string, callback?: () => void, buttonSubmit?: string, cancelCallback?: () => void) => TMessageQuestion;
|
|
1044
1003
|
declare const currencyNumber: (value?: number | null) => string;
|
|
1004
|
+
declare const generateSUM: (names: string[] | string, data: any, type?: string) => number;
|
|
1045
1005
|
declare const evUpdateInputRc: (input?: HTMLInputElement, value?: string | number) => false | undefined;
|
|
1046
1006
|
declare const getSizeContainer: (full?: boolean) => {
|
|
1047
1007
|
width: number;
|
|
@@ -1078,7 +1038,7 @@ declare const evCheckAllValidationByHeaderWithVariant: (newData: any[], headerCo
|
|
|
1078
1038
|
};
|
|
1079
1039
|
|
|
1080
1040
|
declare const dateRangeStatus: (value: string) => any;
|
|
1081
|
-
declare const pageMasterTable: (value
|
|
1041
|
+
declare const pageMasterTable: (value?: BodyContentMode) => "" | "listing" | "picklist" | "promotion" | "master" | "stock" | "payment";
|
|
1082
1042
|
declare const errorTitle: (name: string) => string;
|
|
1083
1043
|
declare const colorCommonQuantity: (value: number) => "green" | "red";
|
|
1084
1044
|
declare const statusColor: (name?: string) => "" | "green" | "red" | "#F8813E";
|
|
@@ -1089,6 +1049,7 @@ declare const colorStockInboundQuantity: (status: string) => "yellow" | "lightgr
|
|
|
1089
1049
|
declare const colorStockAdjust: (qty: number, newQty: number) => "red" | "lightgreen";
|
|
1090
1050
|
declare const errorMessage: (value: string) => "already exists" | "is required";
|
|
1091
1051
|
declare const typePage: (value?: string) => "" | "stock" | "bundle" | "sales";
|
|
1052
|
+
declare const isCustomVariantChannel: (channelId: number) => boolean;
|
|
1092
1053
|
declare const historyType: (name?: string) => "" | "ST" | "SA" | "SI" | "SOB" | "RMA" | "SO";
|
|
1093
1054
|
declare const channelMap: (value: number) => any;
|
|
1094
1055
|
declare const colorStatus: (value?: string) => "green" | "#F8813E" | "#21BA45" | "#FF585C" | "#a9a9a9" | "#ff585d" | "#2c913d";
|
|
@@ -1101,4 +1062,4 @@ declare const configDateRange: {
|
|
|
1101
1062
|
minDate: string;
|
|
1102
1063
|
};
|
|
1103
1064
|
|
|
1104
|
-
export { APILabel, BoxContainer, BreadcrumbContainer, BulkActionWrapper, BulkSelectContainer, 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, ContentLoaderOneLine, ContentLoaderOneLinePromotion, ContentLoaderOnlyBodyDashboardCard, ContentLoaderOnlyBodyTableList, ContentLoaderOnlyHeaderTableList, ContentLoaderOrderDetail, ContentLoaderOrderList, ContentLoaderPOSCategory, ContentLoaderPOSItem, ContentLoaderPOSStore, ContentLoaderPagination, ContentLoaderPopupBundle, ContentLoaderPopupChooseStore, ContentLoaderPopupLinkedListing, ContentLoaderPopupListOrder, ContentLoaderPopupPaymentReceive, ContentLoaderPopupPaymentReceived, ContentLoaderPopupPicklist, ContentLoaderPopupReadyToShip, ContentLoaderPopupStoreSelect, ContentLoaderPosProductDetail, ContentLoaderPromotionHover, ContentLoaderReportingDashboard, ContentLoaderSetting, ContentLoaderTableList, CreateContainer, CreateHeaderWrapper, CreateToolWrapper, DateComponent, DateTimeComponent, DateWrapper, DetailItem, DetailItemAction, DetailItemInfo, DetailItemTitle, DetailItemWrapper, DetailList, DetailPanelWrapper, DetailWrapper, DotIcon, DropdownAction, DropdownItem, DropdownList, DropdownTitle, ErrorComponent, FigureWraper, FilterButton, FilterColumnContainer, FilterContainer, FilterItem, FilterList, FilterListTitle, FilterStoreContainer, FilterStoreList, FilterWrapper, FoContainer, FormContainer, HeaderContainer, IconComponent, IconDot, ImageChannelComponent, ImageComponent, InfoGroup, InitialContainer, InputComponent, InputGroup, InputOTPComponent, InputWithRefComponent as InputRefComponent, IsNumeric, ItemPriceLabel, ItemQtyLabel, ItemTable, type KeysToSnakeCase, LabelComponent, LeftPanelContainer, LinkComponent, LinkContainer, ListAddItemContainer, ListComponent, ListContainer, ListTable, ListTableContainer, LoadingComponent, MasterTableActionWrapper,
|
|
1065
|
+
export { APILabel, type BodyContentMode, type BodyContentStyle, BoxContainer, BreadcrumbContainer, BulkActionWrapper, BulkSelectContainer, 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, ContentLoaderOneLine, ContentLoaderOneLinePromotion, ContentLoaderOnlyBodyDashboardCard, ContentLoaderOnlyBodyTableList, ContentLoaderOnlyHeaderTableList, ContentLoaderOrderDetail, ContentLoaderOrderList, ContentLoaderPOSCategory, ContentLoaderPOSItem, ContentLoaderPOSStore, ContentLoaderPagination, ContentLoaderPopupBundle, ContentLoaderPopupChooseStore, ContentLoaderPopupLinkedListing, ContentLoaderPopupListOrder, ContentLoaderPopupPaymentReceive, ContentLoaderPopupPaymentReceived, ContentLoaderPopupPicklist, ContentLoaderPopupReadyToShip, ContentLoaderPopupStoreSelect, ContentLoaderPosProductDetail, ContentLoaderPromotionHover, ContentLoaderReportingDashboard, ContentLoaderSetting, ContentLoaderTableList, CreateContainer, CreateHeaderWrapper, CreateToolWrapper, DateComponent, DateTimeComponent, DateWrapper, DetailItem, DetailItemAction, DetailItemInfo, DetailItemTitle, DetailItemWrapper, DetailList, DetailPanelWrapper, DetailWrapper, DotIcon, DropdownAction, DropdownItem, DropdownList, DropdownTitle, ErrorComponent, FigureWraper, FilterButton, FilterColumnContainer, FilterContainer, FilterItem, FilterList, FilterListTitle, FilterStoreContainer, FilterStoreList, FilterWrapper, FoContainer, FormContainer, HeaderContainer, IconComponent, IconDot, ImageChannelComponent, ImageComponent, InfoGroup, InitialContainer, InputComponent, InputGroup, InputOTPComponent, InputWithRefComponent as InputRefComponent, IsNumeric, ItemPriceLabel, ItemQtyLabel, ItemTable, type KeysToSnakeCase, LabelComponent, LeftPanelContainer, LinkComponent, LinkContainer, ListAddItemContainer, ListComponent, ListContainer, ListTable, ListTableContainer, LoadingComponent, MasterTableActionWrapper, MenuList, MessageComponent, MessageQuestionComponent, type ModeListTableColumn, MultiPanelContainer, MuteLabel, NameLabel, NavChildItem, NavChildLine, NavContainer, NavContainerStyles, NavList, NavMainItem, NavMainItemWrapper, NavMobileHeaderWrapper, NavMobileOverlay, PageButton, PageDot, PageLabel, PageWrapper, PaginationContainer, PanelBody, PanelContainer, PanelWrapper, type PartialBy, PopupAddProductContainer, PopupBoxWrapper, PopupCard, PopupColumnGroup, PopupComponent, PopupDownloadWrapper, PopupExportCardWrapper, PopupItem, PopupItemLabel, PopupItemName, PopupList, PopupRowGroup, PopupTable, PopupTableBody, PopupTableHead, PopupTableItem, RadioComponent, RightPanelContainer, ScrollArrowContainer, 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 TEnterEvent, type TFile, type TFileImage, type TGroupBaseWithVariable, type THeadProps, type THierarchy, type TIdNum, type TIdStr, type TInData, type TInDetail, type TInDetailProps, type TInList, type TInListProps, type TInPart, type TInlistPart, type TKeyboadEvent, type TLoadOption, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMoment, 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 TPasteEvent, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TSelectAsyncPaginate, type TSingleValueProps, type TState, type TStateCallback, type TUPage, type TUser, TableBundleColumn, TableColumnGroup, TableContentWrapper, TableHeadLabel, TableHeadWrapper, TableItemColumn, TableItemWrapper, TableLabel, TableRightGroup, TableRowGroup, TabsContainer, TabsContent, TabsHeader, TabsItem, TabsList, TabsWrapper, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, TotalLabel, UpdateContainer, UploadComponent, UploadDragDropComponent, type WithRequired, abbreviateNumber, buttonActiveShadowStyle, buttonActiveStyle, buttonHoverStyle, buttonStyle, capitalize, channelMap, clearList, colorCommonQuantity, colorStatus, colorStockAdjust, colorStockInboundQuantity, colorStockInboundStatus, colorStockQuantity, colorStockStatus, commonCSSLists, configDateRange, currencyNumber, dateRangeStatus, debounce, dropBase, elipsis, errorMessage, errorTitle, evCheckAllValidation, evCheckAllValidationByHeader, evCheckAllValidationByHeaderWithVariant, evCloseDropdown, evExecuteError, evGenerateValueMatch, evHighlight, evKeyMapperScanner, evRemoveActiveButton, evScrollTo, evSetTotal, evUpdateInputRc, formLabel, formatNumber, generateAddress, generateMessage, generateMessageQuestion, generateSUM, generateValue, generateValueTable, getSizeContainer, getStorage, headTable, historyType, humanise, isCustomVariantChannel, isDesktop, isMobile, isTablet, type modeTable, multiElipsis, pageMasterTable, pasteIntoInput, removeStorage, responseWidth, setStorage, statusColor, thirdElipsis, typePage, unCamelCaseKeys, unescapeHTML, validateByApproveJs };
|