ITK-dev-shared-components 2.17.0__tar.gz → 2.17.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/PKG-INFO +1 -1
  2. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/common.py +10 -8
  3. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/search/search_advis.py +5 -3
  4. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/PKG-INFO +1 -1
  5. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/pyproject.toml +1 -1
  6. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/LICENSE +0 -0
  7. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/README.md +0 -0
  8. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/__init__.py +0 -0
  9. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/__init__.py +0 -0
  10. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/login.py +0 -0
  11. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/boliglaan/search/__init__.py +0 -0
  12. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/__init__.py +0 -0
  13. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_case.py +0 -0
  14. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_letter.py +0 -0
  15. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_login.py +0 -0
  16. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_search.py +0 -0
  17. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/eflyt/eflyt_util.py +0 -0
  18. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/getorganized/__init__.py +0 -0
  19. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/getorganized/go_api.py +0 -0
  20. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/__init__.py +0 -0
  21. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/authentication.py +0 -0
  22. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/common.py +0 -0
  23. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/file.py +0 -0
  24. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/mail.py +0 -0
  25. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/graph/site.py +0 -0
  26. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/__init__.py +0 -0
  27. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/authentication.py +0 -0
  28. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/cpr.py +0 -0
  29. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_cases.py +0 -0
  30. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_documents.py +0 -0
  31. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_notes.py +0 -0
  32. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_objects.py +0 -0
  33. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/nova_tasks.py +0 -0
  34. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/kmd_nova/util.py +0 -0
  35. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/__init__.py +0 -0
  36. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/address_lookup.py +0 -0
  37. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/cpr_util.py +0 -0
  38. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/cvr_lookup.py +0 -0
  39. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/misc/file_util.py +0 -0
  40. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/__init__.py +0 -0
  41. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/fmcacov.py +0 -0
  42. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/gridview_util.py +0 -0
  43. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/multi_session.py +0 -0
  44. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/opret_kundekontakt.py +0 -0
  45. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/sap_login.py +0 -0
  46. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/sap_util.py +0 -0
  47. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/sap/tree_util.py +0 -0
  48. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/smtp/__init__.py +0 -0
  49. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components/smtp/smtp_util.py +0 -0
  50. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/SOURCES.txt +0 -0
  51. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/dependency_links.txt +0 -0
  52. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/requires.txt +0 -0
  53. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/itk_dev_shared_components.egg-info/top_level.txt +0 -0
  54. {itk_dev_shared_components-2.17.0 → itk_dev_shared_components-2.17.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itk_dev_shared_components
3
- Version: 2.17.0
3
+ Version: 2.17.1
4
4
  Summary: Shared components to use in RPA projects
5
5
  Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
6
6
  Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
@@ -4,7 +4,6 @@ import time
4
4
  from typing import Literal
5
5
 
6
6
  import uiautomation
7
- from uiautomation import PatternId
8
7
 
9
8
 
10
9
  TabName = Literal["Låneoplysninger", "Advis", "Låneafvikling", "Dokumenter", "Dokumentunderskrifter", "Hændelser"]
@@ -22,19 +21,18 @@ def get_tab(tab_name: TabName) -> uiautomation.TabItemControl:
22
21
  return tab_control.TabItemControl(Name=f"DXTabItem{tab_name}", searchDepth=1)
23
22
 
24
23
 
25
- def select_tab(tab_name: TabName):
26
- """Select the tab with the given name."""
27
- get_tab(tab_name).GetSelectionItemPattern().Select()
24
+ def select_tab(tab_name: TabName) -> uiautomation.TabItemControl:
25
+ """Select the tab with the given name. Returns the tab object."""
26
+ tab = get_tab(tab_name)
27
+ tab.GetSelectionItemPattern().Select()
28
+ return tab
28
29
 
29
30
 
30
31
  def pin_sidebar():
31
32
  """Unfold the search side bar and pin it."""
32
33
  boliglaan = get_boliglaan()
33
34
  group = boliglaan.GroupControl(AutomationId="DockLayoutManager", searchDepth=2)
34
-
35
- pane = group.CustomControl(AutomationId="PART_LeftAutoHideTrayPanel")
36
- pane.GetPattern(PatternId.ExpandCollapsePattern).Expand()
37
-
35
+ group.GroupControl(AutomationId="dockItem2").Click(simulateMove=False)
38
36
  group.ButtonControl(AutomationId="PART_PinButton").GetInvokePattern().Invoke()
39
37
 
40
38
 
@@ -78,3 +76,7 @@ def save_case():
78
76
  boliglaan = get_boliglaan()
79
77
  toolbar = boliglaan.GroupControl(Name="None BarContainerControl", searchDepth=1)
80
78
  toolbar.ButtonControl(Name="Gem/Dan brev...").GetInvokePattern().Invoke()
79
+
80
+ # Handle popup
81
+ popup = boliglaan.WindowControl(Name="Kvittering", searchDepth=1)
82
+ popup.ButtonControl(Name="Gem/Send breve", searchDepth=1).GetInvokePattern().Invoke()
@@ -31,6 +31,7 @@ class Advis:
31
31
  date: date
32
32
  cpr: str
33
33
  case_number: str
34
+ case_type: str
34
35
  type: str
35
36
  state: str
36
37
 
@@ -75,7 +76,7 @@ def search_advis(cpr: str | None = None, date_from: date | None = None, date_to:
75
76
  def select_advis(cpr: str, case_number: str):
76
77
  """Select the advis from the search list with the given cpr and case number."""
77
78
  boliglaan = common.get_boliglaan()
78
- rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).PaneControl(AutomationId="dataPresenter").GetChildren()
79
+ rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).GroupControl(Name="Advis").PaneControl(AutomationId="dataPresenter").GetChildren()
79
80
 
80
81
  for row in rows:
81
82
  row_case_number = row.CustomControl(foundIndex=2).GetPattern(uiautomation.PatternId.ValuePattern).Value
@@ -91,7 +92,7 @@ def select_advis(cpr: str, case_number: str):
91
92
  def get_advis_list() -> list[Advis]:
92
93
  """Get the advis search result as a list of Advis objects."""
93
94
  boliglaan = common.get_boliglaan()
94
- rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).PaneControl(AutomationId="dataPresenter").GetChildren()
95
+ rows = boliglaan.TabControl(Name="TabbedGroup", searchDepth=4).GroupControl(Name="Advis").PaneControl(AutomationId="dataPresenter").GetChildren()
95
96
 
96
97
  result = []
97
98
 
@@ -101,10 +102,11 @@ def get_advis_list() -> list[Advis]:
101
102
  cpr = row.CustomControl(foundIndex=3).GetPattern(uiautomation.PatternId.ValuePattern).Value
102
103
  type_ = row.CustomControl(foundIndex=4).GetPattern(uiautomation.PatternId.ValuePattern).Value
103
104
  state = row.CustomControl(foundIndex=5).GetPattern(uiautomation.PatternId.ValuePattern).Value
105
+ case_type = row.CustomControl(foundIndex=7).GetPattern(uiautomation.PatternId.ValuePattern).Value
104
106
 
105
107
  day, month, year = (int(part) for part in date_str.split("-"))
106
108
  date_ = date(year, month, day)
107
109
 
108
- result.append(Advis(date=date_, cpr=cpr, case_number=case_number, type=type_, state=state))
110
+ result.append(Advis(date=date_, cpr=cpr, case_number=case_number, type=type_, state=state, case_type=case_type))
109
111
 
110
112
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itk_dev_shared_components
3
- Version: 2.17.0
3
+ Version: 2.17.1
4
4
  Summary: Shared components to use in RPA projects
5
5
  Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
6
6
  Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itk_dev_shared_components"
7
- version = "2.17.0"
7
+ version = "2.17.1"
8
8
  authors = [
9
9
  { name="ITK Development", email="itk-rpa@mkb.aarhus.dk" },
10
10
  ]