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.
- {dashlab-0.2.0 → dashlab-0.2.2}/PKG-INFO +1 -1
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/_internal.py +2 -2
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/_version.py +1 -1
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/base.py +5 -5
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/listw.css +4 -2
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/widgets.py +1 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/PKG-INFO +1 -1
- {dashlab-0.2.0 → dashlab-0.2.2}/LICENSE +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/README.md +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/__init__.py +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/core.py +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/patches.py +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/animator.css +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/animator.js +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/fscreen.css +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/fscreen.js +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/static/listw.js +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab/utils.py +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/SOURCES.txt +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/dependency_links.txt +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/requires.txt +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/dashlab.egg-info/top_level.txt +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/pyproject.toml +0 -0
- {dashlab-0.2.0 → dashlab-0.2.2}/setup.cfg +0 -0
|
@@ -252,7 +252,7 @@ _general_css = {
|
|
|
252
252
|
'padding': '4px 8px',
|
|
253
253
|
'display': 'grid', # outputs are not displaying correctly otherwise
|
|
254
254
|
},
|
|
255
|
-
'< .
|
|
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
|
-
'< .
|
|
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
|
|
@@ -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('
|
|
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('
|
|
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.
|
|
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(('.
|
|
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.
|
|
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')
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|