@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,68 +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.PopupAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const overlay_content_atom_1 = require("./overlay-content.atom");
|
|
26
|
-
const atom_1 = require("../atom");
|
|
27
|
-
class PopupAtom extends atom_1.Atom {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments);
|
|
30
|
-
this.body = (0, protractor_1.element)(protractor_1.by.tagName("body"));
|
|
31
|
-
this.popupBox = atom_1.Atom.findIn(overlay_content_atom_1.OverlayContentAtom, this.getElement());
|
|
32
|
-
this.popupBoxDetached = atom_1.Atom.findIn(overlay_content_atom_1.OverlayContentAtom, this.body);
|
|
33
|
-
}
|
|
34
|
-
getPopupToggle() {
|
|
35
|
-
return this.getElement().element(protractor_1.by.css("[nuiPopupToggle]"));
|
|
36
|
-
}
|
|
37
|
-
isOpened() {
|
|
38
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
return (yield this.popupBox.count(this.getElement())) === 1;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
isOpenedAppendToBody() {
|
|
43
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
return (yield this.popupBoxDetached.count()) === 1;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
open() {
|
|
48
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
const toggle = this.getPopupToggle();
|
|
50
|
-
yield toggle.click();
|
|
51
|
-
return protractor_1.browser.wait(protractor_1.ExpectedConditions.visibilityOf(this.popupBox.getElement()), 500);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
getPopupBox() {
|
|
55
|
-
return this.popupBox.getElement();
|
|
56
|
-
}
|
|
57
|
-
getPopupBoxDetached() {
|
|
58
|
-
return this.popupBoxDetached;
|
|
59
|
-
}
|
|
60
|
-
getPopupBoxDetachedArea() {
|
|
61
|
-
return this.popupBoxDetached
|
|
62
|
-
.getElement()
|
|
63
|
-
.element(protractor_1.by.css(".nui-popup__area"));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.PopupAtom = PopupAtom;
|
|
67
|
-
PopupAtom.CSS_CLASS = "nui-popup";
|
|
68
|
-
//# sourceMappingURL=popup.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/popup.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,2CAMoB;AAEpB,iEAA4D;AAC5D,kCAA+B;AAE/B,MAAa,SAAU,SAAQ,WAAI;IAAnC;;QAEY,SAAI,GAAG,IAAA,oBAAO,EAAC,eAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QAEnC,aAAQ,GAAG,WAAI,CAAC,MAAM,CAAC,yCAAkB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC9D,qBAAgB,GAAG,WAAI,CAAC,MAAM,CAAC,yCAAkB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAoC1E,CAAC;IAlCU,cAAc;QACjB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACjE,CAAC;IAEY,QAAQ;;YACjB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAChE,CAAC;KAAA;IAEY,oBAAoB;;YAC7B,OAAO,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;QACvD,CAAC;KAAA;IAEY,IAAI;;YACb,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YACrC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;YACrB,OAAO,oBAAO,CAAC,IAAI,CACf,+BAAkB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,EAC3D,GAAG,CACN,CAAC;QACN,CAAC;KAAA;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACtC,CAAC;IAEM,mBAAmB;QACtB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAEM,uBAAuB;QAC1B,OAAO,IAAI,CAAC,gBAAgB;aACvB,UAAU,EAAE;aACZ,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC7C,CAAC;;AAxCL,8BAyCC;AAxCiB,mBAAS,GAAG,WAAW,AAAd,CAAe"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
import { ButtonAtom } from "./button.atom";
|
|
3
|
-
export declare class ProgressAtom extends Atom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
getCancelButton: () => ButtonAtom;
|
|
6
|
-
canCancel: () => Promise<boolean>;
|
|
7
|
-
cancelProgress: () => Promise<void>;
|
|
8
|
-
getWidth: () => Promise<number>;
|
|
9
|
-
getLabel: () => Promise<string>;
|
|
10
|
-
getPercent: () => Promise<string>;
|
|
11
|
-
getOptionalDescription: () => Promise<string>;
|
|
12
|
-
isProgressBarDisplayed: () => Promise<boolean>;
|
|
13
|
-
isIndeterminate(): Promise<boolean>;
|
|
14
|
-
}
|
|
@@ -1,65 +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.ProgressAtom = 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 ProgressAtom extends atom_1.Atom {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments);
|
|
30
|
-
this.getCancelButton = () => atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.getElement().element(protractor_1.by.className("nui-progress__cancel")));
|
|
31
|
-
this.canCancel = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield this.getCancelButton().isPresent(); });
|
|
32
|
-
this.cancelProgress = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield this.getCancelButton().click(); });
|
|
33
|
-
this.getWidth = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
return Number((yield this.getElement().getCssValue("width")).replace("px", ""));
|
|
35
|
-
});
|
|
36
|
-
this.getLabel = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
return yield this.getElement()
|
|
38
|
-
.element(protractor_1.by.className("nui-progress__message"))
|
|
39
|
-
.getText();
|
|
40
|
-
});
|
|
41
|
-
this.getPercent = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
return yield this.getElement()
|
|
43
|
-
.element(protractor_1.by.className("nui-progress__number"))
|
|
44
|
-
.getText();
|
|
45
|
-
});
|
|
46
|
-
this.getOptionalDescription = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
return yield this.getElement()
|
|
48
|
-
.element(protractor_1.by.className("nui-progress__hint"))
|
|
49
|
-
.getText();
|
|
50
|
-
});
|
|
51
|
-
this.isProgressBarDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
return yield this.getElement()
|
|
53
|
-
.element(protractor_1.by.className("nui-progress__bar"))
|
|
54
|
-
.isDisplayed();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
isIndeterminate() {
|
|
58
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
return yield atom_1.Atom.hasClass(this.getElement().element(protractor_1.by.className("nui-progress__bar")), "nui-progress--indeterminate");
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.ProgressAtom = ProgressAtom;
|
|
64
|
-
ProgressAtom.CSS_CLASS = "nui-progress";
|
|
65
|
-
//# sourceMappingURL=progress.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/progress.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,2CAAgC;AAEhC,kCAA+B;AAC/B,+CAA2C;AAE3C,MAAa,YAAa,SAAQ,WAAI;IAAtC;;QAGW,oBAAe,GAAG,GAAe,EAAE,CACtC,WAAI,CAAC,MAAM,CACP,wBAAU,EACV,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC,CAClE,CAAC;QAEC,cAAS,GAAG,GAA2B,EAAE,wDAC5C,OAAA,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,CAAA,GAAA,CAAC;QAEtC,mBAAc,GAAG,GAAwB,EAAE,wDAC9C,OAAA,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,CAAA,GAAA,CAAC;QAElC,aAAQ,GAAG,GAA0B,EAAE;YAC1C,OAAA,MAAM,CACF,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CACnE,CAAA;UAAA,CAAC;QAEC,aAAQ,GAAG,GAA0B,EAAE;YAC1C,OAAA,MAAM,IAAI,CAAC,UAAU,EAAE;iBAClB,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;iBAC9C,OAAO,EAAE,CAAA;UAAA,CAAC;QAEZ,eAAU,GAAG,GAA0B,EAAE;YAC5C,OAAA,MAAM,IAAI,CAAC,UAAU,EAAE;iBAClB,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;iBAC7C,OAAO,EAAE,CAAA;UAAA,CAAC;QAEZ,2BAAsB,GAAG,GAA0B,EAAE;YACxD,OAAA,MAAM,IAAI,CAAC,UAAU,EAAE;iBAClB,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;iBAC3C,OAAO,EAAE,CAAA;UAAA,CAAC;QAEZ,2BAAsB,GAAG,GAA2B,EAAE;YACzD,OAAA,MAAM,IAAI,CAAC,UAAU,EAAE;iBAClB,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;iBAC1C,WAAW,EAAE,CAAA;UAAA,CAAC;IAQ3B,CAAC;IANgB,eAAe;;YACxB,OAAO,MAAM,WAAI,CAAC,QAAQ,CACtB,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,EAC5D,6BAA6B,CAChC,CAAC;QACN,CAAC;KAAA;;AA7CL,oCA8CC;AA7CiB,sBAAS,GAAG,cAAc,AAAjB,CAAkB"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export * from "./base-select-v2.atom";
|
|
2
|
-
export * from "./basic-select.atom";
|
|
3
|
-
export * from "./breadcrumb.atom";
|
|
4
|
-
export * from "./busy.atom";
|
|
5
|
-
export * from "./button.atom";
|
|
6
|
-
export * from "./cdk-drop-item.atom";
|
|
7
|
-
export * from "./cdk-drop-list.atom";
|
|
8
|
-
export * from "./checkbox-group.atom";
|
|
9
|
-
export * from "./checkbox.atom";
|
|
10
|
-
export * from "./chips.atom";
|
|
11
|
-
export * from "./combobox-v2.atom";
|
|
12
|
-
export * from "./combobox.atom";
|
|
13
|
-
export * from "./content.atom";
|
|
14
|
-
export * from "./datepicker.atom";
|
|
15
|
-
export * from "./datetimepicker.atom";
|
|
16
|
-
export * from "./dialog.atom";
|
|
17
|
-
export * from "./divider.atom";
|
|
18
|
-
export * from "./expander.atom";
|
|
19
|
-
export * from "./form-field.atom";
|
|
20
|
-
export * from "./freetype-query-builder.atom";
|
|
21
|
-
export * from "./icon.atom";
|
|
22
|
-
export * from "./image.atom";
|
|
23
|
-
export * from "./layout-sheet-group.atom";
|
|
24
|
-
export * from "./layout-sheet.atom";
|
|
25
|
-
export * from "./menu-item.atom";
|
|
26
|
-
export * from "./menu-popup.atom";
|
|
27
|
-
export * from "./menu.atom";
|
|
28
|
-
export * from "./message.atom";
|
|
29
|
-
export * from "./overlay-content.atom";
|
|
30
|
-
export * from "./overlay.atom";
|
|
31
|
-
export * from "./paginator.atom";
|
|
32
|
-
export * from "./panel.atom";
|
|
33
|
-
export * from "./popover.atom";
|
|
34
|
-
export * from "./popup.atom";
|
|
35
|
-
export * from "./progress.atom";
|
|
36
|
-
export * from "./quick-picker.atom";
|
|
37
|
-
export * from "./radio-group.atom";
|
|
38
|
-
export * from "./repeat.atom";
|
|
39
|
-
export * from "./resizer.atom";
|
|
40
|
-
export * from "./search.atom";
|
|
41
|
-
export * from "./select-v2-option.atom";
|
|
42
|
-
export * from "./select-v2.atom";
|
|
43
|
-
export * from "./select.atom";
|
|
44
|
-
export * from "./selector.atom";
|
|
45
|
-
export * from "./sorter.atom";
|
|
46
|
-
export * from "./spinner.atom";
|
|
47
|
-
export * from "./switch.atom";
|
|
48
|
-
export * from "./tab-heading-group.atom";
|
|
49
|
-
export * from "./tab-heading.atom";
|
|
50
|
-
export * from "./table.atom";
|
|
51
|
-
export * from "./textbox-number.atom";
|
|
52
|
-
export * from "./textbox.atom";
|
|
53
|
-
export * from "./time-frame-bar.atom";
|
|
54
|
-
export * from "./time-frame-picker.atom";
|
|
55
|
-
export * from "./timepicker.atom";
|
|
56
|
-
export * from "./toast.atom";
|
|
57
|
-
export * from "./toolbar.atom";
|
|
58
|
-
export * from "./tooltip.atom";
|
|
59
|
-
export * from "./tree.atom";
|
|
60
|
-
export * from "./wizard-step.atom";
|
|
61
|
-
export * from "./wizard-v2-footer.atom";
|
|
62
|
-
export * from "./wizard-v2-step-header.atom";
|
|
63
|
-
export * from "./wizard-v2-step.atom";
|
|
64
|
-
export * from "./wizard-v2.atom";
|
|
65
|
-
export * from "./wizard.atom";
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./base-select-v2.atom"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./basic-select.atom"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./breadcrumb.atom"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./busy.atom"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./button.atom"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./cdk-drop-item.atom"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./cdk-drop-list.atom"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./checkbox-group.atom"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./checkbox.atom"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./chips.atom"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./combobox-v2.atom"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./combobox.atom"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./content.atom"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./datepicker.atom"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./datetimepicker.atom"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./dialog.atom"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./divider.atom"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./expander.atom"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./form-field.atom"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./freetype-query-builder.atom"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./icon.atom"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./image.atom"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./layout-sheet-group.atom"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./layout-sheet.atom"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./menu-item.atom"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./menu-popup.atom"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./menu.atom"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./message.atom"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./overlay-content.atom"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./overlay.atom"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./paginator.atom"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./panel.atom"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./popover.atom"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./popup.atom"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./progress.atom"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./quick-picker.atom"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./radio-group.atom"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./repeat.atom"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./resizer.atom"), exports);
|
|
43
|
-
tslib_1.__exportStar(require("./search.atom"), exports);
|
|
44
|
-
tslib_1.__exportStar(require("./select-v2-option.atom"), exports);
|
|
45
|
-
tslib_1.__exportStar(require("./select-v2.atom"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./select.atom"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./selector.atom"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./sorter.atom"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./spinner.atom"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./switch.atom"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./tab-heading-group.atom"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./tab-heading.atom"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./table.atom"), exports);
|
|
54
|
-
tslib_1.__exportStar(require("./textbox-number.atom"), exports);
|
|
55
|
-
tslib_1.__exportStar(require("./textbox.atom"), exports);
|
|
56
|
-
tslib_1.__exportStar(require("./time-frame-bar.atom"), exports);
|
|
57
|
-
tslib_1.__exportStar(require("./time-frame-picker.atom"), exports);
|
|
58
|
-
tslib_1.__exportStar(require("./timepicker.atom"), exports);
|
|
59
|
-
tslib_1.__exportStar(require("./toast.atom"), exports);
|
|
60
|
-
tslib_1.__exportStar(require("./toolbar.atom"), exports);
|
|
61
|
-
tslib_1.__exportStar(require("./tooltip.atom"), exports);
|
|
62
|
-
tslib_1.__exportStar(require("./tree.atom"), exports);
|
|
63
|
-
tslib_1.__exportStar(require("./wizard-step.atom"), exports);
|
|
64
|
-
tslib_1.__exportStar(require("./wizard-v2-footer.atom"), exports);
|
|
65
|
-
tslib_1.__exportStar(require("./wizard-v2-step-header.atom"), exports);
|
|
66
|
-
tslib_1.__exportStar(require("./wizard-v2-step.atom"), exports);
|
|
67
|
-
tslib_1.__exportStar(require("./wizard-v2.atom"), exports);
|
|
68
|
-
tslib_1.__exportStar(require("./wizard.atom"), exports);
|
|
69
|
-
//# sourceMappingURL=public_api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../../../spec/atoms/public_api.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,8DAAoC;AACpC,4DAAkC;AAClC,sDAA4B;AAC5B,wDAA8B;AAC9B,+DAAqC;AACrC,+DAAqC;AACrC,gEAAsC;AACtC,0DAAgC;AAChC,uDAA6B;AAC7B,6DAAmC;AACnC,0DAAgC;AAChC,yDAA+B;AAC/B,4DAAkC;AAClC,gEAAsC;AACtC,wDAA8B;AAC9B,yDAA+B;AAC/B,0DAAgC;AAChC,4DAAkC;AAClC,wEAA8C;AAC9C,sDAA4B;AAC5B,uDAA6B;AAC7B,oEAA0C;AAC1C,8DAAoC;AACpC,2DAAiC;AACjC,4DAAkC;AAClC,sDAA4B;AAC5B,yDAA+B;AAC/B,iEAAuC;AACvC,yDAA+B;AAC/B,2DAAiC;AACjC,uDAA6B;AAC7B,yDAA+B;AAC/B,uDAA6B;AAC7B,0DAAgC;AAChC,8DAAoC;AACpC,6DAAmC;AACnC,wDAA8B;AAC9B,yDAA+B;AAC/B,wDAA8B;AAC9B,kEAAwC;AACxC,2DAAiC;AACjC,wDAA8B;AAC9B,0DAAgC;AAChC,wDAA8B;AAC9B,yDAA+B;AAC/B,wDAA8B;AAC9B,mEAAyC;AACzC,6DAAmC;AACnC,uDAA6B;AAC7B,gEAAsC;AACtC,yDAA+B;AAC/B,gEAAsC;AACtC,mEAAyC;AACzC,4DAAkC;AAClC,uDAA6B;AAC7B,yDAA+B;AAC/B,yDAA+B;AAC/B,sDAA4B;AAC5B,6DAAmC;AACnC,kEAAwC;AACxC,uEAA6C;AAC7C,gEAAsC;AACtC,2DAAiC;AACjC,wDAA8B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
export declare class QuickPickerAtom extends Atom {
|
|
3
|
-
static CSS_CLASS: string;
|
|
4
|
-
selectPresetByTitle: (title: string) => Promise<void>;
|
|
5
|
-
hoverPresetByTitle: (title: string) => Promise<void>;
|
|
6
|
-
getSelectedPreset(): Promise<string | null>;
|
|
7
|
-
private getPresetByName;
|
|
8
|
-
}
|
|
@@ -1,49 +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.QuickPickerAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
class QuickPickerAtom extends atom_1.Atom {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.selectPresetByTitle = (title) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getPresetByName(title).click(); });
|
|
30
|
-
this.hoverPresetByTitle = (title) => tslib_1.__awaiter(this, void 0, void 0, function* () { return protractor_1.browser.actions().mouseMove(this.getPresetByName(title)).perform(); });
|
|
31
|
-
}
|
|
32
|
-
getSelectedPreset() {
|
|
33
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const selectedElement = this.getElement().element(protractor_1.by.className("nui-quick-picker__preset--selected"));
|
|
35
|
-
return (yield selectedElement.isPresent())
|
|
36
|
-
? yield selectedElement.getText()
|
|
37
|
-
: null;
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
getPresetByName(title) {
|
|
41
|
-
return this.getElement()
|
|
42
|
-
.all(protractor_1.by.className("nui-quick-picker__preset"))
|
|
43
|
-
.filter((elem) => tslib_1.__awaiter(this, void 0, void 0, function* () { return (yield elem.getText()) === title; }))
|
|
44
|
-
.get(0);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.QuickPickerAtom = QuickPickerAtom;
|
|
48
|
-
QuickPickerAtom.CSS_CLASS = "nui-quick-picker";
|
|
49
|
-
//# sourceMappingURL=quick-picker.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quick-picker.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/quick-picker.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,eAAgB,SAAQ,WAAI;IAAzC;;QAGW,wBAAmB,GAAG,CAAO,KAAa,EAAiB,EAAE,wDAChE,OAAA,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAA,GAAA,CAAC;QAEjC,uBAAkB,GAAG,CAAO,KAAa,EAAiB,EAAE,wDAC/D,OAAA,oBAAO,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAA,GAAA,CAAC;IAmB3E,CAAC;IAjBgB,iBAAiB;;YAC1B,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAC7C,eAAE,CAAC,SAAS,CAAC,oCAAoC,CAAC,CACrD,CAAC;YACF,OAAO,CAAC,MAAM,eAAe,CAAC,SAAS,EAAE,CAAC;gBACtC,CAAC,CAAC,MAAM,eAAe,CAAC,OAAO,EAAE;gBACjC,CAAC,CAAC,IAAI,CAAC;QACf,CAAC;KAAA;IAEO,eAAe,CAAC,KAAa;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE;aACnB,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;aAC7C,MAAM,CACH,CAAO,IAAmB,EAAE,EAAE,wDAAC,OAAA,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,KAAK,CAAA,GAAA,CAClE;aACA,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;;AAzBL,0CA0BC;AAzBiB,yBAAS,GAAG,kBAAkB,AAArB,CAAsB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
export declare class RadioGroupAtom extends Atom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
getValue(): Promise<string>;
|
|
6
|
-
getRadioByValue(value: string): ElementFinder;
|
|
7
|
-
getRadioInputByValue(value: string): ElementFinder;
|
|
8
|
-
getHelpHintText(index: number): Promise<string>;
|
|
9
|
-
getNumberOfItems(): Promise<number>;
|
|
10
|
-
getFirst(): ElementFinder;
|
|
11
|
-
getNumberOfDisabledItems(): Promise<number>;
|
|
12
|
-
isRadioSelected(value: string): Promise<boolean>;
|
|
13
|
-
}
|
|
@@ -1,76 +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.RadioGroupAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
class RadioGroupAtom extends atom_1.Atom {
|
|
27
|
-
getValue() {
|
|
28
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return this.getElement()
|
|
30
|
-
.element(protractor_1.by.css("input:checked"))
|
|
31
|
-
.getAttribute("value");
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
// Finds and returns label element (clickable wrapper of radio button input element),
|
|
35
|
-
// because actual input element is hidden with "appearance: none" and is not clickable
|
|
36
|
-
getRadioByValue(value) {
|
|
37
|
-
return this.getElement()
|
|
38
|
-
.element(protractor_1.by.css(`input[value="${value}"]`))
|
|
39
|
-
.element(protractor_1.by.xpath("../.."));
|
|
40
|
-
}
|
|
41
|
-
// Finds and returns radio button input element
|
|
42
|
-
getRadioInputByValue(value) {
|
|
43
|
-
return this.getElement().element(protractor_1.by.css(`input[value="${value}"]`));
|
|
44
|
-
}
|
|
45
|
-
getHelpHintText(index) {
|
|
46
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
return this.getElement()
|
|
48
|
-
.all(protractor_1.by.css(".nui-help-hint"))
|
|
49
|
-
.get(index)
|
|
50
|
-
.getText();
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
getNumberOfItems() {
|
|
54
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
return this.getElement().all(protractor_1.by.css(".nui-radio")).count();
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
getFirst() {
|
|
59
|
-
return this.getElement().all(protractor_1.by.css(".nui-radio")).first();
|
|
60
|
-
}
|
|
61
|
-
getNumberOfDisabledItems() {
|
|
62
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
return this.getElement()
|
|
64
|
-
.all(protractor_1.by.css(".nui-radio__input[disabled]"))
|
|
65
|
-
.count();
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
isRadioSelected(value) {
|
|
69
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
return this.getRadioInputByValue(value).isSelected();
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.RadioGroupAtom = RadioGroupAtom;
|
|
75
|
-
RadioGroupAtom.CSS_CLASS = "nui-radio-group";
|
|
76
|
-
//# sourceMappingURL=radio-group.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/radio-group.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,2CAA+C;AAE/C,kCAA+B;AAE/B,MAAa,cAAe,SAAQ,WAAI;IAGvB,QAAQ;;YACjB,OAAO,IAAI,CAAC,UAAU,EAAE;iBACnB,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;iBAChC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC;KAAA;IAED,qFAAqF;IACrF,sFAAsF;IAC/E,eAAe,CAAC,KAAa;QAChC,OAAO,IAAI,CAAC,UAAU,EAAE;aACnB,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,gBAAgB,KAAK,IAAI,CAAC,CAAC;aAC1C,OAAO,CAAC,eAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACpC,CAAC;IAED,+CAA+C;IACxC,oBAAoB,CAAC,KAAa;QACrC,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,gBAAgB,KAAK,IAAI,CAAC,CAAC,CAAC;IACxE,CAAC;IAEY,eAAe,CAAC,KAAa;;YACtC,OAAO,IAAI,CAAC,UAAU,EAAE;iBACnB,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;iBAC7B,GAAG,CAAC,KAAK,CAAC;iBACV,OAAO,EAAE,CAAC;QACnB,CAAC;KAAA;IAEY,gBAAgB;;YACzB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAC/D,CAAC;KAAA;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAC/D,CAAC;IAEY,wBAAwB;;YACjC,OAAO,IAAI,CAAC,UAAU,EAAE;iBACnB,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;iBAC1C,KAAK,EAAE,CAAC;QACjB,CAAC;KAAA;IAEY,eAAe,CAAC,KAAa;;YACtC,OAAO,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;QACzD,CAAC;KAAA;;AA7CL,wCA8CC;AA7CiB,wBAAS,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ElementArrayFinder, ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
import { CheckboxAtom } from "./checkbox.atom";
|
|
4
|
-
export declare class RepeatAtom extends Atom {
|
|
5
|
-
static CSS_CLASS: string;
|
|
6
|
-
getItems(): ElementArrayFinder;
|
|
7
|
-
itemCount: () => Promise<number>;
|
|
8
|
-
getItem: (idx: number) => ElementFinder;
|
|
9
|
-
isNormal: () => Promise<boolean>;
|
|
10
|
-
isCompact: () => Promise<boolean>;
|
|
11
|
-
get vScrollViewport(): ElementFinder;
|
|
12
|
-
get vScrollViewportContent(): ElementFinder;
|
|
13
|
-
selectCheckbox: (idx: number) => Promise<void>;
|
|
14
|
-
selectCheckboxes: (...indexes: number[]) => Promise<void>;
|
|
15
|
-
getCheckbox: (idx: number) => CheckboxAtom;
|
|
16
|
-
selectRow: (idx: number) => Promise<void>;
|
|
17
|
-
selectRows: (...indexes: number[]) => Promise<void>;
|
|
18
|
-
selectRadioRow: (idx: number) => Promise<void>;
|
|
19
|
-
selectRadio: (idx: number) => Promise<void>;
|
|
20
|
-
isStriped: () => Promise<boolean>;
|
|
21
|
-
isItemSelected: (idx: number) => Promise<boolean>;
|
|
22
|
-
isEmptyTextPresented(): Promise<boolean>;
|
|
23
|
-
getEmptyText(): Promise<string>;
|
|
24
|
-
getHeaderText(): Promise<string>;
|
|
25
|
-
getVScrollViewportHeight(): Promise<string>;
|
|
26
|
-
getVScrollViewportContentHeight(): Promise<string>;
|
|
27
|
-
}
|
|
@@ -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.RepeatAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const checkbox_atom_1 = require("./checkbox.atom");
|
|
27
|
-
class RepeatAtom extends atom_1.Atom {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(...arguments);
|
|
30
|
-
this.itemCount = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getItems().count(); });
|
|
31
|
-
this.getItem = (idx) => this.getItems().get(idx);
|
|
32
|
-
this.isNormal = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.hasClass("nui-repeat__normal"); });
|
|
33
|
-
this.isCompact = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.hasClass("nui-repeat__compact"); });
|
|
34
|
-
this.selectCheckbox = (idx) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getCheckbox(idx).toggle(); });
|
|
35
|
-
this.selectCheckboxes = (...indexes) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
for (const index of indexes) {
|
|
37
|
-
yield this.selectCheckbox(index);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
this.getCheckbox = (idx) => {
|
|
41
|
-
const checkboxElement = this.getItem(idx).element(protractor_1.by.className("nui-checkbox"));
|
|
42
|
-
return new checkbox_atom_1.CheckboxAtom(checkboxElement);
|
|
43
|
-
};
|
|
44
|
-
this.selectRow = (idx) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getItem(idx).element(protractor_1.by.css(".nui-repeat-item__content")).click(); });
|
|
45
|
-
this.selectRows = (...indexes) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
for (const index of indexes) {
|
|
47
|
-
yield this.selectRow(index);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
this.selectRadioRow = (idx) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getItem(idx).element(protractor_1.by.css(".nui-repeat-item")).click(); });
|
|
51
|
-
this.selectRadio = (idx) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getItem(idx).element(protractor_1.by.css(".nui-radio")).click(); });
|
|
52
|
-
this.isStriped = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const items = this.getItems();
|
|
54
|
-
const lineOneColor = yield items
|
|
55
|
-
.first()
|
|
56
|
-
.getCssValue("background-color");
|
|
57
|
-
const lineTwoColor = yield items.get(1).getCssValue("background-color");
|
|
58
|
-
return lineOneColor !== lineTwoColor;
|
|
59
|
-
});
|
|
60
|
-
this.isItemSelected = (idx) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const classValue = yield this.getItem(idx)
|
|
62
|
-
.element(protractor_1.by.css("li.nui-repeat-item"))
|
|
63
|
-
.getAttribute("class");
|
|
64
|
-
return (classValue === null || classValue === void 0 ? void 0 : classValue.indexOf("nui-repeat-item--selected")) >= 0;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
getItems() {
|
|
68
|
-
return super.getElement().all(protractor_1.by.css(".repeat-group-item"));
|
|
69
|
-
}
|
|
70
|
-
get vScrollViewport() {
|
|
71
|
-
return super
|
|
72
|
-
.getElement()
|
|
73
|
-
.element(protractor_1.by.className("cdk-virtual-scroll-viewport"));
|
|
74
|
-
}
|
|
75
|
-
get vScrollViewportContent() {
|
|
76
|
-
return super
|
|
77
|
-
.getElement()
|
|
78
|
-
.element(protractor_1.by.className("cdk-virtual-scroll-content-wrapper"));
|
|
79
|
-
}
|
|
80
|
-
isEmptyTextPresented() {
|
|
81
|
-
const _super = Object.create(null, {
|
|
82
|
-
getElement: { get: () => super.getElement }
|
|
83
|
-
});
|
|
84
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
return _super.getElement.call(this)
|
|
86
|
-
.element(protractor_1.by.css(".nui-repeat__empty .nui-repeat__empty--main-message"))
|
|
87
|
-
.isPresent();
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
getEmptyText() {
|
|
91
|
-
const _super = Object.create(null, {
|
|
92
|
-
getElement: { get: () => super.getElement }
|
|
93
|
-
});
|
|
94
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
return _super.getElement.call(this)
|
|
96
|
-
.element(protractor_1.by.css(".nui-repeat__empty .nui-repeat__empty--main-message"))
|
|
97
|
-
.getText();
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
getHeaderText() {
|
|
101
|
-
const _super = Object.create(null, {
|
|
102
|
-
getElement: { get: () => super.getElement }
|
|
103
|
-
});
|
|
104
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
return _super.getElement.call(this)
|
|
106
|
-
.element(protractor_1.by.css(".nui-repeat-header"))
|
|
107
|
-
.getText();
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
getVScrollViewportHeight() {
|
|
111
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
return this.vScrollViewport.getCssValue("height");
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
getVScrollViewportContentHeight() {
|
|
116
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
return this.vScrollViewportContent.getCssValue("height");
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.RepeatAtom = RepeatAtom;
|
|
122
|
-
RepeatAtom.CSS_CLASS = "nui-repeat";
|
|
123
|
-
//# sourceMappingURL=repeat.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repeat.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/repeat.atom.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
export declare class ResizerAtom extends Atom {
|
|
3
|
-
static CSS_CLASS: string;
|
|
4
|
-
private root;
|
|
5
|
-
private resizeSplitElement;
|
|
6
|
-
moveRight: (pixelValue: number) => Promise<void>;
|
|
7
|
-
moveLeft: (pixelValue: number) => Promise<void>;
|
|
8
|
-
moveUp: (pixelValue: number) => Promise<void>;
|
|
9
|
-
moveDown: (pixelValue: number) => Promise<void>;
|
|
10
|
-
getResizeDirection: () => Promise<"horizontal" | "vertical">;
|
|
11
|
-
private resizeElement;
|
|
12
|
-
}
|