eco-vue-js 0.10.90 → 0.10.92

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.
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  class: "w-skeleton-w-auto w-skeleton-h-auto w-skeleton-rounded-full mx-1 aspect-square"
42
42
  })) : (openBlock(), createElementBlock("div", {
43
43
  key: 1,
44
- class: normalizeClass(["relative mx-1 grid aspect-square select-none items-center justify-center gap-1 rounded-full bg-[200%_auto] [background-position:right]", {
44
+ class: normalizeClass(["relative mx-1 grid aspect-square select-none gap-1 rounded-full bg-[200%_auto] [background-position:right]", {
45
45
  "w-ripple w-ripple-hover cursor-pointer": !_ctx.disabled && !_ctx.skeleton,
46
46
  "text-primary dark:text-primary-dark": _ctx.active && _ctx.semanticType === unref(SemanticType).SECONDARY,
47
47
  [unref(semanticTypeBackgroundMap)[_ctx.semanticType]]: true
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  renderSlot(_ctx.$slots, "icon", {}, () => [
59
59
  _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
60
60
  key: 0,
61
- class: normalizeClass(["square-6 w-svg-stroke-width-sm transition-transform", {
61
+ class: normalizeClass(["square-6 w-svg-stroke-width-sm place-self-center transition-transform", {
62
62
  "group-hover:scale-120": !_ctx.disabled
63
63
  }])
64
64
  }, null, 8, ["class"])) : createCommentVNode("", true)
@@ -1 +1 @@
1
- {"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAiCA;AAsEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAC9C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAA;AAEzE,OAAO,EAAC,KAAK,KAAK,EAAmC,MAAM,KAAK,CAAA;AAuChE,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AAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyJk+iB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;EAvC/ojB;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBqgjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAf9ojB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, useTemplateRef, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, unref, mergeProps, Teleport, createCommentVNode, normalizeStyle, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import _sfc_main$1 from '../Dropdown/WDropdown.vue.js';
3
- import { wBaseZIndex, unwrapSlots, BASE_ZINDEX_DROPDOWN } from '../../utils/utils.js';
3
+ import { wBaseZIndex, isClientSide, unwrapSlots, BASE_ZINDEX_DROPDOWN } from '../../utils/utils.js';
4
4
 
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "WDropdownMenu",
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  const baseZIndex = inject(wBaseZIndex, 0);
21
21
  const containerRef = useTemplateRef("container");
22
22
  const dropdownRef = useTemplateRef("dropdown");
23
- const element = computed(() => containerRef.value instanceof HTMLElement ? containerRef.value : containerRef.value?.$el);
23
+ const element = computed(() => isClientSide ? containerRef.value instanceof HTMLElement ? containerRef.value : containerRef.value?.$el : void 0);
24
24
  __expose({
25
25
  updateDropdown: () => {
26
26
  dropdownRef.value?.update();
@@ -262,7 +262,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
262
262
  loading: _ctx.loading || unref(isLoading) || loadingCreate.value,
263
263
  hideInput: _ctx.modelValue.length === 0 && !_ctx.emptyValue ? false : unref(isMobile) ? !focused.value : !isOpen.value,
264
264
  filterValue: _ctx.filterValue === void 0 ? _ctx.modelValue : _ctx.filterValue,
265
- placeholder: _ctx.emptyValue ? void 0 : _ctx.placeholder,
265
+ placeholder: _ctx.emptyValue || focused.value || _ctx.modelValue.length ? void 0 : _ctx.placeholder,
266
266
  emptyValue: void 0
267
267
  }, {
268
268
  class: _ctx.$attrs.class,
@@ -189,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
189
189
  loading: _ctx.loading || isFetchingPrefix.value || loadingCreate.value,
190
190
  hideInput: _ctx.modelValue.length === 0 && !_ctx.emptyValue ? false : unref(isMobile) ? !focused.value : !isOpen.value,
191
191
  filterValue: _ctx.filterValue === void 0 ? _ctx.modelValue : _ctx.filterValue,
192
- placeholder: _ctx.emptyValue ? void 0 : _ctx.placeholder,
192
+ placeholder: _ctx.emptyValue || focused.value || _ctx.modelValue.length ? void 0 : _ctx.placeholder,
193
193
  emptyValue: void 0
194
194
  }, {
195
195
  class: _ctx.$attrs.class,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.10.90",
7
+ "version": "0.10.92",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.2.2",
10
10
  "@tanstack/eslint-plugin-query": "5.81.2",