@vc-shell/framework 1.0.294 → 1.0.295
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 +4 -0
- package/core/composables/useLanguages/index.ts +2 -6
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/framework.js +33974 -30298
- package/dist/index.css +1 -1
- package/dist/index.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/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,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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,EAA4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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.295",
|
|
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.295",
|
|
65
|
+
"@vc-shell/config-generator": "^1.0.295",
|
|
66
|
+
"@vc-shell/ts-config": "^1.0.295",
|
|
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",
|
|
@@ -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)"
|