@nova-ui/bits 20.0.4 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/css/styles.css +1 -1
- package/fesm2022/nova-ui-bits.mjs +1929 -1537
- package/fesm2022/nova-ui-bits.mjs.map +1 -1
- package/package.json +15 -22
- package/sdk/atoms-playwright/atom.js +5 -3
- package/sdk/atoms-playwright/atom.js.map +1 -1
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.d.ts +0 -1
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js +9 -6
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/chips/chips.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/dialog/dialog.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/menu/menu.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/paginator/paginator.atom.d.ts +1 -0
- package/sdk/atoms-playwright/components/paginator/paginator.atom.js +14 -17
- package/sdk/atoms-playwright/components/paginator/paginator.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/popover/popover.atom.js +4 -1
- package/sdk/atoms-playwright/components/popover/popover.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/select/basic-select.atom.js +4 -2
- package/sdk/atoms-playwright/components/select/basic-select.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/select/select.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/table/table.atom.js +10 -6
- package/sdk/atoms-playwright/components/table/table.atom.js.map +1 -1
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js +3 -1
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js.map +1 -1
- package/sdk/atoms-playwright/setup.js +3 -1
- package/sdk/atoms-playwright/setup.js.map +1 -1
- package/sdk/atoms-playwright/virtual-camera/camera-engine.js +3 -1
- package/sdk/atoms-playwright/virtual-camera/camera-engine.js.map +1 -1
- package/sdk/less/nui-framework-colors.less +13 -13
- package/sdk/schematics/filter-group/index.spec.js +1 -1
- package/sdk/schematics/filter-group/index.spec.js.map +1 -1
- package/sdk/schematics/ng-add/index.spec.js +1 -1
- package/sdk/schematics/ng-add/index.spec.js.map +1 -1
- package/{index.d.ts → types/nova-ui-bits.d.ts} +205 -146
- package/sdk/atoms/atom.d.ts +0 -48
- package/sdk/atoms/atom.js +0 -179
- package/sdk/atoms/atom.js.map +0 -1
- package/sdk/atoms/atoms/base-select-v2.atom.d.ts +0 -30
- package/sdk/atoms/atoms/base-select-v2.atom.js +0 -125
- package/sdk/atoms/atoms/base-select-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/basic-select.atom.d.ts +0 -21
- package/sdk/atoms/atoms/basic-select.atom.js +0 -56
- package/sdk/atoms/atoms/basic-select.atom.js.map +0 -1
- package/sdk/atoms/atoms/breadcrumb.atom.d.ts +0 -11
- package/sdk/atoms/atoms/breadcrumb.atom.js +0 -46
- package/sdk/atoms/atoms/breadcrumb.atom.js.map +0 -1
- package/sdk/atoms/atoms/busy.atom.d.ts +0 -12
- package/sdk/atoms/atoms/busy.atom.js +0 -41
- package/sdk/atoms/atoms/busy.atom.js.map +0 -1
- package/sdk/atoms/atoms/button.atom.d.ts +0 -19
- package/sdk/atoms/atoms/button.atom.js +0 -63
- package/sdk/atoms/atoms/button.atom.js.map +0 -1
- package/sdk/atoms/atoms/cdk-drop-item.atom.d.ts +0 -10
- package/sdk/atoms/atoms/cdk-drop-item.atom.js +0 -58
- package/sdk/atoms/atoms/cdk-drop-item.atom.js.map +0 -1
- package/sdk/atoms/atoms/cdk-drop-list.atom.d.ts +0 -8
- package/sdk/atoms/atoms/cdk-drop-list.atom.js +0 -42
- package/sdk/atoms/atoms/cdk-drop-list.atom.js.map +0 -1
- package/sdk/atoms/atoms/checkbox-group.atom.d.ts +0 -11
- package/sdk/atoms/atoms/checkbox-group.atom.js +0 -69
- package/sdk/atoms/atoms/checkbox-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/checkbox.atom.d.ts +0 -30
- package/sdk/atoms/atoms/checkbox.atom.js +0 -94
- package/sdk/atoms/atoms/checkbox.atom.js.map +0 -1
- package/sdk/atoms/atoms/chips.atom.d.ts +0 -32
- package/sdk/atoms/atoms/chips.atom.js +0 -93
- package/sdk/atoms/atoms/chips.atom.js.map +0 -1
- package/sdk/atoms/atoms/combobox-v2.atom.d.ts +0 -22
- package/sdk/atoms/atoms/combobox-v2.atom.js +0 -100
- package/sdk/atoms/atoms/combobox-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/combobox.atom.d.ts +0 -29
- package/sdk/atoms/atoms/combobox.atom.js +0 -67
- package/sdk/atoms/atoms/combobox.atom.js.map +0 -1
- package/sdk/atoms/atoms/content.atom.d.ts +0 -6
- package/sdk/atoms/atoms/content.atom.js +0 -40
- package/sdk/atoms/atoms/content.atom.js.map +0 -1
- package/sdk/atoms/atoms/datepicker.atom.d.ts +0 -57
- package/sdk/atoms/atoms/datepicker.atom.js +0 -204
- package/sdk/atoms/atoms/datepicker.atom.js.map +0 -1
- package/sdk/atoms/atoms/datetimepicker.atom.d.ts +0 -9
- package/sdk/atoms/atoms/datetimepicker.atom.js +0 -43
- package/sdk/atoms/atoms/datetimepicker.atom.js.map +0 -1
- package/sdk/atoms/atoms/dialog.atom.d.ts +0 -18
- package/sdk/atoms/atoms/dialog.atom.js +0 -77
- package/sdk/atoms/atoms/dialog.atom.js.map +0 -1
- package/sdk/atoms/atoms/divider.atom.d.ts +0 -6
- package/sdk/atoms/atoms/divider.atom.js +0 -45
- package/sdk/atoms/atoms/divider.atom.js.map +0 -1
- package/sdk/atoms/atoms/expander.atom.d.ts +0 -19
- package/sdk/atoms/atoms/expander.atom.js +0 -90
- package/sdk/atoms/atoms/expander.atom.js.map +0 -1
- package/sdk/atoms/atoms/form-field.atom.d.ts +0 -12
- package/sdk/atoms/atoms/form-field.atom.js +0 -73
- package/sdk/atoms/atoms/form-field.atom.js.map +0 -1
- package/sdk/atoms/atoms/freetype-query-builder.atom.d.ts +0 -9
- package/sdk/atoms/atoms/freetype-query-builder.atom.js +0 -51
- package/sdk/atoms/atoms/freetype-query-builder.atom.js.map +0 -1
- package/sdk/atoms/atoms/icon.atom.d.ts +0 -21
- package/sdk/atoms/atoms/icon.atom.js +0 -91
- package/sdk/atoms/atoms/icon.atom.js.map +0 -1
- package/sdk/atoms/atoms/image.atom.d.ts +0 -8
- package/sdk/atoms/atoms/image.atom.js +0 -61
- package/sdk/atoms/atoms/image.atom.js.map +0 -1
- package/sdk/atoms/atoms/layout-sheet-group.atom.d.ts +0 -14
- package/sdk/atoms/atoms/layout-sheet-group.atom.js +0 -91
- package/sdk/atoms/atoms/layout-sheet-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/layout-sheet.atom.d.ts +0 -6
- package/sdk/atoms/atoms/layout-sheet.atom.js +0 -45
- package/sdk/atoms/atoms/layout-sheet.atom.js.map +0 -1
- package/sdk/atoms/atoms/menu-item.atom.d.ts +0 -13
- package/sdk/atoms/atoms/menu-item.atom.js +0 -117
- package/sdk/atoms/atoms/menu-item.atom.js.map +0 -1
- package/sdk/atoms/atoms/menu-popup.atom.d.ts +0 -11
- package/sdk/atoms/atoms/menu-popup.atom.js +0 -57
- package/sdk/atoms/atoms/menu-popup.atom.js.map +0 -1
- package/sdk/atoms/atoms/menu.atom.d.ts +0 -43
- package/sdk/atoms/atoms/menu.atom.js +0 -116
- package/sdk/atoms/atoms/menu.atom.js.map +0 -1
- package/sdk/atoms/atoms/message.atom.d.ts +0 -16
- package/sdk/atoms/atoms/message.atom.js +0 -51
- package/sdk/atoms/atoms/message.atom.js.map +0 -1
- package/sdk/atoms/atoms/overlay-content.atom.d.ts +0 -7
- package/sdk/atoms/atoms/overlay-content.atom.js +0 -35
- package/sdk/atoms/atoms/overlay-content.atom.js.map +0 -1
- package/sdk/atoms/atoms/overlay.atom.d.ts +0 -11
- package/sdk/atoms/atoms/overlay.atom.js +0 -41
- package/sdk/atoms/atoms/overlay.atom.js.map +0 -1
- package/sdk/atoms/atoms/paginator.atom.d.ts +0 -29
- package/sdk/atoms/atoms/paginator.atom.js +0 -199
- package/sdk/atoms/atoms/paginator.atom.js.map +0 -1
- package/sdk/atoms/atoms/panel.atom.d.ts +0 -29
- package/sdk/atoms/atoms/panel.atom.js +0 -120
- package/sdk/atoms/atoms/panel.atom.js.map +0 -1
- package/sdk/atoms/atoms/popover.atom.d.ts +0 -28
- package/sdk/atoms/atoms/popover.atom.js +0 -94
- package/sdk/atoms/atoms/popover.atom.js.map +0 -1
- package/sdk/atoms/atoms/popup.atom.d.ts +0 -16
- package/sdk/atoms/atoms/popup.atom.js +0 -68
- package/sdk/atoms/atoms/popup.atom.js.map +0 -1
- package/sdk/atoms/atoms/progress.atom.d.ts +0 -14
- package/sdk/atoms/atoms/progress.atom.js +0 -65
- package/sdk/atoms/atoms/progress.atom.js.map +0 -1
- package/sdk/atoms/atoms/public_api.d.ts +0 -65
- package/sdk/atoms/atoms/public_api.js +0 -69
- package/sdk/atoms/atoms/public_api.js.map +0 -1
- package/sdk/atoms/atoms/quick-picker.atom.d.ts +0 -8
- package/sdk/atoms/atoms/quick-picker.atom.js +0 -49
- package/sdk/atoms/atoms/quick-picker.atom.js.map +0 -1
- package/sdk/atoms/atoms/radio-group.atom.d.ts +0 -13
- package/sdk/atoms/atoms/radio-group.atom.js +0 -76
- package/sdk/atoms/atoms/radio-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/repeat.atom.d.ts +0 -27
- package/sdk/atoms/atoms/repeat.atom.js +0 -123
- package/sdk/atoms/atoms/repeat.atom.js.map +0 -1
- package/sdk/atoms/atoms/resizer.atom.d.ts +0 -12
- package/sdk/atoms/atoms/resizer.atom.js +0 -52
- package/sdk/atoms/atoms/resizer.atom.js.map +0 -1
- package/sdk/atoms/atoms/search.atom.d.ts +0 -12
- package/sdk/atoms/atoms/search.atom.js +0 -81
- package/sdk/atoms/atoms/search.atom.js.map +0 -1
- package/sdk/atoms/atoms/select-v2-option.atom.d.ts +0 -7
- package/sdk/atoms/atoms/select-v2-option.atom.js +0 -44
- package/sdk/atoms/atoms/select-v2-option.atom.js.map +0 -1
- package/sdk/atoms/atoms/select-v2.atom.d.ts +0 -5
- package/sdk/atoms/atoms/select-v2.atom.js +0 -34
- package/sdk/atoms/atoms/select-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/select.atom.d.ts +0 -10
- package/sdk/atoms/atoms/select.atom.js +0 -37
- package/sdk/atoms/atoms/select.atom.js.map +0 -1
- package/sdk/atoms/atoms/selector.atom.d.ts +0 -22
- package/sdk/atoms/atoms/selector.atom.js +0 -90
- package/sdk/atoms/atoms/selector.atom.js.map +0 -1
- package/sdk/atoms/atoms/sorter.atom.d.ts +0 -33
- package/sdk/atoms/atoms/sorter.atom.js +0 -123
- package/sdk/atoms/atoms/sorter.atom.js.map +0 -1
- package/sdk/atoms/atoms/spinner.atom.d.ts +0 -12
- package/sdk/atoms/atoms/spinner.atom.js +0 -45
- package/sdk/atoms/atoms/spinner.atom.js.map +0 -1
- package/sdk/atoms/atoms/switch.atom.d.ts +0 -14
- package/sdk/atoms/atoms/switch.atom.js +0 -73
- package/sdk/atoms/atoms/switch.atom.js.map +0 -1
- package/sdk/atoms/atoms/tab-heading-group.atom.d.ts +0 -16
- package/sdk/atoms/atoms/tab-heading-group.atom.js +0 -108
- package/sdk/atoms/atoms/tab-heading-group.atom.js.map +0 -1
- package/sdk/atoms/atoms/tab-heading.atom.d.ts +0 -8
- package/sdk/atoms/atoms/tab-heading.atom.js +0 -52
- package/sdk/atoms/atoms/tab-heading.atom.js.map +0 -1
- package/sdk/atoms/atoms/table.atom.d.ts +0 -73
- package/sdk/atoms/atoms/table.atom.js +0 -210
- package/sdk/atoms/atoms/table.atom.js.map +0 -1
- package/sdk/atoms/atoms/textbox-number.atom.d.ts +0 -18
- package/sdk/atoms/atoms/textbox-number.atom.js +0 -53
- package/sdk/atoms/atoms/textbox-number.atom.js.map +0 -1
- package/sdk/atoms/atoms/textbox.atom.d.ts +0 -22
- package/sdk/atoms/atoms/textbox.atom.js +0 -59
- package/sdk/atoms/atoms/textbox.atom.js.map +0 -1
- package/sdk/atoms/atoms/time-frame-bar.atom.d.ts +0 -22
- package/sdk/atoms/atoms/time-frame-bar.atom.js +0 -84
- package/sdk/atoms/atoms/time-frame-bar.atom.js.map +0 -1
- package/sdk/atoms/atoms/time-frame-picker.atom.d.ts +0 -7
- package/sdk/atoms/atoms/time-frame-picker.atom.js +0 -36
- package/sdk/atoms/atoms/time-frame-picker.atom.js.map +0 -1
- package/sdk/atoms/atoms/timepicker.atom.d.ts +0 -18
- package/sdk/atoms/atoms/timepicker.atom.js +0 -64
- package/sdk/atoms/atoms/timepicker.atom.js.map +0 -1
- package/sdk/atoms/atoms/toast.atom.d.ts +0 -28
- package/sdk/atoms/atoms/toast.atom.js +0 -67
- package/sdk/atoms/atoms/toast.atom.js.map +0 -1
- package/sdk/atoms/atoms/toolbar.atom.d.ts +0 -18
- package/sdk/atoms/atoms/toolbar.atom.js +0 -87
- package/sdk/atoms/atoms/toolbar.atom.js.map +0 -1
- package/sdk/atoms/atoms/tooltip.atom.d.ts +0 -9
- package/sdk/atoms/atoms/tooltip.atom.js +0 -38
- package/sdk/atoms/atoms/tooltip.atom.js.map +0 -1
- package/sdk/atoms/atoms/tree.atom.d.ts +0 -17
- package/sdk/atoms/atoms/tree.atom.js +0 -87
- package/sdk/atoms/atoms/tree.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-step.atom.d.ts +0 -11
- package/sdk/atoms/atoms/wizard-step.atom.js +0 -52
- package/sdk/atoms/atoms/wizard-step.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2-footer.atom.d.ts +0 -7
- package/sdk/atoms/atoms/wizard-v2-footer.atom.js +0 -36
- package/sdk/atoms/atoms/wizard-v2-footer.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.d.ts +0 -7
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.js +0 -41
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2-step.atom.d.ts +0 -5
- package/sdk/atoms/atoms/wizard-v2-step.atom.js +0 -32
- package/sdk/atoms/atoms/wizard-v2-step.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard-v2.atom.d.ts +0 -18
- package/sdk/atoms/atoms/wizard-v2.atom.js +0 -85
- package/sdk/atoms/atoms/wizard-v2.atom.js.map +0 -1
- package/sdk/atoms/atoms/wizard.atom.d.ts +0 -22
- package/sdk/atoms/atoms/wizard.atom.js +0 -91
- package/sdk/atoms/atoms/wizard.atom.js.map +0 -1
- package/sdk/atoms/helpers.d.ts +0 -39
- package/sdk/atoms/helpers.js +0 -234
- package/sdk/atoms/helpers.js.map +0 -1
- package/sdk/atoms/index.d.ts +0 -4
- package/sdk/atoms/index.js +0 -30
- package/sdk/atoms/index.js.map +0 -1
- package/sdk/atoms/virtual-camera/Camera.d.ts +0 -21
- package/sdk/atoms/virtual-camera/Camera.js +0 -54
- package/sdk/atoms/virtual-camera/Camera.js.map +0 -1
- package/sdk/atoms/virtual-camera/camera-engine.d.ts +0 -13
- package/sdk/atoms/virtual-camera/camera-engine.js +0 -81
- package/sdk/atoms/virtual-camera/camera-engine.js.map +0 -1
- package/sdk/atoms/virtual-camera/camera-settings.d.ts +0 -10
- package/sdk/atoms/virtual-camera/camera-settings.js +0 -59
- package/sdk/atoms/virtual-camera/camera-settings.js.map +0 -1
- package/sdk/atoms/virtual-camera/camera-toggle.d.ts +0 -7
- package/sdk/atoms/virtual-camera/camera-toggle.js +0 -40
- package/sdk/atoms/virtual-camera/camera-toggle.js.map +0 -1
- package/sdk/atoms/virtual-camera/percy-lens.d.ts +0 -17
- package/sdk/atoms/virtual-camera/percy-lens.js +0 -84
- package/sdk/atoms/virtual-camera/percy-lens.js.map +0 -1
- package/sdk/atoms/virtual-camera/public_api.d.ts +0 -2
- package/sdk/atoms/virtual-camera/public_api.js +0 -25
- package/sdk/atoms/virtual-camera/public_api.js.map +0 -1
- package/sdk/atoms/virtual-camera/types.d.ts +0 -35
- package/sdk/atoms/virtual-camera/types.js +0 -50
- package/sdk/atoms/virtual-camera/types.js.map +0 -1
|
@@ -1,100 +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.ComboboxV2Atom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const isNil_1 = tslib_1.__importDefault(require("lodash/isNil"));
|
|
25
|
-
const protractor_1 = require("protractor");
|
|
26
|
-
const atom_1 = require("../atom");
|
|
27
|
-
const icon_atom_1 = require("./icon.atom");
|
|
28
|
-
const overlay_atom_1 = require("./overlay.atom");
|
|
29
|
-
const base_select_v2_atom_1 = require("./base-select-v2.atom");
|
|
30
|
-
class ComboboxV2Atom extends base_select_v2_atom_1.BaseSelectV2Atom {
|
|
31
|
-
constructor() {
|
|
32
|
-
super(...arguments);
|
|
33
|
-
this.popup = atom_1.Atom.findIn(overlay_atom_1.OverlayAtom, (0, protractor_1.element)(protractor_1.by.className("combobox-v2-test-pane")));
|
|
34
|
-
this.removeAllButton = this.getElement().element(protractor_1.by.className("nui-combobox-v2__remove-value"));
|
|
35
|
-
this.createOption = this.getPopupElement().element(protractor_1.by.className("nui-combobox-v2__create-option"));
|
|
36
|
-
this.toggleButton = this.getElement().element(protractor_1.by.className("nui-combobox-v2__toggle"));
|
|
37
|
-
this.chips = this.getElement().all(protractor_1.by.css("nui-chip"));
|
|
38
|
-
this.activeChip = this.getElement().element(protractor_1.by.css("nui-chip.active"));
|
|
39
|
-
this.activeOption = this.getPopupElement().element(protractor_1.by.css("nui-select-v2-option.active"));
|
|
40
|
-
}
|
|
41
|
-
static type(text) {
|
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return protractor_1.browser.actions().sendKeys(text).perform();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
removeAll() {
|
|
47
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
return this.removeAllButton.click();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
removeChips(amount) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
this.chips.each((chip, i) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
if (!chip || (0, isNil_1.default)(i)) {
|
|
55
|
-
throw new Error("chip is not defined");
|
|
56
|
-
}
|
|
57
|
-
if (amount > i) {
|
|
58
|
-
yield atom_1.Atom.findIn(icon_atom_1.IconAtom, chip).getElement().click();
|
|
59
|
-
}
|
|
60
|
-
}));
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
selectAll() {
|
|
64
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
yield this.selectFirst(yield this.countOptions());
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
selectFirst(numberOfItems) {
|
|
69
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
let index = numberOfItems || 1;
|
|
71
|
-
while (index > 0) {
|
|
72
|
-
index--;
|
|
73
|
-
yield (yield this.getOption(index)).click();
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
getInputValue() {
|
|
78
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
return this.input.getAttribute("value");
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
getSelectionStart() {
|
|
83
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
return yield protractor_1.browser.executeScript("return arguments[0].selectionStart", yield this.input.getWebElement());
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
getSelectionEnd() {
|
|
88
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
return yield protractor_1.browser.executeScript("return arguments[0].selectionEnd", yield this.input.getWebElement());
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
getSelectionRange() {
|
|
93
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
return ((yield this.getSelectionEnd()) - (yield this.getSelectionStart()));
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.ComboboxV2Atom = ComboboxV2Atom;
|
|
99
|
-
ComboboxV2Atom.CSS_CLASS = "nui-combobox-v2";
|
|
100
|
-
//# sourceMappingURL=combobox-v2.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-v2.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/combobox-v2.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,iEAAiC;AACjC,2CAAiE;AAEjE,kCAA+B;AAC/B,2CAAuC;AACvC,iDAA6C;AAC7C,+DAAyD;AAEzD,MAAa,cAAe,SAAQ,sCAAgB;IAApD;;QAMW,UAAK,GAAgB,WAAI,CAAC,MAAM,CACnC,0BAAW,EACX,IAAA,oBAAO,EAAC,eAAE,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,CACjD,CAAC;QACK,oBAAe,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAC9C,eAAE,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAChD,CAAC;QACK,iBAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC,OAAO,CAChD,eAAE,CAAC,SAAS,CAAC,gCAAgC,CAAC,CACjD,CAAC;QACK,iBAAY,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAC3C,eAAE,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAC1C,CAAC;QACK,UAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;QAClD,eAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,iBAAi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AI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;KAAA;IAEY,iBAAiB;;YAC1B,OAAO,MAAM,oBAAO,CAAC,aAAa,CAC9B,oCAAoC,EACpC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CACnC,CAAC;QACN,CAAC;KAAA;IAEY,eAAe;;YACxB,OAAO,MAAM,oBAAO,CAAC,aAAa,CAC9B,kCAAkC,EAClC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CACnC,CAAC;QACN,CAAC;KAAA;IAEY,iBAAiB;;YAC1B,OAAO,CACH,CAAC,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC,CACpE,CAAC;QACN,CAAC;KAAA;;AA1EL,wCA2EC;AA1EiB,wBAAS,GAAG,iBAAiB,AAApB,CAAqB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { ButtonAtom } from "./button.atom";
|
|
3
|
-
import { IconAtom } from "./icon.atom";
|
|
4
|
-
import { PopupAtom } from "./popup.atom";
|
|
5
|
-
import { BasicSelectAtom } from "./basic-select.atom";
|
|
6
|
-
import { TextboxAtom } from "./textbox.atom";
|
|
7
|
-
export declare class ComboboxAtom extends BasicSelectAtom {
|
|
8
|
-
static CSS_CLASS: string;
|
|
9
|
-
private root;
|
|
10
|
-
private containerFinder;
|
|
11
|
-
private textboxFinder;
|
|
12
|
-
iconAtom: IconAtom;
|
|
13
|
-
textbox: TextboxAtom;
|
|
14
|
-
clearButton: ButtonAtom;
|
|
15
|
-
toggleButton: ButtonAtom;
|
|
16
|
-
popup: PopupAtom;
|
|
17
|
-
getIconName: () => Promise<string>;
|
|
18
|
-
getContainer: () => ElementFinder;
|
|
19
|
-
toggleMenu: () => Promise<void>;
|
|
20
|
-
getComboboxPlaceholder: () => Promise<string>;
|
|
21
|
-
getInput: () => ElementFinder;
|
|
22
|
-
acceptText: (text: string) => Promise<void>;
|
|
23
|
-
getInputValue: () => Promise<string>;
|
|
24
|
-
clearText: () => Promise<void>;
|
|
25
|
-
acceptInput: (input: string) => Promise<void>;
|
|
26
|
-
getLayoutBlock: () => ElementFinder;
|
|
27
|
-
isRequiredStyleDisplayed: () => Promise<boolean>;
|
|
28
|
-
getHighlightedItemsCount: () => Promise<number>;
|
|
29
|
-
}
|
|
@@ -1,67 +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.ComboboxAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const protractor_1 = require("protractor");
|
|
25
|
-
const atom_1 = require("../atom");
|
|
26
|
-
const button_atom_1 = require("./button.atom");
|
|
27
|
-
const icon_atom_1 = require("./icon.atom");
|
|
28
|
-
const popup_atom_1 = require("./popup.atom");
|
|
29
|
-
const basic_select_atom_1 = require("./basic-select.atom");
|
|
30
|
-
const textbox_atom_1 = require("./textbox.atom");
|
|
31
|
-
class ComboboxAtom extends basic_select_atom_1.BasicSelectAtom {
|
|
32
|
-
constructor() {
|
|
33
|
-
super(...arguments);
|
|
34
|
-
this.root = this.getElement();
|
|
35
|
-
this.containerFinder = this.root
|
|
36
|
-
.all(protractor_1.by.className("nui-combobox__container"))
|
|
37
|
-
.first();
|
|
38
|
-
this.textboxFinder = this.containerFinder
|
|
39
|
-
.all(protractor_1.by.className("nui-combobox__input"))
|
|
40
|
-
.first();
|
|
41
|
-
this.iconAtom = atom_1.Atom.findIn(icon_atom_1.IconAtom, this.root.all(protractor_1.by.className("nui-combobox__icon")).first());
|
|
42
|
-
this.textbox = atom_1.Atom.findIn(textbox_atom_1.TextboxAtom, this.textboxFinder);
|
|
43
|
-
this.clearButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.containerFinder
|
|
44
|
-
.all(protractor_1.by.className("nui-combobox__remove-value"))
|
|
45
|
-
.first());
|
|
46
|
-
this.toggleButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.containerFinder.all(protractor_1.by.className("nui-combobox__toggle")).first());
|
|
47
|
-
this.popup = atom_1.Atom.findIn(popup_atom_1.PopupAtom, protractor_1.browser.element(protractor_1.by.className("nui-combobox-popup-host")));
|
|
48
|
-
this.getIconName = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.iconAtom.getName(); });
|
|
49
|
-
this.getContainer = () => this.containerFinder;
|
|
50
|
-
this.toggleMenu = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.toggleButton.click(); });
|
|
51
|
-
this.getComboboxPlaceholder = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.textbox.input.getAttribute("placeholder"); });
|
|
52
|
-
this.getInput = () => this.textbox.input;
|
|
53
|
-
this.acceptText = (text) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
yield this.textbox.clearText();
|
|
55
|
-
return this.textbox.acceptText(text);
|
|
56
|
-
});
|
|
57
|
-
this.getInputValue = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.textbox.getValue(); });
|
|
58
|
-
this.clearText = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.textbox.clearText(); });
|
|
59
|
-
this.acceptInput = (input) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.textbox.acceptText(input); });
|
|
60
|
-
this.getLayoutBlock = () => this.getElementByClass("nui-combobox__layout-block");
|
|
61
|
-
this.isRequiredStyleDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.elementHasClass("nui-combobox__container", "has-error"); });
|
|
62
|
-
this.getHighlightedItemsCount = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.root.all(protractor_1.by.className("nui-highlighted")).count(); });
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.ComboboxAtom = ComboboxAtom;
|
|
66
|
-
ComboboxAtom.CSS_CLASS = "nui-combobox";
|
|
67
|
-
//# sourceMappingURL=combobox.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/combobox.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;AA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I,CAAC,IAAI,CAAC,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,EAAE,CAAA,GAAA,CAAC;IAC/D,CAAC;;AA9DD,oCA8DC;AA7DiB,sBAAS,GAAG,cAAc,AAAjB,CAAkB"}
|
|
@@ -1,40 +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.ContentAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const atom_1 = require("../atom");
|
|
25
|
-
class ContentAtom extends atom_1.Atom {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
this.hasScrollbar = (element) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
if (!element) {
|
|
30
|
-
throw new Error("element is not defined");
|
|
31
|
-
}
|
|
32
|
-
const clientHeight = yield element.getAttribute("clientHeight");
|
|
33
|
-
const scrollHeight = yield element.getAttribute("scrollHeight");
|
|
34
|
-
return parseInt(scrollHeight, 10) > parseInt(clientHeight, 10);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ContentAtom = ContentAtom;
|
|
39
|
-
ContentAtom.CSS_CLASS = "nui-content";
|
|
40
|
-
//# sourceMappingURL=content.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/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;;;;AAIjB,kCAA+B;AAE/B,MAAa,WAAY,SAAQ,WAAI;IAArC;;QAGW,iBAAY,GAAG,CAAO,OAAuB,EAAoB,EAAE;YACtE,IAAI,CAAC,OAAO,EAAE,CAAC;gBACX,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;YAC9C,CAAC;YACD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;YAChE,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;YAChE,OAAO,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;QACnE,CAAC,CAAA,CAAC;IACN,CAAC;;AAXD,kCAWC;AAViB,qBAAS,GAAG,aAAa,AAAhB,CAAiB"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Moment } from "moment/moment";
|
|
2
|
-
import { ElementFinder } from "protractor";
|
|
3
|
-
import { Atom } from "../atom";
|
|
4
|
-
import { OverlayAtom } from "./overlay.atom";
|
|
5
|
-
import { TextboxAtom } from "./textbox.atom";
|
|
6
|
-
export declare class DatepickerAtom extends Atom {
|
|
7
|
-
static EXPECTED_FORMAT: string;
|
|
8
|
-
static CSS_CLASS: string;
|
|
9
|
-
static MONTHNAMES_SHORT: string[];
|
|
10
|
-
static MONTHNAMES_LONG: string[];
|
|
11
|
-
overlay: OverlayAtom;
|
|
12
|
-
textbox: TextboxAtom;
|
|
13
|
-
selectDate: (day: number) => Promise<void>;
|
|
14
|
-
selectMonth: (month: string) => Promise<void>;
|
|
15
|
-
selectYear: (year: number) => Promise<void>;
|
|
16
|
-
getInput: () => ElementFinder;
|
|
17
|
-
isDisabled: () => Promise<boolean>;
|
|
18
|
-
getTextbox(): ElementFinder;
|
|
19
|
-
formatDate(date: Moment, localeDateStringFormat: string): string;
|
|
20
|
-
getInputValue: () => Promise<string>;
|
|
21
|
-
acceptText: (text: string) => Promise<void>;
|
|
22
|
-
clearText: () => Promise<void>;
|
|
23
|
-
getMonthElement: (month: string, index?: number) => ElementFinder;
|
|
24
|
-
getPopup: () => ElementFinder;
|
|
25
|
-
getYearElement: (year: string, index?: number) => ElementFinder;
|
|
26
|
-
deleteTextManually: () => Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Gets title which will be after current title is clicked.
|
|
29
|
-
* For example, when daypicker mode is enabled then it gets title of monthpicker.
|
|
30
|
-
* In monthpicker mode gets title of yearpicker.
|
|
31
|
-
* @returns {Promise<string>}
|
|
32
|
-
*/
|
|
33
|
-
getLargerPeriodTitle(): Promise<string>;
|
|
34
|
-
clickTitle(): Promise<void>;
|
|
35
|
-
clickTodayButton: () => Promise<void>;
|
|
36
|
-
/** @deprecated As of Nova v11, use 'toggle' method instead. Removal: NUI-5865 */
|
|
37
|
-
clickCalendarIcon: () => Promise<void>;
|
|
38
|
-
toggle: () => Promise<void>;
|
|
39
|
-
clickChangeModeButton: () => Promise<void>;
|
|
40
|
-
clickFirstCalendarDate: () => Promise<void>;
|
|
41
|
-
isInputValid: () => Promise<boolean>;
|
|
42
|
-
getActiveDay: () => ElementFinder;
|
|
43
|
-
getActiveDayText: () => Promise<string>;
|
|
44
|
-
getTitleText(): Promise<string>;
|
|
45
|
-
goNext(): Promise<void>;
|
|
46
|
-
goBack(): Promise<void>;
|
|
47
|
-
clickInput: () => Promise<void>;
|
|
48
|
-
isTodayButtonEnabled: () => Promise<boolean>;
|
|
49
|
-
getMonthFromTitle: () => Promise<string>;
|
|
50
|
-
getPreviousMonthTitle(currentMonth: string, format?: string): string;
|
|
51
|
-
getNextMonthTitle(currentMonth: string, format?: string): string;
|
|
52
|
-
private clickCalendarItem;
|
|
53
|
-
private selectButton;
|
|
54
|
-
private selectDayButtonByIndex;
|
|
55
|
-
private getElementByCss;
|
|
56
|
-
private getElementText;
|
|
57
|
-
}
|
|
@@ -1,204 +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.DatepickerAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const moment_1 = tslib_1.__importDefault(require("moment/moment"));
|
|
25
|
-
const protractor_1 = require("protractor");
|
|
26
|
-
const atom_1 = require("../atom");
|
|
27
|
-
const helpers_1 = require("../helpers");
|
|
28
|
-
const overlay_atom_1 = require("./overlay.atom");
|
|
29
|
-
const textbox_atom_1 = require("./textbox.atom");
|
|
30
|
-
class DatepickerAtom extends atom_1.Atom {
|
|
31
|
-
constructor() {
|
|
32
|
-
super(...arguments);
|
|
33
|
-
this.overlay = atom_1.Atom.findIn(overlay_atom_1.OverlayAtom, this.getElement());
|
|
34
|
-
this.textbox = atom_1.Atom.findIn(textbox_atom_1.TextboxAtom, this.getElement());
|
|
35
|
-
this.selectDate = (day) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.clickCalendarItem(day.toString()); });
|
|
36
|
-
this.selectMonth = (month) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.clickCalendarItem(month); });
|
|
37
|
-
this.selectYear = (year) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.clickCalendarItem(year.toString()); });
|
|
38
|
-
this.getInput = () => this.getElement().element(protractor_1.by.css("input.form-control"));
|
|
39
|
-
this.isDisabled = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.textbox.disabled(); });
|
|
40
|
-
this.getInputValue = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const el = this.getInput();
|
|
42
|
-
yield helpers_1.Helpers.waitElementVisible(el);
|
|
43
|
-
return el.getAttribute("value");
|
|
44
|
-
});
|
|
45
|
-
this.acceptText = (text) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getInput().sendKeys(text, protractor_1.protractor.Key.ENTER); });
|
|
46
|
-
this.clearText = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getInput().clear(); });
|
|
47
|
-
this.getMonthElement = (month, index) => this.selectButton(month, index);
|
|
48
|
-
this.getPopup = () => this.getElementByCss(".nui-popup__area");
|
|
49
|
-
this.getYearElement = (year, index) => this.selectButton(year, index);
|
|
50
|
-
this.deleteTextManually = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getInput().sendKeys(protractor_1.Key.chord(protractor_1.Key.CONTROL, "a"), protractor_1.Key.DELETE); });
|
|
51
|
-
this.clickTodayButton = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElementByCss("button.today-button").click(); });
|
|
52
|
-
/** @deprecated As of Nova v11, use 'toggle' method instead. Removal: NUI-5865 */
|
|
53
|
-
this.clickCalendarIcon = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.toggle(); });
|
|
54
|
-
this.toggle = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const el = this.getElementByCss(".nui-datepicker__icon");
|
|
56
|
-
yield helpers_1.Helpers.waitElementToBeClickable(el);
|
|
57
|
-
yield el.click();
|
|
58
|
-
});
|
|
59
|
-
this.clickChangeModeButton = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElementByCss(".change-mode-button").click(); });
|
|
60
|
-
this.clickFirstCalendarDate = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.selectDayButtonByIndex(0).click(); });
|
|
61
|
-
this.isInputValid = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return !(yield this.textbox.hasClass("has-error")); });
|
|
62
|
-
this.getActiveDay = () => this.getElementByCss(".btn.selected");
|
|
63
|
-
this.getActiveDayText = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElementText(".btn.selected"); });
|
|
64
|
-
this.clickInput = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getInput().click(); });
|
|
65
|
-
this.isTodayButtonEnabled = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElement().element(protractor_1.by.css("button.today-button")).isEnabled(); });
|
|
66
|
-
this.getMonthFromTitle = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return (yield this.getTitleText()).split(" ")[0]; });
|
|
67
|
-
this.getElementText = (identifier) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElementByCss(identifier).getText(); });
|
|
68
|
-
}
|
|
69
|
-
getTextbox() {
|
|
70
|
-
return this.getElement().element(protractor_1.by.className("nui-textbox"));
|
|
71
|
-
}
|
|
72
|
-
formatDate(date, localeDateStringFormat) {
|
|
73
|
-
return date
|
|
74
|
-
.locale(localeDateStringFormat)
|
|
75
|
-
.format(DatepickerAtom.EXPECTED_FORMAT);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Gets title which will be after current title is clicked.
|
|
79
|
-
* For example, when daypicker mode is enabled then it gets title of monthpicker.
|
|
80
|
-
* In monthpicker mode gets title of yearpicker.
|
|
81
|
-
* @returns {Promise<string>}
|
|
82
|
-
*/
|
|
83
|
-
getLargerPeriodTitle() {
|
|
84
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
let newTitle;
|
|
86
|
-
return this.getTitleText().then((currentTitle) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
if (currentTitle.length === 4) {
|
|
88
|
-
const currentYear = Math.floor(parseInt(currentTitle, 10));
|
|
89
|
-
const rangeStart = currentYear;
|
|
90
|
-
const rangeEnd = currentYear + 19;
|
|
91
|
-
newTitle = `${rangeStart} - ${rangeEnd}`;
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
newTitle = currentTitle.substring(currentTitle.length - 4);
|
|
95
|
-
}
|
|
96
|
-
return newTitle;
|
|
97
|
-
}));
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
clickTitle() {
|
|
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("button[id*='title']"))
|
|
107
|
-
.click();
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
getTitleText() {
|
|
111
|
-
const _super = Object.create(null, {
|
|
112
|
-
getElement: { get: () => super.getElement }
|
|
113
|
-
});
|
|
114
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
return _super.getElement.call(this)
|
|
116
|
-
.element(protractor_1.by.css("button[id*='title']"))
|
|
117
|
-
.getText();
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
goNext() {
|
|
121
|
-
const _super = Object.create(null, {
|
|
122
|
-
getElement: { get: () => super.getElement }
|
|
123
|
-
});
|
|
124
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
return _super.getElement.call(this)
|
|
126
|
-
.element(protractor_1.by.css("button[icon='caret-right']"))
|
|
127
|
-
.click();
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
goBack() {
|
|
131
|
-
const _super = Object.create(null, {
|
|
132
|
-
getElement: { get: () => super.getElement }
|
|
133
|
-
});
|
|
134
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
return _super.getElement.call(this)
|
|
136
|
-
.element(protractor_1.by.css("button[icon='caret-left']"))
|
|
137
|
-
.click();
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
getPreviousMonthTitle(currentMonth, format = "MMMM") {
|
|
141
|
-
const previousMonth = (0, moment_1.default)().month(currentMonth).subtract(1, "month");
|
|
142
|
-
return previousMonth.format(format);
|
|
143
|
-
}
|
|
144
|
-
getNextMonthTitle(currentMonth, format = "MMMM") {
|
|
145
|
-
const nextMonth = (0, moment_1.default)().month(currentMonth).add(1, "month");
|
|
146
|
-
return nextMonth.format(format);
|
|
147
|
-
}
|
|
148
|
-
clickCalendarItem(buttonText) {
|
|
149
|
-
const _super = Object.create(null, {
|
|
150
|
-
getElement: { get: () => super.getElement }
|
|
151
|
-
});
|
|
152
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
153
|
-
const button = _super.getElement.call(this)
|
|
154
|
-
.all(protractor_1.by.cssContainingText("tbody button span:not(.text-muted)", buttonText))
|
|
155
|
-
.first();
|
|
156
|
-
return button.click();
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
selectButton(identifier, index = 0) {
|
|
160
|
-
return super
|
|
161
|
-
.getElement()
|
|
162
|
-
.all(protractor_1.by.cssContainingText(".nui-button span", identifier))
|
|
163
|
-
.get(index);
|
|
164
|
-
}
|
|
165
|
-
selectDayButtonByIndex(index = 0) {
|
|
166
|
-
return super.getElement().all(protractor_1.by.css("td.day .nui-button")).get(index);
|
|
167
|
-
}
|
|
168
|
-
getElementByCss(identifier) {
|
|
169
|
-
// if deep is passed then look in shadow DOM
|
|
170
|
-
return super.getElement().element(protractor_1.by.css(identifier));
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
exports.DatepickerAtom = DatepickerAtom;
|
|
174
|
-
DatepickerAtom.EXPECTED_FORMAT = "DD MMM YYYY";
|
|
175
|
-
DatepickerAtom.CSS_CLASS = "nui-datepicker";
|
|
176
|
-
DatepickerAtom.MONTHNAMES_SHORT = [
|
|
177
|
-
"Jan",
|
|
178
|
-
"Feb",
|
|
179
|
-
"Mar",
|
|
180
|
-
"Apr",
|
|
181
|
-
"May",
|
|
182
|
-
"Jun",
|
|
183
|
-
"Jul",
|
|
184
|
-
"Aug",
|
|
185
|
-
"Sep",
|
|
186
|
-
"Oct",
|
|
187
|
-
"Nov",
|
|
188
|
-
"Dec",
|
|
189
|
-
];
|
|
190
|
-
DatepickerAtom.MONTHNAMES_LONG = [
|
|
191
|
-
"January",
|
|
192
|
-
"February",
|
|
193
|
-
"March",
|
|
194
|
-
"April",
|
|
195
|
-
"May",
|
|
196
|
-
"June",
|
|
197
|
-
"July",
|
|
198
|
-
"August",
|
|
199
|
-
"September",
|
|
200
|
-
"October",
|
|
201
|
-
"November",
|
|
202
|
-
"December",
|
|
203
|
-
];
|
|
204
|
-
//# sourceMappingURL=datepicker.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datepicker.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/datepicker.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,mEAA+C;AAC/C,2CAAgE;AAEhE,kCAA+B;AAC/B,wCAAmC;AACnC,iDAA6C;AAC7C,iDAA6C;AAE7C,MAAa,cAAe,SAAQ,WAAI;IAAxC;;QAgCW,YAAO,GAAG,WAAI,CAAC,MAAM,CAAC,0BAAW,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QACtD,YAAO,GAAG,WAAI,CAAC,MAAM,CAAC,0BA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,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACR,AAb6B,CAa5B;AACY,8BAAe,GAAa;IACtC,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;CACb,AAb4B,CAa3B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Atom } from "../atom";
|
|
2
|
-
import { DatepickerAtom } from "./datepicker.atom";
|
|
3
|
-
import { TimepickerAtom } from "./timepicker.atom";
|
|
4
|
-
export declare class DateTimepickerAtom extends Atom {
|
|
5
|
-
static CSS_CLASS: string;
|
|
6
|
-
getDatePicker(): DatepickerAtom;
|
|
7
|
-
getTimePicker(): TimepickerAtom;
|
|
8
|
-
isDisabled(): Promise<boolean>;
|
|
9
|
-
}
|
|
@@ -1,43 +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.DateTimepickerAtom = void 0;
|
|
23
|
-
const tslib_1 = require("tslib");
|
|
24
|
-
const atom_1 = require("../atom");
|
|
25
|
-
const datepicker_atom_1 = require("./datepicker.atom");
|
|
26
|
-
const timepicker_atom_1 = require("./timepicker.atom");
|
|
27
|
-
class DateTimepickerAtom extends atom_1.Atom {
|
|
28
|
-
getDatePicker() {
|
|
29
|
-
return datepicker_atom_1.DatepickerAtom.findIn(datepicker_atom_1.DatepickerAtom, this.getElement());
|
|
30
|
-
}
|
|
31
|
-
getTimePicker() {
|
|
32
|
-
return timepicker_atom_1.TimepickerAtom.findIn(timepicker_atom_1.TimepickerAtom, this.getElement());
|
|
33
|
-
}
|
|
34
|
-
isDisabled() {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
return ((yield this.getDatePicker().isDisabled()) &&
|
|
37
|
-
(yield this.getTimePicker().textbox.disabled()));
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.DateTimepickerAtom = DateTimepickerAtom;
|
|
42
|
-
DateTimepickerAtom.CSS_CLASS = "nui-datetime-picker";
|
|
43
|
-
//# sourceMappingURL=datetimepicker.atom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datetimepicker.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/datetimepicker.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,kCAA+B;AAC/B,uDAAmD;AACnD,uDAAmD;AAEnD,MAAa,kBAAmB,SAAQ,WAAI;IAGjC,aAAa;QAChB,OAAO,gCAAc,CAAC,MAAM,CAAC,gCAAc,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;IAEM,aAAa;QAChB,OAAO,gCAAc,CAAC,MAAM,CAAC,gCAAc,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;IAEY,UAAU;;YACnB,OAAO,CACH,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,UAAU,EAAE,CAAC;gBACzC,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAClD,CAAC;QACN,CAAC;KAAA;;AAhBL,gDAiBC;AAhBiB,4BAAS,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementFinder } from "protractor";
|
|
2
|
-
import { Atom } from "../atom";
|
|
3
|
-
export declare class DialogAtom extends Atom {
|
|
4
|
-
static CSS_CLASS: string;
|
|
5
|
-
static BACKDROP_CSS_CLASS: string;
|
|
6
|
-
static DIALOG_WINDOW_CSS_CLASS: string;
|
|
7
|
-
static dismissDialog(): Promise<void>;
|
|
8
|
-
static clickCancelButton(): Promise<void>;
|
|
9
|
-
static clickActionButton(): Promise<void>;
|
|
10
|
-
isDialogDisplayed: () => Promise<boolean>;
|
|
11
|
-
getCloseButton: () => ElementFinder;
|
|
12
|
-
getHeader(): ElementFinder;
|
|
13
|
-
getFooter(): ElementFinder;
|
|
14
|
-
getCancelButton(): ElementFinder;
|
|
15
|
-
getActionButton(): ElementFinder;
|
|
16
|
-
scrollToEnd: () => Promise<void>;
|
|
17
|
-
getDialog(): ElementFinder;
|
|
18
|
-
}
|