@vc-shell/framework 1.0.229 → 1.0.230

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.
@@ -14,12 +14,12 @@ declare const _default: <T extends {
14
14
  max?: number | undefined;
15
15
  regex?: string | undefined;
16
16
  } | undefined;
17
- property: T;
18
17
  "onUpdate:model-value"?: ((data: {
19
18
  readonly value: any;
20
19
  readonly dictionary?: any[] | undefined;
21
20
  readonly locale?: string | undefined;
22
21
  }) => any) | undefined;
22
+ property: T;
23
23
  multivalue?: boolean | undefined;
24
24
  optionsGetter: (propertyId: string, keyword?: string, locale?: string) => Promise<any[] | undefined> | any[] | undefined;
25
25
  valueType: string;
@@ -52,12 +52,12 @@ declare const _default: <T extends {
52
52
  max?: number | undefined;
53
53
  regex?: string | undefined;
54
54
  } | undefined;
55
- property: T;
56
55
  "onUpdate:model-value"?: ((data: {
57
56
  readonly value: any;
58
57
  readonly dictionary?: any[] | undefined;
59
58
  readonly locale?: string | undefined;
60
59
  }) => any) | undefined;
60
+ property: T;
61
61
  multivalue?: boolean | undefined;
62
62
  optionsGetter: (propertyId: string, keyword?: string, locale?: string) => Promise<any[] | undefined> | any[] | undefined;
63
63
  valueType: string;
@@ -94,12 +94,12 @@ declare const _default: <T extends {
94
94
  max?: number | undefined;
95
95
  regex?: string | undefined;
96
96
  } | undefined;
97
- property: T;
98
97
  "onUpdate:model-value"?: ((data: {
99
98
  readonly value: any;
100
99
  readonly dictionary?: any[] | undefined;
101
100
  readonly locale?: string | undefined;
102
101
  }) => any) | undefined;
102
+ property: T;
103
103
  multivalue?: boolean | undefined;
104
104
  optionsGetter: (propertyId: string, keyword?: string, locale?: string) => Promise<any[] | undefined> | any[] | undefined;
105
105
  valueType: string;
@@ -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":";;;;;UA6bU,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C;CAAG,GAAG,EAAE,CAAC"}
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":";;;;;UA6bU,MAAM;gBAZA,GAAG;cAML,OAAO;;;;;;;;;;wBA3X4B,GAAG;;;;cAoXtC,CAAC;;mBAEI,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACZ,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;eAKxC,MAAM;;;;;;;;;WAuBd,GAAG;;;wBAtZuC,GAAG;;;;yCAqZpC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;cApB/C,MAAM;oBAZA,GAAG;kBAML,OAAO;;;;;;;;;;4BA3X4B,GAAG;;;;kBAoXtC,CAAC;;uBAEI,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACZ,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;mBAKxC,MAAM;;;;;;;;;oBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;wBAtZuC,GAAG;;;;;;;;;;kBAiY1C,MAAM;wBAZA,GAAG;sBAML,OAAO;;;;;;;;;;gCA3X4B,GAAG;;;;sBAoXtC,CAAC;;2BAEI,CACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,KACZ,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,GAAG,SAAS;uBAKxC,MAAM;;;;;;;;;wBAsBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;;4BAtZuC,GAAG;;;;;;AAnDpD,wBA8c2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  }>>> & {
18
18
  onClose?: (() => any) | undefined;
19
19
  }, {
20
- index: number;
21
20
  images: ICommonAsset[];
21
+ index: number;
22
22
  }, {}>;
23
23
  export default _default;
24
24
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.229",
3
+ "version": "1.0.230",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "devDependencies": {
61
61
  "@types/dompurify": "^3.0.5",
62
62
  "@types/quill": "^2.0.14",
63
- "@vc-shell/api-client-generator": "^1.0.229",
64
- "@vc-shell/config-generator": "^1.0.229",
65
- "@vc-shell/ts-config": "^1.0.229",
63
+ "@vc-shell/api-client-generator": "^1.0.230",
64
+ "@vc-shell/config-generator": "^1.0.230",
65
+ "@vc-shell/ts-config": "^1.0.230",
66
66
  "@vitejs/plugin-vue": "^5.0.3",
67
67
  "sass": "^1.69.6",
68
68
  "shx": "^0.3.4",
@@ -15,8 +15,11 @@ export default {
15
15
  setup(props: ExtractPropTypes<typeof componentProps> & { element: InputCurrencySchema }) {
16
16
  return () => {
17
17
  const options =
18
- toValue(getModel(props.element.options, props.fieldContext ?? {})) ||
19
- toValue(unref(props.bladeContext.scope)?.[props.element.options]);
18
+ (safeIn("options", props.element) &&
19
+ props.element.options &&
20
+ (toValue(getModel(props.element.options, props.fieldContext ?? {})) ||
21
+ toValue(unref(props.bladeContext.scope)?.[props.element.options]))) ??
22
+ undefined;
20
23
 
21
24
  const contextProperty =
22
25
  safeIn("optionProperty", props.element) &&
@@ -34,6 +37,7 @@ export default {
34
37
  {},
35
38
  {
36
39
  option: toValue(scopedProperty ?? contextProperty),
40
+ currencyDisplay: props.element.currencyDisplay,
37
41
  optionLabel: props.element.optionLabel,
38
42
  optionValue: props.element.optionValue,
39
43
  options,
@@ -13,6 +13,7 @@ import {
13
13
  } from "./../../../../ui/components";
14
14
  import { ITableColumns, IValidationRules, MenuItemConfig } from "../../../../core/types";
15
15
  import type { ComponentProps } from "./../../../utilities/vueUtils";
16
+ import VcInputCurrency from "../../../../ui/components/molecules/vc-input-currency/vc-input-currency.vue";
16
17
 
17
18
  export type KeysOfUnion<T> = T extends T ? keyof T : never;
18
19
 
@@ -644,7 +645,7 @@ export interface InputCurrencySchema extends Omit<SchemaBase, "multilanguage"> {
644
645
  * List of currency options to be displayed in the dropdown.
645
646
  * @description Array should be defined in the blade `scope`.
646
647
  */
647
- options: string;
648
+ options?: string;
648
649
  /**
649
650
  * Name of property that holds currency value.
650
651
  * @type {string}
@@ -671,6 +672,10 @@ export interface InputCurrencySchema extends Omit<SchemaBase, "multilanguage"> {
671
672
  * Text below control.
672
673
  */
673
674
  hint?: string;
675
+ /**
676
+ * How to show the currency.
677
+ */
678
+ currencyDisplay?: ComponentProps<typeof VcInputCurrency>["currencyDisplay"];
674
679
  }
675
680
 
676
681
  /**