eco-vue-js 0.8.36 → 0.8.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  createOption: { type: Function },
25
25
  filterOptions: { type: Function },
26
26
  hideOptionIcon: { type: Boolean },
27
+ createdData: {},
27
28
  mobileTitle: {},
28
29
  persist: { type: Boolean },
29
30
  type: {},
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  confimGetter: { type: Function },
18
18
  allowClear: { type: Boolean },
19
19
  searchModel: { type: Boolean },
20
+ createdData: {},
20
21
  valueGetter: { type: Function },
21
22
  searchFn: { type: Function },
22
23
  useQueryFnDefault: {},
@@ -25,6 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  createOption: { type: Function },
26
26
  filterOptions: { type: Function },
27
27
  hideOptionIcon: { type: Boolean },
28
+ createdData: {},
28
29
  mobileTitle: {},
29
30
  persist: { type: Boolean },
30
31
  type: {},
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAqZA,OAAO,KAAK,EAAC,WAAW,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAI1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eACnI,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;WAgqBxD,mBAAmB,CAAC;;;;;;;wRAAyD,CAAC,4BAA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,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YAoqBmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AArrBvE,wBAqrB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -25,6 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  createOption: { type: Function },
26
26
  filterOptions: { type: Function },
27
27
  hideOptionIcon: { type: Boolean },
28
+ createdData: {},
28
29
  mobileTitle: {},
29
30
  persist: { type: Boolean },
30
31
  type: {},
@@ -86,10 +87,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
87
  };
87
88
  const createdOptions = ref([]);
88
89
  const optionsPrepared = computed(() => !data.value ? [] : props.filterOptions ? data.value.filter((option) => props.filterOptions?.(option) ?? true) : data.value);
89
- const optionsWithCreated = computed(() => [
90
- ...optionsPrepared.value,
91
- ...createdOptions.value.filter((option) => !optionsPrepared.value.some((item) => props.valueGetter(item) === props.valueGetter(option)))
92
- ]);
90
+ const optionsWithCreated = computed(() => {
91
+ if (!props.createdData) {
92
+ if (createdOptions.value.length) return [...optionsPrepared.value, ...createdOptions.value];
93
+ else return optionsPrepared.value;
94
+ }
95
+ return [
96
+ ...optionsPrepared.value,
97
+ ...props.createdData ?? [],
98
+ ...createdOptions.value
99
+ ].filter((option, index, array) => array.findIndex((item) => props.valueGetter(item) === props.valueGetter(option)) === index);
100
+ });
93
101
  const optionsFiltered = computed(() => searchPrepared.value === "" ? optionsWithCreated.value : optionsWithCreated.value.filter((option) => props.searchFn(option, searchPrepared.value)));
94
102
  const lastIndex = computed(() => props.createOption ? optionsFiltered.value.length : optionsFiltered.value.length - 1);
95
103
  const isMobile = getIsMobile();
@@ -98,6 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
106
  const loadingCreate = ref(false);
99
107
  const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
100
108
  const prefixList = computed(() => props.modelValue.map((value) => optionsWithCreated.value?.find((item) => props.valueGetter(item) === value)).filter((item) => item !== void 0));
109
+ const hasCreateOption = computed(() => props.createOption && search.value !== "" && !optionsFiltered.value.some((option) => props.valueGetter(option) === search.value));
101
110
  const close = () => {
102
111
  isOpen.value = false;
103
112
  focused.value = false;
@@ -309,7 +318,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
309
318
  _: 2
310
319
  }, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
311
320
  }), 128)),
312
- _ctx.createOption && search.value !== "" && !optionsFiltered.value.some((option) => _ctx.valueGetter(option) === search.value) ? (openBlock(), createBlock(_sfc_main$3, {
321
+ hasCreateOption.value ? (openBlock(), createBlock(_sfc_main$3, {
313
322
  key: 1,
314
323
  "is-selected": false,
315
324
  "is-cursor": cursor.value === optionsFiltered.value.length,
@@ -2,13 +2,16 @@ import { SelectAsyncProps, SelectOptionComponent } from './types';
2
2
  declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>>(__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
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onSelect?: ((item: Model) => any) | undefined;
5
+ readonly onBlur?: ((value: FocusEvent) => any) | undefined;
6
+ readonly onFocus?: ((value: FocusEvent) => any) | undefined;
5
7
  readonly "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
6
8
  readonly onUnselect?: ((item: Model) => any) | undefined;
7
9
  readonly "onInit-model"?: (() => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect" | "onInit-model"> & SelectAsyncProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onSelect" | "onUpdate:modelValue" | "onUnselect" | "onInit-model"> & SelectAsyncProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
9
11
  expose(exposed: import('vue').ShallowUnwrapRef<{
10
12
  focus: () => void;
11
13
  blur: () => void;
14
+ setSearch: (value: string) => void;
12
15
  }>): void;
13
16
  attrs: any;
14
17
  slots: Readonly<{
@@ -41,6 +44,8 @@ declare const _default: <Model extends number | string, Data extends DefaultData
41
44
  (e: "unselect", item: Model): void;
42
45
  (e: "update:modelValue", value: Model[]): void;
43
46
  (e: "init-model"): void;
47
+ (e: "focus", value: FocusEvent): void;
48
+ (e: "blur", value: FocusEvent): void;
44
49
  };
45
50
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
46
51
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA6QA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAG/E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,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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,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YAzIlI,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,YAAY,GAAG,IAAI;YACnB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;;YA+hBM,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvjBvE,wBAujB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -13,7 +13,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  queryParamsOptions: {},
14
14
  searchField: {},
15
15
  previewData: {},
16
- createdData: {},
17
16
  valueQueryKey: { default: "id__in" },
18
17
  modelValue: {},
19
18
  valueGetter: { type: Function, default: (data) => data.id },
@@ -23,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
22
  hidePrefix: { type: Boolean },
24
23
  createOption: {},
25
24
  hideOptionIcon: { type: Boolean },
25
+ createdData: {},
26
26
  mobileTitle: {},
27
27
  persist: { type: Boolean },
28
28
  type: {},
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
63
  optionComponent: {},
64
64
  optionComponentProps: {}
65
65
  },
66
- emits: ["select", "unselect", "update:modelValue", "init-model"],
66
+ emits: ["select", "unselect", "update:modelValue", "init-model", "focus", "blur"],
67
67
  setup(__props, { expose: __expose, emit: __emit }) {
68
68
  const props = __props;
69
69
  const emit = __emit;
@@ -80,7 +80,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  const queryParams = computed(() => ({ ...props.queryParamsOptions, [props.searchField ?? "search"]: search.value }));
81
81
  const queryParamsFirstPage = computed(() => ({ ...queryParams.value, page: 1 }));
82
82
  const { data: firstPageData } = props.useQueryFnOptions(queryParamsFirstPage, { enabled: false });
83
- const hasSearchOption = computed(() => firstPageData.value?.results.some((option) => props.valueGetter(option) === search.value));
83
+ const hasSearchOption = computed(() => {
84
+ if (props.createdData?.some((option) => props.valueGetter(option) === search.value)) return true;
85
+ return firstPageData.value?.results.some((option) => props.valueGetter(option) === search.value);
86
+ });
84
87
  const close = () => {
85
88
  isOpen.value = false;
86
89
  focused.value = false;
@@ -134,6 +137,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
134
137
  await nextTick();
135
138
  input.value?.updateDropdown();
136
139
  };
140
+ const setSearch = (value) => {
141
+ search.value = value;
142
+ };
137
143
  if (props.useQueryFnDefault) {
138
144
  const { data: defaultData } = props.useQueryFnDefault({ enabled });
139
145
  watch(defaultData, (value) => {
@@ -145,7 +151,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
145
151
  }
146
152
  __expose({
147
153
  focus,
148
- blur
154
+ blur,
155
+ setSearch
149
156
  });
150
157
  return (_ctx, _cache) => {
151
158
  return openBlock(), createBlock(_sfc_main$1, mergeProps({
@@ -168,8 +175,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
168
175
  close();
169
176
  search.value = "";
170
177
  }),
171
- onFocus: _cache[7] || (_cache[7] = ($event) => focused.value = true),
172
- onBlur: _cache[8] || (_cache[8] = ($event) => focused.value = false)
178
+ onFocus: _cache[7] || (_cache[7] = ($event) => {
179
+ focused.value = true;
180
+ _ctx.$emit("focus", $event);
181
+ }),
182
+ onBlur: _cache[8] || (_cache[8] = ($event) => {
183
+ focused.value = false;
184
+ _ctx.$emit("blur", $event);
185
+ })
173
186
  }), createSlots({
174
187
  prefix: withCtx(({ unclickable }) => [
175
188
  (_ctx.hidePrefix ? unref(isMobile) ? unclickable || !focused.value : !isOpen.value : true) ? (openBlock(), createBlock(_sfc_main$2, {
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACxJ,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;WA2MxD,mBAAmB,CAAC;;;4OAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAnCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YAlKzB,mBAAmB,0DAAoB,IAAI;YAC3C,YAAY,GAAG,IAAI;;;;;YAsMmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AArNvE,wBAqN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACxJ,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;WAuNxD,mBAAmB,CAAC;;;4OAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAlCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YA/KzB,mBAAmB,0DAAoB,IAAI;YAC3C,YAAY,GAAG,IAAI;;;;;YAkNmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjOvE,wBAiO4E;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, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, useTemplateRef, computed, watch, toRef, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from './WSelectAsync.vue.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -65,23 +65,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  setup(__props, { expose: __expose, emit: __emit }) {
66
66
  const props = __props;
67
67
  const emit = __emit;
68
- const selectComponent = ref();
68
+ const selectComponentRef = useTemplateRef("selectComponent");
69
69
  const arrayValue = computed(() => props.modelValue ? [props.modelValue] : []);
70
70
  const updateModelValue = (value) => {
71
71
  emit("update:modelValue", value);
72
72
  };
73
73
  const blur = () => {
74
- selectComponent.value?.blur();
74
+ selectComponentRef.value?.blur();
75
75
  };
76
76
  watch(toRef(props, "modelValue"), blur);
77
77
  __expose({
78
78
  blur
79
79
  });
80
80
  return (_ctx, _cache) => {
81
- return openBlock(), createBlock(_sfc_main$1, mergeProps({
82
- ref_key: "selectComponent",
83
- ref: selectComponent
84
- }, {
81
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "selectComponent" }, {
85
82
  ...props,
86
83
  modelValue: arrayValue.value,
87
84
  disableClear: !_ctx.allowClear,
@@ -92,7 +89,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
89
  class: _ctx.$attrs.class,
93
90
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
94
91
  onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null)),
95
- onInitModel: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("init-model"))
92
+ onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? unref(selectComponentRef)?.setSearch(_ctx.modelValue) : void 0),
93
+ onInitModel: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("init-model"))
96
94
  }), createSlots({
97
95
  option: withCtx(({ option, selected, model, search }) => [
98
96
  renderSlot(_ctx.$slots, "option", {
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGpD,KAAK,S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,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;WA6OxD,mBAAmB,CAAC;;;;gRAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBApCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YAnMzB,oBAAoB,0DAAoB,IAAI;YAC5C,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YAuOmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAvPvE,wBAuP4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -8,6 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  modelValue: {},
9
9
  allowClear: { type: Boolean },
10
10
  searchModel: { type: Boolean },
11
+ createdData: {},
11
12
  valueGetter: { type: Function },
12
13
  searchFn: { type: Function },
13
14
  useQueryFnDefault: {},
@@ -84,6 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
85
  ...props,
85
86
  modelValue: arrayValue.value,
86
87
  disableClear: !_ctx.allowClear,
88
+ createdData: _ctx.createdData ? [_ctx.createdData] : void 0,
87
89
  hidePrefix: true
88
90
  }, {
89
91
  class: _ctx.$attrs.class,
@@ -16,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  createOption: { type: Function },
17
17
  filterOptions: { type: Function },
18
18
  hideOptionIcon: { type: Boolean },
19
+ createdData: {},
19
20
  mobileTitle: {},
20
21
  persist: { type: Boolean },
21
22
  type: {},
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yBAuNiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,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;WA6fxD,mBAAmB,CAAC;;;;;;;oBAzfhB,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;2BACL,OAAO,GAAG,IAAI;kBACvB,OAAO;mBACN,OAAO;qBACL,OAAO;wBACJ,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,OAAO;oBACP,MAAM;qBACL,OAAO;uBACL,OAAO;sBACR,OAAO;yBACJ,OAAO;qBACX,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;uBACnB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC3D,OAAO;KAye8D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;kBAjZD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5E,CAAC,KAAK,EAAE;YAAC,MAA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,IAAI,EAAE,IAAI,KAAK,KAAK;uBACnB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC3D,OAAO;KA8e8D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;kBAlZD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5E,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAzFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;;;;;YA4egB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5gBvE,wBA4gB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -46,6 +46,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  isCursorLocked.value = true;
47
47
  unlockCursor();
48
48
  };
49
+ const updateCursor = (value) => {
50
+ cursor.value = value;
51
+ };
49
52
  const setCursor = (value) => {
50
53
  if (isCursorLocked.value) return;
51
54
  cursor.value = value;
@@ -101,13 +104,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
104
  "header-top-ignore": "",
102
105
  "min-height": "",
103
106
  "no-gap": "",
104
- "onUpdate:count": _cache[2] || (_cache[2] = ($event) => {
107
+ "onUpdate:count": _cache[3] || (_cache[3] = ($event) => {
105
108
  _ctx.$emit("update:count", $event);
106
109
  count.value = $event;
110
+ updateCursor(void 0);
107
111
  }),
108
- "onUpdate:selected": _cache[3] || (_cache[3] = ($event) => !_ctx.disabled && _ctx.$emit("update:modelValue", $event))
112
+ "onUpdate:selected": _cache[4] || (_cache[4] = ($event) => !_ctx.disabled && _ctx.$emit("update:modelValue", $event))
109
113
  }, {
110
- default: withCtx(({ item, skeleton, previous, next, first, last, resetting }) => [
114
+ default: withCtx(({ item, skeleton, previous, next, first, last }) => [
111
115
  createVNode(_sfc_main$2, {
112
116
  "is-selected": !skeleton && _ctx.modelValue.includes(_ctx.valueGetter(item)),
113
117
  "is-cursor": !skeleton && _ctx.valueGetter(item) === cursor.value,
@@ -137,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
141
  "onUpdate:isCursor": updateCursors,
138
142
  "onUpdate:previous": _cache[0] || (_cache[0] = ($event) => cursorPrevious.value = $event),
139
143
  "onUpdate:next": _cache[1] || (_cache[1] = ($event) => cursorNext.value = $event),
140
- onUnmounted: ($event) => cursor.value = resetting ? void 0 : next ? _ctx.valueGetter(next) : void 0,
144
+ onUnmounted: _cache[2] || (_cache[2] = ($event) => updateCursor(void 0)),
141
145
  "onUpdate:first": ($event) => firstItem.value = _ctx.valueGetter(item),
142
146
  "onUpdate:last": ($event) => lastItem.value = _ctx.valueGetter(item)
143
147
  }, {
@@ -149,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
153
  })
150
154
  ]),
151
155
  _: 2
152
- }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUnmounted", "onUpdate:first", "onUpdate:last"])
156
+ }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUpdate:first", "onUpdate:last"])
153
157
  ]),
154
158
  _: 3
155
159
  }, 8, ["use-query-fn", "query-params", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options", "skeleton-length", "last-child"]),
@@ -165,18 +169,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
165
169
  "is-no-cursor": cursor.value === void 0,
166
170
  "hide-option-icon": _ctx.hideOptionIcon,
167
171
  class: "first:pt-4 last:pb-4",
168
- onMouseenter: _cache[4] || (_cache[4] = ($event) => setCursor(null)),
169
- "onUpdate:cursor": _cache[5] || (_cache[5] = ($event) => setCursor(null)),
170
- onSelect: _cache[6] || (_cache[6] = ($event) => {
172
+ onMouseenter: _cache[5] || (_cache[5] = ($event) => setCursor(null)),
173
+ "onUpdate:cursor": _cache[6] || (_cache[6] = ($event) => setCursor(null)),
174
+ onSelect: _cache[7] || (_cache[7] = ($event) => {
171
175
  _ctx.$emit("create:option");
172
176
  setLoadingOption(null);
173
177
  }),
174
178
  "onUpdate:isCursor": updateCursors,
175
- "onUpdate:previous": _cache[7] || (_cache[7] = ($event) => cursorPrevious.value = $event),
176
- "onUpdate:next": _cache[8] || (_cache[8] = ($event) => cursorNext.value = $event),
177
- onUnmounted: _cache[9] || (_cache[9] = ($event) => cursor.value = void 0)
179
+ "onUpdate:previous": _cache[8] || (_cache[8] = ($event) => cursorPrevious.value = $event),
180
+ "onUpdate:next": _cache[9] || (_cache[9] = ($event) => cursorNext.value = $event),
181
+ onUnmounted: _cache[10] || (_cache[10] = ($event) => updateCursor(void 0))
178
182
  }, {
179
- prefix: withCtx(() => _cache[10] || (_cache[10] = [
183
+ prefix: withCtx(() => _cache[11] || (_cache[11] = [
180
184
  createElementVNode("span", { class: "w-select-field pr-2 sm-not:px-3" }, " Create: ", -1)
181
185
  ])),
182
186
  default: withCtx(() => [
@@ -1 +1 @@
1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mB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, toRef, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, mergeProps, createSlots, withCtx, createElementVNode, withModifiers, createVNode, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, toRef, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, renderList, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, mergeProps, createSlots, withCtx, createElementVNode, withModifiers, createVNode, unref, createCommentVNode } from 'vue';
2
2
  import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
3
3
 
4
4
  const _hoisted_1 = ["onClick"];
@@ -31,6 +31,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  refetchOnWindowFocus: false
32
32
  });
33
33
  const pagesCount = computed(() => data.value?.pages_count);
34
+ const options = computed(() => {
35
+ if (!props.createdData) return props.previewData ?? data.value?.results ?? [];
36
+ return [
37
+ ...props.createdData ?? [],
38
+ ...props.previewData ?? data.value?.results ?? []
39
+ ].filter((option, index, array) => array.findIndex((item) => props.valueGetter(item) === props.valueGetter(option)) === index);
40
+ });
34
41
  watch(pagesCount, (value) => {
35
42
  if (value === void 0) return;
36
43
  emit("update:pages-count", value);
@@ -42,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
49
  emit("update:fetching", false);
43
50
  });
44
51
  return (_ctx, _cache) => {
45
- return openBlock(true), createElementBlock(Fragment, null, renderList([..._ctx.createdData ?? [], ..._ctx.previewData ?? unref(data)?.results ?? []], (option, index) => {
52
+ return openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (option, index) => {
46
53
  return openBlock(), createElementBlock("div", {
47
54
  key: _ctx.valueGetter(option),
48
55
  class: normalizeClass(["relative flex overflow-hidden items-center text-description", {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"yBA0IiB,KAAK,SAAS,MAAM,GAAG,MAAM,eAChC,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;WAqOxD,mBAAmB,CAAC;oBAjOhB,OAAO;mBACR,OAAO;kBACR,OAAO;mBACN,OAAO;iBACT,OAAO;gBACR,OAAO;eACR,OAAO;mBACH,KAAK,GAAG,IAAI;eAChB,KAAK,GAAG,IAAI;qBACN,OAAO;yBACH,OAAO;KAuN6D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;iBAhJF,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;iBADT,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;;YArEd,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;;;;;YAiNkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA/OvE,wBA+O4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"yBA4IiB,KAAK,SAAS,MAAM,GAAG,MAAM,eAChC,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;WAuOxD,mBAAmB,CAAC;oBAnOhB,OAAO;mBACR,OAAO;kBACR,OAAO;mBACN,OAAO;iBACT,OAAO;gBACR,OAAO;eACR,OAAO;mBACH,KAAK,GAAG,IAAI;eAChB,KAAK,GAAG,IAAI;qBACN,OAAO;yBACH,OAAO;KAyN6D,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;iBAhJF,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;iBADT,CAAC,KAAK,EAAE;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;gBACrC,MAAM,IAAI;;;YAvEd,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;;;;;YAmNkB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjPvE,wBAiP4E;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, watch, toRef, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from 'vue';
1
+ import { defineComponent, ref, watch, watchEffect, onUnmounted, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, createVNode, Transition, withCtx, createBlock, unref, createCommentVNode } from 'vue';
2
2
  import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
3
3
  import WSpinner from '../../Spinner/WSpinner.vue.js';
4
4
 
@@ -34,27 +34,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  const scrollIntoView = () => {
35
35
  element.value?.scrollIntoView({ behavior: "auto", block: "center" });
36
36
  };
37
- watch(toRef(props, "isCursor"), (value) => {
37
+ watch(() => props.isCursor, (value) => {
38
38
  if (!value) return;
39
39
  emit("update:is-cursor", { previous: props.previous, next: props.next });
40
40
  if (props.scroll) scrollIntoView();
41
41
  }, { immediate: true });
42
- watch(toRef(props, "isNoCursor"), (value) => {
43
- if (value && props.first && !props.skeleton) emit("update:cursor");
44
- }, { immediate: true });
45
- watch(toRef(props, "previous"), (value) => {
42
+ watchEffect(() => {
43
+ if (props.isNoCursor && props.first && !props.skeleton) {
44
+ emit("update:cursor");
45
+ }
46
+ });
47
+ watch(() => props.previous, (value) => {
46
48
  if (props.isCursor && !props.skeleton) emit("update:previous", value);
47
49
  }, { immediate: true });
48
- watch(toRef(props, "next"), (value) => {
50
+ watch(() => props.next, (value) => {
49
51
  if (props.isCursor && !props.skeleton) emit("update:next", value);
50
52
  }, { immediate: true });
51
- watch(toRef(props, "first"), (value) => {
53
+ watch(() => props.first, (value) => {
52
54
  if (value) emit("update:first");
53
55
  }, { immediate: true });
54
- watch(toRef(props, "last"), (value) => {
56
+ watch(() => props.last, (value) => {
55
57
  if (value) emit("update:last");
56
58
  }, { immediate: true });
57
- watch(toRef(props, "next"), (value) => {
59
+ watch(() => props.next, (value) => {
58
60
  if (props.isCursor && !props.skeleton) emit("update:next", value);
59
61
  }, { immediate: true });
60
62
  onUnmounted(() => {
@@ -38,6 +38,7 @@ export interface SelectProps<Model extends number | string, Data extends Default
38
38
  createOption?: (search: string) => (Data | undefined) | Promise<Data | undefined>;
39
39
  filterOptions?: (option: Data) => boolean;
40
40
  hideOptionIcon?: boolean;
41
+ createdData?: Data[];
41
42
  }
42
43
  export interface SelectPrefixProps<Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
43
44
  option: Data;
@@ -46,10 +47,11 @@ export interface SelectPrefixProps<Data extends DefaultData, OptionComponent ext
46
47
  loading?: boolean;
47
48
  disableClear?: boolean;
48
49
  }
49
- export interface SelectSingleProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectProps<Model, Data, QueryParams, OptionComponent>, 'modelValue' | 'disableClear'> {
50
+ export interface SelectSingleProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectProps<Model, Data, QueryParams, OptionComponent>, 'modelValue' | 'disableClear' | 'createdData'> {
50
51
  modelValue: Model | null;
51
52
  allowClear?: boolean & AllowClear;
52
53
  searchModel?: boolean;
54
+ createdData?: Data;
53
55
  }
54
56
  export interface SelectStringifiedProps<Model extends string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, QueryParams, OptionComponent>, 'modelValue'> {
55
57
  modelValue: Model | null;
@@ -61,7 +63,6 @@ export interface SelectAsyncProps<Model extends number | string, Data extends De
61
63
  queryParamsOptions: QueryParams;
62
64
  searchField?: keyof QueryParams;
63
65
  previewData?: Data[];
64
- createdData?: Data[];
65
66
  valueQueryKey?: string;
66
67
  }
67
68
  export interface SelectAsyncPrefixProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAE7G,MAAM,MAAM,qBAAqB,CAAC,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;AAEhF,MAAM,WAAW,0BAA0B,CAAC,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC;IACvG,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,oBAAoB,CAAC,EAAE,eAAe,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,G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E,IAAI,CAAA;CACnB"}
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.8.36",
7
+ "version": "0.8.38",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",