@nova-ui/bits 20.0.4 → 21.0.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/bundles/css/styles-css-variables.css +1 -1
- package/bundles/css/styles.css +1 -1
- package/fesm2022/nova-ui-bits.mjs +7315 -6599
- 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/public_api.d.ts +1 -0
- package/sdk/atoms-playwright/components/public_api.js +1 -0
- package/sdk/atoms-playwright/components/public_api.js.map +1 -1
- package/sdk/atoms-playwright/components/range-filter/range-filter.atom.d.ts +20 -0
- package/sdk/atoms-playwright/components/range-filter/range-filter.atom.js +70 -0
- package/sdk/atoms-playwright/components/range-filter/range-filter.atom.js.map +1 -0
- 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-dark.less +1 -1
- package/sdk/less/nui-framework-colors.less +15 -15
- 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} +285 -150
- 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,35 +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.OverlayContentAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
class OverlayContentAtom extends atom_1.Atom {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.body = (0, protractor_1.element)(protractor_1.by.tagName("body"));
|
|
30
|
-
this.count = (context) => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield atom_1.Atom.findCount(OverlayContentAtom, context || this.body); });
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.OverlayContentAtom = OverlayContentAtom;
|
|
34
|
-
OverlayContentAtom.CSS_CLASS = "nui-overlay";
|
|
35
|
-
//# sourceMappingURL=overlay-content.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-content.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/overlay-content.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,2CAAwD;AAExD,kCAA+B;AAE/B,MAAa,kBAAmB,SAAQ,WAAI;IAA5C;;QAGY,SAAI,GAAG,IAAA,oBAAO,EAAC,eAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QAEpC,UAAK,GAAG,CAAO,OAAuB,EAAmB,EAAE,wDAC9D,OAAA,MAAM,WAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA,GAAA,CAAC;IACvE,CAAC;;AAPD,gDAOC;AANiB,4BAAS,GAAG,aAAa,AAAhB,CAAiB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
export declare class OverlayAtom extends Atom {
|
|
3
|
-
static CSS_CLASS: string;
|
|
4
|
-
static CDK_CONTAINER: string;
|
|
5
|
-
static CDK_CONTAINER_BOX: string;
|
|
6
|
-
static CDK_CONTAINER_PANE: string;
|
|
7
|
-
static cdkContainer: import("protractor").ElementFinder;
|
|
8
|
-
static cdkContainerBox: import("protractor").ElementFinder;
|
|
9
|
-
static cdkContainerPane: import("protractor").ElementFinder;
|
|
10
|
-
isOpened(): Promise<boolean>;
|
|
11
|
-
}
|
|
@@ -1,41 +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.OverlayAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
class OverlayAtom extends atom_1.Atom {
|
|
27
|
-
isOpened() {
|
|
28
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return OverlayAtom.cdkContainerPane.isPresent();
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.OverlayAtom = OverlayAtom;
|
|
34
|
-
OverlayAtom.CSS_CLASS = "nui-overlay";
|
|
35
|
-
OverlayAtom.CDK_CONTAINER = "cdk-overlay-container";
|
|
36
|
-
OverlayAtom.CDK_CONTAINER_BOX = "cdk-overlay-connected-position-bounding-box";
|
|
37
|
-
OverlayAtom.CDK_CONTAINER_PANE = "cdk-overlay-pane";
|
|
38
|
-
OverlayAtom.cdkContainer = (0, protractor_1.element)(protractor_1.by.className(OverlayAtom.CDK_CONTAINER));
|
|
39
|
-
OverlayAtom.cdkContainerBox = (0, protractor_1.element)(protractor_1.by.className(OverlayAtom.CDK_CONTAINER_BOX));
|
|
40
|
-
OverlayAtom.cdkContainerPane = (0, protractor_1.element)(protractor_1.by.className(OverlayAtom.CDK_CONTAINER_PANE));
|
|
41
|
-
//# sourceMappingURL=overlay.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/overlay.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;AAE/B,MAAa,WAAY,SAAQ,WAAI;IAiBpB,QAAQ;;YACjB,OAAO,WAAW,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;QACpD,CAAC;KAAA;;AAnBL,kCAoBC;AAnBiB,qBAAS,GAAG,aAAa,CAAC;AAC1B,yBAAa,GAAG,uBAAuB,CAAC;AACxC,6BAAiB,GAC3B,6CAA6C,CAAC;AACpC,8BAAkB,GAAG,kBAAkB,CAAC;AAExC,wBAAY,GAAG,IAAA,oBAAO,EAChC,eAAE,CAAC,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAC1C,CAAC;AACY,2BAAe,GAAG,IAAA,oBAAO,EACnC,eAAE,CAAC,SAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAC9C,CAAC;AACY,4BAAgB,GAAG,IAAA,oBAAO,EACpC,eAAE,CAAC,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAC/C,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
import { PopupAtom } from "./popup.atom";
|
|
4
|
-
export declare class PaginatorAtom extends Atom {
|
|
5
|
-
static CSS_CLASS: string;
|
|
6
|
-
popup: PopupAtom;
|
|
7
|
-
private prevNextClass;
|
|
8
|
-
private total;
|
|
9
|
-
constructor(rootElement: ElementFinder);
|
|
10
|
-
getStatusText(): Promise<string>;
|
|
11
|
-
setItemsPerPage(itemsPerPage: number): Promise<void>;
|
|
12
|
-
getItemsRange: () => Promise<string>;
|
|
13
|
-
pageLinkClick(pageNumber: number): Promise<void>;
|
|
14
|
-
pageLinkVisible(pageNumber: number): Promise<boolean>;
|
|
15
|
-
ellipsedPageLinkClick(pageNumber: number): Promise<void>;
|
|
16
|
-
ellipsisLink(index: number): ElementFinder;
|
|
17
|
-
ellipsisLinkClick: (index: number) => Promise<void>;
|
|
18
|
-
ellipsisLinkDisplayed(index: number): Promise<boolean>;
|
|
19
|
-
prevLink(): ElementFinder;
|
|
20
|
-
nextLink(): ElementFinder;
|
|
21
|
-
arePrevNextLinksDisplayed(): Promise<boolean>;
|
|
22
|
-
activePage(): Promise<number>;
|
|
23
|
-
isActivePage: (page: number) => Promise<boolean>;
|
|
24
|
-
pageCount(): Promise<number>;
|
|
25
|
-
ellipsisHasTopClass(): Promise<boolean>;
|
|
26
|
-
itemsDispHasTopClass(): Promise<boolean>;
|
|
27
|
-
getTotal(): Promise<number>;
|
|
28
|
-
getPageNumberButton(pageNumber: string): ElementFinder;
|
|
29
|
-
}
|
|
@@ -1,199 +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.PaginatorAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const popup_atom_1 = require("./popup.atom");
|
|
27
|
-
const select_v2_atom_1 = require("./select-v2.atom");
|
|
28
|
-
class PaginatorAtom extends atom_1.Atom {
|
|
29
|
-
constructor(rootElement) {
|
|
30
|
-
super(rootElement);
|
|
31
|
-
this.popup = atom_1.Atom.findIn(popup_atom_1.PopupAtom, this.getElement());
|
|
32
|
-
this.prevNextClass = "move-icon";
|
|
33
|
-
this.getItemsRange = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
return this.getStatusText().then((test) => {
|
|
35
|
-
const pages = test.split(" ")[0].split("-");
|
|
36
|
-
const start = parseInt(pages[0], 10);
|
|
37
|
-
const end = parseInt(pages[1], 10);
|
|
38
|
-
return (end - start + 1).toString();
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
this.ellipsisLinkClick = (index) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.ellipsisLink(index).click(); });
|
|
42
|
-
this.isActivePage = (page) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.activePage().then((activePage) => activePage === page); });
|
|
43
|
-
this.total = rootElement.element(protractor_1.by.className("nui-paginator__total"));
|
|
44
|
-
}
|
|
45
|
-
getStatusText() {
|
|
46
|
-
const _super = Object.create(null, {
|
|
47
|
-
getElement: { get: () => super.getElement }
|
|
48
|
-
});
|
|
49
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
return _super.getElement.call(this)
|
|
51
|
-
.all(protractor_1.by.className("nui-paginator__info"))
|
|
52
|
-
.get(0)
|
|
53
|
-
.getText();
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
setItemsPerPage(itemsPerPage) {
|
|
57
|
-
const _super = Object.create(null, {
|
|
58
|
-
getElement: { get: () => super.getElement }
|
|
59
|
-
});
|
|
60
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const selectV2Atom = atom_1.Atom.findIn(select_v2_atom_1.SelectV2Atom, _super.getElement.call(this));
|
|
62
|
-
return selectV2Atom.select(itemsPerPage.toString());
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
pageLinkClick(pageNumber) {
|
|
66
|
-
const _super = Object.create(null, {
|
|
67
|
-
getElement: { get: () => super.getElement }
|
|
68
|
-
});
|
|
69
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
return _super.getElement.call(this)
|
|
71
|
-
.all(protractor_1.by.css(".nui-paginator__list li"))
|
|
72
|
-
.get(pageNumber)
|
|
73
|
-
.click();
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
pageLinkVisible(pageNumber) {
|
|
77
|
-
const _super = Object.create(null, {
|
|
78
|
-
getElement: { get: () => super.getElement }
|
|
79
|
-
});
|
|
80
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
return _super.getElement.call(this)
|
|
82
|
-
.all(protractor_1.by.css(".nui-paginator__list li[value='" + pageNumber + "']"))
|
|
83
|
-
.then((elements) => elements.length === 1);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
ellipsedPageLinkClick(pageNumber) {
|
|
87
|
-
const _super = Object.create(null, {
|
|
88
|
-
getElement: { get: () => super.getElement }
|
|
89
|
-
});
|
|
90
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
const allIttems = yield _super.getElement.call(this)
|
|
92
|
-
.all(protractor_1.by.className("nui-paginator__page-cell"))
|
|
93
|
-
.getText();
|
|
94
|
-
const index = allIttems.findIndex((itemText) => itemText === pageNumber.toString());
|
|
95
|
-
return _super.getElement.call(this)
|
|
96
|
-
.all(protractor_1.by.className("nui-paginator__page-cell"))
|
|
97
|
-
.get(index)
|
|
98
|
-
.click();
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
ellipsisLink(index) {
|
|
102
|
-
return super
|
|
103
|
-
.getElement()
|
|
104
|
-
.all(protractor_1.by.className("nui-paginator__dots"))
|
|
105
|
-
.get(index);
|
|
106
|
-
}
|
|
107
|
-
ellipsisLinkDisplayed(index) {
|
|
108
|
-
const _super = Object.create(null, {
|
|
109
|
-
getElement: { get: () => super.getElement }
|
|
110
|
-
});
|
|
111
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
return _super.getElement.call(this)
|
|
113
|
-
.all(protractor_1.by.className("nui-paginator__dots"))
|
|
114
|
-
.count()
|
|
115
|
-
.then((count) => count > index);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
prevLink() {
|
|
119
|
-
return super.getElement().all(protractor_1.by.className(this.prevNextClass)).get(0);
|
|
120
|
-
}
|
|
121
|
-
nextLink() {
|
|
122
|
-
return super.getElement().all(protractor_1.by.className(this.prevNextClass)).get(1);
|
|
123
|
-
}
|
|
124
|
-
arePrevNextLinksDisplayed() {
|
|
125
|
-
const _super = Object.create(null, {
|
|
126
|
-
getElement: { get: () => super.getElement }
|
|
127
|
-
});
|
|
128
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
return _super.getElement.call(this)
|
|
130
|
-
.all(protractor_1.by.css(".nui-paginator__list li .move-icon"))
|
|
131
|
-
.then((elements) => elements.length === 2);
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
activePage() {
|
|
135
|
-
const _super = Object.create(null, {
|
|
136
|
-
getElement: { get: () => super.getElement }
|
|
137
|
-
});
|
|
138
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
return _super.getElement.call(this)
|
|
140
|
-
.all(protractor_1.by.css(".nui-paginator__list li.active"))
|
|
141
|
-
.get(0)
|
|
142
|
-
.getText()
|
|
143
|
-
.then((text) => parseInt(text, 10));
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
pageCount() {
|
|
147
|
-
const _super = Object.create(null, {
|
|
148
|
-
getElement: { get: () => super.getElement }
|
|
149
|
-
});
|
|
150
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
return _super.getElement.call(this)
|
|
152
|
-
.all(protractor_1.by.css(".nui-paginator__list li"))
|
|
153
|
-
.getAttribute("value")
|
|
154
|
-
.then((arrVal) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
155
|
-
const resultArr = yield arrVal.map((value) => parseInt(value, 10));
|
|
156
|
-
return Math.max(...resultArr);
|
|
157
|
-
}));
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
ellipsisHasTopClass() {
|
|
161
|
-
const _super = Object.create(null, {
|
|
162
|
-
getElement: { get: () => super.getElement }
|
|
163
|
-
});
|
|
164
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
yield this.ellipsisLinkClick(0);
|
|
166
|
-
const dropdownElement = _super.getElement.call(this)
|
|
167
|
-
.all(protractor_1.by.css(".nui-popup__area"))
|
|
168
|
-
.get(0);
|
|
169
|
-
return yield atom_1.Atom.hasClass(dropdownElement, "nui-popup__area--top");
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
itemsDispHasTopClass() {
|
|
173
|
-
const _super = Object.create(null, {
|
|
174
|
-
getElement: { get: () => super.getElement }
|
|
175
|
-
});
|
|
176
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
177
|
-
const itemsShownElem = _super.getElement.call(this)
|
|
178
|
-
.all(protractor_1.by.css(".nui-paginator__items-shown"))
|
|
179
|
-
.get(0);
|
|
180
|
-
yield itemsShownElem.click();
|
|
181
|
-
const dropdownElement = _super.getElement.call(this)
|
|
182
|
-
.all(protractor_1.by.css(".nui-popup__area"))
|
|
183
|
-
.get(0);
|
|
184
|
-
return yield atom_1.Atom.hasClass(dropdownElement, "nui-popup__area--top");
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
getTotal() {
|
|
188
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
const totalText = yield this.total.getText();
|
|
190
|
-
return Number.parseInt(totalText, 10);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
getPageNumberButton(pageNumber) {
|
|
194
|
-
return this.getElement().element(protractor_1.by.cssContainingText("button.nui-button", pageNumber));
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
exports.PaginatorAtom = PaginatorAtom;
|
|
198
|
-
PaginatorAtom.CSS_CLASS = "nui-paginator";
|
|
199
|
-
//# sourceMappingURL=paginator.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginator.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/paginator.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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;QACxE,CAAC;KAAA;IAEY,QAAQ;;YACjB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAE7C,OAAO,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAC1C,CAAC;KAAA;IAEM,mBAAmB,CAAC,UAAkB;QACzC,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAC5B,eAAE,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CACxD,CAAC;IACN,CAAC;;AAhKL,sCAiKC;AAhKiB,uBAAS,GAAG,eAAe,AAAlB,CAAmB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { ISize } from "selenium-webdriver";
|
|
3
|
-
import { Atom } from "../atom";
|
|
4
|
-
import { IconAtom } from "./icon.atom";
|
|
5
|
-
export declare class PanelAtom extends Atom {
|
|
6
|
-
static CSS_CLASS: string;
|
|
7
|
-
static COLLAPSED_CSS: string;
|
|
8
|
-
static HEADER_BUTTON_TOGGLE: string;
|
|
9
|
-
static HEADER_BUTTON_CLOSE: string;
|
|
10
|
-
static HEADER_CONTENT_CSS: string;
|
|
11
|
-
static SIDE_PANE_CSS: string;
|
|
12
|
-
static CENTER_PANE_CSS: string;
|
|
13
|
-
static FOOTER_CONTENT_CSS: string;
|
|
14
|
-
private toggleElement;
|
|
15
|
-
getToggleIcon: () => IconAtom;
|
|
16
|
-
isToggleIconPresent: () => Promise<boolean>;
|
|
17
|
-
toggleExpanded: () => Promise<boolean>;
|
|
18
|
-
closeSidePane: () => Promise<void>;
|
|
19
|
-
hoverOnSidePane: () => Promise<void>;
|
|
20
|
-
getCenterPaneElementSize(): Promise<ISize>;
|
|
21
|
-
getSidePaneElementSize(): Promise<ISize>;
|
|
22
|
-
isPaneDisplayed(orientation: string): Promise<boolean>;
|
|
23
|
-
isCollapsed(): Promise<boolean>;
|
|
24
|
-
isExpanded(): Promise<boolean>;
|
|
25
|
-
getHeaderContent(): ElementFinder;
|
|
26
|
-
isHeaderDisplayed: () => Promise<boolean>;
|
|
27
|
-
getFooterContent(): ElementFinder;
|
|
28
|
-
isFooterDisplayed: () => Promise<boolean>;
|
|
29
|
-
}
|
|
@@ -1,120 +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.PanelAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const icon_atom_1 = require("./icon.atom");
|
|
27
|
-
class PanelAtom extends atom_1.Atom {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments);
|
|
30
|
-
this.toggleElement = this.getElement().element(protractor_1.by.className(PanelAtom.HEADER_BUTTON_TOGGLE));
|
|
31
|
-
this.getToggleIcon = () => atom_1.Atom.findIn(icon_atom_1.IconAtom, this.toggleElement);
|
|
32
|
-
this.isToggleIconPresent = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield this.toggleElement.isPresent(); });
|
|
33
|
-
this.toggleExpanded = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const expanded = yield this.isExpanded();
|
|
35
|
-
yield this.toggleElement.click();
|
|
36
|
-
// Wait for animation to finish
|
|
37
|
-
return protractor_1.browser.wait(() => tslib_1.__awaiter(this, void 0, void 0, function* () { return (yield this.isExpanded()) === !expanded; }), 1000, "Animation timed out");
|
|
38
|
-
});
|
|
39
|
-
this.closeSidePane = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
return yield this.getElement()
|
|
41
|
-
.element(protractor_1.by.className(PanelAtom.HEADER_BUTTON_CLOSE))
|
|
42
|
-
.click();
|
|
43
|
-
});
|
|
44
|
-
this.hoverOnSidePane = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
yield protractor_1.browser
|
|
46
|
-
.actions()
|
|
47
|
-
.mouseMove(this.getElement().element(protractor_1.by.css(`${atom_1.Atom.getSelector(PanelAtom)} .${PanelAtom.SIDE_PANE_CSS}`)))
|
|
48
|
-
.perform();
|
|
49
|
-
});
|
|
50
|
-
this.isHeaderDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getHeaderContent().isDisplayed(); });
|
|
51
|
-
this.isFooterDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getFooterContent().isDisplayed(); });
|
|
52
|
-
}
|
|
53
|
-
getCenterPaneElementSize() {
|
|
54
|
-
const _super = Object.create(null, {
|
|
55
|
-
getElement: { get: () => super.getElement }
|
|
56
|
-
});
|
|
57
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
return _super.getElement.call(this)
|
|
59
|
-
.element(protractor_1.by.className(PanelAtom.CENTER_PANE_CSS))
|
|
60
|
-
.getSize();
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
getSidePaneElementSize() {
|
|
64
|
-
const _super = Object.create(null, {
|
|
65
|
-
getElement: { get: () => super.getElement }
|
|
66
|
-
});
|
|
67
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
return _super.getElement.call(this)
|
|
69
|
-
.element(protractor_1.by.className(PanelAtom.SIDE_PANE_CSS))
|
|
70
|
-
.getSize();
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
isPaneDisplayed(orientation) {
|
|
74
|
-
const _super = Object.create(null, {
|
|
75
|
-
getElement: { get: () => super.getElement }
|
|
76
|
-
});
|
|
77
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
return _super.getElement.call(this)
|
|
79
|
-
.element(protractor_1.by.css(`.${PanelAtom.CSS_CLASS}--${orientation} .${PanelAtom.SIDE_PANE_CSS}`))
|
|
80
|
-
.isDisplayed();
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
isCollapsed() {
|
|
84
|
-
const _super = Object.create(null, {
|
|
85
|
-
hasClass: { get: () => super.hasClass }
|
|
86
|
-
});
|
|
87
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
return _super.hasClass.call(this, PanelAtom.COLLAPSED_CSS);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
isExpanded() {
|
|
92
|
-
const _super = Object.create(null, {
|
|
93
|
-
hasClass: { get: () => super.hasClass }
|
|
94
|
-
});
|
|
95
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
return _super.hasClass.call(this, PanelAtom.COLLAPSED_CSS)
|
|
97
|
-
.then((value) => !value);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
getHeaderContent() {
|
|
101
|
-
return super
|
|
102
|
-
.getElement()
|
|
103
|
-
.element(protractor_1.by.className(PanelAtom.HEADER_CONTENT_CSS));
|
|
104
|
-
}
|
|
105
|
-
getFooterContent() {
|
|
106
|
-
return super
|
|
107
|
-
.getElement()
|
|
108
|
-
.element(protractor_1.by.className(PanelAtom.FOOTER_CONTENT_CSS));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exports.PanelAtom = PanelAtom;
|
|
112
|
-
PanelAtom.CSS_CLASS = "nui-panel";
|
|
113
|
-
PanelAtom.COLLAPSED_CSS = "nui-panel--is-collapsed";
|
|
114
|
-
PanelAtom.HEADER_BUTTON_TOGGLE = "nui-panel__header-btn";
|
|
115
|
-
PanelAtom.HEADER_BUTTON_CLOSE = "nui-panel__header-btn--close";
|
|
116
|
-
PanelAtom.HEADER_CONTENT_CSS = "nui-panel__header";
|
|
117
|
-
PanelAtom.SIDE_PANE_CSS = "nui-panel__side-pane";
|
|
118
|
-
PanelAtom.CENTER_PANE_CSS = "nui-panel__center-pane";
|
|
119
|
-
PanelAtom.FOOTER_CONTENT_CSS = "nui-panel__footer";
|
|
120
|
-
//# sourceMappingURL=panel.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"panel.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/panel.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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ACnB,OAAO,KAAK;aACP,UAAU,EAAE;aACZ,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC7D,CAAC;;AApGL,8BAwGC;AAvGiB,mBAAS,GAAG,WAAW,AAAd,CAAe;AACxB,uBAAa,GAAG,yBAAyB,AAA5B,CAA6B;AAC1C,8BAAoB,GAAG,uBAAuB,AAA1B,CAA2B;AAC/C,6BAAmB,GAAG,8BAA8B,AAAjC,CAAkC;AACrD,4BAAkB,GAAG,mBAAmB,AAAtB,CAAuB;AACzC,uBAAa,GAAG,sBAAsB,AAAzB,CAA0B;AACvC,yBAAe,GAAG,wBAAwB,AAA3B,CAA4B;AAC3C,4BAAkB,GAAG,mBAAmB,AAAtB,CAAuB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
export declare class PopoverAtom extends Atom {
|
|
4
|
-
private root;
|
|
5
|
-
static CSS_CLASS: string;
|
|
6
|
-
static animationDelay: number;
|
|
7
|
-
static readonly backdrop: ElementFinder;
|
|
8
|
-
popoverModalId: string;
|
|
9
|
-
private modalBackdrop;
|
|
10
|
-
private containerAnimationInProgress;
|
|
11
|
-
constructor(root: ElementFinder);
|
|
12
|
-
togglePopover: () => Promise<void>;
|
|
13
|
-
open: () => Promise<void>;
|
|
14
|
-
openByHover: () => Promise<void>;
|
|
15
|
-
closeModal: () => Promise<void>;
|
|
16
|
-
waitForOpen: (timeout?: number) => Promise<void>;
|
|
17
|
-
waitForClosed: (timeout?: number) => Promise<void>;
|
|
18
|
-
isPopoverDisplayed: () => Promise<boolean>;
|
|
19
|
-
getTitle: () => ElementFinder;
|
|
20
|
-
getTitleText: () => Promise<string>;
|
|
21
|
-
isDisplayedRight: () => Promise<boolean>;
|
|
22
|
-
isDisplayedLeft: () => Promise<boolean>;
|
|
23
|
-
isDisplayedTop: () => Promise<boolean>;
|
|
24
|
-
isDisplayedBottom: () => Promise<boolean>;
|
|
25
|
-
clickTarget: () => Promise<void>;
|
|
26
|
-
getPopoverBody: () => ElementFinder;
|
|
27
|
-
private bodyHasClass;
|
|
28
|
-
}
|
|
@@ -1,94 +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.PopoverAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
class PopoverAtom extends atom_1.Atom {
|
|
27
|
-
constructor(root) {
|
|
28
|
-
super(root);
|
|
29
|
-
this.root = root;
|
|
30
|
-
this.modalBackdrop = PopoverAtom.backdrop;
|
|
31
|
-
this.containerAnimationInProgress = (0, protractor_1.$)("div.nui-popover-container-animation.ng-animating");
|
|
32
|
-
this.togglePopover = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const wasDisplayed = yield this.isPopoverDisplayed();
|
|
34
|
-
const hasBackdrop = (yield this.modalBackdrop.isPresent()) &&
|
|
35
|
-
(yield this.modalBackdrop.isDisplayed());
|
|
36
|
-
hasBackdrop
|
|
37
|
-
? yield this.modalBackdrop.click()
|
|
38
|
-
: yield this.clickTarget();
|
|
39
|
-
return wasDisplayed ? this.waitForClosed() : this.waitForOpen();
|
|
40
|
-
});
|
|
41
|
-
this.open = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (yield this.isPopoverDisplayed()) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
yield this.clickTarget();
|
|
46
|
-
return this.waitForOpen();
|
|
47
|
-
});
|
|
48
|
-
this.openByHover = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
if (yield this.isPopoverDisplayed()) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
yield this.hover();
|
|
53
|
-
return this.waitForOpen();
|
|
54
|
-
});
|
|
55
|
-
this.closeModal = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
yield this.modalBackdrop.click();
|
|
57
|
-
return this.waitForClosed();
|
|
58
|
-
});
|
|
59
|
-
this.waitForOpen = (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (timeout = 1000) {
|
|
60
|
-
const errorMessage = "Popover failed to open";
|
|
61
|
-
yield protractor_1.browser.wait(protractor_1.ExpectedConditions.visibilityOf(this.getPopoverBody()), timeout, errorMessage);
|
|
62
|
-
return protractor_1.browser.wait(protractor_1.ExpectedConditions.stalenessOf(this.containerAnimationInProgress), timeout, errorMessage);
|
|
63
|
-
});
|
|
64
|
-
this.waitForClosed = (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (timeout = 1000) {
|
|
65
|
-
return protractor_1.browser.wait(protractor_1.ExpectedConditions.stalenessOf(this.getPopoverBody()), timeout, "Popover failed to close");
|
|
66
|
-
});
|
|
67
|
-
this.isPopoverDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getPopoverBody().isPresent(); });
|
|
68
|
-
this.getTitle = () => (0, protractor_1.$)(".nui-popover-container__title");
|
|
69
|
-
this.getTitleText = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return (0, protractor_1.$)(".nui-popover-container__title").getText(); });
|
|
70
|
-
this.isDisplayedRight = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.bodyHasClass("nui-popover-container--right"); });
|
|
71
|
-
this.isDisplayedLeft = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.bodyHasClass("nui-popover-container--left"); });
|
|
72
|
-
this.isDisplayedTop = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.bodyHasClass("nui-popover-container--top"); });
|
|
73
|
-
this.isDisplayedBottom = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.bodyHasClass("nui-popover-container--bottom"); });
|
|
74
|
-
this.clickTarget = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.root.click(); });
|
|
75
|
-
/*
|
|
76
|
-
!!! WARNING !!!
|
|
77
|
-
As popovers are attached to body by default we should use popoverModalId everywhere!
|
|
78
|
-
Another way is to introduce custom way to identify popover by trigger (like custom attribute),
|
|
79
|
-
so atom will be operating with popover it is responsible for.
|
|
80
|
-
Right now we are taking first available .nui-popover-container from the dom and asume that it is the thing we were looking for.
|
|
81
|
-
Or taking an element inside of content that is completely different from .nui-popover-container.
|
|
82
|
-
That is why we need to call this function every time.
|
|
83
|
-
*/
|
|
84
|
-
this.getPopoverBody = () => this.popoverModalId
|
|
85
|
-
? (0, protractor_1.$)(`#${this.popoverModalId}`)
|
|
86
|
-
: (0, protractor_1.$)(".nui-popover-container");
|
|
87
|
-
this.bodyHasClass = (className) => tslib_1.__awaiter(this, void 0, void 0, function* () { return atom_1.Atom.hasClass(this.getPopoverBody(), className); });
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.PopoverAtom = PopoverAtom;
|
|
91
|
-
PopoverAtom.CSS_CLASS = "nui-popover";
|
|
92
|
-
PopoverAtom.animationDelay = 200;
|
|
93
|
-
PopoverAtom.backdrop = (0, protractor_1.$)(".cdk-overlay-backdrop");
|
|
94
|
-
//# sourceMappingURL=popover.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/popover.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,2CAA2E;AAE3E,kCAA+B;AAE/B,MAAa,WAAY,SAAQ,WAAI;IAYjC,YAAoB,IAAmB;QACnC,KAAK,CAAC,IAAI,CAAC,CAAC;QADI,SAAI,GAAJ,IAAI,CAAe;QAL/B,kBAAa,GAAkB,WAAW,CAAC,QAAQ,CAAC;QACpD,iCAA4B,GAAkB,IAAA,cAAC,EACnD,kDAAkD,CACrD,CAAC;QAMK,kBAAa,GAAG,GAAwB,EAAE;YAC7C,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACrD,MAAM,WAAW,GACb,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS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AC;YAC9B,CAAC,CAAC,IAAA,cAAC,EAAC,wBAAwB,CAAC,CAAC;QAE9B,iBAAY,GAAG,CAAO,SAAiB,EAAoB,EAAE,wDACjE,OAAA,WAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,SAAS,CAAC,CAAA,GAAA,CAAC;IA3FpD,CAAC;;AAdL,kCA0GC;AAzGiB,qBAAS,GAAG,aAAa,AAAhB,CAAiB;AAC1B,0BAAc,GAAG,GAAG,AAAN,CAAO;AACZ,oBAAQ,GAAG,IAAA,cAAC,EAAC,uBAAuB,CAAC,AAA7B,CAA8B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { OverlayContentAtom } from "./overlay-content.atom";
|
|
3
|
-
import { Atom } from "../atom";
|
|
4
|
-
export declare class PopupAtom extends Atom {
|
|
5
|
-
static CSS_CLASS: string;
|
|
6
|
-
private body;
|
|
7
|
-
private popupBox;
|
|
8
|
-
private popupBoxDetached;
|
|
9
|
-
getPopupToggle(): ElementFinder;
|
|
10
|
-
isOpened(): Promise<boolean>;
|
|
11
|
-
isOpenedAppendToBody(): Promise<boolean>;
|
|
12
|
-
open(): Promise<void>;
|
|
13
|
-
getPopupBox(): ElementFinder;
|
|
14
|
-
getPopupBoxDetached(): OverlayContentAtom;
|
|
15
|
-
getPopupBoxDetachedArea(): ElementFinder;
|
|
16
|
-
}
|