ywana-core8 0.0.67 → 0.0.71
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/dist/index.cjs +35 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -3
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +35 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +35 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +2 -2
- package/src/domain/TablePage.js +0 -1
- package/src/html/list.css +1 -2
- package/src/html/tab.js +1 -1
- package/src/html/tree.css +0 -1
- package/src/widgets/avatar/Avatar.css +11 -0
- package/src/widgets/avatar/Avatar.js +24 -0
- package/src/widgets/index.js +2 -1
package/dist/index.cjs
CHANGED
@@ -804,7 +804,7 @@ var Tabs = function Tabs(props) {
|
|
804
804
|
});
|
805
805
|
});
|
806
806
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
807
|
-
|
807
|
+
className: "tabs"
|
808
808
|
}, tabs, /*#__PURE__*/React__default["default"].createElement("div", {
|
809
809
|
className: "tab-filler"
|
810
810
|
}));
|
@@ -1785,6 +1785,37 @@ var KanbanCard = function KanbanCard(_ref3) {
|
|
1785
1785
|
}, children);
|
1786
1786
|
};
|
1787
1787
|
|
1788
|
+
/**
|
1789
|
+
* Avatar
|
1790
|
+
*/
|
1791
|
+
|
1792
|
+
var Avatar = function Avatar(props) {
|
1793
|
+
var id = props.id,
|
1794
|
+
name = props.name,
|
1795
|
+
className = props.className,
|
1796
|
+
src = props.src,
|
1797
|
+
_props$size = props.size,
|
1798
|
+
size = _props$size === void 0 ? "small" : _props$size,
|
1799
|
+
_props$clickable = props.clickable,
|
1800
|
+
clickable = _props$clickable === void 0 ? false : _props$clickable,
|
1801
|
+
action = props.action;
|
1802
|
+
|
1803
|
+
function click() {
|
1804
|
+
if (clickable) {
|
1805
|
+
action(id);
|
1806
|
+
}
|
1807
|
+
}
|
1808
|
+
|
1809
|
+
var clickableStyle = clickable ? 'clickable' : '';
|
1810
|
+
var style = "avatar " + size + " " + clickableStyle + " " + className;
|
1811
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1812
|
+
className: style,
|
1813
|
+
onClick: click
|
1814
|
+
}, src ? /*#__PURE__*/React__default["default"].createElement("img", {
|
1815
|
+
src: src
|
1816
|
+
}) : /*#__PURE__*/React__default["default"].createElement("span", null, name));
|
1817
|
+
};
|
1818
|
+
|
1788
1819
|
/**
|
1789
1820
|
* Page Context
|
1790
1821
|
*/
|
@@ -2669,7 +2700,7 @@ var TreededContentEditor = function TreededContentEditor(_ref3) {
|
|
2669
2700
|
icon: "folder",
|
2670
2701
|
label: node.label,
|
2671
2702
|
actions: [/*#__PURE__*/React__default["default"].createElement(Icon, {
|
2672
|
-
|
2703
|
+
size: "small",
|
2673
2704
|
icon: "add",
|
2674
2705
|
clickable: true,
|
2675
2706
|
action: add
|
@@ -3033,7 +3064,7 @@ var CollectionEditor$1 = function CollectionEditor(_ref10) {
|
|
3033
3064
|
action: function action() {
|
3034
3065
|
return remove(index);
|
3035
3066
|
},
|
3036
|
-
|
3067
|
+
size: "small"
|
3037
3068
|
})]
|
3038
3069
|
});
|
3039
3070
|
});
|
@@ -4487,7 +4518,6 @@ var TableAPI = function TableAPI(url) {
|
|
4487
4518
|
param = param.concat(key + "=" + item + "&");
|
4488
4519
|
return param;
|
4489
4520
|
}, "");
|
4490
|
-
console.log(param);
|
4491
4521
|
return query.concat(param);
|
4492
4522
|
} else {
|
4493
4523
|
return query.concat(key + "=%" + filters[key] + "%&");
|
@@ -4834,6 +4864,7 @@ var isFunction = function isFunction(value) {
|
|
4834
4864
|
return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
|
4835
4865
|
};
|
4836
4866
|
|
4867
|
+
exports.Avatar = Avatar;
|
4837
4868
|
exports.Button = Button$1;
|
4838
4869
|
exports.CheckBox = CheckBox;
|
4839
4870
|
exports.Chip = Chip;
|