@nova-ui/bits 20.0.4 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/bundles/css/styles-css-variables.css +1 -1
  2. package/bundles/css/styles.css +1 -1
  3. package/fesm2022/nova-ui-bits.mjs +7315 -6599
  4. package/fesm2022/nova-ui-bits.mjs.map +1 -1
  5. package/package.json +15 -22
  6. package/sdk/atoms-playwright/atom.js +5 -3
  7. package/sdk/atoms-playwright/atom.js.map +1 -1
  8. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.d.ts +0 -1
  9. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js +9 -6
  10. package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js.map +1 -1
  11. package/sdk/atoms-playwright/components/chips/chips.atom.js.map +1 -1
  12. package/sdk/atoms-playwright/components/dialog/dialog.atom.js.map +1 -1
  13. package/sdk/atoms-playwright/components/menu/menu.atom.js.map +1 -1
  14. package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.js.map +1 -1
  15. package/sdk/atoms-playwright/components/paginator/paginator.atom.d.ts +1 -0
  16. package/sdk/atoms-playwright/components/paginator/paginator.atom.js +14 -17
  17. package/sdk/atoms-playwright/components/paginator/paginator.atom.js.map +1 -1
  18. package/sdk/atoms-playwright/components/popover/popover.atom.js +4 -1
  19. package/sdk/atoms-playwright/components/popover/popover.atom.js.map +1 -1
  20. package/sdk/atoms-playwright/components/public_api.d.ts +1 -0
  21. package/sdk/atoms-playwright/components/public_api.js +1 -0
  22. package/sdk/atoms-playwright/components/public_api.js.map +1 -1
  23. package/sdk/atoms-playwright/components/range-filter/range-filter.atom.d.ts +20 -0
  24. package/sdk/atoms-playwright/components/range-filter/range-filter.atom.js +70 -0
  25. package/sdk/atoms-playwright/components/range-filter/range-filter.atom.js.map +1 -0
  26. package/sdk/atoms-playwright/components/select/basic-select.atom.js +4 -2
  27. package/sdk/atoms-playwright/components/select/basic-select.atom.js.map +1 -1
  28. package/sdk/atoms-playwright/components/select/select.atom.js.map +1 -1
  29. package/sdk/atoms-playwright/components/table/table.atom.js +10 -6
  30. package/sdk/atoms-playwright/components/table/table.atom.js.map +1 -1
  31. package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js +3 -1
  32. package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js.map +1 -1
  33. package/sdk/atoms-playwright/setup.js +3 -1
  34. package/sdk/atoms-playwright/setup.js.map +1 -1
  35. package/sdk/atoms-playwright/virtual-camera/camera-engine.js +3 -1
  36. package/sdk/atoms-playwright/virtual-camera/camera-engine.js.map +1 -1
  37. package/sdk/less/nui-framework-colors-dark.less +1 -1
  38. package/sdk/less/nui-framework-colors.less +15 -15
  39. package/sdk/schematics/filter-group/index.spec.js +1 -1
  40. package/sdk/schematics/filter-group/index.spec.js.map +1 -1
  41. package/sdk/schematics/ng-add/index.spec.js +1 -1
  42. package/sdk/schematics/ng-add/index.spec.js.map +1 -1
  43. package/{index.d.ts → types/nova-ui-bits.d.ts} +285 -150
  44. package/sdk/atoms/atom.d.ts +0 -48
  45. package/sdk/atoms/atom.js +0 -179
  46. package/sdk/atoms/atom.js.map +0 -1
  47. package/sdk/atoms/atoms/base-select-v2.atom.d.ts +0 -30
  48. package/sdk/atoms/atoms/base-select-v2.atom.js +0 -125
  49. package/sdk/atoms/atoms/base-select-v2.atom.js.map +0 -1
  50. package/sdk/atoms/atoms/basic-select.atom.d.ts +0 -21
  51. package/sdk/atoms/atoms/basic-select.atom.js +0 -56
  52. package/sdk/atoms/atoms/basic-select.atom.js.map +0 -1
  53. package/sdk/atoms/atoms/breadcrumb.atom.d.ts +0 -11
  54. package/sdk/atoms/atoms/breadcrumb.atom.js +0 -46
  55. package/sdk/atoms/atoms/breadcrumb.atom.js.map +0 -1
  56. package/sdk/atoms/atoms/busy.atom.d.ts +0 -12
  57. package/sdk/atoms/atoms/busy.atom.js +0 -41
  58. package/sdk/atoms/atoms/busy.atom.js.map +0 -1
  59. package/sdk/atoms/atoms/button.atom.d.ts +0 -19
  60. package/sdk/atoms/atoms/button.atom.js +0 -63
  61. package/sdk/atoms/atoms/button.atom.js.map +0 -1
  62. package/sdk/atoms/atoms/cdk-drop-item.atom.d.ts +0 -10
  63. package/sdk/atoms/atoms/cdk-drop-item.atom.js +0 -58
  64. package/sdk/atoms/atoms/cdk-drop-item.atom.js.map +0 -1
  65. package/sdk/atoms/atoms/cdk-drop-list.atom.d.ts +0 -8
  66. package/sdk/atoms/atoms/cdk-drop-list.atom.js +0 -42
  67. package/sdk/atoms/atoms/cdk-drop-list.atom.js.map +0 -1
  68. package/sdk/atoms/atoms/checkbox-group.atom.d.ts +0 -11
  69. package/sdk/atoms/atoms/checkbox-group.atom.js +0 -69
  70. package/sdk/atoms/atoms/checkbox-group.atom.js.map +0 -1
  71. package/sdk/atoms/atoms/checkbox.atom.d.ts +0 -30
  72. package/sdk/atoms/atoms/checkbox.atom.js +0 -94
  73. package/sdk/atoms/atoms/checkbox.atom.js.map +0 -1
  74. package/sdk/atoms/atoms/chips.atom.d.ts +0 -32
  75. package/sdk/atoms/atoms/chips.atom.js +0 -93
  76. package/sdk/atoms/atoms/chips.atom.js.map +0 -1
  77. package/sdk/atoms/atoms/combobox-v2.atom.d.ts +0 -22
  78. package/sdk/atoms/atoms/combobox-v2.atom.js +0 -100
  79. package/sdk/atoms/atoms/combobox-v2.atom.js.map +0 -1
  80. package/sdk/atoms/atoms/combobox.atom.d.ts +0 -29
  81. package/sdk/atoms/atoms/combobox.atom.js +0 -67
  82. package/sdk/atoms/atoms/combobox.atom.js.map +0 -1
  83. package/sdk/atoms/atoms/content.atom.d.ts +0 -6
  84. package/sdk/atoms/atoms/content.atom.js +0 -40
  85. package/sdk/atoms/atoms/content.atom.js.map +0 -1
  86. package/sdk/atoms/atoms/datepicker.atom.d.ts +0 -57
  87. package/sdk/atoms/atoms/datepicker.atom.js +0 -204
  88. package/sdk/atoms/atoms/datepicker.atom.js.map +0 -1
  89. package/sdk/atoms/atoms/datetimepicker.atom.d.ts +0 -9
  90. package/sdk/atoms/atoms/datetimepicker.atom.js +0 -43
  91. package/sdk/atoms/atoms/datetimepicker.atom.js.map +0 -1
  92. package/sdk/atoms/atoms/dialog.atom.d.ts +0 -18
  93. package/sdk/atoms/atoms/dialog.atom.js +0 -77
  94. package/sdk/atoms/atoms/dialog.atom.js.map +0 -1
  95. package/sdk/atoms/atoms/divider.atom.d.ts +0 -6
  96. package/sdk/atoms/atoms/divider.atom.js +0 -45
  97. package/sdk/atoms/atoms/divider.atom.js.map +0 -1
  98. package/sdk/atoms/atoms/expander.atom.d.ts +0 -19
  99. package/sdk/atoms/atoms/expander.atom.js +0 -90
  100. package/sdk/atoms/atoms/expander.atom.js.map +0 -1
  101. package/sdk/atoms/atoms/form-field.atom.d.ts +0 -12
  102. package/sdk/atoms/atoms/form-field.atom.js +0 -73
  103. package/sdk/atoms/atoms/form-field.atom.js.map +0 -1
  104. package/sdk/atoms/atoms/freetype-query-builder.atom.d.ts +0 -9
  105. package/sdk/atoms/atoms/freetype-query-builder.atom.js +0 -51
  106. package/sdk/atoms/atoms/freetype-query-builder.atom.js.map +0 -1
  107. package/sdk/atoms/atoms/icon.atom.d.ts +0 -21
  108. package/sdk/atoms/atoms/icon.atom.js +0 -91
  109. package/sdk/atoms/atoms/icon.atom.js.map +0 -1
  110. package/sdk/atoms/atoms/image.atom.d.ts +0 -8
  111. package/sdk/atoms/atoms/image.atom.js +0 -61
  112. package/sdk/atoms/atoms/image.atom.js.map +0 -1
  113. package/sdk/atoms/atoms/layout-sheet-group.atom.d.ts +0 -14
  114. package/sdk/atoms/atoms/layout-sheet-group.atom.js +0 -91
  115. package/sdk/atoms/atoms/layout-sheet-group.atom.js.map +0 -1
  116. package/sdk/atoms/atoms/layout-sheet.atom.d.ts +0 -6
  117. package/sdk/atoms/atoms/layout-sheet.atom.js +0 -45
  118. package/sdk/atoms/atoms/layout-sheet.atom.js.map +0 -1
  119. package/sdk/atoms/atoms/menu-item.atom.d.ts +0 -13
  120. package/sdk/atoms/atoms/menu-item.atom.js +0 -117
  121. package/sdk/atoms/atoms/menu-item.atom.js.map +0 -1
  122. package/sdk/atoms/atoms/menu-popup.atom.d.ts +0 -11
  123. package/sdk/atoms/atoms/menu-popup.atom.js +0 -57
  124. package/sdk/atoms/atoms/menu-popup.atom.js.map +0 -1
  125. package/sdk/atoms/atoms/menu.atom.d.ts +0 -43
  126. package/sdk/atoms/atoms/menu.atom.js +0 -116
  127. package/sdk/atoms/atoms/menu.atom.js.map +0 -1
  128. package/sdk/atoms/atoms/message.atom.d.ts +0 -16
  129. package/sdk/atoms/atoms/message.atom.js +0 -51
  130. package/sdk/atoms/atoms/message.atom.js.map +0 -1
  131. package/sdk/atoms/atoms/overlay-content.atom.d.ts +0 -7
  132. package/sdk/atoms/atoms/overlay-content.atom.js +0 -35
  133. package/sdk/atoms/atoms/overlay-content.atom.js.map +0 -1
  134. package/sdk/atoms/atoms/overlay.atom.d.ts +0 -11
  135. package/sdk/atoms/atoms/overlay.atom.js +0 -41
  136. package/sdk/atoms/atoms/overlay.atom.js.map +0 -1
  137. package/sdk/atoms/atoms/paginator.atom.d.ts +0 -29
  138. package/sdk/atoms/atoms/paginator.atom.js +0 -199
  139. package/sdk/atoms/atoms/paginator.atom.js.map +0 -1
  140. package/sdk/atoms/atoms/panel.atom.d.ts +0 -29
  141. package/sdk/atoms/atoms/panel.atom.js +0 -120
  142. package/sdk/atoms/atoms/panel.atom.js.map +0 -1
  143. package/sdk/atoms/atoms/popover.atom.d.ts +0 -28
  144. package/sdk/atoms/atoms/popover.atom.js +0 -94
  145. package/sdk/atoms/atoms/popover.atom.js.map +0 -1
  146. package/sdk/atoms/atoms/popup.atom.d.ts +0 -16
  147. package/sdk/atoms/atoms/popup.atom.js +0 -68
  148. package/sdk/atoms/atoms/popup.atom.js.map +0 -1
  149. package/sdk/atoms/atoms/progress.atom.d.ts +0 -14
  150. package/sdk/atoms/atoms/progress.atom.js +0 -65
  151. package/sdk/atoms/atoms/progress.atom.js.map +0 -1
  152. package/sdk/atoms/atoms/public_api.d.ts +0 -65
  153. package/sdk/atoms/atoms/public_api.js +0 -69
  154. package/sdk/atoms/atoms/public_api.js.map +0 -1
  155. package/sdk/atoms/atoms/quick-picker.atom.d.ts +0 -8
  156. package/sdk/atoms/atoms/quick-picker.atom.js +0 -49
  157. package/sdk/atoms/atoms/quick-picker.atom.js.map +0 -1
  158. package/sdk/atoms/atoms/radio-group.atom.d.ts +0 -13
  159. package/sdk/atoms/atoms/radio-group.atom.js +0 -76
  160. package/sdk/atoms/atoms/radio-group.atom.js.map +0 -1
  161. package/sdk/atoms/atoms/repeat.atom.d.ts +0 -27
  162. package/sdk/atoms/atoms/repeat.atom.js +0 -123
  163. package/sdk/atoms/atoms/repeat.atom.js.map +0 -1
  164. package/sdk/atoms/atoms/resizer.atom.d.ts +0 -12
  165. package/sdk/atoms/atoms/resizer.atom.js +0 -52
  166. package/sdk/atoms/atoms/resizer.atom.js.map +0 -1
  167. package/sdk/atoms/atoms/search.atom.d.ts +0 -12
  168. package/sdk/atoms/atoms/search.atom.js +0 -81
  169. package/sdk/atoms/atoms/search.atom.js.map +0 -1
  170. package/sdk/atoms/atoms/select-v2-option.atom.d.ts +0 -7
  171. package/sdk/atoms/atoms/select-v2-option.atom.js +0 -44
  172. package/sdk/atoms/atoms/select-v2-option.atom.js.map +0 -1
  173. package/sdk/atoms/atoms/select-v2.atom.d.ts +0 -5
  174. package/sdk/atoms/atoms/select-v2.atom.js +0 -34
  175. package/sdk/atoms/atoms/select-v2.atom.js.map +0 -1
  176. package/sdk/atoms/atoms/select.atom.d.ts +0 -10
  177. package/sdk/atoms/atoms/select.atom.js +0 -37
  178. package/sdk/atoms/atoms/select.atom.js.map +0 -1
  179. package/sdk/atoms/atoms/selector.atom.d.ts +0 -22
  180. package/sdk/atoms/atoms/selector.atom.js +0 -90
  181. package/sdk/atoms/atoms/selector.atom.js.map +0 -1
  182. package/sdk/atoms/atoms/sorter.atom.d.ts +0 -33
  183. package/sdk/atoms/atoms/sorter.atom.js +0 -123
  184. package/sdk/atoms/atoms/sorter.atom.js.map +0 -1
  185. package/sdk/atoms/atoms/spinner.atom.d.ts +0 -12
  186. package/sdk/atoms/atoms/spinner.atom.js +0 -45
  187. package/sdk/atoms/atoms/spinner.atom.js.map +0 -1
  188. package/sdk/atoms/atoms/switch.atom.d.ts +0 -14
  189. package/sdk/atoms/atoms/switch.atom.js +0 -73
  190. package/sdk/atoms/atoms/switch.atom.js.map +0 -1
  191. package/sdk/atoms/atoms/tab-heading-group.atom.d.ts +0 -16
  192. package/sdk/atoms/atoms/tab-heading-group.atom.js +0 -108
  193. package/sdk/atoms/atoms/tab-heading-group.atom.js.map +0 -1
  194. package/sdk/atoms/atoms/tab-heading.atom.d.ts +0 -8
  195. package/sdk/atoms/atoms/tab-heading.atom.js +0 -52
  196. package/sdk/atoms/atoms/tab-heading.atom.js.map +0 -1
  197. package/sdk/atoms/atoms/table.atom.d.ts +0 -73
  198. package/sdk/atoms/atoms/table.atom.js +0 -210
  199. package/sdk/atoms/atoms/table.atom.js.map +0 -1
  200. package/sdk/atoms/atoms/textbox-number.atom.d.ts +0 -18
  201. package/sdk/atoms/atoms/textbox-number.atom.js +0 -53
  202. package/sdk/atoms/atoms/textbox-number.atom.js.map +0 -1
  203. package/sdk/atoms/atoms/textbox.atom.d.ts +0 -22
  204. package/sdk/atoms/atoms/textbox.atom.js +0 -59
  205. package/sdk/atoms/atoms/textbox.atom.js.map +0 -1
  206. package/sdk/atoms/atoms/time-frame-bar.atom.d.ts +0 -22
  207. package/sdk/atoms/atoms/time-frame-bar.atom.js +0 -84
  208. package/sdk/atoms/atoms/time-frame-bar.atom.js.map +0 -1
  209. package/sdk/atoms/atoms/time-frame-picker.atom.d.ts +0 -7
  210. package/sdk/atoms/atoms/time-frame-picker.atom.js +0 -36
  211. package/sdk/atoms/atoms/time-frame-picker.atom.js.map +0 -1
  212. package/sdk/atoms/atoms/timepicker.atom.d.ts +0 -18
  213. package/sdk/atoms/atoms/timepicker.atom.js +0 -64
  214. package/sdk/atoms/atoms/timepicker.atom.js.map +0 -1
  215. package/sdk/atoms/atoms/toast.atom.d.ts +0 -28
  216. package/sdk/atoms/atoms/toast.atom.js +0 -67
  217. package/sdk/atoms/atoms/toast.atom.js.map +0 -1
  218. package/sdk/atoms/atoms/toolbar.atom.d.ts +0 -18
  219. package/sdk/atoms/atoms/toolbar.atom.js +0 -87
  220. package/sdk/atoms/atoms/toolbar.atom.js.map +0 -1
  221. package/sdk/atoms/atoms/tooltip.atom.d.ts +0 -9
  222. package/sdk/atoms/atoms/tooltip.atom.js +0 -38
  223. package/sdk/atoms/atoms/tooltip.atom.js.map +0 -1
  224. package/sdk/atoms/atoms/tree.atom.d.ts +0 -17
  225. package/sdk/atoms/atoms/tree.atom.js +0 -87
  226. package/sdk/atoms/atoms/tree.atom.js.map +0 -1
  227. package/sdk/atoms/atoms/wizard-step.atom.d.ts +0 -11
  228. package/sdk/atoms/atoms/wizard-step.atom.js +0 -52
  229. package/sdk/atoms/atoms/wizard-step.atom.js.map +0 -1
  230. package/sdk/atoms/atoms/wizard-v2-footer.atom.d.ts +0 -7
  231. package/sdk/atoms/atoms/wizard-v2-footer.atom.js +0 -36
  232. package/sdk/atoms/atoms/wizard-v2-footer.atom.js.map +0 -1
  233. package/sdk/atoms/atoms/wizard-v2-step-header.atom.d.ts +0 -7
  234. package/sdk/atoms/atoms/wizard-v2-step-header.atom.js +0 -41
  235. package/sdk/atoms/atoms/wizard-v2-step-header.atom.js.map +0 -1
  236. package/sdk/atoms/atoms/wizard-v2-step.atom.d.ts +0 -5
  237. package/sdk/atoms/atoms/wizard-v2-step.atom.js +0 -32
  238. package/sdk/atoms/atoms/wizard-v2-step.atom.js.map +0 -1
  239. package/sdk/atoms/atoms/wizard-v2.atom.d.ts +0 -18
  240. package/sdk/atoms/atoms/wizard-v2.atom.js +0 -85
  241. package/sdk/atoms/atoms/wizard-v2.atom.js.map +0 -1
  242. package/sdk/atoms/atoms/wizard.atom.d.ts +0 -22
  243. package/sdk/atoms/atoms/wizard.atom.js +0 -91
  244. package/sdk/atoms/atoms/wizard.atom.js.map +0 -1
  245. package/sdk/atoms/helpers.d.ts +0 -39
  246. package/sdk/atoms/helpers.js +0 -234
  247. package/sdk/atoms/helpers.js.map +0 -1
  248. package/sdk/atoms/index.d.ts +0 -4
  249. package/sdk/atoms/index.js +0 -30
  250. package/sdk/atoms/index.js.map +0 -1
  251. package/sdk/atoms/virtual-camera/Camera.d.ts +0 -21
  252. package/sdk/atoms/virtual-camera/Camera.js +0 -54
  253. package/sdk/atoms/virtual-camera/Camera.js.map +0 -1
  254. package/sdk/atoms/virtual-camera/camera-engine.d.ts +0 -13
  255. package/sdk/atoms/virtual-camera/camera-engine.js +0 -81
  256. package/sdk/atoms/virtual-camera/camera-engine.js.map +0 -1
  257. package/sdk/atoms/virtual-camera/camera-settings.d.ts +0 -10
  258. package/sdk/atoms/virtual-camera/camera-settings.js +0 -59
  259. package/sdk/atoms/virtual-camera/camera-settings.js.map +0 -1
  260. package/sdk/atoms/virtual-camera/camera-toggle.d.ts +0 -7
  261. package/sdk/atoms/virtual-camera/camera-toggle.js +0 -40
  262. package/sdk/atoms/virtual-camera/camera-toggle.js.map +0 -1
  263. package/sdk/atoms/virtual-camera/percy-lens.d.ts +0 -17
  264. package/sdk/atoms/virtual-camera/percy-lens.js +0 -84
  265. package/sdk/atoms/virtual-camera/percy-lens.js.map +0 -1
  266. package/sdk/atoms/virtual-camera/public_api.d.ts +0 -2
  267. package/sdk/atoms/virtual-camera/public_api.js +0 -25
  268. package/sdk/atoms/virtual-camera/public_api.js.map +0 -1
  269. package/sdk/atoms/virtual-camera/types.d.ts +0 -35
  270. package/sdk/atoms/virtual-camera/types.js +0 -50
  271. package/sdk/atoms/virtual-camera/types.js.map +0 -1
@@ -1,48 +0,0 @@
1
- import { ElementFinder } from "protractor";
2
- import { By, ILocation } from "selenium-webdriver";
3
- export interface IAtomClass<T extends Atom> {
4
- new (element: ElementFinder): T;
5
- CSS_CLASS?: string;
6
- CSS_SELECTOR?: string;
7
- findIn<M extends Atom>(atomClass: IAtomClass<M>, parentElement: ElementFinder, index?: number): M;
8
- }
9
- export declare class Atom {
10
- /**
11
- * Finds given component based on unique css id
12
- */
13
- static find<T extends Atom>(atomClass: IAtomClass<T>, id: string): T;
14
- static getSelector<T extends Atom>(atomClass: IAtomClass<T>): string;
15
- static getLocator<T extends Atom>(atomClass: IAtomClass<T>): By;
16
- /**
17
- * Finds given component inside provided element
18
- * - Will match provided element directly if it's a component
19
- * - Will provide a warning if more child components are found
20
- * - Uses static CSS_CLASS property in component's class
21
- */
22
- static findIn<T extends Atom>(atomClass: IAtomClass<T>, parentElement: ElementFinder, index?: number): T;
23
- static findCount<T extends Atom>(atomClass: IAtomClass<T>, parentElement?: ElementFinder): Promise<number>;
24
- static getClasses(el: ElementFinder): Promise<string[]>;
25
- static hasClass(el: ElementFinder, className: string): Promise<boolean>;
26
- static hasAnyClass(el: ElementFinder, classNamesToSearch: string[]): Promise<boolean>;
27
- static wait<T>(callback: () => Promise<T>, timeout?: number): Promise<T>;
28
- private element;
29
- constructor(element: ElementFinder);
30
- isDisabled(): Promise<boolean>;
31
- isDisplayed(): Promise<boolean>;
32
- isPresent(): Promise<boolean>;
33
- hasClass(className: string): Promise<boolean>;
34
- getElement(): ElementFinder;
35
- waitElementVisible(): Promise<void>;
36
- isChildElementPresent(locator: any): Promise<boolean>;
37
- /**
38
- * If no arguments are provided, will hover over center of the current element.
39
- * If only an element argument is provided, will hover over center of provided element.
40
- * If null element argument and location is provided, will offset from the top left corner of current element.
41
- * If an element and location is provided, will offset from top left of provided element.
42
- * @param {ElementFinder} [el] - accepts an element to mouse over center
43
- * @param {ILocation} [location] - offsets the mouse from top left of element
44
- */
45
- hover(el?: ElementFinder, location?: ILocation): Promise<void>;
46
- readonly scrollTo: (options?: ScrollIntoViewOptions) => Promise<void>;
47
- wait<T>(callback: () => Promise<T>, timeout?: number): Promise<T>;
48
- }
package/sdk/atoms/atom.js DELETED
@@ -1,179 +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.Atom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const EC = protractor_1.protractor.ExpectedConditions;
26
- const byCssWithRoot = (selector) => {
27
- if (!Object.hasOwnProperty.call(protractor_1.by, "cssWithRoot")) {
28
- protractor_1.by.addLocator("cssWithRoot",
29
- // This function is executed inside browser, needs to be inline
30
- (selector, rootElement) => {
31
- if (!rootElement) {
32
- rootElement = window.document.body;
33
- }
34
- if (!rootElement) {
35
- return;
36
- }
37
- if (rootElement.matches(selector)) {
38
- return rootElement;
39
- }
40
- return rootElement.querySelectorAll(selector);
41
- });
42
- }
43
- return protractor_1.by.cssWithRoot(selector);
44
- };
45
- class Atom {
46
- /**
47
- * Finds given component based on unique css id
48
- */
49
- static find(atomClass, id) {
50
- return atomClass.findIn(atomClass, (0, protractor_1.element)(protractor_1.by.id(id)));
51
- }
52
- static getSelector(atomClass) {
53
- if (atomClass.CSS_CLASS) {
54
- return `.${atomClass.CSS_CLASS}`;
55
- }
56
- if (atomClass.CSS_SELECTOR) {
57
- return atomClass.CSS_SELECTOR;
58
- }
59
- throw new ReferenceError(`expected atom class ${atomClass.name} to have either CSS_CLASS or CSS_SELECTOR nonempty`);
60
- }
61
- static getLocator(atomClass) {
62
- return byCssWithRoot(Atom.getSelector(atomClass));
63
- }
64
- /**
65
- * Finds given component inside provided element
66
- * - Will match provided element directly if it's a component
67
- * - Will provide a warning if more child components are found
68
- * - Uses static CSS_CLASS property in component's class
69
- */
70
- static findIn(atomClass, parentElement, index) {
71
- if (atomClass.findIn !== Atom.findIn) {
72
- return atomClass.findIn(atomClass, parentElement, index);
73
- }
74
- const locator = Atom.getLocator(atomClass);
75
- const create = (root) => new atomClass(root);
76
- if (index !== undefined) {
77
- if (!parentElement) {
78
- return create(protractor_1.element.all(locator).get(index));
79
- }
80
- return create(parentElement.all(locator).get(index));
81
- }
82
- if (!parentElement) {
83
- return create((0, protractor_1.element)(locator));
84
- }
85
- return create(parentElement.element(locator));
86
- }
87
- static findCount(atomClass, parentElement) {
88
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
89
- const locator = Atom.getLocator(atomClass);
90
- return yield (parentElement !== null && parentElement !== void 0 ? parentElement : protractor_1.element).all(locator).count();
91
- });
92
- }
93
- static getClasses(el) {
94
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
95
- return (yield el.getAttribute("class"))
96
- .split(/\s+/)
97
- .filter((name) => !!name);
98
- });
99
- }
100
- static hasClass(el, className) {
101
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
102
- const classes = yield Atom.getClasses(el);
103
- return classes.includes(className);
104
- });
105
- }
106
- static hasAnyClass(el, classNamesToSearch) {
107
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
108
- const classes = yield Atom.getClasses(el);
109
- return classes.some((name) => classNamesToSearch.includes(name));
110
- });
111
- }
112
- static wait(callback_1) {
113
- return tslib_1.__awaiter(this, arguments, void 0, function* (callback, timeout = 5000) {
114
- return yield protractor_1.browser.wait(callback, timeout);
115
- });
116
- }
117
- constructor(element) {
118
- this.scrollTo = (options) => tslib_1.__awaiter(this, void 0, void 0, function* () {
119
- return protractor_1.browser.executeScript("arguments[0].scrollIntoView(arguments[1])", this.getElement().getWebElement(), options || null);
120
- });
121
- this.element = element;
122
- }
123
- isDisabled() {
124
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
125
- return !(yield this.element.isEnabled());
126
- });
127
- }
128
- isDisplayed() {
129
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
130
- return this.element.isDisplayed();
131
- });
132
- }
133
- isPresent() {
134
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
135
- return this.element.isPresent();
136
- });
137
- }
138
- hasClass(className) {
139
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
140
- return Atom.hasClass(this.element, className);
141
- });
142
- }
143
- getElement() {
144
- return this.element;
145
- }
146
- waitElementVisible() {
147
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
148
- yield protractor_1.browser.wait(EC.visibilityOf(this.getElement()), 5000, "Element is not visible");
149
- });
150
- }
151
- isChildElementPresent(locator) {
152
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
153
- return yield this.element.isElementPresent(locator);
154
- });
155
- }
156
- /**
157
- * If no arguments are provided, will hover over center of the current element.
158
- * If only an element argument is provided, will hover over center of provided element.
159
- * If null element argument and location is provided, will offset from the top left corner of current element.
160
- * If an element and location is provided, will offset from top left of provided element.
161
- * @param {ElementFinder} [el] - accepts an element to mouse over center
162
- * @param {ILocation} [location] - offsets the mouse from top left of element
163
- */
164
- hover(el, location) {
165
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
166
- return protractor_1.browser
167
- .actions()
168
- .mouseMove(el !== null && el !== void 0 ? el : this.getElement(), location)
169
- .perform();
170
- });
171
- }
172
- wait(callback_1) {
173
- return tslib_1.__awaiter(this, arguments, void 0, function* (callback, timeout = 5000) {
174
- return yield Atom.wait(callback, timeout);
175
- });
176
- }
177
- }
178
- exports.Atom = Atom;
179
- //# sourceMappingURL=atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atom.js","sourceRoot":"","sources":["../../../spec/atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,2CAA2E;AAE3E,MAAM,EAAE,GAAG,uBAAU,CAAC,kBAAkB,CAAC;AAazC,MAAM,aAAa,GAAG,CAAC,QAAgB,EAAM,EAAE;IAC3C,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,eAAE,EAAE,aAAa,CAAC,EAAE,CAAC;QACjD,eAAE,CAAC,UAAU,CACT,aAAa;QACb,+DAA+D;QAC/D,CAAC,QAAgB,EAAE,WAAwB,EAAE,EAAE;YAC3C,IAAI,CAAC,WAAW,EAAE,CAAC;gBACf,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YACvC,CAAC;YACD,IAAI,CAAC,WAAW,EAAE,CAAC;gBACf,OAAO;YACX,CAAC;YACD,IAAI,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAChC,OAAO,WAAW,CAAC;YACvB,CAAC;YACD,OAAO,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CA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,CAAC,OAAY;;YAC3C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,KAAK,CACd,EAAkB,EAClB,QAAoB;;YAEpB,OAAO,oBAAO;iBACT,OAAO,EAAE;iBACT,SAAS,CAAC,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,IAAI,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC;iBAC5C,OAAO,EAAE,CAAC;QACnB,CAAC;KAAA;IAWY,IAAI;qEACb,QAA0B,EAC1B,OAAO,GAAG,IAAI;YAEd,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AAlKD,oBAkKC"}
@@ -1,30 +0,0 @@
1
- import { ElementFinder } from "protractor";
2
- import { SelectV2OptionAtom } from "./select-v2-option.atom";
3
- import { Atom } from "../atom";
4
- import { OverlayAtom } from "./overlay.atom";
5
- export declare class BaseSelectV2Atom extends Atom {
6
- popup: OverlayAtom;
7
- input: ElementFinder;
8
- getPopupElement(): ElementFinder;
9
- /**
10
- * Note: Despite its name, this method will only OPEN the dropdown. To toggle it closed, use this
11
- * Atom's "click" method.
12
- */
13
- toggle(): Promise<void>;
14
- getOption(index: number): Promise<SelectV2OptionAtom>;
15
- getFirstOption(): Promise<SelectV2OptionAtom>;
16
- getLastOption(): Promise<SelectV2OptionAtom>;
17
- countOptions(): Promise<number>;
18
- /**
19
- * Note: This method checks whether ANY 'cdk-overlay-pane' on the document body is present
20
- * (not just this dropdown instance). Close any other cdk-overlay-pane instances before invoking this
21
- * method to ensure an accurate return value.
22
- */
23
- isOpened(): Promise<boolean>;
24
- getActiveItemsCount(): Promise<number>;
25
- type(text: string): Promise<void>;
26
- click: () => Promise<void>;
27
- isSelectDisabled(): Promise<boolean>;
28
- select(title: string): Promise<void>;
29
- private waitForPopup;
30
- }
@@ -1,125 +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.BaseSelectV2Atom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const select_v2_option_atom_1 = require("./select-v2-option.atom");
26
- const atom_1 = require("../atom");
27
- const overlay_atom_1 = require("./overlay.atom");
28
- class BaseSelectV2Atom extends atom_1.Atom {
29
- constructor() {
30
- super(...arguments);
31
- this.popup = atom_1.Atom.findIn(overlay_atom_1.OverlayAtom, (0, protractor_1.element)(protractor_1.by.tagName("body")));
32
- this.input = this.getElement().element(protractor_1.by.className("nui-combobox-v2__input"));
33
- this.click = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getElement().click(); });
34
- }
35
- getPopupElement() {
36
- return this.popup.getElement();
37
- }
38
- /**
39
- * Note: Despite its name, this method will only OPEN the dropdown. To toggle it closed, use this
40
- * Atom's "click" method.
41
- */
42
- toggle() {
43
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
- yield this.getElement().click();
45
- yield this.waitForPopup();
46
- });
47
- }
48
- getOption(index) {
49
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
- if (!(yield this.popup.isOpened())) {
51
- yield this.toggle();
52
- }
53
- return atom_1.Atom.findIn(select_v2_option_atom_1.SelectV2OptionAtom, this.popup.getElement(), index);
54
- });
55
- }
56
- getFirstOption() {
57
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
- return this.getOption(0);
59
- });
60
- }
61
- getLastOption() {
62
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
63
- const count = yield atom_1.Atom.findCount(select_v2_option_atom_1.SelectV2OptionAtom, this.getElement());
64
- return this.getOption(count - 1);
65
- });
66
- }
67
- countOptions() {
68
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
69
- if (!(yield this.popup.isOpened())) {
70
- yield this.toggle();
71
- }
72
- return atom_1.Atom.findCount(select_v2_option_atom_1.SelectV2OptionAtom, this.popup.getElement());
73
- });
74
- }
75
- /**
76
- * Note: This method checks whether ANY 'cdk-overlay-pane' on the document body is present
77
- * (not just this dropdown instance). Close any other cdk-overlay-pane instances before invoking this
78
- * method to ensure an accurate return value.
79
- */
80
- isOpened() {
81
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
82
- yield this.waitElementVisible();
83
- return this.popup.isOpened();
84
- });
85
- }
86
- getActiveItemsCount() {
87
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
88
- return this.popup.getElement().all(protractor_1.by.className("active")).count();
89
- });
90
- }
91
- type(text) {
92
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
93
- yield this.getElement().click();
94
- return protractor_1.browser.actions().sendKeys(text).perform();
95
- });
96
- }
97
- isSelectDisabled() {
98
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
99
- const classAttr = yield this.getElement().getAttribute("class");
100
- return classAttr.includes("disabled");
101
- });
102
- }
103
- select(title) {
104
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
105
- if (!(yield this.popup.isPresent())) {
106
- yield this.toggle();
107
- }
108
- const options = this.popup
109
- .getElement()
110
- .all(protractor_1.by.css("nui-select-v2-option"));
111
- const optionsText = yield options.map((option) => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield (option === null || option === void 0 ? void 0 : option.getText()); }));
112
- const titleIndex = optionsText.indexOf(title);
113
- if (titleIndex !== -1) {
114
- yield (yield this.getOption(titleIndex)).click();
115
- }
116
- });
117
- }
118
- waitForPopup() {
119
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
120
- return yield protractor_1.browser.wait(protractor_1.ExpectedConditions.visibilityOf(this.popup.getElement()));
121
- });
122
- }
123
- }
124
- exports.BaseSelectV2Atom = BaseSelectV2Atom;
125
- //# sourceMappingURL=base-select-v2.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-select-v2.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/base-select-v2.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,2CAMoB;AAEpB,mEAA6D;AAC7D,kCAA+B;AAC/B,iDAA6C;AAE7C,MAAa,gBAAiB,SAAQ,WAAI;IAA1C;;QACW,UAAK,GAAgB,WAAI,CAAC,MAAM,CACnC,0BAAW,EACX,IAAA,oBAAO,EAAC,eAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAC9B,CAAC;QACK,UAAK,GAAG,IAAI,CAAC,UAAU,E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AG,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAE9C,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE,CAAC;gBACpB,MAAM,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;YACrD,CAAC;QACL,CAAC;KAAA;IAEa,YAAY;;YACtB,OAAO,MAAM,oBAAO,CAAC,IAAI,CACrB,+BAAkB,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAC3D,CAAC;QACN,CAAC;KAAA;CACJ;AAhGD,4CAgGC"}
@@ -1,21 +0,0 @@
1
- import { ElementArrayFinder, ElementFinder } from "protractor";
2
- import { Atom } from "../atom";
3
- import { MenuAtom } from "./menu.atom";
4
- export declare class BasicSelectAtom extends Atom {
5
- toggleMenu: () => Promise<void>;
6
- /**
7
- * Toggle select and select a new item from the options.
8
- */
9
- select: (title: string) => Promise<void>;
10
- getSelectedItem: () => ElementFinder;
11
- getSelectedItems: () => ElementArrayFinder;
12
- elementHasClass: (selector: string, className: string) => Promise<boolean>;
13
- getItemsCount: () => Promise<number>;
14
- getItemText: (idx: number) => Promise<string>;
15
- getMenu: () => MenuAtom;
16
- getElementByClass: (className: string) => ElementFinder;
17
- protected getElementByTagName: (tagName: string) => ElementFinder;
18
- protected getElementByCss: (selector: string) => ElementFinder;
19
- protected getElementsByCss: (selector: string) => ElementArrayFinder;
20
- private getMenuItem;
21
- }
@@ -1,56 +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.BasicSelectAtom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const atom_1 = require("../atom");
26
- const menu_atom_1 = require("./menu.atom");
27
- class BasicSelectAtom extends atom_1.Atom {
28
- constructor() {
29
- super(...arguments);
30
- this.toggleMenu = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getMenu().toggleMenu(); });
31
- /**
32
- * Toggle select and select a new item from the options.
33
- */
34
- this.select = (title) => tslib_1.__awaiter(this, void 0, void 0, function* () {
35
- // Have to click (toggle the repeat) first because you can't interact with hidden elements
36
- yield this.toggleMenu();
37
- yield this.getMenu().getMenuItemByContainingText(title).clickItem();
38
- });
39
- this.getSelectedItem = () => this.getElement().element(protractor_1.by.className("item-selected"));
40
- this.getSelectedItems = () => this.getElement().all(protractor_1.by.css(".item-selected"));
41
- this.elementHasClass = (selector, className) => tslib_1.__awaiter(this, void 0, void 0, function* () {
42
- const elementClassList = yield this.getElementByClass(selector).getAttribute("class");
43
- return elementClassList.includes(className);
44
- });
45
- this.getItemsCount = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getMenu().itemCount(); });
46
- this.getItemText = (idx) => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getMenuItem(idx).getTitle(); });
47
- this.getMenu = () => atom_1.Atom.findIn(menu_atom_1.MenuAtom, this.getElement());
48
- this.getElementByClass = (className) => this.getElement().element(protractor_1.by.className(className));
49
- this.getElementByTagName = (tagName) => this.getElement().element(protractor_1.by.tagName(tagName));
50
- this.getElementByCss = (selector) => this.getElement().element(protractor_1.by.css(selector));
51
- this.getElementsByCss = (selector) => this.getElement().all(protractor_1.by.css(selector));
52
- this.getMenuItem = (idx) => this.getMenu().getMenuItemByIndex(idx);
53
- }
54
- }
55
- exports.BasicSelectAtom = BasicSelectAtom;
56
- //# sourceMappingURL=basic-select.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"basic-select.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/basic-select.atom.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;AAEjB,2CAAmE;AAEnE,kCAA+B;AAE/B,2CAAuC;AAEvC,MAAa,eAAgB,SAAQ,WAAI;IAAzC;;QACW,eAAU,GAAG,GAAwB,EAAE,wDAAC,OAAA,IAAI,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE,CAAA,GAAA,CAAC;QAE3E;;WAEG;QACI,WAAM,GAAG,CAAO,KAAa,EAAiB,EAAE;YACnD,0FAA0F;YAC1F,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC;QACxE,CAAC,CAAA,CAAC;QAEK,oBAAe,GAAG,GAAkB,EAAE,CACzC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,QAAQ,CAAC,CAAC,CAAC;QAEtC,qBAAgB,GAAG,CAAC,QAAgB,EAAsB,EAAE,CAClE,IAAI,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEpC,gBAAW,GAAG,CAAC,GAAW,EAAgB,EAAE,CAChD,IAAI,CAAC,OAAO,EAAE,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;CAAA;AAlDD,0CAkDC"}
@@ -1,11 +0,0 @@
1
- import { ElementArrayFinder, ElementFinder } from "protractor";
2
- import { Atom } from "../atom";
3
- export declare class BreadcrumbAtom extends Atom {
4
- static CSS_CLASS: string;
5
- getAllItems(): ElementArrayFinder;
6
- getItemsCount: () => Promise<number>;
7
- getLastItem: () => ElementFinder;
8
- getFirstItem: () => ElementFinder;
9
- getLink: (item: ElementFinder) => ElementFinder;
10
- getUrlState(): Promise<string>;
11
- }
@@ -1,46 +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.BreadcrumbAtom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const atom_1 = require("../atom");
26
- class BreadcrumbAtom extends atom_1.Atom {
27
- constructor() {
28
- super(...arguments);
29
- this.getItemsCount = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.getAllItems().count(); });
30
- this.getLastItem = () => this.getAllItems().last();
31
- this.getFirstItem = () => this.getAllItems().first();
32
- this.getLink = (item) => item.element(protractor_1.by.className("nui-breadcrumb__crumb"));
33
- }
34
- getAllItems() {
35
- return super.getElement().all(protractor_1.by.css(".nui-breadcrumb__wrapper"));
36
- }
37
- getUrlState() {
38
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
39
- const fullUrl = yield protractor_1.browser.getCurrentUrl();
40
- return fullUrl.split("#")[1];
41
- });
42
- }
43
- }
44
- exports.BreadcrumbAtom = BreadcrumbAtom;
45
- BreadcrumbAtom.CSS_CLASS = "nui-breadcrumb";
46
- //# sourceMappingURL=breadcrumb.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/breadcrumb.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;AAE/B,MAAa,cAAe,SAAQ,WAAI;IAAxC;;QAOW,kBAAa,GAAG,GAA0B,EAAE,wDAC/C,OAAA,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAA,GAAA,CAAC;QAExB,gBAAW,GAAG,GAAkB,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;QAE7D,iBAAY,GAAG,GAAkB,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC;QAE/D,YAAO,GAAG,CAAC,IAAmB,EAAiB,EAAE,CACpD,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAM5D,CAAC;IAlBU,WAAW;QACd,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,eAAE,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACtE,CAAC;IAYY,WAAW;;YACpB,MAAM,OAAO,GAAG,MAAM,oBAAO,CAAC,aAAa,EAAE,CAAC;YAC9C,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC;KAAA;;AApBL,wCAqBC;AApBiB,wBAAS,GAAG,gBAAgB,AAAnB,CAAoB"}
@@ -1,12 +0,0 @@
1
- import { Atom } from "../atom";
2
- import { ProgressAtom } from "./progress.atom";
3
- import { SpinnerAtom } from "./spinner.atom";
4
- export declare class BusyAtom extends Atom {
5
- static CSS_CLASS: string;
6
- private root;
7
- isAppended: () => Promise<boolean>;
8
- isDisplayed: () => Promise<boolean>;
9
- isBusy: () => Promise<boolean>;
10
- getProgress: () => ProgressAtom;
11
- getSpinner: () => SpinnerAtom;
12
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
3
- //
4
- // Permission is hereby granted, free of charge, to any person obtaining a copy
5
- // of this software and associated documentation files (the "Software"), to
6
- // deal in the Software without restriction, including without limitation the
7
- // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8
- // sell copies of the Software, and to permit persons to whom the Software is
9
- // furnished to do so, subject to the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included in
12
- // all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- // THE SOFTWARE.
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.BusyAtom = void 0;
23
- const tslib_1 = require("tslib");
24
- const protractor_1 = require("protractor");
25
- const atom_1 = require("../atom");
26
- const progress_atom_1 = require("./progress.atom");
27
- const spinner_atom_1 = require("./spinner.atom");
28
- class BusyAtom extends atom_1.Atom {
29
- constructor() {
30
- super(...arguments);
31
- this.root = this.getElement();
32
- this.isAppended = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.root.element(protractor_1.by.css(".nui-nova-busy__container")).isPresent(); });
33
- this.isDisplayed = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.root.element(protractor_1.by.css(".nui-nova-busy__container")).isDisplayed(); });
34
- this.isBusy = () => tslib_1.__awaiter(this, void 0, void 0, function* () { return this.root.element(protractor_1.by.css(".nui-nova-busy__overlay")).isPresent(); });
35
- this.getProgress = () => atom_1.Atom.findIn(progress_atom_1.ProgressAtom, this.root);
36
- this.getSpinner = () => atom_1.Atom.findIn(spinner_atom_1.SpinnerAtom, this.root);
37
- }
38
- }
39
- exports.BusyAtom = BusyAtom;
40
- BusyAtom.CSS_CLASS = "nui-nova-busy";
41
- //# sourceMappingURL=busy.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"busy.atom.js","sourceRoot":"","sources":["../../../../spec/atoms/busy.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,mDAA+C;AAC/C,iDAA6C;AAE7C,MAAa,QAAS,SAAQ,WAAI;IAAlC;;QAGY,SAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAE1B,eAAU,GAAG,GAA2B,EAAE,wDAC7C,OAAA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA,GAAA,CAAC;QAEhE,gBAAW,GAAG,GAA2B,EAAE,wDAC9C,OAAA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA,GAAA,CAAC;QAElE,WAAM,GAAG,GAA2B,EAAE,wDACzC,OAAA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAE,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,EAAE,CAAA,GAAA,CAAC;QAE9D,gBAAW,GAAG,GAAiB,EAAE,CACpC,WAAI,CAAC,MAAM,CAAC,4BAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAElC,eAAU,GAAG,GAAgB,EAAE,CAAC,WAAI,CAAC,MAAM,CAAC,0BAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAlBD,4BAkBC;AAjBiB,kBAAS,GAAG,eAAe,AAAlB,CAAmB"}
@@ -1,19 +0,0 @@
1
- import { Atom } from "../atom";
2
- import { IconAtom } from "./icon.atom";
3
- export declare class ButtonAtom extends Atom {
4
- static CSS_CLASS: string;
5
- private root;
6
- click: () => Promise<void>;
7
- getText: () => Promise<string>;
8
- isDisabled: () => Promise<boolean>;
9
- isVisible: () => Promise<boolean>;
10
- isBusy: () => Promise<boolean>;
11
- getTextColor: () => Promise<string>;
12
- getBackgroundColor: () => Promise<string>;
13
- getBorderStyle: () => Promise<string>;
14
- mouseDown: () => Promise<void>;
15
- mouseUp: () => Promise<void>;
16
- isIconShown: () => Promise<boolean>;
17
- getIcon: () => IconAtom;
18
- mouseDownAndHold(ms: number): Promise<void>;
19
- }