@teamias/rex-design 0.0.1 → 0.0.3
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/LICENSE +21 -21
- package/README.md +3 -3
- package/dist/components/action-buttons/action-buttons.d.ts +1 -1
- package/dist/components/action-buttons/action-buttons.js +86 -76
- package/dist/components/action-buttons/demo/index.js +61 -58
- package/dist/components/base-form/base-form.js +218 -215
- package/dist/components/base-form/demo/index.js +147 -135
- package/dist/components/base-form/modules/renderComponentNode.d.ts +2 -2
- package/dist/components/base-form/modules/renderComponentNode.js +135 -130
- package/dist/components/base-form/types.d.ts +1 -1
- package/dist/components/base-form/types.js +0 -9
- package/dist/components/base-list-table/base-list-table.d.ts +2 -2
- package/dist/components/base-list-table/base-list-table.js +156 -135
- package/dist/components/base-list-table/demo/BasicBaseListTable.js +22 -13
- package/dist/components/base-list-table/demo/NoData.js +2 -1
- package/dist/components/base-list-table/demo/TableMaxRowCount.js +1669 -1663
- package/dist/components/base-list-table/demo/VirtualDemo.js +22 -13
- package/dist/components/base-table/base-table.d.ts +2 -2
- package/dist/components/base-table/base-table.js +60 -55
- package/dist/components/base-table/components/BaseTableRow.js +79 -66
- package/dist/components/base-table/demo/BaseTableAll.js +6 -2
- package/dist/components/base-table/demo/BaseTableBasic.js +5 -2
- package/dist/components/base-table/demo/BaseTableIndex.js +48 -50
- package/dist/components/base-table/demo/BaseTableRowSelect.js +2 -1
- package/dist/components/data-cell/data-cell.js +5 -4
- package/dist/components/data-cell/demo/index.js +327 -309
- package/dist/components/data-cell/modules/cellItemMap.d.ts +2 -2
- package/dist/components/data-cell/modules/cellItemMap.js +184 -157
- package/dist/components/data-cell/types.d.ts +9 -9
- package/dist/components/icons/demo/index.js +44 -40
- package/dist/components/icons/icons.d.ts +1 -1
- package/dist/components/icons/icons.js +36 -26
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/media-viewer/demo/index.js +24 -20
- package/dist/components/media-viewer/media-viewer.d.ts +1 -1
- package/dist/components/media-viewer/media-viewer.js +13 -12
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +2 -0
- package/dist/{hooks → context}/request-fields-container/demo/index.js +10 -5
- package/dist/{hooks → context}/request-fields-container/index.js +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.js +17 -12
- package/dist/context/request-fields-container/request-fields-container-hoc.d.ts +4 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-hoc.js +0 -1
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.js +9 -5
- package/dist/{hooks → context}/rex-pro-config-provider/index.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.js +0 -1
- package/dist/context/rex-pro-config-provider/rex-pro-config-provider.d.ts +5 -0
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-provider.js +8 -6
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-state-data/use-state-data.js +4 -4
- package/dist/index.d.ts +3 -10
- package/dist/index.js +3 -10
- package/dist/{components/base-form/locales → locales}/en-US.json +30 -21
- package/dist/{components/base-form/locales → locales}/zh-CN.json +30 -21
- package/dist/types/svg.d.ts +3 -3
- package/package.json +37 -33
- package/dist/components/base-form/locales.index.d.ts +0 -42
- package/dist/components/base-form/locales.index.js +0 -4
- package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +0 -4
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +0 -6
- package/dist/utils/locales/en-US.json +0 -13
- package/dist/utils/locales/index.d.ts +0 -26
- package/dist/utils/locales/index.js +0 -4
- package/dist/utils/locales/zh-CN.json +0 -13
- package/dist/{hooks → context}/request-fields-container/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/index.d.ts +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.js +0 -0
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/index.d.ts +1 -1
- /package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.js +0 -0
|
@@ -2,9 +2,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
3
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
-
import
|
|
5
|
+
import { useEffect } from 'react';
|
|
6
6
|
import { RexProConfigProvider } from "../rex-pro-config-provider";
|
|
7
7
|
import { useRexProConfigProvider } from "../use-rex-pro-config-provider";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
var DisplayLanguage = function DisplayLanguage() {
|
|
9
10
|
var _useRexProConfigProvi = useRexProConfigProvider(),
|
|
10
11
|
apiClient = _useRexProConfigProvi.apiClient;
|
|
@@ -12,10 +13,12 @@ var DisplayLanguage = function DisplayLanguage() {
|
|
|
12
13
|
apiClient('/RequestFieldsContainer').then(console.log);
|
|
13
14
|
}, []);
|
|
14
15
|
// if (language === 'en') return <h3>Hi!</h3>;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
+
return /*#__PURE__*/_jsx("h3", {
|
|
17
|
+
children: "demo!"
|
|
18
|
+
});
|
|
16
19
|
};
|
|
17
20
|
export default (function () {
|
|
18
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/_jsx(RexProConfigProvider, {
|
|
19
22
|
value: {
|
|
20
23
|
apiClient: function () {
|
|
21
24
|
var _apiClient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
|
|
@@ -56,6 +59,7 @@ export default (function () {
|
|
|
56
59
|
}
|
|
57
60
|
return apiClient;
|
|
58
61
|
}()
|
|
59
|
-
}
|
|
60
|
-
|
|
62
|
+
},
|
|
63
|
+
children: /*#__PURE__*/_jsx(DisplayLanguage, {})
|
|
64
|
+
});
|
|
61
65
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./rex-pro-config-provider";
|
|
2
|
+
export { useRexProConfigProvider } from "./use-rex-pro-config-provider";
|
|
@@ -4,7 +4,6 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
4
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
5
|
import { createContext } from 'react';
|
|
6
6
|
import { createIntl } from 'react-intl';
|
|
7
|
-
;
|
|
8
7
|
export var defaultIntl = createIntl({
|
|
9
8
|
locale: 'zh-CN',
|
|
10
9
|
// messages: {},
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Provider } from 'react';
|
|
2
|
+
import type { RexProConfigContextType } from './rex-pro-config-context';
|
|
3
|
+
export type RexProConfigProviderProps = RexProConfigContextType;
|
|
4
|
+
export { RexProConfigContextType };
|
|
5
|
+
export declare const RexProConfigProvider: Provider<Partial<RexProConfigContextType>>;
|
|
@@ -4,21 +4,23 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
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); }
|
|
7
|
-
import { RawIntlProvider } from
|
|
7
|
+
import { RawIntlProvider } from 'react-intl';
|
|
8
8
|
import { defaultApiClient, defaultIntl, RexProConfigContext } from "./rex-pro-config-context";
|
|
9
|
-
import
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export var RexProConfigProvider = function RexProConfigProvider(_ref) {
|
|
11
11
|
var _value$intl, _value$apiClient;
|
|
12
12
|
var value = _ref.value,
|
|
13
13
|
children = _ref.children;
|
|
14
14
|
var intl = (_value$intl = value.intl) !== null && _value$intl !== void 0 ? _value$intl : defaultIntl;
|
|
15
15
|
var apiClient = (_value$apiClient = value.apiClient) !== null && _value$apiClient !== void 0 ? _value$apiClient : defaultApiClient;
|
|
16
|
-
return /*#__PURE__*/
|
|
16
|
+
return /*#__PURE__*/_jsx(RexProConfigContext.Provider, {
|
|
17
17
|
value: _objectSpread(_objectSpread({}, value), {}, {
|
|
18
18
|
intl: intl,
|
|
19
19
|
apiClient: apiClient
|
|
20
|
+
}),
|
|
21
|
+
children: /*#__PURE__*/_jsx(RawIntlProvider, {
|
|
22
|
+
value: intl,
|
|
23
|
+
children: children
|
|
20
24
|
})
|
|
21
|
-
}
|
|
22
|
-
value: intl
|
|
23
|
-
}, children));
|
|
25
|
+
});
|
|
24
26
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-state-data';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-state-data";
|
|
@@ -19,10 +19,10 @@ var withResolvers = function withResolvers() {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* 对 useState 的扩展,实现操作对象,绕过闭包的问题
|
|
24
|
-
* @param stateFn
|
|
25
|
-
* @returns
|
|
22
|
+
/**
|
|
23
|
+
* 对 useState 的扩展,实现操作对象,绕过闭包的问题
|
|
24
|
+
* @param stateFn
|
|
25
|
+
* @returns
|
|
26
26
|
*/
|
|
27
27
|
export var useStateData = function useStateData(stateFn) {
|
|
28
28
|
var _useState = useState({}),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export * from './components
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './components/data-cell';
|
|
5
|
-
export * from './components/base-table';
|
|
6
|
-
export * from './components/base-list-table';
|
|
7
|
-
export * from './components/base-form';
|
|
8
|
-
export * from './hooks/use-state-data';
|
|
9
|
-
export * from './hooks/rex-pro-config-provider';
|
|
10
|
-
export * from './hooks/request-fields-container';
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './context';
|
|
3
|
+
export * from './hooks';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export * from "./components
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./components/data-cell";
|
|
5
|
-
export * from "./components/base-table";
|
|
6
|
-
export * from "./components/base-list-table";
|
|
7
|
-
export * from "./components/base-form";
|
|
8
|
-
export * from "./hooks/use-state-data";
|
|
9
|
-
export * from "./hooks/rex-pro-config-provider";
|
|
10
|
-
export * from "./hooks/request-fields-container";
|
|
1
|
+
export * from "./components";
|
|
2
|
+
export * from "./context";
|
|
3
|
+
export * from "./hooks";
|
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"base-
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"rex": {
|
|
3
|
+
"components": {
|
|
4
|
+
"base-list-table": {
|
|
5
|
+
"expand-more-data": "There are still {count} pieces of data not displayed",
|
|
6
|
+
"expand-more-data-hide": "Close"
|
|
7
|
+
},
|
|
8
|
+
"base-table": {
|
|
9
|
+
"column-serial-number-title": "Serial number"
|
|
10
|
+
},
|
|
11
|
+
"base-form": {
|
|
12
|
+
"placeholder": {
|
|
13
|
+
"date-range": {
|
|
14
|
+
"end": "End time",
|
|
15
|
+
"start": "Start time"
|
|
16
|
+
},
|
|
17
|
+
"input": "Please enter",
|
|
18
|
+
"input-number-range": {
|
|
19
|
+
"max": "Maximum value",
|
|
20
|
+
"min": "Minimum value"
|
|
21
|
+
},
|
|
22
|
+
"select": "Please select"
|
|
23
|
+
},
|
|
24
|
+
"value-type-match-error": "Not matched"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"context": {},
|
|
28
|
+
"hooks": {}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"base-
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
{
|
|
2
|
+
"rex": {
|
|
3
|
+
"components": {
|
|
4
|
+
"base-list-table": {
|
|
5
|
+
"expand-more-data-hide": "收起",
|
|
6
|
+
"expand-more-data": "还有{count}条数据未展示"
|
|
7
|
+
},
|
|
8
|
+
"base-table": {
|
|
9
|
+
"column-serial-number-title": "序号"
|
|
10
|
+
},
|
|
11
|
+
"base-form": {
|
|
12
|
+
"placeholder": {
|
|
13
|
+
"input": "请输入",
|
|
14
|
+
"select": "请选择",
|
|
15
|
+
"date-range": {
|
|
16
|
+
"start": "开始时间",
|
|
17
|
+
"end": "结束时间"
|
|
18
|
+
},
|
|
19
|
+
"input-number-range": {
|
|
20
|
+
"min": "最小值",
|
|
21
|
+
"max": "最大值"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"value-type-match-error": "匹配不到"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"context": {},
|
|
28
|
+
"hooks": {}
|
|
29
|
+
}
|
|
30
|
+
}
|
package/dist/types/svg.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '*.svg' {
|
|
2
|
-
const content: string;
|
|
3
|
-
export default content;
|
|
1
|
+
declare module '*.svg' {
|
|
2
|
+
const content: string;
|
|
3
|
+
export default content;
|
|
4
4
|
}
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamias/rex-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"module": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
7
11
|
"scripts": {
|
|
8
|
-
"
|
|
9
|
-
"dev": "dumi dev",
|
|
12
|
+
"adduser": "npm adduser",
|
|
10
13
|
"build": "father build",
|
|
11
14
|
"build:watch": "father dev",
|
|
15
|
+
"deploy": "changeset && changeset version && npm publish",
|
|
16
|
+
"dev": "dumi dev",
|
|
12
17
|
"docs:build": "dumi build",
|
|
13
18
|
"docs:preview": "dumi preview",
|
|
14
|
-
"prepare": "husky install && dumi setup",
|
|
15
19
|
"doctor": "father doctor",
|
|
16
|
-
"lint": "npm run lint:es
|
|
20
|
+
"lint": "npm run lint:es",
|
|
17
21
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
18
22
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
19
|
-
"
|
|
23
|
+
"prepare": "husky install && dumi setup",
|
|
24
|
+
"prepublishOnly": "father doctor && npm run build",
|
|
25
|
+
"publish:first": "npm publish --access public",
|
|
26
|
+
"start": "npm run dev"
|
|
20
27
|
},
|
|
21
|
-
"authors": [
|
|
22
|
-
"cloudovo"
|
|
23
|
-
],
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"files": [
|
|
26
|
-
"dist"
|
|
27
|
-
],
|
|
28
28
|
"commitlint": {
|
|
29
29
|
"extends": [
|
|
30
30
|
"@commitlint/config-conventional"
|
|
@@ -47,14 +47,22 @@
|
|
|
47
47
|
"prettier --parser=typescript --write"
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@ant-design/icons": "^6.0.0",
|
|
52
|
+
"@ant-design/pro-components": "^2.8.10",
|
|
53
|
+
"@iconify/react": "^6.0.0",
|
|
54
|
+
"ahooks": "^3.9.0",
|
|
55
|
+
"antd": "^5.26.7",
|
|
56
|
+
"classnames": "^2.5.1",
|
|
57
|
+
"dayjs": "^1.11.13",
|
|
58
|
+
"lodash": "^4.17.21",
|
|
59
|
+
"radash": "^12.1.1",
|
|
60
|
+
"rc-virtual-list": "^3.19.1",
|
|
61
|
+
"react-intl": "^7.1.11",
|
|
62
|
+
"styled-components": "^6.1.19"
|
|
56
63
|
},
|
|
57
64
|
"devDependencies": {
|
|
65
|
+
"@changesets/cli": "^2.29.5",
|
|
58
66
|
"@commitlint/cli": "^17.1.2",
|
|
59
67
|
"@commitlint/config-conventional": "^17.1.0",
|
|
60
68
|
"@types/lodash": "^4.17.20",
|
|
@@ -73,18 +81,14 @@
|
|
|
73
81
|
"react-dom": "^18.0.0",
|
|
74
82
|
"stylelint": "^14.9.1"
|
|
75
83
|
},
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"rc-virtual-list": "^3.19.1",
|
|
87
|
-
"react-intl": "^7.1.11",
|
|
88
|
-
"styled-components": "^6.1.19"
|
|
89
|
-
}
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"react": ">=16.9.0",
|
|
86
|
+
"react-dom": ">=16.9.0"
|
|
87
|
+
},
|
|
88
|
+
"publishConfig": {
|
|
89
|
+
"access": "public"
|
|
90
|
+
},
|
|
91
|
+
"authors": [
|
|
92
|
+
"cloudovo"
|
|
93
|
+
]
|
|
90
94
|
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const designDataEntryZhCN: {
|
|
2
|
-
bit: {
|
|
3
|
-
"data-entry": {
|
|
4
|
-
"base-form": {
|
|
5
|
-
placeholder: {
|
|
6
|
-
input: string;
|
|
7
|
-
select: string;
|
|
8
|
-
"date-range": {
|
|
9
|
-
start: string;
|
|
10
|
-
end: string;
|
|
11
|
-
};
|
|
12
|
-
"input-number-range": {
|
|
13
|
-
min: string;
|
|
14
|
-
max: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
"value-type-match-error": string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const designDataEntryEnUS: {
|
|
23
|
-
bit: {
|
|
24
|
-
"data-entry": {
|
|
25
|
-
"base-form": {
|
|
26
|
-
placeholder: {
|
|
27
|
-
"date-range": {
|
|
28
|
-
end: string;
|
|
29
|
-
start: string;
|
|
30
|
-
};
|
|
31
|
-
input: string;
|
|
32
|
-
"input-number-range": {
|
|
33
|
-
max: string;
|
|
34
|
-
min: string;
|
|
35
|
-
};
|
|
36
|
-
select: string;
|
|
37
|
-
};
|
|
38
|
-
"value-type-match-error": string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType } from "react";
|
|
2
|
-
import { RequestFieldsContainerProviderProps } from "./request-fields-container-context-provider";
|
|
3
|
-
/** 通过高阶组件扩展原生组件功能 */
|
|
4
|
-
export declare const requestFieldsContainerHoc: <T extends object>(Com: ComponentType<T>) => React.FC<T & RequestFieldsContainerProviderProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RexProConfigContextType } from './rex-pro-config-context';
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface RexProConfigProviderProps extends RexProConfigContextType {
|
|
4
|
-
}
|
|
5
|
-
export { RexProConfigContextType };
|
|
6
|
-
export declare const RexProConfigProvider: React.Provider<Partial<RexProConfigContextType>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bit": {
|
|
3
|
-
"data-display": {
|
|
4
|
-
"base-list-table": {
|
|
5
|
-
"expand-more-data": "There are still {count} pieces of data not displayed",
|
|
6
|
-
"expand-more-data-hide": "Close"
|
|
7
|
-
},
|
|
8
|
-
"base-table": {
|
|
9
|
-
"column-serial-number-title": "Serial number"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const designDataDisplayZhCN: {
|
|
2
|
-
bit: {
|
|
3
|
-
"data-display": {
|
|
4
|
-
"base-list-table": {
|
|
5
|
-
"expand-more-data-hide": string;
|
|
6
|
-
"expand-more-data": string;
|
|
7
|
-
};
|
|
8
|
-
"base-table": {
|
|
9
|
-
"column-serial-number-title": string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const designDataDisplayEnUS: {
|
|
15
|
-
bit: {
|
|
16
|
-
"data-display": {
|
|
17
|
-
"base-list-table": {
|
|
18
|
-
"expand-more-data": string;
|
|
19
|
-
"expand-more-data-hide": string;
|
|
20
|
-
};
|
|
21
|
-
"base-table": {
|
|
22
|
-
"column-serial-number-title": string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './use-request-fields-container';
|
|
2
|
-
export * from './request-fields-container-hoc';
|
|
3
1
|
export { RequestFieldsContainer } from './request-fields-container-context-provider';
|
|
4
2
|
export type { RequestFieldsContainerProviderProps } from './request-fields-container-context-provider';
|
|
3
|
+
export * from './request-fields-container-hoc';
|
|
4
|
+
export * from './use-request-fields-container';
|
|
File without changes
|
package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|