@vc-shell/framework 1.0.314 → 1.0.316
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 +25 -0
- package/dist/{azuread-D_qWdbIb.js → azuread-BEDyfp-B.js} +2 -2
- package/dist/{external-provider-ZB29o5L8.js → external-provider-DcC1zWEO.js} +1 -1
- package/dist/{external-provider.vue_vue_type_script_setup_true_lang-BoZpnPym.js → external-provider.vue_vue_type_script_setup_true_lang-hFbmyZWT.js} +1 -1
- package/dist/external-providers-ooV6TgBS.js +4 -0
- package/dist/framework.js +1 -1
- package/dist/{index-BfP-N8bc.js → index-6F462Mrq.js} +1 -1
- package/dist/{index-CA2rByRm.js → index-AMbx22gV.js} +1 -1
- package/dist/{index-HhaId0N7.js → index-BCwBSU0q.js} +5646 -5631
- package/dist/{index-rS8GCO_i.js → index-BGTS5Q7U.js} +1 -1
- package/dist/{index-DSm8NYdG.js → index-BJ_5CrUU.js} +1 -1
- package/dist/{index-Cwb2WlLw.js → index-BKlPQn8r.js} +1 -1
- package/dist/{index-Ch4PSjU6.js → index-BbfER0VL.js} +1 -1
- package/dist/{index-Cx8k449a.js → index-COuMdMeQ.js} +1 -1
- package/dist/{index-iJRTNnoF.js → index-CSSjUHre.js} +1 -1
- package/dist/{index-CrPpCQbY.js → index-CZdHpD3e.js} +1 -1
- package/dist/{index-DAAdxMve.js → index-DGBgF-kf.js} +1 -1
- package/dist/{index-lGwHOLBK.js → index-Dgg3HMbU.js} +1 -1
- package/dist/{index-CgTxEsoB.js → index-DnZAnO6v.js} +1 -1
- package/dist/{index-tlaj1xQS.js → index-Dv2ufjAS.js} +1 -1
- package/dist/{index-Cx4hwvEp.js → index-VTtDxdEo.js} +1 -1
- package/dist/{index-CTrW6zct.js → index-pU2xkDC8.js} +1 -1
- package/dist/{index-Dmdb9CjG.js → index-z96MJ7sA.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/shared/components/sidebar/sidebar.vue.d.ts +5 -1
- package/dist/shared/components/sidebar/sidebar.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/SchemaRender.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/sidebar/sidebar.vue +13 -9
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +37 -0
- package/shared/modules/dynamic/components/SchemaRender.ts +2 -6
- package/ui/components/molecules/vc-input/vc-input.vue +1 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +7 -0
- package/dist/external-providers-BTfiGYYz.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-multivalue.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-multivalue/vc-multivalue.vue.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IAChD,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vc-multivalue.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-multivalue/vc-multivalue.vue.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,M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
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.316",
|
|
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.316",
|
|
63
|
+
"@vc-shell/config-generator": "^1.0.316",
|
|
64
|
+
"@vc-shell/ts-config": "^1.0.316",
|
|
65
65
|
"@vitejs/plugin-vue": "5.0.3",
|
|
66
66
|
"cypress-signalr-mock": "^1.5.0",
|
|
67
67
|
"sass": "^1.69.6",
|
|
@@ -19,14 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
]"
|
|
21
21
|
>
|
|
22
|
-
<slot
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@click.stop="$emit('close')"
|
|
28
|
-
></VcIcon>
|
|
29
|
-
</div>
|
|
22
|
+
<slot
|
|
23
|
+
name="header"
|
|
24
|
+
:header="header"
|
|
25
|
+
>
|
|
26
|
+
<component :is="header" />
|
|
30
27
|
</slot>
|
|
31
28
|
|
|
32
29
|
<slot name="content"></slot>
|
|
@@ -38,6 +35,9 @@
|
|
|
38
35
|
</template>
|
|
39
36
|
|
|
40
37
|
<script lang="ts" setup>
|
|
38
|
+
import { h } from "vue";
|
|
39
|
+
import { VcIcon } from "../../../ui/components";
|
|
40
|
+
|
|
41
41
|
export interface Props {
|
|
42
42
|
position?: "left" | "right";
|
|
43
43
|
render: "always" | "mobile" | "desktop";
|
|
@@ -48,12 +48,16 @@ export interface Emits {
|
|
|
48
48
|
(event: "close"): void;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
defineEmits<Emits>();
|
|
51
|
+
const emit = defineEmits<Emits>();
|
|
52
52
|
|
|
53
53
|
withDefaults(defineProps<Props>(), {
|
|
54
54
|
position: "right",
|
|
55
55
|
render: "always",
|
|
56
56
|
});
|
|
57
|
+
|
|
58
|
+
const header = h("div", { class: "sidebar__header" }, [
|
|
59
|
+
h(VcIcon, { icon: "fas fa-times", size: "xl", onClick: () => emit("close") }),
|
|
60
|
+
]);
|
|
57
61
|
</script>
|
|
58
62
|
|
|
59
63
|
<style lang="scss">
|
|
@@ -76,6 +76,35 @@
|
|
|
76
76
|
render="mobile"
|
|
77
77
|
@close="toggle"
|
|
78
78
|
>
|
|
79
|
+
<template #header="{ header }">
|
|
80
|
+
<div class="vc-user-dropdown-button__header-wrap">
|
|
81
|
+
<div class="vc-user-dropdown-button__header">
|
|
82
|
+
<div
|
|
83
|
+
v-if="avatarUrl"
|
|
84
|
+
class="vc-user-dropdown-button__avatar"
|
|
85
|
+
:style="imageHandler"
|
|
86
|
+
></div>
|
|
87
|
+
<VcIcon
|
|
88
|
+
v-else
|
|
89
|
+
icon="fas fa-user-circle"
|
|
90
|
+
size="xxl"
|
|
91
|
+
class="vc-user-dropdown-button__icon"
|
|
92
|
+
/>
|
|
93
|
+
<div class="vc-user-dropdown-button__info">
|
|
94
|
+
<div class="vc-user-dropdown-button__name">
|
|
95
|
+
{{ name || user?.userName }}
|
|
96
|
+
</div>
|
|
97
|
+
<div class="vc-user-dropdown-button__role">
|
|
98
|
+
{{
|
|
99
|
+
(role && $t(`SHELL.USER.ROLE.${role}`)) ||
|
|
100
|
+
(user?.isAdministrator ? $t("SHELL.USER.ROLE.ADMINISTRATOR") : "")
|
|
101
|
+
}}
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
<component :is="header" />
|
|
106
|
+
</div>
|
|
107
|
+
</template>
|
|
79
108
|
<template #content>
|
|
80
109
|
<div
|
|
81
110
|
v-if="menu && opened"
|
|
@@ -228,6 +257,14 @@ const imageHandler = computed(() => {
|
|
|
228
257
|
@apply tw-flex tw-justify-between tw-items-center tw-flex-auto tw-px-4 tw-bg-[--user-dropdown-wrap-bg] tw-gap-3;
|
|
229
258
|
}
|
|
230
259
|
|
|
260
|
+
&__header {
|
|
261
|
+
@apply tw-flex tw-justify-between tw-items-center tw-px-3 tw-py-3 tw-bg-[--user-dropdown-wrap-bg] tw-gap-3;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&__header-wrap {
|
|
265
|
+
@apply tw-flex tw-justify-between tw-items-center;
|
|
266
|
+
}
|
|
267
|
+
|
|
231
268
|
&__avatar {
|
|
232
269
|
@apply tw-rounded-full tw-overflow-hidden tw-w-[34px] tw-h-[34px] tw-bg-[color:var(--user-dropdown-account-info-role-color)]
|
|
233
270
|
tw-bg-cover tw-bg-center tw-shrink-0;
|
|
@@ -54,17 +54,13 @@ export default defineComponent({
|
|
|
54
54
|
watch(
|
|
55
55
|
() => props.modelValue,
|
|
56
56
|
(newVal) => {
|
|
57
|
-
|
|
58
|
-
Object.assign(internalFormData, toRefs(newVal));
|
|
59
|
-
}
|
|
57
|
+
Object.assign(internalFormData, toRefs(newVal));
|
|
60
58
|
},
|
|
61
59
|
{ deep: true, immediate: true },
|
|
62
60
|
);
|
|
63
61
|
|
|
64
62
|
function updateFormData(newVal: ToRefs<unknown>) {
|
|
65
|
-
|
|
66
|
-
ctx.emit("update:modelValue", unrefNested(newVal));
|
|
67
|
-
}
|
|
63
|
+
ctx.emit("update:modelValue", unrefNested(newVal));
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
return () =>
|
|
@@ -490,7 +490,7 @@ function onKeyDown(e: KeyboardEvent) {
|
|
|
490
490
|
const keypressed = e.key;
|
|
491
491
|
|
|
492
492
|
if (props.type === "number" || props.type === "integer") {
|
|
493
|
-
if (keypressed === "-" || keypressed === "e") {
|
|
493
|
+
if (keypressed === "-" || keypressed === "e" || keypressed === "+") {
|
|
494
494
|
e.preventDefault();
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -278,6 +278,13 @@ const internalTypeComputed = computed({
|
|
|
278
278
|
function onKeyDown(e: KeyboardEvent) {
|
|
279
279
|
const allowedKeys = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Enter"];
|
|
280
280
|
const keypressed = e.key;
|
|
281
|
+
|
|
282
|
+
if (props.type === "number" || props.type === "integer") {
|
|
283
|
+
if (keypressed === "-" || keypressed === "e" || keypressed === "+") {
|
|
284
|
+
e.preventDefault();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
281
288
|
if (props.type === "integer") {
|
|
282
289
|
if (!/^\d$/.test(keypressed) && !allowedKeys.includes(keypressed)) {
|
|
283
290
|
e.preventDefault();
|