@vc-shell/framework 1.0.92 → 1.0.93

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.
@@ -6,8 +6,10 @@ export declare const VcLabel: {
6
6
  $props: {
7
7
  tooltipIcon?: string;
8
8
  readonly required?: boolean;
9
+ readonly multilanguage?: boolean;
9
10
  style?: unknown;
10
11
  key?: string | number | symbol;
12
+ readonly currentLanguage?: string;
11
13
  ref?: import("vue").VNodeRef;
12
14
  ref_for?: boolean;
13
15
  ref_key?: string;
@@ -68,10 +70,16 @@ export declare const VcLabel: {
68
70
  required: {
69
71
  type: import("vue").PropType<boolean>;
70
72
  };
73
+ multilanguage: {
74
+ type: import("vue").PropType<boolean>;
75
+ };
71
76
  tooltipIcon: {
72
77
  type: import("vue").PropType<string>;
73
78
  default: string;
74
79
  };
80
+ currentLanguage: {
81
+ type: import("vue").PropType<string>;
82
+ };
75
83
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
76
84
  tooltipIcon: string;
77
85
  }, {}, string, {}> & {
@@ -98,10 +106,16 @@ export declare const VcLabel: {
98
106
  required: {
99
107
  type: import("vue").PropType<boolean>;
100
108
  };
109
+ multilanguage: {
110
+ type: import("vue").PropType<boolean>;
111
+ };
101
112
  tooltipIcon: {
102
113
  type: import("vue").PropType<string>;
103
114
  default: string;
104
115
  };
116
+ currentLanguage: {
117
+ type: import("vue").PropType<string>;
118
+ };
105
119
  }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
106
120
  __isFragment?: never;
107
121
  __isTeleport?: never;
@@ -110,10 +124,16 @@ export declare const VcLabel: {
110
124
  required: {
111
125
  type: import("vue").PropType<boolean>;
112
126
  };
127
+ multilanguage: {
128
+ type: import("vue").PropType<boolean>;
129
+ };
113
130
  tooltipIcon: {
114
131
  type: import("vue").PropType<string>;
115
132
  default: string;
116
133
  };
134
+ currentLanguage: {
135
+ type: import("vue").PropType<string>;
136
+ };
117
137
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
118
138
  tooltipIcon: string;
119
139
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-label/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBACV;IACN,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC;QACvB,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC;KACxB,CAAC;CACH,CACF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-label/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBACV;IACN,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC;QACvB,OAAO,EAAE,MAAM,KAAK,EAAE,CAAC;KACxB,CAAC;CACH,CACF,CAAC"}
@@ -1,6 +1,8 @@
1
1
  export interface Props {
2
2
  required?: boolean;
3
3
  tooltipIcon?: string;
4
+ multilanguage?: boolean;
5
+ currentLanguage?: string;
4
6
  }
5
7
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
8
  tooltipIcon: string;
@@ -1 +1 @@
1
- {"version":3,"file":"vc-label.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-label/vc-label.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;;;;;;;;;;AAqJD,wBAA8G;AAE9G,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;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KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC;AACJ,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -13,6 +13,7 @@ export declare const VcEditor: {
13
13
  key?: string | number | symbol;
14
14
  "onUpdate:modelValue"?: (value: string | number | Date) => any;
15
15
  readonly tooltip?: string;
16
+ readonly currentLanguage?: string;
16
17
  readonly placeholder?: string;
17
18
  readonly assetsFolder: string;
18
19
  ref?: import("vue").VNodeRef;
@@ -92,6 +93,9 @@ export declare const VcEditor: {
92
93
  tooltip: {
93
94
  type: import("vue").PropType<string>;
94
95
  };
96
+ currentLanguage: {
97
+ type: import("vue").PropType<string>;
98
+ };
95
99
  placeholder: {
96
100
  type: import("vue").PropType<string>;
97
101
  };
@@ -147,6 +151,9 @@ export declare const VcEditor: {
147
151
  tooltip: {
148
152
  type: import("vue").PropType<string>;
149
153
  };
154
+ currentLanguage: {
155
+ type: import("vue").PropType<string>;
156
+ };
150
157
  placeholder: {
151
158
  type: import("vue").PropType<string>;
152
159
  };
@@ -181,6 +188,9 @@ export declare const VcEditor: {
181
188
  tooltip: {
182
189
  type: import("vue").PropType<string>;
183
190
  };
191
+ currentLanguage: {
192
+ type: import("vue").PropType<string>;
193
+ };
184
194
  placeholder: {
185
195
  type: import("vue").PropType<string>;
186
196
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAG5B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBACX;IACN,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,KAAK,EAAE,CAAC;KACtB,CAAC;CACH,CACF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAG5B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBACX;IACN,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,KAAK,EAAE,CAAC;KACtB,CAAC;CACH,CACF,CAAC"}
@@ -8,6 +8,7 @@ export interface Props {
8
8
  tooltip?: string;
9
9
  errorMessage?: string;
10
10
  assetsFolder: string;
11
+ currentLanguage?: string;
11
12
  }
12
13
  export interface Emits {
13
14
  (event: "update:modelValue", value: string | number | Date | null | undefined): void;
@@ -1 +1 @@
1
- {"version":3,"file":"vc-editor.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-editor/vc-editor.vue.ts"],"names":[],"mappings":"AAGA,OAAO,0CAA0C,CAAC;AAMlD,MAAM,WAAW,KAAK;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AA6GN,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC;AACJ,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,70 +1,126 @@
1
- export declare const VcDynamicProperty: import("vue").DefineComponent<{
2
- disabled: {
3
- type: import("vue").PropType<boolean>;
4
- };
5
- culture: {
6
- type: import("vue").PropType<string>;
7
- default: string;
8
- };
9
- property: {
10
- type: import("vue").PropType<any>;
11
- required: true;
12
- };
13
- dictionaries: {
14
- type: import("vue").PropType<Record<string, unknown>>;
15
- };
16
- getter: {
17
- type: import("vue").PropType<(property: Record<string, any>, isDictionary?: boolean) => string | number | boolean | Date | Record<string, any>>;
18
- required: true;
19
- };
20
- optionsGetter: {
21
- type: import("vue").PropType<(property: Record<string, any>, keyword?: string) => any[] | Promise<any[]>>;
22
- required: true;
23
- };
24
- setter: {
25
- type: import("vue").PropType<(property: Record<string, any>, value: string | number | boolean | Record<string, any>, dictionary?: any[]) => void>;
26
- required: true;
27
- };
28
- displayedValueLabel: {
29
- type: import("vue").PropType<{
30
- value: string;
31
- label: string;
32
- }>;
33
- };
34
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
- disabled: {
36
- type: import("vue").PropType<boolean>;
37
- };
38
- culture: {
39
- type: import("vue").PropType<string>;
40
- default: string;
41
- };
42
- property: {
43
- type: import("vue").PropType<any>;
44
- required: true;
45
- };
46
- dictionaries: {
47
- type: import("vue").PropType<Record<string, unknown>>;
48
- };
49
- getter: {
50
- type: import("vue").PropType<(property: Record<string, any>, isDictionary?: boolean) => string | number | boolean | Date | Record<string, any>>;
51
- required: true;
52
- };
53
- optionsGetter: {
54
- type: import("vue").PropType<(property: Record<string, any>, keyword?: string) => any[] | Promise<any[]>>;
55
- required: true;
56
- };
57
- setter: {
58
- type: import("vue").PropType<(property: Record<string, any>, value: string | number | boolean | Record<string, any>, dictionary?: any[]) => void>;
59
- required: true;
60
- };
61
- displayedValueLabel: {
62
- type: import("vue").PropType<{
63
- value: string;
64
- label: string;
65
- }>;
66
- };
67
- }>>, {
68
- culture: string;
69
- }, {}>;
1
+ export declare const VcDynamicProperty: <T>(__VLS_props: {
2
+ property: T;
3
+ modelValue: any;
4
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
5
+ required: boolean;
6
+ multivalue: boolean;
7
+ valueType: string;
8
+ dictionary: boolean;
9
+ name: string;
10
+ optionsValue?: string;
11
+ optionsLabel?: string;
12
+ displayNames?: {
13
+ name?: string;
14
+ languageCode?: string;
15
+ }[];
16
+ rules?: {
17
+ min: number;
18
+ max: number;
19
+ regex: string;
20
+ };
21
+ disabled?: boolean;
22
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
23
+ props: {
24
+ property: T;
25
+ modelValue: any;
26
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
27
+ required: boolean;
28
+ multivalue: boolean;
29
+ valueType: string;
30
+ dictionary: boolean;
31
+ name: string;
32
+ optionsValue?: string;
33
+ optionsLabel?: string;
34
+ displayNames?: {
35
+ name?: string;
36
+ languageCode?: string;
37
+ }[];
38
+ rules?: {
39
+ min: number;
40
+ max: number;
41
+ regex: string;
42
+ };
43
+ disabled?: boolean;
44
+ };
45
+ expose(exposed: {}): void;
46
+ attrs: any;
47
+ slots: {};
48
+ emit: {
49
+ "update:model-value": [data: {
50
+ readonly property: T;
51
+ readonly value: any;
52
+ readonly dictionary?: any[];
53
+ }];
54
+ };
55
+ }, "slots" | "attrs" | "emit">, __VLS_setup?: {
56
+ props: {
57
+ property: T;
58
+ modelValue: any;
59
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
60
+ required: boolean;
61
+ multivalue: boolean;
62
+ valueType: string;
63
+ dictionary: boolean;
64
+ name: string;
65
+ optionsValue?: string;
66
+ optionsLabel?: string;
67
+ displayNames?: {
68
+ name?: string;
69
+ languageCode?: string;
70
+ }[];
71
+ rules?: {
72
+ min: number;
73
+ max: number;
74
+ regex: string;
75
+ };
76
+ disabled?: boolean;
77
+ };
78
+ expose(exposed: {}): void;
79
+ attrs: any;
80
+ slots: {};
81
+ emit: {
82
+ "update:model-value": [data: {
83
+ readonly property: T;
84
+ readonly value: any;
85
+ readonly dictionary?: any[];
86
+ }];
87
+ };
88
+ }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
89
+ [key: string]: any;
90
+ }> & {
91
+ __ctx?: {
92
+ props: {
93
+ property: T;
94
+ modelValue: any;
95
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
96
+ required: boolean;
97
+ multivalue: boolean;
98
+ valueType: string;
99
+ dictionary: boolean;
100
+ name: string;
101
+ optionsValue?: string;
102
+ optionsLabel?: string;
103
+ displayNames?: {
104
+ name?: string;
105
+ languageCode?: string;
106
+ }[];
107
+ rules?: {
108
+ min: number;
109
+ max: number;
110
+ regex: string;
111
+ };
112
+ disabled?: boolean;
113
+ };
114
+ expose(exposed: {}): void;
115
+ attrs: any;
116
+ slots: {};
117
+ emit: {
118
+ "update:model-value": [data: {
119
+ readonly property: T;
120
+ readonly value: any;
121
+ readonly dictionary?: any[];
122
+ }];
123
+ };
124
+ };
125
+ };
70
126
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA8C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-dynamic-property/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmB,CAAC"}
@@ -1,45 +1,127 @@
1
- export interface Props {
2
- property: any;
3
- dictionaries?: Record<string, unknown>;
4
- getter: (property: Record<string, any>, isDictionary?: boolean) => Record<string, any> | string | number | boolean | Date;
5
- optionsGetter: (property: Record<string, any>, keyword?: string) => Promise<any[] | undefined> | any[];
6
- setter: (property: Record<string, any>, value: Record<string, any> | string | number | boolean, dictionary?: any[]) => void | undefined;
7
- culture?: string;
1
+ declare const _default: <T>(__VLS_props: {
2
+ property: T;
3
+ modelValue: any;
4
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
5
+ required: boolean;
6
+ multivalue: boolean;
7
+ valueType: string;
8
+ dictionary: boolean;
9
+ name: string;
10
+ optionsValue?: string;
11
+ optionsLabel?: string;
12
+ displayNames?: {
13
+ name?: string;
14
+ languageCode?: string;
15
+ }[];
16
+ rules?: {
17
+ min: number;
18
+ max: number;
19
+ regex: string;
20
+ };
8
21
  disabled?: boolean;
9
- /**
10
- * @description Used only with multiple selection **only** in rare cases, where we need to display selection with other value-label pair
11
- */
12
- displayedValueLabel?: {
13
- value: string;
14
- label: string;
22
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
23
+ props: {
24
+ property: T;
25
+ modelValue: any;
26
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
27
+ required: boolean;
28
+ multivalue: boolean;
29
+ valueType: string;
30
+ dictionary: boolean;
31
+ name: string;
32
+ optionsValue?: string;
33
+ optionsLabel?: string;
34
+ displayNames?: {
35
+ name?: string;
36
+ languageCode?: string;
37
+ }[];
38
+ rules?: {
39
+ min: number;
40
+ max: number;
41
+ regex: string;
42
+ };
43
+ disabled?: boolean;
15
44
  };
16
- }
17
- export interface PropertyItem {
18
- alias: string;
19
- }
20
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
21
- culture: string;
22
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
23
- culture: string;
24
- }>>>, {
25
- culture: string;
26
- }, {}>;
27
- export default _default;
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToRuntimeProps<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
45
+ expose(exposed: {}): void;
46
+ attrs: any;
47
+ slots: {};
48
+ emit: {
49
+ "update:model-value": [data: {
50
+ readonly property: T;
51
+ readonly value: any;
52
+ readonly dictionary?: any[];
53
+ }];
54
+ };
55
+ }, "slots" | "attrs" | "emit">, __VLS_setup?: {
56
+ props: {
57
+ property: T;
58
+ modelValue: any;
59
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
60
+ required: boolean;
61
+ multivalue: boolean;
62
+ valueType: string;
63
+ dictionary: boolean;
64
+ name: string;
65
+ optionsValue?: string;
66
+ optionsLabel?: string;
67
+ displayNames?: {
68
+ name?: string;
69
+ languageCode?: string;
70
+ }[];
71
+ rules?: {
72
+ min: number;
73
+ max: number;
74
+ regex: string;
75
+ };
76
+ disabled?: boolean;
77
+ };
78
+ expose(exposed: {}): void;
79
+ attrs: any;
80
+ slots: {};
81
+ emit: {
82
+ "update:model-value": [data: {
83
+ readonly property: T;
84
+ readonly value: any;
85
+ readonly dictionary?: any[];
86
+ }];
87
+ };
88
+ }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
89
+ [key: string]: any;
90
+ }> & {
91
+ __ctx?: {
92
+ props: {
93
+ property: T;
94
+ modelValue: any;
95
+ optionsGetter: (property: T, keyword?: string) => Promise<unknown[]>;
96
+ required: boolean;
97
+ multivalue: boolean;
98
+ valueType: string;
99
+ dictionary: boolean;
100
+ name: string;
101
+ optionsValue?: string;
102
+ optionsLabel?: string;
103
+ displayNames?: {
104
+ name?: string;
105
+ languageCode?: string;
106
+ }[];
107
+ rules?: {
108
+ min: number;
109
+ max: number;
110
+ regex: string;
111
+ };
112
+ disabled?: boolean;
113
+ };
114
+ expose(exposed: {}): void;
115
+ attrs: any;
116
+ slots: {};
117
+ emit: {
118
+ "update:model-value": [data: {
119
+ readonly property: T;
120
+ readonly value: any;
121
+ readonly dictionary?: any[];
122
+ }];
123
+ };
35
124
  };
36
125
  };
37
- type __VLS_WithDefaults<P, D> = {
38
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
39
- default: D[K];
40
- }> : P[K];
41
- };
42
- type __VLS_Prettify<T> = {
43
- [K in keyof T]: T[K];
44
- } & {};
126
+ export default _default;
45
127
  //# sourceMappingURL=vc-dynamic-property.vue.d.ts.map
@@ -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":"AAOA,MAAM,WAAW,KAAK;IAEpB,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,MAAM,EAAE,CAEN,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,YAAY,CAAC,EAAE,OAAO,KAEnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAE5D,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC;IACvG,MAAM,EAAE,CAEN,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAE7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAEtD,UAAU,CAAC,EAAE,GAAG,EAAE,KACf,IAAI,GAAG,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;;;;;;;;AAghBD,wBAAkD;AAElD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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":";;gBAiegB,GAAG;2CACwB,MAAM,KAAK,QAAQ,OAAO,EAAE,CAAC;cAC1D,OAAO;gBACL,OAAO;eACR,MAAM;gBACL,OAAO;UACb,MAAM;mBACG,MAAM;mBACN,MAAM;mBACN;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,EAAE;YACK;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,G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,MAAM,CAAC;aACf;uBACU,OAAO;;6BAOiB,IAAI;eACpC,GAAG;;;;;gCAL6D,GAAG;sCAAwB,GAAG,EAAE;;;;;AA/evG,wBAwfkE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "main": "./dist/framework.mjs",
5
5
  "module": "./dist/framework.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -55,8 +55,8 @@
55
55
  "whatwg-fetch": "^3.6.2"
56
56
  },
57
57
  "devDependencies": {
58
- "@vc-shell/api-client-generator": "^1.0.92",
59
- "@vc-shell/config-generator": "^1.0.92",
58
+ "@vc-shell/api-client-generator": "^1.0.93",
59
+ "@vc-shell/config-generator": "^1.0.93",
60
60
  "@vitejs/plugin-vue": "^4.2.3",
61
61
  "sass": "^1.62.1",
62
62
  "typescript": "~5.0.4",
@@ -1,11 +1,17 @@
1
1
  <template>
2
- <div class="tw-flex tw-flex-nowrap tw-font-bold">
2
+ <div class="tw-flex tw-flex-nowrap tw-font-bold tw-relative">
3
3
  <span><slot></slot></span>
4
4
  <span
5
5
  v-if="required"
6
6
  class="tw-text-[color:var(--label-required-color)] tw-ml-1"
7
7
  >*</span
8
8
  >
9
+ <span
10
+ v-if="multilanguage"
11
+ class="tw-text-[color:var(--app-menu-item-icon-color)] tw-absolute tw-right-0"
12
+ >
13
+ {{ currentLanguage }}
14
+ </span>
9
15
  <span
10
16
  v-if="$slots['tooltip']"
11
17
  class="tw-grow tw-basis-0 tw-ml-1"
@@ -34,6 +40,8 @@ import { ref } from "vue";
34
40
  export interface Props {
35
41
  required?: boolean;
36
42
  tooltipIcon?: string;
43
+ multilanguage?: boolean;
44
+ currentLanguage?: string;
37
45
  }
38
46
 
39
47
  withDefaults(defineProps<Props>(), {
@@ -13,6 +13,8 @@
13
13
  v-if="label"
14
14
  class="tw-mb-2"
15
15
  :required="required"
16
+ :multilanguage="true"
17
+ :current-language="currentLanguage"
16
18
  >
17
19
  <span>{{ label }}</span>
18
20
  <template
@@ -63,10 +65,13 @@ export interface Props {
63
65
  tooltip?: string;
64
66
  errorMessage?: string;
65
67
  assetsFolder: string;
68
+ //languages?: string[];
69
+ currentLanguage?: string;
66
70
  }
67
71
 
68
72
  export interface Emits {
69
73
  (event: "update:modelValue", value: string | number | Date | null | undefined): void;
74
+ //(event: "update:currentLanguage", value: string): void;
70
75
  }
71
76
 
72
77
  const { getAccessToken } = useUser();
@@ -79,19 +84,27 @@ const props = withDefaults(defineProps<Props>(), {
79
84
  const emit = defineEmits<Emits>();
80
85
 
81
86
  const content = ref();
82
- const toolbar = [
83
- { header: 1 },
84
- { header: 2 },
85
- "bold",
86
- "italic",
87
- "underline",
88
- "strike",
89
- "link",
90
- "image",
91
- "blockquote",
92
- { list: "ordered" },
93
- { list: "bullet" },
94
- ];
87
+ const toolbar = {
88
+ container: [
89
+ { header: 1 },
90
+ { header: 2 },
91
+ "bold",
92
+ "italic",
93
+ "underline",
94
+ "strike",
95
+ "link",
96
+ "image",
97
+ "blockquote",
98
+ { list: "ordered" },
99
+ { list: "bullet" },
100
+ //{ language: [props.currentLanguage, ...props.languages.filter((lang) => lang !== props.currentLanguage)] },
101
+ ],
102
+ handlers: {
103
+ // language: function (value: string) {
104
+ // emit("update:currentLanguage", value);
105
+ // },
106
+ },
107
+ };
95
108
 
96
109
  const modules = {
97
110
  name: "imageUploader",
@@ -176,4 +189,12 @@ function isQuillEmpty(value: string) {
176
189
  }
177
190
  }
178
191
  }
192
+
193
+ .ql-language.ql-picker .ql-picker-label:before {
194
+ padding-right: 18px;
195
+ content: attr(data-value);
196
+ }
197
+ .ql-language.ql-picker .ql-picker-item:before {
198
+ content: attr(data-value);
199
+ }
179
200
  </style>