@linzjs/step-ag-grid 7.0.4 → 7.1.0

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.
@@ -37,3 +37,4 @@ export { GridFormSubComponentTextArea } from "./components/gridForm/GridFormSubC
37
37
  export * from "./lui/ActionButton";
38
38
  export * from "./utils/bearing";
39
39
  export * from "./utils/util";
40
+ export * from "./utils/testUtil";
@@ -0,0 +1,62 @@
1
+ /**
2
+ * General query all by selected. Internal use, use quick operations instead.
3
+ *
4
+ * @param selector Selector to use
5
+ * @param container Optional container
6
+ * @return HTMLElement array
7
+ */
8
+ import { IconName } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
9
+ /**
10
+ * Filters for query quick operations.
11
+ */
12
+ export interface IQueryQuick {
13
+ testId?: string;
14
+ tagName?: "button" | "span" | "div" | "input" | "textarea" | any;
15
+ textEquals?: string;
16
+ textContains?: string;
17
+ icon?: IconName;
18
+ ariaLabel?: string;
19
+ role?: string;
20
+ classes?: string;
21
+ child?: IQueryQuick;
22
+ }
23
+ /**
24
+ * Query by filter.
25
+ *
26
+ * @param filter Filter
27
+ * @param container Optional container to look in
28
+ * @return HTMLElement if found else null
29
+ */
30
+ export declare const queryQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T | null;
31
+ /**
32
+ * Query all by filter.
33
+ *
34
+ * @param filter Filter
35
+ * @param container Optional container to look in
36
+ * @return HTMLElement array
37
+ */
38
+ export declare const queryAllQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T[];
39
+ /**
40
+ * Get all by filter.
41
+ *
42
+ * @param filter Filter
43
+ * @param container Optional container to look in
44
+ * @return HTMLElement array. Throws exception if nothing is found.
45
+ */
46
+ export declare const getAllQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T[];
47
+ /**
48
+ * Get by filter.
49
+ *
50
+ * @param filter Filter
51
+ * @param container Optional container to look in
52
+ * @return HTMLElement. Throws exception if not found.
53
+ */
54
+ export declare const getQuick: (filter: IQueryQuick, container?: HTMLElement) => HTMLElement;
55
+ /**
56
+ * Find by filter. Waits up to 4 seconds to find filter.
57
+ *
58
+ * @param filter Filter
59
+ * @param container Optional container to look in
60
+ * @return HTMLElement. Throws exception if not found.
61
+ */
62
+ export declare const findQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => Promise<T>;
@@ -0,0 +1,22 @@
1
+ export declare const findRow: (rowId: number | string, within?: HTMLElement) => Promise<HTMLDivElement>;
2
+ export declare const queryRow: (rowId: number | string, within?: HTMLElement) => Promise<HTMLDivElement | null>;
3
+ export declare const selectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
4
+ export declare const deselectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
5
+ export declare const findCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<HTMLElement>;
6
+ export declare const selectCell: (rowId: string | number, colId: string, within?: HTMLElement) => Promise<void>;
7
+ export declare const editCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<void>;
8
+ export declare const queryMenuOption: (menuOptionText: string) => Promise<HTMLElement | null>;
9
+ export declare const findMenuOption: (menuOptionText: string) => Promise<HTMLElement>;
10
+ export declare const clickMenuOption: (menuOptionText: string) => Promise<void>;
11
+ export declare const openAndClickMenuOption: (rowId: number | string, colId: string, menuOptionText: string, within?: HTMLElement) => Promise<void>;
12
+ export declare const getMultiSelectOptions: () => Promise<{
13
+ v: string;
14
+ c: boolean;
15
+ }[]>;
16
+ export declare const findMultiSelectOption: (value: string) => Promise<HTMLElement>;
17
+ export declare const clickMultiSelectOption: (value: string) => Promise<void>;
18
+ export declare const typeOtherInput: (value: string) => Promise<void>;
19
+ export declare const typeOtherTextArea: (value: string) => Promise<void>;
20
+ export declare const closeMenu: () => void;
21
+ export declare const findActionButton: (text: string, container: HTMLElement) => Promise<HTMLElement>;
22
+ export declare const clickActionButton: (text: string, container: HTMLElement) => Promise<void>;