@vc-shell/framework 1.0.219 → 1.0.220
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 +14 -0
- package/core/types/index.ts +5 -0
- package/dist/core/types/index.d.ts +5 -0
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +12015 -11760
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/locales/en.json +2 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Fieldset.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputCurrency.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Table.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +0 -12
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts +1 -0
- package/dist/shared/modules/dynamic/composables/useTableTemplates/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +43 -17
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/index.d.ts +1 -0
- package/dist/ui/components/atoms/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +7 -7
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/index.d.ts +2 -0
- package/dist/ui/components/atoms/vc-tooltip/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +41 -0
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +24 -16
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +32 -0
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +21 -21
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +30 -30
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts +26 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +2 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +210 -15
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +42 -3
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +0 -2
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +1 -2
- package/shared/modules/dynamic/components/fields/Button.ts +5 -3
- package/shared/modules/dynamic/components/fields/Fieldset.ts +2 -19
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +14 -1
- package/shared/modules/dynamic/components/fields/Table.ts +39 -6
- package/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.ts +1 -63
- package/shared/modules/dynamic/composables/useTableTemplates/index.ts +2 -0
- package/shared/modules/dynamic/factories/types/index.ts +1 -1
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -1
- package/shared/modules/dynamic/types/index.ts +44 -17
- package/shared/modules/dynamic/types/models.ts +3 -1
- package/ui/components/atoms/index.ts +1 -0
- package/ui/components/atoms/vc-label/vc-label.vue +10 -29
- package/ui/components/atoms/vc-status/vc-status.vue +6 -3
- package/ui/components/atoms/vc-tooltip/index.ts +1 -0
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +57 -0
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +46 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +1 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-add-new/vc-table-add-new.vue +46 -0
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +94 -21
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +6 -2
- package/ui/components/organisms/vc-table/vc-table.vue +153 -69
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAK1D,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,OAAO,OAAO,CAmEtD,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,OAAO,OAAO,CAuBjD,CAAC"}
|
|
@@ -39,6 +39,10 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
39
39
|
};
|
|
40
40
|
index: number;
|
|
41
41
|
}) => any) | undefined;
|
|
42
|
+
onOnAddNewRow?: (() => any) | undefined;
|
|
43
|
+
onOnRowRemove?: ((args: {
|
|
44
|
+
index: number;
|
|
45
|
+
}) => any) | undefined;
|
|
42
46
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[] | undefined) | undefined;
|
|
43
47
|
multiselect?: boolean | undefined;
|
|
44
48
|
totalLabel?: string | undefined;
|
|
@@ -58,7 +62,12 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
58
62
|
stateKey: string;
|
|
59
63
|
selectAll?: boolean | undefined;
|
|
60
64
|
enableItemActions?: boolean | undefined;
|
|
61
|
-
|
|
65
|
+
editing?: boolean | undefined;
|
|
66
|
+
addNewRowButton?: {
|
|
67
|
+
show: boolean;
|
|
68
|
+
title: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
removeRowButton?: boolean | undefined;
|
|
62
71
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
63
72
|
attrs: any;
|
|
64
73
|
slots: Readonly<{
|
|
@@ -66,6 +75,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
66
75
|
[key: `item_${string}`]: (args: {
|
|
67
76
|
item: T;
|
|
68
77
|
cell: ITableColumns;
|
|
78
|
+
index: number;
|
|
69
79
|
}) => any;
|
|
70
80
|
header: (props: any) => any;
|
|
71
81
|
filters: (args: {
|
|
@@ -82,6 +92,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
82
92
|
[key: `item_${string}`]: (args: {
|
|
83
93
|
item: T;
|
|
84
94
|
cell: ITableColumns;
|
|
95
|
+
index: number;
|
|
85
96
|
}) => any;
|
|
86
97
|
header: (props: any) => any;
|
|
87
98
|
filters: (args: {
|
|
@@ -104,6 +115,8 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
104
115
|
value: string | number;
|
|
105
116
|
};
|
|
106
117
|
index: number;
|
|
118
|
+
}) => void) & ((evt: "onAddNewRow") => void) & ((evt: "onRowRemove", args: {
|
|
119
|
+
index: number;
|
|
107
120
|
}) => void);
|
|
108
121
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
109
122
|
props: {
|
|
@@ -133,6 +146,10 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
133
146
|
};
|
|
134
147
|
index: number;
|
|
135
148
|
}) => any) | undefined;
|
|
149
|
+
onOnAddNewRow?: (() => any) | undefined;
|
|
150
|
+
onOnRowRemove?: ((args: {
|
|
151
|
+
index: number;
|
|
152
|
+
}) => any) | undefined;
|
|
136
153
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[] | undefined) | undefined;
|
|
137
154
|
multiselect?: boolean | undefined;
|
|
138
155
|
totalLabel?: string | undefined;
|
|
@@ -152,7 +169,12 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
152
169
|
stateKey: string;
|
|
153
170
|
selectAll?: boolean | undefined;
|
|
154
171
|
enableItemActions?: boolean | undefined;
|
|
155
|
-
|
|
172
|
+
editing?: boolean | undefined;
|
|
173
|
+
addNewRowButton?: {
|
|
174
|
+
show: boolean;
|
|
175
|
+
title: string;
|
|
176
|
+
} | undefined;
|
|
177
|
+
removeRowButton?: boolean | undefined;
|
|
156
178
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
157
179
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
158
180
|
attrs: any;
|
|
@@ -161,6 +183,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
161
183
|
[key: `item_${string}`]: (args: {
|
|
162
184
|
item: T;
|
|
163
185
|
cell: ITableColumns;
|
|
186
|
+
index: number;
|
|
164
187
|
}) => any;
|
|
165
188
|
header: (props: any) => any;
|
|
166
189
|
filters: (args: {
|
|
@@ -177,6 +200,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
177
200
|
[key: `item_${string}`]: (args: {
|
|
178
201
|
item: T;
|
|
179
202
|
cell: ITableColumns;
|
|
203
|
+
index: number;
|
|
180
204
|
}) => any;
|
|
181
205
|
header: (props: any) => any;
|
|
182
206
|
filters: (args: {
|
|
@@ -199,6 +223,8 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
199
223
|
value: string | number;
|
|
200
224
|
};
|
|
201
225
|
index: number;
|
|
226
|
+
}) => void) & ((evt: "onAddNewRow") => void) & ((evt: "onRowRemove", args: {
|
|
227
|
+
index: number;
|
|
202
228
|
}) => void);
|
|
203
229
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
204
230
|
[key: string]: any;
|
|
@@ -231,6 +257,10 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
231
257
|
};
|
|
232
258
|
index: number;
|
|
233
259
|
}) => any) | undefined;
|
|
260
|
+
onOnAddNewRow?: (() => any) | undefined;
|
|
261
|
+
onOnRowRemove?: ((args: {
|
|
262
|
+
index: number;
|
|
263
|
+
}) => any) | undefined;
|
|
234
264
|
itemActionBuilder?: ((item: T) => IActionBuilderResult[] | undefined) | undefined;
|
|
235
265
|
multiselect?: boolean | undefined;
|
|
236
266
|
totalLabel?: string | undefined;
|
|
@@ -250,7 +280,12 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
250
280
|
stateKey: string;
|
|
251
281
|
selectAll?: boolean | undefined;
|
|
252
282
|
enableItemActions?: boolean | undefined;
|
|
253
|
-
|
|
283
|
+
editing?: boolean | undefined;
|
|
284
|
+
addNewRowButton?: {
|
|
285
|
+
show: boolean;
|
|
286
|
+
title: string;
|
|
287
|
+
} | undefined;
|
|
288
|
+
removeRowButton?: boolean | undefined;
|
|
254
289
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
255
290
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
256
291
|
attrs: any;
|
|
@@ -259,6 +294,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
259
294
|
[key: `item_${string}`]: (args: {
|
|
260
295
|
item: T;
|
|
261
296
|
cell: ITableColumns;
|
|
297
|
+
index: number;
|
|
262
298
|
}) => any;
|
|
263
299
|
header: (props: any) => any;
|
|
264
300
|
filters: (args: {
|
|
@@ -275,6 +311,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
275
311
|
[key: `item_${string}`]: (args: {
|
|
276
312
|
item: T;
|
|
277
313
|
cell: ITableColumns;
|
|
314
|
+
index: number;
|
|
278
315
|
}) => any;
|
|
279
316
|
header: (props: any) => any;
|
|
280
317
|
filters: (args: {
|
|
@@ -297,6 +334,8 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
|
|
|
297
334
|
value: string | number;
|
|
298
335
|
};
|
|
299
336
|
index: number;
|
|
337
|
+
}) => void) & ((evt: "onAddNewRow") => void) & ((evt: "onRowRemove", args: {
|
|
338
|
+
index: number;
|
|
300
339
|
}) => void);
|
|
301
340
|
} | undefined;
|
|
302
341
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,QAAQ,EACR,GAAG,EAUJ,MAAM,KAAK,CAAC;AAGb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,QAAQ,EACR,GAAG,EAUJ,MAAM,KAAK,CAAC;AAGb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AAGxC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC;;;;;;;;;;aAguEY,aAAa,EAAE;;;;;;mBA/oES,MAAM;mBAAa,MAAM;;;;;eAE5B;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE;eAAS,MAAM;;;;eAE3D,MAAM;;sCA6oEA,oBAAoB,EAAE,GAAG,SAAS;;;;;;;;;;;;;;;;cAqBzD,MAAM;;;;;cAKR,OAAO;eACN,MAAM;;;;WAUZ,GAAG;;2CA1vE2B,GAAG,KAAK,GAAG;;;kBACG,aAAa;mBAAS,MAAM;cAAO,GAAG;wBAJvE,GAAG,KAAK,GAAG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,GAAG,KAAK,GAAG;;;uBAgEQ,MAAM;uBAAa,MAAM;;;mBAE5B;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE;mBAAS,MAAM;;mBAE3D,MAAM;;;;AAlFrC,wBAywE2E;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.220",
|
|
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.
|
|
64
|
-
"@vc-shell/config-generator": "^1.0.
|
|
65
|
-
"@vc-shell/ts-config": "^1.0.
|
|
63
|
+
"@vc-shell/api-client-generator": "^1.0.220",
|
|
64
|
+
"@vc-shell/config-generator": "^1.0.220",
|
|
65
|
+
"@vc-shell/ts-config": "^1.0.220",
|
|
66
66
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
67
67
|
"sass": "^1.69.6",
|
|
68
68
|
"shx": "^0.3.4",
|
|
@@ -15,9 +15,7 @@ export function useAppSwitcher(): IUseAppSwitcher {
|
|
|
15
15
|
const appsList = ref<AppDescriptor[]>([]);
|
|
16
16
|
|
|
17
17
|
async function getApiClient(): Promise<AppsClient> {
|
|
18
|
-
// const { getAccessToken } = useUser();
|
|
19
18
|
const client = new AppsClient();
|
|
20
|
-
// client.setAuthToken((await getAccessToken()) as string);
|
|
21
19
|
return client;
|
|
22
20
|
}
|
|
23
21
|
|
|
@@ -311,8 +311,7 @@ export function useBladeNavigation(): IUseBladeNavigation {
|
|
|
311
311
|
) as BladeVNode;
|
|
312
312
|
|
|
313
313
|
try {
|
|
314
|
-
|
|
315
|
-
const isPrevented = await closeBlade(1);
|
|
314
|
+
const isPrevented = await closeBlade(0);
|
|
316
315
|
|
|
317
316
|
if (!isPrevented && createdComponent.type?.url) {
|
|
318
317
|
if (hasAccess(blade.permissions)) {
|
|
@@ -31,9 +31,11 @@ export default {
|
|
|
31
31
|
class: unrefNested(props.baseProps).classNames ?? "",
|
|
32
32
|
},
|
|
33
33
|
),
|
|
34
|
-
slots:
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
slots: props.element.content
|
|
35
|
+
? {
|
|
36
|
+
default: () => unref(computed(() => (props.element.content && t(props.element.content)) ?? undefined)),
|
|
37
|
+
}
|
|
38
|
+
: undefined,
|
|
37
39
|
});
|
|
38
40
|
|
|
39
41
|
return h(field.component as Component, mergeProps(field.props, { class: "tw-self-start" }), field.slots);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, toRefs, ExtractPropTypes, toValue } from "vue";
|
|
2
2
|
import componentProps from "./props";
|
|
3
3
|
import * as _ from "lodash-es";
|
|
4
|
-
import {
|
|
4
|
+
import { VcCol, VcRow } from "../../../../../ui/components";
|
|
5
5
|
import { FieldsetSchema } from "../../types";
|
|
6
6
|
import { unrefNested } from "../../helpers/unrefNested";
|
|
7
7
|
|
|
@@ -9,8 +9,6 @@ export default {
|
|
|
9
9
|
name: "Fieldset",
|
|
10
10
|
props: componentProps,
|
|
11
11
|
setup(props: ExtractPropTypes<typeof componentProps> & { element: FieldsetSchema }) {
|
|
12
|
-
const isMobile = inject("isMobile") as Ref<boolean>;
|
|
13
|
-
|
|
14
12
|
const { fields: fieldsetFields } = toRefs(props);
|
|
15
13
|
|
|
16
14
|
return () =>
|
|
@@ -60,21 +58,6 @@ export default {
|
|
|
60
58
|
);
|
|
61
59
|
}),
|
|
62
60
|
]),
|
|
63
|
-
props.element.remove
|
|
64
|
-
? h(VcButton, {
|
|
65
|
-
iconSize: "m",
|
|
66
|
-
icon: "fas fa-times-circle",
|
|
67
|
-
text: true,
|
|
68
|
-
class: {
|
|
69
|
-
"tw-m-2": !isMobile.value,
|
|
70
|
-
"tw-absolute tw-top-0 tw-right-0": isMobile.value,
|
|
71
|
-
"!tw-hidden": arr.length === 1,
|
|
72
|
-
},
|
|
73
|
-
onClick: () => {
|
|
74
|
-
if (props.element.remove?.method) props.bladeContext.scope?.[props.element.remove?.method](index);
|
|
75
|
-
},
|
|
76
|
-
})
|
|
77
|
-
: undefined,
|
|
78
61
|
],
|
|
79
62
|
);
|
|
80
63
|
});
|
|
@@ -7,6 +7,7 @@ import { setModel } from "../../helpers/setters";
|
|
|
7
7
|
import { InputCurrencySchema } from "../../types";
|
|
8
8
|
import { unrefNested } from "../../helpers/unrefNested";
|
|
9
9
|
import { toValue } from "@vueuse/core";
|
|
10
|
+
import { safeIn } from "../../helpers/safeIn";
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: "InputCurrency",
|
|
@@ -16,11 +17,23 @@ export default {
|
|
|
16
17
|
const options =
|
|
17
18
|
toValue(getModel(props.element.options, props.fieldContext ?? {})) ||
|
|
18
19
|
toValue(unref(props.bladeContext.scope)?.[props.element.options]);
|
|
20
|
+
|
|
21
|
+
const contextProperty =
|
|
22
|
+
safeIn("optionProperty", props.element) &&
|
|
23
|
+
props.element.optionProperty &&
|
|
24
|
+
getModel(props.element.optionProperty, props.fieldContext ?? {});
|
|
25
|
+
|
|
26
|
+
const scopedProperty =
|
|
27
|
+
safeIn("optionProperty", props.element) &&
|
|
28
|
+
props.element.optionProperty &&
|
|
29
|
+
props.bladeContext.scope &&
|
|
30
|
+
getModel(props.element.optionProperty, props.bladeContext.scope);
|
|
31
|
+
|
|
19
32
|
const field = InputCurrency({
|
|
20
33
|
props: Object.assign(
|
|
21
34
|
{},
|
|
22
35
|
{
|
|
23
|
-
option: toValue(
|
|
36
|
+
option: toValue(scopedProperty ?? contextProperty),
|
|
24
37
|
optionLabel: props.element.optionLabel,
|
|
25
38
|
optionValue: props.element.optionValue,
|
|
26
39
|
options,
|
|
@@ -7,6 +7,7 @@ import { TableSchema } from "../../types";
|
|
|
7
7
|
import { useI18n } from "vue-i18n";
|
|
8
8
|
import { unrefNested } from "../../helpers/unrefNested";
|
|
9
9
|
import { setModel } from "../../helpers/setters";
|
|
10
|
+
import { safeIn } from "../../helpers/safeIn";
|
|
10
11
|
|
|
11
12
|
type TableItemData = Record<string, any>;
|
|
12
13
|
|
|
@@ -24,15 +25,21 @@ export default {
|
|
|
24
25
|
props: Object.assign(
|
|
25
26
|
{},
|
|
26
27
|
{
|
|
28
|
+
removeRowButton: props.element.removeRowButton?.show,
|
|
29
|
+
addNewRowButton: props.element.addNewRowButton
|
|
30
|
+
? {
|
|
31
|
+
title: computed(() => t(props.element.addNewRowButton?.title ?? "")),
|
|
32
|
+
show: props.element.addNewRowButton.show,
|
|
33
|
+
}
|
|
34
|
+
: undefined,
|
|
27
35
|
header: !!props.element.header,
|
|
28
36
|
footer: !!props.element.footer,
|
|
29
37
|
multiselect: !!props.element.multiselect,
|
|
30
|
-
editable: !!props.element.editable,
|
|
31
38
|
columns: props.element.columns?.map((col) => ({ ...col, title: computed(() => t(col.title)) })),
|
|
32
39
|
items: unrefNested(props.baseProps).modelValue ?? [],
|
|
33
40
|
stateKey: props.element.id,
|
|
34
41
|
class: `!tw-flex-auto ${unrefNested(props.baseProps).classNames ?? ""}`,
|
|
35
|
-
|
|
42
|
+
editing: enableEditComputed.value,
|
|
36
43
|
onOnEditComplete: (data: any) => {
|
|
37
44
|
if (props.fieldContext) {
|
|
38
45
|
setModel({
|
|
@@ -42,6 +49,24 @@ export default {
|
|
|
42
49
|
});
|
|
43
50
|
}
|
|
44
51
|
},
|
|
52
|
+
onOnRowRemove: (data: { index: number }) => {
|
|
53
|
+
if (
|
|
54
|
+
props.element.removeRowButton?.method &&
|
|
55
|
+
props.bladeContext.scope?.[props.element.removeRowButton?.method] &&
|
|
56
|
+
typeof props.bladeContext.scope?.[props.element.removeRowButton?.method] === "function"
|
|
57
|
+
) {
|
|
58
|
+
props.bladeContext.scope?.[props.element.removeRowButton?.method]?.(data.index);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
onOnAddNewRow: () => {
|
|
62
|
+
if (
|
|
63
|
+
props.element.addNewRowButton?.method &&
|
|
64
|
+
props.bladeContext.scope?.[props.element.addNewRowButton?.method] &&
|
|
65
|
+
typeof props.bladeContext.scope?.[props.element.addNewRowButton?.method] === "function"
|
|
66
|
+
) {
|
|
67
|
+
props.bladeContext.scope?.[props.element.addNewRowButton?.method]?.();
|
|
68
|
+
}
|
|
69
|
+
},
|
|
45
70
|
},
|
|
46
71
|
unrefNested(props.baseProps),
|
|
47
72
|
),
|
|
@@ -49,7 +74,12 @@ export default {
|
|
|
49
74
|
...Object.entries(tableTemplates.templateOverrideComponents).reduce(
|
|
50
75
|
(obj, [key, value], index) => {
|
|
51
76
|
obj[`item_${key}`] = (itemData: TableItemData) => {
|
|
52
|
-
return h(unref(value), {
|
|
77
|
+
return h(unref(value), {
|
|
78
|
+
index: itemData.index,
|
|
79
|
+
context: itemData,
|
|
80
|
+
key: `template_override_${props.element.id}_${index}`,
|
|
81
|
+
bladeContext: props.bladeContext,
|
|
82
|
+
});
|
|
53
83
|
};
|
|
54
84
|
|
|
55
85
|
return obj;
|
|
@@ -58,13 +88,16 @@ export default {
|
|
|
58
88
|
),
|
|
59
89
|
notfound: tableTemplates?.notFound
|
|
60
90
|
? (itemData: TableItemData) => h(tableTemplates.notFound as Component, { context: itemData })
|
|
61
|
-
:
|
|
91
|
+
: undefined,
|
|
62
92
|
"mobile-item": tableTemplates?.mobileView
|
|
63
93
|
? (itemData: TableItemData) => h(tableTemplates.mobileView as Component, { context: itemData })
|
|
64
|
-
:
|
|
94
|
+
: undefined,
|
|
65
95
|
empty: tableTemplates?.empty
|
|
66
96
|
? (itemData: TableItemData) => h(tableTemplates.empty as Component, { context: itemData })
|
|
67
|
-
:
|
|
97
|
+
: undefined,
|
|
98
|
+
footer: tableTemplates?.footer
|
|
99
|
+
? (itemData: TableItemData) => h(tableTemplates.footer as Component, { context: itemData })
|
|
100
|
+
: undefined,
|
|
68
101
|
},
|
|
69
102
|
});
|
|
70
103
|
|
|
@@ -96,25 +96,10 @@ export default {
|
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
|
-
remove: {
|
|
100
|
-
description: `Method to call to remove field from the fieldset. When set - activates remove button.
|
|
101
|
-
\nUsed for \`property\`-based fieldsets.
|
|
102
|
-
Allows to remove selected fieldset.
|
|
103
|
-
Method should be defined in the blade \`scope\`.
|
|
104
|
-
\n Argument - \`id\` of the field to remove`,
|
|
105
|
-
table: {
|
|
106
|
-
type: {
|
|
107
|
-
summary: "{ method: string }",
|
|
108
|
-
},
|
|
109
|
-
defaultValue: {
|
|
110
|
-
summary: false,
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
99
|
},
|
|
115
100
|
parameters: {
|
|
116
101
|
componentSubtitle:
|
|
117
|
-
"Fieldset allows displaying sets of any available controls of any nested depth. It allows arranging elements in a grid with a customizable number of columns and aspect ratio that allows to control columns width, the ability to build a grid with multiple rows based on an array of data bound to the fieldset using the property option. It also has visibility state settings
|
|
102
|
+
"Fieldset allows displaying sets of any available controls of any nested depth. It allows arranging elements in a grid with a customizable number of columns and aspect ratio that allows to control columns width, the ability to build a grid with multiple rows based on an array of data bound to the fieldset using the property option. It also has visibility state settings.",
|
|
118
103
|
docs: {
|
|
119
104
|
canvas: {
|
|
120
105
|
sourceState: "none",
|
|
@@ -263,53 +248,6 @@ PropertyBasedFieldsetInTwoColumns.args = {
|
|
|
263
248
|
],
|
|
264
249
|
};
|
|
265
250
|
|
|
266
|
-
export const RemoveField: StoryFn<FieldsetSchema> = (args) => ({
|
|
267
|
-
components: { page },
|
|
268
|
-
setup() {
|
|
269
|
-
const context = reactive({
|
|
270
|
-
item: {
|
|
271
|
-
dataArray: [
|
|
272
|
-
{
|
|
273
|
-
id: 1,
|
|
274
|
-
value: "value1",
|
|
275
|
-
label: "Label 1",
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
id: 2,
|
|
279
|
-
value: "value2",
|
|
280
|
-
label: "Label 2",
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
id: 3,
|
|
284
|
-
value: "value3",
|
|
285
|
-
label: "Label 3",
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
},
|
|
289
|
-
scope: {
|
|
290
|
-
removeField: (id: number) => {
|
|
291
|
-
context.item.dataArray.splice(id, 1);
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
});
|
|
295
|
-
return { args, context };
|
|
296
|
-
},
|
|
297
|
-
template,
|
|
298
|
-
});
|
|
299
|
-
RemoveField.args = {
|
|
300
|
-
property: "dataArray",
|
|
301
|
-
fields: [
|
|
302
|
-
{
|
|
303
|
-
id: "fieldId",
|
|
304
|
-
component: "vc-input",
|
|
305
|
-
label: "{label}",
|
|
306
|
-
placeholder: "Enter text here",
|
|
307
|
-
property: "value",
|
|
308
|
-
},
|
|
309
|
-
],
|
|
310
|
-
remove: { method: "removeField" },
|
|
311
|
-
};
|
|
312
|
-
|
|
313
251
|
export const NestedFieldsetsWithHorizontalSeparator: StoryFn<FieldsetSchema> = (args) => ({
|
|
314
252
|
components: { page },
|
|
315
253
|
setup() {
|
|
@@ -7,6 +7,7 @@ export interface IUseTableTemplates {
|
|
|
7
7
|
mobileView: ConcreteComponent | undefined;
|
|
8
8
|
notFound: ConcreteComponent | undefined;
|
|
9
9
|
empty: ConcreteComponent | undefined;
|
|
10
|
+
footer: ConcreteComponent | undefined;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -18,6 +19,7 @@ export const useTableTemplates = (
|
|
|
18
19
|
mobileView: resolveTemplateComponent("mobileTemplate"),
|
|
19
20
|
notFound: resolveTemplateComponent("notFoundTemplate"),
|
|
20
21
|
empty: resolveTemplateComponent("emptyTemplate"),
|
|
22
|
+
footer: resolveTemplateComponent("footerTemplate"),
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
function resolveTemplateComponent(name: keyof ListContentSchema): ShallowRef<ConcreteComponent> | undefined {
|
|
@@ -94,7 +94,7 @@ export type TListItemClickArgs<Item extends Record<string, any> = Record<string,
|
|
|
94
94
|
> & { item?: Item | undefined };
|
|
95
95
|
|
|
96
96
|
export interface DetailsBaseBladeScope extends BaseBladeScope {
|
|
97
|
-
disabled?: ComputedRef<boolean | undefined> | Ref<boolean | undefined
|
|
97
|
+
disabled?: ComputedRef<boolean | undefined> | Ref<boolean | undefined> | boolean;
|
|
98
98
|
multilanguage?: {
|
|
99
99
|
loading: ComputedRef<boolean>;
|
|
100
100
|
currentLocale: Ref<string>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:width="settings?.width || '50%'"
|
|
8
8
|
:toolbar-items="toolbarComputed"
|
|
9
9
|
:title="title"
|
|
10
|
-
:modified="
|
|
10
|
+
:modified="isBladeEditable ? isFormModified : undefined"
|
|
11
11
|
@close="$emit('close:blade')"
|
|
12
12
|
@expand="$emit('expand:blade')"
|
|
13
13
|
@collapse="$emit('collapse:blade')"
|
|
@@ -149,7 +149,6 @@ export interface ListContentSchema {
|
|
|
149
149
|
multiselect?: boolean;
|
|
150
150
|
header?: boolean;
|
|
151
151
|
footer?: boolean;
|
|
152
|
-
editable?: boolean;
|
|
153
152
|
columns?: (Omit<ITableColumns, "visible"> & {
|
|
154
153
|
id: string;
|
|
155
154
|
title: string;
|
|
@@ -184,6 +183,9 @@ export interface ListContentSchema {
|
|
|
184
183
|
emptyTemplate?: {
|
|
185
184
|
component: string;
|
|
186
185
|
};
|
|
186
|
+
footerTemplate?: {
|
|
187
|
+
component: string;
|
|
188
|
+
};
|
|
187
189
|
}
|
|
188
190
|
export interface FormContentSchema {
|
|
189
191
|
id: string;
|
|
@@ -548,7 +550,7 @@ export interface StatusSchema extends Pick<SchemaBase, "id" | "visibility" | "ho
|
|
|
548
550
|
extend?: boolean;
|
|
549
551
|
/**
|
|
550
552
|
* Status variant.
|
|
551
|
-
* @type {"info" | "warning" | "danger" | "success" | "light-danger"}
|
|
553
|
+
* @type {"info" | "info-dark" | "warning" | "danger" | "success" | "light-danger"}
|
|
552
554
|
*/
|
|
553
555
|
variant?: ComponentProps<typeof VcStatus>["variant"];
|
|
554
556
|
/**
|
|
@@ -830,19 +832,6 @@ export interface FieldsetSchema extends Pick<SchemaBase, "id" | "visibility" | "
|
|
|
830
832
|
* @type {ControlSchema[]}
|
|
831
833
|
*/
|
|
832
834
|
fields: ControlSchema[];
|
|
833
|
-
/**
|
|
834
|
-
* Method to call to remove field from the fieldset. When set - activates remove button.
|
|
835
|
-
*
|
|
836
|
-
* Used for property-based fieldsets.
|
|
837
|
-
*
|
|
838
|
-
* Allows to remove selected fieldset.
|
|
839
|
-
* @description Method should be defined in the blade `scope`.
|
|
840
|
-
* @argument {number} id - id of the field to remove
|
|
841
|
-
* @type {{ method: string }}
|
|
842
|
-
*/
|
|
843
|
-
remove?: {
|
|
844
|
-
method: string;
|
|
845
|
-
};
|
|
846
835
|
}
|
|
847
836
|
|
|
848
837
|
/**
|
|
@@ -867,7 +856,45 @@ export interface SwitchSchema extends Omit<SchemaBase, "placeholder" | "multilan
|
|
|
867
856
|
falseValue?: boolean;
|
|
868
857
|
}
|
|
869
858
|
|
|
870
|
-
export type TableSchema = Omit<ListContentSchema, "filter"> &
|
|
859
|
+
export type TableSchema = Omit<ListContentSchema, "filter"> &
|
|
860
|
+
Pick<SchemaBase, "id" | "property" | "visibility"> & {
|
|
861
|
+
/**
|
|
862
|
+
* Shows button to remove table row.
|
|
863
|
+
* Used when table is in editing mode.
|
|
864
|
+
*/
|
|
865
|
+
removeRowButton?: {
|
|
866
|
+
/**
|
|
867
|
+
* Determines whether the button should be shown or hidden.
|
|
868
|
+
*/
|
|
869
|
+
show: boolean;
|
|
870
|
+
/**
|
|
871
|
+
* Method to be called when the button is clicked.
|
|
872
|
+
* @description Method should be defined in the blade `scope`.
|
|
873
|
+
* @type {string}
|
|
874
|
+
*/
|
|
875
|
+
method: string;
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* Configuration for the add new row button in the table.
|
|
879
|
+
* Used when table is in editing mode.
|
|
880
|
+
*/
|
|
881
|
+
addNewRowButton?: {
|
|
882
|
+
/**
|
|
883
|
+
* The title of the button.
|
|
884
|
+
*/
|
|
885
|
+
title: string;
|
|
886
|
+
/**
|
|
887
|
+
* Determines whether the button should be shown or hidden.
|
|
888
|
+
*/
|
|
889
|
+
show: boolean;
|
|
890
|
+
/**
|
|
891
|
+
* Method to be called when the button is clicked.
|
|
892
|
+
* @description Method should be defined in the blade `scope`.
|
|
893
|
+
* @type {string}
|
|
894
|
+
*/
|
|
895
|
+
method: string;
|
|
896
|
+
};
|
|
897
|
+
};
|
|
871
898
|
|
|
872
899
|
/**
|
|
873
900
|
* Button schema interface.
|
|
@@ -883,7 +910,7 @@ export interface ButtonSchema extends Pick<SchemaBase, "id" | "disabled" | "visi
|
|
|
883
910
|
* Button inner text.
|
|
884
911
|
* @type {string}
|
|
885
912
|
*/
|
|
886
|
-
content
|
|
913
|
+
content?: string;
|
|
887
914
|
/**
|
|
888
915
|
* Small sized button.
|
|
889
916
|
* @type {boolean}
|
|
@@ -177,7 +177,9 @@ export type ISwitch = {
|
|
|
177
177
|
|
|
178
178
|
export type ITable = {
|
|
179
179
|
props: ComponentProps<typeof VcTable> | IControlBaseProps;
|
|
180
|
-
slots: Partial<
|
|
180
|
+
slots: Partial<
|
|
181
|
+
Pick<ComponentSlots<typeof VcTable>, `item_${string}` | "notfound" | "mobile-item" | "empty" | "footer">
|
|
182
|
+
>;
|
|
181
183
|
} & FieldOpts<typeof VcTable>;
|
|
182
184
|
|
|
183
185
|
export type IRating = {
|