@lemon-fe/components 1.2.0-alpha.0 → 1.2.0
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/es/data-grid/cell-editors/date.js +6 -10
- package/es/data-grid/cell-editors/number.js +5 -9
- package/es/data-grid/cell-editors/select.d.ts +2 -2
- package/es/data-grid/cell-editors/select.js +1 -1
- package/es/data-grid/cell-editors/text.js +5 -9
- package/es/data-grid/cell-editors/utils.d.ts +2 -5
- package/es/data-grid/cell-editors/utils.js +4 -34
- package/es/data-grid/components/custom-panel/index.js +50 -6
- package/es/data-grid/components/custom-panel/item.d.ts +1 -0
- package/es/data-grid/components/custom-panel/item.js +3 -2
- package/es/data-grid/index.d.ts +1 -1
- package/es/data-grid/index.js +5 -1
- package/es/data-grid/index.less +5 -1
- package/es/data-grid/locale/zh_CN.js +1 -1
- package/es/date-picker/index.d.ts +2 -0
- package/es/date-picker/index.js +21 -0
- package/es/duration-picker/index.js +3 -2
- package/es/empty/index.d.ts +9 -0
- package/es/{empty-image → empty}/index.js +10 -2
- package/es/filter/index.js +5 -1
- package/es/filter/locale/zh_CN.js +1 -1
- package/es/index.d.ts +19 -9
- package/es/index.js +16 -8
- package/es/locale/en_US.js +1 -7
- package/es/locale/locale.d.ts +2 -11
- package/es/locale/locale.js +0 -2
- package/es/locale/zh_CN.js +1 -40
- package/es/locale-receiver.d.ts +1 -2
- package/es/locale-receiver.js +3 -5
- package/es/message/index.d.ts +3 -0
- package/es/message/index.js +56 -0
- package/es/modal/index.d.ts +16 -0
- package/es/modal/index.js +114 -0
- package/es/modal/index.less +38 -0
- package/es/others.d.ts +2 -0
- package/es/others.js +45 -0
- package/es/popup/index.d.ts +1 -1
- package/es/popup/index.js +3 -1
- package/es/select/index.d.ts +2 -0
- package/es/select/index.js +19 -0
- package/es/select-view/index.js +35 -5
- package/es/select-view/index.less +18 -0
- package/es/sider-tree/index.js +1 -1
- package/es/state/index.less +8 -0
- package/es/styles/index.less +2 -1
- package/es/table/index.js +1 -1
- package/es/time-picker/index.d.ts +2 -0
- package/es/time-picker/index.js +21 -0
- package/es/utils.d.ts +2 -1
- package/es/utils.js +10 -0
- package/package.json +3 -3
- package/es/empty-image/index.d.ts +0 -2
package/es/utils.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
import { PREFIX_CLS } from "./constants";
|
|
2
8
|
|
|
3
9
|
// 不使用Children.map的原因是由于它会给子节点生成一个key与tabs的activeTabKey无法对应
|
|
@@ -20,4 +26,8 @@ export function prefixClassName(prefix) {
|
|
|
20
26
|
}
|
|
21
27
|
export function mergeProp(internal, prop) {
|
|
22
28
|
return prop || internal;
|
|
29
|
+
}
|
|
30
|
+
export function mergeDefaultProps(comp, props) {
|
|
31
|
+
comp.defaultProps = _objectSpread(_objectSpread({}, comp.defaultProps), props);
|
|
32
|
+
return comp;
|
|
23
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@ag-grid-community/react": "29.2.0",
|
|
23
23
|
"@ag-grid-community/styles": "29.2.0",
|
|
24
24
|
"@dnd-kit/core": "^6.0.8",
|
|
25
|
-
"@lemon-fe/hooks": "^1.
|
|
25
|
+
"@lemon-fe/hooks": "^1.2.0",
|
|
26
26
|
"@lemon-fe/utils": "^1.1.0",
|
|
27
27
|
"async-validator": "^4.2.5",
|
|
28
28
|
"bignumber.js": ">=9.0.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"registry": "https://registry.npmjs.org"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "bc6eefb9acd1c267e15c7cf8132b4d866d3eb9ca"
|
|
66
66
|
}
|