@designcrowd/fe-shared-lib 1.3.6-currency-1 → 1.3.6-currency-3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.3.6-currency-1",
3
+ "version": "1.3.6-currency-3",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -9,7 +9,8 @@
9
9
  "connected": "Verbunden",
10
10
  "inactive": "Inaktiv",
11
11
  "addPaymentProvider": "Zahlungsanbieter hinzufügen",
12
- "deletePaymentMethod": "Zahlungsmethode löschen"
12
+ "deletePaymentMethod": "Zahlungsmethode löschen",
13
+ "currencyLabel": "Währung"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Legen Sie die URL für {{brandPageDisplayName}} fest",
@@ -9,7 +9,8 @@
9
9
  "connected": "Conectado",
10
10
  "inactive": "Inactivo",
11
11
  "addPaymentProvider": "Añadir proveedor de pago",
12
- "deletePaymentMethod": "Eliminar método de pago"
12
+ "deletePaymentMethod": "Eliminar método de pago",
13
+ "currencyLabel": "Moneda"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Establece la URL para {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Connecté",
10
10
  "inactive": "Inactif",
11
11
  "addPaymentProvider": "Ajouter un fournisseur de paiement",
12
- "deletePaymentMethod": "Supprimer le mode de paiement"
12
+ "deletePaymentMethod": "Supprimer le mode de paiement",
13
+ "currencyLabel": "Devise"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Connecté",
10
10
  "inactive": "Inactif",
11
11
  "addPaymentProvider": "Ajouter un fournisseur de paiement",
12
- "deletePaymentMethod": "Supprimer le mode de paiement"
12
+ "deletePaymentMethod": "Supprimer le mode de paiement",
13
+ "currencyLabel": "Devise"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Connected",
10
10
  "inactive": "Inactive",
11
11
  "addPaymentProvider": "Add Payment Provider",
12
- "deletePaymentMethod": "Delete payment method"
12
+ "deletePaymentMethod": "Delete payment method",
13
+ "currencyLabel": "Currency"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Conectado",
10
10
  "inactive": "Inativo",
11
11
  "addPaymentProvider": "Adicionar fornecedor de pagamentos",
12
- "deletePaymentMethod": "Excluir método de pagamento"
12
+ "deletePaymentMethod": "Excluir método de pagamento",
13
+ "currencyLabel": "Moeda"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
@@ -9,7 +9,8 @@
9
9
  "connected": "Ligado",
10
10
  "inactive": "Inativo",
11
11
  "addPaymentProvider": "Adicionar fornecedor de pagamentos",
12
- "deletePaymentMethod": "Eliminar método de pagamento"
12
+ "deletePaymentMethod": "Eliminar método de pagamento",
13
+ "currencyLabel": "Moeda"
13
14
  },
14
15
  "publishBrandPageModal": {
15
16
  "firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
@@ -51,27 +51,33 @@
51
51
  />
52
52
  </DropdownItem>
53
53
  </Dropdown>
54
- <h4 class="tw-mt-3 tw-mb-2 tw-text-sm tw-font-bold">Currency</h4>
55
- <Dropdown ref="dropdownCurrency">
56
- <template #title>
57
- <div v-if="selectedCurrency" class="tw-flex tw-items-center tw-px-2 tw-py-2 drop-down-item tw-cursor-pointer">
54
+ <!-- Currency -->
55
+ <template v-if="currencies && currencies.length > 0">
56
+ <h4 class="tw-mt-6 tw-mb-2 tw-text-sm tw-font-bold">{{ sharedPaymentConfigTr('currencyLabel') }}</h4>
57
+ <Dropdown ref="dropdownCurrency" :menu-element-classes="'tw-w-full'">
58
+ <template #title>
59
+ <div
60
+ v-if="selectedCurrency"
61
+ class="tw-flex tw-items-center tw-px-2 tw-py-2 drop-down-item tw-cursor-pointer"
62
+ >
63
+ <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
64
+ <span>{{ selectedCurrency.iso4127Code }} ({{ selectedCurrency.symbol }})</span>
65
+ </span>
66
+ </div>
67
+ </template>
68
+
69
+ <DropdownItem
70
+ v-for="currency in currencies"
71
+ :key="`currency-${currency.id}`"
72
+ @click="onCurrencyClick(currency)"
73
+ >
58
74
  <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
59
- <span>{{ selectedCurrency.iso4127Code }} ({{ selectedCurrency.symbol }})</span>
75
+ <span>{{ currency.iso4127Code }} ({{ currency.symbol }})</span>
60
76
  </span>
61
- </div>
62
- </template>
63
-
64
- <DropdownItem
65
- v-for="currency in currencies"
66
- :key="`currency-${currency.id}`"
67
- @click="onCurrencyClick(currency)"
68
- >
69
- <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
70
- <span>{{ currency.iso4127Code }} ({{ currency.symbol }})</span>
71
- </span>
72
- <Icon v-if="selectedCurrency?.id === currency.id" name="check-thin" />
73
- </DropdownItem>
74
- </Dropdown>
77
+ <Icon v-if="selectedCurrency?.id === currency.id" name="check-thin" />
78
+ </DropdownItem>
79
+ </Dropdown>
80
+ </template>
75
81
  </div>
76
82
  </div>
77
83
  </template>
@@ -5,6 +5,7 @@
5
5
  "connected" : "Verbunden",
6
6
  "inactive" : "Inaktiv",
7
7
  "addPaymentProvider" : "Zahlungsanbieter hinzufügen",
8
- "deletePaymentMethod" : "Zahlungsmethode löschen"
8
+ "deletePaymentMethod" : "Zahlungsmethode löschen",
9
+ "currencyLabel": "Währung"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Conectado",
6
6
  "inactive" : "Inactivo",
7
7
  "addPaymentProvider" : "Añadir proveedor de pago",
8
- "deletePaymentMethod" : "Eliminar método de pago"
8
+ "deletePaymentMethod" : "Eliminar método de pago",
9
+ "currencyLabel": "Moneda"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Connecté",
6
6
  "inactive" : "Inactif",
7
7
  "addPaymentProvider" : "Ajouter un fournisseur de paiement",
8
- "deletePaymentMethod" : "Supprimer le mode de paiement"
8
+ "deletePaymentMethod" : "Supprimer le mode de paiement",
9
+ "currencyLabel": "Devise"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Connecté",
6
6
  "inactive" : "Inactif",
7
7
  "addPaymentProvider" : "Ajouter un fournisseur de paiement",
8
- "deletePaymentMethod" : "Supprimer le mode de paiement"
8
+ "deletePaymentMethod" : "Supprimer le mode de paiement",
9
+ "currencyLabel": "Devise"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected": "Connected",
6
6
  "inactive": "Inactive",
7
7
  "addPaymentProvider": "Add Payment Provider",
8
- "deletePaymentMethod": "Delete payment method"
8
+ "deletePaymentMethod": "Delete payment method",
9
+ "currencyLabel": "Currency"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Conectado",
6
6
  "inactive" : "Inativo",
7
7
  "addPaymentProvider" : "Adicionar fornecedor de pagamentos",
8
- "deletePaymentMethod" : "Excluir método de pagamento"
8
+ "deletePaymentMethod" : "Excluir método de pagamento",
9
+ "currencyLabel": "Moeda"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Ligado",
6
6
  "inactive" : "Inativo",
7
7
  "addPaymentProvider" : "Adicionar fornecedor de pagamentos",
8
- "deletePaymentMethod" : "Eliminar método de pagamento"
8
+ "deletePaymentMethod" : "Eliminar método de pagamento",
9
+ "currencyLabel": "Moeda"
9
10
  }
10
11
  }