ts-glitter 14.5.4 → 14.5.6

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.
Files changed (36) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/cms-plugin/shopping-finance-setting.js +50 -2
  4. package/lowcode/cms-plugin/shopping-finance-setting.ts +56 -2
  5. package/lowcode/cms-plugin/shopping-product-v2.js +4326 -0
  6. package/lowcode/cms-plugin/shopping-product-v2.ts +4802 -0
  7. package/lowcode/public-components/checkout/index.js +12 -2
  8. package/lowcode/public-components/checkout/index.ts +19 -13
  9. package/lowcode/public-components/product/pd-class.js +1 -1
  10. package/lowcode/public-components/product/pd-class.ts +2 -6
  11. package/package.json +1 -1
  12. package/src/api-public/controllers/ai-points.js.map +1 -1
  13. package/src/api-public/controllers/sms-points.js.map +1 -1
  14. package/src/api-public/controllers/wallet.js.map +1 -1
  15. package/src/api-public/models/glitter-finance.js +1 -0
  16. package/src/api-public/models/glitter-finance.js.map +1 -1
  17. package/src/api-public/models/glitter-finance.ts +1 -0
  18. package/src/api-public/services/EcInvoice.js.map +1 -1
  19. package/src/api-public/services/ai-pointes.js.map +1 -1
  20. package/src/api-public/services/financial-service.d.ts +1 -2
  21. package/src/api-public/services/financial-service.js +6 -6
  22. package/src/api-public/services/financial-service.js.map +1 -1
  23. package/src/api-public/services/financial-service.ts +10 -10
  24. package/src/api-public/services/invoice.js.map +1 -1
  25. package/src/api-public/services/shopping.d.ts +1 -44
  26. package/src/api-public/services/shopping.js +9 -5
  27. package/src/api-public/services/shopping.js.map +1 -1
  28. package/src/api-public/services/shopping.ts +10 -6
  29. package/src/api-public/services/sms-pointes.js.map +1 -1
  30. package/src/api-public/services/wallet.js.map +1 -1
  31. package/src/index.js +2 -1
  32. package/src/index.js.map +1 -1
  33. package/src/index.ts +2 -1
  34. package/src/services/private_config.js +8 -0
  35. package/src/services/private_config.js.map +1 -1
  36. package/src/services/private_config.ts +9 -0
package/lowcode/Entry.js CHANGED
@@ -80,7 +80,7 @@ export class Entry {
80
80
  }
81
81
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
82
82
  console.log(`Entry-time:`, window.renderClock.stop());
83
- glitter.share.editerVersion = 'V_14.5.4';
83
+ glitter.share.editerVersion = 'V_14.5.6';
84
84
  glitter.share.start = new Date();
85
85
  const vm = {
86
86
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -82,7 +82,7 @@ Language.getLanguage()
82
82
  }
83
83
  (window as any).renderClock = (window as any).renderClock ?? clockF();
84
84
  console.log(`Entry-time:`, (window as any).renderClock.stop());
85
- glitter.share.editerVersion = 'V_14.5.4';
85
+ glitter.share.editerVersion = 'V_14.5.6';
86
86
  glitter.share.start = new Date();
87
87
  const vm: {
88
88
  appConfig: any;
@@ -32,10 +32,11 @@ export class ShoppingFinanceSetting {
32
32
  { key: 'newWebPay', name: '藍新金流' },
33
33
  { key: 'ecPay', name: '綠界金流' },
34
34
  { key: 'paypal', name: 'PayPal' },
35
+ { key: 'line_pay', name: 'Line Pay' },
35
36
  ];
36
37
  const offlinePayArray = [
37
38
  { key: 'atm', name: 'ATM銀行轉帳', customerClass: 'guide2-3' },
38
- { key: 'line', name: 'LINE Pay' },
39
+ { key: 'line', name: 'LINE 轉帳' },
39
40
  { key: 'cash_on_delivery', name: '貨到付款' },
40
41
  ];
41
42
  const redDot = html ` <span class="red-dot">*</span>`;
@@ -68,6 +69,7 @@ export class ShoppingFinanceSetting {
68
69
  keyData.newWebPay.toggle && array.push('newWebPay');
69
70
  keyData.ecPay.toggle && array.push('ecPay');
70
71
  keyData.paypal.toggle && array.push('paypal');
72
+ keyData.line_pay.toggle && array.push('line_pay');
71
73
  return array;
72
74
  })(), (data) => {
73
75
  onlinePayArray.map((dd) => {
@@ -246,6 +248,52 @@ export class ShoppingFinanceSetting {
246
248
  }),
247
249
  ].join(''),
248
250
  })}`;
251
+ case 'line_pay':
252
+ return html `
253
+ ${BgWidget.openBoxContainer({
254
+ gvc,
255
+ tag: 'detail',
256
+ title: payData.name + redDot,
257
+ openOnInit: false,
258
+ insideHTML: [
259
+ BgWidget.inlineCheckBox({
260
+ title: '串接路徑',
261
+ gvc: gvc,
262
+ def: `${keyData.line_pay.BETA}`,
263
+ array: [
264
+ {
265
+ title: '正式站',
266
+ value: `true`,
267
+ },
268
+ {
269
+ title: '測試站',
270
+ value: `false`,
271
+ },
272
+ ],
273
+ callback: (text) => {
274
+ keyData.line_pay.BETA = text;
275
+ },
276
+ }),
277
+ BgWidget.editeInput({
278
+ gvc: gvc,
279
+ title: 'CLIENT_ID',
280
+ default: keyData.line_pay.CLIENT_ID,
281
+ callback: (text) => {
282
+ keyData.line_pay.CLIENT_ID = text;
283
+ },
284
+ placeHolder: '請輸入CLIENT_ID',
285
+ }),
286
+ BgWidget.editeInput({
287
+ gvc: gvc,
288
+ title: 'SECRET',
289
+ default: keyData.line_pay.SECRET,
290
+ callback: (text) => {
291
+ keyData.line_pay.SECRET = text;
292
+ },
293
+ placeHolder: '請輸入SECRET',
294
+ }),
295
+ ].join(''),
296
+ })}`;
249
297
  }
250
298
  }).join('<div class="my-2"></div>')
251
299
  ].join('');
@@ -297,7 +345,7 @@ export class ShoppingFinanceSetting {
297
345
  return BgWidget.openBoxContainer({
298
346
  gvc,
299
347
  tag: 'detail',
300
- title: 'LINE Pay' + redDot,
348
+ title: 'LINE 轉帳' + redDot,
301
349
  insideHTML: ShoppingFinanceSetting.line_pay(gvc, keyData),
302
350
  height: 700,
303
351
  });
@@ -19,6 +19,12 @@ interface paymentInterface {
19
19
  BETA: boolean,
20
20
  toggle: boolean
21
21
  },
22
+ line_pay:{
23
+ CLIENT_ID:string,
24
+ SECRET:string,
25
+ BETA: boolean,
26
+ toggle: boolean
27
+ },
22
28
  ecPay: {
23
29
  MERCHANT_ID: string,
24
30
  HASH_IV: string,
@@ -79,11 +85,12 @@ export class ShoppingFinanceSetting {
79
85
  {key: 'newWebPay', name: '藍新金流'},
80
86
  {key: 'ecPay', name: '綠界金流'},
81
87
  {key: 'paypal', name: 'PayPal'},
88
+ {key: 'line_pay', name: 'Line Pay'},
82
89
  ];
83
90
 
84
91
  const offlinePayArray = [
85
92
  {key: 'atm', name: 'ATM銀行轉帳', customerClass: 'guide2-3'},
86
- {key: 'line', name: 'LINE Pay'},
93
+ {key: 'line', name: 'LINE 轉帳'},
87
94
  {key: 'cash_on_delivery', name: '貨到付款'},
88
95
  ];
89
96
 
@@ -122,6 +129,7 @@ export class ShoppingFinanceSetting {
122
129
  keyData.newWebPay.toggle && array.push('newWebPay');
123
130
  keyData.ecPay.toggle && array.push('ecPay');
124
131
  keyData.paypal.toggle && array.push('paypal');
132
+ keyData.line_pay.toggle && array.push('line_pay');
125
133
  return array
126
134
  })(),
127
135
  (data) => {
@@ -302,6 +310,52 @@ export class ShoppingFinanceSetting {
302
310
  }),
303
311
  ].join(''),
304
312
  })}`;
313
+ case 'line_pay':
314
+ return html`
315
+ ${BgWidget.openBoxContainer({
316
+ gvc,
317
+ tag: 'detail',
318
+ title: payData.name + redDot,
319
+ openOnInit: false,
320
+ insideHTML: [
321
+ BgWidget.inlineCheckBox({
322
+ title: '串接路徑',
323
+ gvc: gvc,
324
+ def: `${keyData.line_pay.BETA}`,
325
+ array: [
326
+ {
327
+ title: '正式站',
328
+ value: `true`,
329
+ },
330
+ {
331
+ title: '測試站',
332
+ value: `false`,
333
+ },
334
+ ],
335
+ callback: (text: any) => {
336
+ keyData.line_pay.BETA = text
337
+ },
338
+ }),
339
+ BgWidget.editeInput({
340
+ gvc: gvc,
341
+ title: 'CLIENT_ID',
342
+ default: keyData.line_pay.CLIENT_ID,
343
+ callback: (text) => {
344
+ keyData.line_pay.CLIENT_ID = text;
345
+ },
346
+ placeHolder: '請輸入CLIENT_ID',
347
+ }),
348
+ BgWidget.editeInput({
349
+ gvc: gvc,
350
+ title: 'SECRET',
351
+ default: keyData.line_pay.SECRET,
352
+ callback: (text) => {
353
+ keyData.line_pay.SECRET = text;
354
+ },
355
+ placeHolder: '請輸入SECRET',
356
+ }),
357
+ ].join(''),
358
+ })}`;
305
359
  }
306
360
 
307
361
  }).join('<div class="my-2"></div>')
@@ -365,7 +419,7 @@ export class ShoppingFinanceSetting {
365
419
  return BgWidget.openBoxContainer({
366
420
  gvc,
367
421
  tag: 'detail',
368
- title: 'LINE Pay' + redDot,
422
+ title: 'LINE 轉帳' + redDot,
369
423
  insideHTML: ShoppingFinanceSetting.line_pay(gvc, keyData),
370
424
  height: 700,
371
425
  });