@progress/kendo-e2e 3.4.0 → 4.0.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.
- package/dist/components/actionsheet.d.ts +7 -0
- package/dist/components/actionsheet.js +28 -0
- package/dist/components/actionsheet.js.map +1 -0
- package/dist/components/appbar.d.ts +6 -0
- package/dist/components/appbar.js +13 -0
- package/dist/components/appbar.js.map +1 -0
- package/dist/components/arcgauge.d.ts +7 -0
- package/dist/components/arcgauge.js +37 -0
- package/dist/components/arcgauge.js.map +1 -0
- package/dist/components/autocomplete.d.ts +6 -3
- package/dist/components/autocomplete.js +6 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/bottomnavigation.d.ts +8 -0
- package/dist/components/bottomnavigation.js +30 -0
- package/dist/components/bottomnavigation.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.js +46 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/calendar.d.ts +20 -0
- package/dist/components/calendar.js +89 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/captcha.d.ts +14 -0
- package/dist/components/captcha.js +65 -0
- package/dist/components/captcha.js.map +1 -0
- package/dist/components/chat.d.ts +12 -0
- package/dist/components/chat.js +58 -0
- package/dist/components/chat.js.map +1 -0
- package/dist/components/checkbox.d.ts +10 -0
- package/dist/components/checkbox.js +39 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/colorpicker.d.ts +17 -0
- package/dist/components/colorpicker.js +94 -0
- package/dist/components/colorpicker.js.map +1 -0
- package/dist/components/columnmenu.d.ts +12 -0
- package/dist/components/columnmenu.js +62 -0
- package/dist/components/columnmenu.js.map +1 -0
- package/dist/components/combobox.d.ts +7 -3
- package/dist/components/combobox.js +37 -1
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/const.d.ts +17 -8
- package/dist/components/const.js +21 -12
- package/dist/components/const.js.map +1 -1
- package/dist/components/datepicker.d.ts +14 -0
- package/dist/components/datepicker.js +62 -0
- package/dist/components/datepicker.js.map +1 -0
- package/dist/components/daterangepicker.d.ts +18 -0
- package/dist/components/daterangepicker.js +78 -0
- package/dist/components/daterangepicker.js.map +1 -0
- package/dist/components/datetimepicker.d.ts +15 -0
- package/dist/components/datetimepicker.js +67 -0
- package/dist/components/datetimepicker.js.map +1 -0
- package/dist/components/dialog.d.ts +10 -0
- package/dist/components/dialog.js +41 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dockmanager.d.ts +12 -0
- package/dist/components/dockmanager.js +58 -0
- package/dist/components/dockmanager.js.map +1 -0
- package/dist/components/drawer.d.ts +10 -0
- package/dist/components/drawer.js +39 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown.d.ts +18 -9
- package/dist/components/dropdown.js +63 -29
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/dropdownbutton.d.ts +9 -0
- package/dist/components/dropdownbutton.js +40 -0
- package/dist/components/dropdownbutton.js.map +1 -0
- package/dist/components/dropdownlist.d.ts +9 -0
- package/dist/components/dropdownlist.js +44 -0
- package/dist/components/dropdownlist.js.map +1 -0
- package/dist/components/dropdowntree.d.ts +11 -0
- package/dist/components/dropdowntree.js +53 -0
- package/dist/components/dropdowntree.js.map +1 -0
- package/dist/components/editor.d.ts +11 -0
- package/dist/components/editor.js +70 -0
- package/dist/components/editor.js.map +1 -0
- package/dist/components/expansionpanel.d.ts +12 -0
- package/dist/components/expansionpanel.js +60 -0
- package/dist/components/expansionpanel.js.map +1 -0
- package/dist/components/filemanager.d.ts +8 -0
- package/dist/components/filemanager.js +27 -0
- package/dist/components/filemanager.js.map +1 -0
- package/dist/components/filter.d.ts +33 -0
- package/dist/components/filter.js +147 -0
- package/dist/components/filter.js.map +1 -0
- package/dist/components/filtermenu.d.ts +34 -0
- package/dist/components/filtermenu.js +99 -0
- package/dist/components/filtermenu.js.map +1 -0
- package/dist/components/flatcolorpicker.d.ts +12 -0
- package/dist/components/flatcolorpicker.js +47 -0
- package/dist/components/flatcolorpicker.js.map +1 -0
- package/dist/components/floatingactionbutton.d.ts +10 -0
- package/dist/components/floatingactionbutton.js +42 -0
- package/dist/components/floatingactionbutton.js.map +1 -0
- package/dist/components/form.d.ts +16 -0
- package/dist/components/form.js +61 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/gantt.d.ts +20 -0
- package/dist/components/gantt.js +98 -0
- package/dist/components/gantt.js.map +1 -0
- package/dist/components/gauge.d.ts +8 -0
- package/dist/components/gauge.js +31 -0
- package/dist/components/gauge.js.map +1 -0
- package/dist/components/grid.d.ts +15 -19
- package/dist/components/grid.js +32 -62
- package/dist/components/grid.js.map +1 -1
- package/dist/components/imagedditor.d.ts +30 -0
- package/dist/components/imagedditor.js +134 -0
- package/dist/components/imagedditor.js.map +1 -0
- package/dist/components/index.d.ts +68 -0
- package/dist/components/index.js +68 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.d.ts +14 -0
- package/dist/components/input.js +48 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/listbox.d.ts +14 -0
- package/dist/components/listbox.js +59 -0
- package/dist/components/listbox.js.map +1 -0
- package/dist/components/listview.d.ts +23 -0
- package/dist/components/listview.js +100 -0
- package/dist/components/listview.js.map +1 -0
- package/dist/components/maskedtextbox.d.ts +10 -0
- package/dist/components/maskedtextbox.js +41 -0
- package/dist/components/maskedtextbox.js.map +1 -0
- package/dist/components/mediaplayer.d.ts +22 -0
- package/dist/components/mediaplayer.js +128 -0
- package/dist/components/mediaplayer.js.map +1 -0
- package/dist/components/menu.d.ts +24 -0
- package/dist/components/menu.js +108 -0
- package/dist/components/menu.js.map +1 -0
- package/dist/components/multicolumncombobox.d.ts +8 -0
- package/dist/components/multicolumncombobox.js +36 -0
- package/dist/components/multicolumncombobox.js.map +1 -0
- package/dist/components/multiselect.d.ts +12 -0
- package/dist/components/multiselect.js +55 -0
- package/dist/components/multiselect.js.map +1 -0
- package/dist/components/numerictextbox.d.ts +12 -0
- package/dist/components/numerictextbox.js +57 -0
- package/dist/components/numerictextbox.js.map +1 -0
- package/dist/components/pager.d.ts +19 -4
- package/dist/components/pager.js +69 -11
- package/dist/components/pager.js.map +1 -1
- package/dist/components/panelbar.d.ts +16 -0
- package/dist/components/panelbar.js +72 -0
- package/dist/components/panelbar.js.map +1 -0
- package/dist/components/pdfviewer.d.ts +16 -0
- package/dist/components/pdfviewer.js +68 -0
- package/dist/components/pdfviewer.js.map +1 -0
- package/dist/components/pivotgrid-legacy.d.ts +91 -0
- package/dist/components/pivotgrid-legacy.js +447 -0
- package/dist/components/pivotgrid-legacy.js.map +1 -0
- package/dist/components/pivotgrid.d.ts +79 -0
- package/dist/components/pivotgrid.js +405 -0
- package/dist/components/pivotgrid.js.map +1 -0
- package/dist/components/popup.d.ts +1 -1
- package/dist/components/progressbar.d.ts +8 -0
- package/dist/components/progressbar.js +28 -0
- package/dist/components/progressbar.js.map +1 -0
- package/dist/components/radiobutton.d.ts +10 -0
- package/dist/components/radiobutton.js +39 -0
- package/dist/components/radiobutton.js.map +1 -0
- package/dist/components/rating.d.ts +11 -0
- package/dist/components/rating.js +43 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/scheduler.d.ts +35 -0
- package/dist/components/scheduler.js +142 -0
- package/dist/components/scheduler.js.map +1 -0
- package/dist/components/scrollview.d.ts +15 -0
- package/dist/components/scrollview.js +63 -0
- package/dist/components/scrollview.js.map +1 -0
- package/dist/components/signature.d.ts +15 -0
- package/dist/components/signature.js +47 -0
- package/dist/components/signature.js.map +1 -0
- package/dist/components/slider.d.ts +13 -0
- package/dist/components/slider.js +53 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/splitbutton.d.ts +17 -0
- package/dist/components/splitbutton.js +80 -0
- package/dist/components/splitbutton.js.map +1 -0
- package/dist/components/splitter.d.ts +14 -0
- package/dist/components/splitter.js +64 -0
- package/dist/components/splitter.js.map +1 -0
- package/dist/components/spreadsheet.d.ts +19 -0
- package/dist/components/spreadsheet.js +48 -0
- package/dist/components/spreadsheet.js.map +1 -0
- package/dist/components/stepper.d.ts +11 -0
- package/dist/components/stepper.js +45 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.d.ts +10 -0
- package/dist/components/switch.js +40 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +57 -0
- package/dist/components/table.js +237 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabstrip.d.ts +18 -0
- package/dist/components/tabstrip.js +73 -0
- package/dist/components/tabstrip.js.map +1 -0
- package/dist/components/textbox.d.ts +15 -0
- package/dist/components/textbox.js +69 -0
- package/dist/components/textbox.js.map +1 -0
- package/dist/components/tilelayout.d.ts +11 -0
- package/dist/components/tilelayout.js +39 -0
- package/dist/components/tilelayout.js.map +1 -0
- package/dist/components/timedurationpicker.d.ts +27 -0
- package/dist/components/timedurationpicker.js +146 -0
- package/dist/components/timedurationpicker.js.map +1 -0
- package/dist/components/timeline.d.ts +27 -0
- package/dist/components/timeline.js +150 -0
- package/dist/components/timeline.js.map +1 -0
- package/dist/components/timepicker.d.ts +19 -0
- package/dist/components/timepicker.js +97 -0
- package/dist/components/timepicker.js.map +1 -0
- package/dist/components/toolbar.d.ts +11 -0
- package/dist/components/toolbar.js +34 -0
- package/dist/components/toolbar.js.map +1 -0
- package/dist/components/treelist.d.ts +13 -0
- package/dist/components/treelist.js +51 -0
- package/dist/components/treelist.js.map +1 -0
- package/dist/components/treeview.d.ts +16 -0
- package/dist/components/treeview.js +113 -0
- package/dist/components/treeview.js.map +1 -0
- package/dist/components/ui-component.d.ts +3 -1
- package/dist/components/ui-component.js +16 -0
- package/dist/components/ui-component.js.map +1 -1
- package/dist/components/upload.d.ts +20 -0
- package/dist/components/upload.js +99 -0
- package/dist/components/upload.js.map +1 -0
- package/dist/components/window.d.ts +12 -0
- package/dist/components/window.js +50 -0
- package/dist/components/window.js.map +1 -0
- package/dist/components/wizard.d.ts +12 -0
- package/dist/components/wizard.js +31 -0
- package/dist/components/wizard.js.map +1 -0
- package/dist/selenium/driver-manager.js +1 -0
- package/dist/selenium/driver-manager.js.map +1 -1
- package/dist/selenium/web-app.d.ts +2 -0
- package/dist/selenium/web-app.js +28 -1
- package/dist/selenium/web-app.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NumericTextBox = void 0;
|
|
13
|
+
const const_1 = require("./const");
|
|
14
|
+
const selenium_1 = require("../selenium");
|
|
15
|
+
const input_1 = require("./input");
|
|
16
|
+
class NumericTextBox extends input_1.Input {
|
|
17
|
+
constructor(browser, locator = NumericTextBox.SELECTOR, parentElement) {
|
|
18
|
+
super(browser, locator, parentElement);
|
|
19
|
+
this.parentElement = parentElement;
|
|
20
|
+
}
|
|
21
|
+
setValue(value, { clear = true } = {}) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const input = yield this.input();
|
|
24
|
+
yield input.click();
|
|
25
|
+
yield this.browser.wait(selenium_1.EC.hasFocus(yield this.input()), { timeout: 3000, message: 'Failed to focus input.' });
|
|
26
|
+
if (clear) {
|
|
27
|
+
yield this.browser.sleep(20);
|
|
28
|
+
yield this.browser.sendKey(selenium_1.Key.HOME);
|
|
29
|
+
yield this.browser.sleep(20);
|
|
30
|
+
for (let i = 0; i < (yield this.getValue()).length + 4; i++) {
|
|
31
|
+
yield this.browser.sendKey(selenium_1.Key.DELETE);
|
|
32
|
+
yield this.browser.sleep(10);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
yield this.browser.sendKey(value);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
increaseValue() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const jquery = ".k-link-increase";
|
|
41
|
+
const aspNetCore = ".k-spinner-increase";
|
|
42
|
+
const increaseButton = yield this.findChild(`${jquery},${aspNetCore}`);
|
|
43
|
+
yield increaseButton.click();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
decreaseValue() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
const jquery = ".k-link-decrease";
|
|
49
|
+
const aspNetCore = ".k-spinner-decrease";
|
|
50
|
+
const decreaseButton = yield this.findChild(`${jquery},${aspNetCore}`);
|
|
51
|
+
yield decreaseButton.click();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
NumericTextBox.SELECTOR = const_1.SELECTORS.NUMERICTEXTBOX;
|
|
56
|
+
exports.NumericTextBox = NumericTextBox;
|
|
57
|
+
//# sourceMappingURL=numerictextbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numerictextbox.js","sourceRoot":"","sources":["../../src/components/numerictextbox.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,0CAA+D;AAC/D,mCAAgC;AAEhC,MAAa,cAAe,SAAQ,aAAK;IAGrC,YAAY,OAAgB,EAAE,UAAuB,cAAc,CAAC,QAAQ,EAAY,aAAwC;QAC5H,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAD6C,kBAAa,GAAb,aAAa,CAA2B;IAEhI,CAAC;IAEK,QA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EK,aAAa;;YACf,MAAM,MAAM,GAAG,kBAAkB,CAAC;YAClC,MAAM,UAAU,GAAG,qBAAqB,CAAC;YACzC,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI,UAAU,EAAE,CAAC,CAAC;YACvE,MAAM,cAAc,CAAC,KAAK,EAAE,CAAC;QACjC,CAAC;KAAA;;AApCa,uBAAQ,GAAG,iBAAS,CAAC,cAAc,CAAC;AADzC,wCAAc"}
|
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
import { UIComponent } from "./ui-component";
|
|
2
|
-
import { Browser, By, WebElement } from "../selenium
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
import { DropDownList } from "./dropdownlist";
|
|
3
4
|
export declare class Pager extends UIComponent {
|
|
4
5
|
protected parentElement?: WebElement | By | string;
|
|
5
6
|
static SELECTOR: string;
|
|
7
|
+
static FIRST: string;
|
|
8
|
+
static PREVIOUS: string;
|
|
9
|
+
static NEXT: string;
|
|
10
|
+
static LAST: string;
|
|
11
|
+
static INPUT: string;
|
|
12
|
+
static DROPDOWN_LIST: string;
|
|
6
13
|
static PAGER_INFO: string;
|
|
7
14
|
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
15
|
+
selectedPage(): Promise<string>;
|
|
16
|
+
firstPage(): Promise<WebElement>;
|
|
17
|
+
lastPage(): Promise<WebElement>;
|
|
18
|
+
previousPage(): Promise<WebElement>;
|
|
19
|
+
nextPage(): Promise<WebElement>;
|
|
20
|
+
pageButtons(): Promise<WebElement[]>;
|
|
21
|
+
pageButton(index: number): Promise<WebElement>;
|
|
22
|
+
pageButtonByText(text: number | string): Promise<WebElement>;
|
|
23
|
+
input(): Promise<WebElement>;
|
|
24
|
+
setInputValue(value: string): Promise<void>;
|
|
25
|
+
dropDownList(): Promise<DropDownList>;
|
|
8
26
|
info(): Promise<WebElement>;
|
|
9
27
|
infoText(): Promise<string>;
|
|
10
|
-
getNumberButtonByIndex(index: number): Promise<WebElement>;
|
|
11
|
-
getNumberButtonByText(text: number): Promise<WebElement>;
|
|
12
|
-
getNumberButtons(): Promise<WebElement[]>;
|
|
13
28
|
}
|
package/dist/components/pager.js
CHANGED
|
@@ -12,39 +12,97 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Pager = void 0;
|
|
13
13
|
const ui_component_1 = require("./ui-component");
|
|
14
14
|
const const_1 = require("./const");
|
|
15
|
-
const
|
|
15
|
+
const selenium_1 = require("../selenium");
|
|
16
|
+
const dropdownlist_1 = require("./dropdownlist");
|
|
16
17
|
class Pager extends ui_component_1.UIComponent {
|
|
17
18
|
constructor(browser, locator = Pager.SELECTOR, parentElement) {
|
|
18
19
|
super(browser, locator, parentElement);
|
|
19
20
|
this.parentElement = parentElement;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
selectedPage() {
|
|
22
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
|
|
24
|
+
const element = yield this.findChild(`.${const_1.STATES.SELECTED}`);
|
|
25
|
+
return yield this.browser.getText(element);
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
firstPage() {
|
|
27
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
return yield
|
|
30
|
+
return yield this.findChild(Pager.FIRST);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
lastPage() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
return yield this.findChild(Pager.LAST);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
previousPage() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
return yield this.findChild(Pager.PREVIOUS);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
nextPage() {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
return yield this.findChild(Pager.NEXT);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
pageButtons() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this.findChildren(`.k-pager-numbers .k-button`);
|
|
29
51
|
});
|
|
30
52
|
}
|
|
31
|
-
|
|
53
|
+
pageButton(index) {
|
|
32
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
return yield this.findChild(`.k-pager-numbers button:nth-of-type(${index})`);
|
|
55
|
+
return yield this.findChild(`.k-pager-numbers .k-button:nth-of-type(${index})`);
|
|
34
56
|
});
|
|
35
57
|
}
|
|
36
|
-
|
|
58
|
+
pageButtonByText(text) {
|
|
37
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
|
|
60
|
+
const defaultLocator = `.//button[.='${text}']`;
|
|
61
|
+
const mvcLocator = `.//a[.='${text}']`;
|
|
62
|
+
return yield this.findChild(selenium_1.By.xpath(`${defaultLocator}|${mvcLocator}`));
|
|
39
63
|
});
|
|
40
64
|
}
|
|
41
|
-
|
|
65
|
+
input() {
|
|
42
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return yield this.
|
|
67
|
+
return yield this.findChild(Pager.INPUT);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
setInputValue(value) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
yield this.browser.click(yield this.input());
|
|
73
|
+
yield this.browser.wait(selenium_1.EC.hasFocus(yield this.input()), { timeout: 3000, message: 'Failed to focus pager input.' });
|
|
74
|
+
yield this.browser.sendControlKeyCombination('a');
|
|
75
|
+
yield this.browser.sleep(10);
|
|
76
|
+
yield this.browser.sendKey(selenium_1.Key.BACK_SPACE);
|
|
77
|
+
yield this.browser.sleep(10);
|
|
78
|
+
yield this.browser.sendKey(value);
|
|
79
|
+
yield this.browser.sleep(10);
|
|
80
|
+
yield this.browser.sendKey(selenium_1.Key.ENTER);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
dropDownList() {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return new dropdownlist_1.DropDownList(this.browser, Pager.DROPDOWN_LIST, yield this.root());
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
info() {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return yield this.findChild(Pager.PAGER_INFO);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
infoText() {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
return yield (yield this.info()).getText();
|
|
44
96
|
});
|
|
45
97
|
}
|
|
46
98
|
}
|
|
47
99
|
Pager.SELECTOR = const_1.SELECTORS.PAGER;
|
|
100
|
+
Pager.FIRST = ".k-pager-first";
|
|
101
|
+
Pager.PREVIOUS = ".k-pager-nav[aria-label='Go to the previous page']";
|
|
102
|
+
Pager.NEXT = ".k-pager-nav[aria-label='Go to the next page']";
|
|
103
|
+
Pager.LAST = ".k-pager-last";
|
|
104
|
+
Pager.INPUT = ".k-pager-input input";
|
|
105
|
+
Pager.DROPDOWN_LIST = const_1.SELECTORS.DROPDOWN_LIST;
|
|
48
106
|
Pager.PAGER_INFO = ".k-pager-info";
|
|
49
107
|
exports.Pager = Pager;
|
|
50
108
|
//# sourceMappingURL=pager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pager.js","sourceRoot":"","sources":["../../src/components/pager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"pager.js","sourceRoot":"","sources":["../../src/components/pager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAA4C;AAC5C,0CAA+D;AAC/D,iDAA8C;AAE9C,MAAa,KAAM,SAAQ,0BAAW;IAUlC,YAAY,OAAgB,EAAE,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAY,aAAwC;QACtG,KAAK,CAAC,OAAO,EAAE,OAAO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cAAQ,GAAG,iBAAS,CAAC,KAAK,CAAC;AAC3B,WAAK,GAAG,gBAAgB,CAAC;AACzB,cAAQ,GAAG,oDAAoD,CAAC;AAChE,UAAI,GAAG,gDAAgD,CAAC;AACxD,UAAI,GAAG,eAAe,CAAC;AACvB,WAAK,GAAG,sBAAsB,CAAC;AAC/B,mBAAa,GAAG,iBAAS,CAAC,aAAa,CAAC;AACxC,gBAAU,GAAG,eAAe,CAAC;AARlC,sBAAK"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class PanelBar extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
getItems(): Promise<WebElement[]>;
|
|
8
|
+
getItemsCount(): Promise<number>;
|
|
9
|
+
getItemByIndex(index: number): Promise<WebElement>;
|
|
10
|
+
getItemByTextLocator(text: string): By;
|
|
11
|
+
getItemByText(text: string): Promise<WebElement>;
|
|
12
|
+
clickItemByIndex(index: number): Promise<void>;
|
|
13
|
+
clickItemByText(text: string): Promise<void>;
|
|
14
|
+
isItemExpandedByIndex(index: number): Promise<boolean>;
|
|
15
|
+
isItemExpandedByText(text: string): Promise<boolean>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PanelBar = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
const selenium_1 = require("../selenium");
|
|
16
|
+
class PanelBar extends ui_component_1.UIComponent {
|
|
17
|
+
constructor(browser, locator = PanelBar.SELECTOR, parentElement) {
|
|
18
|
+
super(browser, locator, parentElement);
|
|
19
|
+
this.parentElement = parentElement;
|
|
20
|
+
}
|
|
21
|
+
getItems() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.findChildren("li.k-panelbar-item span.k-link");
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
getItemsCount() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return (yield this.getItems()).length;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getItemByIndex(index) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return (yield this.findChildren(`li.k-panelbar-item span.k-link`))[index - 1];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
getItemByTextLocator(text) {
|
|
37
|
+
return selenium_1.By.xpath(`.//li[contains(@class,"k-panelbar-item")]//span[contains(@class,"k-link") and normalize-space()="${text}"]`);
|
|
38
|
+
}
|
|
39
|
+
getItemByText(text) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const locator = this.getItemByTextLocator(text);
|
|
42
|
+
return yield this.findChild(locator);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
clickItemByIndex(index) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const item = yield this.getItemByIndex(index);
|
|
48
|
+
yield item.click();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
clickItemByText(text) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const item = yield this.getItemByText(text);
|
|
54
|
+
yield item.click();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
isItemExpandedByIndex(index) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const toggle = yield this.browser.findChild(yield this.getItemByIndex(index), '.k-panelbar-toggle');
|
|
60
|
+
return (yield toggle.getAttribute('class')).includes('-i-chevron-up');
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
isItemExpandedByText(text) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const toggle = yield this.browser.findChild(yield this.getItemByText(text), '.k-panelbar-toggle');
|
|
66
|
+
return (yield toggle.getAttribute('class')).includes('-i-chevron-up');
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
PanelBar.SELECTOR = const_1.SELECTORS.PANELBAR;
|
|
71
|
+
exports.PanelBar = PanelBar;
|
|
72
|
+
//# sourceMappingURL=panelbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelbar.js","sourceRoot":"","sources":["../../src/components/panelbar.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAAoC;AACpC,0CAAsD;AAEtD,MAAa,QAAS,SAAQ,0BAAW;IAGrC,YAAY,OAAgB,EAAE,OAAO,GAAG,QAAQ,CAAC,QAAQ,EAAY,aAAwC;QACzG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAD0B,kBAAa,GAAb,aAAa,CAA2B;IAE7G,CAAC;IAEK,QAAQ;;YACV,OAAO,IAAI,CAAC,YAAY,CAAC,gCAAgC,CAAC,CAAC;QAC/D,CAAC;KAAA;IAEK,aAAa;;YACf,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ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AAoB,CAAC,CAAC;YAClG,OAAO,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAC1E,CAAC;KAAA;;AA7Ca,iBAAQ,GAAG,iBAAS,CAAC,QAAQ,CAAC;AADnC,4BAAQ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class PdfViewer extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
zoomLevelInput(): Promise<WebElement>;
|
|
8
|
+
zoomLevelInputValue(): Promise<string>;
|
|
9
|
+
getPage(index: number): Promise<WebElement>;
|
|
10
|
+
previousPage(): Promise<WebElement>;
|
|
11
|
+
nextPage(): Promise<WebElement>;
|
|
12
|
+
firstPage(): Promise<WebElement>;
|
|
13
|
+
lastPage(): Promise<WebElement>;
|
|
14
|
+
pagerInput(): Promise<WebElement>;
|
|
15
|
+
pagerInputValue(): Promise<string>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PdfViewer = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
class PdfViewer extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = PdfViewer.SELECTOR, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
zoomLevelInput() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return yield this.findChild('.k-toolbar .k-combobox input:not([style~="none;"])');
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
zoomLevelInputValue() {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return yield (yield this.zoomLevelInput()).getAttribute('value');
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
getPage(index) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return yield this.findChild(`.k-page[data-number="${index}"]`);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
previousPage() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
return yield this.findChild(".k-prev-link");
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
nextPage() {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
return yield this.findChild(".k-next-link");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
firstPage() {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return yield this.findChild(".k-first-link");
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
lastPage() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
return yield this.findChild(".k-last-link");
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
pagerInput() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
return yield this.findChild("#page-input");
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
pagerInputValue() {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield (yield this.pagerInput()).getAttribute('value');
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
PdfViewer.SELECTOR = const_1.SELECTORS.PDFVIEWER;
|
|
67
|
+
exports.PdfViewer = PdfViewer;
|
|
68
|
+
//# sourceMappingURL=pdfviewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdfviewer.js","sourceRoot":"","sources":["../../src/components/pdfviewer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAAoC;AAGpC,MAAa,SAAU,SAAQ,0BAAW;IAGtC,YAAY,OAAgB,EAAE,OAAO,GAAG,SAAS,CAAC,QAAQ,EAAY,aAAwC;QAC1G,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAD2B,kBAAa,GAAb,aAAa,CAA2B;IAE9G,CAAC;IAEK,cAAc;;YAChB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,oDAAoD,CAAC,CAAC;QACtF,CAAC;KAAA;IAEK,mBAAmB;;YACrB,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACrE,CAAC;KAAA;IAEK,OAAO,CAAC,KAAa;;YACvB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,wBAAwB,KAAK,IAAI,CAAC,CAAC;QACnE,CAAC;KAAA;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAChD,CAAC;KAAA;IAEK,QAAQ;;YACV,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAChD,CAAC;KAAA;IAEK,SAAS;;YACX,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QACjD,CAAC;KAAA;IAEK,QAAQ;;YACV,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAChD,CAAC;KAAA;IAEK,UAAU;;YACZ,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEK,eAAe;;YACjB,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACjE,CAAC;KAAA;;AAxCa,kBAAQ,GAAG,iBAAS,CAAC,SAAS,CAAC;AADpC,8BAAS"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
import { TreeView } from "./treeview";
|
|
4
|
+
export declare class PivotGrid extends UIComponent {
|
|
5
|
+
protected parentElement?: WebElement | By | string;
|
|
6
|
+
static SELECTOR: string;
|
|
7
|
+
constructor(browser: Browser, locator: By | string, parentElement?: WebElement | By | string);
|
|
8
|
+
getColumnHeaderCell(row: number, column: number): Promise<WebElement>;
|
|
9
|
+
getColumnHeaderCellText(row: number, column: number): Promise<string>;
|
|
10
|
+
getRowHeaderCell(row: number, column: number): Promise<WebElement>;
|
|
11
|
+
getRowHeaderCellText(row: number, column: number): Promise<string>;
|
|
12
|
+
cell(row: number, column: number): Promise<WebElement>;
|
|
13
|
+
cellText(row: number, column: number): Promise<string>;
|
|
14
|
+
getRowHeader(): Promise<WebElement>;
|
|
15
|
+
getRowHeaderCellsCount(): Promise<number>;
|
|
16
|
+
getRowHeaderCellToggle(row: number, column: number): Promise<void>;
|
|
17
|
+
getExportButton(type: string): Promise<WebElement>;
|
|
18
|
+
getLoaderContainer(): Promise<WebElement>;
|
|
19
|
+
rowHeaderIsExpanded(row: number, column: number): Promise<boolean>;
|
|
20
|
+
getColumnHeader(): Promise<WebElement>;
|
|
21
|
+
getColumnHeaderCellsCount(): Promise<number>;
|
|
22
|
+
getColumnHeaderCellToggle(row: number, column: number): Promise<void>;
|
|
23
|
+
columnHeaderIsExpanded(row: number, column: number): Promise<boolean>;
|
|
24
|
+
scrollContentVertical(height: number): Promise<void>;
|
|
25
|
+
getKpiTemplateValue(row: number, column: number): Promise<WebElement>;
|
|
26
|
+
}
|
|
27
|
+
export declare class PivotConfigurator extends UIComponent {
|
|
28
|
+
protected parentElement?: WebElement | By | string;
|
|
29
|
+
static SELECTOR: string;
|
|
30
|
+
static COLUMNS_LIST: By;
|
|
31
|
+
static ROWS_LIST: By;
|
|
32
|
+
static VALUES_LIST: By;
|
|
33
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
34
|
+
fieldsList(): Promise<TreeView>;
|
|
35
|
+
getColumnsItem(index: number): Promise<WebElement>;
|
|
36
|
+
getColumnsItemLabel(index: number): Promise<WebElement>;
|
|
37
|
+
getColumnsItemText(index: number): Promise<string>;
|
|
38
|
+
getRowsItem(index: number): Promise<WebElement>;
|
|
39
|
+
getRowsItemLabel(index: number): Promise<WebElement>;
|
|
40
|
+
getRowsItemText(index: number): Promise<string>;
|
|
41
|
+
getValuesItem(index: number): Promise<WebElement>;
|
|
42
|
+
getValuesItemLabel(index: number): Promise<WebElement>;
|
|
43
|
+
getValuesItemText(index: number): Promise<string>;
|
|
44
|
+
getColumnsCount({ waitForItems }?: {
|
|
45
|
+
waitForItems?: boolean;
|
|
46
|
+
}): Promise<number>;
|
|
47
|
+
getRowsCount({ waitForItems }?: {
|
|
48
|
+
waitForItems?: boolean;
|
|
49
|
+
}): Promise<number>;
|
|
50
|
+
getValuesCount({ waitForItems }?: {
|
|
51
|
+
waitForItems?: boolean;
|
|
52
|
+
}): Promise<number>;
|
|
53
|
+
cancel(): Promise<void>;
|
|
54
|
+
apply(): Promise<void>;
|
|
55
|
+
deleteRowsItem(index: number): Promise<void>;
|
|
56
|
+
deleteColumnsItem(index: number): Promise<void>;
|
|
57
|
+
openMenuForColumn(index: number): Promise<PivotGridColumnMenu>;
|
|
58
|
+
openMenuForRow(index: number): Promise<PivotGridColumnMenu>;
|
|
59
|
+
}
|
|
60
|
+
export declare class FieldGroup {
|
|
61
|
+
static readonly Columns = "div.k-pivotgrid-targets > .k-pivotgrid-target:nth-child(1)";
|
|
62
|
+
static readonly Rows = "div.k-pivotgrid-targets > .k-pivotgrid-target:nth-child(2)";
|
|
63
|
+
static readonly Values = "div.k-pivotgrid-targets > .k-pivotgrid-target:nth-child(3)";
|
|
64
|
+
}
|
|
65
|
+
export declare class PivotGridColumnMenu extends UIComponent {
|
|
66
|
+
protected parentElement?: WebElement | By | string;
|
|
67
|
+
constructor(browser: Browser, locator: By | string, parentElement?: WebElement | By | string);
|
|
68
|
+
sortAsc(): Promise<void>;
|
|
69
|
+
sortDesc(): Promise<void>;
|
|
70
|
+
okButtonClick(): Promise<void>;
|
|
71
|
+
getItemByText(text: string): Promise<WebElement>;
|
|
72
|
+
moveToColumnsElement(): Promise<WebElement>;
|
|
73
|
+
moveToRowsElement(): Promise<WebElement>;
|
|
74
|
+
moveAsNextElement(): Promise<WebElement>;
|
|
75
|
+
moveAsPreviousElement(): Promise<WebElement>;
|
|
76
|
+
moveToColumns(): Promise<void>;
|
|
77
|
+
moveToRows(): Promise<void>;
|
|
78
|
+
moveNext(): Promise<void>;
|
|
79
|
+
movePrevious(): Promise<void>;
|
|
80
|
+
openFilterMenu(): Promise<void>;
|
|
81
|
+
filterMenuInput(): Promise<WebElement>;
|
|
82
|
+
getValueFilterMenuInput(): Promise<string>;
|
|
83
|
+
setValueFilterMenuInput(value: string): Promise<void>;
|
|
84
|
+
selectFilterOperators(index: number): Promise<void>;
|
|
85
|
+
clearFilter(): Promise<void>;
|
|
86
|
+
applyFilter(): Promise<void>;
|
|
87
|
+
openIncludeFields(): Promise<void>;
|
|
88
|
+
includeFieldsTreeView(): Promise<TreeView>;
|
|
89
|
+
applyIncludes(): Promise<void>;
|
|
90
|
+
resetIncludes(): Promise<void>;
|
|
91
|
+
}
|