forstok-ui-lib 6.20.1 → 6.21.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 +7 -48
- 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/images/icons/document.svg +16 -11
- package/src/assets/javascripts/function.ts +21 -0
- package/src/assets/javascripts/helper.ts +9 -0
- 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 +1 -25
- 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;
|
|
@@ -717,8 +676,6 @@ type TInput = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
717
676
|
};
|
|
718
677
|
declare const SwitchComponent: ({ isForceUpdate, setForceUpdate, reset, setReset, evChange, ...props }: TInput) => react_jsx_runtime.JSX.Element;
|
|
719
678
|
|
|
720
|
-
declare const MasterTableComponent: (props: TMasterProps) => react_jsx_runtime.JSX.Element;
|
|
721
|
-
|
|
722
679
|
declare const ListComponent: ({ children, $mode, $selected, $type, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
723
680
|
children: ReactNode;
|
|
724
681
|
$mode: string;
|
|
@@ -1042,6 +999,7 @@ declare const IsNumeric: (val?: any) => boolean;
|
|
|
1042
999
|
declare const generateMessage: (type: string, value: string | ReactNode, callback?: () => void, timer?: number) => TMessage;
|
|
1043
1000
|
declare const generateMessageQuestion: (type: string, title: string, subtitle: string, callback?: () => void, buttonSubmit?: string, cancelCallback?: () => void) => TMessageQuestion;
|
|
1044
1001
|
declare const currencyNumber: (value?: number | null) => string;
|
|
1002
|
+
declare const generateSUM: (names: string[] | string, data: any, type?: string) => number;
|
|
1045
1003
|
declare const evUpdateInputRc: (input?: HTMLInputElement, value?: string | number) => false | undefined;
|
|
1046
1004
|
declare const getSizeContainer: (full?: boolean) => {
|
|
1047
1005
|
width: number;
|
|
@@ -1089,6 +1047,7 @@ declare const colorStockInboundQuantity: (status: string) => "yellow" | "lightgr
|
|
|
1089
1047
|
declare const colorStockAdjust: (qty: number, newQty: number) => "red" | "lightgreen";
|
|
1090
1048
|
declare const errorMessage: (value: string) => "already exists" | "is required";
|
|
1091
1049
|
declare const typePage: (value?: string) => "" | "stock" | "bundle" | "sales";
|
|
1050
|
+
declare const isCustomVariantChannel: (channelId: number) => boolean;
|
|
1092
1051
|
declare const historyType: (name?: string) => "" | "ST" | "SA" | "SI" | "SOB" | "RMA" | "SO";
|
|
1093
1052
|
declare const channelMap: (value: number) => any;
|
|
1094
1053
|
declare const colorStatus: (value?: string) => "green" | "#F8813E" | "#21BA45" | "#FF585C" | "#a9a9a9" | "#ff585d" | "#2c913d";
|
|
@@ -1101,4 +1060,4 @@ declare const configDateRange: {
|
|
|
1101
1060
|
minDate: string;
|
|
1102
1061
|
};
|
|
1103
1062
|
|
|
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,
|
|
1063
|
+
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, 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 };
|