vueless 1.3.6-beta.6 → 1.3.6-beta.8
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/components.d.ts +1 -0
- package/components.ts +1 -0
- package/constants.d.ts +1 -0
- package/constants.js +1 -0
- package/package.json +2 -2
- package/types.ts +2 -0
- package/ui.button/UButton.vue +1 -1
- package/ui.button/storybook/stories.ts +2 -2
- package/ui.container-card/storybook/stories.ts +2 -2
- package/ui.container-drawer/storybook/stories.ts +2 -2
- package/ui.container-modal/storybook/stories.ts +2 -2
- package/ui.container-modal-confirm/storybook/stories.ts +2 -2
- package/ui.container-page/storybook/stories.ts +3 -3
- package/ui.image-avatar/UAvatar.vue +55 -28
- package/ui.image-avatar/config.ts +18 -1
- package/ui.image-avatar/storybook/docs.mdx +16 -1
- package/ui.image-avatar/storybook/stories.ts +17 -3
- package/ui.image-avatar/tests/UAvatar.test.ts +35 -7
- package/ui.image-avatar/types.ts +13 -0
- package/ui.image-avatar-group/UAvatarGroup.vue +87 -0
- package/ui.image-avatar-group/config.ts +11 -0
- package/ui.image-avatar-group/constants.ts +5 -0
- package/ui.image-avatar-group/storybook/docs.mdx +16 -0
- package/ui.image-avatar-group/storybook/stories.ts +147 -0
- package/ui.image-avatar-group/tests/UAvatarGroup.test.ts +141 -0
- package/ui.image-avatar-group/types.ts +51 -0
- package/ui.navigation-pagination/storybook/stories.ts +2 -2
- package/ui.navigation-tab/tests/UTab.test.ts +2 -3
- package/ui.navigation-tabs/UTabs.vue +44 -1
- package/ui.navigation-tabs/storybook/stories.ts +33 -0
- package/ui.navigation-tabs/tests/UTabs.test.ts +88 -0
- package/ui.text-block/storybook/stories.ts +2 -2
- package/ui.text-notify/UNotify.vue +31 -8
- package/ui.text-notify/config.ts +1 -1
- package/ui.text-notify/tests/UNotify.test.ts +22 -7
|
@@ -59,14 +59,22 @@ describe("UNotify.vue", () => {
|
|
|
59
59
|
dispatchNotifyEvent("notifyStart", mockNotification);
|
|
60
60
|
await component.vm.$nextTick();
|
|
61
61
|
|
|
62
|
-
//
|
|
63
|
-
|
|
62
|
+
// Manually trigger setPosition since waitForPageElement won't find the elements in tests
|
|
63
|
+
// @ts-expect-error - Accessing private method for testing
|
|
64
|
+
component.vm.setPosition();
|
|
65
|
+
await component.vm.$nextTick();
|
|
66
|
+
|
|
67
|
+
// Access the internal notifyPositionStyles ref
|
|
68
|
+
// @ts-expect-error - Accessing private property for testing
|
|
69
|
+
const positionStyles = component.vm.notifyPositionStyles;
|
|
64
70
|
|
|
65
71
|
// For center position, we expect a calculated left value
|
|
66
72
|
if (position === "center") {
|
|
67
|
-
expect(
|
|
73
|
+
expect(positionStyles).toHaveProperty("left");
|
|
74
|
+
expect(positionStyles.left).toBeDefined();
|
|
68
75
|
} else {
|
|
69
|
-
expect(
|
|
76
|
+
expect(positionStyles).toHaveProperty(position);
|
|
77
|
+
expect(positionStyles[position]).toBe("0px");
|
|
70
78
|
}
|
|
71
79
|
}
|
|
72
80
|
});
|
|
@@ -83,10 +91,17 @@ describe("UNotify.vue", () => {
|
|
|
83
91
|
dispatchNotifyEvent("notifyStart", mockNotification);
|
|
84
92
|
await component.vm.$nextTick();
|
|
85
93
|
|
|
86
|
-
//
|
|
87
|
-
|
|
94
|
+
// Manually trigger setPosition since waitForPageElement won't find the elements in tests
|
|
95
|
+
// @ts-expect-error - Accessing private method for testing
|
|
96
|
+
component.vm.setPosition();
|
|
97
|
+
await component.vm.$nextTick();
|
|
98
|
+
|
|
99
|
+
// Access the internal notifyPositionStyles ref
|
|
100
|
+
// @ts-expect-error - Accessing private property for testing
|
|
101
|
+
const positionStyles = component.vm.notifyPositionStyles;
|
|
88
102
|
|
|
89
|
-
expect(
|
|
103
|
+
expect(positionStyles).toHaveProperty(position);
|
|
104
|
+
expect(positionStyles[position]).toBe("0px");
|
|
90
105
|
}
|
|
91
106
|
});
|
|
92
107
|
|