dashlab 0.2.0__tar.gz → 0.2.2__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 (24) hide show
  1. {dashlab-0.2.0 → dashlab-0.2.2}/PKG-INFO +1 -1
  2. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/_internal.py +2 -2
  3. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/_version.py +1 -1
  4. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/base.py +5 -5
  5. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/listw.css +4 -2
  6. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/widgets.py +1 -0
  7. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/PKG-INFO +1 -1
  8. {dashlab-0.2.0 → dashlab-0.2.2}/LICENSE +0 -0
  9. {dashlab-0.2.0 → dashlab-0.2.2}/README.md +0 -0
  10. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/__init__.py +0 -0
  11. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/core.py +0 -0
  12. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/patches.py +0 -0
  13. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/animator.css +0 -0
  14. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/animator.js +0 -0
  15. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/fscreen.css +0 -0
  16. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/fscreen.js +0 -0
  17. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/listw.js +0 -0
  18. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/utils.py +0 -0
  19. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/SOURCES.txt +0 -0
  20. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/dependency_links.txt +0 -0
  21. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/requires.txt +0 -0
  22. {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/top_level.txt +0 -0
  23. {dashlab-0.2.0 → dashlab-0.2.2}/pyproject.toml +0 -0
  24. {dashlab-0.2.0 → dashlab-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dashlab
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A Python package for dashboard and data visualization tools.
5
5
  Author-email: Abdul Saboor <asaboor.my@outlook.com>
6
6
  License-Expression: MIT
@@ -252,7 +252,7 @@ _general_css = {
252
252
  'padding': '4px 8px',
253
253
  'display': 'grid', # outputs are not displaying correctly otherwise
254
254
  },
255
- '< .ips-interact': {
255
+ '< .dl-dashboard': {
256
256
  '^:fullscreen > *, > *': {'margin' : 0}, # this is import for fullscreen mode to be margin-less directly
257
257
  '.jp-RenderedHTML': {'padding-right':0}, # feels bad
258
258
  },
@@ -278,7 +278,7 @@ _general_css = {
278
278
  "25%": { "content": "'●'" }, "50%": { "content": "'●●●'" },
279
279
  "75%": { "content": "'●●●●●'" }, "100%": { "content": "''" },
280
280
  },
281
- '< .ips-interact > .other-area:not(:empty)': { # to distinguish other area when not empty
281
+ '< .dl-dashboard > .other-area:not(:empty)': { # to distinguish other area when not empty
282
282
  'border-top': '1px inset var(--jp-border-color2, #8988)',
283
283
  },
284
284
  '.widget-vslider, .jupyter-widget-vslider': {'width': 'auto'}, # otherwise it spans too much area
@@ -1,4 +1,4 @@
1
1
  # This is automatically updated at build time, do not edit manually.
2
2
  # Double qoites are checked here
3
3
 
4
- __version__ = "0.2.0"
4
+ __version__ = "0.2.2"
@@ -276,7 +276,7 @@ class DashboardBase(ipw.interactive, metaclass = _metaclass):
276
276
  self.__css_class = 'i-'+str(id(self))
277
277
  self.__style_html = ipw.HTML()
278
278
  self.__style_html.layout.position = 'absolute' # avoid being grid part
279
- self.__app = ipw.AppLayout().add_class('interact-app') # base one
279
+ self.__app = ipw.AppLayout().add_class('dl-DashApp') # base one
280
280
  self.__app.layout.display = 'grid' # for correct export to html, other props in set_css
281
281
  self.__app.layout.position = 'relative' # contain absolute items inside
282
282
  self.__app._size_to_css = _size_to_css # enables em, rem
@@ -317,7 +317,7 @@ class DashboardBase(ipw.interactive, metaclass = _metaclass):
317
317
  v.value = self.params # update to pick widgets in kwargs later
318
318
 
319
319
  # Fix CSS classes and other stuff
320
- self.add_class('ips-interact').add_class(self.__css_class)
320
+ self.add_class('dl-dashboard').add_class(self.__css_class)
321
321
  self.layout.position = 'relative' # contain absolute items inside
322
322
  self.layout.height = 'max-content' # adopt to inner height
323
323
 
@@ -569,13 +569,13 @@ class DashboardBase(ipw.interactive, metaclass = _metaclass):
569
569
  if center and not isinstance(center,dict):
570
570
  raise TypeError('center should be a nesetd dictionary of CSS properties to apply to central grid!')
571
571
 
572
- main_sl = f".{self.__css_class}.widget-interact.ips-interact > .interact-app" # directly inside
572
+ main_sl = f".{self.__css_class}.widget-interact.dl-dashboard > .dl-DashApp" # directly inside
573
573
  cent_sl = f"{main_sl} > .center"
574
- _css = _build_css(('.ips-interact > .interact-app',),_general_css)
574
+ _css = _build_css(('.dl-dashboard > .dl-DashApp',),_general_css)
575
575
 
576
576
  fs_css = main.pop(':fullscreen',{}) or main.pop('^:fullscreen',{}) # both valid
577
577
  if fs_css: # fullscreen css given by user, full screen is top interact, not inside one as button is there
578
- _css += ('\n' + _build_css((f".{self.__css_class}.widget-interact.ips-interact:fullscreen > .interact-app",), fs_css))
578
+ _css += ('\n' + _build_css((f".{self.__css_class}.widget-interact.dl-dashboard:fullscreen > .dl-DashApp",), fs_css))
579
579
 
580
580
  if main:
581
581
  _css += ("\n" + _build_css((main_sl,), main))
@@ -1,8 +1,11 @@
1
1
  .list-widget {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- border-radius: 4px;
5
4
  overflow-y: auto; /* user can set max height, so allow this */
5
+ }
6
+
7
+ .list-widget:not(.tabs) {
8
+ border-radius: 4px;
6
9
  margin-block: 0.5em 0.5em;
7
10
  }
8
11
 
@@ -10,7 +13,6 @@
10
13
  .list-widget.tabs {
11
14
  flex-direction: row;
12
15
  margin-bottom: 0;
13
- padding: 0 4px;
14
16
  border-radius: 4px 4px 0 0;
15
17
  border-bottom: 1px inset #8884;
16
18
  box-sizing: border-box;
@@ -168,6 +168,7 @@ class TabsWidget(GridBox):
168
168
  @traitlets.observe('vertical', 'tabs_width', 'tabs_height')
169
169
  def _update_layout(self, change):
170
170
  self.layout.grid_template_columns = f'{self.tabs_width} 1fr' if self.vertical else '1fr'
171
+ self.layout.grid_template_rows = '1fr' if self.vertical else f'{self.tabs_height} 1fr'
171
172
  self._lw.layout.height = self.tabs_height if not self.vertical else 'auto'
172
173
 
173
174
  @traitlets.validate('children')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dashlab
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A Python package for dashboard and data visualization tools.
5
5
  Author-email: Abdul Saboor <asaboor.my@outlook.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes