vueless 1.4.7 → 1.4.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/icons/internal/apps.svg +1 -1
- package/icons/internal/calendar_month-fill.svg +1 -1
- package/icons/internal/error.svg +1 -1
- package/icons/internal/info.svg +1 -1
- package/icons/internal/progress_activity.svg +1 -1
- package/icons/internal/search.svg +1 -1
- package/icons/internal/visibility-fill.svg +1 -1
- package/icons/internal/warning.svg +1 -1
- package/icons/storybook/account_circle.svg +1 -1
- package/icons/storybook/cloud_sync.svg +1 -0
- package/icons/storybook/contact_mail.svg +1 -1
- package/icons/storybook/delivery_truck_speed.svg +1 -1
- package/icons/storybook/directions_bike.svg +1 -1
- package/icons/storybook/error.svg +1 -1
- package/icons/storybook/folder.svg +1 -0
- package/icons/storybook/handyman.svg +1 -1
- package/icons/storybook/help.svg +1 -1
- package/icons/storybook/inbox.svg +1 -1
- package/icons/storybook/inbox_customize.svg +1 -1
- package/icons/storybook/info.svg +1 -1
- package/icons/storybook/key.svg +1 -1
- package/icons/storybook/local_shipping.svg +1 -0
- package/icons/storybook/lock.svg +1 -1
- package/icons/storybook/lock_open.svg +1 -1
- package/icons/storybook/notifications.svg +1 -0
- package/icons/storybook/palette.svg +1 -1
- package/icons/storybook/person.svg +1 -1
- package/icons/storybook/person_search.svg +1 -1
- package/icons/storybook/progress_activity.svg +1 -1
- package/icons/storybook/rocket_launch.svg +1 -1
- package/icons/storybook/sentiment_satisfied.svg +1 -1
- package/icons/storybook/timer.svg +1 -1
- package/icons/storybook/travel_explore.svg +1 -1
- package/package.json +33 -32
- package/plugin-vite.js +18 -7
- package/ui.container-accordion/storybook/stories.ts +1 -1
- package/ui.container-accordion-item/storybook/stories.ts +1 -1
- package/ui.container-accordion-item/tests/UAccordionItem.test.ts +4 -2
- package/ui.container-card/storybook/stories.ts +40 -39
- package/ui.container-col/config.ts +4 -2
- package/ui.container-col/tests/UCol.test.ts +24 -16
- package/ui.container-drawer/tests/UDrawer.test.ts +11 -29
- package/ui.container-modal/storybook/stories.ts +2 -2
- package/ui.container-modal/tests/UModal.test.ts +10 -22
- package/ui.container-modal-confirm/storybook/stories.ts +17 -2
- package/ui.container-page/storybook/stories.ts +6 -1
- package/ui.container-row/config.ts +4 -2
- package/ui.container-row/tests/URow.test.ts +24 -16
- package/ui.data-table/UTableRow.vue +2 -2
- package/ui.data-table/storybook/stories.ts +1 -1
- package/ui.form-calendar/tests/UCalendar.test.ts +14 -13
- package/ui.form-calendar/tests/UCalendarDayView.test.ts +15 -16
- package/ui.form-checkbox/UCheckbox.vue +0 -5
- package/ui.form-checkbox/storybook/stories.ts +50 -18
- package/ui.form-checkbox/tests/UCheckbox.test.ts +0 -17
- package/ui.form-checkbox-group/storybook/stories.ts +61 -0
- package/ui.form-date-picker/storybook/stories.ts +87 -37
- package/ui.form-date-picker-range/storybook/stories.ts +91 -38
- package/ui.form-input/storybook/stories.ts +71 -37
- package/ui.form-input-file/storybook/stories.ts +38 -5
- package/ui.form-input-number/storybook/stories.ts +60 -28
- package/ui.form-input-password/storybook/stories.ts +88 -50
- package/ui.form-input-rating/UInputRating.vue +8 -3
- package/ui.form-input-search/storybook/stories.ts +34 -4
- package/ui.form-label/ULabel.vue +0 -6
- package/ui.form-label/storybook/stories.ts +40 -24
- package/ui.form-label/tests/ULabel.test.ts +0 -12
- package/ui.form-listbox/tests/UListbox.test.ts +39 -3
- package/ui.form-radio/URadio.vue +0 -5
- package/ui.form-radio/storybook/stories.ts +60 -25
- package/ui.form-radio/tests/URadio.test.ts +0 -17
- package/ui.form-radio-group/storybook/stories.ts +61 -0
- package/ui.form-select/config.ts +4 -1
- package/ui.form-select/storybook/stories.ts +109 -46
- package/ui.form-switch/storybook/stories.ts +35 -11
- package/ui.form-textarea/storybook/stories.ts +55 -20
- package/ui.loader/tests/ULoader.test.ts +3 -3
- package/ui.navigation-progress/tests/UProgress.test.ts +2 -3
- package/ui.text-block/tests/UText.test.ts +3 -3
- package/ui.text-files/storybook/stories.ts +30 -13
- package/ui.text-header/tests/UHeader.test.ts +3 -3
- package/ui.text-notify/tests/UNotify.test.ts +14 -18
- package/utils/node/helper.js +8 -9
|
@@ -49,9 +49,9 @@ describe("UHeader.vue", () => {
|
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
color === "text"
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const expectedInClass = color === "text" ? "text-default" : color;
|
|
53
|
+
|
|
54
|
+
expect(component.attributes("class")).toContain(expectedInClass);
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -48,35 +48,31 @@ describe("UNotify.vue", () => {
|
|
|
48
48
|
|
|
49
49
|
describe("Props", () => {
|
|
50
50
|
it("X Position – applies the correct xPosition style", async () => {
|
|
51
|
-
|
|
51
|
+
async function mountAndGetPositionStyles(xPosition: Props["xPosition"]) {
|
|
52
|
+
const component = mountWithLocale({ xPosition });
|
|
52
53
|
|
|
53
|
-
for (const position of positions) {
|
|
54
|
-
const component = mountWithLocale({
|
|
55
|
-
xPosition: position as Props["xPosition"],
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// Add a notification to ensure the component is rendered
|
|
59
54
|
dispatchNotifyEvent("notifyStart", mockNotification);
|
|
60
55
|
await component.vm.$nextTick();
|
|
61
56
|
|
|
62
|
-
// Manually trigger setPosition since waitForPageElement won't find the elements in tests
|
|
63
57
|
// @ts-expect-error - Accessing private method for testing
|
|
64
58
|
component.vm.setPosition();
|
|
65
59
|
await component.vm.$nextTick();
|
|
66
60
|
|
|
67
|
-
// Access the internal notifyPositionStyles ref
|
|
68
61
|
// @ts-expect-error - Accessing private property for testing
|
|
69
|
-
|
|
62
|
+
return component.vm.notifyPositionStyles as Record<string, string | undefined>;
|
|
63
|
+
}
|
|
70
64
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
expect(positionStyles).toHaveProperty(position);
|
|
77
|
-
expect(positionStyles[position]).toBe("0px");
|
|
78
|
-
}
|
|
65
|
+
for (const position of ["left", "right"] as const) {
|
|
66
|
+
const positionStyles = await mountAndGetPositionStyles(position);
|
|
67
|
+
|
|
68
|
+
expect(positionStyles).toHaveProperty(position);
|
|
69
|
+
expect(positionStyles[position]).toBe("0px");
|
|
79
70
|
}
|
|
71
|
+
|
|
72
|
+
const centerStyles = await mountAndGetPositionStyles("center");
|
|
73
|
+
|
|
74
|
+
expect(centerStyles).toHaveProperty("left");
|
|
75
|
+
expect(centerStyles.left).toBeDefined();
|
|
80
76
|
});
|
|
81
77
|
|
|
82
78
|
it("Y Position – applies the correct yPosition style", async () => {
|
package/utils/node/helper.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { build as rolldownBuild } from "rolldown";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { cwd } from "node:process";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
@@ -191,21 +191,20 @@ export async function cacheMergedConfigs({ vuelessSrcDir, basePath } = {}) {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Bundles a TypeScript component config to ESM `.mjs` via Rolldown (Oxc transform).
|
|
195
195
|
*
|
|
196
196
|
* @param {string} entryPath - The path to the TypeScript file to be built.
|
|
197
197
|
* @param {string} configOutFile - The output path for the resulting JavaScript file.
|
|
198
198
|
* @return {Promise<void>} A promise that resolves when the build is complete.
|
|
199
199
|
*/
|
|
200
200
|
export async function buildTSFile(entryPath, configOutFile) {
|
|
201
|
-
await
|
|
202
|
-
|
|
203
|
-
outfile: configOutFile,
|
|
204
|
-
bundle: true,
|
|
201
|
+
await rolldownBuild({
|
|
202
|
+
input: entryPath,
|
|
205
203
|
platform: "node",
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
204
|
+
output: {
|
|
205
|
+
file: configOutFile,
|
|
206
|
+
format: "esm",
|
|
207
|
+
},
|
|
209
208
|
});
|
|
210
209
|
}
|
|
211
210
|
|