@unsource/ui 2.4.0 → 2.4.1

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.4.0",
4
+ "version": "2.4.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -80,6 +80,7 @@
80
80
  </template>
81
81
 
82
82
  <script setup>
83
+ import { ref, usePost } from "#imports";
83
84
  const emit = defineEmits(["select", "update:modelValue"]);
84
85
  const props = defineProps({
85
86
  label: { type: String, required: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",
@@ -1,22 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
8
- $props: Partial<typeof __VLS_props>;
9
- items: unknown[];
10
- cols: unknown[];
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = {
13
- [x: string]: ((props: {
14
- col: any;
15
- item: any;
16
- items: any;
17
- }) => any) | undefined;
18
- };
19
- declare const __VLS_props: {
20
- readonly items: unknown[];
21
- readonly cols: unknown[];
22
- };
@@ -1,46 +0,0 @@
1
- <template>
2
- <div class="flex flex-col children:(p-4)">
3
- <table class="flex-grow">
4
- <thead>
5
- <tr class="border-b-2 border-gray-100 children:(text-center p-4) rounded-2xl <md:children:p-1">
6
- <th v-for="col in cols"
7
- :class="{'<md:hidden':col.isDesktop,'hidden <md:table-cell':col.isMobile}"
8
- class="text-xs text-gray-400 font-medium first:text-right last:text-left">
9
- {{ col.title }}
10
- </th>
11
- </tr>
12
- </thead>
13
- <tbody >
14
- <tr v-for="item in items"
15
- @click="$emit('click:row',item)"
16
- class="children:p-3 <md:children:p-1 text-center children:(border-b border-gray-100) hover:children:(bg-gray-100)">
17
- <td v-for="col in cols"
18
- class="text-gray-400 text-sm first:text-right last:text-left text-center first:rounded-r-lg last:rounded-l-lg"
19
- :class="[col.class,{'<md:hidden':col.isDesktop,'hidden <md:table-cell':col.isMobile}]" :dir="col.dir">
20
- <slot :name="col.name" :col="col" :item="item" :items="_at(item,col.key)">
21
- {{ _at(item, col.key).join(' ') }}
22
- </slot>
23
- </td>
24
- </tr>
25
- </tbody>
26
- </table>
27
- <div v-if="!items.length" class="flex justify-center items-center p-24 font-bold text-sm text-text">
28
- {{ $t('هیچ موردی برای این جستجو یافت نشد') }}
29
- </div>
30
-
31
- </div>
32
- </template>
33
-
34
- <script setup>
35
- defineProps({
36
- cols: {
37
- type: Array,
38
- default: () => []
39
- },
40
- items: {
41
- type: Array,
42
- default: () => []
43
- }
44
- });
45
- const { isDesktop, isMobile } = useDevice();
46
- </script>
@@ -1,22 +0,0 @@
1
- declare const _default: typeof __VLS_export;
2
- export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
8
- $props: Partial<typeof __VLS_props>;
9
- items: unknown[];
10
- cols: unknown[];
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- type __VLS_Slots = {
13
- [x: string]: ((props: {
14
- col: any;
15
- item: any;
16
- items: any;
17
- }) => any) | undefined;
18
- };
19
- declare const __VLS_props: {
20
- readonly items: unknown[];
21
- readonly cols: unknown[];
22
- };