@nova-ui/bits 20.0.3 → 21.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/bundles/css/styles.css +1 -1
- package/fesm2022/nova-ui-bits.mjs +1937 -1537
- package/fesm2022/nova-ui-bits.mjs.map +1 -1
- package/package.json +15 -22
- package/sdk/atoms-playwright/atom.js +5 -3
- package/sdk/atoms-playwright/atom.js.map +1 -1
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.d.ts +0 -1
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js +9 -6
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/chips/chips.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/dialog/dialog.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/menu/menu.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/paginator/paginator.atom.d.ts +1 -0
- package/sdk/atoms-playwright/components/paginator/paginator.atom.js +14 -17
- package/sdk/atoms-playwright/components/paginator/paginator.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/popover/popover.atom.js +4 -1
- package/sdk/atoms-playwright/components/popover/popover.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/select/basic-select.atom.js +4 -2
- package/sdk/atoms-playwright/components/select/basic-select.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/select/select.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/table/table.atom.js +10 -6
- package/sdk/atoms-playwright/components/table/table.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js +3 -1
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js.map +1 -1
- package/sdk/atoms-playwright/setup.js +3 -1
- package/sdk/atoms-playwright/setup.js.map +1 -1
- package/sdk/atoms-playwright/virtual-camera/camera-engine.js +3 -1
- package/sdk/atoms-playwright/virtual-camera/camera-engine.js.map +1 -1
- package/sdk/less/nui-framework-colors.less +13 -13
- package/sdk/schematics/filter-group/index.spec.js +1 -1
- package/sdk/schematics/filter-group/index.spec.js.map +1 -1
- package/sdk/schematics/ng-add/index.spec.js +1 -1
- package/sdk/schematics/ng-add/index.spec.js.map +1 -1
- package/{index.d.ts → types/nova-ui-bits.d.ts} +208 -146
- package/sdk/atoms/atom.d.ts +0 -48
- package/sdk/atoms/atom.js +0 -179
- package/sdk/atoms/atom.js.map +0 -1
- package/sdk/atoms/atoms/base-select-v2.atom.d.ts +0 -30
- package/sdk/atoms/atoms/base-select-v2.atom.js +0 -125
- package/sdk/atoms/atoms/base-select-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/basic-select.atom.d.ts +0 -21
- package/sdk/atoms/atoms/basic-select.atom.js +0 -56
- package/sdk/atoms/atoms/basic-select.atom.js.map +0 -1
- package/sdk/atoms/atoms/breadcrumb.atom.d.ts +0 -11
- package/sdk/atoms/atoms/breadcrumb.atom.js +0 -46
- package/sdk/atoms/atoms/breadcrumb.atom.js.map +0 -1
- package/sdk/atoms/atoms/busy.atom.d.ts +0 -12
- package/sdk/atoms/atoms/busy.atom.js +0 -41
- package/sdk/atoms/atoms/busy.atom.js.map +0 -1
- package/sdk/atoms/atoms/button.atom.d.ts +0 -19
- package/sdk/atoms/atoms/button.atom.js +0 -63
- package/sdk/atoms/atoms/button.atom.js.map +0 -1
- package/sdk/atoms/atoms/cdk-drop-item.atom.d.ts +0 -10
- package/sdk/atoms/atoms/cdk-drop-item.atom.js +0 -58
- package/sdk/atoms/atoms/cdk-drop-item.atom.js.map +0 -1
- package/sdk/atoms/atoms/cdk-drop-list.atom.d.ts +0 -8
- package/sdk/atoms/atoms/cdk-drop-list.atom.js +0 -42
- package/sdk/atoms/atoms/cdk-drop-list.atom.js.map +0 -1
- package/sdk/atoms/atoms/checkbox-group.atom.d.ts +0 -11
- package/sdk/atoms/atoms/checkbox-group.atom.js +0 -69
- package/sdk/atoms/atoms/checkbox-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/checkbox.atom.d.ts +0 -30
- package/sdk/atoms/atoms/checkbox.atom.js +0 -94
- package/sdk/atoms/atoms/checkbox.atom.js.map +0 -1
- package/sdk/atoms/atoms/chips.atom.d.ts +0 -32
- package/sdk/atoms/atoms/chips.atom.js +0 -93
- package/sdk/atoms/atoms/chips.atom.js.map +0 -1
- package/sdk/atoms/atoms/combobox-v2.atom.d.ts +0 -22
- package/sdk/atoms/atoms/combobox-v2.atom.js +0 -100
- package/sdk/atoms/atoms/combobox-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/combobox.atom.d.ts +0 -29
- package/sdk/atoms/atoms/combobox.atom.js +0 -67
- package/sdk/atoms/atoms/combobox.atom.js.map +0 -1
- package/sdk/atoms/atoms/content.atom.d.ts +0 -6
- package/sdk/atoms/atoms/content.atom.js +0 -40
- package/sdk/atoms/atoms/content.atom.js.map +0 -1
- package/sdk/atoms/atoms/datepicker.atom.d.ts +0 -57
- package/sdk/atoms/atoms/datepicker.atom.js +0 -204
- package/sdk/atoms/atoms/datepicker.atom.js.map +0 -1
- package/sdk/atoms/atoms/datetimepicker.atom.d.ts +0 -9
- package/sdk/atoms/atoms/datetimepicker.atom.js +0 -43
- package/sdk/atoms/atoms/datetimepicker.atom.js.map +0 -1
- package/sdk/atoms/atoms/dialog.atom.d.ts +0 -18
- package/sdk/atoms/atoms/dialog.atom.js +0 -77
- package/sdk/atoms/atoms/dialog.atom.js.map +0 -1
- package/sdk/atoms/atoms/divider.atom.d.ts +0 -6
- package/sdk/atoms/atoms/divider.atom.js +0 -45
- package/sdk/atoms/atoms/divider.atom.js.map +0 -1
- package/sdk/atoms/atoms/expander.atom.d.ts +0 -19
- package/sdk/atoms/atoms/expander.atom.js +0 -90
- package/sdk/atoms/atoms/expander.atom.js.map +0 -1
- package/sdk/atoms/atoms/form-field.atom.d.ts +0 -12
- package/sdk/atoms/atoms/form-field.atom.js +0 -73
- package/sdk/atoms/atoms/form-field.atom.js.map +0 -1
- package/sdk/atoms/atoms/freetype-query-builder.atom.d.ts +0 -9
- package/sdk/atoms/atoms/freetype-query-builder.atom.js +0 -51
- package/sdk/atoms/atoms/freetype-query-builder.atom.js.map +0 -1
- package/sdk/atoms/atoms/icon.atom.d.ts +0 -21
- package/sdk/atoms/atoms/icon.atom.js +0 -91
- package/sdk/atoms/atoms/icon.atom.js.map +0 -1
- package/sdk/atoms/atoms/image.atom.d.ts +0 -8
- package/sdk/atoms/atoms/image.atom.js +0 -61
- package/sdk/atoms/atoms/image.atom.js.map +0 -1
- package/sdk/atoms/atoms/layout-sheet-group.atom.d.ts +0 -14
- package/sdk/atoms/atoms/layout-sheet-group.atom.js +0 -91
- package/sdk/atoms/atoms/layout-sheet-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/layout-sheet.atom.d.ts +0 -6
- package/sdk/atoms/atoms/layout-sheet.atom.js +0 -45
- package/sdk/atoms/atoms/layout-sheet.atom.js.map +0 -1
- package/sdk/atoms/atoms/menu-item.atom.d.ts +0 -13
- package/sdk/atoms/atoms/menu-item.atom.js +0 -117
- package/sdk/atoms/atoms/menu-item.atom.js.map +0 -1
- package/sdk/atoms/atoms/menu-popup.atom.d.ts +0 -11
- package/sdk/atoms/atoms/menu-popup.atom.js +0 -57
- package/sdk/atoms/atoms/menu-popup.atom.js.map +0 -1
- package/sdk/atoms/atoms/menu.atom.d.ts +0 -43
- package/sdk/atoms/atoms/menu.atom.js +0 -116
- package/sdk/atoms/atoms/menu.atom.js.map +0 -1
- package/sdk/atoms/atoms/message.atom.d.ts +0 -16
- package/sdk/atoms/atoms/message.atom.js +0 -51
- package/sdk/atoms/atoms/message.atom.js.map +0 -1
- package/sdk/atoms/atoms/overlay-content.atom.d.ts +0 -7
- package/sdk/atoms/atoms/overlay-content.atom.js +0 -35
- package/sdk/atoms/atoms/overlay-content.atom.js.map +0 -1
- package/sdk/atoms/atoms/overlay.atom.d.ts +0 -11
- package/sdk/atoms/atoms/overlay.atom.js +0 -41
- package/sdk/atoms/atoms/overlay.atom.js.map +0 -1
- package/sdk/atoms/atoms/paginator.atom.d.ts +0 -29
- package/sdk/atoms/atoms/paginator.atom.js +0 -199
- package/sdk/atoms/atoms/paginator.atom.js.map +0 -1
- package/sdk/atoms/atoms/panel.atom.d.ts +0 -29
- package/sdk/atoms/atoms/panel.atom.js +0 -120
- package/sdk/atoms/atoms/panel.atom.js.map +0 -1
- package/sdk/atoms/atoms/popover.atom.d.ts +0 -28
- package/sdk/atoms/atoms/popover.atom.js +0 -94
- package/sdk/atoms/atoms/popover.atom.js.map +0 -1
- package/sdk/atoms/atoms/popup.atom.d.ts +0 -16
- package/sdk/atoms/atoms/popup.atom.js +0 -68
- package/sdk/atoms/atoms/popup.atom.js.map +0 -1
- package/sdk/atoms/atoms/progress.atom.d.ts +0 -14
- package/sdk/atoms/atoms/progress.atom.js +0 -65
- package/sdk/atoms/atoms/progress.atom.js.map +0 -1
- package/sdk/atoms/atoms/public_api.d.ts +0 -65
- package/sdk/atoms/atoms/public_api.js +0 -69
- package/sdk/atoms/atoms/public_api.js.map +0 -1
- package/sdk/atoms/atoms/quick-picker.atom.d.ts +0 -8
- package/sdk/atoms/atoms/quick-picker.atom.js +0 -49
- package/sdk/atoms/atoms/quick-picker.atom.js.map +0 -1
- package/sdk/atoms/atoms/radio-group.atom.d.ts +0 -13
- package/sdk/atoms/atoms/radio-group.atom.js +0 -76
- package/sdk/atoms/atoms/radio-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/repeat.atom.d.ts +0 -27
- package/sdk/atoms/atoms/repeat.atom.js +0 -123
- package/sdk/atoms/atoms/repeat.atom.js.map +0 -1
- package/sdk/atoms/atoms/resizer.atom.d.ts +0 -12
- package/sdk/atoms/atoms/resizer.atom.js +0 -52
- package/sdk/atoms/atoms/resizer.atom.js.map +0 -1
- package/sdk/atoms/atoms/search.atom.d.ts +0 -12
- package/sdk/atoms/atoms/search.atom.js +0 -81
- package/sdk/atoms/atoms/search.atom.js.map +0 -1
- package/sdk/atoms/atoms/select-v2-option.atom.d.ts +0 -7
- package/sdk/atoms/atoms/select-v2-option.atom.js +0 -44
- package/sdk/atoms/atoms/select-v2-option.atom.js.map +0 -1
- package/sdk/atoms/atoms/select-v2.atom.d.ts +0 -5
- package/sdk/atoms/atoms/select-v2.atom.js +0 -34
- package/sdk/atoms/atoms/select-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/select.atom.d.ts +0 -10
- package/sdk/atoms/atoms/select.atom.js +0 -37
- package/sdk/atoms/atoms/select.atom.js.map +0 -1
- package/sdk/atoms/atoms/selector.atom.d.ts +0 -22
- package/sdk/atoms/atoms/selector.atom.js +0 -90
- package/sdk/atoms/atoms/selector.atom.js.map +0 -1
- package/sdk/atoms/atoms/sorter.atom.d.ts +0 -33
- package/sdk/atoms/atoms/sorter.atom.js +0 -123
- package/sdk/atoms/atoms/sorter.atom.js.map +0 -1
- package/sdk/atoms/atoms/spinner.atom.d.ts +0 -12
- package/sdk/atoms/atoms/spinner.atom.js +0 -45
- package/sdk/atoms/atoms/spinner.atom.js.map +0 -1
- package/sdk/atoms/atoms/switch.atom.d.ts +0 -14
- package/sdk/atoms/atoms/switch.atom.js +0 -73
- package/sdk/atoms/atoms/switch.atom.js.map +0 -1
- package/sdk/atoms/atoms/tab-heading-group.atom.d.ts +0 -16
- package/sdk/atoms/atoms/tab-heading-group.atom.js +0 -108
- package/sdk/atoms/atoms/tab-heading-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/tab-heading.atom.d.ts +0 -8
- package/sdk/atoms/atoms/tab-heading.atom.js +0 -52
- package/sdk/atoms/atoms/tab-heading.atom.js.map +0 -1
- package/sdk/atoms/atoms/table.atom.d.ts +0 -73
- package/sdk/atoms/atoms/table.atom.js +0 -210
- package/sdk/atoms/atoms/table.atom.js.map +0 -1
- package/sdk/atoms/atoms/textbox-number.atom.d.ts +0 -18
- package/sdk/atoms/atoms/textbox-number.atom.js +0 -53
- package/sdk/atoms/atoms/textbox-number.atom.js.map +0 -1
- package/sdk/atoms/atoms/textbox.atom.d.ts +0 -22
- package/sdk/atoms/atoms/textbox.atom.js +0 -59
- package/sdk/atoms/atoms/textbox.atom.js.map +0 -1
- package/sdk/atoms/atoms/time-frame-bar.atom.d.ts +0 -22
- package/sdk/atoms/atoms/time-frame-bar.atom.js +0 -84
- package/sdk/atoms/atoms/time-frame-bar.atom.js.map +0 -1
- package/sdk/atoms/atoms/time-frame-picker.atom.d.ts +0 -7
- package/sdk/atoms/atoms/time-frame-picker.atom.js +0 -36
- package/sdk/atoms/atoms/time-frame-picker.atom.js.map +0 -1
- package/sdk/atoms/atoms/timepicker.atom.d.ts +0 -18
- package/sdk/atoms/atoms/timepicker.atom.js +0 -64
- package/sdk/atoms/atoms/timepicker.atom.js.map +0 -1
- package/sdk/atoms/atoms/toast.atom.d.ts +0 -28
- package/sdk/atoms/atoms/toast.atom.js +0 -67
- package/sdk/atoms/atoms/toast.atom.js.map +0 -1
- package/sdk/atoms/atoms/toolbar.atom.d.ts +0 -18
- package/sdk/atoms/atoms/toolbar.atom.js +0 -87
- package/sdk/atoms/atoms/toolbar.atom.js.map +0 -1
- package/sdk/atoms/atoms/tooltip.atom.d.ts +0 -9
- package/sdk/atoms/atoms/tooltip.atom.js +0 -38
- package/sdk/atoms/atoms/tooltip.atom.js.map +0 -1
- package/sdk/atoms/atoms/tree.atom.d.ts +0 -17
- package/sdk/atoms/atoms/tree.atom.js +0 -87
- package/sdk/atoms/atoms/tree.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-step.atom.d.ts +0 -11
- package/sdk/atoms/atoms/wizard-step.atom.js +0 -52
- package/sdk/atoms/atoms/wizard-step.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2-footer.atom.d.ts +0 -7
- package/sdk/atoms/atoms/wizard-v2-footer.atom.js +0 -36
- package/sdk/atoms/atoms/wizard-v2-footer.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.d.ts +0 -7
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.js +0 -41
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2-step.atom.d.ts +0 -5
- package/sdk/atoms/atoms/wizard-v2-step.atom.js +0 -32
- package/sdk/atoms/atoms/wizard-v2-step.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2.atom.d.ts +0 -18
- package/sdk/atoms/atoms/wizard-v2.atom.js +0 -85
- package/sdk/atoms/atoms/wizard-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard.atom.d.ts +0 -22
- package/sdk/atoms/atoms/wizard.atom.js +0 -91
- package/sdk/atoms/atoms/wizard.atom.js.map +0 -1
- package/sdk/atoms/helpers.d.ts +0 -39
- package/sdk/atoms/helpers.js +0 -234
- package/sdk/atoms/helpers.js.map +0 -1
- package/sdk/atoms/index.d.ts +0 -4
- package/sdk/atoms/index.js +0 -30
- package/sdk/atoms/index.js.map +0 -1
- package/sdk/atoms/virtual-camera/Camera.d.ts +0 -21
- package/sdk/atoms/virtual-camera/Camera.js +0 -54
- package/sdk/atoms/virtual-camera/Camera.js.map +0 -1
- package/sdk/atoms/virtual-camera/camera-engine.d.ts +0 -13
- package/sdk/atoms/virtual-camera/camera-engine.js +0 -81
- package/sdk/atoms/virtual-camera/camera-engine.js.map +0 -1
- package/sdk/atoms/virtual-camera/camera-settings.d.ts +0 -10
- package/sdk/atoms/virtual-camera/camera-settings.js +0 -59
- package/sdk/atoms/virtual-camera/camera-settings.js.map +0 -1
- package/sdk/atoms/virtual-camera/camera-toggle.d.ts +0 -7
- package/sdk/atoms/virtual-camera/camera-toggle.js +0 -40
- package/sdk/atoms/virtual-camera/camera-toggle.js.map +0 -1
- package/sdk/atoms/virtual-camera/percy-lens.d.ts +0 -17
- package/sdk/atoms/virtual-camera/percy-lens.js +0 -84
- package/sdk/atoms/virtual-camera/percy-lens.js.map +0 -1
- package/sdk/atoms/virtual-camera/public_api.d.ts +0 -2
- package/sdk/atoms/virtual-camera/public_api.js +0 -25
- package/sdk/atoms/virtual-camera/public_api.js.map +0 -1
- package/sdk/atoms/virtual-camera/types.d.ts +0 -35
- package/sdk/atoms/virtual-camera/types.js +0 -50
- package/sdk/atoms/virtual-camera/types.js.map +0 -1
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.ResizerAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
class ResizerAtom extends atom_1.Atom {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.root = this.getElement();
|
|
30
|
-
this.resizeSplitElement = this.root.element(protractor_1.by.className("nui-resize-gutter__split"));
|
|
31
|
-
this.moveRight = (pixelValue) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.resizeElement({ x: pixelValue, y: 0 }); });
|
|
32
|
-
this.moveLeft = (pixelValue) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.resizeElement({ x: -pixelValue, y: 0 }); });
|
|
33
|
-
this.moveUp = (pixelValue) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.resizeElement({ x: 0, y: pixelValue }); });
|
|
34
|
-
this.moveDown = (pixelValue) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.resizeElement({ x: 0, y: -pixelValue }); });
|
|
35
|
-
this.getResizeDirection = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const className = yield this.resizeSplitElement.getAttribute("class");
|
|
37
|
-
return className.includes("horizontal") ? "horizontal" : "vertical";
|
|
38
|
-
});
|
|
39
|
-
this.resizeElement = (resizeCoords) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
yield this.hover();
|
|
41
|
-
yield protractor_1.browser
|
|
42
|
-
.actions()
|
|
43
|
-
.mouseDown(yield this.root.getWebElement())
|
|
44
|
-
.perform();
|
|
45
|
-
yield protractor_1.browser.actions().mouseMove(resizeCoords).perform();
|
|
46
|
-
return protractor_1.browser.actions().mouseUp().perform();
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.ResizerAtom = ResizerAtom;
|
|
51
|
-
ResizerAtom.CSS_CLASS = "nui-resize-gutter";
|
|
52
|
-
//# sourceMappingURL=resizer.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizer.atom.js","s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,uBAAkB,GAAG,GAE1B,EAAE;YACA,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YACtE,OAAO,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC;QACxE,CAAC,CAAA,CAAC;QAEM,kBAAa,GAAG,CAAO,YAAuB,EAAiB,EAAE;YACrE,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACnB,MAAM,oBAAO;iBACR,OAAO,EAAE;iBACT,SAAS,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;iBAC1C,OAAO,EAAE,CAAC;YACf,MAAM,oBAAO,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;YAC1D,OAAO,oBAAO,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC;QACjD,CAAC,CAAA,CAAC;IACN,CAAC;;AApCD,kCAoCC;AAnCiB,qBAAS,GAAG,mBAAmB,AAAtB,CAAuB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
import { ButtonAtom } from "./button.atom";
|
|
3
|
-
export declare class SearchAtom extends Atom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
acceptInput(input: string): Promise<void>;
|
|
6
|
-
click(): Promise<void>;
|
|
7
|
-
getCancelButton(): ButtonAtom;
|
|
8
|
-
getSearchButton(): ButtonAtom;
|
|
9
|
-
getValueAttr(): Promise<string>;
|
|
10
|
-
isFocused(): Promise<boolean>;
|
|
11
|
-
hasError(): Promise<boolean>;
|
|
12
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SearchAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const button_atom_1 = require("./button.atom");
|
|
27
|
-
class SearchAtom extends atom_1.Atom {
|
|
28
|
-
acceptInput(input) {
|
|
29
|
-
const _super = Object.create(null, {
|
|
30
|
-
getElement: { get: () => super.getElement }
|
|
31
|
-
});
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
yield _super.getElement.call(this)
|
|
34
|
-
.element(protractor_1.by.css(".nui-search__input-control"))
|
|
35
|
-
.sendKeys(input);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
click() {
|
|
39
|
-
const _super = Object.create(null, {
|
|
40
|
-
getElement: { get: () => super.getElement }
|
|
41
|
-
});
|
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return _super.getElement.call(this).click();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
getCancelButton() {
|
|
47
|
-
return atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.getElement().element(protractor_1.by.css(".nui-search__button-cancel")));
|
|
48
|
-
}
|
|
49
|
-
getSearchButton() {
|
|
50
|
-
return atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.getElement().element(protractor_1.by.css(".nui-button[icon=search]")));
|
|
51
|
-
}
|
|
52
|
-
getValueAttr() {
|
|
53
|
-
const _super = Object.create(null, {
|
|
54
|
-
getElement: { get: () => super.getElement }
|
|
55
|
-
});
|
|
56
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
return _super.getElement.call(this)
|
|
58
|
-
.element(protractor_1.by.tagName("input"))
|
|
59
|
-
.getAttribute("value");
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
isFocused() {
|
|
63
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
const isFocused = this.getElement()
|
|
65
|
-
.element(protractor_1.by.tagName("input"))
|
|
66
|
-
.equals(yield protractor_1.browser.driver.switchTo().activeElement());
|
|
67
|
-
// please, call 'browser.driver.switchTo().defaultContent()' after each calling this method (just in case)
|
|
68
|
-
yield protractor_1.browser.driver.switchTo().defaultContent();
|
|
69
|
-
return isFocused;
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
hasError() {
|
|
73
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
const searchGroup = this.getElement().element(protractor_1.by.css(".nui-search__group"));
|
|
75
|
-
return yield atom_1.Atom.hasClass(searchGroup, "has-error");
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
exports.SearchAtom = SearchAtom;
|
|
80
|
-
SearchAtom.CSS_CLASS = "nui-search";
|
|
81
|
-
//# sourceMappingURL=search.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/search.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,2CAAyC;AAEzC,kCAA+B;AAC/B,+CAA2C;AAE3C,MAAa,UAAW,SAAQ,WAAI;IAGnB,WAAW,CAAC,KAAa;;;;;YAClC,MAAM,OACD,UAAU;iBACV,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;iBAC7C,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;KAAA;IAEY,KAAK;;;;;YACd,OAAO,OAAM,UAAU,YAAG,KAAK,EAAE,CAAC;QACtC,CAAC;KAAA;IAEM,eAAe;QAClB,OAAO,WAAI,CAAC,MAAM,CACd,wBAAU,EACV,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC,CAClE,CAAC;IACN,CAAC;IAEM,eAAe;QAClB,OAAO,WAAI,CAAC,MAAM,CACd,wBAAU,EACV,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,CAChE,CAAC;IACN,CAAC;IAEY,YAAY;;;;;YACrB,OAAO,OACF,UAAU;iBACV,OAAO,CAAC,eAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,YAAY,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC;KAAA;IAEY,SAAS;;YAClB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE;iBAC9B,OAAO,CAAC,eAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,MAAM,CAAC,MAAM,oBAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC;YAC7D,0GAA0G;YAC1G,MAAM,oBAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,cAAc,EAAE,CAAC;YACjD,OAAO,SAAS,CAAC;QACrB,CAAC;KAAA;IAEY,QAAQ;;YACjB,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CACzC,eAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAC/B,CAAC;YACF,OAAO,MAAM,WAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzD,CAAC;KAAA;;AAjDL,gCAkDC;AAjDiB,oBAAS,GAAG,YAAY,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SelectV2OptionAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const atom_1 = require("../atom");
|
|
25
|
-
class SelectV2OptionAtom extends atom_1.Atom {
|
|
26
|
-
click() {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
return this.getElement().click();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
isActive() {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
return this.hasClass("active");
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
getText() {
|
|
37
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
return this.getElement().getText();
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.SelectV2OptionAtom = SelectV2OptionAtom;
|
|
43
|
-
SelectV2OptionAtom.CSS_CLASS = "nui-select-v2-option";
|
|
44
|
-
//# sourceMappingURL=select-v2-option.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-v2-option.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/select-v2-option.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,kCAA+B;AAE/B,MAAa,kBAAmB,SAAQ,WAAI;IAG3B,KAAK;;YACd,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QACrC,CAAC;KAAA;IAEY,QAAQ;;YACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnC,CAAC;KAAA;IAEY,OAAO;;YAChB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC;QACvC,CAAC;KAAA;;AAbL,gDAcC;AAbiB,4BAAS,GAAG,sBAAsB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SelectV2Atom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const base_select_v2_atom_1 = require("./base-select-v2.atom");
|
|
25
|
-
class SelectV2Atom extends base_select_v2_atom_1.BaseSelectV2Atom {
|
|
26
|
-
getInputText() {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
return this.getElement().getText();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.SelectV2Atom = SelectV2Atom;
|
|
33
|
-
SelectV2Atom.CSS_CLASS = "nui-select-v2";
|
|
34
|
-
//# sourceMappingURL=select-v2.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-v2.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/select-v2.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,+DAAyD;AAEzD,MAAa,YAAa,SAAQ,sCAAgB;IAGjC,YAAY;;YACrB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC;QACvC,CAAC;KAAA;;AALL,oCAMC;AALiB,sBAAS,GAAG,eAAe,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementArrayFinder, ElementFinder } from "protractor";
|
|
2
|
-
import { BasicSelectAtom } from "./basic-select.atom";
|
|
3
|
-
export declare class SelectAtom extends BasicSelectAtom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
getCurrentValue: () => Promise<string>;
|
|
6
|
-
isSelectDisabled: () => Promise<boolean>;
|
|
7
|
-
getLayoutBlock: () => ElementFinder;
|
|
8
|
-
getItemsWithNestedClass: () => ElementArrayFinder;
|
|
9
|
-
isRequiredStyleDisplayed: () => Promise<boolean>;
|
|
10
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SelectAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const basic_select_atom_1 = require("./basic-select.atom");
|
|
25
|
-
class SelectAtom extends basic_select_atom_1.BasicSelectAtom {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
this.getCurrentValue = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElementByClass("nui-button__content").getText(); });
|
|
29
|
-
this.isSelectDisabled = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElementByCss(".nui-select__layout-block.disabled").isPresent(); });
|
|
30
|
-
this.getLayoutBlock = () => this.getElementByClass("nui-select__layout-block");
|
|
31
|
-
this.getItemsWithNestedClass = () => this.getElementsByCss(".nui-overlay .select-examples-custom-template");
|
|
32
|
-
this.isRequiredStyleDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.elementHasClass("nui-menu", "has-error"); });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.SelectAtom = SelectAtom;
|
|
36
|
-
SelectAtom.CSS_CLASS = "nui-select";
|
|
37
|
-
//# sourceMappingURL=select.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/select.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAIjB,2DAAsD;AAEtD,MAAa,UAAW,SAAQ,mCAAe;IAA/C;;QAGW,oBAAe,GAAG,GAA0B,EAAE,wDACjD,OAAA,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC,OAAO,EAAE,CAAA,GAAA,CAAC;QAErD,qBAAgB,GAAG,GAA2B,EAAE,wDACnD,OAAA,IAAI,CAAC,eAAe,CAAC,oCAAoC,CAAC,CAAC,SAAS,EAAE,CAAA,GAAA,CAAC;QAEpE,mBAAc,GAAG,GAAkB,EAAE,CACxC,IAAI,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;QAEhD,4BAAuB,GAAG,GAAuB,EAAE,CACtD,IAAI,CAAC,gBAAgB,CAAC,+CAA+C,CAAC,CAAC;QAEpE,6BAAwB,GAAG,GAA2B,EAAE,wDAC3D,OAAA,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAA,GAAA,CAAC;IACtD,CAAC;;AAjBD,gCAiBC;AAhBiB,oBAAS,GAAG,YAAY,AAAf,CAAgB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
import { ButtonAtom } from "./button.atom";
|
|
3
|
-
import { CheckboxAtom } from "./checkbox.atom";
|
|
4
|
-
import { PopupAtom } from "./popup.atom";
|
|
5
|
-
export declare enum SelectionType {
|
|
6
|
-
All = "Select all items on this page",
|
|
7
|
-
UnselectAll = "Unselect all items on this page",
|
|
8
|
-
None = "Unselect all items",
|
|
9
|
-
AllPages = "Select all items on all pages"
|
|
10
|
-
}
|
|
11
|
-
export declare class SelectorAtom extends Atom {
|
|
12
|
-
static CSS_CLASS: string;
|
|
13
|
-
getPopupAtom(): PopupAtom;
|
|
14
|
-
select(selectionType: SelectionType): Promise<void>;
|
|
15
|
-
selectAppendedToBodyItem(selectionType: SelectionType): Promise<void>;
|
|
16
|
-
getCheckbox(): CheckboxAtom;
|
|
17
|
-
getSelectorButton(): ButtonAtom;
|
|
18
|
-
clickItemByText(title: string): Promise<void>;
|
|
19
|
-
clickAppendedToBodyItemByText(title: string): Promise<void>;
|
|
20
|
-
private getToggle;
|
|
21
|
-
private isOpened;
|
|
22
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SelectorAtom = exports.SelectionType = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const button_atom_1 = require("./button.atom");
|
|
27
|
-
const checkbox_atom_1 = require("./checkbox.atom");
|
|
28
|
-
const menu_popup_atom_1 = require("./menu-popup.atom");
|
|
29
|
-
const popup_atom_1 = require("./popup.atom");
|
|
30
|
-
var SelectionType;
|
|
31
|
-
(function (SelectionType) {
|
|
32
|
-
SelectionType["All"] = "Select all items on this page";
|
|
33
|
-
SelectionType["UnselectAll"] = "Unselect all items on this page";
|
|
34
|
-
SelectionType["None"] = "Unselect all items";
|
|
35
|
-
SelectionType["AllPages"] = "Select all items on all pages";
|
|
36
|
-
})(SelectionType || (exports.SelectionType = SelectionType = {}));
|
|
37
|
-
class SelectorAtom extends atom_1.Atom {
|
|
38
|
-
getPopupAtom() {
|
|
39
|
-
return atom_1.Atom.findIn(popup_atom_1.PopupAtom, this.getElement());
|
|
40
|
-
}
|
|
41
|
-
select(selectionType) {
|
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
if (!(yield this.isOpened())) {
|
|
44
|
-
yield this.getToggle().click();
|
|
45
|
-
}
|
|
46
|
-
yield this.clickItemByText(selectionType);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
selectAppendedToBodyItem(selectionType) {
|
|
50
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
if (!(yield this.getPopupAtom().isOpenedAppendToBody())) {
|
|
52
|
-
yield this.getToggle().click();
|
|
53
|
-
}
|
|
54
|
-
const menuPopup = atom_1.Atom.findIn(menu_popup_atom_1.MenuPopupAtom, this.getElement().element(protractor_1.by.className("nui-menu-popup")));
|
|
55
|
-
yield protractor_1.browser.wait(protractor_1.ExpectedConditions.stalenessOf(menuPopup.getElement()), 3000 // this is mostly for table. 1000ms may be not enough
|
|
56
|
-
);
|
|
57
|
-
yield this.clickAppendedToBodyItemByText(selectionType);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
getCheckbox() {
|
|
61
|
-
return atom_1.Atom.findIn(checkbox_atom_1.CheckboxAtom, this.getElement());
|
|
62
|
-
}
|
|
63
|
-
getSelectorButton() {
|
|
64
|
-
const buttonContainer = super
|
|
65
|
-
.getElement()
|
|
66
|
-
.element(protractor_1.by.className("nui-selector__checkbox-button"));
|
|
67
|
-
return atom_1.Atom.findIn(button_atom_1.ButtonAtom, buttonContainer);
|
|
68
|
-
}
|
|
69
|
-
clickItemByText(title) {
|
|
70
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
yield atom_1.Atom.findIn(menu_popup_atom_1.MenuPopupAtom, this.getElement().element(protractor_1.by.className("nui-menu-popup"))).clickItemByText(title);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
clickAppendedToBodyItemByText(title) {
|
|
75
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
yield atom_1.Atom.findIn(menu_popup_atom_1.MenuPopupAtom, protractor_1.browser.element(protractor_1.by.css("body .nui-overlay .nui-menu-popup"))).clickItemByText(title);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
getToggle() {
|
|
80
|
-
return this.getElement().element(protractor_1.by.css(".nui-selector__toggle"));
|
|
81
|
-
}
|
|
82
|
-
isOpened() {
|
|
83
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
return this.getPopupAtom().isOpened();
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.SelectorAtom = SelectorAtom;
|
|
89
|
-
SelectorAtom.CSS_CLASS = "nui-selector";
|
|
90
|
-
//# sourceMappingURL=selector.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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AAO,IAAI,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC;QAC1C,CAAC;KAAA;;AA9DL,oCA+DC;AA9DiB,sBAAS,GAAG,cAAc,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ElementArrayFinder, ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
import { ButtonAtom } from "./button.atom";
|
|
4
|
-
import { MenuPopupAtom } from "./menu-popup.atom";
|
|
5
|
-
export declare class SorterAtom extends Atom {
|
|
6
|
-
static CSS_SELECTOR: string;
|
|
7
|
-
menuPopup: MenuPopupAtom;
|
|
8
|
-
click(): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* Toggle sorter and select a new item from the options.
|
|
11
|
-
*/
|
|
12
|
-
select(title: string): Promise<void>;
|
|
13
|
-
getItemByIndex(index: number): ElementFinder;
|
|
14
|
-
getNumberOfItems(): Promise<number>;
|
|
15
|
-
getItemText(idx: number): Promise<string>;
|
|
16
|
-
clickItemByText(title: string): Promise<void>;
|
|
17
|
-
getCaptionText(): Promise<string>;
|
|
18
|
-
/**
|
|
19
|
-
* To manipulate with sorter button.
|
|
20
|
-
*/
|
|
21
|
-
getSorterButton(): ButtonAtom;
|
|
22
|
-
/**
|
|
23
|
-
* @returns {string} The value displayed in sorter.
|
|
24
|
-
*/
|
|
25
|
-
getCurrentValue(): Promise<string>;
|
|
26
|
-
getLabelElement(): ElementFinder;
|
|
27
|
-
getItems(): ElementArrayFinder;
|
|
28
|
-
getSelectedItems(): ElementArrayFinder;
|
|
29
|
-
isPopupDisplayed(): Promise<boolean>;
|
|
30
|
-
isPopupHidden(): Promise<boolean>;
|
|
31
|
-
private getToggleElement;
|
|
32
|
-
private getMainTitleElement;
|
|
33
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
// of this software and associated documentation files (the "Software"), to
|
|
6
|
-
// deal in the Software without restriction, including without limitation the
|
|
7
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
// furnished to do so, subject to the following conditions:
|
|
10
|
-
//
|
|
11
|
-
// The above copyright notice and this permission notice shall be included in
|
|
12
|
-
// all copies or substantial portions of the Software.
|
|
13
|
-
//
|
|
14
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
// THE SOFTWARE.
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.SorterAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const button_atom_1 = require("./button.atom");
|
|
27
|
-
const menu_popup_atom_1 = require("./menu-popup.atom");
|
|
28
|
-
const overlay_atom_1 = require("./overlay.atom");
|
|
29
|
-
class SorterAtom extends atom_1.Atom {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(...arguments);
|
|
32
|
-
this.menuPopup = atom_1.Atom.findIn(menu_popup_atom_1.MenuPopupAtom, this.getElement());
|
|
33
|
-
}
|
|
34
|
-
click() {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
yield this.getToggleElement().click();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Toggle sorter and select a new item from the options.
|
|
41
|
-
*/
|
|
42
|
-
select(title) {
|
|
43
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
// Have to click (toggle the repeat) first because
|
|
45
|
-
// you can't interact with hidden elements.
|
|
46
|
-
yield this.click();
|
|
47
|
-
yield this.clickItemByText(title);
|
|
48
|
-
yield protractor_1.browser.wait(() => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.isPopupHidden(); }));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
getItemByIndex(index) {
|
|
52
|
-
return this.getItems().get(index);
|
|
53
|
-
}
|
|
54
|
-
getNumberOfItems() {
|
|
55
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
return this.getItems().count();
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
getItemText(idx) {
|
|
60
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const item = this.getItemByIndex(idx);
|
|
62
|
-
return item
|
|
63
|
-
.getAttribute("innerText")
|
|
64
|
-
.then((text) => text.trim());
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
clickItemByText(title) {
|
|
68
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
this.menuPopup.clickItemByText(title);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
getCaptionText() {
|
|
73
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
const item = this.getLabelElement();
|
|
75
|
-
return item.getAttribute("innerText");
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* To manipulate with sorter button.
|
|
80
|
-
*/
|
|
81
|
-
getSorterButton() {
|
|
82
|
-
return atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.getElement().element(protractor_1.by.className("nui-sorter__toggle-button")));
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @returns {string} The value displayed in sorter.
|
|
86
|
-
*/
|
|
87
|
-
getCurrentValue() {
|
|
88
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
return yield this.getMainTitleElement().getText();
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
getLabelElement() {
|
|
93
|
-
return super.getElement().element(protractor_1.by.className("nui-sorter__label"));
|
|
94
|
-
}
|
|
95
|
-
getItems() {
|
|
96
|
-
return this.menuPopup.getItems();
|
|
97
|
-
}
|
|
98
|
-
getSelectedItems() {
|
|
99
|
-
return this.menuPopup.getSelectedItems();
|
|
100
|
-
}
|
|
101
|
-
isPopupDisplayed() {
|
|
102
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
103
|
-
return atom_1.Atom.findIn(overlay_atom_1.OverlayAtom, this.getElement()).isOpened();
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
isPopupHidden() {
|
|
107
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
return !(yield this.isPopupDisplayed());
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
// private helpers
|
|
112
|
-
getToggleElement() {
|
|
113
|
-
return super.getElement().element(protractor_1.by.className("nui-selector__toggle"));
|
|
114
|
-
}
|
|
115
|
-
getMainTitleElement() {
|
|
116
|
-
return super
|
|
117
|
-
.getElement()
|
|
118
|
-
.element(protractor_1.by.className("nui-sorter__display-value"));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.SorterAtom = SorterAtom;
|
|
122
|
-
SorterAtom.CSS_SELECTOR = "nui-sorter";
|
|
123
|
-
//# sourceMappingURL=sorter.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sorter.atom.js","sourceR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kBAAkB;IACV,gBAAgB;QACpB,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC5E,CAAC;IAEO,mBAAmB;QACvB,OAAO,KAAK;aACP,UAAU,EAAE;aACZ,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC,CAAC;IAC5D,CAAC;;AA7FL,gCA8FC;AA7FiB,uBAAY,GAAG,YAAY,AAAf,CAAgB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ISize } from "selenium-webdriver";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
export declare class SpinnerAtom extends Atom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
static defaultDelay: number;
|
|
6
|
-
private root;
|
|
7
|
-
getSize: () => Promise<ISize>;
|
|
8
|
-
waitForDisplayed: (timeout?: number) => Promise<void>;
|
|
9
|
-
waitForHidden: (timeout?: number) => Promise<void>;
|
|
10
|
-
getLabel: () => Promise<string>;
|
|
11
|
-
cancel: () => Promise<void>;
|
|
12
|
-
}
|