eco-vue-js 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
38
38
  hidePrefix?: boolean | undefined;
39
39
  allowCreate?: boolean | undefined;
40
40
  previewData?: Data[] | undefined;
41
+ createdData?: Data[] | undefined;
41
42
  valueQueryKey?: string | undefined;
42
43
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
43
44
  attrs: any;
@@ -108,6 +109,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
108
109
  hidePrefix?: boolean | undefined;
109
110
  allowCreate?: boolean | undefined;
110
111
  previewData?: Data[] | undefined;
112
+ createdData?: Data[] | undefined;
111
113
  valueQueryKey?: string | undefined;
112
114
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
113
115
  expose(exposed: import("vue").ShallowUnwrapRef<{
@@ -182,6 +184,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
182
184
  hidePrefix?: boolean | undefined;
183
185
  allowCreate?: boolean | undefined;
184
186
  previewData?: Data[] | undefined;
187
+ createdData?: Data[] | undefined;
185
188
  valueQueryKey?: string | undefined;
186
189
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
187
190
  expose(exposed: import("vue").ShallowUnwrapRef<{
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA2GA;AAEA,OAAO,EAA0B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YA2b/C,MAAM;;;;;;gBADF,KAAK,EAAE;0BA4BE,IAAI,KAAK,KAAK;;;;;;;;;;;;;iBAxBtB,WAAW;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;gBAQL,IAAI;;;;;;;;;;;;WA0BtC,GAAG;;yBAzUQ,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,CAAC;gBAAC,KAAK,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAvFjG,QAAQ,QAAQ,KAAK,GAAG,IAAI;gBAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;gBAC9B,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;gBAC1C,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AA/D3C,wBAie2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -34,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  icon: { default: void 0 },
35
35
  mono: { type: Boolean },
36
36
  previewData: { default: void 0 },
37
+ createdData: { default: void 0 },
37
38
  hideOptionIcon: { type: Boolean },
38
39
  valueGetter: { type: Function, default: (data) => data.id },
39
40
  valueQueryKey: { default: "id__in" }
@@ -145,6 +146,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
145
146
  "option-component": _ctx.optionComponent,
146
147
  "disable-clear": _ctx.disableClear,
147
148
  "preview-data": _ctx.previewData,
149
+ "created-data": _ctx.createdData,
148
150
  "value-getter": _ctx.valueGetter ?? ((item) => item.id),
149
151
  "value-query-key": _ctx.valueQueryKey,
150
152
  onUnselect: unselect,
@@ -163,7 +165,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
165
  })
164
166
  ]),
165
167
  _: 3
166
- }, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear", "preview-data", "value-getter", "value-query-key"])) : createCommentVNode("", true)
168
+ }, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear", "preview-data", "created-data", "value-getter", "value-query-key"])) : createCommentVNode("", true)
167
169
  ]),
168
170
  content: withCtx(() => [
169
171
  createVNode(_sfc_main$3, {
@@ -35,6 +35,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
35
35
  "onCreate:option"?: ((value: string) => any) | undefined;
36
36
  allowCreate?: boolean | undefined;
37
37
  previewData?: Data | undefined;
38
+ createdData?: Data | undefined;
38
39
  valueQueryKey?: string | undefined;
39
40
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
40
41
  attrs: any;
@@ -90,6 +91,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
90
91
  "onCreate:option"?: ((value: string) => any) | undefined;
91
92
  allowCreate?: boolean | undefined;
92
93
  previewData?: Data | undefined;
94
+ createdData?: Data | undefined;
93
95
  valueQueryKey?: string | undefined;
94
96
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
95
97
  expose(exposed: import("vue").ShallowUnwrapRef<{
@@ -149,6 +151,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
149
151
  "onCreate:option"?: ((value: string) => any) | undefined;
150
152
  allowCreate?: boolean | undefined;
151
153
  previewData?: Data | undefined;
154
+ createdData?: Data | undefined;
152
155
  valueQueryKey?: string | undefined;
153
156
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
154
157
  expose(exposed: import("vue").ShallowUnwrapRef<{
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAyDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAwNrD,MAAM;;;;;gBADF,KAAK,GAAG,IAAI;0BA2BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;iBAvBtB,WAAW;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;gBAQL,IAAI;;;;;;;;;;WAyBpC,GAAG;;;;;;YA3DmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,KAAK,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BAQL,IAAI;;;;;;;;;;;WA0BpC,GAAG;;;;;;YA5DmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;YAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;OA8M4B,IAAI;;;gBAnCjE,MAAM;;;;;oBADF,KAAK,GAAG,IAAI;8BA4BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;qBAxBtB,WAAW;oBAFZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;;;;;oBAQL,IAAI;;;;;;;;;;;;;SAyB4B,IAAI;WACpE,GAAG;;;;;;YA5DmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;YAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA2KjC,MAAM;;;;;wBADF,KAAK,GAAG,IAAI;kCA4BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;yBAxBtB,WAAW;wBAFZ,kBAAkB,IAAI,CAAC;mCACZ,OAAO,KAAK,OAAO;;;;;wBAQL,IAAI;;;;;;;;;;;;;aAyB4B,IAAI;eACpE,GAAG;;;;;;gBA5DmB,GAAG;2BACJ,GAAG;;;gBAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;gBAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AA1C3C,wBA8P2E"}
@@ -30,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  mono: { type: Boolean },
31
31
  allowClear: { type: Boolean },
32
32
  previewData: {},
33
+ createdData: {},
33
34
  hideOptionIcon: { type: Boolean },
34
35
  valueGetter: { type: Function },
35
36
  valueQueryKey: {}
@@ -85,6 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
86
  mono: _ctx.mono,
86
87
  "disable-clear": !_ctx.allowClear,
87
88
  "preview-data": _ctx.previewData ? [_ctx.previewData] : void 0,
89
+ "created-data": _ctx.createdData ? [_ctx.createdData] : void 0,
88
90
  "hide-option-icon": _ctx.hideOptionIcon,
89
91
  "value-getter": _ctx.valueGetter,
90
92
  "value-query-key": _ctx.valueQueryKey,
@@ -110,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
112
  ]),
111
113
  key: "0"
112
114
  } : void 0
113
- ]), 1032, ["model-value", "search", "title", "mobile-title", "description", "loading", "max-search-length", "empty-stub", "query-params", "use-query-fn", "is-invalid-page", "option-component", "readonly", "disabled", "skeleton", "allow-create", "error-message", "has-changes", "placeholder", "search-size", "required", "no-margin", "icon", "mono", "disable-clear", "preview-data", "hide-option-icon", "value-getter", "value-query-key"])
115
+ ]), 1032, ["model-value", "search", "title", "mobile-title", "description", "loading", "max-search-length", "empty-stub", "query-params", "use-query-fn", "is-invalid-page", "option-component", "readonly", "disabled", "skeleton", "allow-create", "error-message", "has-changes", "placeholder", "search-size", "required", "no-margin", "icon", "mono", "disable-clear", "preview-data", "created-data", "hide-option-icon", "value-getter", "value-query-key"])
114
116
  ]);
115
117
  };
116
118
  }
@@ -15,6 +15,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
15
15
  disableClear?: boolean | undefined;
16
16
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
17
17
  previewData?: Data[] | undefined;
18
+ createdData?: Data[] | undefined;
18
19
  valueQueryKey: string;
19
20
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
20
21
  attrs: any;
@@ -51,6 +52,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
51
52
  disableClear?: boolean | undefined;
52
53
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
53
54
  previewData?: Data[] | undefined;
55
+ createdData?: Data[] | undefined;
54
56
  valueQueryKey: string;
55
57
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
56
58
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -91,6 +93,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
91
93
  disableClear?: boolean | undefined;
92
94
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
93
95
  previewData?: Data[] | undefined;
96
+ createdData?: Data[] | undefined;
94
97
  valueQueryKey: string;
95
98
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
96
99
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AA2CA;AAEA,OAAO,EAAuB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;;gBAoN3D,KAAK,EAAE;yBAME,IAAI,KAAK,KAAK;;gBAPvB,kBAAkB,IAAI,CAAC;;gBAIE,IAAI;;;;;;;mBAI1B,MAAM;;WAQhB,GAAG;;2BA1LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAdxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;yCAqMhC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;oBAd3C,KAAK,EAAE;6BAME,IAAI,KAAK,KAAK;;oBAPvB,kBAAkB,IAAI,CAAC;;oBAIE,IAAI;;;;;;;uBAI1B,MAAM;;oBAOP,OAAO,KAAK,EAAE,gBAAg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,IAAI;gBAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;gBACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;;;AAxBhD,wBAoO2E"}
@@ -18,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  optionComponent: {},
19
19
  disableClear: { type: Boolean },
20
20
  previewData: {},
21
+ createdData: {},
21
22
  valueGetter: { type: Function },
22
23
  valueQueryKey: {}
23
24
  },
@@ -43,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
44
  loading: _ctx.loading,
44
45
  disabled: _ctx.disabled,
45
46
  "preview-data": _ctx.previewData,
47
+ "created-data": _ctx.createdData,
46
48
  "value-getter": _ctx.valueGetter,
47
49
  onUnselect: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("unselect", $event)),
48
50
  "onUpdate:fetching": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:fetching", $event))
@@ -54,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
56
  })
55
57
  ]),
56
58
  _: 3
57
- }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data", "value-getter"]),
59
+ }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data", "created-data", "value-getter"]),
58
60
  _ctx.modelValue.length > PAGE_LENGTH ? (openBlock(), createElementBlock("div", _hoisted_1, [
59
61
  createElementVNode("div", null, "... " + toDisplayString(unref(numberFormatter).format(_ctx.modelValue.length)) + " items", 1),
60
62
  !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
@@ -15,6 +15,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
15
15
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
16
16
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
17
17
  previewData?: Data[] | undefined;
18
+ createdData?: Data[] | undefined;
18
19
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
19
20
  attrs: any;
20
21
  slots: Readonly<{
@@ -50,6 +51,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
50
51
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
51
52
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
52
53
  previewData?: Data[] | undefined;
54
+ createdData?: Data[] | undefined;
53
55
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
54
56
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
55
57
  attrs: any;
@@ -89,6 +91,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
89
91
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
90
92
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
91
93
  previewData?: Data[] | undefined;
94
+ createdData?: Data[] | undefined;
92
95
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
93
96
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
94
97
  attrs: any;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAwDA;AAEA,OAAO,EAAyB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;yBA4OpD,IAAI,KAAK,KAAK;;iBANtB,WAAW;gBADZ,kBAAkB,IAAI,CAAC;;gBAIE,IAAI;;;;;;;;;WAWpC,GAAG;;2BA7LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,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BAA1C;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;gBAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;AArB9C,wBAuP2E"}
@@ -13,6 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  optionComponent: {},
14
14
  disableClear: { type: Boolean },
15
15
  previewData: {},
16
+ createdData: {},
16
17
  valueGetter: { type: Function }
17
18
  },
18
19
  emits: ["unselect", "update:pages-count", "update:fetching"],
@@ -41,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
42
  emit("update:fetching", false);
42
43
  });
43
44
  return (_ctx, _cache) => {
44
- return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.previewData ?? unref(data)?.results, (option) => {
45
+ return openBlock(true), createElementBlock(Fragment, null, renderList([..._ctx.createdData ?? [], ..._ctx.previewData ?? unref(data)?.results ?? []], (option) => {
45
46
  return openBlock(), createElementBlock("div", {
46
47
  key: _ctx.valueGetter(option),
47
48
  class: normalizeClass(["relative flex overflow-hidden items-center text-description", {
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.4.5",
7
+ "version": "0.4.6",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",