eco-vue-js 0.10.37 → 0.10.39

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.
@@ -1 +1 @@
1
- {"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAgCA;AAqEA,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,iBAAS,cAAc;WA2FT,OAAO,IAA6B;;iBA5GvC,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;iBAD7C,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqJswjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;EArCn7jB;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwByyjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAfl7jB,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
+ {"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAgCA;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;AAwChE,iBAAS,cAAc;WA2FT,OAAO,IAA6B;;iBA5GvC,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;iBAD7C,MAAM,KAAK,EAAE;kBACZ,CAAC,KAAK,EAAE,wBAAwB,KAAK,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAsJsljB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;EAtCnwjB;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBynjB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;OAflwjB,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,7 @@
1
- import { defineComponent, inject, useTemplateRef, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, mergeProps, Teleport, createCommentVNode, normalizeStyle, unref, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
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
3
  import { wBaseZInfex } from '../Modal/models/injection.js';
4
+ import { unwrapSlots } from '../../utils/utils.js';
4
5
 
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "WDropdownMenu",
@@ -27,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
28
  });
28
29
  return (_ctx, _cache) => {
29
30
  return openBlock(), createElementBlock(Fragment, null, [
30
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.toggle?.()?.[0]), mergeProps({ ref: "container" }, _ctx.$attrs), null, 16)),
31
+ (openBlock(), createBlock(resolveDynamicComponent(unref(unwrapSlots)(_ctx.$slots.toggle?.() ?? [])[0]), mergeProps({ ref: "container" }, _ctx.$attrs), null, 16)),
31
32
  (openBlock(), createBlock(Teleport, {
32
33
  to: "body",
33
34
  disabled: !_ctx.teleport || !_ctx.isOpen
@@ -1 +1 @@
1
- {"version":3,"file":"WForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WForm.vue"],"names":[],"mappings":"AAKA;AA8KA,OAAO,EAAC,KAAK,YAAY,EAAiB,MAAM,gBAAgB,CAAA;AAGhE,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AAyKF,iBAAS,cAAc;WA6BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;kFASnB,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
+ {"version":3,"file":"WForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WForm.vue"],"names":[],"mappings":"AAKA;AA+KA,OAAO,EAAC,KAAK,YAAY,EAAiB,MAAM,gBAAgB,CAAA;AAGhE,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AA0KF,iBAAS,cAAc;WA6BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;kFASnB,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"}
@@ -43,7 +43,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  const hasShownMap = useFormValueMap(
44
44
  wFormHasShownUpdater,
45
45
  name,
46
- (map) => computed(() => Object.values(map.value).some((value) => value))
46
+ (map) => computed(() => Object.values(map.value).some((value) => value)),
47
+ false
47
48
  );
48
49
  const validateMap = useFormValueMap(
49
50
  wFormValidateUpdater,
@@ -1 +1 @@
1
- {"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAaA;AA2TA,OAAO,EAAC,KAAK,KAAK,EAAyF,MAAM,KAAK,CAAA;AAUtH,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAuSF,iBAAS,cAAc;WAyDT,OAAO,IAA6B;;iBA9DvC,MAAM,KAAK,EAAE;;iBAAb,MAAM,KAAK,EAAE;;;;;;EAmEvB;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wBAvGC,MAAM;qBA7EN,IAAI;;;;;;;;;;;;;;;OA8LxB,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
+ {"version":3,"file":"WFormValidator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/WFormValidator.vue"],"names":[],"mappings":"AAaA;AAqUA,OAAO,EAAC,KAAK,KAAK,EAAmG,MAAM,KAAK,CAAA;AAUhI,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAiTF,iBAAS,cAAc;WAuDT,OAAO,IAA6B;;iBA5DvC,MAAM,KAAK,EAAE;;iBAAb,MAAM,KAAK,EAAE;;;;;;EAiEvB;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wBAtGC,MAAM;qBAtFN,IAAI;;;;;;;;;;;;;;;OAsMxB,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,4 +1,4 @@
1
- import { defineComponent, inject, useSlots, computed, useTemplateRef, ref, watch, onBeforeMount, onBeforeUnmount, createBlock, openBlock, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, inject, useSlots, computed, useTemplateRef, ref, watch, onBeforeMount, onBeforeUnmount, createBlock, openBlock, resolveDynamicComponent, nextTick } from 'vue';
2
2
  import { useIsInsideTab } from '../Tabs/use/useIsInsideTab.js';
3
3
  import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
4
4
  import { debounce } from '../../utils/utils.js';
@@ -47,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
47
  });
48
48
  const initModelValue = ref();
49
49
  const isErrorShown = ref(false);
50
+ const wasChanged = ref(false);
50
51
  const required = computed(() => componentSlot.value?.props?.required !== void 0 ? componentSlot.value?.props?.required !== false : void 0);
51
52
  const mandatory = computed(() => componentSlot.value?.props?.mandatory !== void 0 ? componentSlot.value?.props?.mandatory !== false : void 0);
52
53
  const skeleton = computed(() => componentSlot.value?.props?.skeleton !== void 0 ? componentSlot.value?.props?.skeleton !== false : void 0);
@@ -119,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
120
  const validateOnUpdate = (value) => {
120
121
  const message = _validate(value);
121
122
  errorMessage.value = message;
122
- if (!message) isErrorShown.value = false;
123
+ if (!message) nextTick(() => isErrorShown.value = false);
123
124
  return message;
124
125
  };
125
126
  const _validateOnUpdate = (value) => {
@@ -155,6 +156,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
155
156
  };
156
157
  const initModel = () => {
157
158
  isErrorShown.value = false;
159
+ wasChanged.value = false;
158
160
  initModelValue.value = modelValue.value;
159
161
  validateOnUpdate(modelValue.value);
160
162
  };
@@ -165,12 +167,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
165
167
  };
166
168
  const scrollToDebounced = debounce(scrollTo, 300);
167
169
  useTabActiveListener(scrollToDebounced);
170
+ const showError = () => {
171
+ if (!errorMessage.value || !wasChanged.value) return;
172
+ isErrorShown.value = true;
173
+ };
168
174
  watch(errorMessage, (value) => {
169
175
  if (value === null) return;
170
176
  if (props.name) errorMessageUpdater?.(props.name, value);
171
177
  emit("update:is-valid", !value);
172
178
  });
173
179
  watch(hasChanges, (value) => {
180
+ if (value) wasChanged.value = true;
174
181
  if (props.name) hasChangesUpdater?.(props.name, value);
175
182
  emit("update:has-changes", value);
176
183
  });
@@ -221,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
221
228
  onSelect: _validateOnSelect,
222
229
  onUnselect: _validateOnUnselect,
223
230
  onInitModel: initModel,
224
- onBlur: _cache[0] || (_cache[0] = ($event) => isErrorShown.value = true)
231
+ onBlur: showError
225
232
  }, null, 40, ["error-message", "has-changes"]);
226
233
  };
227
234
  }
@@ -1,5 +1,5 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
- export declare const useFormValueMap: <Value, ValueGetter extends Ref<Value> | ((map: Ref<Record<string, Value>>) => Value) | ((map: Ref<Record<string, Value>>) => Ref<Value>)>(injectionKey: InjectionKey<(key: string, value: Value) => void>, name: Ref<string | undefined>, valueGetter: ValueGetter) => {
2
+ export declare const useFormValueMap: <Value, ValueGetter extends Ref<Value> | ((map: Ref<Record<string, Value>>) => Value) | ((map: Ref<Record<string, Value>>) => Ref<Value>)>(injectionKey: InjectionKey<(key: string, value: Value) => void>, name: Ref<string | undefined>, valueGetter: ValueGetter, immediate?: boolean) => {
3
3
  unlistener(key: string): void;
4
4
  map: Ref<Record<string, Value>>;
5
5
  value: ValueGetter extends () => unknown ? ReturnType<ValueGetter> : Ref<Value>;
@@ -1 +1 @@
1
- {"version":3,"file":"useFormValueMap.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/use/useFormValueMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,YAAY,EAAE,KAAK,GAAG,EAAoD,MAAM,KAAK,CAAA;AAElG,eAAO,MAAM,eAAe,GAAI,KAAK,EAAE,WAAW,SAAS,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,EACtK,cAAc,YAAY,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,EAC/D,MAAM,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAC7B,aAAa,WAAW,KACvB;IACD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;IAC/B,KAAK,EAAE,WAAW,SAAS,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;CAoChF,CAAA"}
1
+ {"version":3,"file":"useFormValueMap.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/use/useFormValueMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,YAAY,EAAE,KAAK,GAAG,EAAoD,MAAM,KAAK,CAAA;AAElG,eAAO,MAAM,eAAe,GAAI,KAAK,EAAE,WAAW,SAAS,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,EACtK,cAAc,YAAY,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,EAC/D,MAAM,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAC7B,aAAa,WAAW,EACxB,mBAAgB,KACf;IACD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;IAC/B,KAAK,EAAE,WAAW,SAAS,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;CAoChF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ref, provide, inject, isRef, watch, onBeforeMount } from 'vue';
2
2
 
3
- const useFormValueMap = (injectionKey, name, valueGetter) => {
3
+ const useFormValueMap = (injectionKey, name, valueGetter, immediate = true) => {
4
4
  const map = ref({});
5
5
  const updater = (key, value2) => {
6
6
  if (value2 === null || value2 === void 0) unlistener(key);
@@ -16,7 +16,7 @@ const useFormValueMap = (injectionKey, name, valueGetter) => {
16
16
  if (isRef(value)) {
17
17
  watch(value, (value2) => {
18
18
  if (name.value) updaterInjected?.(name.value, value2);
19
- }, { immediate: true });
19
+ }, { immediate });
20
20
  } else {
21
21
  onBeforeMount(() => {
22
22
  if (name.value) updaterInjected?.(name.value, value);
@@ -1,7 +1,7 @@
1
1
  import { createBlock, openBlock, TransitionGroup, withCtx, renderSlot } from 'vue';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
3
3
 
4
- const _sfc_main = {};
4
+ const _sfc_main = { };
5
5
 
6
6
  function _sfc_render(_ctx, _cache) {
7
7
  return (openBlock(), createBlock(TransitionGroup, {
@@ -1 +1 @@
1
- {"version":3,"file":"NotifyCard.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notify/components/NotifyCard.vue"],"names":[],"mappings":"AA+DA;AA+HA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAE/C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,UAAU,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;;;;;;aAJW,MAAM;eApBlB,YA5HkB;eAiJJ,MAAM;;;;AAsNpB,wBAUG"}
1
+ {"version":3,"file":"NotifyCard.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notify/components/NotifyCard.vue"],"names":[],"mappings":"AA+DA;AAuIA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAgB5C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAA;AAE/C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,UAAU,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;;;;;;aAJW,MAAM;eApBlB,YApIkB;eAyJJ,MAAM;;;;AA8NpB,wBAUG"}
@@ -36,7 +36,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  const elementRef = useTemplateRef("element");
37
37
  const height = ref();
38
38
  const router = useRouter();
39
- const linkText = computed(() => props.to ? router.resolve(props.to).meta.title : void 0);
39
+ const linkText = computed(() => {
40
+ if (!props.to) return void 0;
41
+ if (props.to instanceof Object && "meta" in props.to && props.to.meta instanceof Object && "title" in props.to.meta) {
42
+ return props.to.meta.title;
43
+ }
44
+ return router.resolve(props.to).meta.title;
45
+ });
40
46
  const elementStyles = computed(() => {
41
47
  if (!height.value) return void 0;
42
48
  return {
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock, openBlock, renderSlot } from 'vue';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
3
3
 
4
- const _sfc_main = {};
4
+ const _sfc_main = { };
5
5
 
6
6
  const _hoisted_1 = { class: "[counter-reset:section]" };
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock, openBlock, normalizeStyle } from 'vue';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
3
3
 
4
- const _sfc_main = {};
4
+ const _sfc_main = { };
5
5
 
6
6
  function _sfc_render(_ctx, _cache) {
7
7
  return (openBlock(), createElementBlock("div", {
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock, openBlock, createElementVNode } from 'vue';
2
2
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
3
3
 
4
- const _sfc_main = {};
4
+ const _sfc_main = { };
5
5
 
6
6
  const _hoisted_1 = {
7
7
  class: "square-[var(--w-spinner-size,2rem)] animate-spin",
@@ -1 +1 @@
1
- {"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","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E,GAAG;;;;;;;;;;;;;;;;;;OA6ON,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"}
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  const indicatorStyle = ref(void 0);
50
50
  const minHeight = ref(0);
51
51
  const tabItemRef = useTemplateRef("tabItem");
52
- const currentIsValid = computed(() => formRef.value?.hasShownMap[current.value] === false || typeof formRef.value?.errorMessageMap[current.value] !== "string");
52
+ const currentIsValid = computed(() => !formRef.value?.hasShownMap[current.value] || typeof formRef.value?.errorMessageMap[current.value] !== "string");
53
53
  const hasNoValueFirst = computed(() => {
54
54
  if (!props.stepper) return 0;
55
55
  const index = defaultSlotsKeys.value.findIndex((item) => formRef.value?.hasValueMap[item] === false);
@@ -122,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
122
122
  return formRef.value?.validateMap[name]?.(...args);
123
123
  };
124
124
  const validateIfNoError = (name, ...args) => {
125
- if (formRef.value?.errorMessageMap[name]) return formRef.value.errorMessageMap[name];
125
+ if (formRef.value?.errorMessageMap[name] && formRef.value?.hasShownMap[name]) return formRef.value.errorMessageMap[name];
126
126
  return formRef.value?.validateMap[name]?.(...args);
127
127
  };
128
128
  const invalidate = (name, ...args) => {
@@ -128,8 +128,8 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
128
128
  })(Theme || {});
129
129
  const unwrapSlots = (slots) => {
130
130
  return slots.flatMap((slot) => {
131
- if (Array.isArray(slot?.children)) return unwrapSlots(slot.children);
132
- else if (typeof slot.type !== "symbol") return slot;
131
+ if (typeof slot.type !== "symbol") return slot;
132
+ else if (Array.isArray(slot?.children)) return unwrapSlots(slot.children);
133
133
  else return [];
134
134
  });
135
135
  };
package/package.json CHANGED
@@ -4,22 +4,22 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.10.37",
7
+ "version": "0.10.39",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "dev": "vite build --mode development --watch",
11
11
  "build-only": "vite build",
12
12
  "type-check": "vue-tsc --build --force",
13
- "lint": "eslint . --fix",
14
- "lint-no-fix": "eslint .",
13
+ "lint": "eslint .",
14
+ "lint:fix": "eslint . --fix",
15
15
  "lint-inspect-config": "npx eslint --inspect-config",
16
16
  "write-imports": "node write-imports.js"
17
17
  },
18
18
  "dependencies": {
19
19
  "@stylistic/eslint-plugin-ts": "4.2.0",
20
- "@tanstack/eslint-plugin-query": "5.67.2",
20
+ "@tanstack/eslint-plugin-query": "5.68.0",
21
21
  "@vue/eslint-config-typescript": "14.5.0",
22
- "eslint-import-resolver-typescript": "3.8.4",
22
+ "eslint-import-resolver-typescript": "4.3.1",
23
23
  "eslint-plugin-import": "2.31.0",
24
24
  "eslint-plugin-tailwindcss": "3.18.0",
25
25
  "eslint-plugin-unused-imports": "4.1.4",
@@ -14,6 +14,7 @@ const newValues = {
14
14
  '--w-option-padding': 'var(--w-option-padding)',
15
15
  '--w-input-height': 'var(--w-input-height)',
16
16
  '--w-input-gap': 'var(--w-input-gap)',
17
+ '--w-option-height': 'var(--w-option-height)',
17
18
  '--w-select-option-padding': 'var(--w-select-option-padding)',
18
19
  '--left-inner': 'var(--w-left-inner)',
19
20
  '--right-inner': 'var(--w-right-inner)',