@linzjs/step-ag-grid 7.0.4 → 7.1.1
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/dist/index.js +20597 -286
- package/dist/index.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/utils/testQuick.d.ts +62 -0
- package/dist/src/utils/testUtil.d.ts +22 -0
- package/dist/src/utils/textMatcher.d.ts +2 -2
- package/dist/step-ag-grid.esm.js +20301 -28
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridForm/GridFormDropDown.tsx +1 -1
- package/src/components/gridForm/GridFormMultiSelect.tsx +84 -22
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +2 -2
- package/src/index.ts +1 -0
- package/src/react-menu3/components/ControlledMenu.tsx +1 -1
- package/src/stories/grid/GridPopoutEditMultiSelect.stories.tsx +2 -2
- package/src/utils/testQuick.ts +146 -0
- package/src/utils/testUtil.ts +135 -0
- package/src/utils/textMatcher.ts +11 -8
package/dist/src/index.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* "*L" => *L
|
|
8
8
|
* "A B" => A* and B*
|
|
9
9
|
* "A B, C" => (A* and B*) or C*
|
|
10
|
-
*
|
|
11
|
-
* Returns
|
|
10
|
+
* "!A" => all values must not match A
|
|
11
|
+
* Returns true if there's a text match.
|
|
12
12
|
*/
|
|
13
13
|
export declare const textMatch: (text: string | undefined | null, filter: string) => boolean;
|