@unsource/ui 2.9.35 → 2.9.37

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.9.35",
4
+ "version": "2.9.37",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,5 +1,7 @@
1
1
  import type { CoinGateway, Wallet } from '../types/models.js';
2
+ import type { SelectCustomClass } from '~/src/runtime/components/UnSelect.vue';
2
3
  type __VLS_Props = {
4
+ customClass?: SelectCustomClass;
3
5
  gatewayFilter?: (item: CoinGateway, i: number) => boolean;
4
6
  walletsFilter?: (item: Wallet, i: number) => boolean;
5
7
  walletsDisable?: (item: Wallet, i: number) => boolean;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <UnSelect
3
3
  v-model="selectedPayment"
4
- :custom-class="{ innerWrapper: '<md:(!max-h-unset bg-white !pb-0 !border-(1 solid transparent))' }"
4
+ :custom-class="_mergeWith(customClass, { innerWrapper: '<md:(!max-h-unset bg-white !pb-0 !border-(1 solid transparent))' })"
5
5
  value-key="value"
6
6
  light
7
7
  class="z-1 grow-1 shrink-0"
@@ -11,8 +11,9 @@
11
11
  </template>
12
12
 
13
13
  <script setup>
14
- import { _ceil, computed, useGateways, useWallets, watch } from "#imports";
15
- const { gatewayFilter, walletsFilter, walletsDisable } = defineProps({
14
+ import { _ceil, _merge, _mergeWith, computed, useGateways, useWallets, watch } from "#imports";
15
+ const { gatewayFilter, walletsFilter, walletsDisable, customClass = {} } = defineProps({
16
+ customClass: { type: Object, required: false },
16
17
  gatewayFilter: { type: Function, required: false },
17
18
  walletsFilter: { type: Function, required: false },
18
19
  walletsDisable: { type: Function, required: false }
@@ -1,5 +1,7 @@
1
1
  import type { CoinGateway, Wallet } from '../types/models.js';
2
+ import type { SelectCustomClass } from '~/src/runtime/components/UnSelect.vue';
2
3
  type __VLS_Props = {
4
+ customClass?: SelectCustomClass;
3
5
  gatewayFilter?: (item: CoinGateway, i: number) => boolean;
4
6
  walletsFilter?: (item: Wallet, i: number) => boolean;
5
7
  walletsDisable?: (item: Wallet, i: number) => boolean;
@@ -102,7 +102,7 @@ export const getMyTransactions = async (q = {}) => {
102
102
  const { result } = await useGet("/transaction", {
103
103
  params: {
104
104
  "$w.OR.0.walletId.$in": walletsId,
105
- "$w.OR.1.toWallet.$in": walletsId,
105
+ "$w.OR.1.toWalletId.$in": walletsId,
106
106
  "$w.OR.2.userId": userId.value,
107
107
  "$w.status:not": "PENDING",
108
108
  "$i.gateway.$i.gateway": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.9.35",
3
+ "version": "2.9.37",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",