@vc-shell/framework 1.0.294 → 1.0.296
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 +13 -0
- package/core/composables/useLanguages/index.ts +2 -6
- package/dist/azuread-QG2x1G6o.js +22 -0
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/external-provider-D18BzFJT.js +4 -0
- package/dist/external-provider.vue_vue_type_script_setup_true_lang-D_rZrOYs.js +34 -0
- package/dist/external-providers-Rh5Kicix.js +4 -0
- package/dist/framework.js +224 -78122
- package/dist/index-CDTR8gR7.js +81801 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/user-dropdown-button/user-dropdown-button.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/package.json +5 -5
- package/shared/components/sign-in/external-provider.vue +1 -9
- package/shared/components/sign-in/external-providers.vue +19 -15
- package/shared/components/user-dropdown-button/user-dropdown-button.vue +5 -0
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +7 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-tooltip.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-tooltip/vc-tooltip.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,SAAS,EAA4B,MAAM,kBAAkB,CAAC;AAI3F,MAAM,WAAW,KAAK;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,M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C,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;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-table-mobile-item.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAKpE,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CACzB;AACD,MAAM,WAAW,SAAS;IAExB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC;;;;;
|
|
1
|
+
{"version":3,"file":"vc-table-mobile-item.vue.d.ts","sourceRoot":"","sources":["../../../../../../../ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAKpE,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CACzB;AACD,MAAM,WAAW,SAAS;IAExB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC;;;;;kCAoiB8B,oBAAoB,EAAE,GAAG,SAAS;WAGxD,MAAM;;;;;;;WAUR,GAAG;;yBA/CoB,GAAG;;;yCA8CjB,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;sCAZ1B,oBAAoB,EAAE,GAAG,SAAS;eAGxD,MAAM;;;;;;;oBASC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBA/CoB,GAAG;;;;;;;;;;;0CAkCF,oBAAoB,EAAE,GAAG,SAAS;mBAGxD,MAAM;;;;;;;wBASC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;6BA/CoB,GAAG;;;;;AA/fjC,wBAmjB2E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.296",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/dompurify": "^3.0.5",
|
|
63
63
|
"@types/quill": "^2.0.14",
|
|
64
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
65
|
-
"@vc-shell/config-generator": "^1.0.
|
|
66
|
-
"@vc-shell/ts-config": "^1.0.
|
|
67
|
-
"@vitejs/plugin-vue": "
|
|
64
|
+
"@vc-shell/api-client-generator": "^1.0.296",
|
|
65
|
+
"@vc-shell/config-generator": "^1.0.296",
|
|
66
|
+
"@vc-shell/ts-config": "^1.0.296",
|
|
67
|
+
"@vitejs/plugin-vue": "5.0.3",
|
|
68
68
|
"cypress-signalr-mock": "^1.5.0",
|
|
69
69
|
"sass": "^1.69.6",
|
|
70
70
|
"shx": "^0.3.4",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="vc-external-provider"
|
|
5
5
|
@click="$emit('signIn')"
|
|
6
6
|
>
|
|
7
|
-
<div class="
|
|
7
|
+
<div class="tw-flex tw-flex-row tw-items-center tw-gap-2">
|
|
8
8
|
<VcImage
|
|
9
9
|
:src="logo"
|
|
10
10
|
class="vc-external-provider__icon"
|
|
@@ -28,11 +28,3 @@ export interface Emits {
|
|
|
28
28
|
defineEmits<Emits>();
|
|
29
29
|
defineProps<Props>();
|
|
30
30
|
</script>
|
|
31
|
-
|
|
32
|
-
<style lang="scss">
|
|
33
|
-
.vc-external-provider {
|
|
34
|
-
&__content {
|
|
35
|
-
@apply tw-flex tw-flex-row tw-items-center tw-gap-2;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="tw-flex tw-justify-center tw-mt-4 tw-flex-wrap tw-gap-2">
|
|
3
3
|
<component
|
|
4
4
|
:is="loadProviderComponent(provider.authenticationType!)"
|
|
5
5
|
v-for="provider in providers"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<script setup lang="ts">
|
|
15
15
|
import { defineProps, defineAsyncComponent } from "vue";
|
|
16
|
-
import type { Component } from "vue";
|
|
16
|
+
import type { Component, AsyncComponentLoader } from "vue";
|
|
17
17
|
import { ExternalSignInProviderInfo } from "../../../core/api/platform";
|
|
18
18
|
|
|
19
19
|
export interface Props {
|
|
@@ -22,18 +22,22 @@ export interface Props {
|
|
|
22
22
|
|
|
23
23
|
defineProps<Props>();
|
|
24
24
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
const components = import.meta.glob("./*.vue");
|
|
26
|
+
|
|
27
|
+
const loadProviderComponent = (providerName: string): Component | null => {
|
|
28
|
+
const componentPath = `./${providerName.toLowerCase()}.vue`;
|
|
29
|
+
const loader: AsyncComponentLoader = components[componentPath];
|
|
30
|
+
|
|
31
|
+
if (loader !== undefined) {
|
|
32
|
+
return defineAsyncComponent({
|
|
33
|
+
loader,
|
|
34
|
+
onError(error) {
|
|
35
|
+
console.error(`Failed to load ${providerName} provider component`, error);
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
console.error(`Component for provider "${providerName}" not found at path "${componentPath}"`);
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
32
42
|
};
|
|
33
43
|
</script>
|
|
34
|
-
|
|
35
|
-
<style lang="scss">
|
|
36
|
-
.vc-external-providers {
|
|
37
|
-
@apply tw-flex tw-justify-center tw-mt-4 tw-flex-wrap tw-gap-2;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
:class="{
|
|
10
10
|
'vc-user-dropdown-button--active': opened,
|
|
11
11
|
'vc-user-dropdown-button--auto-width': disabled,
|
|
12
|
+
'vc-user-dropdown-button--mobile': $isMobile.value,
|
|
12
13
|
}"
|
|
13
14
|
>
|
|
14
15
|
<div
|
|
@@ -183,6 +184,10 @@ const imageHandler = computed(() => {
|
|
|
183
184
|
@apply tw-w-full #{!important};
|
|
184
185
|
}
|
|
185
186
|
|
|
187
|
+
&--mobile {
|
|
188
|
+
@apply tw-h-[var(--app-bar-height)];
|
|
189
|
+
}
|
|
190
|
+
|
|
186
191
|
&--auto-width {
|
|
187
192
|
@apply tw-w-auto;
|
|
188
193
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<slot></slot>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
|
-
<teleport to="
|
|
13
|
+
<teleport :to="`#${appContainer}`">
|
|
14
14
|
<span
|
|
15
15
|
v-if="tooltipVisible && $slots['tooltip']"
|
|
16
16
|
ref="tooltipRef"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
<script lang="ts" setup>
|
|
27
27
|
import { useFloating, shift, Placement, offset as floatingOffset } from "@floating-ui/vue";
|
|
28
|
-
import { ref, watch } from "vue";
|
|
28
|
+
import { getCurrentInstance, ref, watch } from "vue";
|
|
29
29
|
import { useMouseInElement } from "@vueuse/core";
|
|
30
30
|
|
|
31
31
|
export interface Props {
|
|
@@ -54,6 +54,11 @@ const tooltipCompRef = ref<HTMLElement | null>(null);
|
|
|
54
54
|
const tooltipRef = ref<HTMLElement | null>(null);
|
|
55
55
|
const target = ref(null);
|
|
56
56
|
|
|
57
|
+
const instance = getCurrentInstance();
|
|
58
|
+
console.log(instance);
|
|
59
|
+
|
|
60
|
+
const appContainer = instance?.appContext.app._container.id;
|
|
61
|
+
|
|
57
62
|
const { floatingStyles } = useFloating(tooltipCompRef, tooltipRef, {
|
|
58
63
|
placement: props.placement,
|
|
59
64
|
middleware: [floatingOffset(props.offset), shift()],
|
|
@@ -131,7 +131,7 @@ watchDebounced(
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.vc-app-bar {
|
|
134
|
-
@apply tw-relative tw-flex tw-items-center tw-justify-between tw-px-4 tw-z-
|
|
134
|
+
@apply tw-relative tw-flex tw-items-center tw-justify-between tw-px-4 tw-z-50;
|
|
135
135
|
height: var(--app-bar-height);
|
|
136
136
|
background-color: var(--app-bar-background-color);
|
|
137
137
|
box-shadow: var(--app-bar-shadow);
|
package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
class="vc-table-mobile__action"
|
|
34
34
|
:class="`vc-table-mobile__item-action_${leftSwipeActions[0].type}`"
|
|
35
35
|
@click.stop="leftSwipeActions?.[0].clickHandler(items[index] as T, index)"
|
|
36
|
+
@touchstart.stop
|
|
36
37
|
>
|
|
37
38
|
<VcIcon :icon="leftSwipeActions[0].icon" />
|
|
38
39
|
<div class="vc-table-mobile__action-title">
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
v-if="rightSwipeActions && rightSwipeActions.length && direction === 'left'"
|
|
52
53
|
class="vc-table-mobile__swipe-actions vc-table-mobile__swipe-actions_right"
|
|
53
54
|
:style="{ width: actionsWidth }"
|
|
55
|
+
@touchstart.stop
|
|
54
56
|
>
|
|
55
57
|
<div
|
|
56
58
|
v-for="(action, idx) in rightSwipeActions.slice(0, rightSwipeActions.length > 2 ? 1 : 2)"
|