@nova-ui/bits 20.0.0 → 20.0.2-6712
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/css/styles-css-variables.css +1 -1
- package/bundles/css/styles.css +1 -1
- package/fesm2022/nova-ui-bits.mjs +1347 -846
- package/fesm2022/nova-ui-bits.mjs.map +1 -1
- package/index.d.ts +9397 -3
- package/package.json +9 -1
- package/sdk/atoms/atom.js.map +1 -1
- package/sdk/atoms/atoms/base-select-v2.atom.d.ts +30 -0
- package/sdk/atoms/atoms/base-select-v2.atom.js +125 -0
- package/sdk/atoms/atoms/base-select-v2.atom.js.map +1 -0
- package/sdk/atoms/atoms/basic-select.atom.d.ts +21 -0
- package/sdk/atoms/atoms/basic-select.atom.js +56 -0
- package/sdk/atoms/atoms/basic-select.atom.js.map +1 -0
- package/sdk/atoms/atoms/breadcrumb.atom.d.ts +11 -0
- package/sdk/atoms/atoms/breadcrumb.atom.js +46 -0
- package/sdk/atoms/atoms/breadcrumb.atom.js.map +1 -0
- package/sdk/atoms/atoms/busy.atom.d.ts +12 -0
- package/sdk/atoms/atoms/busy.atom.js +41 -0
- package/sdk/atoms/atoms/busy.atom.js.map +1 -0
- package/sdk/atoms/atoms/button.atom.d.ts +19 -0
- package/sdk/atoms/atoms/button.atom.js +63 -0
- package/sdk/atoms/atoms/button.atom.js.map +1 -0
- package/sdk/atoms/atoms/cdk-drop-item.atom.d.ts +10 -0
- package/sdk/atoms/atoms/cdk-drop-item.atom.js +58 -0
- package/sdk/atoms/atoms/cdk-drop-item.atom.js.map +1 -0
- package/sdk/atoms/atoms/cdk-drop-list.atom.d.ts +8 -0
- package/sdk/atoms/atoms/cdk-drop-list.atom.js +42 -0
- package/sdk/atoms/atoms/cdk-drop-list.atom.js.map +1 -0
- package/sdk/atoms/atoms/checkbox-group.atom.d.ts +11 -0
- package/sdk/atoms/atoms/checkbox-group.atom.js +69 -0
- package/sdk/atoms/atoms/checkbox-group.atom.js.map +1 -0
- package/sdk/atoms/atoms/checkbox.atom.d.ts +30 -0
- package/sdk/atoms/atoms/checkbox.atom.js +94 -0
- package/sdk/atoms/atoms/checkbox.atom.js.map +1 -0
- package/sdk/atoms/atoms/chips.atom.d.ts +32 -0
- package/sdk/atoms/atoms/chips.atom.js +93 -0
- package/sdk/atoms/atoms/chips.atom.js.map +1 -0
- package/sdk/atoms/atoms/combobox-v2.atom.d.ts +22 -0
- package/sdk/atoms/atoms/combobox-v2.atom.js +100 -0
- package/sdk/atoms/atoms/combobox-v2.atom.js.map +1 -0
- package/sdk/atoms/atoms/combobox.atom.d.ts +29 -0
- package/sdk/atoms/atoms/combobox.atom.js +67 -0
- package/sdk/atoms/atoms/combobox.atom.js.map +1 -0
- package/sdk/atoms/atoms/content.atom.d.ts +6 -0
- package/sdk/atoms/atoms/content.atom.js +40 -0
- package/sdk/atoms/atoms/content.atom.js.map +1 -0
- package/sdk/atoms/atoms/datepicker.atom.d.ts +57 -0
- package/sdk/atoms/atoms/datepicker.atom.js +204 -0
- package/sdk/atoms/atoms/datepicker.atom.js.map +1 -0
- package/sdk/atoms/atoms/datetimepicker.atom.d.ts +9 -0
- package/sdk/atoms/atoms/datetimepicker.atom.js +43 -0
- package/sdk/atoms/atoms/datetimepicker.atom.js.map +1 -0
- package/sdk/atoms/atoms/dialog.atom.d.ts +18 -0
- package/sdk/atoms/atoms/dialog.atom.js +77 -0
- package/sdk/atoms/atoms/dialog.atom.js.map +1 -0
- package/sdk/atoms/atoms/divider.atom.d.ts +6 -0
- package/sdk/atoms/atoms/divider.atom.js +45 -0
- package/sdk/atoms/atoms/divider.atom.js.map +1 -0
- package/sdk/atoms/atoms/expander.atom.d.ts +19 -0
- package/sdk/atoms/atoms/expander.atom.js +90 -0
- package/sdk/atoms/atoms/expander.atom.js.map +1 -0
- package/sdk/atoms/atoms/form-field.atom.d.ts +12 -0
- package/sdk/atoms/atoms/form-field.atom.js +73 -0
- package/sdk/atoms/atoms/form-field.atom.js.map +1 -0
- package/sdk/atoms/atoms/freetype-query-builder.atom.d.ts +9 -0
- package/sdk/atoms/atoms/freetype-query-builder.atom.js +51 -0
- package/sdk/atoms/atoms/freetype-query-builder.atom.js.map +1 -0
- package/sdk/atoms/atoms/icon.atom.d.ts +21 -0
- package/sdk/atoms/atoms/icon.atom.js +91 -0
- package/sdk/atoms/atoms/icon.atom.js.map +1 -0
- package/sdk/atoms/atoms/image.atom.d.ts +8 -0
- package/sdk/atoms/atoms/image.atom.js +61 -0
- package/sdk/atoms/atoms/image.atom.js.map +1 -0
- package/sdk/atoms/atoms/layout-sheet-group.atom.d.ts +14 -0
- package/sdk/atoms/atoms/layout-sheet-group.atom.js +91 -0
- package/sdk/atoms/atoms/layout-sheet-group.atom.js.map +1 -0
- package/sdk/atoms/atoms/layout-sheet.atom.d.ts +6 -0
- package/sdk/atoms/atoms/layout-sheet.atom.js +45 -0
- package/sdk/atoms/atoms/layout-sheet.atom.js.map +1 -0
- package/sdk/atoms/atoms/menu-item.atom.d.ts +13 -0
- package/sdk/atoms/atoms/menu-item.atom.js +117 -0
- package/sdk/atoms/atoms/menu-item.atom.js.map +1 -0
- package/sdk/atoms/atoms/menu-popup.atom.d.ts +11 -0
- package/sdk/atoms/atoms/menu-popup.atom.js +57 -0
- package/sdk/atoms/atoms/menu-popup.atom.js.map +1 -0
- package/sdk/atoms/atoms/menu.atom.d.ts +43 -0
- package/sdk/atoms/atoms/menu.atom.js +116 -0
- package/sdk/atoms/atoms/menu.atom.js.map +1 -0
- package/sdk/atoms/atoms/message.atom.d.ts +16 -0
- package/sdk/atoms/atoms/message.atom.js +51 -0
- package/sdk/atoms/atoms/message.atom.js.map +1 -0
- package/sdk/atoms/atoms/overlay-content.atom.d.ts +7 -0
- package/sdk/atoms/atoms/overlay-content.atom.js +35 -0
- package/sdk/atoms/atoms/overlay-content.atom.js.map +1 -0
- package/sdk/atoms/atoms/overlay.atom.d.ts +11 -0
- package/sdk/atoms/atoms/overlay.atom.js +41 -0
- package/sdk/atoms/atoms/overlay.atom.js.map +1 -0
- package/sdk/atoms/atoms/paginator.atom.d.ts +29 -0
- package/sdk/atoms/atoms/paginator.atom.js +199 -0
- package/sdk/atoms/atoms/paginator.atom.js.map +1 -0
- package/sdk/atoms/atoms/panel.atom.d.ts +29 -0
- package/sdk/atoms/atoms/panel.atom.js +120 -0
- package/sdk/atoms/atoms/panel.atom.js.map +1 -0
- package/sdk/atoms/atoms/popover.atom.d.ts +28 -0
- package/sdk/atoms/atoms/popover.atom.js +94 -0
- package/sdk/atoms/atoms/popover.atom.js.map +1 -0
- package/sdk/atoms/atoms/popup.atom.d.ts +16 -0
- package/sdk/atoms/atoms/popup.atom.js +68 -0
- package/sdk/atoms/atoms/popup.atom.js.map +1 -0
- package/sdk/atoms/atoms/progress.atom.d.ts +14 -0
- package/sdk/atoms/atoms/progress.atom.js +65 -0
- package/sdk/atoms/atoms/progress.atom.js.map +1 -0
- package/sdk/atoms/atoms/public_api.d.ts +65 -0
- package/sdk/atoms/atoms/public_api.js +69 -0
- package/sdk/atoms/atoms/public_api.js.map +1 -0
- package/sdk/atoms/atoms/quick-picker.atom.d.ts +8 -0
- package/sdk/atoms/atoms/quick-picker.atom.js +49 -0
- package/sdk/atoms/atoms/quick-picker.atom.js.map +1 -0
- package/sdk/atoms/atoms/radio-group.atom.d.ts +13 -0
- package/sdk/atoms/atoms/radio-group.atom.js +76 -0
- package/sdk/atoms/atoms/radio-group.atom.js.map +1 -0
- package/sdk/atoms/atoms/repeat.atom.d.ts +27 -0
- package/sdk/atoms/atoms/repeat.atom.js +123 -0
- package/sdk/atoms/atoms/repeat.atom.js.map +1 -0
- package/sdk/atoms/atoms/resizer.atom.d.ts +12 -0
- package/sdk/atoms/atoms/resizer.atom.js +52 -0
- package/sdk/atoms/atoms/resizer.atom.js.map +1 -0
- package/sdk/atoms/atoms/search.atom.d.ts +12 -0
- package/sdk/atoms/atoms/search.atom.js +81 -0
- package/sdk/atoms/atoms/search.atom.js.map +1 -0
- package/sdk/atoms/atoms/select-v2-option.atom.d.ts +7 -0
- package/sdk/atoms/atoms/select-v2-option.atom.js +44 -0
- package/sdk/atoms/atoms/select-v2-option.atom.js.map +1 -0
- package/sdk/atoms/atoms/select-v2.atom.js.map +1 -0
- package/sdk/atoms/atoms/select.atom.js.map +1 -0
- package/sdk/atoms/atoms/selector.atom.d.ts +22 -0
- package/sdk/atoms/atoms/selector.atom.js +90 -0
- package/sdk/atoms/atoms/selector.atom.js.map +1 -0
- package/sdk/atoms/atoms/sorter.atom.d.ts +33 -0
- package/sdk/atoms/atoms/sorter.atom.js +123 -0
- package/sdk/atoms/atoms/sorter.atom.js.map +1 -0
- package/sdk/atoms/atoms/spinner.atom.d.ts +12 -0
- package/sdk/atoms/atoms/spinner.atom.js +45 -0
- package/sdk/atoms/atoms/spinner.atom.js.map +1 -0
- package/sdk/atoms/atoms/switch.atom.d.ts +14 -0
- package/sdk/atoms/atoms/switch.atom.js +73 -0
- package/sdk/atoms/atoms/switch.atom.js.map +1 -0
- package/sdk/atoms/atoms/tab-heading-group.atom.d.ts +16 -0
- package/sdk/atoms/atoms/tab-heading-group.atom.js +108 -0
- package/sdk/atoms/atoms/tab-heading-group.atom.js.map +1 -0
- package/sdk/atoms/atoms/tab-heading.atom.d.ts +8 -0
- package/sdk/atoms/atoms/tab-heading.atom.js +52 -0
- package/sdk/atoms/atoms/tab-heading.atom.js.map +1 -0
- package/sdk/atoms/atoms/table.atom.d.ts +73 -0
- package/sdk/atoms/atoms/table.atom.js +210 -0
- package/sdk/atoms/atoms/table.atom.js.map +1 -0
- package/sdk/atoms/atoms/textbox-number.atom.d.ts +18 -0
- package/sdk/atoms/atoms/textbox-number.atom.js +53 -0
- package/sdk/atoms/atoms/textbox-number.atom.js.map +1 -0
- package/sdk/atoms/atoms/textbox.atom.d.ts +22 -0
- package/sdk/atoms/atoms/textbox.atom.js +59 -0
- package/sdk/atoms/atoms/textbox.atom.js.map +1 -0
- package/sdk/atoms/atoms/time-frame-bar.atom.d.ts +22 -0
- package/sdk/atoms/atoms/time-frame-bar.atom.js +84 -0
- package/sdk/atoms/atoms/time-frame-bar.atom.js.map +1 -0
- package/sdk/atoms/atoms/time-frame-picker.atom.d.ts +7 -0
- package/sdk/atoms/atoms/time-frame-picker.atom.js +36 -0
- package/sdk/atoms/atoms/time-frame-picker.atom.js.map +1 -0
- package/sdk/atoms/atoms/timepicker.atom.d.ts +18 -0
- package/sdk/atoms/atoms/timepicker.atom.js +64 -0
- package/sdk/atoms/atoms/timepicker.atom.js.map +1 -0
- package/sdk/atoms/atoms/toast.atom.d.ts +28 -0
- package/sdk/atoms/atoms/toast.atom.js +67 -0
- package/sdk/atoms/atoms/toast.atom.js.map +1 -0
- package/sdk/atoms/atoms/toolbar.atom.d.ts +18 -0
- package/sdk/atoms/atoms/toolbar.atom.js +87 -0
- package/sdk/atoms/atoms/toolbar.atom.js.map +1 -0
- package/sdk/atoms/atoms/tooltip.atom.d.ts +9 -0
- package/sdk/atoms/atoms/tooltip.atom.js +38 -0
- package/sdk/atoms/atoms/tooltip.atom.js.map +1 -0
- package/sdk/atoms/atoms/tree.atom.d.ts +17 -0
- package/sdk/atoms/atoms/tree.atom.js +87 -0
- package/sdk/atoms/atoms/tree.atom.js.map +1 -0
- package/sdk/atoms/atoms/wizard-step.atom.d.ts +11 -0
- package/sdk/atoms/atoms/wizard-step.atom.js +52 -0
- package/sdk/atoms/atoms/wizard-step.atom.js.map +1 -0
- package/sdk/atoms/atoms/wizard-v2-footer.atom.d.ts +7 -0
- package/sdk/atoms/atoms/wizard-v2-footer.atom.js +36 -0
- package/sdk/atoms/atoms/wizard-v2-footer.atom.js.map +1 -0
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.d.ts +7 -0
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.js +41 -0
- package/sdk/atoms/atoms/wizard-v2-step-header.atom.js.map +1 -0
- package/sdk/atoms/atoms/wizard-v2-step.atom.d.ts +5 -0
- package/sdk/atoms/atoms/wizard-v2-step.atom.js +32 -0
- package/sdk/atoms/atoms/wizard-v2-step.atom.js.map +1 -0
- package/sdk/atoms/atoms/wizard-v2.atom.d.ts +18 -0
- package/sdk/atoms/atoms/wizard-v2.atom.js +85 -0
- package/sdk/atoms/atoms/wizard-v2.atom.js.map +1 -0
- package/sdk/atoms/atoms/wizard.atom.d.ts +22 -0
- package/sdk/atoms/atoms/wizard.atom.js +91 -0
- package/sdk/atoms/atoms/wizard.atom.js.map +1 -0
- package/sdk/atoms/index.d.ts +1 -2
- package/sdk/atoms/index.js +1 -2
- package/sdk/atoms/index.js.map +1 -1
- package/sdk/atoms-playwright/atom.d.ts +37 -0
- package/sdk/atoms-playwright/atom.js +102 -0
- package/sdk/atoms-playwright/atom.js.map +1 -0
- package/sdk/atoms-playwright/components/breadcrumb/breadcrumb.atom.d.ts +8 -0
- package/sdk/atoms-playwright/components/breadcrumb/breadcrumb.atom.js +18 -0
- package/sdk/atoms-playwright/components/breadcrumb/breadcrumb.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/busy/busy.atom.d.ts +12 -0
- package/sdk/atoms-playwright/components/busy/busy.atom.js +45 -0
- package/sdk/atoms-playwright/components/busy/busy.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/button/button.atom.d.ts +16 -0
- package/sdk/atoms-playwright/components/button/button.atom.js +38 -0
- package/sdk/atoms-playwright/components/button/button.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.d.ts +33 -0
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js +67 -0
- package/sdk/atoms-playwright/components/checkbox/checkbox.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/checkbox-group/checkbox-group.atom.d.ts +13 -0
- package/sdk/atoms-playwright/components/checkbox-group/checkbox-group.atom.js +67 -0
- package/sdk/atoms-playwright/components/checkbox-group/checkbox-group.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/chips/chips.atom.d.ts +20 -0
- package/sdk/atoms-playwright/components/chips/chips.atom.js +49 -0
- package/sdk/atoms-playwright/components/chips/chips.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/datepicker/datepicker.atom.d.ts +56 -0
- package/sdk/atoms-playwright/components/datepicker/datepicker.atom.js +166 -0
- package/sdk/atoms-playwright/components/datepicker/datepicker.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/datetimepicker/datetimepicker.atom.d.ts +9 -0
- package/sdk/atoms-playwright/components/datetimepicker/datetimepicker.atom.js +36 -0
- package/sdk/atoms-playwright/components/datetimepicker/datetimepicker.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/dialog/dialog.atom.d.ts +19 -0
- package/sdk/atoms-playwright/components/dialog/dialog.atom.js +69 -0
- package/sdk/atoms-playwright/components/dialog/dialog.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/icon/icon.atom.d.ts +20 -0
- package/sdk/atoms-playwright/components/icon/icon.atom.js +43 -0
- package/sdk/atoms-playwright/components/icon/icon.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/menu/menu-item.atom.d.ts +13 -0
- package/sdk/atoms-playwright/components/menu/menu-item.atom.js +66 -0
- package/sdk/atoms-playwright/components/menu/menu-item.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/menu/menu.atom.d.ts +36 -0
- package/sdk/atoms-playwright/components/menu/menu.atom.js +150 -0
- package/sdk/atoms-playwright/components/menu/menu.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.d.ts +11 -0
- package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.js +29 -0
- package/sdk/atoms-playwright/components/menu-popup/menu-popup.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/overlay/overlay.atom.d.ts +14 -0
- package/sdk/atoms-playwright/components/overlay/overlay.atom.js +27 -0
- package/sdk/atoms-playwright/components/overlay/overlay.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/paginator/paginator.atom.d.ts +29 -0
- package/sdk/atoms-playwright/components/paginator/paginator.atom.js +137 -0
- package/sdk/atoms-playwright/components/paginator/paginator.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/popover/popover.atom.d.ts +27 -0
- package/sdk/atoms-playwright/components/popover/popover.atom.js +103 -0
- package/sdk/atoms-playwright/components/popover/popover.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/popup/overlay-content.atom.d.ts +6 -0
- package/sdk/atoms-playwright/components/popup/overlay-content.atom.js +9 -0
- package/sdk/atoms-playwright/components/popup/overlay-content.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/popup/popup.atom.d.ts +18 -0
- package/sdk/atoms-playwright/components/popup/popup.atom.js +49 -0
- package/sdk/atoms-playwright/components/popup/popup.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/progress/progress.atom.d.ts +16 -0
- package/sdk/atoms-playwright/components/progress/progress.atom.js +64 -0
- package/sdk/atoms-playwright/components/progress/progress.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/public_api.d.ts +32 -0
- package/sdk/atoms-playwright/components/public_api.js +52 -0
- package/sdk/atoms-playwright/components/public_api.js.map +1 -0
- package/sdk/atoms-playwright/components/search/search.atom.d.ts +14 -0
- package/sdk/atoms-playwright/components/search/search.atom.js +59 -0
- package/sdk/atoms-playwright/components/search/search.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/select/basic-select.atom.d.ts +23 -0
- package/sdk/atoms-playwright/components/select/basic-select.atom.js +78 -0
- package/sdk/atoms-playwright/components/select/basic-select.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/select/select.atom.d.ts +11 -0
- package/sdk/atoms-playwright/components/select/select.atom.js +45 -0
- package/sdk/atoms-playwright/components/select/select.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/select-v2/base-select-v2.atom.d.ts +38 -0
- package/sdk/atoms-playwright/components/select-v2/base-select-v2.atom.js +122 -0
- package/sdk/atoms-playwright/components/select-v2/base-select-v2.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/select-v2/select-v2-option.atom.d.ts +6 -0
- package/sdk/atoms-playwright/components/select-v2/select-v2-option.atom.js +30 -0
- package/sdk/atoms-playwright/components/select-v2/select-v2-option.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/select-v2/select-v2.atom.d.ts +4 -0
- package/sdk/atoms-playwright/components/select-v2/select-v2.atom.js +24 -0
- package/sdk/atoms-playwright/components/select-v2/select-v2.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/selector/selector.atom.d.ts +24 -0
- package/sdk/atoms-playwright/components/selector/selector.atom.js +62 -0
- package/sdk/atoms-playwright/components/selector/selector.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/spinner/spinner.atom.d.ts +14 -0
- package/sdk/atoms-playwright/components/spinner/spinner.atom.js +48 -0
- package/sdk/atoms-playwright/components/spinner/spinner.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/switch/switch.atom.d.ts +16 -0
- package/sdk/atoms-playwright/components/switch/switch.atom.js +57 -0
- package/sdk/atoms-playwright/components/switch/switch.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/table/table.atom.d.ts +84 -0
- package/sdk/atoms-playwright/components/table/table.atom.js +189 -0
- package/sdk/atoms-playwright/components/table/table.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/textbox/textbox.atom.d.ts +16 -0
- package/sdk/atoms-playwright/components/textbox/textbox.atom.js +25 -0
- package/sdk/atoms-playwright/components/textbox/textbox.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/textbox-number/textbox-number.atom.d.ts +21 -0
- package/sdk/atoms-playwright/components/textbox-number/textbox-number.atom.js +73 -0
- package/sdk/atoms-playwright/components/textbox-number/textbox-number.atom.js.map +1 -0
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.d.ts +19 -0
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js +63 -0
- package/sdk/atoms-playwright/components/timepicker/timepicker.atom.js.map +1 -0
- package/sdk/atoms-playwright/index.d.ts +4 -0
- package/sdk/atoms-playwright/index.js +5 -0
- package/sdk/atoms-playwright/index.js.map +1 -0
- package/sdk/atoms-playwright/setup.d.ts +41 -0
- package/sdk/atoms-playwright/setup.js +174 -0
- package/sdk/atoms-playwright/setup.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/Camera.d.ts +21 -0
- package/sdk/atoms-playwright/virtual-camera/Camera.js +50 -0
- package/sdk/atoms-playwright/virtual-camera/Camera.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/camera-engine.d.ts +13 -0
- package/sdk/atoms-playwright/virtual-camera/camera-engine.js +68 -0
- package/sdk/atoms-playwright/virtual-camera/camera-engine.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/camera-settings.d.ts +10 -0
- package/sdk/atoms-playwright/virtual-camera/camera-settings.js +46 -0
- package/sdk/atoms-playwright/virtual-camera/camera-settings.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/camera-toggle.d.ts +7 -0
- package/sdk/atoms-playwright/virtual-camera/camera-toggle.js +31 -0
- package/sdk/atoms-playwright/virtual-camera/camera-toggle.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/eyes-lens.d.ts +15 -0
- package/sdk/atoms-playwright/virtual-camera/eyes-lens.js +45 -0
- package/sdk/atoms-playwright/virtual-camera/eyes-lens.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/percy-lens.d.ts +17 -0
- package/sdk/atoms-playwright/virtual-camera/percy-lens.js +58 -0
- package/sdk/atoms-playwright/virtual-camera/percy-lens.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/public_api.d.ts +2 -0
- package/sdk/atoms-playwright/virtual-camera/public_api.js +22 -0
- package/sdk/atoms-playwright/virtual-camera/public_api.js.map +1 -0
- package/sdk/atoms-playwright/virtual-camera/types.d.ts +35 -0
- package/sdk/atoms-playwright/virtual-camera/types.js +46 -0
- package/sdk/atoms-playwright/virtual-camera/types.js.map +1 -0
- package/sdk/less/nui-framework-colors.less +17 -0
- package/sdk/schematics/ng-add/index.js +2 -1
- package/sdk/schematics/ng-add/index.js.map +1 -1
- package/sdk/schematics/utility/schematics-helper.d.ts +2 -1
- package/sdk/schematics/utility/schematics-helper.js +7 -1
- package/sdk/schematics/utility/schematics-helper.js.map +1 -1
- package/animations/expand.d.ts +0 -6
- package/animations/fadeIn.d.ts +0 -7
- package/common/common.module.d.ts +0 -24
- package/common/directives/click-filter/click-filter.directive.d.ts +0 -15
- package/common/directives/click-filter/public-api.d.ts +0 -5
- package/common/directives/click-interceptor/click-interceptor.directive.d.ts +0 -19
- package/common/directives/clipboard/clipboard.directive.d.ts +0 -38
- package/common/directives/dragdrop/drag-and-drop.service.d.ts +0 -17
- package/common/directives/dragdrop/dragdrop.constants.d.ts +0 -8
- package/common/directives/dragdrop/draggable.directive.d.ts +0 -70
- package/common/directives/dragdrop/droppable.directive.d.ts +0 -80
- package/common/directives/dragdrop/public-api.d.ts +0 -24
- package/common/directives/index.d.ts +0 -10
- package/common/directives/public-api.d.ts +0 -3
- package/common/directives/resize/resize.directive.d.ts +0 -64
- package/common/directives/resize-observer/resize-observer.directive.d.ts +0 -19
- package/common/directives/resizer/public-api.d.ts +0 -25
- package/common/directives/resizer/resizer.directive.d.ts +0 -90
- package/common/directives/set-focus/set-focus.directive.d.ts +0 -39
- package/common/directives/zoom-content/zoom-content.directive.d.ts +0 -48
- package/constants/button.constants.d.ts +0 -10
- package/constants/dragdrop.constants.d.ts +0 -8
- package/constants/event.constants.d.ts +0 -6
- package/constants/images.constants.d.ts +0 -3
- package/constants/images.d.ts +0 -7
- package/constants/interaction.constants.d.ts +0 -4
- package/constants/keycode.constants.d.ts +0 -40
- package/constants/path.constants.d.ts +0 -3
- package/constants/popover.constants.d.ts +0 -5
- package/constants/public-api.d.ts +0 -12
- package/constants/regex.constants.d.ts +0 -4
- package/constants/resize.constants.d.ts +0 -1
- package/constants/unit-conversion.constants.d.ts +0 -26
- package/constants/wizard.constants.d.ts +0 -5
- package/environment.d.ts +0 -27
- package/functions/immutable-set.d.ts +0 -8
- package/functions/nameof.d.ts +0 -7
- package/functions/public-api.d.ts +0 -5
- package/functions/remove-errors.d.ts +0 -8
- package/functions/traverse.d.ts +0 -3
- package/functions/uuid.d.ts +0 -1
- package/lib/breadcrumb/breadcrumb-state.service.d.ts +0 -13
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -11
- package/lib/breadcrumb/breadcrumb.module.d.ts +0 -12
- package/lib/breadcrumb/public-api.d.ts +0 -5
- package/lib/busy/busy.component.d.ts +0 -28
- package/lib/busy/busy.module.d.ts +0 -12
- package/lib/busy/public-api.d.ts +0 -9
- package/lib/button/button.component.d.ts +0 -82
- package/lib/button/button.module.d.ts +0 -12
- package/lib/button/public-api.d.ts +0 -5
- package/lib/checkbox/checkbox-group.component.d.ts +0 -50
- package/lib/checkbox/checkbox.component.d.ts +0 -96
- package/lib/checkbox/checkbox.module.d.ts +0 -12
- package/lib/checkbox/public-api.d.ts +0 -20
- package/lib/chips/chip/chip.component.d.ts +0 -33
- package/lib/chips/chips-overflow/chips-overflow.component.d.ts +0 -17
- package/lib/chips/chips-overflow.service.d.ts +0 -31
- package/lib/chips/chips.component.d.ts +0 -98
- package/lib/chips/chips.module.d.ts +0 -15
- package/lib/chips/public-api.d.ts +0 -23
- package/lib/content/content.component.d.ts +0 -11
- package/lib/content/content.module.d.ts +0 -11
- package/lib/convenience/time-frame-bar/time-frame-bar.component.d.ts +0 -67
- package/lib/convenience/time-frame-bar/time-frame-bar.module.d.ts +0 -19
- package/lib/date-picker/date-picker-day-picker.component.d.ts +0 -18
- package/lib/date-picker/date-picker-inner.component.d.ts +0 -74
- package/lib/date-picker/date-picker-month-picker.component.d.ts +0 -14
- package/lib/date-picker/date-picker-year-picker.component.d.ts +0 -14
- package/lib/date-picker/date-picker.component.d.ts +0 -114
- package/lib/date-picker/date-picker.module.d.ts +0 -19
- package/lib/date-picker/public-api.d.ts +0 -32
- package/lib/date-time-picker/date-time-picker.component.d.ts +0 -54
- package/lib/date-time-picker/date-time-picker.module.d.ts +0 -13
- package/lib/dialog/confirmation-dialog.component.d.ts +0 -26
- package/lib/dialog/dialog-backdrop.component.d.ts +0 -8
- package/lib/dialog/dialog-footer.component.d.ts +0 -8
- package/lib/dialog/dialog-header.component.d.ts +0 -26
- package/lib/dialog/dialog-ref.d.ts +0 -27
- package/lib/dialog/dialog-stack.service.d.ts +0 -27
- package/lib/dialog/dialog.component.d.ts +0 -46
- package/lib/dialog/dialog.module.d.ts +0 -18
- package/lib/dialog/dialog.service.d.ts +0 -20
- package/lib/dialog/public-api.d.ts +0 -69
- package/lib/divider/divider.component.d.ts +0 -21
- package/lib/divider/divider.module.d.ts +0 -11
- package/lib/divider/public-api.d.ts +0 -2
- package/lib/dnd/dnd-drop-target.directive.d.ts +0 -22
- package/lib/dnd/dnd.module.d.ts +0 -11
- package/lib/dnd/public-api.d.ts +0 -2
- package/lib/docs/copy-text/copy-text.component.d.ts +0 -12
- package/lib/docs/docs.module.d.ts +0 -26
- package/lib/docs/example-code/example-code.component.d.ts +0 -43
- package/lib/docs/example-wrapper/code-sandbox-files.d.ts +0 -15
- package/lib/docs/example-wrapper/code-sandbox.service.d.ts +0 -12
- package/lib/docs/example-wrapper/example-wrapper.component.d.ts +0 -23
- package/lib/docs/live-example-files/angular.json.d.ts +0 -1
- package/lib/docs/live-example-files/app.component.d.ts +0 -1
- package/lib/docs/live-example-files/app.module.d.ts +0 -1
- package/lib/docs/live-example-files/index.html.d.ts +0 -1
- package/lib/docs/live-example-files/main.d.ts +0 -1
- package/lib/docs/live-example-files/package.json.d.ts +0 -33
- package/lib/docs/live-example-files/polyfills.d.ts +0 -1
- package/lib/docs/live-example-files/tsconfig.json.d.ts +0 -1
- package/lib/docs/public-api.d.ts +0 -1
- package/lib/docs/services/sources.service.d.ts +0 -21
- package/lib/docs/srlc-indicator/public-api.d.ts +0 -16
- package/lib/docs/srlc-indicator/srlc-indicator.component.d.ts +0 -16
- package/lib/docs/theme-switcher/theme-switcher.component.d.ts +0 -12
- package/lib/dragdrop/dragdrop.module.d.ts +0 -13
- package/lib/dragdrop/draggable.component.d.ts +0 -21
- package/lib/dragdrop/droppable.component.d.ts +0 -16
- package/lib/dragdrop/public-api.d.ts +0 -2
- package/lib/expander/expander.component.d.ts +0 -44
- package/lib/expander/expander.module.d.ts +0 -12
- package/lib/form-field/form-field.component.d.ts +0 -49
- package/lib/form-field/form-field.module.d.ts +0 -13
- package/lib/form-field/public-api.d.ts +0 -12
- package/lib/form-field/touched-changes-helper.d.ts +0 -12
- package/lib/freetype-query-builder/freetype-query-builder.component.d.ts +0 -87
- package/lib/freetype-query-builder/freetype-query-builder.module.d.ts +0 -21
- package/lib/freetype-query-builder/helpers/freetype-query-utils.service.d.ts +0 -9
- package/lib/freetype-query-builder/helpers/window.d.ts +0 -3
- package/lib/freetype-query-builder/models.d.ts +0 -44
- package/lib/freetype-query-builder/public-api.d.ts +0 -1
- package/lib/freetype-query-builder/text-highlight-overlay/text-highlight-overlay-component.d.ts +0 -35
- package/lib/icon/icon.component.d.ts +0 -37
- package/lib/icon/icon.module.d.ts +0 -11
- package/lib/icon/icon.service.d.ts +0 -23
- package/lib/icon/icons.d.ts +0 -6
- package/lib/icon/public-api.d.ts +0 -1
- package/lib/icon/types.d.ts +0 -92
- package/lib/image/image.component.d.ts +0 -61
- package/lib/image/image.module.d.ts +0 -11
- package/lib/image/public-api.d.ts +0 -8
- package/lib/layout/card/card.component.d.ts +0 -11
- package/lib/layout/card-group/card-group.component.d.ts +0 -11
- package/lib/layout/layout-resizer/layout-resizer.component.d.ts +0 -31
- package/lib/layout/layout.module.d.ts +0 -12
- package/lib/layout/public-api.d.ts +0 -4
- package/lib/layout/sheet/sheet.component.d.ts +0 -17
- package/lib/layout/sheet-group/sheet-group.component.d.ts +0 -52
- package/lib/menu/index.d.ts +0 -9
- package/lib/menu/menu/menu.component.d.ts +0 -84
- package/lib/menu/menu-item/menu-action/menu-action.component.d.ts +0 -26
- package/lib/menu/menu-item/menu-group/menu-group.component.d.ts +0 -8
- package/lib/menu/menu-item/menu-item/menu-item-base.d.ts +0 -32
- package/lib/menu/menu-item/menu-item/menu-item.component.d.ts +0 -19
- package/lib/menu/menu-item/menu-link/menu-link.component.d.ts +0 -31
- package/lib/menu/menu-item/menu-option/menu-option.component.d.ts +0 -33
- package/lib/menu/menu-item/menu-switch/menu-switch.component.d.ts +0 -26
- package/lib/menu/menu-key-control.service.d.ts +0 -42
- package/lib/menu/menu-popup/menu-popup.component.d.ts +0 -25
- package/lib/menu/menu.module.d.ts +0 -24
- package/lib/menu/public-api.d.ts +0 -31
- package/lib/message/message.component.d.ts +0 -33
- package/lib/message/message.module.d.ts +0 -13
- package/lib/overlay/arrow-component/overlay-arrow.component.d.ts +0 -9
- package/lib/overlay/constants.d.ts +0 -7
- package/lib/overlay/overlay-additions.module.d.ts +0 -11
- package/lib/overlay/overlay-component/overlay.component.d.ts +0 -60
- package/lib/overlay/overlay-container.service.d.ts +0 -17
- package/lib/overlay/overlay-custom-container.d.ts +0 -19
- package/lib/overlay/overlay-item/overlay-item.component.d.ts +0 -23
- package/lib/overlay/overlay-position.service.d.ts +0 -26
- package/lib/overlay/overlay-utilities.service.d.ts +0 -10
- package/lib/overlay/overlay.module.d.ts +0 -13
- package/lib/overlay/overlay.service.d.ts +0 -36
- package/lib/overlay/public-api.d.ts +0 -8
- package/lib/overlay/types.d.ts +0 -54
- package/lib/paginator/paginator.component.d.ts +0 -164
- package/lib/paginator/paginator.module.d.ts +0 -15
- package/lib/paginator/public-api.d.ts +0 -11
- package/lib/panel/panel.component.d.ts +0 -123
- package/lib/panel/panel.module.d.ts +0 -12
- package/lib/panel/public-api.d.ts +0 -19
- package/lib/popover/popover-modal.component.d.ts +0 -62
- package/lib/popover/popover-modal.service.d.ts +0 -45
- package/lib/popover/popover-position.service.d.ts +0 -23
- package/lib/popover/popover.component.d.ts +0 -150
- package/lib/popover/popover.module.d.ts +0 -15
- package/lib/popover/public-api.d.ts +0 -12
- package/lib/popup/popup-container.component.d.ts +0 -26
- package/lib/popup/popup-container.service.d.ts +0 -8
- package/lib/popup/popup-toggle.directive.d.ts +0 -15
- package/lib/popup/popup.component.d.ts +0 -84
- package/lib/popup/popup.module.d.ts +0 -15
- package/lib/popup-adapter/popup-adapter.component.d.ts +0 -59
- package/lib/popup-adapter/popup-adapter.module.d.ts +0 -12
- package/lib/progress/progress.component.d.ts +0 -31
- package/lib/progress/progress.module.d.ts +0 -13
- package/lib/public-api.d.ts +0 -36
- package/lib/radio/radio-group.component.d.ts +0 -98
- package/lib/radio/radio.module.d.ts +0 -11
- package/lib/repeat/public-api.d.ts +0 -1
- package/lib/repeat/repeat-item/repeat-item.component.d.ts +0 -16
- package/lib/repeat/repeat.component.d.ts +0 -180
- package/lib/repeat/repeat.module.d.ts +0 -16
- package/lib/repeat/types.d.ts +0 -31
- package/lib/risk-score/risk-score.component.d.ts +0 -25
- package/lib/risk-score/risk-score.module.d.ts +0 -11
- package/lib/search/search.component.d.ts +0 -66
- package/lib/search/search.module.d.ts +0 -14
- package/lib/select/base-select.d.ts +0 -104
- package/lib/select/combobox/combobox.component.d.ts +0 -70
- package/lib/select/index.d.ts +0 -2
- package/lib/select/public-api.d.ts +0 -8
- package/lib/select/select.component.d.ts +0 -41
- package/lib/select/select.module.d.ts +0 -16
- package/lib/select-v2/base-select-v2.d.ts +0 -138
- package/lib/select-v2/combobox-v2/combobox-v2.component.d.ts +0 -64
- package/lib/select-v2/combobox-v2-option-highlight/combobox-v2-option-highlight.directive.d.ts +0 -23
- package/lib/select-v2/constants.d.ts +0 -5
- package/lib/select-v2/mark-as-selected-item.directive.d.ts +0 -13
- package/lib/select-v2/option/select-v2-option.component.d.ts +0 -31
- package/lib/select-v2/option-group/select-v2-option-group.component.d.ts +0 -19
- package/lib/select-v2/option-key-control.service.d.ts +0 -27
- package/lib/select-v2/select/select-v2.component.d.ts +0 -32
- package/lib/select-v2/select-v2.module.d.ts +0 -23
- package/lib/select-v2/selected-items-key-control.service.d.ts +0 -31
- package/lib/select-v2/types.d.ts +0 -11
- package/lib/selector/public-api.d.ts +0 -11
- package/lib/selector/selector.component.d.ts +0 -54
- package/lib/selector/selector.module.d.ts +0 -15
- package/lib/selector/selector.service.d.ts +0 -65
- package/lib/sorter/constants.d.ts +0 -2
- package/lib/sorter/public-api.d.ts +0 -13
- package/lib/sorter/sorter-keyboard.service.d.ts +0 -23
- package/lib/sorter/sorter.component.d.ts +0 -62
- package/lib/sorter/sorter.module.d.ts +0 -14
- package/lib/spinner/public-api.d.ts +0 -8
- package/lib/spinner/spinner.component.d.ts +0 -41
- package/lib/spinner/spinner.module.d.ts +0 -13
- package/lib/switch/switch.component.d.ts +0 -25
- package/lib/switch/switch.module.d.ts +0 -11
- package/lib/tabgroup/tab/tab-heading-custom-template-ref.directive.d.ts +0 -13
- package/lib/tabgroup/tab/tab-heading.directive.d.ts +0 -11
- package/lib/tabgroup/tab/tab.component.d.ts +0 -25
- package/lib/tabgroup/tab-group/tab-group.component.d.ts +0 -37
- package/lib/tabgroup/tab-heading/tab-heading.component.d.ts +0 -22
- package/lib/tabgroup/tab-heading-group/tab-heading-group.component.d.ts +0 -44
- package/lib/tabgroup/tabs.module.d.ts +0 -17
- package/lib/table/constants.d.ts +0 -4
- package/lib/table/public-api.d.ts +0 -5
- package/lib/table/table-cell/table-cell-def.directive.d.ts +0 -12
- package/lib/table/table-cell/table-cell.directive.d.ts +0 -30
- package/lib/table/table-cell/table-column-def.directive.d.ts +0 -20
- package/lib/table/table-cell/table-footer-cell-def.directive.d.ts +0 -12
- package/lib/table/table-cell/table-footer-cell.directive.d.ts +0 -11
- package/lib/table/table-cell/table-header-cell-def.directive.d.ts +0 -12
- package/lib/table/table-cell/table-header-cell.component.d.ts +0 -58
- package/lib/table/table-resizer/table-resizer.directive.d.ts +0 -21
- package/lib/table/table-row/table-row.component.d.ts +0 -118
- package/lib/table/table-state-handler.service.d.ts +0 -280
- package/lib/table/table-virtual-scroll/slice-range.pipe.d.ts +0 -10
- package/lib/table/table-virtual-scroll/table-sticky-header.directive.d.ts +0 -44
- package/lib/table/table-virtual-scroll/table-virtual-scroll-strategy.d.ts +0 -75
- package/lib/table/table-virtual-scroll/table-virtual-scroll.directive.d.ts +0 -42
- package/lib/table/table.component.d.ts +0 -62
- package/lib/table/table.module.d.ts +0 -29
- package/lib/table/types.d.ts +0 -23
- package/lib/textbox/textbox-number/textbox-number.component.d.ts +0 -88
- package/lib/textbox/textbox.component.d.ts +0 -96
- package/lib/textbox/textbox.module.d.ts +0 -16
- package/lib/time-frame-picker/public-api.d.ts +0 -21
- package/lib/time-frame-picker/quick-picker/quick-picker.component.d.ts +0 -22
- package/lib/time-frame-picker/services/timeframe.service.d.ts +0 -87
- package/lib/time-frame-picker/time-frame-format.pipe.d.ts +0 -30
- package/lib/time-frame-picker/time-frame-picker.component.d.ts +0 -37
- package/lib/time-frame-picker/time-frame-picker.module.d.ts +0 -15
- package/lib/time-picker/time-picker-keyboard.service.d.ts +0 -22
- package/lib/time-picker/time-picker.component.d.ts +0 -83
- package/lib/time-picker/time-picker.module.d.ts +0 -15
- package/lib/toast/public-api.d.ts +0 -123
- package/lib/toast/toast-container.service.d.ts +0 -34
- package/lib/toast/toast-injector.d.ts +0 -10
- package/lib/toast/toast-package.d.ts +0 -22
- package/lib/toast/toast-ref.d.ts +0 -30
- package/lib/toast/toast.component.d.ts +0 -69
- package/lib/toast/toast.directive.d.ts +0 -26
- package/lib/toast/toast.module.d.ts +0 -14
- package/lib/toast/toast.service.d.ts +0 -77
- package/lib/toast/toast.servicebase.d.ts +0 -16
- package/lib/toolbar/public-api.d.ts +0 -18
- package/lib/toolbar/toolbar-group.component.d.ts +0 -12
- package/lib/toolbar/toolbar-item.component.d.ts +0 -22
- package/lib/toolbar/toolbar-keyboard.service.d.ts +0 -16
- package/lib/toolbar/toolbar-message.component.d.ts +0 -8
- package/lib/toolbar/toolbar-splitter.component.d.ts +0 -8
- package/lib/toolbar/toolbar.component.d.ts +0 -64
- package/lib/toolbar/toolbar.module.d.ts +0 -19
- package/lib/tooltip/public-api.d.ts +0 -3
- package/lib/tooltip/tooltip.component.d.ts +0 -62
- package/lib/tooltip/tooltip.directive.d.ts +0 -68
- package/lib/tooltip/tooltip.module.d.ts +0 -13
- package/lib/validation-message/custom-validation-message/custom-validation-message.component.d.ts +0 -19
- package/lib/validation-message/public-api.d.ts +0 -2
- package/lib/validation-message/validation-message.component.d.ts +0 -19
- package/lib/validation-message/validation-message.module.d.ts +0 -13
- package/lib/wizard/public-api.d.ts +0 -30
- package/lib/wizard/wizard-step.component.d.ts +0 -84
- package/lib/wizard/wizard.component.d.ts +0 -98
- package/lib/wizard/wizard.module.d.ts +0 -16
- package/lib/wizard-v2/error-state-matcher.provider.d.ts +0 -7
- package/lib/wizard-v2/public-api.d.ts +0 -12
- package/lib/wizard-v2/types.d.ts +0 -13
- package/lib/wizard-v2/wizard-button/wizard-button.d.ts +0 -18
- package/lib/wizard-v2/wizard-footer/wizard-footer.component.d.ts +0 -20
- package/lib/wizard-v2/wizard-horizontal/wizard-horizontal.component.d.ts +0 -59
- package/lib/wizard-v2/wizard-overflow/wizard-overflow.component.d.ts +0 -13
- package/lib/wizard-v2/wizard-step/wizard-step.component.d.ts +0 -29
- package/lib/wizard-v2/wizard-step-footer.directive.d.ts +0 -8
- package/lib/wizard-v2/wizard-step-header/wizard-step-header.component.d.ts +0 -46
- package/lib/wizard-v2/wizard-step-label.directive.d.ts +0 -8
- package/lib/wizard-v2/wizard-vertical/wizard-vertical.component.d.ts +0 -18
- package/lib/wizard-v2/wizard.directive.d.ts +0 -48
- package/lib/wizard-v2/wizard.module.d.ts +0 -23
- package/nui-api.d.ts +0 -58
- package/pipes/highlight.pipe.d.ts +0 -37
- package/pipes/limit-to.pipe.d.ts +0 -21
- package/pipes/map-key-value.pipe.d.ts +0 -22
- package/pipes/unit-conversion.pipe.d.ts +0 -28
- package/public_api.d.ts +0 -165
- package/sdk/atoms/components/breadcrumb/breadcrumb.atom.d.ts +0 -11
- package/sdk/atoms/components/breadcrumb/breadcrumb.atom.js +0 -46
- package/sdk/atoms/components/breadcrumb/breadcrumb.atom.js.map +0 -1
- package/sdk/atoms/components/busy/busy.atom.d.ts +0 -12
- package/sdk/atoms/components/busy/busy.atom.js +0 -41
- package/sdk/atoms/components/busy/busy.atom.js.map +0 -1
- package/sdk/atoms/components/button/button.atom.d.ts +0 -19
- package/sdk/atoms/components/button/button.atom.js +0 -63
- package/sdk/atoms/components/button/button.atom.js.map +0 -1
- package/sdk/atoms/components/checkbox/checkbox.atom.d.ts +0 -30
- package/sdk/atoms/components/checkbox/checkbox.atom.js +0 -94
- package/sdk/atoms/components/checkbox/checkbox.atom.js.map +0 -1
- package/sdk/atoms/components/checkbox-group/checkbox-group.atom.d.ts +0 -11
- package/sdk/atoms/components/checkbox-group/checkbox-group.atom.js +0 -69
- package/sdk/atoms/components/checkbox-group/checkbox-group.atom.js.map +0 -1
- package/sdk/atoms/components/chips/chips.atom.d.ts +0 -32
- package/sdk/atoms/components/chips/chips.atom.js +0 -93
- package/sdk/atoms/components/chips/chips.atom.js.map +0 -1
- package/sdk/atoms/components/combobox/combobox.atom.d.ts +0 -29
- package/sdk/atoms/components/combobox/combobox.atom.js +0 -67
- package/sdk/atoms/components/combobox/combobox.atom.js.map +0 -1
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.d.ts +0 -22
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.js +0 -100
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.js.map +0 -1
- package/sdk/atoms/components/content/content.atom.d.ts +0 -6
- package/sdk/atoms/components/content/content.atom.js +0 -40
- package/sdk/atoms/components/content/content.atom.js.map +0 -1
- package/sdk/atoms/components/convenience/time-frame-bar/time-frame-bar.atom.d.ts +0 -22
- package/sdk/atoms/components/convenience/time-frame-bar/time-frame-bar.atom.js +0 -84
- package/sdk/atoms/components/convenience/time-frame-bar/time-frame-bar.atom.js.map +0 -1
- package/sdk/atoms/components/datepicker/datepicker.atom.d.ts +0 -57
- package/sdk/atoms/components/datepicker/datepicker.atom.js +0 -204
- package/sdk/atoms/components/datepicker/datepicker.atom.js.map +0 -1
- package/sdk/atoms/components/datetimepicker/datetimepicker.atom.d.ts +0 -9
- package/sdk/atoms/components/datetimepicker/datetimepicker.atom.js +0 -43
- package/sdk/atoms/components/datetimepicker/datetimepicker.atom.js.map +0 -1
- package/sdk/atoms/components/dialog/dialog.atom.d.ts +0 -18
- package/sdk/atoms/components/dialog/dialog.atom.js +0 -77
- package/sdk/atoms/components/dialog/dialog.atom.js.map +0 -1
- package/sdk/atoms/components/divider/divider.atom.d.ts +0 -6
- package/sdk/atoms/components/divider/divider.atom.js +0 -45
- package/sdk/atoms/components/divider/divider.atom.js.map +0 -1
- package/sdk/atoms/components/drag-and-drop/cdk-drop-item.atom.d.ts +0 -10
- package/sdk/atoms/components/drag-and-drop/cdk-drop-item.atom.js +0 -58
- package/sdk/atoms/components/drag-and-drop/cdk-drop-item.atom.js.map +0 -1
- package/sdk/atoms/components/drag-and-drop/cdk-drop-list.atom.d.ts +0 -8
- package/sdk/atoms/components/drag-and-drop/cdk-drop-list.atom.js +0 -42
- package/sdk/atoms/components/drag-and-drop/cdk-drop-list.atom.js.map +0 -1
- package/sdk/atoms/components/expander/expander.atom.d.ts +0 -19
- package/sdk/atoms/components/expander/expander.atom.js +0 -90
- package/sdk/atoms/components/expander/expander.atom.js.map +0 -1
- package/sdk/atoms/components/form-field/form-field.atom.d.ts +0 -12
- package/sdk/atoms/components/form-field/form-field.atom.js +0 -73
- package/sdk/atoms/components/form-field/form-field.atom.js.map +0 -1
- package/sdk/atoms/components/freetype-query-builder/freetype-query-builder.atom.d.ts +0 -9
- package/sdk/atoms/components/freetype-query-builder/freetype-query-builder.atom.js +0 -51
- package/sdk/atoms/components/freetype-query-builder/freetype-query-builder.atom.js.map +0 -1
- package/sdk/atoms/components/icon/icon.atom.d.ts +0 -21
- package/sdk/atoms/components/icon/icon.atom.js +0 -91
- package/sdk/atoms/components/icon/icon.atom.js.map +0 -1
- package/sdk/atoms/components/image/image.atom.d.ts +0 -8
- package/sdk/atoms/components/image/image.atom.js +0 -61
- package/sdk/atoms/components/image/image.atom.js.map +0 -1
- package/sdk/atoms/components/layout/index.d.ts +0 -2
- package/sdk/atoms/components/layout/index.js +0 -25
- package/sdk/atoms/components/layout/index.js.map +0 -1
- package/sdk/atoms/components/layout/layout-sheet-group.atom.d.ts +0 -14
- package/sdk/atoms/components/layout/layout-sheet-group.atom.js +0 -91
- package/sdk/atoms/components/layout/layout-sheet-group.atom.js.map +0 -1
- package/sdk/atoms/components/layout/layout-sheet.atom.d.ts +0 -6
- package/sdk/atoms/components/layout/layout-sheet.atom.js +0 -45
- package/sdk/atoms/components/layout/layout-sheet.atom.js.map +0 -1
- package/sdk/atoms/components/menu/menu-item.atom.d.ts +0 -13
- package/sdk/atoms/components/menu/menu-item.atom.js +0 -117
- package/sdk/atoms/components/menu/menu-item.atom.js.map +0 -1
- package/sdk/atoms/components/menu/menu.atom.d.ts +0 -43
- package/sdk/atoms/components/menu/menu.atom.js +0 -116
- package/sdk/atoms/components/menu/menu.atom.js.map +0 -1
- package/sdk/atoms/components/menu-popup/menu-popup.atom.d.ts +0 -11
- package/sdk/atoms/components/menu-popup/menu-popup.atom.js +0 -57
- package/sdk/atoms/components/menu-popup/menu-popup.atom.js.map +0 -1
- package/sdk/atoms/components/message/message.atom.d.ts +0 -16
- package/sdk/atoms/components/message/message.atom.js +0 -51
- package/sdk/atoms/components/message/message.atom.js.map +0 -1
- package/sdk/atoms/components/overlay/overlay.atom.d.ts +0 -11
- package/sdk/atoms/components/overlay/overlay.atom.js +0 -41
- package/sdk/atoms/components/overlay/overlay.atom.js.map +0 -1
- package/sdk/atoms/components/paginator/paginator.atom.d.ts +0 -29
- package/sdk/atoms/components/paginator/paginator.atom.js +0 -199
- package/sdk/atoms/components/paginator/paginator.atom.js.map +0 -1
- package/sdk/atoms/components/panel/panel.atom.d.ts +0 -29
- package/sdk/atoms/components/panel/panel.atom.js +0 -120
- package/sdk/atoms/components/panel/panel.atom.js.map +0 -1
- package/sdk/atoms/components/popover/popover.atom.d.ts +0 -28
- package/sdk/atoms/components/popover/popover.atom.js +0 -94
- package/sdk/atoms/components/popover/popover.atom.js.map +0 -1
- package/sdk/atoms/components/popup/overlay-content.atom.d.ts +0 -7
- package/sdk/atoms/components/popup/overlay-content.atom.js +0 -35
- package/sdk/atoms/components/popup/overlay-content.atom.js.map +0 -1
- package/sdk/atoms/components/popup/popup.atom.d.ts +0 -16
- package/sdk/atoms/components/popup/popup.atom.js +0 -68
- package/sdk/atoms/components/popup/popup.atom.js.map +0 -1
- package/sdk/atoms/components/progress/progress.atom.d.ts +0 -14
- package/sdk/atoms/components/progress/progress.atom.js +0 -65
- package/sdk/atoms/components/progress/progress.atom.js.map +0 -1
- package/sdk/atoms/components/public_api.d.ts +0 -55
- package/sdk/atoms/components/public_api.js +0 -78
- package/sdk/atoms/components/public_api.js.map +0 -1
- package/sdk/atoms/components/radio-group/radio-group.atom.d.ts +0 -13
- package/sdk/atoms/components/radio-group/radio-group.atom.js +0 -76
- package/sdk/atoms/components/radio-group/radio-group.atom.js.map +0 -1
- package/sdk/atoms/components/repeat/repeat.atom.d.ts +0 -27
- package/sdk/atoms/components/repeat/repeat.atom.js +0 -123
- package/sdk/atoms/components/repeat/repeat.atom.js.map +0 -1
- package/sdk/atoms/components/search/search.atom.d.ts +0 -12
- package/sdk/atoms/components/search/search.atom.js +0 -81
- package/sdk/atoms/components/search/search.atom.js.map +0 -1
- package/sdk/atoms/components/select/basic-select.atom.d.ts +0 -21
- package/sdk/atoms/components/select/basic-select.atom.js +0 -56
- package/sdk/atoms/components/select/basic-select.atom.js.map +0 -1
- package/sdk/atoms/components/select/select.atom.js.map +0 -1
- package/sdk/atoms/components/select-v2/base-select-v2.atom.d.ts +0 -30
- package/sdk/atoms/components/select-v2/base-select-v2.atom.js +0 -125
- package/sdk/atoms/components/select-v2/base-select-v2.atom.js.map +0 -1
- package/sdk/atoms/components/select-v2/select-v2-option.atom.d.ts +0 -7
- package/sdk/atoms/components/select-v2/select-v2-option.atom.js +0 -44
- package/sdk/atoms/components/select-v2/select-v2-option.atom.js.map +0 -1
- package/sdk/atoms/components/select-v2/select-v2.atom.js.map +0 -1
- package/sdk/atoms/components/selector/selector.atom.d.ts +0 -17
- package/sdk/atoms/components/selector/selector.atom.js +0 -83
- package/sdk/atoms/components/selector/selector.atom.js.map +0 -1
- package/sdk/atoms/components/selector/selector.e2e.d.ts +0 -6
- package/sdk/atoms/components/selector/selector.e2e.js +0 -92
- package/sdk/atoms/components/selector/selector.e2e.js.map +0 -1
- package/sdk/atoms/components/sorter/sorter.atom.d.ts +0 -33
- package/sdk/atoms/components/sorter/sorter.atom.js +0 -123
- package/sdk/atoms/components/sorter/sorter.atom.js.map +0 -1
- package/sdk/atoms/components/spinner/spinner.atom.d.ts +0 -12
- package/sdk/atoms/components/spinner/spinner.atom.js +0 -45
- package/sdk/atoms/components/spinner/spinner.atom.js.map +0 -1
- package/sdk/atoms/components/switch/switch.atom.d.ts +0 -14
- package/sdk/atoms/components/switch/switch.atom.js +0 -73
- package/sdk/atoms/components/switch/switch.atom.js.map +0 -1
- package/sdk/atoms/components/tab-heading-group/tab-heading-group.atom.d.ts +0 -16
- package/sdk/atoms/components/tab-heading-group/tab-heading-group.atom.js +0 -108
- package/sdk/atoms/components/tab-heading-group/tab-heading-group.atom.js.map +0 -1
- package/sdk/atoms/components/tab-heading-group/tab-heading.atom.d.ts +0 -8
- package/sdk/atoms/components/tab-heading-group/tab-heading.atom.js +0 -52
- package/sdk/atoms/components/tab-heading-group/tab-heading.atom.js.map +0 -1
- package/sdk/atoms/components/table/table.atom.d.ts +0 -73
- package/sdk/atoms/components/table/table.atom.js +0 -210
- package/sdk/atoms/components/table/table.atom.js.map +0 -1
- package/sdk/atoms/components/textbox/textbox.atom.d.ts +0 -22
- package/sdk/atoms/components/textbox/textbox.atom.js +0 -59
- package/sdk/atoms/components/textbox/textbox.atom.js.map +0 -1
- package/sdk/atoms/components/textbox-number/textbox-number.atom.d.ts +0 -18
- package/sdk/atoms/components/textbox-number/textbox-number.atom.js +0 -53
- package/sdk/atoms/components/textbox-number/textbox-number.atom.js.map +0 -1
- package/sdk/atoms/components/time-frame-picker/quick-picker.atom.d.ts +0 -8
- package/sdk/atoms/components/time-frame-picker/quick-picker.atom.js +0 -49
- package/sdk/atoms/components/time-frame-picker/quick-picker.atom.js.map +0 -1
- package/sdk/atoms/components/time-frame-picker/time-frame-picker.atom.d.ts +0 -7
- package/sdk/atoms/components/time-frame-picker/time-frame-picker.atom.js +0 -36
- package/sdk/atoms/components/time-frame-picker/time-frame-picker.atom.js.map +0 -1
- package/sdk/atoms/components/timepicker/timepicker.atom.d.ts +0 -18
- package/sdk/atoms/components/timepicker/timepicker.atom.js +0 -64
- package/sdk/atoms/components/timepicker/timepicker.atom.js.map +0 -1
- package/sdk/atoms/components/toolbar/toolbar.atom.d.ts +0 -18
- package/sdk/atoms/components/toolbar/toolbar.atom.js +0 -87
- package/sdk/atoms/components/toolbar/toolbar.atom.js.map +0 -1
- package/sdk/atoms/components/wizard/wizard-step.atom.d.ts +0 -11
- package/sdk/atoms/components/wizard/wizard-step.atom.js +0 -52
- package/sdk/atoms/components/wizard/wizard-step.atom.js.map +0 -1
- package/sdk/atoms/components/wizard/wizard.atom.d.ts +0 -22
- package/sdk/atoms/components/wizard/wizard.atom.js +0 -91
- package/sdk/atoms/components/wizard/wizard.atom.js.map +0 -1
- package/sdk/atoms/directives/public_api.d.ts +0 -3
- package/sdk/atoms/directives/public_api.js +0 -26
- package/sdk/atoms/directives/public_api.js.map +0 -1
- package/sdk/atoms/directives/resizer/resizer.atom.d.ts +0 -12
- package/sdk/atoms/directives/resizer/resizer.atom.js +0 -52
- package/sdk/atoms/directives/resizer/resizer.atom.js.map +0 -1
- package/sdk/atoms/directives/toast/toast.atom.d.ts +0 -28
- package/sdk/atoms/directives/toast/toast.atom.js +0 -67
- package/sdk/atoms/directives/toast/toast.atom.js.map +0 -1
- package/sdk/atoms/directives/tooltip/tooltip.atom.d.ts +0 -9
- package/sdk/atoms/directives/tooltip/tooltip.atom.js +0 -38
- package/sdk/atoms/directives/tooltip/tooltip.atom.js.map +0 -1
- package/services/content-ref.d.ts +0 -8
- package/services/data-filter.service.d.ts +0 -23
- package/services/data-source/client-side-data-source.service.d.ts +0 -25
- package/services/data-source/data-source-features.d.ts +0 -10
- package/services/data-source/data-source.service.d.ts +0 -31
- package/services/data-source/local-filtering-data-source.service.d.ts +0 -45
- package/services/data-source/noop-data-source.service.d.ts +0 -8
- package/services/data-source/public-api.d.ts +0 -137
- package/services/data-source/server-side-source.service.d.ts +0 -23
- package/services/dom-util.service.d.ts +0 -20
- package/services/edge-detection.service.d.ts +0 -32
- package/services/event-bus.d.ts +0 -18
- package/services/event-bus.service.d.ts +0 -15
- package/services/event-propagation.service.d.ts +0 -35
- package/services/history-storage.d.ts +0 -47
- package/services/list.service.d.ts +0 -41
- package/services/log-service.d.ts +0 -48
- package/services/notification-args.d.ts +0 -14
- package/services/notification-service.d.ts +0 -24
- package/services/position.service.d.ts +0 -37
- package/services/public-api.d.ts +0 -120
- package/services/search.service.d.ts +0 -49
- package/services/tab-navigation.service.d.ts +0 -15
- package/services/theme-switch.service.d.ts +0 -42
- package/services/transient-cache.service.d.ts +0 -18
- package/services/unit-conversion.service.d.ts +0 -94
- package/services/util.service.d.ts +0 -76
- package/services/virtual-viewport-manager.service.d.ts +0 -42
- package/types.d.ts +0 -22
- package/validators/index.d.ts +0 -1
- package/validators/nui-validators.d.ts +0 -20
- /package/sdk/atoms/{components/select-v2 → atoms}/select-v2.atom.d.ts +0 -0
- /package/sdk/atoms/{components/select-v2 → atoms}/select-v2.atom.js +0 -0
- /package/sdk/atoms/{components/select → atoms}/select.atom.d.ts +0 -0
- /package/sdk/atoms/{components/select → atoms}/select.atom.js +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { Atom } from "../../atom";
|
|
21
|
+
export class SwitchAtom extends Atom {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.toggle = async () => this.slider.click();
|
|
25
|
+
this.labelText = async () => (await this.labelElement.textContent()) || "";
|
|
26
|
+
}
|
|
27
|
+
static { this.ON_CSS = "nui-switched"; }
|
|
28
|
+
static { this.CSS_CLASS = "nui-switch"; }
|
|
29
|
+
container() {
|
|
30
|
+
return super.getLocator().locator(".nui-switch__container");
|
|
31
|
+
}
|
|
32
|
+
get labelElement() {
|
|
33
|
+
return super.getLocator().locator(".nui-switch__label");
|
|
34
|
+
}
|
|
35
|
+
get slider() {
|
|
36
|
+
return super.getLocator().locator(".nui-switch__bar");
|
|
37
|
+
}
|
|
38
|
+
async isOn() {
|
|
39
|
+
return this.hasClass(SwitchAtom.ON_CSS);
|
|
40
|
+
}
|
|
41
|
+
async isOff() {
|
|
42
|
+
return !(await this.isOn());
|
|
43
|
+
}
|
|
44
|
+
async isDisabled() {
|
|
45
|
+
return await this.toContainClass("nui-disabled");
|
|
46
|
+
}
|
|
47
|
+
async isNotDisabled() {
|
|
48
|
+
return await this.toNotContainClass("nui-disabled");
|
|
49
|
+
}
|
|
50
|
+
async setState(shouldBeOn) {
|
|
51
|
+
const current = await this.isOn();
|
|
52
|
+
if (current !== shouldBeOn) {
|
|
53
|
+
await this.toggle();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=switch.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.atom.js","sourceRoot":"","sources":["../../../../../e2e/components/switch/switch.atom.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;AAIjB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,OAAO,UAAW,SAAQ,IAAI;IAApC;;QAIW,WAAM,GAAG,KAAK,IAAmB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAUxD,cAAS,GAAG,KAAK,IAAqB,EAAE,CAC3C,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IA2BtD,CAAC;aAzCiB,WAAM,GAAG,cAAc,AAAjB,CAAkB;aACxB,cAAS,GAAG,YAAY,AAAf,CAAgB;IAIhC,SAAS;QACZ,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAChE,CAAC;IAED,IAAW,YAAY;QACnB,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC5D,CAAC;IAKD,IAAW,MAAM;QACb,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC1D,CAAC;IAEM,KAAK,CAAC,IAAI;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAEM,KAAK,CAAC,KAAK;QACd,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAChC,CAAC;IAEM,KAAK,CAAC,UAAU;QACnB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;IACM,KAAK,CAAC,aAAa;QACtB,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IACxD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACrC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAClC,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;YACzB,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC;IACL,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Locator } from "@playwright/test";
|
|
2
|
+
import { Atom } from "../../atom";
|
|
3
|
+
import { CheckboxAtom } from "../checkbox/checkbox.atom";
|
|
4
|
+
import { IconAtom } from "../icon/icon.atom";
|
|
5
|
+
import { SelectorAtom } from "../selector/selector.atom";
|
|
6
|
+
export declare class TableAtom extends Atom {
|
|
7
|
+
static CSS_CLASS: string;
|
|
8
|
+
getColumn(name: string): Locator;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param {number} rowIndex = 0 stands for header row
|
|
12
|
+
* @param {number} cellIndex
|
|
13
|
+
* @returns {Locator}
|
|
14
|
+
*/
|
|
15
|
+
getCell(rowIndex: number, cellIndex: number): Locator;
|
|
16
|
+
getRowContent(rowIndex: number): Promise<Array<string>>;
|
|
17
|
+
getRow: (rowIndex: number) => Locator;
|
|
18
|
+
getRowsCount(): Promise<number>;
|
|
19
|
+
/**
|
|
20
|
+
* Check whether a row is selected
|
|
21
|
+
*/
|
|
22
|
+
isRowSelected: (rowIndex: number) => Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Check whether any part of a row can be clicked to make a selection (not just the checkbox)
|
|
25
|
+
*/
|
|
26
|
+
isRowClickable: (rowIndex: number) => Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Check whether any part of a row can be clicked to make a selection (not just the checkbox)
|
|
29
|
+
*/
|
|
30
|
+
isNotRowClickable: (rowIndex: number) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
* @param {number} rowIndex = 0 stands for header row
|
|
35
|
+
* @param {number} cellIndex
|
|
36
|
+
* @returns {Promise<string>}
|
|
37
|
+
*/
|
|
38
|
+
getCellText: (rowIndex: number, cellIndex: number) => Promise<string | null>;
|
|
39
|
+
/**
|
|
40
|
+
* Gets all the resizers of table
|
|
41
|
+
* @returns {Locator}
|
|
42
|
+
*/
|
|
43
|
+
getResizers: () => Locator;
|
|
44
|
+
/**
|
|
45
|
+
* Gets all header cells of the table
|
|
46
|
+
* @returns {Locator}
|
|
47
|
+
*/
|
|
48
|
+
getHeaderCells: () => Locator;
|
|
49
|
+
getSortingIcon(headerCell: Locator): IconAtom;
|
|
50
|
+
getHeaderCellsWithIcon: () => Locator;
|
|
51
|
+
checkSortingIcons(expectedCellWithIconIndex: number): Promise<void>;
|
|
52
|
+
getCheckbox: (element: Locator) => CheckboxAtom;
|
|
53
|
+
getSelector: (element: Locator) => SelectorAtom;
|
|
54
|
+
/**
|
|
55
|
+
* Use this method to check whether selection is enabled or disabled for all rows including the header
|
|
56
|
+
*
|
|
57
|
+
* @param enabled Pass 'true' if you want to check whether selection is enabled for all rows including the header.
|
|
58
|
+
* Pass 'false' to check whether selection is disabled for all rows including the header.
|
|
59
|
+
*
|
|
60
|
+
* @returns The aggregate selectability status for all rows
|
|
61
|
+
*/
|
|
62
|
+
checkSelectability(enabled: boolean): Promise<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Use this method to check whether selection by clicking on a row is enabled or disabled for all body rows.
|
|
65
|
+
* (When row clicking is enabled, the user doesn't have to specifically click the checkbox in order to select the row.)
|
|
66
|
+
* @param checker
|
|
67
|
+
* the function to check if the row has some expectation
|
|
68
|
+
* Pass 'false' to check whether clicking to select is disabled for all body rows.
|
|
69
|
+
*
|
|
70
|
+
* @returns The aggregate clickability status for all body rows
|
|
71
|
+
*/
|
|
72
|
+
checkRow(checker?: (index: number) => Promise<void>): Promise<void>;
|
|
73
|
+
checkRowClickability(all: boolean): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Checks if all checkboxes in all rows selected
|
|
76
|
+
*/
|
|
77
|
+
isAllRowsSelected(): Promise<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Checks if all checkboxes in all rows selected
|
|
80
|
+
*/
|
|
81
|
+
isAllRowsNotSelected(): Promise<boolean>;
|
|
82
|
+
private isSortingIconDisplayed;
|
|
83
|
+
private isNotSortingIconDisplayed;
|
|
84
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// eslint-disable-next-line no-restricted-imports
|
|
2
|
+
import { isNil } from "lodash";
|
|
3
|
+
import { Atom } from "../../atom";
|
|
4
|
+
import { expect } from "../../setup";
|
|
5
|
+
import { CheckboxAtom } from "../checkbox/checkbox.atom";
|
|
6
|
+
import { IconAtom } from "../icon/icon.atom";
|
|
7
|
+
import { SelectorAtom } from "../selector/selector.atom";
|
|
8
|
+
export class TableAtom extends Atom {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.getRow = (rowIndex) => this.getLocator().locator("tr").nth(rowIndex);
|
|
12
|
+
/**
|
|
13
|
+
* Check whether a row is selected
|
|
14
|
+
*/
|
|
15
|
+
this.isRowSelected = async (rowIndex) => {
|
|
16
|
+
await expect(this.getRow(rowIndex)).toContainClass("nui-table__table-row--selected");
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Check whether any part of a row can be clicked to make a selection (not just the checkbox)
|
|
20
|
+
*/
|
|
21
|
+
this.isRowClickable = async (rowIndex) => {
|
|
22
|
+
await expect(this.getRow(rowIndex)).toContainClass("nui-table__table-row--clickable");
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check whether any part of a row can be clicked to make a selection (not just the checkbox)
|
|
26
|
+
*/
|
|
27
|
+
this.isNotRowClickable = async (rowIndex) => {
|
|
28
|
+
await expect(this.getRow(rowIndex)).not.toContainClass("nui-table__table-row--clickable");
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @deprecated
|
|
33
|
+
* @param {number} rowIndex = 0 stands for header row
|
|
34
|
+
* @param {number} cellIndex
|
|
35
|
+
* @returns {Promise<string>}
|
|
36
|
+
*/
|
|
37
|
+
this.getCellText = async (rowIndex, cellIndex) => this.getCell(rowIndex, cellIndex).textContent();
|
|
38
|
+
/**
|
|
39
|
+
* Gets all the resizers of table
|
|
40
|
+
* @returns {Locator}
|
|
41
|
+
*/
|
|
42
|
+
this.getResizers = () => this.getLocator().locator(".nui-table__resizer");
|
|
43
|
+
/**
|
|
44
|
+
* Gets all header cells of the table
|
|
45
|
+
* @returns {Locator}
|
|
46
|
+
*/
|
|
47
|
+
this.getHeaderCells = () => this.getRow(0).locator("th");
|
|
48
|
+
this.getHeaderCellsWithIcon = () => this.getRow(0).locator(".nui-table__icon-cell");
|
|
49
|
+
this.getCheckbox = (element) => Atom.findIn(CheckboxAtom, element);
|
|
50
|
+
this.getSelector = (element) => Atom.findIn(SelectorAtom, element);
|
|
51
|
+
this.isSortingIconDisplayed = async (headerCell, msg) => {
|
|
52
|
+
expect(await headerCell.count(), msg).toBeGreaterThan(0);
|
|
53
|
+
};
|
|
54
|
+
this.isNotSortingIconDisplayed = async (headerCell, msg) => {
|
|
55
|
+
expect(await headerCell.count(), msg).not.toBeGreaterThan(0);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static { this.CSS_CLASS = "nui-table__table"; }
|
|
59
|
+
getColumn(name) {
|
|
60
|
+
return this.getLocator().locator("th").filter({ hasText: name });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {number} rowIndex = 0 stands for header row
|
|
65
|
+
* @param {number} cellIndex
|
|
66
|
+
* @returns {Locator}
|
|
67
|
+
*/
|
|
68
|
+
getCell(rowIndex, cellIndex) {
|
|
69
|
+
const tableRow = this.getRow(rowIndex);
|
|
70
|
+
if (rowIndex === 0) {
|
|
71
|
+
return tableRow.locator("th").nth(cellIndex);
|
|
72
|
+
}
|
|
73
|
+
return tableRow.locator("td").nth(cellIndex);
|
|
74
|
+
}
|
|
75
|
+
async getRowContent(rowIndex) {
|
|
76
|
+
const tableRow = this.getRow(rowIndex);
|
|
77
|
+
const tableCellTag = rowIndex === 0 ? "th" : "td";
|
|
78
|
+
return tableRow.locator(tableCellTag).allTextContents();
|
|
79
|
+
}
|
|
80
|
+
/*
|
|
81
|
+
* @deprecated use haveCount
|
|
82
|
+
*/
|
|
83
|
+
async getRowsCount() {
|
|
84
|
+
return this.getLocator()
|
|
85
|
+
.locator("tr")
|
|
86
|
+
.count()
|
|
87
|
+
.then((value) => value - 1); // -1 because we don't need to count header row
|
|
88
|
+
}
|
|
89
|
+
getSortingIcon(headerCell) {
|
|
90
|
+
return Atom.findIn(IconAtom, headerCell);
|
|
91
|
+
}
|
|
92
|
+
async checkSortingIcons(expectedCellWithIconIndex) {
|
|
93
|
+
const tableHeaderRow = this.getRow(0);
|
|
94
|
+
const cell = tableHeaderRow
|
|
95
|
+
.locator("th")
|
|
96
|
+
.nth(expectedCellWithIconIndex);
|
|
97
|
+
await this.isSortingIconDisplayed(cell, `Expected cell with index = ${expectedCellWithIconIndex} to contain sorting icon`);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Use this method to check whether selection is enabled or disabled for all rows including the header
|
|
101
|
+
*
|
|
102
|
+
* @param enabled Pass 'true' if you want to check whether selection is enabled for all rows including the header.
|
|
103
|
+
* Pass 'false' to check whether selection is disabled for all rows including the header.
|
|
104
|
+
*
|
|
105
|
+
* @returns The aggregate selectability status for all rows
|
|
106
|
+
*/
|
|
107
|
+
async checkSelectability(enabled) {
|
|
108
|
+
let selectionValidationPassed = 0;
|
|
109
|
+
const rowCount = await this.getLocator().locator("tr").count();
|
|
110
|
+
const rows = await this.getLocator().locator("tr").all();
|
|
111
|
+
for (const row of rows) {
|
|
112
|
+
const rowIndex = rows.indexOf(row);
|
|
113
|
+
if (!row || isNil(rowIndex)) {
|
|
114
|
+
throw new Error("row is not defined");
|
|
115
|
+
}
|
|
116
|
+
const cell = this.getCell(rowIndex, 0);
|
|
117
|
+
if (enabled) {
|
|
118
|
+
await Atom.findIn(CheckboxAtom, cell).toBeVisible();
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
await Atom.findIn(CheckboxAtom, cell).toBeHidden();
|
|
122
|
+
}
|
|
123
|
+
selectionValidationPassed++;
|
|
124
|
+
}
|
|
125
|
+
return selectionValidationPassed === rowCount;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Use this method to check whether selection by clicking on a row is enabled or disabled for all body rows.
|
|
129
|
+
* (When row clicking is enabled, the user doesn't have to specifically click the checkbox in order to select the row.)
|
|
130
|
+
* @param checker
|
|
131
|
+
* the function to check if the row has some expectation
|
|
132
|
+
* Pass 'false' to check whether clicking to select is disabled for all body rows.
|
|
133
|
+
*
|
|
134
|
+
* @returns The aggregate clickability status for all body rows
|
|
135
|
+
*/
|
|
136
|
+
async checkRow(checker = this.isRowClickable) {
|
|
137
|
+
const rows = await this.getLocator().locator("tr").all();
|
|
138
|
+
for (const row of rows) {
|
|
139
|
+
const index = rows.indexOf(row);
|
|
140
|
+
if (!row || isNil(index)) {
|
|
141
|
+
throw new Error("row is not defined");
|
|
142
|
+
}
|
|
143
|
+
// index >= 1 to skip header row
|
|
144
|
+
if (index >= 1) {
|
|
145
|
+
await checker(index);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async checkRowClickability(all) {
|
|
150
|
+
await this.checkRow(all ? this.isRowClickable : this.isNotRowClickable);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Checks if all checkboxes in all rows selected
|
|
154
|
+
*/
|
|
155
|
+
async isAllRowsSelected() {
|
|
156
|
+
const rows = await this.getLocator().locator("tr").all();
|
|
157
|
+
for (const row of rows) {
|
|
158
|
+
const index = rows.indexOf(row);
|
|
159
|
+
if (!row || isNil(index)) {
|
|
160
|
+
throw new Error("row is not defined");
|
|
161
|
+
}
|
|
162
|
+
// index >= 1 to skip header row
|
|
163
|
+
if (index >= 1) {
|
|
164
|
+
const checkBox = this.getCheckbox(this.getCell(index, 0));
|
|
165
|
+
await checkBox.toBeChecked();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Checks if all checkboxes in all rows selected
|
|
172
|
+
*/
|
|
173
|
+
async isAllRowsNotSelected() {
|
|
174
|
+
const rows = await this.getLocator().locator("tr").all();
|
|
175
|
+
for (const row of rows) {
|
|
176
|
+
const index = rows.indexOf(row);
|
|
177
|
+
if (!row || isNil(index)) {
|
|
178
|
+
throw new Error("row is not defined");
|
|
179
|
+
}
|
|
180
|
+
// index >= 1 to skip header row
|
|
181
|
+
if (index >= 1) {
|
|
182
|
+
const checkBox = this.getCheckbox(this.getCell(index, 0));
|
|
183
|
+
await checkBox.toNotBeChecked();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=table.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.atom.js","sourceRoot":"","sources":["../../../../../e2e/components/table/table.atom.ts"],"names":[],"mappings":"AACA,iDAAiD;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,OAAO,SAAU,SAAQ,IAAI;IAAnC;;QA2BW,WAAM,GAAG,CAAC,QAAgB,EAAW,EAAE,CAC1C,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAYlD;;WAEG;QACI,kBAAa,GAAG,KAAK,EAAE,QAAgB,EAAiB,EAAE;YAC7D,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAC9C,gCAAgC,CACnC,CAAC;QACN,CAAC,CAAC;QAEF;;WAEG;QACI,mBAAc,GAAG,KAAK,EAAE,QAAgB,EAAiB,EAAE;YAC9D,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAC9C,iCAAiC,CACpC,CAAC;QACN,CAAC,CAAC;QACF;;WA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AK,IAAI,CAAC,EAAE,CAAC;gBACb,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC1D,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC;YACjC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD;;OAEG;IACI,KAAK,CAAC,oBAAoB;QAC7B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;QACzD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACrB,MAAM,KAAK,GAAuB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACpD,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;YAC1C,CAAC;YACD,gCAAgC;YAChC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;gBACb,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC1D,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAC;YACpC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Locator } from "playwright-core";
|
|
2
|
+
import { Atom } from "../../atom";
|
|
3
|
+
export declare class TextboxAtom extends Atom {
|
|
4
|
+
static CSS_CLASS: string;
|
|
5
|
+
get input(): Locator;
|
|
6
|
+
acceptText: (text: string) => Promise<void>;
|
|
7
|
+
toHaveValue: (text: string) => Promise<void>;
|
|
8
|
+
clearText: () => Promise<void>;
|
|
9
|
+
/** Clear using keyboard (Ctrl+A then Delete) */
|
|
10
|
+
deleteTextManually: () => Promise<void>;
|
|
11
|
+
toBeDisabled: () => Promise<void>;
|
|
12
|
+
toNotBeDisabled: () => Promise<void>;
|
|
13
|
+
toBeReadOnly: () => Promise<void>;
|
|
14
|
+
toHaveError: () => Promise<boolean>;
|
|
15
|
+
toNotHaveError: () => Promise<boolean>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Atom } from "../../atom";
|
|
2
|
+
import { expect } from "../../setup";
|
|
3
|
+
export class TextboxAtom extends Atom {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.acceptText = async (text) => this.input.fill(text);
|
|
7
|
+
this.toHaveValue = async (text) => await expect(this.input).toHaveValue(text);
|
|
8
|
+
this.clearText = async () => this.input.clear();
|
|
9
|
+
/** Clear using keyboard (Ctrl+A then Delete) */
|
|
10
|
+
this.deleteTextManually = async () => {
|
|
11
|
+
await this.input.press("Control+a");
|
|
12
|
+
await this.input.press("Delete");
|
|
13
|
+
};
|
|
14
|
+
this.toBeDisabled = async () => await expect(this.input).toBeDisabled();
|
|
15
|
+
this.toNotBeDisabled = async () => await expect(this.input).not.toBeDisabled();
|
|
16
|
+
this.toBeReadOnly = async () => await expect(this.input).toHaveAttribute("readonly", "");
|
|
17
|
+
this.toHaveError = async () => this.toContainClass("has-error");
|
|
18
|
+
this.toNotHaveError = async () => this.toNotContainClass("has-error");
|
|
19
|
+
}
|
|
20
|
+
static { this.CSS_CLASS = "nui-textbox"; }
|
|
21
|
+
get input() {
|
|
22
|
+
return super.getLocator().locator(".form-control");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=textbox.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textbox.atom.js","sourceRoot":"","sources":["../../../../../e2e/components/textbox/textbox.atom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,MA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ACZ,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACvD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Locator } from "@playwright/test";
|
|
2
|
+
import { Atom } from "../../atom";
|
|
3
|
+
import { ButtonAtom } from "../button/button.atom";
|
|
4
|
+
export declare class TextboxNumberAtom extends Atom {
|
|
5
|
+
static CSS_CLASS: string;
|
|
6
|
+
upButton: ButtonAtom;
|
|
7
|
+
downButton: ButtonAtom;
|
|
8
|
+
input: Locator;
|
|
9
|
+
constructor(locator: Locator);
|
|
10
|
+
getValue(): Promise<string>;
|
|
11
|
+
getPlaceholder(): Promise<string>;
|
|
12
|
+
acceptText(text: string): Promise<void>;
|
|
13
|
+
clearText(): Promise<void>;
|
|
14
|
+
isDisabled(): Promise<boolean>;
|
|
15
|
+
isReadonly(): Promise<boolean>;
|
|
16
|
+
isValid(): Promise<boolean>;
|
|
17
|
+
toBeValid(): Promise<void>;
|
|
18
|
+
toBeInvalid(): Promise<void>;
|
|
19
|
+
toBeDisabled(): Promise<void>;
|
|
20
|
+
toBeEnabled(): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { Atom } from "../../atom";
|
|
21
|
+
import { expect } from "../../setup";
|
|
22
|
+
import { ButtonAtom } from "../button/button.atom";
|
|
23
|
+
export class TextboxNumberAtom extends Atom {
|
|
24
|
+
static { this.CSS_CLASS = "nui-textbox-number"; }
|
|
25
|
+
constructor(locator) {
|
|
26
|
+
super(locator);
|
|
27
|
+
this.upButton = Atom.findIn(ButtonAtom, locator.locator(".nui-textbox-number__up-button"));
|
|
28
|
+
this.downButton = Atom.findIn(ButtonAtom, locator.locator(".nui-textbox-number__down-button"));
|
|
29
|
+
this.input = locator.locator(".nui-textbox__input");
|
|
30
|
+
}
|
|
31
|
+
async getValue() {
|
|
32
|
+
return await this.input.inputValue();
|
|
33
|
+
}
|
|
34
|
+
async getPlaceholder() {
|
|
35
|
+
return (await this.input.getAttribute("placeholder")) ?? "";
|
|
36
|
+
}
|
|
37
|
+
async acceptText(text) {
|
|
38
|
+
await this.input.fill("");
|
|
39
|
+
await this.input.type(text);
|
|
40
|
+
}
|
|
41
|
+
async clearText() {
|
|
42
|
+
await this.input.fill("");
|
|
43
|
+
}
|
|
44
|
+
async isDisabled() {
|
|
45
|
+
const disabled = await this.input.isDisabled();
|
|
46
|
+
const upDisabled = await this.upButton.isDisabled();
|
|
47
|
+
const downDisabled = await this.downButton.isDisabled();
|
|
48
|
+
return disabled && upDisabled && downDisabled;
|
|
49
|
+
}
|
|
50
|
+
async isReadonly() {
|
|
51
|
+
const readonly = await this.input.getAttribute("readonly");
|
|
52
|
+
const upDisabled = await this.upButton.isDisabled();
|
|
53
|
+
const downDisabled = await this.downButton.isDisabled();
|
|
54
|
+
return readonly !== null && upDisabled && downDisabled;
|
|
55
|
+
}
|
|
56
|
+
async isValid() {
|
|
57
|
+
const classList = await this.getLocator().getAttribute("class");
|
|
58
|
+
return !classList?.includes("has-error");
|
|
59
|
+
}
|
|
60
|
+
async toBeValid() {
|
|
61
|
+
await expect(this.getLocator()).not.toHaveClass(/has-error/);
|
|
62
|
+
}
|
|
63
|
+
async toBeInvalid() {
|
|
64
|
+
await expect(this.getLocator()).toHaveClass(/has-error/);
|
|
65
|
+
}
|
|
66
|
+
async toBeDisabled() {
|
|
67
|
+
await expect(this.input).toBeDisabled();
|
|
68
|
+
}
|
|
69
|
+
async toBeEnabled() {
|
|
70
|
+
await expect(this.input).toBeEnabled();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=textbox-number.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textbox-number.atom.js","sourceRoot":"","sources":["../../../../../e2e/components/textbox-number/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;AAIjB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,C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I,UAAU,IAAI,YAAY,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,UAAU;QACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC3D,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;QACpD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACxD,OAAO,QAAQ,KAAK,IAAI,IAAI,UAAU,IAAI,YAAY,CAAC;IAC3D,CAAC;IAEM,KAAK,CAAC,OAAO;QAChB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAChE,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,SAAS;QAClB,MAAM,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACjE,CAAC;IAEM,KAAK,CAAC,WAAW;QACpB,MAAM,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAC7D,CAAC;IAEM,KAAK,CAAC,YAAY;QACrB,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,EAAE,CAAC;IAC5C,CAAC;IAEM,KAAK,CAAC,WAAW;QACpB,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;IAC3C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Locator } from "playwright-core";
|
|
2
|
+
import { Atom } from "../../atom";
|
|
3
|
+
import { IconAtom } from "../icon/icon.atom";
|
|
4
|
+
import { MenuPopupAtom } from "../menu-popup/menu-popup.atom";
|
|
5
|
+
import { OverlayAtom } from "../overlay/overlay.atom";
|
|
6
|
+
import { TextboxAtom } from "../textbox/textbox.atom";
|
|
7
|
+
export declare class TimepickerAtom extends Atom {
|
|
8
|
+
static CSS_CLASS: string;
|
|
9
|
+
static defaultFormat: string;
|
|
10
|
+
static isCorrectTimeFormat: (timeString: string, format: string) => boolean;
|
|
11
|
+
static createTimeString: (hour: number, minute: number, format?: string) => string;
|
|
12
|
+
get textbox(): TextboxAtom;
|
|
13
|
+
get menuPopup(): MenuPopupAtom;
|
|
14
|
+
get icon(): IconAtom;
|
|
15
|
+
get overlay(): OverlayAtom;
|
|
16
|
+
toggle: () => Promise<void>;
|
|
17
|
+
selectTime: (time: string) => Promise<void>;
|
|
18
|
+
getHighlightedMenuValue: () => Promise<Locator>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import moment from "moment/moment";
|
|
21
|
+
import { Atom } from "../../atom";
|
|
22
|
+
import { Helpers } from "../../setup";
|
|
23
|
+
import { IconAtom } from "../icon/icon.atom";
|
|
24
|
+
import { MenuPopupAtom } from "../menu-popup/menu-popup.atom";
|
|
25
|
+
import { OverlayAtom } from "../overlay/overlay.atom";
|
|
26
|
+
import { TextboxAtom } from "../textbox/textbox.atom";
|
|
27
|
+
export class TimepickerAtom extends Atom {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.toggle = async () => this.getLocator().locator(".nui-timepicker__container").click();
|
|
31
|
+
this.selectTime = async (time) => {
|
|
32
|
+
await this.textbox.clearText();
|
|
33
|
+
await this.textbox.acceptText(`${time}\n`);
|
|
34
|
+
await Helpers.page.waitForTimeout(1000); // Wait for buttons to update their state
|
|
35
|
+
};
|
|
36
|
+
this.getHighlightedMenuValue = async () => {
|
|
37
|
+
await this.toggle();
|
|
38
|
+
return this.menuPopup.selectedItem;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static { this.CSS_CLASS = "nui-timepicker"; }
|
|
42
|
+
static { this.defaultFormat = "LT"; }
|
|
43
|
+
static { this.isCorrectTimeFormat = (timeString, format) => moment(timeString, format, true).isValid(); }
|
|
44
|
+
static { this.createTimeString = (hour, minute, format = TimepickerAtom.defaultFormat) => {
|
|
45
|
+
const date = new Date();
|
|
46
|
+
date.setHours(hour);
|
|
47
|
+
date.setMinutes(minute);
|
|
48
|
+
return moment(date).format(format);
|
|
49
|
+
}; }
|
|
50
|
+
get textbox() {
|
|
51
|
+
return Atom.findIn(TextboxAtom, this.getLocator());
|
|
52
|
+
}
|
|
53
|
+
get menuPopup() {
|
|
54
|
+
return Atom.findIn(MenuPopupAtom, this.getLocator());
|
|
55
|
+
}
|
|
56
|
+
get icon() {
|
|
57
|
+
return Atom.findIn(IconAtom, this.getLocator());
|
|
58
|
+
}
|
|
59
|
+
get overlay() {
|
|
60
|
+
return Atom.findIn(OverlayAtom, Helpers.page.locator(".nui-timepicker__menu"));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=timepicker.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timepicker.atom.js","sourceRoot":"","sources":["../../../../../e2e/components/timepicker/timepicker.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,OAAO,MAAM,MAAM,eAAe,CAAC;AAGnC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,OAAO,cAAe,SAAQ,IAAI;IAAxC;;QAwCW,WAAM,GAAG,KAAK,IAAmB,EAAE,CACtC,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC,KAAK,EAAE,CAAC;QAE7D,eAAU,GAAG,KAAK,EAAE,IAAY,EAAiB,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AM,CAAW,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,IAAW,OAAO;QACd,OAAO,IAAI,CAAC,MAAM,CACd,WAAW,EACX,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAChD,CAAC;IACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../e2e/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { JSHandle, Page } from "@playwright/test";
|
|
2
|
+
export declare enum Animations {
|
|
3
|
+
ALL = 0,
|
|
4
|
+
TRANSITIONS = 1,
|
|
5
|
+
TRANSFORMS = 2,
|
|
6
|
+
ANIMATIONS = 3,
|
|
7
|
+
TRANSFORMS_AND_ANIMATIONS = 4,
|
|
8
|
+
TRANSITIONS_AND_ANIMATIONS = 5,
|
|
9
|
+
TRANSITIONS_AND_TRANSFORMS = 6
|
|
10
|
+
}
|
|
11
|
+
interface AxeFixture {
|
|
12
|
+
runA11yScan: (context?: string | any, disabledRules?: string[]) => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export { expect } from "@playwright/test";
|
|
15
|
+
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions & AxeFixture, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions>;
|
|
16
|
+
export declare class Helpers {
|
|
17
|
+
static page: Page;
|
|
18
|
+
static setPage(page: Page): void;
|
|
19
|
+
static getActiveElement(): Promise<JSHandle | null>;
|
|
20
|
+
static prepareBrowser(pageName: string, page: Page): Promise<void>;
|
|
21
|
+
static clickOnEmptySpace(): Promise<void>;
|
|
22
|
+
static setLocation(url: string): Promise<void>;
|
|
23
|
+
static pressKey(key: string, times?: number): Promise<void>;
|
|
24
|
+
static evaluateActiveElementHtml(): Promise<string | null>;
|
|
25
|
+
static disableCSSAnimations(type: Animations): Promise<any>;
|
|
26
|
+
static switchDarkTheme(mode: "on" | "off"): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Apply a browser zoom via CSS zoom to stabilize visual snapshots.
|
|
29
|
+
* Works in Chromium-based engines used by Playwright.
|
|
30
|
+
* @param percent Zoom percentage (e.g., 100 = default, 55 = zoomed out)
|
|
31
|
+
*/
|
|
32
|
+
static browserZoom(percent: number): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Reset browser zoom to default (100%).
|
|
35
|
+
*/
|
|
36
|
+
static resetBrowserZoom(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Set a custom width on an element by its id.
|
|
39
|
+
*/
|
|
40
|
+
static setCustomWidth(size: string, id: string): Promise<void>;
|
|
41
|
+
}
|