vlite3 1.2.10 → 1.2.12
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/CategoryManager/CategoryManager.vue.js +1 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/components/Dropdown/Dropdown.vue.js +17 -15
- package/components/Form/Form.vue.d.ts +1 -0
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +29 -28
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +1 -1
- package/components/ImportData/ImportStep2.vue.js +6 -6
- package/components/Kanban/Kanban.vue.js +1 -1
- package/components/Kanban/Kanban.vue2.js +1 -1
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +17 -17
- package/components/Label.vue.js +4 -4
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +1 -1
- package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +1 -1
- package/components/PermissionMatrix/PermissionMatrix.vue.js +1 -1
- package/components/PermissionMatrix/PermissionMatrix.vue2.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +34 -31
- package/components/SidePanel.vue.js +1 -1
- package/components/Workbook/Sheet.vue.js +66 -64
- package/components/Workbook/Workbook.vue.js +2 -2
- package/components/Workbook/Workbook.vue2.js +81 -77
- package/package.json +13 -1
- package/style.css +75 -70
- package/test/VliteScreen.d.ts +120 -0
- package/test/VliteScreen.js +328 -0
- package/test/createDataFactory.d.ts +24 -0
- package/test/createDataFactory.js +59 -0
- package/test/extractSchemaFields.d.ts +14 -0
- package/test/extractSchemaFields.js +11 -0
- package/test/index.d.ts +39 -0
- package/test/index.js +10 -0
- package/test/renderVlite.d.ts +30 -0
- package/test/renderVlite.js +12 -0
- package/test/types.d.ts +39 -0
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
package/test/types.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IForm } from '../components/Form/types';
|
|
2
|
+
import { VueWrapper, DOMWrapper } from '@vue/test-utils';
|
|
3
|
+
export interface DataFactoryOptions {
|
|
4
|
+
/** Override specific fields — these take priority over auto-generated values */
|
|
5
|
+
overrides?: Record<string, any>;
|
|
6
|
+
/** Unique suffix for generated strings (auto-generated if not provided) */
|
|
7
|
+
uniqueId?: string;
|
|
8
|
+
/** Whether to evaluate `when` conditions (default: false — generate all fields) */
|
|
9
|
+
evaluateConditions?: boolean;
|
|
10
|
+
/** Form values context for evaluating `when` conditions */
|
|
11
|
+
valuesContext?: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
export interface RenderVliteOptions {
|
|
14
|
+
/** Props to pass to the component */
|
|
15
|
+
props?: Record<string, any>;
|
|
16
|
+
/** Global mount options (plugins, mocks, stubs, etc.) */
|
|
17
|
+
global?: Record<string, any>;
|
|
18
|
+
/** Delay in ms after mount before returning (default: 250) */
|
|
19
|
+
mountDelay?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface IVliteScreen {
|
|
22
|
+
/** The underlying @vue/test-utils wrapper */
|
|
23
|
+
readonly wrapper: VueWrapper<any>;
|
|
24
|
+
clickButton(textOrTestId: string): Promise<void>;
|
|
25
|
+
waitForModal(titleOrTestId: string): Promise<void>;
|
|
26
|
+
fillForm(schema: IForm[] | IForm[][], data: Record<string, any>): Promise<void>;
|
|
27
|
+
fillField(name: string, value: any): Promise<void>;
|
|
28
|
+
toggleSwitch(name: string): Promise<void>;
|
|
29
|
+
selectDropdownOption(name: string, value: string): Promise<void>;
|
|
30
|
+
submitForm(): Promise<{
|
|
31
|
+
emittedPayload: Record<string, any> | null;
|
|
32
|
+
}>;
|
|
33
|
+
triggerSubmit(): Promise<void>;
|
|
34
|
+
getFormValues(): Record<string, any>;
|
|
35
|
+
getFormErrors(): Record<string, string>;
|
|
36
|
+
findByTestId(testId: string): DOMWrapper<Element>;
|
|
37
|
+
findButton(text: string): DOMWrapper<Element> | null;
|
|
38
|
+
flushAll(delayMs?: number): Promise<void>;
|
|
39
|
+
}
|
|
File without changes
|