@everymatrix/cashier-method-details 1.44.0 → 1.45.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.
Files changed (37) hide show
  1. package/components/CashierConfirmModal-BsoB5fQM.cjs +4 -0
  2. package/components/CashierConfirmModal-Dw8BnUfp.js +1063 -0
  3. package/components/CashierError-B_iMgTfr.js +3759 -0
  4. package/components/CashierError-ClzxZoH7.cjs +5 -0
  5. package/components/CashierHeader-BU_vM2lH.cjs +1 -0
  6. package/components/CashierHeader-VE5z702l.js +360 -0
  7. package/components/CashierIframeRedirect-CUdjcENK.js +383 -0
  8. package/components/CashierIframeRedirect-DSYHz0IC.cjs +1 -0
  9. package/components/CashierMethodDetails-5wGvaaR0.js +8095 -0
  10. package/components/CashierMethodDetails-DPowLei9.cjs +18 -0
  11. package/components/CashierModal-BFlGJozz.js +221 -0
  12. package/components/CashierModal-DljNagOg.cjs +1 -0
  13. package/components/CashierNotifications-BhCyEcyg.js +136 -0
  14. package/components/CashierNotifications-FlAVIynI.cjs +1 -0
  15. package/components/CashierReceiptPage-CY8dJVSv.js +1092 -0
  16. package/components/CashierReceiptPage-gWSm3RqW.cjs +1 -0
  17. package/components/CashierSpinner-DREUPtXI.js +71 -0
  18. package/components/CashierSpinner-DUwdQyI3.cjs +1 -0
  19. package/es2015/cashier-method-details.cjs +1 -0
  20. package/es2015/cashier-method-details.js +16 -0
  21. package/package.json +22 -32
  22. package/CHANGELOG.md +0 -36
  23. package/README.md +0 -30
  24. package/dist/cashier-method-details.js +0 -875
  25. package/dist/cashier-method-details.js.map +0 -1
  26. package/index.html +0 -36
  27. package/index.js +0 -1
  28. package/public/favicon.png +0 -0
  29. package/public/reset.css +0 -48
  30. package/rollup.config.js +0 -65
  31. package/src/CashierMethodDetails.svelte +0 -1539
  32. package/src/CashierMethodDetails.types.ts +0 -68
  33. package/src/i18n.js +0 -32
  34. package/src/index.ts +0 -4
  35. package/src/translations.js +0 -46
  36. package/stories/CashierMethodDetails.stories.js +0 -13
  37. package/tsconfig.json +0 -6
@@ -1,68 +0,0 @@
1
- export interface PaymentMethod {
2
- Name: string;
3
- PaymentSolutionName: string;
4
- Label: string;
5
- Description: string;
6
- IsAmountConfigurable: boolean;
7
- HideAmountField: boolean;
8
- IsIntegerAmount: boolean;
9
- IsPrefirmSupported: boolean;
10
- IsFake: boolean;
11
- RedirectLink: string;
12
- AmountMultiplier: number;
13
- RedirectionMode: Number;
14
- DisplayCurrency: PaymentMethodCurrencyConfig;
15
- Currencies: PaymentMethodCurrencyConfig[];
16
- Fields: PaymentMethodDetails[];
17
- Account: any;
18
- Logos: any;
19
- PredefinedAmounts: number[];
20
- PaymentMethodsAmounts: any;
21
- InfoLink?: string;
22
- ShortDescription?: string;
23
- logoUrls: any;
24
- DisableContinueButton: boolean;
25
- Settings: any;
26
- Tags: string[];
27
- CardToken: string;
28
- LoaderDisplayTime: number
29
- }
30
-
31
- export interface PaymentMethodCurrencyConfig {
32
- Name: string;
33
- Label: string;
34
- Description: string;
35
- Amounts: number[];
36
- MinAmountLimit: number;
37
- MaxAmountLimit: number;
38
- }
39
- export interface PaymentMethodDetails {
40
- Name: string;
41
- Label: string;
42
- Description: string;
43
- Type: string;
44
- DefaultValue: any;
45
- Format: string;
46
- Placeholder: string;
47
- DisplayPlaceholder?: string;
48
- IsReadonly: boolean;
49
- IsRequired: boolean;
50
- IsPrimaryField: boolean;
51
- DemandUserInput: boolean;
52
- AutoTrim: boolean;
53
- MaxValue: string;
54
- MinValue: string;
55
- AutoUppercase: boolean;
56
- CorrelationFieldName: string;
57
- CorrelationFieldValue: string[];
58
- NotEqualToFieldName: string;
59
- Values: any[];
60
- Selected: Object;
61
- UseCopyButton: boolean;
62
- InputMask: string[];
63
- }
64
-
65
- export interface DateTimeFormat {
66
- Placeholder: string;
67
- Format: string;
68
- }
package/src/i18n.js DELETED
@@ -1,32 +0,0 @@
1
- import {
2
- dictionary,
3
- locale,
4
- init,
5
- addMessages,
6
- _
7
- } from 'svelte-i18n';
8
-
9
- init({
10
- fallbackLocale: 'en'
11
- });
12
-
13
- function setupI18n({ withLocale: _locale, translations }) {
14
- locale.subscribe((data) => {
15
- if (data == null) {
16
- dictionary.set(translations);
17
- locale.set(_locale);
18
- }
19
- }); // maybe we will need this to make sure that the i18n is set up only once
20
- /*dictionary.set(translations);
21
- locale.set(_locale);*/
22
- }
23
-
24
- function addNewMessages(lang, dict) {
25
- addMessages(lang, dict);
26
- }
27
-
28
- function setLocale(_locale) {
29
- locale.set(_locale);
30
- }
31
-
32
- export { _, setupI18n, addNewMessages, setLocale };
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- import CashierMethodDetails from './CashierMethodDetails.svelte';
2
-
3
- !customElements.get('cashier-method-details') && customElements.define('cashier-method-details', CashierMethodDetails);
4
- export default CashierMethodDetails;
@@ -1,46 +0,0 @@
1
- export const TRANSLATIONS = {
2
- "en": {
3
- "loading": "Loading...",
4
- "amountLabel": "Amount",
5
- "redirectTitle": "You are redirected to the payment's provider page",
6
- "redirectMessage": "Please complete your transaction on the payment's provider page.",
7
- "backToPayment": "Close",
8
- "retryText": "Please note that your popup blocker may prevent the payment window from appearing",
9
- "retryButton": "RETRY",
10
- "processingButton": "PROCESSING...",
11
- "generalMin": "Min:",
12
- "generalMax": "Max:",
13
- "amountPlaceholder": "0.00",
14
- "change": "Change",
15
- "errorEmptyField": "Please enter data",
16
- "minAmountError": "Amount cannot be smaller than {amount} {currency}",
17
- "maxAmountError": "Amount cannot be bigger than {amount} {currency}",
18
- "amountMultiplierError": "Amount should be multiple of {multiplier}",
19
- "amountIntError": "Amount should be integer value",
20
- "amountDecimalError": "Amount should have 2 or less digits after decimal point",
21
- "invalidFieldError": "{field} is invalid",
22
- "backToMethodList": "BACK TO PAYMENT METHODS",
23
- },
24
- "tr": {
25
- "loading": "Yükleniyor...",
26
- "amountLabel": "Miktar",
27
- "redirectTitle": "Ödeme sağlayıcısı sayfasına yönlendirilirsiniz",
28
- "redirectMessage": "Lütfen ödeme sağlayıcısı sayfasında işleminizi tamamlayın.",
29
- "backToPayment": "KAPALI",
30
- "retryText": "Açılır pencere engelleyicinizin ödeme penceresinin görünmesini engelleyebileceğini lütfen unutmayın",
31
- "retryButton": "Yeniden Dene",
32
- "processingButton": "İŞLEME...",
33
- "generalMin": "Min:",
34
- "generalMax": "Maks:",
35
- "amountPlaceholder": "0",
36
- "change": "Değiştir",
37
- "errorEmptyField": "Lütfen verileri girin",
38
- "minAmountError": "Tutar {amount} {currency}'den küçük olamaz",
39
- "maxAmountError": "Tutar {amount} {currency}'den büyük olamaz",
40
- "amountMultiplierError": "Tutar {multiplier}'nin katı olmalıdır",
41
- "amountIntError": "Tutar tam sayı olmalıdır",
42
- "amountDecimalError": "Tutarın ondalık noktadan sonra 2 veya daha az hanesi olmalıdır",
43
- "invalidFieldError": "{field} geçersiz",
44
- "backToMethodList": "ÖDEME YÖNTEMLERİNE GERİ DÖN"
45
- }
46
- }
@@ -1,13 +0,0 @@
1
- import { html } from 'lit-element';
2
-
3
- import CashierMethodDetails from '../src/CashierMethodDetails';
4
-
5
- // This default export determines where your story goes in the story list
6
- export default {
7
- title: 'CashierMethodDetails',
8
- };
9
-
10
- // 👇 We create a “template” of how args map to rendering
11
- const CashierMethodDetails = ({ aProperty }) => html`<cashier-method-details></cashier-method-details>`;
12
-
13
- export const FirstStory = CashierMethodDetails.bind({});
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "@tsconfig/svelte/tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
- }