@unsource/ui 2.8.20 → 2.8.22

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.8.20",
4
+ "version": "2.8.22",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -23,7 +23,7 @@
23
23
  class="flex-grow text-sm select-none whitespace-nowrap"
24
24
  >
25
25
  {{
26
- (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"
26
+ (multi && isArray(value) && !value?.length || isNil(value) ? placeholder : multi ? value.map((v) => Label(IsSelected(v))?.title).join(", ") : Label(Selected)?.title) || placeholder
27
27
  }}
28
28
  </p>
29
29
  <UnNuxtIcon
@@ -111,7 +111,7 @@
111
111
 
112
112
  <script setup>
113
113
  import { vOnClickOutside } from "@vueuse/components";
114
- import { _get, computed, isEqual, nextTick, ref, useDevice, useId, watch } from "#imports";
114
+ import { _get, computed, isArray, isEqual, isNil, nextTick, ref, useDevice, useId, watch } from "#imports";
115
115
  const { isMobile } = useDevice();
116
116
  const { valueKey, items, multi, searchable, customClass = {} } = defineProps({
117
117
  placeholder: { type: String, required: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.20",
3
+ "version": "2.8.22",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",