@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.
Files changed (263) hide show
  1. package/bundles/css/styles.css +1 -1
  2. package/fesm2022/nova-ui-bits.mjs +1929 -1537
  3. package/fesm2022/nova-ui-bits.mjs.map +1 -1
  4. package/package.json +15 -22
  5. package/sdk/atoms-playwright/atom.js +5 -3
  6. package/sdk/atoms-playwright/atom.js.map +1 -1
  7. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.d.ts +0 -1
  8. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js +9 -6
  9. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js.map +1 -1
  10. package/sdk/atoms-playwright/components/chips/chips.atom.js.map +1 -1
  11. package/sdk/atoms-playwright/components/dialog/dialog.atom.js.map +1 -1
  12. package/sdk/atoms-playwright/components/menu/menu.atom.js.map +1 -1
  13. package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.js.map +1 -1
  14. package/sdk/atoms-playwright/components/paginator/paginator.atom.d.ts +1 -0
  15. package/sdk/atoms-playwright/components/paginator/paginator.atom.js +14 -17
  16. package/sdk/atoms-playwright/components/paginator/paginator.atom.js.map +1 -1
  17. package/sdk/atoms-playwright/components/popover/popover.atom.js +4 -1
  18. package/sdk/atoms-playwright/components/popover/popover.atom.js.map +1 -1
  19. package/sdk/atoms-playwright/components/select/basic-select.atom.js +4 -2
  20. package/sdk/atoms-playwright/components/select/basic-select.atom.js.map +1 -1
  21. package/sdk/atoms-playwright/components/select/select.atom.js.map +1 -1
  22. package/sdk/atoms-playwright/components/table/table.atom.js +10 -6
  23. package/sdk/atoms-playwright/components/table/table.atom.js.map +1 -1
  24. package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js +3 -1
  25. package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js.map +1 -1
  26. package/sdk/atoms-playwright/setup.js +3 -1
  27. package/sdk/atoms-playwright/setup.js.map +1 -1
  28. package/sdk/atoms-playwright/virtual-camera/camera-engine.js +3 -1
  29. package/sdk/atoms-playwright/virtual-camera/camera-engine.js.map +1 -1
  30. package/sdk/less/nui-framework-colors.less +13 -13
  31. package/sdk/schematics/filter-group/index.spec.js +1 -1
  32. package/sdk/schematics/filter-group/index.spec.js.map +1 -1
  33. package/sdk/schematics/ng-add/index.spec.js +1 -1
  34. package/sdk/schematics/ng-add/index.spec.js.map +1 -1
  35. package/{index.d.ts → types/nova-ui-bits.d.ts} +205 -146
  36. package/sdk/atoms/atom.d.ts +0 -48
  37. package/sdk/atoms/atom.js +0 -179
  38. package/sdk/atoms/atom.js.map +0 -1
  39. package/sdk/atoms/atoms/base-select-v2.atom.d.ts +0 -30
  40. package/sdk/atoms/atoms/base-select-v2.atom.js +0 -125
  41. package/sdk/atoms/atoms/base-select-v2.atom.js.map +0 -1
  42. package/sdk/atoms/atoms/basic-select.atom.d.ts +0 -21
  43. package/sdk/atoms/atoms/basic-select.atom.js +0 -56
  44. package/sdk/atoms/atoms/basic-select.atom.js.map +0 -1
  45. package/sdk/atoms/atoms/breadcrumb.atom.d.ts +0 -11
  46. package/sdk/atoms/atoms/breadcrumb.atom.js +0 -46
  47. package/sdk/atoms/atoms/breadcrumb.atom.js.map +0 -1
  48. package/sdk/atoms/atoms/busy.atom.d.ts +0 -12
  49. package/sdk/atoms/atoms/busy.atom.js +0 -41
  50. package/sdk/atoms/atoms/busy.atom.js.map +0 -1
  51. package/sdk/atoms/atoms/button.atom.d.ts +0 -19
  52. package/sdk/atoms/atoms/button.atom.js +0 -63
  53. package/sdk/atoms/atoms/button.atom.js.map +0 -1
  54. package/sdk/atoms/atoms/cdk-drop-item.atom.d.ts +0 -10
  55. package/sdk/atoms/atoms/cdk-drop-item.atom.js +0 -58
  56. package/sdk/atoms/atoms/cdk-drop-item.atom.js.map +0 -1
  57. package/sdk/atoms/atoms/cdk-drop-list.atom.d.ts +0 -8
  58. package/sdk/atoms/atoms/cdk-drop-list.atom.js +0 -42
  59. package/sdk/atoms/atoms/cdk-drop-list.atom.js.map +0 -1
  60. package/sdk/atoms/atoms/checkbox-group.atom.d.ts +0 -11
  61. package/sdk/atoms/atoms/checkbox-group.atom.js +0 -69
  62. package/sdk/atoms/atoms/checkbox-group.atom.js.map +0 -1
  63. package/sdk/atoms/atoms/checkbox.atom.d.ts +0 -30
  64. package/sdk/atoms/atoms/checkbox.atom.js +0 -94
  65. package/sdk/atoms/atoms/checkbox.atom.js.map +0 -1
  66. package/sdk/atoms/atoms/chips.atom.d.ts +0 -32
  67. package/sdk/atoms/atoms/chips.atom.js +0 -93
  68. package/sdk/atoms/atoms/chips.atom.js.map +0 -1
  69. package/sdk/atoms/atoms/combobox-v2.atom.d.ts +0 -22
  70. package/sdk/atoms/atoms/combobox-v2.atom.js +0 -100
  71. package/sdk/atoms/atoms/combobox-v2.atom.js.map +0 -1
  72. package/sdk/atoms/atoms/combobox.atom.d.ts +0 -29
  73. package/sdk/atoms/atoms/combobox.atom.js +0 -67
  74. package/sdk/atoms/atoms/combobox.atom.js.map +0 -1
  75. package/sdk/atoms/atoms/content.atom.d.ts +0 -6
  76. package/sdk/atoms/atoms/content.atom.js +0 -40
  77. package/sdk/atoms/atoms/content.atom.js.map +0 -1
  78. package/sdk/atoms/atoms/datepicker.atom.d.ts +0 -57
  79. package/sdk/atoms/atoms/datepicker.atom.js +0 -204
  80. package/sdk/atoms/atoms/datepicker.atom.js.map +0 -1
  81. package/sdk/atoms/atoms/datetimepicker.atom.d.ts +0 -9
  82. package/sdk/atoms/atoms/datetimepicker.atom.js +0 -43
  83. package/sdk/atoms/atoms/datetimepicker.atom.js.map +0 -1
  84. package/sdk/atoms/atoms/dialog.atom.d.ts +0 -18
  85. package/sdk/atoms/atoms/dialog.atom.js +0 -77
  86. package/sdk/atoms/atoms/dialog.atom.js.map +0 -1
  87. package/sdk/atoms/atoms/divider.atom.d.ts +0 -6
  88. package/sdk/atoms/atoms/divider.atom.js +0 -45
  89. package/sdk/atoms/atoms/divider.atom.js.map +0 -1
  90. package/sdk/atoms/atoms/expander.atom.d.ts +0 -19
  91. package/sdk/atoms/atoms/expander.atom.js +0 -90
  92. package/sdk/atoms/atoms/expander.atom.js.map +0 -1
  93. package/sdk/atoms/atoms/form-field.atom.d.ts +0 -12
  94. package/sdk/atoms/atoms/form-field.atom.js +0 -73
  95. package/sdk/atoms/atoms/form-field.atom.js.map +0 -1
  96. package/sdk/atoms/atoms/freetype-query-builder.atom.d.ts +0 -9
  97. package/sdk/atoms/atoms/freetype-query-builder.atom.js +0 -51
  98. package/sdk/atoms/atoms/freetype-query-builder.atom.js.map +0 -1
  99. package/sdk/atoms/atoms/icon.atom.d.ts +0 -21
  100. package/sdk/atoms/atoms/icon.atom.js +0 -91
  101. package/sdk/atoms/atoms/icon.atom.js.map +0 -1
  102. package/sdk/atoms/atoms/image.atom.d.ts +0 -8
  103. package/sdk/atoms/atoms/image.atom.js +0 -61
  104. package/sdk/atoms/atoms/image.atom.js.map +0 -1
  105. package/sdk/atoms/atoms/layout-sheet-group.atom.d.ts +0 -14
  106. package/sdk/atoms/atoms/layout-sheet-group.atom.js +0 -91
  107. package/sdk/atoms/atoms/layout-sheet-group.atom.js.map +0 -1
  108. package/sdk/atoms/atoms/layout-sheet.atom.d.ts +0 -6
  109. package/sdk/atoms/atoms/layout-sheet.atom.js +0 -45
  110. package/sdk/atoms/atoms/layout-sheet.atom.js.map +0 -1
  111. package/sdk/atoms/atoms/menu-item.atom.d.ts +0 -13
  112. package/sdk/atoms/atoms/menu-item.atom.js +0 -117
  113. package/sdk/atoms/atoms/menu-item.atom.js.map +0 -1
  114. package/sdk/atoms/atoms/menu-popup.atom.d.ts +0 -11
  115. package/sdk/atoms/atoms/menu-popup.atom.js +0 -57
  116. package/sdk/atoms/atoms/menu-popup.atom.js.map +0 -1
  117. package/sdk/atoms/atoms/menu.atom.d.ts +0 -43
  118. package/sdk/atoms/atoms/menu.atom.js +0 -116
  119. package/sdk/atoms/atoms/menu.atom.js.map +0 -1
  120. package/sdk/atoms/atoms/message.atom.d.ts +0 -16
  121. package/sdk/atoms/atoms/message.atom.js +0 -51
  122. package/sdk/atoms/atoms/message.atom.js.map +0 -1
  123. package/sdk/atoms/atoms/overlay-content.atom.d.ts +0 -7
  124. package/sdk/atoms/atoms/overlay-content.atom.js +0 -35
  125. package/sdk/atoms/atoms/overlay-content.atom.js.map +0 -1
  126. package/sdk/atoms/atoms/overlay.atom.d.ts +0 -11
  127. package/sdk/atoms/atoms/overlay.atom.js +0 -41
  128. package/sdk/atoms/atoms/overlay.atom.js.map +0 -1
  129. package/sdk/atoms/atoms/paginator.atom.d.ts +0 -29
  130. package/sdk/atoms/atoms/paginator.atom.js +0 -199
  131. package/sdk/atoms/atoms/paginator.atom.js.map +0 -1
  132. package/sdk/atoms/atoms/panel.atom.d.ts +0 -29
  133. package/sdk/atoms/atoms/panel.atom.js +0 -120
  134. package/sdk/atoms/atoms/panel.atom.js.map +0 -1
  135. package/sdk/atoms/atoms/popover.atom.d.ts +0 -28
  136. package/sdk/atoms/atoms/popover.atom.js +0 -94
  137. package/sdk/atoms/atoms/popover.atom.js.map +0 -1
  138. package/sdk/atoms/atoms/popup.atom.d.ts +0 -16
  139. package/sdk/atoms/atoms/popup.atom.js +0 -68
  140. package/sdk/atoms/atoms/popup.atom.js.map +0 -1
  141. package/sdk/atoms/atoms/progress.atom.d.ts +0 -14
  142. package/sdk/atoms/atoms/progress.atom.js +0 -65
  143. package/sdk/atoms/atoms/progress.atom.js.map +0 -1
  144. package/sdk/atoms/atoms/public_api.d.ts +0 -65
  145. package/sdk/atoms/atoms/public_api.js +0 -69
  146. package/sdk/atoms/atoms/public_api.js.map +0 -1
  147. package/sdk/atoms/atoms/quick-picker.atom.d.ts +0 -8
  148. package/sdk/atoms/atoms/quick-picker.atom.js +0 -49
  149. package/sdk/atoms/atoms/quick-picker.atom.js.map +0 -1
  150. package/sdk/atoms/atoms/radio-group.atom.d.ts +0 -13
  151. package/sdk/atoms/atoms/radio-group.atom.js +0 -76
  152. package/sdk/atoms/atoms/radio-group.atom.js.map +0 -1
  153. package/sdk/atoms/atoms/repeat.atom.d.ts +0 -27
  154. package/sdk/atoms/atoms/repeat.atom.js +0 -123
  155. package/sdk/atoms/atoms/repeat.atom.js.map +0 -1
  156. package/sdk/atoms/atoms/resizer.atom.d.ts +0 -12
  157. package/sdk/atoms/atoms/resizer.atom.js +0 -52
  158. package/sdk/atoms/atoms/resizer.atom.js.map +0 -1
  159. package/sdk/atoms/atoms/search.atom.d.ts +0 -12
  160. package/sdk/atoms/atoms/search.atom.js +0 -81
  161. package/sdk/atoms/atoms/search.atom.js.map +0 -1
  162. package/sdk/atoms/atoms/select-v2-option.atom.d.ts +0 -7
  163. package/sdk/atoms/atoms/select-v2-option.atom.js +0 -44
  164. package/sdk/atoms/atoms/select-v2-option.atom.js.map +0 -1
  165. package/sdk/atoms/atoms/select-v2.atom.d.ts +0 -5
  166. package/sdk/atoms/atoms/select-v2.atom.js +0 -34
  167. package/sdk/atoms/atoms/select-v2.atom.js.map +0 -1
  168. package/sdk/atoms/atoms/select.atom.d.ts +0 -10
  169. package/sdk/atoms/atoms/select.atom.js +0 -37
  170. package/sdk/atoms/atoms/select.atom.js.map +0 -1
  171. package/sdk/atoms/atoms/selector.atom.d.ts +0 -22
  172. package/sdk/atoms/atoms/selector.atom.js +0 -90
  173. package/sdk/atoms/atoms/selector.atom.js.map +0 -1
  174. package/sdk/atoms/atoms/sorter.atom.d.ts +0 -33
  175. package/sdk/atoms/atoms/sorter.atom.js +0 -123
  176. package/sdk/atoms/atoms/sorter.atom.js.map +0 -1
  177. package/sdk/atoms/atoms/spinner.atom.d.ts +0 -12
  178. package/sdk/atoms/atoms/spinner.atom.js +0 -45
  179. package/sdk/atoms/atoms/spinner.atom.js.map +0 -1
  180. package/sdk/atoms/atoms/switch.atom.d.ts +0 -14
  181. package/sdk/atoms/atoms/switch.atom.js +0 -73
  182. package/sdk/atoms/atoms/switch.atom.js.map +0 -1
  183. package/sdk/atoms/atoms/tab-heading-group.atom.d.ts +0 -16
  184. package/sdk/atoms/atoms/tab-heading-group.atom.js +0 -108
  185. package/sdk/atoms/atoms/tab-heading-group.atom.js.map +0 -1
  186. package/sdk/atoms/atoms/tab-heading.atom.d.ts +0 -8
  187. package/sdk/atoms/atoms/tab-heading.atom.js +0 -52
  188. package/sdk/atoms/atoms/tab-heading.atom.js.map +0 -1
  189. package/sdk/atoms/atoms/table.atom.d.ts +0 -73
  190. package/sdk/atoms/atoms/table.atom.js +0 -210
  191. package/sdk/atoms/atoms/table.atom.js.map +0 -1
  192. package/sdk/atoms/atoms/textbox-number.atom.d.ts +0 -18
  193. package/sdk/atoms/atoms/textbox-number.atom.js +0 -53
  194. package/sdk/atoms/atoms/textbox-number.atom.js.map +0 -1
  195. package/sdk/atoms/atoms/textbox.atom.d.ts +0 -22
  196. package/sdk/atoms/atoms/textbox.atom.js +0 -59
  197. package/sdk/atoms/atoms/textbox.atom.js.map +0 -1
  198. package/sdk/atoms/atoms/time-frame-bar.atom.d.ts +0 -22
  199. package/sdk/atoms/atoms/time-frame-bar.atom.js +0 -84
  200. package/sdk/atoms/atoms/time-frame-bar.atom.js.map +0 -1
  201. package/sdk/atoms/atoms/time-frame-picker.atom.d.ts +0 -7
  202. package/sdk/atoms/atoms/time-frame-picker.atom.js +0 -36
  203. package/sdk/atoms/atoms/time-frame-picker.atom.js.map +0 -1
  204. package/sdk/atoms/atoms/timepicker.atom.d.ts +0 -18
  205. package/sdk/atoms/atoms/timepicker.atom.js +0 -64
  206. package/sdk/atoms/atoms/timepicker.atom.js.map +0 -1
  207. package/sdk/atoms/atoms/toast.atom.d.ts +0 -28
  208. package/sdk/atoms/atoms/toast.atom.js +0 -67
  209. package/sdk/atoms/atoms/toast.atom.js.map +0 -1
  210. package/sdk/atoms/atoms/toolbar.atom.d.ts +0 -18
  211. package/sdk/atoms/atoms/toolbar.atom.js +0 -87
  212. package/sdk/atoms/atoms/toolbar.atom.js.map +0 -1
  213. package/sdk/atoms/atoms/tooltip.atom.d.ts +0 -9
  214. package/sdk/atoms/atoms/tooltip.atom.js +0 -38
  215. package/sdk/atoms/atoms/tooltip.atom.js.map +0 -1
  216. package/sdk/atoms/atoms/tree.atom.d.ts +0 -17
  217. package/sdk/atoms/atoms/tree.atom.js +0 -87
  218. package/sdk/atoms/atoms/tree.atom.js.map +0 -1
  219. package/sdk/atoms/atoms/wizard-step.atom.d.ts +0 -11
  220. package/sdk/atoms/atoms/wizard-step.atom.js +0 -52
  221. package/sdk/atoms/atoms/wizard-step.atom.js.map +0 -1
  222. package/sdk/atoms/atoms/wizard-v2-footer.atom.d.ts +0 -7
  223. package/sdk/atoms/atoms/wizard-v2-footer.atom.js +0 -36
  224. package/sdk/atoms/atoms/wizard-v2-footer.atom.js.map +0 -1
  225. package/sdk/atoms/atoms/wizard-v2-step-header.atom.d.ts +0 -7
  226. package/sdk/atoms/atoms/wizard-v2-step-header.atom.js +0 -41
  227. package/sdk/atoms/atoms/wizard-v2-step-header.atom.js.map +0 -1
  228. package/sdk/atoms/atoms/wizard-v2-step.atom.d.ts +0 -5
  229. package/sdk/atoms/atoms/wizard-v2-step.atom.js +0 -32
  230. package/sdk/atoms/atoms/wizard-v2-step.atom.js.map +0 -1
  231. package/sdk/atoms/atoms/wizard-v2.atom.d.ts +0 -18
  232. package/sdk/atoms/atoms/wizard-v2.atom.js +0 -85
  233. package/sdk/atoms/atoms/wizard-v2.atom.js.map +0 -1
  234. package/sdk/atoms/atoms/wizard.atom.d.ts +0 -22
  235. package/sdk/atoms/atoms/wizard.atom.js +0 -91
  236. package/sdk/atoms/atoms/wizard.atom.js.map +0 -1
  237. package/sdk/atoms/helpers.d.ts +0 -39
  238. package/sdk/atoms/helpers.js +0 -234
  239. package/sdk/atoms/helpers.js.map +0 -1
  240. package/sdk/atoms/index.d.ts +0 -4
  241. package/sdk/atoms/index.js +0 -30
  242. package/sdk/atoms/index.js.map +0 -1
  243. package/sdk/atoms/virtual-camera/Camera.d.ts +0 -21
  244. package/sdk/atoms/virtual-camera/Camera.js +0 -54
  245. package/sdk/atoms/virtual-camera/Camera.js.map +0 -1
  246. package/sdk/atoms/virtual-camera/camera-engine.d.ts +0 -13
  247. package/sdk/atoms/virtual-camera/camera-engine.js +0 -81
  248. package/sdk/atoms/virtual-camera/camera-engine.js.map +0 -1
  249. package/sdk/atoms/virtual-camera/camera-settings.d.ts +0 -10
  250. package/sdk/atoms/virtual-camera/camera-settings.js +0 -59
  251. package/sdk/atoms/virtual-camera/camera-settings.js.map +0 -1
  252. package/sdk/atoms/virtual-camera/camera-toggle.d.ts +0 -7
  253. package/sdk/atoms/virtual-camera/camera-toggle.js +0 -40
  254. package/sdk/atoms/virtual-camera/camera-toggle.js.map +0 -1
  255. package/sdk/atoms/virtual-camera/percy-lens.d.ts +0 -17
  256. package/sdk/atoms/virtual-camera/percy-lens.js +0 -84
  257. package/sdk/atoms/virtual-camera/percy-lens.js.map +0 -1
  258. package/sdk/atoms/virtual-camera/public_api.d.ts +0 -2
  259. package/sdk/atoms/virtual-camera/public_api.js +0 -25
  260. package/sdk/atoms/virtual-camera/public_api.js.map +0 -1
  261. package/sdk/atoms/virtual-camera/types.d.ts +0 -35
  262. package/sdk/atoms/virtual-camera/types.js +0 -50
  263. package/sdk/atoms/virtual-camera/types.js.map +0 -1
@@ -1,18 +0,0 @@
1
- import { ElementFinder } from "protractor";
2
- import { Atom } from "../atom";
3
- import { ButtonAtom } from "./button.atom";
4
- export declare class TextboxNumberAtom extends Atom {
5
- private rootElement;
6
- static CSS_CLASS: string;
7
- upButton: ButtonAtom;
8
- downButton: ButtonAtom;
9
- input: ElementFinder;
10
- constructor(rootElement: ElementFinder);
11
- getValue: () => Promise<string>;
12
- getPlaceholder: () => Promise<string>;
13
- acceptText: (text: string) => Promise<void>;
14
- clearText: () => Promise<void>;
15
- isDisabled: () => Promise<boolean>;
16
- isReadonly: () => Promise<boolean>;
17
- isValid: () => Promise<boolean>;
18
- }
@@ -1,53 +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.TextboxNumberAtom = 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 TextboxNumberAtom extends atom_1.Atom {
28
- constructor(rootElement) {
29
- super(rootElement);
30
- this.rootElement = rootElement;
31
- this.getValue = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.getAttribute("value"); });
32
- this.getPlaceholder = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.getAttribute("placeholder"); });
33
- this.acceptText = (text) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.sendKeys(text); });
34
- this.clearText = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.clear(); });
35
- this.isDisabled = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
36
- return (yield this.input.getAttribute("disabled")) !== null &&
37
- (yield this.upButton.isDisabled()) &&
38
- (yield this.downButton.isDisabled());
39
- });
40
- this.isReadonly = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
41
- return (yield this.input.getAttribute("readonly")) !== null &&
42
- (yield this.upButton.isDisabled()) &&
43
- (yield this.downButton.isDisabled());
44
- });
45
- this.isValid = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return !(yield this.rootElement.getAttribute("class")).includes("has-error"); });
46
- this.upButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, rootElement.element(protractor_1.by.className("nui-textbox-number__up-button")));
47
- this.downButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, rootElement.element(protractor_1.by.className("nui-textbox-number__down-button")));
48
- this.input = rootElement.element(protractor_1.by.className("nui-textbox__input"));
49
- }
50
- }
51
- exports.TextboxNumberAtom = TextboxNumberAtom;
52
- TextboxNumberAtom.CSS_CLASS = "nui-textbox-number";
53
- //# sourceMappingURL=textbox-number.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textbox-number.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/textbox-number.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;AAC/B,+CAA2C;AAE3C,MAAa,iBAAkB,SAAQ,WAAI;IAOvC,YAAoB,WAA0B;QAC1C,KAAK,CAAC,WAAW,CAAC,CAAC;QADH,gBAAW,GAAX,WA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AW,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC,CACrE,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,WAAI,CAAC,MAAM,CACzB,wBAAU,EACV,WAAW,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC,CACvE,CAAC;QACF,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACzE,CAAC;;AAnBL,8CA4CC;AA3CiB,2BAAS,GAAG,oBAAoB,AAAvB,CAAwB"}
@@ -1,22 +0,0 @@
1
- import { ElementFinder } from "protractor";
2
- import { Atom } from "../atom";
3
- export declare class TextboxAtom extends Atom {
4
- static CSS_CLASS: string;
5
- get input(): ElementFinder;
6
- /**
7
- * Because typescript getters and setters do not support async\await features I'm changing this
8
- * getter to a regular public method. Any suggestions are welcomed.
9
- *
10
- * See this issue for more information on this technical limitation:
11
- * https://github.com/Microsoft/TypeScript/issues/14982#issuecomment-294437284
12
- * https://github.com/tc39/ecmascript-asyncawait/issues/15
13
- */
14
- getValue: () => Promise<string>;
15
- acceptText: (text: string) => Promise<void>;
16
- clearText: () => Promise<void>;
17
- deleteTextManually: () => Promise<void>;
18
- hasAttribute: (attrName: string) => Promise<boolean>;
19
- disabled: () => Promise<boolean>;
20
- isReadonly: () => Promise<boolean>;
21
- hasError(): Promise<boolean>;
22
- }
@@ -1,59 +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.TextboxAtom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const atom_1 = require("../atom");
26
- class TextboxAtom extends atom_1.Atom {
27
- constructor() {
28
- super(...arguments);
29
- /**
30
- * Because typescript getters and setters do not support async\await features I'm changing this
31
- * getter to a regular public method. Any suggestions are welcomed.
32
- *
33
- * See this issue for more information on this technical limitation:
34
- * https://github.com/Microsoft/TypeScript/issues/14982#issuecomment-294437284
35
- * https://github.com/tc39/ecmascript-asyncawait/issues/15
36
- */
37
- this.getValue = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.getAttribute("value"); });
38
- this.acceptText = (text) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.sendKeys(text); });
39
- this.clearText = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.clear(); });
40
- this.deleteTextManually = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.input.sendKeys(protractor_1.Key.chord(protractor_1.Key.CONTROL, "a"), protractor_1.Key.DELETE); });
41
- this.hasAttribute = (attrName) => tslib_1.__awaiter(this, void 0, void 0, function* () { return (yield this.input.getAttribute(attrName)) !== null; });
42
- this.disabled = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.hasAttribute("disabled"); });
43
- this.isReadonly = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.hasAttribute("readonly"); });
44
- }
45
- get input() {
46
- return super.getElement().element(protractor_1.by.className("form-control"));
47
- }
48
- hasError() {
49
- const _super = Object.create(null, {
50
- hasClass: { get: () => super.hasClass }
51
- });
52
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
53
- return _super.hasClass.call(this, "has-error");
54
- });
55
- }
56
- }
57
- exports.TextboxAtom = TextboxAtom;
58
- TextboxAtom.CSS_CLASS = "nui-textbox";
59
- //# sourceMappingURL=textbox.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textbox.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/textbox.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,2CAAoD;AAEpD,kCAA+B;AAE/B,MAAa,WAAY,SAAQ,WAAI;IAArC;;QAOI;;;;;;;WAOG;QAEI,aAAQ,GAAG,GAA0B,EAAE,wDAC1C,OAAA,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA,GAAA,CAAC;QAE9B,eAAU,GAAG,CAAO,IAAY,EAAiB,EAAE,wDACtD,OAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA,GAAA,CAAC;QAEvB,cAAS,GAAG,GAAwB,EAAE,wDAAC,OAAA,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA,GAAA,CAAC;QAE1D,uBAAkB,GAAG,GAAwB,EAAE,wDAClD,OAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,gBAAG,CAAC,KAAK,CAAC,gBAAG,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,gBAAG,CAAC,MAAM,CAAC,CAAA,GAAA,CAAC;QAE1D,iBAAY,GAAG,CAAO,QAAgB,EAAoB,EAAE,wDAC/D,OAAA,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,KAAK,IAAI,CAAA,GAAA,CAAC;QAEhD,aAAQ,GAAG,GAA2B,EAAE,wDAC3C,OAAA,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA,GAAA,CAAC;QAE3B,eAAU,GAAG,GAA2B,EAAE,wDAC7C,OAAA,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA,GAAA,CAAC;IAKtC,CAAC;IApCG,IAAW,KAAK;QACZ,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;IACpE,CAAC;IA+BY,QAAQ;;;;;YACjB,OAAO,OAAM,QAAQ,YAAC,WAAW,EAAE;QACvC,CAAC;KAAA;;AAtCL,kCAuCC;AAtCiB,qBAAS,GAAG,aAAa,AAAhB,CAAiB"}
@@ -1,22 +0,0 @@
1
- import { Moment } from "moment/moment";
2
- import { ElementFinder } from "protractor";
3
- import { Atom } from "../atom";
4
- import { ButtonAtom } from "./button.atom";
5
- import { PopoverAtom } from "./popover.atom";
6
- import { QuickPickerAtom } from "./quick-picker.atom";
7
- import { TimeFramePickerAtom } from "./time-frame-picker.atom";
8
- export declare class TimeFrameBarAtom extends Atom {
9
- static CSS_SELECTOR: string;
10
- readonly prevButton: ButtonAtom;
11
- readonly nextButton: ButtonAtom;
12
- readonly undoButton: ButtonAtom;
13
- readonly clearButton: ButtonAtom;
14
- readonly popover: PopoverAtom;
15
- quickPicker: QuickPickerAtom;
16
- timeFramePicker: TimeFramePickerAtom;
17
- timeFramePickerCancelButton: ButtonAtom;
18
- timeFramePickerUseButton: ButtonAtom;
19
- constructor(rootElement: ElementFinder);
20
- quickPickPreset(presetTitle: string): Promise<void>;
21
- pickTimeFrame(start: Moment, end: Moment): Promise<void>;
22
- }
@@ -1,84 +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.TimeFrameBarAtom = 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 popover_atom_1 = require("./popover.atom");
28
- const quick_picker_atom_1 = require("./quick-picker.atom");
29
- const time_frame_picker_atom_1 = require("./time-frame-picker.atom");
30
- const timepicker_atom_1 = require("./timepicker.atom");
31
- class TimeFrameBarAtom extends atom_1.Atom {
32
- constructor(rootElement) {
33
- super(rootElement);
34
- this.prevButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, rootElement.element(protractor_1.by.css(".prev")));
35
- this.nextButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, rootElement.element(protractor_1.by.css(".next")));
36
- this.undoButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, rootElement.element(protractor_1.by.css(".undo")));
37
- this.clearButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, rootElement.element(protractor_1.by.css(".clear")));
38
- this.popover = atom_1.Atom.findIn(popover_atom_1.PopoverAtom, rootElement.element(protractor_1.by.css(".picker-label")));
39
- const popoverBody = this.popover.getPopoverBody();
40
- this.quickPicker = atom_1.Atom.findIn(quick_picker_atom_1.QuickPickerAtom, popoverBody);
41
- this.timeFramePicker = atom_1.Atom.findIn(time_frame_picker_atom_1.TimeFramePickerAtom, popoverBody);
42
- this.timeFramePickerCancelButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, popoverBody.element(protractor_1.by.css(".cancel")));
43
- this.timeFramePickerUseButton = atom_1.Atom.findIn(button_atom_1.ButtonAtom, popoverBody.element(protractor_1.by.css(".use")));
44
- }
45
- quickPickPreset(presetTitle) {
46
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
- yield this.popover.open();
48
- yield this.quickPicker.selectPresetByTitle(presetTitle);
49
- return this.popover.waitForClosed();
50
- });
51
- }
52
- // TODO: 1. Move this to TimeFramePickerAtom
53
- // TODO: 2. Improve DatePickerAtom, TimePickerAtom and DateTimePickerAtom with easy to use `select(m: Moment)` methods
54
- pickTimeFrame(start, end) {
55
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
56
- const date = "MM/DD/YYYY";
57
- const time = timepicker_atom_1.TimepickerAtom.defaultFormat;
58
- yield this.popover.open();
59
- const startDate = this.timeFramePicker
60
- .getStartDatetimePicker()
61
- .getDatePicker();
62
- const startTime = this.timeFramePicker
63
- .getStartDatetimePicker()
64
- .getTimePicker();
65
- const endDate = this.timeFramePicker
66
- .getEndDatetimePicker()
67
- .getDatePicker();
68
- const endTime = this.timeFramePicker
69
- .getEndDatetimePicker()
70
- .getTimePicker();
71
- yield startDate.clearText();
72
- yield startDate.acceptText(start.format(date));
73
- yield startTime.selectTime(start.format(time));
74
- yield endDate.clearText();
75
- yield endDate.acceptText(end.format(date));
76
- yield endTime.selectTime(end.format(time));
77
- yield this.timeFramePickerUseButton.click();
78
- return this.popover.waitForClosed();
79
- });
80
- }
81
- }
82
- exports.TimeFrameBarAtom = TimeFrameBarAtom;
83
- TimeFrameBarAtom.CSS_SELECTOR = ".nui-time-frame-bar";
84
- //# sourceMappingURL=time-frame-bar.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"time-frame-bar.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/time-frame-bar.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;;;;AAGjB,2CAA+C;AAE/C,kCAA+B;AAC/B,+CAA2C;AAC3C,iDAA6C;AAC7C,2DAAsD;AACtD,qEAA+D;AAC/D,uDAAmD;AAEnD,MAAa,gBAAiB,SAAQ,WAAI;IAatC,YAAY,WAA0B;QAClC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEnB,IAAI,CAAC,UAAU,GAAG,WAAI,CAAC,MAAM,CACzB,wBAAU,EACV,WAAW,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CACvC,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,WAAI,CAAC,MAAM,CACzB,wBAAU,EACV,WAAW,CAAC,OAAO,CAA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Atom } from "../atom";
2
- import { DateTimepickerAtom } from "./datetimepicker.atom";
3
- export declare class TimeFramePickerAtom extends Atom {
4
- static CSS_CLASS: string;
5
- getStartDatetimePicker(): DateTimepickerAtom;
6
- getEndDatetimePicker(): DateTimepickerAtom;
7
- }
@@ -1,36 +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.TimeFramePickerAtom = void 0;
23
- const protractor_1 = require("protractor");
24
- const atom_1 = require("../atom");
25
- const datetimepicker_atom_1 = require("./datetimepicker.atom");
26
- class TimeFramePickerAtom extends atom_1.Atom {
27
- getStartDatetimePicker() {
28
- return atom_1.Atom.findIn(datetimepicker_atom_1.DateTimepickerAtom, this.getElement().element(protractor_1.by.className("nui-time-frame-picker__date-time_start")));
29
- }
30
- getEndDatetimePicker() {
31
- return atom_1.Atom.findIn(datetimepicker_atom_1.DateTimepickerAtom, this.getElement().element(protractor_1.by.className("nui-time-frame-picker__date-time_end")));
32
- }
33
- }
34
- exports.TimeFramePickerAtom = TimeFramePickerAtom;
35
- TimeFramePickerAtom.CSS_CLASS = "nui-time-frame-picker";
36
- //# sourceMappingURL=time-frame-picker.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"time-frame-picker.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/time-frame-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,2CAAgC;AAEhC,kCAA+B;AAC/B,+DAA2D;AAE3D,MAAa,mBAAoB,SAAQ,WAAI;IAGlC,sBAAsB;QACzB,OAAO,WAAI,CAAC,MAAM,CACd,wCAAkB,EAClB,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CACrB,eAAE,CAAC,SAAS,CAAC,wCAAwC,CAAC,CACzD,CACJ,CAAC;IACN,CAAC;IAEM,oBAAoB;QACvB,OAAO,WAAI,CAAC,MAAM,CACd,wCAAkB,EAClB,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CACrB,eAAE,CAAC,SAAS,CAAC,sCAAsC,CAAC,CACvD,CACJ,CAAC;IACN,CAAC;;AAnBL,kDAoBC;AAnBiB,6BAAS,GAAG,uBAAuB,CAAC"}
@@ -1,18 +0,0 @@
1
- import { Atom } from "../atom";
2
- import { IconAtom } from "./icon.atom";
3
- import { MenuPopupAtom } from "./menu-popup.atom";
4
- import { OverlayAtom } from "./overlay.atom";
5
- import { TextboxAtom } from "./textbox.atom";
6
- export declare class TimepickerAtom extends Atom {
7
- static CSS_CLASS: string;
8
- static defaultFormat: string;
9
- static isCorrectTimeFormat: (timeString: string, format: string) => boolean;
10
- static createTimeString: (hour: number, minute: number, format?: string) => string;
11
- textbox: TextboxAtom;
12
- menuPopup: MenuPopupAtom;
13
- icon: IconAtom;
14
- overlay: OverlayAtom;
15
- toggle: () => Promise<void>;
16
- selectTime: (time: string) => Promise<void>;
17
- getHighlightedMenuValue: () => Promise<string>;
18
- }
@@ -1,64 +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.TimepickerAtom = 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 icon_atom_1 = require("./icon.atom");
28
- const menu_popup_atom_1 = require("./menu-popup.atom");
29
- const overlay_atom_1 = require("./overlay.atom");
30
- const textbox_atom_1 = require("./textbox.atom");
31
- class TimepickerAtom extends atom_1.Atom {
32
- constructor() {
33
- super(...arguments);
34
- this.textbox = atom_1.Atom.findIn(textbox_atom_1.TextboxAtom, this.getElement());
35
- this.menuPopup = atom_1.Atom.findIn(menu_popup_atom_1.MenuPopupAtom, this.getElement());
36
- this.icon = atom_1.Atom.findIn(icon_atom_1.IconAtom, this.getElement());
37
- this.overlay = atom_1.Atom.findIn(overlay_atom_1.OverlayAtom, (0, protractor_1.element)(protractor_1.by.className("nui-timepicker__menu")));
38
- this.toggle = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
39
- return this.getElement()
40
- .element(protractor_1.by.className("nui-timepicker__container"))
41
- .click();
42
- });
43
- this.selectTime = (time) => tslib_1.__awaiter(this, void 0, void 0, function* () {
44
- yield this.textbox.clearText();
45
- yield this.textbox.acceptText(`${time}\n`);
46
- // await this.menuPopup.clickItemByText(time);
47
- });
48
- this.getHighlightedMenuValue = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
49
- yield this.toggle();
50
- return this.menuPopup.getSelectedItem().getText();
51
- });
52
- }
53
- }
54
- exports.TimepickerAtom = TimepickerAtom;
55
- TimepickerAtom.CSS_CLASS = "nui-timepicker";
56
- TimepickerAtom.defaultFormat = "LT";
57
- TimepickerAtom.isCorrectTimeFormat = (timeString, format) => (0, moment_1.default)(timeString, format, true).isValid();
58
- TimepickerAtom.createTimeString = (hour, minute, format = TimepickerAtom.defaultFormat) => {
59
- const date = new Date();
60
- date.setHours(hour);
61
- date.setMinutes(minute);
62
- return (0, moment_1.default)(date).format(format);
63
- };
64
- //# sourceMappingURL=timepicker.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timepicker.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/timepicker.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA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,IAAI,CAAC,MAAM,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,CAAC;QACtD,CAAC,CAAA,CAAC;IACN,CAAC;;AA/CD,wCA+CC;AA9CiB,wBAAS,GAAG,gBAAgB,AAAnB,CAAoB;AAE7B,4BAAa,GAAG,IAAI,AAAP,CAAQ;AAErB,kCAAmB,GAAG,CAChC,UAAkB,EAClB,MAAc,EACP,EAAE,CAAC,IAAA,gBAAM,EAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,AAHvB,CAGwB;AAE3C,+BAAgB,GAAG,CAC7B,IAAY,EACZ,MAAc,EACd,MAAM,GAAG,cAAc,CAAC,aAAa,EAC/B,EAAE;IACR,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpB,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC,AAT6B,CAS5B"}
@@ -1,28 +0,0 @@
1
- import { ElementFinder } from "protractor";
2
- import { Atom } from "../atom";
3
- import { ButtonAtom } from "./button.atom";
4
- export declare class ToastAtom extends Atom {
5
- static CSS_CLASS: string;
6
- /** default tiomeout for toast */
7
- static toastTimeout: number;
8
- /** time for 'fade out' animation */
9
- static animationTimeout: number;
10
- private root;
11
- container: ElementFinder;
12
- private content;
13
- dismiss: ButtonAtom;
14
- getTitle: () => Promise<string>;
15
- getBody: () => Promise<string>;
16
- getBodyHtml: () => Promise<string>;
17
- isSuccessType: () => Promise<boolean>;
18
- isWarningType: () => Promise<boolean>;
19
- isInfoType: () => Promise<boolean>;
20
- isErrorType: () => Promise<boolean>;
21
- /** Wait for countdown timout and extended timeout only. No need to wait for fade out animation. Angular will take care of it. */
22
- waitUntilNotDisplayed: (timeOut?: number) => Promise<void>;
23
- getToastsContainerPositioning: (positionClass: string) => Promise<boolean>;
24
- click: () => Promise<void>;
25
- unhover: () => Promise<void>;
26
- private getBodyElement;
27
- private isToastType;
28
- }
@@ -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.ToastAtom = 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 ToastAtom extends atom_1.Atom {
28
- constructor() {
29
- super(...arguments);
30
- this.root = this.getElement();
31
- this.container = this.root.element(protractor_1.by.xpath(".."));
32
- this.content = this.root
33
- .all(protractor_1.by.className(`${ToastAtom.CSS_CLASS}__content`))
34
- .first();
35
- this.dismiss = atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.content
36
- .all(protractor_1.by.className(`${ToastAtom.CSS_CLASS}__dismiss-button`))
37
- .first());
38
- this.getTitle = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
39
- return this.root
40
- .element(protractor_1.by.css(`.${ToastAtom.CSS_CLASS}__content-title`))
41
- .getText();
42
- });
43
- this.getBody = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getBodyElement().getText(); });
44
- this.getBodyHtml = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
45
- const body = this.getBodyElement();
46
- return body.browser_.executeScript("return arguments[0].innerHTML;", body);
47
- });
48
- this.isSuccessType = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.isToastType("success"); });
49
- this.isWarningType = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.isToastType("warning"); });
50
- this.isInfoType = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.isToastType("info"); });
51
- this.isErrorType = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.isToastType("error"); });
52
- /** Wait for countdown timout and extended timeout only. No need to wait for fade out animation. Angular will take care of it. */
53
- this.waitUntilNotDisplayed = (...args_1) => tslib_1.__awaiter(this, [...args_1], void 0, function* (timeOut = ToastAtom.toastTimeout) { return protractor_1.browser.wait(protractor_1.ExpectedConditions.stalenessOf(this.root), timeOut); });
54
- this.getToastsContainerPositioning = (positionClass) => tslib_1.__awaiter(this, void 0, void 0, function* () { return atom_1.Atom.hasClass(this.container, positionClass); });
55
- this.click = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.root.click(); });
56
- this.unhover = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return protractor_1.browser.actions().mouseMove(this.container, { x: -1, y: -1 }).perform(); });
57
- this.getBodyElement = () => this.root.element(protractor_1.by.css(`.${ToastAtom.CSS_CLASS}__content-body`));
58
- this.isToastType = (type) => tslib_1.__awaiter(this, void 0, void 0, function* () { return atom_1.Atom.hasClass(this.root, `${ToastAtom.CSS_CLASS}--${type}`); });
59
- }
60
- }
61
- exports.ToastAtom = ToastAtom;
62
- ToastAtom.CSS_CLASS = "nui-toast";
63
- /** default tiomeout for toast */
64
- ToastAtom.toastTimeout = 5000;
65
- /** time for 'fade out' animation */
66
- ToastAtom.animationTimeout = 300;
67
- //# sourceMappingURL=toast.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toast.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/toast.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,2CAA4E;AAE5E,kCAA+B;AAC/B,+CAA2C;AAE3C,MAAa,SAAU,SAAQ,WAAI;IAAnC;;QAOY,SAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC1B,cAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7C,YAAO,GAAG,IAAI,CAAC,IAAI;aACtB,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,SAAS,WAAW,CAAC,CAAC;aACpD,KAAK,EAAE,CAAC;QACN,YAAO,GAAe,WAAI,CAAC,MAAM,CACpC,wBAAU,EACV,IAAI,CAAC,OAAO;aACP,GAAG,CAAC,eAAE,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,SAAS,kBAAkB,CAAC,CAAC;aAC3D,KAAK,EAAE,CACf,CAAC;QAEK,aAAQ,GAAG,GAA0B,EAAE;YAC1C,OAAA,IAAI,CAAC,IAAI;iBACJ,OAAO,CAAC,eAAE,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,GAAA,CAAC;QAErD,YAAO,GAAG,GAAwB,EAAE,wDACvC,OAAA,oBAAO,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAA,GAAA,CAAC;QAEpE,mBAAc,GAAG,GAAkB,EAAE,CACzC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC;QAE/D,gBAAW,GAAG,CAAO,IAAY,EAAoB,EAAE,wDAC3D,OAAA,WAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,SAAS,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC,CAAA,GAAA,CAAC;IACpE,CAAC;;AAlED,8BAkEC;AAjEiB,mBAAS,GAAG,WAAW,AAAd,CAAe;AACtC,iCAAiC;AACnB,sBAAY,GAAG,IAAI,AAAP,CAAQ;AAClC,oCAAoC;AACtB,0BAAgB,GAAG,GAAG,AAAN,CAAO"}
@@ -1,18 +0,0 @@
1
- import { ElementArrayFinder } from "protractor";
2
- import { Atom } from "../atom";
3
- import { ButtonAtom } from "./button.atom";
4
- import { MenuAtom } from "./menu.atom";
5
- import { PopupAtom } from "./popup.atom";
6
- export declare class ToolbarAtom extends Atom {
7
- static CSS_CLASS: string;
8
- popup: PopupAtom;
9
- isPresent(): Promise<boolean>;
10
- private getAllVisibleItems;
11
- getAllVisibleItemsCount(): Promise<number>;
12
- getToolbarItemButton(index: number): ButtonAtom;
13
- getToolbarMenu(): MenuAtom;
14
- getToolbarBackground(): Promise<string>;
15
- getSelectedStateText(): Promise<string>;
16
- getToolbarMessages(): ElementArrayFinder;
17
- getToolbarMessagesTexts(): Promise<string[]>;
18
- }
@@ -1,87 +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.ToolbarAtom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const atom_1 = require("../atom");
26
- const button_atom_1 = require("./button.atom");
27
- const menu_atom_1 = require("./menu.atom");
28
- const popup_atom_1 = require("./popup.atom");
29
- class ToolbarAtom extends atom_1.Atom {
30
- constructor() {
31
- super(...arguments);
32
- this.popup = atom_1.Atom.findIn(popup_atom_1.PopupAtom, this.getElement());
33
- }
34
- isPresent() {
35
- const _super = Object.create(null, {
36
- getElement: { get: () => super.getElement }
37
- });
38
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
39
- return _super.getElement.call(this).isPresent();
40
- });
41
- }
42
- getAllVisibleItems() {
43
- return super
44
- .getElement()
45
- .all(protractor_1.by.css(".nui-toolbar-content__dynamic > .nui-button"));
46
- }
47
- getAllVisibleItemsCount() {
48
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
49
- return this.getAllVisibleItems().count();
50
- });
51
- }
52
- getToolbarItemButton(index) {
53
- return atom_1.Atom.findIn(button_atom_1.ButtonAtom, this.getAllVisibleItems().get(index));
54
- }
55
- getToolbarMenu() {
56
- return atom_1.Atom.findIn(menu_atom_1.MenuAtom, this.getElement().element(protractor_1.by.className("nui-menu")));
57
- }
58
- getToolbarBackground() {
59
- const _super = Object.create(null, {
60
- getElement: { get: () => super.getElement }
61
- });
62
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
63
- return _super.getElement.call(this).getCssValue("background-color");
64
- });
65
- }
66
- getSelectedStateText() {
67
- const _super = Object.create(null, {
68
- getElement: { get: () => super.getElement }
69
- });
70
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
71
- return _super.getElement.call(this)
72
- .element(protractor_1.by.className("nui-toolbar-content__select"))
73
- .getText();
74
- });
75
- }
76
- getToolbarMessages() {
77
- return this.getElement().all(protractor_1.by.tagName("nui-toolbar-message"));
78
- }
79
- getToolbarMessagesTexts() {
80
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
81
- return yield this.getToolbarMessages().map((el) => tslib_1.__awaiter(this, void 0, void 0, function* () { return el === null || el === void 0 ? void 0 : el.getText(); }));
82
- });
83
- }
84
- }
85
- exports.ToolbarAtom = ToolbarAtom;
86
- ToolbarAtom.CSS_CLASS = "nui-toolbar";
87
- //# sourceMappingURL=toolbar.atom.js.map