widgetastic.patternfly5 24.1.16.0__py3-none-any.whl → 24.2.26.0__py3-none-any.whl
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.
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.26.0.dist-info}/METADATA +2 -1
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.26.0.dist-info}/RECORD +8 -8
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.26.0.dist-info}/WHEEL +1 -1
- widgetastic_patternfly5/components/menus/dropdown.py +5 -3
- widgetastic_patternfly5/components/menus/options_menu.py +3 -2
- widgetastic_patternfly5/components/menus/select.py +17 -0
- widgetastic_patternfly5/ouia.py +5 -0
- {widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.26.0.dist-info}/licenses/LICENSE +0 -0
{widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.26.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: widgetastic.patternfly5
|
|
3
|
-
Version: 24.
|
|
3
|
+
Version: 24.2.26.0
|
|
4
4
|
Summary: Patternfly5 widget library for Widgetastic.
|
|
5
5
|
Project-URL: repository, https://github.com/RedHatQE/widgetastic.patternfly5
|
|
6
6
|
Maintainer-email: Nikhil Dhandre <ndhandre@redhat.com>, Egor Shamardin <eshamard@redhat.com>, Mike Shriver <mshriver@redhat.com>
|
|
@@ -87,6 +87,7 @@ itteration of [widgetastic.patternfly4](https://github.com/RedHatQE/widgetastic.
|
|
|
87
87
|
- [menu-toggle](https://www.patternfly.org/components/menus/menu-toggle)
|
|
88
88
|
- [options-menu](https://www.patternfly.org/components/menus/options-menu/)
|
|
89
89
|
- [select](https://www.patternfly.org/components/menus/select)
|
|
90
|
+
- [typeahedselect](https://www.patternfly.org/components/menus/select/#typeahead)
|
|
90
91
|
- [modal](https://www.patternfly.org/components/modal)
|
|
91
92
|
- [navigation](https://www.patternfly.org/components/navigation)
|
|
92
93
|
- [pagination](https://www.patternfly.org/components/pagination/)
|
{widgetastic.patternfly5-24.1.16.0.dist-info → widgetastic.patternfly5-24.2.26.0.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
widgetastic_patternfly5/__init__.py,sha256=Gd1zcwEgNJT7Xy-rA9kC6B7pkFbqz_wP9R9L6nccBrA,4706
|
|
2
|
-
widgetastic_patternfly5/ouia.py,sha256=
|
|
2
|
+
widgetastic_patternfly5/ouia.py,sha256=DCVMYscDvvhDbYlyfEnuaS1yUAqQ8Ty3sV50tZkXQHI,4299
|
|
3
3
|
widgetastic_patternfly5/charts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
widgetastic_patternfly5/charts/bullet_chart.py,sha256=G7-U1l9d8VlkiPKc3IfFtcleHAmM5WXsfAKwiyw5DEg,3737
|
|
5
5
|
widgetastic_patternfly5/charts/donut_chart.py,sha256=phPoVkvxdfUqxsHB8uWvdFUhWGT3ECi89J8H7VCySx4,2693
|
|
@@ -32,12 +32,12 @@ widgetastic_patternfly5/components/forms/form_select.py,sha256=jQUpwJnJnOl5_0Xze
|
|
|
32
32
|
widgetastic_patternfly5/components/forms/radio.py,sha256=9I7P9hsKRojGvTZtSsqVTI_4ek_qIYKEdamSdUfxsMA,2099
|
|
33
33
|
widgetastic_patternfly5/components/menus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
widgetastic_patternfly5/components/menus/context_selector.py,sha256=uMumIPxuY3f_r5o9JrMibiPQgpFjRaFQwwo08_rVeMQ,1150
|
|
35
|
-
widgetastic_patternfly5/components/menus/dropdown.py,sha256=
|
|
35
|
+
widgetastic_patternfly5/components/menus/dropdown.py,sha256=5nCz0HRG4VcrzD1NFC9Hj1m2T4yHihfNf2MNQWnBOEk,9478
|
|
36
36
|
widgetastic_patternfly5/components/menus/menu.py,sha256=0cUb5V1y3RgRpdAB8DlPIL9OOl7IxBC8A1xjcZgfLBA,7949
|
|
37
37
|
widgetastic_patternfly5/components/menus/menu_toggle.py,sha256=PBwNvg6E2RPdCG6ALBUqyTZxCwThJgk5S-9ghTiZ9hM,1029
|
|
38
|
-
widgetastic_patternfly5/components/menus/options_menu.py,sha256=
|
|
39
|
-
widgetastic_patternfly5/components/menus/select.py,sha256=
|
|
40
|
-
widgetastic.patternfly5-24.
|
|
41
|
-
widgetastic.patternfly5-24.
|
|
42
|
-
widgetastic.patternfly5-24.
|
|
43
|
-
widgetastic.patternfly5-24.
|
|
38
|
+
widgetastic_patternfly5/components/menus/options_menu.py,sha256=43D0_JHeY-kPORQi54NL9OVmcMyAolVnI4dqHpo5omY,1353
|
|
39
|
+
widgetastic_patternfly5/components/menus/select.py,sha256=xT3Hdoxp9OiH-Vy24m1AMqDXZxvsyfMpUeLPX3l2uOM,6243
|
|
40
|
+
widgetastic.patternfly5-24.2.26.0.dist-info/METADATA,sha256=vxRh2ob26S6-QPPq9Zpa-gQw8s_7PhLv-lHuLrW2zLk,6724
|
|
41
|
+
widgetastic.patternfly5-24.2.26.0.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
|
42
|
+
widgetastic.patternfly5-24.2.26.0.dist-info/licenses/LICENSE,sha256=nDhhj8jp0XsTdmvWpTWFpOKVn0LPXPb6ecA9zFF3Exk,576
|
|
43
|
+
widgetastic.patternfly5-24.2.26.0.dist-info/RECORD,,
|
|
@@ -65,9 +65,11 @@ class BaseDropdown:
|
|
|
65
65
|
@property
|
|
66
66
|
def is_open(self):
|
|
67
67
|
"""Returns True if the Dropdown is open"""
|
|
68
|
-
return
|
|
69
|
-
self.BUTTON_LOCATOR
|
|
70
|
-
|
|
68
|
+
return (
|
|
69
|
+
"pf-m-expanded" in self.browser.classes(self.BUTTON_LOCATOR)
|
|
70
|
+
or "pf-m-expanded" in self.browser.classes(self)
|
|
71
|
+
or self.browser.attributes(self.BUTTON_LOCATOR).get("aria-expanded") == "true"
|
|
72
|
+
)
|
|
71
73
|
|
|
72
74
|
def open(self):
|
|
73
75
|
"""Opens a dropdown."""
|
|
@@ -16,9 +16,10 @@ class BaseOptionsMenu:
|
|
|
16
16
|
TEXT_LOCATOR = (
|
|
17
17
|
'.//div[contains(@class, "-c-options-menu") and child::button[normalize-space(.)={}]]'
|
|
18
18
|
)
|
|
19
|
+
# PF4/5 backward compatibility locator
|
|
19
20
|
DEFAULT_LOCATOR = (
|
|
20
|
-
"
|
|
21
|
-
"contains(@class, '-c-options-menu')]/parent::div)[1]"
|
|
21
|
+
".//div[contains(@data-ouia-component-type, 'PaginationOptionsMenu')] | "
|
|
22
|
+
"(.//button[contains(@class, '-c-menu-toggle') or contains(@class, '-c-options-menu')]/parent::div)[1]" # noqa
|
|
22
23
|
)
|
|
23
24
|
|
|
24
25
|
SELECTED_ITEMS_LOCATOR = (
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from widgetastic.exceptions import NoSuchElementException
|
|
2
|
+
from widgetastic.widget import TextInput
|
|
2
3
|
|
|
3
4
|
from .dropdown import Dropdown
|
|
4
5
|
from .dropdown import DropdownItemDisabled
|
|
@@ -182,3 +183,19 @@ class BaseCheckboxSelect(BaseSelect):
|
|
|
182
183
|
|
|
183
184
|
class CheckboxSelect(BaseCheckboxSelect, Dropdown):
|
|
184
185
|
DEFAULT_LOCATOR = './/div[contains(@class, "-c-select")][1]'
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class BaseTypeaheadSelect(BaseSelect):
|
|
189
|
+
BUTTON_LOCATOR = (
|
|
190
|
+
".//button[(contains(@class, '-c-select__toggle') "
|
|
191
|
+
"or contains(@class, '-c-menu-toggle')) "
|
|
192
|
+
"and not(contains(@class, '-c-select__toggle-clear'))]"
|
|
193
|
+
)
|
|
194
|
+
input = TextInput(locator=".//input")
|
|
195
|
+
|
|
196
|
+
def read(self):
|
|
197
|
+
return self.browser.get_attribute("value", self.input)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class TypeaheadSelect(BaseTypeaheadSelect, Dropdown):
|
|
201
|
+
DEFAULT_LOCATOR = './/div[contains(@class, "-c-select")][1]'
|
widgetastic_patternfly5/ouia.py
CHANGED
|
@@ -15,6 +15,7 @@ from widgetastic_patternfly5.components.menus.dropdown import BaseDropdown
|
|
|
15
15
|
from widgetastic_patternfly5.components.menus.menu import BaseCheckboxMenu
|
|
16
16
|
from widgetastic_patternfly5.components.menus.menu import BaseMenu
|
|
17
17
|
from widgetastic_patternfly5.components.menus.select import BaseSelect
|
|
18
|
+
from widgetastic_patternfly5.components.menus.select import BaseTypeaheadSelect
|
|
18
19
|
from widgetastic_patternfly5.components.modal import BaseModal
|
|
19
20
|
from widgetastic_patternfly5.components.navigation import BaseNavigation
|
|
20
21
|
from widgetastic_patternfly5.components.pagination import BaseCompactPagination
|
|
@@ -129,5 +130,9 @@ class Select(BaseSelect, Dropdown):
|
|
|
129
130
|
OUIA_COMPONENT_TYPE = "Select"
|
|
130
131
|
|
|
131
132
|
|
|
133
|
+
class TypeaheadSelect(BaseTypeaheadSelect, Dropdown):
|
|
134
|
+
OUIA_COMPONENT_TYPE = "Select"
|
|
135
|
+
|
|
136
|
+
|
|
132
137
|
class ClipboardCopy(BaseClipboardCopy, OUIAGenericWidget):
|
|
133
138
|
OUIA_COMPONENT_TYPE = "ClipboardCopy"
|
|
File without changes
|