ywana-core8 0.0.66 → 0.0.70

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.66",
3
+ "version": "0.0.70",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -26,4 +26,5 @@ aside.table-page {
26
26
  main.table-editor {
27
27
  flex: 1;
28
28
  overflow: auto;
29
- }
29
+ }
30
+
@@ -252,10 +252,13 @@ const TableEditor = (props) => {
252
252
  }
253
253
 
254
254
  table.columns.push({ id: "actions" })
255
-
255
+ const groupSize = groups[groupName].length
256
+
256
257
  return (
257
258
  <Fragment key={groupName}>
258
- <Header title={groupName} />
259
+ <Header title={groupName} >
260
+ <span className="size">{groupSize}</span>
261
+ </Header>
259
262
  <DataTable {...table} onRowSelection={select} editable={editable} />
260
263
  </Fragment>
261
264
  )
@@ -373,7 +376,6 @@ const TableAPI = (url) => {
373
376
  param = param.concat(`${key}=${item}&`)
374
377
  return param
375
378
  }, "")
376
- console.log(param)
377
379
  return query.concat(param)
378
380
  } else {
379
381
  return query.concat(`${key}=%${filters[key]}%&`)
package/src/html/list.css CHANGED
@@ -13,7 +13,6 @@
13
13
  }
14
14
 
15
15
  .list > ul {
16
- flex: 1;
17
16
  overflow: auto;
18
17
  list-style: none;
19
18
  margin: 0;
@@ -24,7 +23,7 @@
24
23
  }
25
24
 
26
25
  .list > ul li {
27
- flex: 1;
26
+ flex: 0;
28
27
  overflow: hidden;
29
28
  min-height: 3rem;
30
29
  padding: .3rem 0.5rem;
package/src/html/tab.js CHANGED
@@ -22,7 +22,7 @@ export const Tabs = (props) => {
22
22
  })
23
23
 
24
24
  return (
25
- <div class="tabs">
25
+ <div className="tabs">
26
26
  {tabs}
27
27
  <div className="tab-filler" />
28
28
  </div>
@@ -0,0 +1,11 @@
1
+ .avatar {
2
+ background-color: rgba(200,200,200,.1);
3
+ border: solid 3px transparent;
4
+ border-radius: 100%;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .avatar.small {
9
+ width: 3rem;
10
+ height: 3rem;
11
+ }
@@ -0,0 +1,24 @@
1
+ import React from 'react'
2
+ import './Avatar.css'
3
+
4
+ /**
5
+ * Avatar
6
+ */
7
+ export const Avatar = (props) => {
8
+
9
+ const { id, name, className, src, size="small", clickable=false, action} = props
10
+
11
+ function click() {
12
+ if (clickable) {
13
+ action(id)
14
+ }
15
+ }
16
+
17
+ const clickableStyle = clickable ? 'clickable' : ''
18
+ const style = `avatar ${size} ${clickableStyle} ${className}`
19
+ return (
20
+ <div className={style} onClick={click}>
21
+ { src ? <img src={src} /> : <span>{name}</span>}
22
+ </div>
23
+ )
24
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './login/LoginBox'
2
2
  export * from './login/ResetPasswordBox'
3
3
  export * from './viewer/Viewer'
4
- export * from './kanban/Kanban'
4
+ export * from './kanban/Kanban'
5
+ export * from './avatar/avatar'