@vc-shell/framework 1.0.308 → 1.0.310
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 +19 -0
- package/core/composables/useMenuService/index.ts +1 -1
- package/dist/{azuread-XQXXe7DR.js → azuread-D_-YSXMY.js} +2 -2
- package/dist/{external-provider-Bj6sr5wW.js → external-provider-CxkqPmUa.js} +1 -1
- package/dist/{external-provider.vue_vue_type_script_setup_true_lang-N_9qnA2f.js → external-provider.vue_vue_type_script_setup_true_lang-BX4frPix.js} +1 -1
- package/dist/external-providers-BjKh317l.js +4 -0
- package/dist/framework.js +1 -1
- package/dist/{index-DiXGJZTe.js → index-1XoCglle.js} +1 -1
- package/dist/{index-7wAr8eXU.js → index-B3u_K2zK.js} +1 -1
- package/dist/{index-l56upCSn.js → index-B7Jhi3-9.js} +1 -1
- package/dist/{index-D6i62YXd.js → index-BDN9lqET.js} +14354 -14330
- package/dist/{index-D_lsbcg9.js → index-BOrRV1c5.js} +1 -1
- package/dist/{index-DlQvzA_5.js → index-BWTJFZEI.js} +1 -1
- package/dist/{index-DOXb6mRH.js → index-BffTZ6x3.js} +1 -1
- package/dist/{index-BN-ke2Py.js → index-CX3KIwQO.js} +1 -1
- package/dist/{index-nrQQIXWQ.js → index-Cn46fOF_.js} +1 -1
- package/dist/{index-DS61rT1N.js → index-D05sdNAU.js} +1 -1
- package/dist/{index-_O4OQq9a.js → index-D6dVOtAa.js} +1 -1
- package/dist/{index-CdtYR_5L.js → index-DjRS4HPL.js} +1 -1
- package/dist/{index-D72iZYij.js → index-DoEMyMXF.js} +1 -1
- package/dist/{index-DTPnUV1v.js → index-DsZA_G22.js} +1 -1
- package/dist/{index-DgxKUbp0.js → index-Dx60WxW_.js} +1 -1
- package/dist/{index-DUU4eFjq.js → index-TfW1-l3Z.js} +1 -1
- package/dist/{index-BtcRw-og.js → index-vXt3fADg.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
- 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/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +1 -1
- package/shared/components/notifications/core/notification.ts +1 -1
- package/shared/components/sidebar/sidebar.vue +1 -1
- package/shared/components/sign-in/useExternalProvider.ts +1 -0
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +3 -3
- package/shared/modules/dynamic/components/fields/StatusField.ts +1 -1
- package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +1 -1
- package/shared/modules/dynamic/components/fields/storybook/SelectField.stories.ts +1 -1
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +10 -6
- package/shared/modules/dynamic/helpers/override.ts +12 -2
- package/shared/modules/dynamic/index.ts +24 -7
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +1 -3
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +32 -4
- package/shared/modules/dynamic/types/index.ts +1 -3
- package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -2
- package/ui/components/molecules/vc-input/vc-input.vue +4 -4
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/organisms/vc-blade/vc-blade.stories.ts +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-base-header/vc-table-base-header.vue +2 -2
- package/ui/components/organisms/vc-table/vc-table.vue +0 -1
- package/dist/external-providers-8XfUoaJG.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-card.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-card/vc-card.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"vc-card.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-card/vc-card.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK3B,wBAgCgC;AAEhC,eAAO,MAAM,QAA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names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,GAAG,EAWH,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAA6C,YAAY,EAAW,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,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;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CACnC,aAAa,GAAG;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CACF,CAAC;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,GAAG,EAWH,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAA6C,YAAY,EAAW,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,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MAAM;;gBAAiB,IAAI;gBAChF,YAAY,UAAU,OAAO,GAAG,IAAI;gBACpC,gBAAgB,QAAQ;gBAAE,OAAO;oBAAE,KAAK,EAAE,MAAM,CAAC;oBAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;iBAAE,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAA;aAAE,GAAG,IAAI;gBAClG,aAAa,GAAG,IAAI;gBACpB,YAAY,QAAQ;gBAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAA;aAAE,GAAG,IAAI;;;;AAjF3E,wBAqrE2E;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.310",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/dompurify": "^3.0.5",
|
|
62
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
63
|
-
"@vc-shell/config-generator": "^1.0.
|
|
64
|
-
"@vc-shell/ts-config": "^1.0.
|
|
62
|
+
"@vc-shell/api-client-generator": "^1.0.310",
|
|
63
|
+
"@vc-shell/config-generator": "^1.0.310",
|
|
64
|
+
"@vc-shell/ts-config": "^1.0.310",
|
|
65
65
|
"@vitejs/plugin-vue": "5.0.3",
|
|
66
66
|
"cypress-signalr-mock": "^1.5.0",
|
|
67
67
|
"sass": "^1.69.6",
|
|
@@ -133,7 +133,7 @@ const useBladeNavigationSingleton = createSharedComposable(() => {
|
|
|
133
133
|
(instance !== null && inject<BladeNavigationPlugin>("bladeNavigationPlugin")) || bladeNavigationInstance;
|
|
134
134
|
const router = navigationInstance?.router;
|
|
135
135
|
|
|
136
|
-
const { parseUrl, parseWorkspaceUrl, getURLQuery
|
|
136
|
+
const { parseUrl, parseWorkspaceUrl, getURLQuery } = utils(router);
|
|
137
137
|
|
|
138
138
|
watch(
|
|
139
139
|
() => route.path,
|
|
@@ -27,6 +27,7 @@ export const useExternalProvider = (): IUseExternalProvider => {
|
|
|
27
27
|
return searchParams.get("returnUrl") || searchParams.get("ReturnUrl");
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
31
|
async function externalSignIn(authenticationType: string, oidcUrl: string) {
|
|
31
32
|
try {
|
|
32
33
|
const origin = window.location.origin;
|
|
@@ -177,7 +177,7 @@ const imageHandler = computed(() => {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.vc-user-dropdown-button {
|
|
180
|
-
@apply tw-
|
|
180
|
+
@apply tw-border-l tw-border-solid tw-border-l-[color:var(--user-dropdown-border-color)] tw-cursor-pointer
|
|
181
181
|
tw-relative tw-flex tw-h-full tw-flex-col tw-select-none;
|
|
182
182
|
|
|
183
183
|
.vc-app_mobile & {
|
|
@@ -193,7 +193,7 @@ const imageHandler = computed(() => {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
&__wrap {
|
|
196
|
-
@apply tw-flex tw-justify-between tw-items-center tw-flex-auto tw-px-4 tw-bg-[--user-dropdown-wrap-bg];
|
|
196
|
+
@apply tw-flex tw-justify-between tw-items-center tw-flex-auto tw-px-4 tw-bg-[--user-dropdown-wrap-bg] tw-gap-3;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
&__avatar {
|
|
@@ -206,7 +206,7 @@ const imageHandler = computed(() => {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
&__info {
|
|
209
|
-
@apply tw-grow tw-basis-0 tw-
|
|
209
|
+
@apply tw-grow tw-basis-0 tw-overflow-hidden;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
&__name {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useI18n } from "vue-i18n";
|
|
2
|
-
import { Component, ExtractPropTypes, computed, h, onMounted, ref, unref
|
|
2
|
+
import { Component, ExtractPropTypes, computed, h, onMounted, ref, unref } from "vue";
|
|
3
3
|
import componentProps from "./props";
|
|
4
4
|
import { StatusSchema } from "../../types";
|
|
5
5
|
import { StatusField } from "../factories";
|
|
@@ -3,7 +3,7 @@ import { MultivalueSchema } from "../../..";
|
|
|
3
3
|
import { SchemaBaseArgTypes } from "./common/args";
|
|
4
4
|
import { template, templateWithVisibilityToggle } from "./common/templates";
|
|
5
5
|
import page from "./pages/DynamicRender";
|
|
6
|
-
import {
|
|
6
|
+
import { reactive, ref } from "vue";
|
|
7
7
|
import { VcIcon } from "../../../../../../ui/components/atoms/vc-icon";
|
|
8
8
|
|
|
9
9
|
const customTemplateComponent = {
|
|
@@ -277,7 +277,7 @@ export const WithAsyncOptions: StoryFn<SelectSchema> = (args) => ({
|
|
|
277
277
|
mockedProperty: null,
|
|
278
278
|
},
|
|
279
279
|
scope: {
|
|
280
|
-
mockedOptionsArray: async (
|
|
280
|
+
mockedOptionsArray: async () =>
|
|
281
281
|
new Promise((resolve) => {
|
|
282
282
|
setTimeout(() => {
|
|
283
283
|
resolve({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComputedRef, MaybeRef,
|
|
1
|
+
import { ComputedRef, MaybeRef, computed, ref, watch } from "vue";
|
|
2
2
|
import * as _ from "lodash-es";
|
|
3
|
-
import { useForm,
|
|
3
|
+
import { useForm, useIsFormValid } from "vee-validate";
|
|
4
4
|
import { useAsync, useLoading } from "../../../../../core/composables";
|
|
5
5
|
import type { ItemId, IValidationState, UseDetails } from "../types";
|
|
6
6
|
import { createUnrefFn } from "@vueuse/core";
|
|
@@ -31,12 +31,12 @@ export const useDetailsFactory = <Item extends { id?: string }>(factoryParams: U
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
const { loading: manageLoading, action: saveChanges } = useAsync<Item, Item | undefined>(async (
|
|
34
|
+
const { loading: manageLoading, action: saveChanges } = useAsync<Item, Item | undefined>(async (itemToSave) => {
|
|
35
35
|
if (validationState.value.valid) {
|
|
36
|
-
const res = await factoryParams.saveChanges?.(
|
|
36
|
+
const res = await factoryParams.saveChanges?.(itemToSave as Item);
|
|
37
37
|
isModified.value = false;
|
|
38
38
|
|
|
39
|
-
const id =
|
|
39
|
+
const id = itemToSave?.id ?? res?.id;
|
|
40
40
|
|
|
41
41
|
if (id) {
|
|
42
42
|
await load({ id });
|
|
@@ -77,7 +77,11 @@ export const useDetailsFactory = <Item extends { id?: string }>(factoryParams: U
|
|
|
77
77
|
watch(
|
|
78
78
|
[() => item, () => itemTemp],
|
|
79
79
|
([state, stateCopy]) => {
|
|
80
|
-
isModified.value = !_.
|
|
80
|
+
isModified.value = !_.isEqualWith(stateCopy.value, state.value, (a, b) => {
|
|
81
|
+
if (a === undefined && b === null) return true;
|
|
82
|
+
if (a === null && b === undefined) return true;
|
|
83
|
+
return undefined; // Use default comparison for other cases
|
|
84
|
+
});
|
|
81
85
|
},
|
|
82
86
|
{ deep: true },
|
|
83
87
|
);
|
|
@@ -20,7 +20,7 @@ export const handleOverrides = (overrides: OverridesSchema, schemaCopy: { [key:
|
|
|
20
20
|
|
|
21
21
|
const upsertHelper = (overrides: OverridesSchema, schemaCopy: { [key: string]: DynamicSchema }) => {
|
|
22
22
|
return Object.entries(schemaCopy).reduce(
|
|
23
|
-
(obj, [
|
|
23
|
+
(obj, [, schema]) => {
|
|
24
24
|
const clonedSchema = _.cloneDeep(schema);
|
|
25
25
|
overrides.upsert
|
|
26
26
|
?.filter((x) => clonedSchema.settings.id === x.id)
|
|
@@ -66,7 +66,17 @@ const upsertHelper = (overrides: OverridesSchema, schemaCopy: { [key: string]: D
|
|
|
66
66
|
_.set(clonedSchema, currentPath, args.value);
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
|
|
70
|
+
const newId = clonedSchema.settings.id;
|
|
71
|
+
|
|
72
|
+
if (newId !== schema.settings.id) {
|
|
73
|
+
obj[newId] = clonedSchema;
|
|
74
|
+
|
|
75
|
+
obj[schema.settings.id] = schema;
|
|
76
|
+
} else {
|
|
77
|
+
obj[schema.settings.id] = clonedSchema;
|
|
78
|
+
}
|
|
79
|
+
|
|
70
80
|
return obj;
|
|
71
81
|
},
|
|
72
82
|
{} as Record<string, DynamicSchema>,
|
|
@@ -129,7 +129,7 @@ const register = (
|
|
|
129
129
|
component: BladeInstanceConstructor as BladeInstanceConstructor,
|
|
130
130
|
name: bladeName,
|
|
131
131
|
model: json,
|
|
132
|
-
composables: args.composables,
|
|
132
|
+
composables: { ...args.composables },
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
registeredModules[bladeName] = newModule;
|
|
@@ -214,11 +214,15 @@ export function createDynamicAppModule(args: {
|
|
|
214
214
|
): void;
|
|
215
215
|
} {
|
|
216
216
|
let schemaCopy: { [key: string]: DynamicSchema } = {};
|
|
217
|
+
let composablesCopy: { [key: string]: (...args: any[]) => any } = args.composables ?? {};
|
|
217
218
|
|
|
218
219
|
if (args.schema && Object.keys(args.schema).length > 0) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
Object.entries(args.schema).forEach(([, schema]) => {
|
|
221
|
+
if (schema.settings && schema.settings.id) {
|
|
222
|
+
schemaCopy[schema.settings.id] = _.cloneDeep(schema);
|
|
223
|
+
registeredSchemas[schema.settings.id] = schemaCopy[schema.settings.id];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
222
226
|
} else {
|
|
223
227
|
// Use registered schemas if new ones are not provided
|
|
224
228
|
schemaCopy = _.cloneDeep({ ...registeredSchemas });
|
|
@@ -246,13 +250,26 @@ export function createDynamicAppModule(args: {
|
|
|
246
250
|
};
|
|
247
251
|
|
|
248
252
|
const moduleUid = _.uniqueId("module_");
|
|
249
|
-
Object.entries(schemaCopy).forEach(([
|
|
253
|
+
Object.entries(schemaCopy).forEach(([, JsonSchema], index) => {
|
|
250
254
|
const bladeId = JsonSchema.settings.id;
|
|
255
|
+
const mixin = args.mixin?.[JsonSchema.settings.id];
|
|
256
|
+
|
|
257
|
+
if (args.overrides) {
|
|
258
|
+
const idsOnOverridesUnique = [...new Set(args.overrides?.upsert?.map((x) => x.id))];
|
|
259
|
+
|
|
260
|
+
composablesCopy = {
|
|
261
|
+
...composablesCopy,
|
|
262
|
+
...Object.values(registeredModules).find((module) => {
|
|
263
|
+
return idsOnOverridesUnique.includes(module.name);
|
|
264
|
+
})?.composables,
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
251
268
|
const registerArgs = {
|
|
252
269
|
app,
|
|
253
270
|
component: bladePages[JsonSchema.settings.component as keyof typeof bladePages] as BladeInstanceConstructor,
|
|
254
|
-
composables: { ...
|
|
255
|
-
mixin
|
|
271
|
+
composables: { ...composablesCopy },
|
|
272
|
+
mixin,
|
|
256
273
|
json: JsonSchema,
|
|
257
274
|
options,
|
|
258
275
|
moduleUid,
|
|
@@ -83,11 +83,10 @@ import {
|
|
|
83
83
|
ConcreteComponent,
|
|
84
84
|
toRefs,
|
|
85
85
|
provide,
|
|
86
|
-
toRef,
|
|
87
86
|
type VNode,
|
|
88
87
|
} from "vue";
|
|
89
88
|
import { DynamicDetailsSchema, FormContentSchema, SettingsSchema } from "../types";
|
|
90
|
-
import { reactiveComputed,
|
|
89
|
+
import { reactiveComputed, toReactive, useMounted, useTemplateRefsList } from "@vueuse/core";
|
|
91
90
|
import {
|
|
92
91
|
DetailsBladeContext,
|
|
93
92
|
DetailsBaseBladeScope,
|
|
@@ -96,7 +95,6 @@ import {
|
|
|
96
95
|
usePopup,
|
|
97
96
|
useBladeNavigation,
|
|
98
97
|
CoreBladeExposed,
|
|
99
|
-
DetailsBladeExposed,
|
|
100
98
|
} from "../../../index";
|
|
101
99
|
import SchemaRender from "../components/SchemaRender";
|
|
102
100
|
import { VcSelect, VcImage } from "../../../../ui/components";
|
|
@@ -176,9 +176,8 @@ import { useFunctions, useNotifications } from "../../../../core/composables";
|
|
|
176
176
|
import { IActionBuilderResult, ITableColumns } from "../../../../core/types";
|
|
177
177
|
import { useToolbarReducer } from "../composables/useToolbarReducer";
|
|
178
178
|
import { notification, useBladeNavigation, usePopup } from "../../../components";
|
|
179
|
-
import {
|
|
179
|
+
import { ListBaseBladeScope, ListBladeContext, UseList } from "../factories/types";
|
|
180
180
|
import { IParentCallArgs } from "../../../index";
|
|
181
|
-
import * as _ from "lodash-es";
|
|
182
181
|
import { reactiveComputed, toReactive, useMounted } from "@vueuse/core";
|
|
183
182
|
import { safeIn } from "../helpers/safeIn";
|
|
184
183
|
|
|
@@ -190,6 +189,7 @@ export interface Props {
|
|
|
190
189
|
model?: DynamicGridSchema;
|
|
191
190
|
composables?: Record<string, (...args: any[]) => Record<string, any>>;
|
|
192
191
|
isWidgetView?: boolean;
|
|
192
|
+
mixinFn?: ((...args: any[]) => any)[];
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
export interface Emits {
|
|
@@ -223,6 +223,7 @@ const selectedItemId = shallowRef();
|
|
|
223
223
|
const sort = shallowRef();
|
|
224
224
|
const selectedIds = shallowRef<string[]>([]);
|
|
225
225
|
const itemsProxy = ref<Record<string, any>[]>();
|
|
226
|
+
const isMixinReady = ref(false);
|
|
226
227
|
|
|
227
228
|
const { moduleNotifications, markAsRead } = useNotifications(settings.value?.pushNotificationType);
|
|
228
229
|
const { setNavigationQuery, getNavigationQuery } = useBladeNavigation();
|
|
@@ -266,7 +267,8 @@ if (typeof props.composables?.[props.model?.settings?.composable ?? ""] === "und
|
|
|
266
267
|
throw new Error(`Composable ( ${props.model?.settings?.composable} ) is not defined`);
|
|
267
268
|
}
|
|
268
269
|
|
|
269
|
-
|
|
270
|
+
// eslint-disable-next-line prefer-const
|
|
271
|
+
let { load, remove, items, loading, pagination, query, scope } = props.composables
|
|
270
272
|
? (props.composables?.[props.model?.settings?.composable ?? ""]({
|
|
271
273
|
emit,
|
|
272
274
|
props,
|
|
@@ -283,6 +285,32 @@ const { load, remove, items, loading, pagination, query, scope } = props.composa
|
|
|
283
285
|
scope: undefined,
|
|
284
286
|
} as unknown as UseList<Record<string, any>[], Record<string, any>, ListBaseBladeScope>);
|
|
285
287
|
|
|
288
|
+
if (props.mixinFn?.length) {
|
|
289
|
+
console.log("props.mixinFn", props.mixinFn);
|
|
290
|
+
const mixinResults = props.mixinFn?.map((mixin) => mixin({ loading, items, scope, load, remove, query }));
|
|
291
|
+
|
|
292
|
+
const mergedResults = mixinResults.reduce((acc, result) => {
|
|
293
|
+
return {
|
|
294
|
+
...acc,
|
|
295
|
+
...result,
|
|
296
|
+
};
|
|
297
|
+
}, {});
|
|
298
|
+
|
|
299
|
+
console.log("mergedResults", mergedResults);
|
|
300
|
+
|
|
301
|
+
loading = mergedResults.loading ?? loading;
|
|
302
|
+
items = mergedResults.items ?? items;
|
|
303
|
+
scope = mergedResults.scope ?? scope;
|
|
304
|
+
load = mergedResults.load ?? load;
|
|
305
|
+
remove = mergedResults.remove ?? remove;
|
|
306
|
+
query = mergedResults.query ?? query;
|
|
307
|
+
// console.log('query', query, mergedResults.query)
|
|
308
|
+
|
|
309
|
+
isMixinReady.value = true;
|
|
310
|
+
} else {
|
|
311
|
+
isMixinReady.value = true;
|
|
312
|
+
}
|
|
313
|
+
|
|
286
314
|
const isBladeEditable = computed(() =>
|
|
287
315
|
"disabled" in toValue(scope || {}) ? !toValue(toValue(scope || {})?.disabled) : false,
|
|
288
316
|
);
|
|
@@ -410,7 +438,7 @@ const toolbarComputed =
|
|
|
410
438
|
[];
|
|
411
439
|
|
|
412
440
|
onBeforeMount(async () => {
|
|
413
|
-
if (props.composables)
|
|
441
|
+
if (props.composables && isMixinReady.value)
|
|
414
442
|
await load({
|
|
415
443
|
sort: sort.value,
|
|
416
444
|
...query.value,
|
|
@@ -10,13 +10,11 @@ import {
|
|
|
10
10
|
VcMultivalue,
|
|
11
11
|
VcRating,
|
|
12
12
|
VcStatus,
|
|
13
|
-
VcVideo,
|
|
14
13
|
VcPagination,
|
|
15
14
|
} from "./../../../../ui/components";
|
|
16
|
-
import {
|
|
15
|
+
import { ITableColumns, IValidationRules, MenuItemConfig } from "../../../../core/types";
|
|
17
16
|
import type { ComponentProps } from "./../../../utilities/vueUtils";
|
|
18
17
|
import VcInputCurrency from "../../../../ui/components/molecules/vc-input-currency/vc-input-currency.vue";
|
|
19
|
-
import { UnwrapRef } from "vue";
|
|
20
18
|
|
|
21
19
|
export type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
22
20
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Meta, StoryFn
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/vue3";
|
|
2
2
|
import { VcCard } from ".";
|
|
3
3
|
import { VcInput, VcCol, VcButton } from "./../../";
|
|
4
|
-
import { h } from "vue";
|
|
5
4
|
|
|
6
5
|
const VARIANT = ["default", "success", "danger"];
|
|
7
6
|
|
|
@@ -511,10 +511,10 @@ function emitValue(val: string | number | Date | null) {
|
|
|
511
511
|
emitValueFn = () => {
|
|
512
512
|
if (mutatedModel.value !== val) {
|
|
513
513
|
let value;
|
|
514
|
-
if (props.type === "number" && val !== null) {
|
|
515
|
-
value = parseFloat(val as string);
|
|
516
|
-
} else if (props.type === "integer" && val !== null) {
|
|
517
|
-
value = Math.trunc(parseInt(val as string));
|
|
514
|
+
if (props.type === "number" && val !== null && val !== undefined) {
|
|
515
|
+
value = val !== "" ? parseFloat(val as string) : null;
|
|
516
|
+
} else if (props.type === "integer" && val !== null && val !== undefined) {
|
|
517
|
+
value = val !== "" ? Math.trunc(parseInt(val as string)) : null;
|
|
518
518
|
} else {
|
|
519
519
|
value = val;
|
|
520
520
|
}
|
|
@@ -132,7 +132,7 @@ export const AsyncOptions: StoryFn<typeof VcSelect> = (args) => ({
|
|
|
132
132
|
components: { VcSelect } as Record<keyof typeof VcSelect, unknown>,
|
|
133
133
|
setup() {
|
|
134
134
|
const val = ref();
|
|
135
|
-
const getItems = async (
|
|
135
|
+
const getItems = async () =>
|
|
136
136
|
new Promise((resolve) => {
|
|
137
137
|
setTimeout(() => {
|
|
138
138
|
resolve({
|
|
@@ -575,7 +575,6 @@ const slots = useSlots();
|
|
|
575
575
|
// template refs
|
|
576
576
|
const reorderRef = ref<HTMLElement | null>();
|
|
577
577
|
const tableRef = ref<HTMLElement | null>();
|
|
578
|
-
const searchInput = ref<HTMLElement | null>();
|
|
579
578
|
|
|
580
579
|
// event listeners
|
|
581
580
|
let columnResizeListener: ((...args: any[]) => any) | null = null;
|