@unsource/ui 1.9.5 → 1.9.7
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,5 +1,5 @@
|
|
|
1
|
-
import type { RadioCustomClass } from
|
|
2
|
-
import type { CheckboxCustomClass } from
|
|
1
|
+
import type { RadioCustomClass } from './UnRadioItem.vue.js';
|
|
2
|
+
import type { CheckboxCustomClass } from './UnCheckboxItem.vue.js';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
icon?: string;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
class="cursor-pointer relative"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
7
|
-
name="header"
|
|
8
7
|
v-if="!inline"
|
|
8
|
+
name="header"
|
|
9
9
|
:class="customClass.header"
|
|
10
10
|
class="bg-white h-12 rounded-2xl flex flex-row gap-1 items-center px-2 py-1 cursor-pointer text-black-1 relative"
|
|
11
11
|
@click="!readonly && !inline ? show = !show : ''"
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
:class="customClass.icon"
|
|
17
17
|
class="text-xl"
|
|
18
18
|
/>
|
|
19
|
-
<p
|
|
19
|
+
<p
|
|
20
|
+
name="label"
|
|
21
|
+
:class="customClass.label"
|
|
22
|
+
class="flex-grow text-sm select-none whitespace-nowrap"
|
|
23
|
+
>
|
|
20
24
|
{{
|
|
21
25
|
(multi && Array.isArray(value) && !value?.length || value === void 0 ? placeholder : multi ? value.map((v) => Label(IsSelected(v)).title).join(", ") : Label(Selected).title) || "\u0627\u0646\u062A\u062E\u0627\u0628"
|
|
22
26
|
}}
|
|
@@ -33,12 +37,13 @@
|
|
|
33
37
|
to="body"
|
|
34
38
|
>
|
|
35
39
|
<div
|
|
36
|
-
name="wrapper"
|
|
37
40
|
v-on-click-outside="close"
|
|
41
|
+
name="wrapper"
|
|
38
42
|
:style="dropdownStyles"
|
|
39
43
|
class="z-1000 md:mt-3 rounded-2xl w-full min-w-fit text-base flex flex-col items-stretch overflow-y-auto scrollbar-thin"
|
|
40
44
|
:class="[
|
|
41
|
-
customClass.wrapper
|
|
45
|
+
customClass.wrapper,
|
|
46
|
+
inline ? 'relative' : 'absolute',
|
|
42
47
|
light ? 'bg-white' : 'bg-border',
|
|
43
48
|
inline ? '' : Searchable ? 'md:max-h-230px' : 'md:max-h-160px'
|
|
44
49
|
]"
|
|
@@ -48,14 +53,14 @@
|
|
|
48
53
|
:class="customClass.innerWrapper"
|
|
49
54
|
class="flex flex-col items-stretch min-w-fit <md:(max-h-80dvh bg-white border-(1 solid primary) rounded-t-2xl pb-24)"
|
|
50
55
|
>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
<UnSearch
|
|
57
|
+
v-if="Searchable"
|
|
58
|
+
v-model="search"
|
|
59
|
+
name="search"
|
|
60
|
+
:class="customClass.search"
|
|
61
|
+
class="h-10"
|
|
62
|
+
placeholder="جستجو..."
|
|
63
|
+
/>
|
|
59
64
|
<div
|
|
60
65
|
name="list"
|
|
61
66
|
:class="customClass.list"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RadioCustomClass } from
|
|
2
|
-
import type { CheckboxCustomClass } from
|
|
1
|
+
import type { RadioCustomClass } from './UnRadioItem.vue.js';
|
|
2
|
+
import type { CheckboxCustomClass } from './UnCheckboxItem.vue.js';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
icon?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsource/ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "nuxt ui kit for unsource env",
|
|
6
6
|
"repository": "https://github.com/alisa2142/unsource-ui",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
|
|
27
|
+
"prepack": "nuxt-module-build build && xcopy playground\\assets\\icons dist\\runtime\\assets\\icons /D /E",
|
|
28
28
|
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
29
29
|
"dev:build": "nuxi build playground",
|
|
30
30
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|