eco-vue-js 0.9.27 → 0.9.28

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,6 +1,11 @@
1
+ import { VNode } from 'vue';
1
2
  declare function __VLS_template(): {
2
- slots: {
3
- bottom?(_: {}): any;
3
+ slots: Readonly<{
4
+ default: () => VNode[];
5
+ bottom: () => VNode[];
6
+ }> & {
7
+ default: () => VNode[];
8
+ bottom: () => VNode[];
4
9
  };
5
10
  refs: {};
6
11
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"WFilterWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FilterWrapper/WFilterWrapper.vue"],"names":[],"mappings":"AA+LA,iBAAS,cAAc;;wBAuHK,GAAG;;;WASjB,OAAO,IAA6B;EAEjD;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;yBAvNE,MAAM,EAAE;;;;yBAAR,MAAM,EAAE;;;kFAgO7B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WFilterWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FilterWrapper/WFilterWrapper.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAC,KAAK,KAAK,EAAoC,MAAM,KAAK,CAAA;AAoFjE,iBAAS,cAAc;;iBAXZ,MAAM,KAAK,EAAE;gBACd,MAAM,KAAK,EAAE;;iBADZ,MAAM,KAAK,EAAE;gBACd,MAAM,KAAK,EAAE;;;WAuIT,OAAO,IAA6B;EAEjD;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;yBAzNE,MAAM,EAAE;;;;yBAAR,MAAM,EAAE;;;kFAkO7B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -17,6 +17,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  apiMethod: { type: Function },
18
18
  confimGetter: { type: Function },
19
19
  validate: {},
20
+ debounce: {},
21
+ hideButton: { type: Boolean },
20
22
  type: {},
21
23
  textarea: { type: Boolean },
22
24
  resize: { type: Boolean },
@@ -14,6 +14,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
14
14
  before?(_: {}): any;
15
15
  after?(_: {}): any;
16
16
  suffix?(_: {}): any;
17
+ inner?(_: {}): any;
17
18
  right?(_: {}): any;
18
19
  };
19
20
  emit: {
@@ -1 +1 @@
1
- {"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AAsXA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAYtB,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA6sBxD,mBAAmB,CAAC,sBAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EA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AAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgtBxD,mBAAmB,CAAC,sBAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;qBAzmB/B,IAAI;oBAML,IAAI;MAmmBkD,GAAG,IAAI;WACpE,GAAG;;uBA1Dc,GAAG;0BACA,GAAG;wBACL,GAAG;wBACF,GAAG;wBACH,GAAG;uBACJ,GAAG;wBACF,GAAG;uBACJ,GAAG;uBACH,GAAG;;;YA/oBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,UAAU,GAAG,IAAI;YACxC,cAAc,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;;;;YAyrBwB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1tBvE,wBA0tB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -327,7 +327,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
327
327
  ]),
328
328
  key: "0"
329
329
  } : void 0
330
- ]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"])
330
+ ]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"]),
331
+ renderSlot(_ctx.$slots, "inner")
331
332
  ], 34)
332
333
  ]),
333
334
  key: "3"
@@ -1 +1 @@
1
- {"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AA8NA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAiB3B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+ZxD,mBAAmB,CAAC;;mKAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA9Ce,GAAG;0BACA,GAAG;uBACN,GAAG;;cA1WzB,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI;;;;YA2ZnB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzavE,wBAya4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAoSA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAiB3B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgfxD,mBAAmB,CAAC;;mKAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA/Ce,GAAG;0BACA,GAAG;uBACN,GAAG;;cA1bzB,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI;;;;YA4enB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1fvE,wBA0f4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, useTemplateRef, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, normalizeClass, withModifiers, unref, createCommentVNode, nextTick } from 'vue';
1
+ import { defineComponent, ref, useTemplateRef, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, normalizeClass, withModifiers, unref, createCommentVNode, createElementVNode, createVNode, Transition, normalizeStyle, nextTick } from 'vue';
2
2
  import _sfc_main$1 from './WInput.vue.js';
3
3
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
4
4
  import WSpinner from '../Spinner/WSpinner.vue.js';
@@ -9,11 +9,18 @@ import IconSlash from '../../assets/icons/sax/IconSlash.svg.js';
9
9
  import { Modal } from '../../utils/Modal.js';
10
10
  import { SemanticType } from '../../utils/SemanticType.js';
11
11
 
12
+ const _hoisted_1 = { class: "absolute inset-x-3 bottom-1 isolate h-0.5" };
13
+ const _hoisted_2 = {
14
+ key: 0,
15
+ class: "absolute inset-0 -z-10 bg-gray-200 dark:bg-gray-700"
16
+ };
12
17
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
18
  ...{ inheritAttrs: false },
14
19
  __name: "WInputAsync",
15
20
  props: {
16
21
  validate: {},
22
+ debounce: {},
23
+ hideButton: { type: Boolean },
17
24
  modelValue: {},
18
25
  type: {},
19
26
  textarea: { type: Boolean },
@@ -67,7 +74,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
74
  const errorMessageValue = ref();
68
75
  const hasChangesValue = computed(() => props.modelValue !== value.value);
69
76
  const canSave = computed(() => props.textSecure && focused.value || hasChangesValue.value);
77
+ const timeout = ref(null);
78
+ const doClearTimeout = () => {
79
+ if (timeout.value) {
80
+ clearTimeout(timeout.value);
81
+ timeout.value = null;
82
+ }
83
+ };
70
84
  const reset = () => {
85
+ doClearTimeout();
71
86
  value.value = props.modelValue;
72
87
  focused.value = false;
73
88
  };
@@ -87,6 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
102
  let closeModal = null;
88
103
  const close = () => {
89
104
  closeModal?.();
105
+ doClearTimeout();
90
106
  if (props.textarea && !props.textSecure && value.value !== props.modelValue) {
91
107
  closeModal = Modal.addConfirm({
92
108
  title: `Discard changes${props.title ? " for " + props.title : ""}?`,
@@ -105,6 +121,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
121
  if (focused.value) inputRef.value?.focus();
106
122
  });
107
123
  });
124
+ } else if (props.debounce) {
125
+ emitUpdateModelValue(value.value);
108
126
  } else {
109
127
  value.value = props.modelValue;
110
128
  focused.value = false;
@@ -115,6 +133,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
115
133
  inputRef.value?.focus();
116
134
  };
117
135
  watch(toRef(props, "modelValue"), (modelValue) => {
136
+ doClearTimeout();
118
137
  value.value = modelValue;
119
138
  if (!props.placeholderSecure && saved.value) {
120
139
  inputRef.value?.blur();
@@ -138,16 +157,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
157
  };
139
158
  const handleEnterPress = (event) => {
140
159
  if (props.textarea) return;
160
+ doClearTimeout();
141
161
  event.stopPropagation();
142
162
  event.preventDefault();
143
163
  emitUpdateModelValue(value.value);
144
164
  };
145
165
  const handlePaste = () => {
166
+ doClearTimeout();
146
167
  if (!value.value) return;
147
168
  if (hasChangesValue.value || props.textSecure && focused.value) {
148
169
  emitUpdateModelValue(value.value);
149
170
  }
150
171
  };
172
+ const saveDebounced = () => {
173
+ emit("update:modelValue", value.value);
174
+ timeout.value = null;
175
+ };
176
+ const updateModelValueDebounced = () => {
177
+ if (timeout.value) clearTimeout(timeout.value);
178
+ timeout.value = setTimeout(saveDebounced, props.debounce);
179
+ };
180
+ if (props.debounce) {
181
+ watch(value, updateModelValueDebounced);
182
+ }
151
183
  return (_ctx, _cache) => {
152
184
  return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "input" }, {
153
185
  ...props,
@@ -180,11 +212,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
212
  ]),
181
213
  key: "1"
182
214
  } : void 0,
183
- !_ctx.readonly || _ctx.$slots.right ? {
215
+ !_ctx.readonly && !_ctx.hideButton || _ctx.$slots.right ? {
184
216
  name: "right",
185
217
  fn: withCtx(() => [
186
218
  renderSlot(_ctx.$slots, "right"),
187
- !_ctx.readonly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
219
+ !_ctx.readonly && !_ctx.hideButton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
188
220
  _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
189
221
  key: 0,
190
222
  class: "w-skeleton-w-11 w-skeleton-h-11 w-skeleton-rounded-lg"
@@ -210,6 +242,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
210
242
  ], 64)) : createCommentVNode("", true)
211
243
  ]),
212
244
  key: "2"
245
+ } : void 0,
246
+ _ctx.debounce ? {
247
+ name: "inner",
248
+ fn: withCtx(() => [
249
+ createElementVNode("div", _hoisted_1, [
250
+ createVNode(Transition, {
251
+ "enter-active-class": "transition-opacity",
252
+ "leave-active-class": "transition-opacity",
253
+ "enter-from-class": "opacity-0",
254
+ "leave-to-class": "opacity-0"
255
+ }, {
256
+ default: withCtx(() => [
257
+ timeout.value ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
258
+ ]),
259
+ _: 1
260
+ }),
261
+ createVNode(Transition, {
262
+ "enter-active-class": "transition-[width] ease-linear rounded-sm duration-[var(--debounce-duration)]",
263
+ "enter-from-class": "w-0",
264
+ "enter-to-class": "w-full",
265
+ "leave-active-class": "hidden"
266
+ }, {
267
+ default: withCtx(() => [
268
+ timeout.value ? (openBlock(), createElementBlock("div", {
269
+ key: timeout.value.toString(),
270
+ class: "bg-primary-default dark:bg-primary-dark relative h-full rounded-sm",
271
+ style: normalizeStyle({ "--debounce-duration": _ctx.debounce + "ms" })
272
+ }, null, 4)) : createCommentVNode("", true)
273
+ ]),
274
+ _: 1
275
+ })
276
+ ])
277
+ ]),
278
+ key: "3"
213
279
  } : void 0
214
280
  ]), 1040, ["class"]);
215
281
  };
@@ -1,4 +1,5 @@
1
1
  import { InputSuggestProps } from './types';
2
+ import { VNode } from 'vue';
2
3
  declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: __VLS_PrettifyLocal<any & InputSuggestProps<Type>> & import('vue').PublicProps;
4
5
  expose(exposed: import('vue').ShallowUnwrapRef<{
@@ -17,7 +18,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
17
18
  right?: (props: Record<string, never>) => void;
18
19
  content?: (props: {
19
20
  scrollingElement?: Element;
20
- }) => void;
21
+ }) => VNode[];
21
22
  }> & {
22
23
  title?: () => void;
23
24
  subtitle?: () => void;
@@ -27,7 +28,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
27
28
  right?: (props: Record<string, never>) => void;
28
29
  content?: (props: {
29
30
  scrollingElement?: Element;
30
- }) => void;
31
+ }) => VNode[];
31
32
  };
32
33
  emit: {
33
34
  (e: "update:modelValue", event: Type extends "number" ? number : string): void;
@@ -41,7 +42,7 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullab
41
42
  (e: "focus", value: FocusEvent): void;
42
43
  (e: "blur", value: FocusEvent): void;
43
44
  };
44
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
45
+ }>) => VNode<import('vue').RendererNode, import('vue').RendererElement, {
45
46
  [key: string]: any;
46
47
  }> & {
47
48
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -1 +1 @@
1
- {"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;yBAe7B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAifxD,mBAAmB,CAAC,6BAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;gBAnaH,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YAAC,WAAW,CAAC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I;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;;YA6dM,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3fvE,wBA2f4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -30,6 +30,8 @@ export interface InputProps<Type extends InputType> extends Omit<FieldWrapperPro
30
30
  }
31
31
  export interface InputAsyncProps<Type extends InputType> extends InputProps<Type> {
32
32
  validate?: ValidateFn | ValidateFn[];
33
+ debounce?: number;
34
+ hideButton?: boolean;
33
35
  }
34
36
  export interface InputSuggestProps<Type extends InputType> extends InputProps<Type>, Partial<Omit<DropdownMenuProps, 'isOpen' | 'updateAlign' | 'emitUpdate'>> {
35
37
  mobileTitle?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAA;IAClE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAA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AAM,EAAE,MAAM,KAAK,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;CACnF;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IACnF,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAC7B,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;CACf"}
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.9.27",
7
+ "version": "0.9.28",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "preview": "vite preview",