@paypay/mini-app-js-sdk 1.19.0 → 1.23.0
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/composition-api/dom/index.d.ts +1 -0
- package/dist/composition-api/dom/useCountDown.d.ts +20 -0
- package/dist/composition-api/useInpuAddress.d.ts +1 -1
- package/dist/composition-api/useRegisterEmail.d.ts +1 -1
- package/dist/composition-api/useRenderSmartButton.d.ts +1 -1
- package/dist/jsbridge-core/jsbridge.d.ts +2 -2
- package/dist/jsbridge-core/lib/logger.d.ts +5 -5
- package/dist/mini-app-api.d.ts +2 -2
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +8603 -5805
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +1 -1
- package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
- package/dist/model/bridge/closeApp.d.ts +1 -1
- package/dist/model/bridge/copyToClipboard.d.ts +1 -1
- package/dist/model/bridge/debug.d.ts +1 -1
- package/dist/model/bridge/getAppDetail.d.ts +2 -16
- package/dist/model/bridge/getConfigure.d.ts +3 -3
- package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
- package/dist/model/bridge/getSessionData.d.ts +1 -1
- package/dist/model/bridge/getStorageData.d.ts +1 -1
- package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +1 -1
- package/dist/model/bridge/getUserAddress.d.ts +1 -1
- package/dist/model/bridge/inputAddress.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +1 -1
- package/dist/model/bridge/openApp.d.ts +1 -1
- package/dist/model/bridge/openMap.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/model/bridge/registerKyc.d.ts +1 -1
- package/dist/model/bridge/renderLoginButton.d.ts +6 -2
- package/dist/model/bridge/renderPayButton.d.ts +5 -1
- package/dist/model/bridge/request.d.ts +1 -1
- package/dist/model/makePayment.d.ts +66 -56
- package/dist/model/uiComponents.d.ts +2 -1
- package/dist/package/action-sheet/index.d.ts +20 -13
- package/dist/package/banner-header/index.vue.d.ts +3 -3
- package/dist/package/button/index.d.ts +17 -9
- package/dist/package/charge-amount-list/index.vue.d.ts +27 -8
- package/dist/package/charge-amount-more-list/index.vue.d.ts +6 -2
- package/dist/package/date-button/index.vue.d.ts +1 -3
- package/dist/package/desktop-header/index.d.ts +21 -0
- package/dist/package/header/index.d.ts +7 -7
- package/dist/package/index.d.ts +1 -0
- package/dist/package/input/index.d.ts +57 -17
- package/dist/package/lottie/index.d.ts +5 -8
- package/dist/package/overlay/index.d.ts +1 -1
- package/dist/package/payment-method/Bank.vue.d.ts +7 -7
- package/dist/package/payment-method/CreditCard.vue.d.ts +5 -5
- package/dist/package/payment-method/SbidBank.vue.d.ts +262 -4
- package/dist/package/payment-method/Wallet.vue.d.ts +265 -7
- package/dist/package/payment-method-list/index.vue.d.ts +14 -2
- package/dist/package/payment-type/Bank.vue.d.ts +5 -5
- package/dist/package/payment-type/CreditCard.vue.d.ts +6 -6
- package/dist/package/payment-type/Sbid.vue.d.ts +260 -2
- package/dist/package/payment-type/Wallet.vue.d.ts +261 -2
- package/dist/package/payment-type/index.d.ts +4 -6
- package/dist/package/select-list/Components.d.ts +43 -3
- package/dist/package/select-list/index.d.ts +11 -2
- package/dist/package/switch/index.d.ts +1 -1
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +286 -0
- package/dist/types.d.ts +48 -16
- package/dist/utils/api.d.ts +38 -17
- package/dist/utils/create/bem.d.ts +2 -2
- package/dist/utils/create/index.d.ts +1 -1
- package/dist/utils/fetch.d.ts +2 -2
- package/dist/utils/getImages.d.ts +36 -5
- package/dist/utils/getLanguage.d.ts +224 -2
- package/dist/utils/helper.d.ts +10 -13
- package/dist/utils/popstateHandler.d.ts +1 -1
- package/dist/utils/storage.d.ts +12 -10
- package/dist/utils/uiConstants.d.ts +1 -0
- package/dist/utils/useBreakpoints.d.ts +5 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/views/email-registration/App.vue.d.ts +231 -8
- package/dist/views/email-registration/components/EmailButton.vue.d.ts +3 -3
- package/dist/views/email-registration/hooks/callback.d.ts +2 -2
- package/dist/views/email-registration/hooks/ui.d.ts +2 -2
- package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +2 -2
- package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +1 -1
- package/dist/views/error-sheet/Index.vue.d.ts +271 -13
- package/dist/views/get-user-address/App.vue.d.ts +11 -3
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +243 -11
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +262 -4
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +246 -3
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +227 -4
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +246 -18
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +29 -12
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +235 -3
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +227 -3
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +302 -11
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +240 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +259 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +254 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +246 -0
- package/dist/views/get-user-address/hooks/ui-hooks.d.ts +45 -2
- package/dist/views/get-user-address/store/error-handle.d.ts +2 -1
- package/dist/views/get-user-address/store/root.d.ts +6 -2
- package/dist/views/input-address/App.vue.d.ts +6 -7
- package/dist/views/input-address/hook/app.d.ts +2 -2
- package/dist/views/input-address/hook/error-handle.d.ts +1 -2
- package/dist/views/make-payment/App.vue.d.ts +3 -3
- package/dist/views/make-payment/Main.vue.d.ts +80 -511
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +230 -8
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +229 -5
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +260 -2
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +260 -2
- package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +4 -4
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +267 -9
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +240 -3
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +363 -13
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +274 -7
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +537 -226
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +232 -6
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +265 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +233 -10
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +328 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +338 -18
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +43 -9
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +293 -8
- package/dist/views/make-payment/hooks/app-hooks.d.ts +168 -355
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +29 -15
- package/dist/views/make-payment/store/age-confirm.d.ts +1 -1
- package/dist/views/make-payment/store/handle-error.d.ts +2 -2
- package/dist/views/make-payment/store/root.d.ts +3 -3
- package/dist/views/make-payment/utils/paymentMethod.d.ts +3 -1
- package/dist/views/open-app/App.vue.d.ts +261 -3
- package/dist/views/open-map/App.vue.d.ts +225 -2
- package/dist/views/show-alert/App.vue.d.ts +5 -5
- package/dist/views/show-update-warning/App.vue.d.ts +261 -3
- package/dist/views/smart-button/App.vue.d.ts +10 -10
- package/dist/views/take-photo/App.vue.d.ts +225 -2
- package/dist/views/topup/App.vue.d.ts +298 -22
- package/dist/views/topup/BannerInfo.vue.d.ts +15 -11
- package/dist/views/topup/CashbackInfo.vue.d.ts +226 -3
- package/dist/views/topup/TopupCompletion.vue.d.ts +261 -1
- package/package.json +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorResponse } from '../utils/fetch';
|
|
2
2
|
import { MiniAppErrorType } from './miniAppError';
|
|
3
|
-
import { Amount } from '../types';
|
|
3
|
+
import { Amount, OrderItem } from '../types';
|
|
4
4
|
import { UIComponentsError } from './uiComponents';
|
|
5
5
|
export interface PaymentIdQuery {
|
|
6
6
|
merchant?: string;
|
|
@@ -16,17 +16,19 @@ interface PaymentBody {
|
|
|
16
16
|
amount: Amount;
|
|
17
17
|
orderReceiptNumber?: string;
|
|
18
18
|
orderDescription?: string;
|
|
19
|
-
orderItems?: Array<
|
|
20
|
-
metaData?:
|
|
19
|
+
orderItems?: Array<OrderItem>;
|
|
20
|
+
metaData?: unknown;
|
|
21
21
|
storeId?: string;
|
|
22
22
|
paymentMethodId: string;
|
|
23
|
-
terminalId
|
|
23
|
+
terminalId?: number | string;
|
|
24
24
|
merchantAlias?: string;
|
|
25
25
|
requestedAt?: number;
|
|
26
26
|
productType?: string;
|
|
27
27
|
sourceInfoApp?: string;
|
|
28
28
|
storeInfo?: string;
|
|
29
|
-
metadata?:
|
|
29
|
+
metadata?: unknown;
|
|
30
|
+
expiresAt?: number;
|
|
31
|
+
merchant?: string;
|
|
30
32
|
}
|
|
31
33
|
export declare type Balance = {
|
|
32
34
|
balance: number;
|
|
@@ -42,12 +44,27 @@ export declare enum PaymentMethodType {
|
|
|
42
44
|
PAY_LATER = "PAY_LATER",
|
|
43
45
|
PAY_LATER_CC = "PAY_LATER_CC"
|
|
44
46
|
}
|
|
47
|
+
export declare enum PaymentOpType {
|
|
48
|
+
PAY = "PAY",
|
|
49
|
+
TOPUP = "TOPUP"
|
|
50
|
+
}
|
|
51
|
+
export interface PaymentState {
|
|
52
|
+
paymentMethods: PaymentMethod[];
|
|
53
|
+
selectPaymentIndex: number;
|
|
54
|
+
bannerInfo: BannerInfo;
|
|
55
|
+
showPaymentMethodList: boolean;
|
|
56
|
+
}
|
|
45
57
|
declare type MethodBase = {
|
|
46
58
|
paymentMethodId: string;
|
|
47
|
-
bankInfo: null;
|
|
48
59
|
paymentMethodType: PaymentMethodType;
|
|
49
|
-
walletInfo: null;
|
|
50
60
|
descriptionBannerInfo?: BannerInfo;
|
|
61
|
+
walletInfo?: unknown;
|
|
62
|
+
creditCardInfo?: unknown;
|
|
63
|
+
bankInfo?: unknown;
|
|
64
|
+
sbidCarrierBillingInfo?: unknown;
|
|
65
|
+
paymentMethodDescriptionInfo?: {
|
|
66
|
+
statusDescription: Record<string, unknown>;
|
|
67
|
+
};
|
|
51
68
|
};
|
|
52
69
|
export declare type BannerInfo = {
|
|
53
70
|
label?: string;
|
|
@@ -56,18 +73,17 @@ export declare type BannerInfo = {
|
|
|
56
73
|
displayResponse?: UIComponentsError;
|
|
57
74
|
};
|
|
58
75
|
export declare type WalletMethod = Omit<MethodBase, 'walletInfo'> & {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
walletSummary: {
|
|
76
|
+
walletInfo?: {
|
|
77
|
+
cashBackBalanceInfo?: Balance;
|
|
78
|
+
cashBackExpirableBalanceInfo?: Balance;
|
|
79
|
+
emoneyBalanceInfo?: Balance;
|
|
80
|
+
prepaidBalanceInfo?: Balance;
|
|
81
|
+
walletSummary?: {
|
|
66
82
|
totalBalanceInfo: Balance;
|
|
67
83
|
payoutableBalanceInfo: Balance;
|
|
68
84
|
transferableBalanceInfo: Balance;
|
|
69
85
|
};
|
|
70
|
-
walletDetail
|
|
86
|
+
walletDetail?: {
|
|
71
87
|
emoneyBalanceInfo?: Balance;
|
|
72
88
|
prepaidBalanceInfo?: Balance;
|
|
73
89
|
cashBackBalanceInfo?: Balance;
|
|
@@ -91,17 +107,14 @@ export declare enum PaymentMethodStatus {
|
|
|
91
107
|
BUSY = "BUSY"
|
|
92
108
|
}
|
|
93
109
|
export declare type CreditMethod = Omit<MethodBase, 'creditCardInfo'> & {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
last4digits: string;
|
|
103
|
-
ccType: string;
|
|
104
|
-
paymentMethodStatus: PaymentMethodStatus;
|
|
110
|
+
creditCardInfo?: {
|
|
111
|
+
brand?: CreditTypes;
|
|
112
|
+
isAuthenticated?: boolean;
|
|
113
|
+
isExpired?: boolean;
|
|
114
|
+
isYjCard?: boolean;
|
|
115
|
+
last4digits?: string;
|
|
116
|
+
ccType?: string;
|
|
117
|
+
paymentMethodStatus?: PaymentMethodStatus;
|
|
105
118
|
};
|
|
106
119
|
};
|
|
107
120
|
export declare enum bankCode {
|
|
@@ -124,43 +137,35 @@ export declare enum status {
|
|
|
124
137
|
'BUSY' = "\u5229\u7528\u4E0D\u53EF"
|
|
125
138
|
}
|
|
126
139
|
export declare type BankInfo = {
|
|
127
|
-
paymentMethodStatusLabel
|
|
128
|
-
paymentMethodStatus
|
|
129
|
-
bankName
|
|
130
|
-
bankLogoUrl
|
|
131
|
-
bankCode
|
|
132
|
-
bankCardImage
|
|
140
|
+
paymentMethodStatusLabel?: string;
|
|
141
|
+
paymentMethodStatus?: PaymentMethodStatus;
|
|
142
|
+
bankName?: string;
|
|
143
|
+
bankLogoUrl?: string;
|
|
144
|
+
bankCode?: string;
|
|
145
|
+
bankCardImage?: {
|
|
133
146
|
cardUrl: string;
|
|
134
147
|
textColor: string;
|
|
135
148
|
uiColor: string;
|
|
136
149
|
};
|
|
137
|
-
bankBranchName
|
|
138
|
-
bankBranchCode
|
|
139
|
-
bankAccountType
|
|
140
|
-
bankAccountNumberLast2digits
|
|
150
|
+
bankBranchName?: string;
|
|
151
|
+
bankBranchCode?: string;
|
|
152
|
+
bankAccountType?: string;
|
|
153
|
+
bankAccountNumberLast2digits?: string;
|
|
141
154
|
};
|
|
142
155
|
export declare type BankMethod = Omit<MethodBase, 'bankInfo'> & {
|
|
143
|
-
|
|
144
|
-
paymentMethodType: PaymentMethodType.BANK | PaymentMethodType.YMONEY_BANK;
|
|
145
|
-
paymentMethodDescriptionInfo: any;
|
|
146
|
-
bankInfo: BankInfo;
|
|
156
|
+
bankInfo?: BankInfo;
|
|
147
157
|
};
|
|
148
158
|
export declare type SbidBankMethod = Omit<MethodBase, 'sbidCarrierBillingInfo'> & {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
paymentMethodDescriptionInfo: any;
|
|
152
|
-
sbidCarrierBillingInfo: {
|
|
153
|
-
paymentMethodStatus: PaymentMethodStatus;
|
|
159
|
+
sbidCarrierBillingInfo?: {
|
|
160
|
+
paymentMethodStatus?: PaymentMethodStatus;
|
|
154
161
|
};
|
|
155
162
|
};
|
|
156
|
-
export declare type PayLaterMethod = Omit<MethodBase, ''
|
|
157
|
-
paymentMethodId: Number;
|
|
158
|
-
paymentMethodType: PaymentMethodType.PAY_LATER | PaymentMethodType.PAY_LATER_CC;
|
|
159
|
-
paymentMethodDescriptionInfo: any;
|
|
160
|
-
};
|
|
163
|
+
export declare type PayLaterMethod = Omit<MethodBase, ''>;
|
|
161
164
|
export declare type ResponseBase = {
|
|
162
165
|
status: number;
|
|
163
|
-
signed:
|
|
166
|
+
signed: {
|
|
167
|
+
jws?: string;
|
|
168
|
+
};
|
|
164
169
|
uiComponents?: {
|
|
165
170
|
displayErrorResponse: UIComponentsError;
|
|
166
171
|
};
|
|
@@ -180,7 +185,12 @@ export declare type getPaymentMethodsResponse = ResponseBase & {
|
|
|
180
185
|
};
|
|
181
186
|
};
|
|
182
187
|
};
|
|
183
|
-
export declare const getPaymentMethods: (params:
|
|
188
|
+
export declare const getPaymentMethods: (params: {
|
|
189
|
+
merchant?: string;
|
|
190
|
+
type: string;
|
|
191
|
+
productType?: string;
|
|
192
|
+
sourceInfoApp?: string;
|
|
193
|
+
}) => Promise<ErrorResponse | getPaymentMethodsResponse>;
|
|
184
194
|
export declare type PaymentResult = {
|
|
185
195
|
requestedAt: number;
|
|
186
196
|
storeId: string;
|
|
@@ -203,7 +213,7 @@ export declare type MakePaymentResponse = ResponseBase & {
|
|
|
203
213
|
data: PaymentResult;
|
|
204
214
|
};
|
|
205
215
|
};
|
|
206
|
-
export declare const makePayment: (queryParams: PaymentQuery, body: PaymentBody, isAuthorization:
|
|
216
|
+
export declare const makePayment: (queryParams: PaymentQuery, body: PaymentBody, isAuthorization: boolean) => Promise<{
|
|
207
217
|
isSuccess: boolean;
|
|
208
218
|
} & (ErrorResponse | MakePaymentResponse)>;
|
|
209
219
|
export declare type AppealDescription = {
|
|
@@ -235,7 +245,7 @@ export declare type ConsultError = {
|
|
|
235
245
|
};
|
|
236
246
|
export declare type ConsultResponse = ResponseBase & {
|
|
237
247
|
unsigned: {
|
|
238
|
-
resultInfo:
|
|
248
|
+
resultInfo: unknown;
|
|
239
249
|
data: {
|
|
240
250
|
error?: ConsultError;
|
|
241
251
|
header: {
|
|
@@ -278,7 +288,7 @@ declare type CashBackDetailInfo = {
|
|
|
278
288
|
isMeti: boolean;
|
|
279
289
|
bannerId?: string;
|
|
280
290
|
optionalText?: string;
|
|
281
|
-
googleAnalyticsInfo?:
|
|
291
|
+
googleAnalyticsInfo?: unknown;
|
|
282
292
|
};
|
|
283
293
|
export declare type CashBackDetail = {
|
|
284
294
|
cashBackAmount: number;
|
|
@@ -289,7 +299,7 @@ export declare type CashBackDetail = {
|
|
|
289
299
|
optionalText: string;
|
|
290
300
|
animationUrl: string;
|
|
291
301
|
couponCashbackDetail: string;
|
|
292
|
-
googleAnalyticsInfo:
|
|
302
|
+
googleAnalyticsInfo: unknown;
|
|
293
303
|
cashBackDescription: string;
|
|
294
304
|
cashBackDetailListDescription: string;
|
|
295
305
|
lotteryAnimationUrl?: string;
|
|
@@ -12,7 +12,8 @@ export declare type UIComponentsErrorButton = {
|
|
|
12
12
|
actionType: UIComponentsButtonActionType;
|
|
13
13
|
buttonType: UIComponentsButtonType;
|
|
14
14
|
deeplink?: string;
|
|
15
|
-
googleAnalyticsInfo:
|
|
15
|
+
googleAnalyticsInfo: unknown;
|
|
16
|
+
type: unknown;
|
|
16
17
|
};
|
|
17
18
|
export declare type UIComponentsError = {
|
|
18
19
|
title: string;
|
|
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
export declare const ActionSheet: import("vue").DefineComponent<{
|
|
3
3
|
show: BooleanConstructor;
|
|
4
4
|
class: {
|
|
5
|
-
type: StringConstructor;
|
|
5
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
appear: {
|
|
@@ -13,8 +13,8 @@ export declare const ActionSheet: import("vue").DefineComponent<{
|
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
type: PropType<"
|
|
16
|
+
type: {
|
|
17
|
+
type: PropType<"primary" | "secondary" | "alert">;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
20
|
fullScreen: {
|
|
@@ -40,51 +40,58 @@ export declare const ActionSheet: import("vue").DefineComponent<{
|
|
|
40
40
|
default: boolean;
|
|
41
41
|
required: false;
|
|
42
42
|
};
|
|
43
|
+
containerClass: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
43
47
|
}, {
|
|
44
48
|
slots: Readonly<{
|
|
45
|
-
[name: string]: import("vue").Slot;
|
|
49
|
+
[name: string]: import("vue").Slot | undefined;
|
|
46
50
|
}>;
|
|
47
51
|
moving: import("vue").ComputedRef<boolean>;
|
|
48
|
-
containerStyle: import("vue").ComputedRef<{
|
|
49
|
-
[key: string]: unknown;
|
|
50
|
-
}>;
|
|
51
52
|
touchStart: (e: TouchEvent) => void;
|
|
52
53
|
touchEnd: () => void;
|
|
53
54
|
touchMove: (e: TouchEvent) => void;
|
|
55
|
+
parentStyle: import("vue").ComputedRef<{
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
}>;
|
|
54
58
|
close: () => void;
|
|
55
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
56
60
|
show?: unknown;
|
|
57
61
|
class?: unknown;
|
|
58
62
|
appear?: unknown;
|
|
59
63
|
round?: unknown;
|
|
60
|
-
|
|
64
|
+
type?: unknown;
|
|
61
65
|
fullScreen?: unknown;
|
|
62
66
|
forbiddenSwipe?: unknown;
|
|
63
67
|
style?: unknown;
|
|
64
68
|
noPaddingBottom?: unknown;
|
|
65
69
|
noOverlay?: unknown;
|
|
70
|
+
containerClass?: unknown;
|
|
66
71
|
} & {
|
|
67
72
|
style: Record<string, any>;
|
|
73
|
+
type: "primary" | "secondary" | "alert";
|
|
68
74
|
show: boolean;
|
|
69
|
-
class: string
|
|
75
|
+
class: string | Record<string, any>;
|
|
70
76
|
appear: boolean;
|
|
71
77
|
round: boolean;
|
|
72
|
-
direction: "bottom" | "left";
|
|
73
78
|
fullScreen: boolean;
|
|
74
79
|
forbiddenSwipe: boolean;
|
|
75
80
|
noPaddingBottom: boolean;
|
|
76
81
|
noOverlay: boolean;
|
|
82
|
+
containerClass: string;
|
|
77
83
|
} & {}> & {
|
|
78
|
-
onClose?: (...args: any[]) => any;
|
|
84
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
79
85
|
}, {
|
|
80
86
|
style: Record<string, any>;
|
|
87
|
+
type: "primary" | "secondary" | "alert";
|
|
81
88
|
show: boolean;
|
|
82
|
-
class: string
|
|
89
|
+
class: string | Record<string, any>;
|
|
83
90
|
appear: boolean;
|
|
84
91
|
round: boolean;
|
|
85
|
-
direction: "bottom" | "left";
|
|
86
92
|
fullScreen: boolean;
|
|
87
93
|
forbiddenSwipe: boolean;
|
|
88
94
|
noPaddingBottom: boolean;
|
|
89
95
|
noOverlay: boolean;
|
|
96
|
+
containerClass: string;
|
|
90
97
|
}>;
|
|
@@ -26,8 +26,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
|
-
iconImageUrl: import("vue").ComputedRef<string>;
|
|
30
|
-
title: import("vue").ComputedRef<string>;
|
|
29
|
+
iconImageUrl: import("vue").ComputedRef<string | undefined>;
|
|
30
|
+
title: import("vue").ComputedRef<string | undefined>;
|
|
31
31
|
label: import("vue").ComputedRef<string>;
|
|
32
32
|
customClass: string;
|
|
33
33
|
style: Record<string, string>;
|
|
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
textStyle: string;
|
|
46
46
|
iconAlignRight: boolean;
|
|
47
47
|
} & {}> & {
|
|
48
|
-
onShow?: (...args: any[]) => any;
|
|
48
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
class: string;
|
|
51
51
|
descriptionBannerInfo: BannerInfo;
|
|
@@ -21,6 +21,7 @@ export declare const Button: import("vue").DefineComponent<{
|
|
|
21
21
|
name: {
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
required: false;
|
|
24
|
+
default: string;
|
|
24
25
|
};
|
|
25
26
|
disabledClassName: {
|
|
26
27
|
type: StringConstructor;
|
|
@@ -28,10 +29,14 @@ export declare const Button: import("vue").DefineComponent<{
|
|
|
28
29
|
default: string;
|
|
29
30
|
};
|
|
30
31
|
class: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
32
33
|
required: false;
|
|
33
34
|
default: string;
|
|
34
35
|
};
|
|
36
|
+
noMargin: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
35
40
|
}, {
|
|
36
41
|
onClick: (event: MouseEvent) => void;
|
|
37
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -44,26 +49,29 @@ export declare const Button: import("vue").DefineComponent<{
|
|
|
44
49
|
name?: unknown;
|
|
45
50
|
disabledClassName?: unknown;
|
|
46
51
|
class?: unknown;
|
|
52
|
+
noMargin?: unknown;
|
|
47
53
|
} & {
|
|
48
|
-
|
|
54
|
+
name: string;
|
|
55
|
+
type: ButtonType;
|
|
56
|
+
class: string | Record<string, any>;
|
|
49
57
|
disabled: boolean;
|
|
50
58
|
loading: boolean;
|
|
51
59
|
block: boolean;
|
|
52
|
-
type: ButtonType;
|
|
53
60
|
size: ButtonSize;
|
|
54
61
|
tabIndex: number;
|
|
55
62
|
disabledClassName: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
onClick?: (...args: any[]) => any;
|
|
63
|
+
noMargin: boolean;
|
|
64
|
+
} & {}> & {
|
|
65
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
60
66
|
}, {
|
|
61
|
-
|
|
67
|
+
name: string;
|
|
68
|
+
type: ButtonType;
|
|
69
|
+
class: string | Record<string, any>;
|
|
62
70
|
disabled: boolean;
|
|
63
71
|
loading: boolean;
|
|
64
72
|
block: boolean;
|
|
65
|
-
type: ButtonType;
|
|
66
73
|
size: ButtonSize;
|
|
67
74
|
tabIndex: number;
|
|
68
75
|
disabledClassName: string;
|
|
76
|
+
noMargin: boolean;
|
|
69
77
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, ComputedRef } from 'vue';
|
|
2
|
+
import { SelectType, ListType } from '../select-list/Components';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
isfullheight: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -17,38 +18,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
18
|
default: () => number[];
|
|
18
19
|
required: false;
|
|
19
20
|
};
|
|
20
|
-
isSelectMoreVisible: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
21
|
itemClassName: {
|
|
25
22
|
type: StringConstructor;
|
|
26
23
|
default: string;
|
|
27
24
|
};
|
|
25
|
+
topupAmountText: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
halfsheetAmount: {
|
|
31
|
+
type: PropType<number[]>;
|
|
32
|
+
default: () => number[];
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
28
35
|
}, {
|
|
29
36
|
style: Record<string, string>;
|
|
30
37
|
select: (money: number) => void;
|
|
31
38
|
numberWithCommas: (x?: number) => string;
|
|
39
|
+
isSelectMoreVisible: ComputedRef<boolean>;
|
|
40
|
+
isDesktop: ComputedRef<boolean>;
|
|
41
|
+
handleSelectMoreClick: (e: MouseEvent) => void;
|
|
42
|
+
SelectType: typeof SelectType;
|
|
43
|
+
handleChange: (e: Event) => void;
|
|
44
|
+
toggleDropdown: ComputedRef<boolean>;
|
|
45
|
+
chargeHalfsheetAmount: ComputedRef<ListType>;
|
|
46
|
+
chargeAmountList: ComputedRef<number[]>;
|
|
47
|
+
topupAmount: ComputedRef<string>;
|
|
32
48
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "setmoney" | "switchinput" | "selectmoremoney", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
33
49
|
isfullheight?: unknown;
|
|
34
50
|
operator?: unknown;
|
|
35
51
|
small?: unknown;
|
|
36
52
|
amountList?: unknown;
|
|
37
|
-
isSelectMoreVisible?: unknown;
|
|
38
53
|
itemClassName?: unknown;
|
|
54
|
+
topupAmountText?: unknown;
|
|
55
|
+
halfsheetAmount?: unknown;
|
|
39
56
|
} & {
|
|
40
57
|
small: boolean;
|
|
41
58
|
isfullheight: boolean;
|
|
42
59
|
operator: string;
|
|
43
60
|
amountList: number[];
|
|
44
|
-
isSelectMoreVisible: boolean;
|
|
45
61
|
itemClassName: string;
|
|
62
|
+
topupAmountText: string;
|
|
63
|
+
halfsheetAmount: number[];
|
|
46
64
|
} & {}>, {
|
|
47
65
|
small: boolean;
|
|
48
66
|
isfullheight: boolean;
|
|
49
67
|
operator: string;
|
|
50
68
|
amountList: number[];
|
|
51
|
-
isSelectMoreVisible: boolean;
|
|
52
69
|
itemClassName: string;
|
|
70
|
+
topupAmountText: string;
|
|
71
|
+
halfsheetAmount: number[];
|
|
53
72
|
}>;
|
|
54
73
|
export default _default;
|
|
@@ -9,11 +9,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
style: Record<string, string>;
|
|
10
10
|
numberWithCommas: (x?: number) => string;
|
|
11
11
|
click: (price: number) => void;
|
|
12
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
click: (_price: number) => true;
|
|
14
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
13
15
|
data?: unknown;
|
|
14
16
|
} & {
|
|
15
17
|
data: number[];
|
|
16
|
-
} & {}
|
|
18
|
+
} & {}> & {
|
|
19
|
+
onClick?: ((_price: number) => any) | undefined;
|
|
20
|
+
}, {
|
|
17
21
|
data: number[];
|
|
18
22
|
}>;
|
|
19
23
|
export default _default;
|
|
@@ -6,11 +6,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
}, {
|
|
8
8
|
id: import("vue").ComputedRef<string>;
|
|
9
|
-
onChange: (e:
|
|
9
|
+
onChange: (e: Event) => void;
|
|
10
10
|
value: import("vue").Ref<string>;
|
|
11
11
|
style: Record<string, string>;
|
|
12
|
-
formatLabel: import("vue").ComputedRef<string>;
|
|
13
|
-
hasInputted: import("vue").ComputedRef<boolean>;
|
|
14
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
15
13
|
defaultValue?: unknown;
|
|
16
14
|
} & {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const DesktopHeader: import("vue").DefineComponent<{
|
|
2
|
+
class: {
|
|
3
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
13
|
+
class?: unknown;
|
|
14
|
+
title?: unknown;
|
|
15
|
+
} & {
|
|
16
|
+
title: string;
|
|
17
|
+
class: string | Record<string, any>;
|
|
18
|
+
} & {}>, {
|
|
19
|
+
title: string;
|
|
20
|
+
class: string | Record<string, any>;
|
|
21
|
+
}>;
|
|
@@ -26,7 +26,7 @@ export declare const Header: import("vue").DefineComponent<{
|
|
|
26
26
|
required: false;
|
|
27
27
|
};
|
|
28
28
|
rightIcon: {
|
|
29
|
-
type: PropType<"dot">;
|
|
29
|
+
type: PropType<"" | "dot">;
|
|
30
30
|
default: string;
|
|
31
31
|
required: false;
|
|
32
32
|
};
|
|
@@ -45,21 +45,21 @@ export declare const Header: import("vue").DefineComponent<{
|
|
|
45
45
|
fullFill?: unknown;
|
|
46
46
|
} & {
|
|
47
47
|
title: string;
|
|
48
|
-
icon: "close" | "back";
|
|
49
48
|
fixed: boolean;
|
|
49
|
+
icon: "close" | "back";
|
|
50
50
|
underLined: boolean;
|
|
51
51
|
titleClassName: string;
|
|
52
|
-
rightIcon: "dot";
|
|
52
|
+
rightIcon: "" | "dot";
|
|
53
53
|
fullFill: boolean;
|
|
54
54
|
} & {}> & {
|
|
55
|
-
onClick?: (...args: any[]) => any;
|
|
56
|
-
"onRight-click"?: (...args: any[]) => any;
|
|
55
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onRight-click"?: ((...args: any[]) => any) | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
title: string;
|
|
59
|
-
icon: "close" | "back";
|
|
60
59
|
fixed: boolean;
|
|
60
|
+
icon: "close" | "back";
|
|
61
61
|
underLined: boolean;
|
|
62
62
|
titleClassName: string;
|
|
63
|
-
rightIcon: "dot";
|
|
63
|
+
rightIcon: "" | "dot";
|
|
64
64
|
fullFill: boolean;
|
|
65
65
|
}>;
|
package/dist/package/index.d.ts
CHANGED