ywana-core8 0.0.67 → 0.0.68
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 +31 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +31 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +31 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +0 -1
- package/src/widgets/avatar/Avatar.css +10 -0
- package/src/widgets/avatar/Avatar.js +24 -0
- package/src/widgets/index.js +2 -1
package/dist/index.umd.js
CHANGED
@@ -1785,6 +1785,36 @@
|
|
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
|
+
src = props.src,
|
1796
|
+
_props$size = props.size,
|
1797
|
+
size = _props$size === void 0 ? "small" : _props$size,
|
1798
|
+
_props$clickable = props.clickable,
|
1799
|
+
clickable = _props$clickable === void 0 ? false : _props$clickable,
|
1800
|
+
action = props.action;
|
1801
|
+
|
1802
|
+
function click() {
|
1803
|
+
if (clickable) {
|
1804
|
+
action(id);
|
1805
|
+
}
|
1806
|
+
}
|
1807
|
+
|
1808
|
+
var style = clickable ? 'clickable' : '';
|
1809
|
+
var className = "avatar " + size + " " + style;
|
1810
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1811
|
+
className: className,
|
1812
|
+
onClick: click
|
1813
|
+
}, src ? /*#__PURE__*/React__default["default"].createElement("img", {
|
1814
|
+
src: src
|
1815
|
+
}) : /*#__PURE__*/React__default["default"].createElement("span", null, name));
|
1816
|
+
};
|
1817
|
+
|
1788
1818
|
/**
|
1789
1819
|
* Page Context
|
1790
1820
|
*/
|
@@ -4487,7 +4517,6 @@
|
|
4487
4517
|
param = param.concat(key + "=" + item + "&");
|
4488
4518
|
return param;
|
4489
4519
|
}, "");
|
4490
|
-
console.log(param);
|
4491
4520
|
return query.concat(param);
|
4492
4521
|
} else {
|
4493
4522
|
return query.concat(key + "=%" + filters[key] + "%&");
|
@@ -4834,6 +4863,7 @@
|
|
4834
4863
|
return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
|
4835
4864
|
};
|
4836
4865
|
|
4866
|
+
exports.Avatar = Avatar;
|
4837
4867
|
exports.Button = Button$1;
|
4838
4868
|
exports.CheckBox = CheckBox;
|
4839
4869
|
exports.Chip = Chip;
|