@unsource/ui 2.7.0 → 2.7.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.7.0",
4
+ "version": "2.7.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,45 +1,50 @@
1
1
  <template>
2
- <div class="flex flex-col items-stretch gap-3 grow-1 p-4">
3
- <UnCard
4
- v-for="(item, index) in items.filter((e) => !e.disable)"
5
- :key="index"
6
- :custom-class="_mergeWith(customClass.item, {
2
+ <div class="grow flex flex-col gap-3">
3
+ <div class="flex flex-col items-stretch gap-3 grow-1 p-4">
4
+ <UnCard
5
+ v-for="(item, index) in items.filter((e) => !e.disable)"
6
+ :key="index"
7
+ :custom-class="_mergeWith(customClass.item, {
7
8
  logo: '!w-8 !h-8 !border-none !rounded-0',
8
9
  body: '!items-center'
9
10
  }, merge)"
10
- :class="customClass.items"
11
- :to="item.to"
12
- :item="item"
13
- >
14
- <template #header>
15
- <UnNuxtIcon
16
- :class="customClass.appendIcon"
17
- :name="item.appendIcon || 'solar:alt-arrow-left-line-duotone'"
18
- class="text-sm"
19
- />
20
- </template>
21
- </UnCard>
22
- </div>
23
- <div class="grow" />
24
- <div class="flex flex-col gap-2 text-sm text-center self-stretch">
25
- <slot>
26
- <NuxtLink
27
- v-if="developer"
28
- :to="developerLink || '#'"
29
- target="_blank"
30
- class="flex justify-center gap-1 self-center"
31
- >طراحی و توسعه توسط <span class="text-blue-6 font-bold">{{ developer }}</span><UnNuxtIcon
32
- v-if="developerIcon"
33
- :name="developerIcon"
34
- class="!text-xl"
35
- /></NuxtLink>
36
- <p v-if="owner">
37
- کلیه حقوق مادی و معنوی این نرم‌افزار متعلق به شرکت <span class="text-primary-500 font-bold">{{ owner }}</span> می‌باشد.
38
- </p>
39
- <p v-if="version">
40
- V{{ version }}
41
- </p>
42
- </slot>
11
+ :class="customClass.items"
12
+ :to="item.to"
13
+ :item="item"
14
+ >
15
+ <template #header>
16
+ <UnNuxtIcon
17
+ :class="customClass.appendIcon"
18
+ :name="item.appendIcon || 'solar:alt-arrow-left-line-duotone'"
19
+ class="text-sm"
20
+ />
21
+ </template>
22
+ </UnCard>
23
+ </div>
24
+ <div class="grow" />
25
+ <div class="flex flex-col gap-2 text-sm text-center self-stretch">
26
+ <slot>
27
+ <NuxtLink
28
+ v-if="developer"
29
+ :to="developerLink || '#'"
30
+ target="_blank"
31
+ class="flex justify-center gap-1 self-center"
32
+ >طراحی و توسعه توسط <span class="text-blue-6 font-bold">{{ developer }}</span>
33
+ <UnNuxtIcon
34
+ v-if="developerIcon"
35
+ :name="developerIcon"
36
+ class="!text-xl"
37
+ />
38
+ </NuxtLink>
39
+ <p v-if="owner">
40
+ کلیه حقوق مادی و معنوی این نرم‌افزار متعلق به شرکت <span class="text-primary-500 font-bold">{{ owner }}</span>
41
+ می‌باشد.
42
+ </p>
43
+ <p v-if="version">
44
+ V{{ version }}
45
+ </p>
46
+ </slot>
47
+ </div>
43
48
  </div>
44
49
  </template>
45
50
 
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  cols?: {
3
3
  title: string;
4
+ handler: string;
4
5
  name: string;
5
6
  disabled?: boolean;
6
7
  key?: string | string[];
@@ -99,6 +99,5 @@ const { cols = [], items = [], thClass = "bg-gray-100 border-gray-100", tdClass
99
99
  idKey: { type: String, required: false },
100
100
  selectable: { type: Boolean, required: false }
101
101
  });
102
- const { isDesktop, isMobile } = useDevice();
103
102
  const selected = defineModel();
104
103
  </script>
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  cols?: {
3
3
  title: string;
4
+ handler: string;
4
5
  name: string;
5
6
  disabled?: boolean;
6
7
  key?: string | string[];
@@ -33,7 +33,7 @@
33
33
  >
34
34
  <div class="flex flex-col gap-0.5">
35
35
  <p :class="textClass">
36
- {{ _at(item, col.key).join(" ") }}
36
+ {{ item.handler ? item.handler(_at(item, col.key), item, col, items, cols) : _at(item, col.key).join(" ") }}
37
37
  </p>
38
38
  <small
39
39
  v-if="col.subKey?.length"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",