@vc-shell/framework 1.0.138 → 1.0.139
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.
- package/CHANGELOG.md +9 -0
- package/dist/framework.js +3 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.0.139](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.138...v1.0.139) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **shell:** update optionsGetter signature in vc-dynamic-property.vue ([0c71460](https://github.com/VirtoCommerce/vc-shell/commit/0c71460d2d3c785cd5d8fe2b0b58ebc2c3020248))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.0.138](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.137...v1.0.138) (2024-01-08)
|
|
2
11
|
|
|
3
12
|
|
package/dist/framework.js
CHANGED
|
@@ -53637,7 +53637,9 @@ const O_ = I8, $_ = /* @__PURE__ */ Le({
|
|
|
53637
53637
|
async function l(d = void 0) {
|
|
53638
53638
|
if (t.optionsGetter)
|
|
53639
53639
|
try {
|
|
53640
|
-
s.value = !0
|
|
53640
|
+
s.value = !0;
|
|
53641
|
+
const m = await t.optionsGetter(t.property, d, t.currentLanguage);
|
|
53642
|
+
m && (h.value = m);
|
|
53641
53643
|
} finally {
|
|
53642
53644
|
s.value = !1;
|
|
53643
53645
|
}
|
|
@@ -22,7 +22,7 @@ declare const _default: <T extends {
|
|
|
22
22
|
}) => any) | undefined;
|
|
23
23
|
multivalue?: boolean | undefined;
|
|
24
24
|
property: T;
|
|
25
|
-
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
25
|
+
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[] | undefined;
|
|
26
26
|
valueType: string;
|
|
27
27
|
dictionary?: boolean | undefined;
|
|
28
28
|
optionsValue?: string | undefined;
|
|
@@ -62,7 +62,7 @@ declare const _default: <T extends {
|
|
|
62
62
|
}) => any) | undefined;
|
|
63
63
|
multivalue?: boolean | undefined;
|
|
64
64
|
property: T;
|
|
65
|
-
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
65
|
+
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[] | undefined;
|
|
66
66
|
valueType: string;
|
|
67
67
|
dictionary?: boolean | undefined;
|
|
68
68
|
optionsValue?: string | undefined;
|
|
@@ -106,7 +106,7 @@ declare const _default: <T extends {
|
|
|
106
106
|
}) => any) | undefined;
|
|
107
107
|
multivalue?: boolean | undefined;
|
|
108
108
|
property: T;
|
|
109
|
-
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
109
|
+
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[] | undefined;
|
|
110
110
|
valueType: string;
|
|
111
111
|
dictionary?: boolean | undefined;
|
|
112
112
|
optionsValue?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"vc-dynamic-property.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.ts"],"names":[],"mappings":";;;;;UA6ZU,MAAM;gBARA,GAAG;cAEL,OAAO;;;;;;;;;;;wBA/V6B,GAAG;;;;;;2CA8VV,MAAM,WAAW,MAAM,KAAK,QAAQ,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;eAK1F,MAAM;;;;;;;;;WAuBd,GAAG;;;;wBA1XwC,GAAG;;;;yCAyXrC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;cApB/C,MAAM;oBARA,GAAG;kBAEL,OAAO;;;;;;;;;;;4BA/V6B,GAAG;;;;;;+CA8VV,MAAM,WAAW,MAAM,KAAK,QAAQ,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;mBAK1F,MAAM;;;;;;;;;oBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;wBA1XwC,GAAG;;;;;;;;;;kBAqW3C,MAAM;wBARA,GAAG;sBAEL,OAAO;;;;;;;;;;;gCA/V6B,GAAG;;;;;;mDA8VV,MAAM,WAAW,MAAM,KAAK,QAAQ,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;uBAK1F,MAAM;;;;;;;;;wBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;;;4BA1XwC,GAAG;;;;;;AAhDrD,wBA+a2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.139",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"whatwg-fetch": "^3.6.19"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
56
|
-
"@vc-shell/config-generator": "^1.0.
|
|
57
|
-
"@vc-shell/ts-config": "^1.0.
|
|
55
|
+
"@vc-shell/api-client-generator": "^1.0.139",
|
|
56
|
+
"@vc-shell/config-generator": "^1.0.139",
|
|
57
|
+
"@vc-shell/ts-config": "^1.0.139",
|
|
58
58
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
59
59
|
"sass": "^1.69.6",
|
|
60
60
|
"typescript": "5.3.3",
|
|
@@ -206,7 +206,7 @@ const props = withDefaults(
|
|
|
206
206
|
defineProps<{
|
|
207
207
|
property: T;
|
|
208
208
|
modelValue: any;
|
|
209
|
-
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[];
|
|
209
|
+
optionsGetter: (property: T, keyword?: string, locale?: string) => Promise<any[]> | any[] | undefined;
|
|
210
210
|
required: boolean;
|
|
211
211
|
multivalue?: boolean;
|
|
212
212
|
multilanguage?: boolean;
|
|
@@ -308,7 +308,11 @@ async function getOptions(keyword: string | undefined = undefined) {
|
|
|
308
308
|
if (props.optionsGetter) {
|
|
309
309
|
try {
|
|
310
310
|
loading.value = true;
|
|
311
|
-
|
|
311
|
+
const res = await props.optionsGetter(props.property, keyword, props.currentLanguage);
|
|
312
|
+
|
|
313
|
+
if (res) {
|
|
314
|
+
items.value = res;
|
|
315
|
+
}
|
|
312
316
|
} finally {
|
|
313
317
|
loading.value = false;
|
|
314
318
|
}
|