@chaoswise/business 0.0.17 → 1.0.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.
Files changed (89) hide show
  1. package/config/babel/index.js +2 -29
  2. package/config/swc.js +5 -0
  3. package/lib/AggregateSearch/CLSPL/CLQLLexer.js +2 -2
  4. package/lib/AggregateSearch/CLSPL/CLQLParser.js +2 -2
  5. package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +2 -2
  6. package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +2 -2
  7. package/lib/AggregateSearch/CLSPL/SPLStagy.js +19 -9
  8. package/lib/AggregateSearch/CLSPL/index.js +4 -3
  9. package/lib/AggregateSearch/components/CloseAllIcon/index.js +1 -1
  10. package/lib/AggregateSearch/components/DropDown/config.js +54 -0
  11. package/lib/AggregateSearch/components/DropDown/index.js +33 -67
  12. package/lib/AggregateSearch/components/SwitchBtn/index.js +9 -7
  13. package/lib/AggregateSearch/hooks/useDropDown.js +2 -2
  14. package/lib/AggregateSearch/index.js +17 -5
  15. package/lib/AggregateSearch/index.less +1 -1
  16. package/lib/AggregateSearch/utils/index.js +3 -4
  17. package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/index.js +1 -2
  18. package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +3 -3
  19. package/lib/PropertyControlViewer/components/DoCommon.js +3 -3
  20. package/lib/PropertyControlViewer/components/DoImage.js +2 -2
  21. package/lib/PropertyControlViewer/components/DoQuote/components/QuoteView.js +3 -3
  22. package/lib/PropertyControlViewer/components/DoSelect.js +3 -3
  23. package/lib/PropertyControlViewer/components/DoUser.js +15 -19
  24. package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +4 -4
  25. package/lib/PropertyControlViewer/config/utils.js +60 -61
  26. package/lib/PropertyControlViewer/index.js +7 -6
  27. package/lib/Watermark/index.js +5 -7
  28. package/lib/locales/en_US.json +1 -0
  29. package/lib/locales/index.js +42 -0
  30. package/lib/locales/intl.js +75 -0
  31. package/lib/locales/withLocale.js +37 -0
  32. package/lib/locales/zh_CN.json +1 -0
  33. package/lib/locales/zh_TW.json +1 -0
  34. package/package.json +12 -7
  35. package/config/babel/antdComs.js +0 -51
  36. package/config/babel/formily.js +0 -22
  37. package/config/city/citys.js +0 -1964
  38. package/config/theme/CWTheme.js +0 -427
  39. package/config/theme/chart.dark.js +0 -394
  40. package/config/theme/chart.light.js +0 -3
  41. package/config/theme/common.less +0 -161
  42. package/config/theme/dark.js +0 -784
  43. package/config/theme/dark.less +0 -80
  44. package/config/theme/default.js +0 -717
  45. package/config/theme/default.less +0 -144
  46. package/config/theme/style/color/bezierEasing.less +0 -110
  47. package/config/theme/style/color/colorPalette.less +0 -85
  48. package/config/theme/style/color/colors.less +0 -162
  49. package/config/theme/style/color/tinyColor.less +0 -1184
  50. package/config/theme/style/compact.less +0 -4
  51. package/config/theme/style/components.less +0 -65
  52. package/config/theme/style/core/base.less +0 -10
  53. package/config/theme/style/core/global.less +0 -491
  54. package/config/theme/style/core/iconfont.less +0 -22
  55. package/config/theme/style/core/index.less +0 -5
  56. package/config/theme/style/core/motion/fade.less +0 -34
  57. package/config/theme/style/core/motion/move.less +0 -129
  58. package/config/theme/style/core/motion/other.less +0 -51
  59. package/config/theme/style/core/motion/slide.less +0 -129
  60. package/config/theme/style/core/motion/zoom.less +0 -179
  61. package/config/theme/style/core/motion.less +0 -22
  62. package/config/theme/style/css.js +0 -3
  63. package/config/theme/style/dark.less +0 -4
  64. package/config/theme/style/default.css +0 -1784
  65. package/config/theme/style/default.less +0 -4
  66. package/config/theme/style/index-pure.less +0 -2
  67. package/config/theme/style/index.css +0 -1784
  68. package/config/theme/style/index.d.ts +0 -1
  69. package/config/theme/style/index.js +0 -3
  70. package/config/theme/style/index.less +0 -3
  71. package/config/theme/style/mixins/box.less +0 -7
  72. package/config/theme/style/mixins/clearfix.less +0 -16
  73. package/config/theme/style/mixins/compatibility.less +0 -13
  74. package/config/theme/style/mixins/customize.less +0 -181
  75. package/config/theme/style/mixins/iconfont.less +0 -28
  76. package/config/theme/style/mixins/index.less +0 -14
  77. package/config/theme/style/mixins/modal-mask.less +0 -30
  78. package/config/theme/style/mixins/motion.less +0 -33
  79. package/config/theme/style/mixins/operation-unit.less +0 -16
  80. package/config/theme/style/mixins/reset.less +0 -11
  81. package/config/theme/style/mixins/rounded-arrow.less +0 -44
  82. package/config/theme/style/mixins/size.less +0 -10
  83. package/config/theme/style/mixins/typography.less +0 -58
  84. package/config/theme/style/themes/compact.less +0 -295
  85. package/config/theme/style/themes/dark.less +0 -457
  86. package/config/theme/style/themes/default.less +0 -1080
  87. package/config/theme/style/themes/index.less +0 -7
  88. package/config/theme/style/themes/variable.less +0 -1135
  89. package/config/theme/style/variable.less +0 -4
@@ -0,0 +1,42 @@
1
+ import { useEffect, useContext, useMemo } from "react";
2
+ import intl, { useForceUpdate, TagInitInstance, injectLocale } from "./intl";
3
+ import { intlContext } from '@chaoswise/ui/lib/ConfigProvider/ConfigProvider';
4
+ import withLocale from "./withLocale";
5
+
6
+ // 初始化默认值取消warning
7
+ intl.init({
8
+ currentLocale: 'default',
9
+ locales: {},
10
+ warningHandler: function warningHandler() {
11
+ return null;
12
+ }
13
+ });
14
+
15
+ // 导出TagInitInstance
16
+ export { TagInitInstance, useForceUpdate, withLocale };
17
+ export var useIntl = function useIntl() {
18
+ var _useContext = useContext(intlContext),
19
+ locale = _useContext.locale;
20
+
21
+ // 兼容映射
22
+ var currentLocale = useMemo(function () {
23
+ var map = {
24
+ zh: "zh_CN",
25
+ en: "en_US"
26
+ };
27
+ return map[locale] || locale;
28
+ }, [locale]);
29
+ var forceUpdate = useForceUpdate();
30
+ useEffect(function () {
31
+ // 有组件注册过就不再注册
32
+ if (TagInitInstance.getCurrentLocale() === currentLocale) {
33
+ return;
34
+ }
35
+ injectLocale(currentLocale, function () {
36
+ TagInitInstance.setCurrentLocale(currentLocale);
37
+ forceUpdate();
38
+ });
39
+ }, [currentLocale]);
40
+ return intl;
41
+ };
42
+ export default intl;
@@ -0,0 +1,75 @@
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 _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; }
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ 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); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ import { useCallback, useState } from 'react';
15
+ import { ReactIntlUniversal } from 'react-intl-universal';
16
+ var IntlInstance = new ReactIntlUniversal();
17
+ var createNewObject = function createNewObject() {
18
+ return {};
19
+ };
20
+ export function useForceUpdate() {
21
+ var _useState = useState(createNewObject),
22
+ _useState2 = _slicedToArray(_useState, 2),
23
+ setValue = _useState2[1];
24
+ return useCallback(function () {
25
+ setValue(createNewObject());
26
+ }, []);
27
+ }
28
+ // 记录
29
+ var TagInit = /*#__PURE__*/function () {
30
+ function TagInit() {
31
+ _classCallCheck(this, TagInit);
32
+ this.currentLocale = '';
33
+ }
34
+ _createClass(TagInit, [{
35
+ key: "setCurrentLocale",
36
+ value: function setCurrentLocale(currentLocale) {
37
+ this.currentLocale = currentLocale;
38
+ }
39
+ }, {
40
+ key: "getCurrentLocale",
41
+ value: function getCurrentLocale() {
42
+ return this.currentLocale;
43
+ }
44
+ }]);
45
+ return TagInit;
46
+ }();
47
+ export var injectLocale = function injectLocale(currentLocale) {
48
+ var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
49
+ var initFunc = function initFunc(currentLocale, data) {
50
+ IntlInstance.init({
51
+ currentLocale: currentLocale,
52
+ locales: _defineProperty({}, currentLocale, data)
53
+ });
54
+ };
55
+ if (currentLocale === "zh_CN") {
56
+ import("./zh_CN.json").then(function (res) {
57
+ initFunc(currentLocale, res["default"]);
58
+ cb();
59
+ });
60
+ }
61
+ if (currentLocale === "en_US") {
62
+ import("./en_US.json").then(function (res) {
63
+ initFunc(currentLocale, res["default"]);
64
+ cb();
65
+ });
66
+ }
67
+ if (currentLocale === "zh_TW") {
68
+ import("./zh_TW.json").then(function (res) {
69
+ initFunc(currentLocale, res["default"]);
70
+ cb();
71
+ });
72
+ }
73
+ };
74
+ export var TagInitInstance = new TagInit();
75
+ export default IntlInstance;
@@ -0,0 +1,37 @@
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
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); }
7
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+ import React from 'react';
15
+ import { injectLocale } from './intl';
16
+ import { intlContext } from '@chaoswise/ui/lib/ConfigProvider/ConfigProvider';
17
+ export default function withLocale(WrappedComponent) {
18
+ var WithLocale = /*#__PURE__*/function (_React$Component) {
19
+ _inherits(WithLocale, _React$Component);
20
+ var _super = _createSuper(WithLocale);
21
+ function WithLocale(props) {
22
+ _classCallCheck(this, WithLocale);
23
+ return _super.call(this, props);
24
+ }
25
+ _createClass(WithLocale, [{
26
+ key: "render",
27
+ value: function render() {
28
+ var _this = this;
29
+ /*#__PURE__*/React.createElement(intlContext.Consumer, null, function (value) {
30
+ return /*#__PURE__*/React.createElement(WrappedComponent, _this.props);
31
+ });
32
+ }
33
+ }]);
34
+ return WithLocale;
35
+ }(React.Component);
36
+ return WithLocale;
37
+ }
@@ -0,0 +1 @@
1
+ {"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用户组:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜索条件已复制","1cd159c8-2a4d-4208-a170-55a34b91f671":"暂无数据,提交搜索后搜索关键字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切换为筛选模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 后缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"组合符号","30a2737a-c786-4f9f-bb22-02ca27a557ff":"结束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部门","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分组","3431b29b-5fb7-411f-8a1d-8d7676b03264":"帮助文档","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜索历史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"语法错误","43395ce9-35f2-4a6d-9e84-8c277369157b":"用户名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"标签搜索","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等于","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括号","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知输入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加载中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切换为手写CQL语法模式","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小于","719234f9-de71-4fc6-ab3f-59287ff20570":"大于","79279aa4-ad27-4082-8093-06122d68c611":"部门:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"邮箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 后面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手机","914a6df4-9561-4345-a98c-0559e3f787ff":"小于等于","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要输入 {tokenName} ,期望 {slot0}","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用户名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用户组","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"数值区间","be953f09-653f-4715-a3b9-9e0faef199b3":"全文检索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"语句不完整,缺少结尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手机:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等于","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"邮箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大于等于","e7413527-a5ee-4057-b765-3595cd26c09b":"关联搜索:status:(error OR warning) AND NOT service:“service_a”","e94234be-e478-4314-bc85-572cc285f5f9":"描述","f2447d25-e81c-4656-9e4c-f66741dd8a52":"匹配方式","f307bd91-6737-4667-9e89-daec35b21198":"描述:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"字段名称","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"暂未注册组件","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"完全匹配:\"hello world\""}
@@ -0,0 +1 @@
1
+ {"0ee18787-448b-4f7b-a3f2-5067a38c9a26":"用戶組:","15444b85-9196-4bb6-97bd-eb5cd4186cb9":"搜索條件已複製","1cd159c8-2a4d-4208-a170-55a34b91f671":"暫無數據,提交搜索後搜索關鍵字","1e9cc6b2-f761-4aaa-a216-9f842c6f8fce":"切換為篩選模式","229e8f35-ce6c-403a-b52e-05346dd8eb0b":"通配符:*?","2bf0d704-4106-4359-8488-d0e395f37d34":"在 {slot0} 後缺失 {slot1}","2e8bd2b4-57bf-4778-a254-3b577d0241c5":"組合符號","30a2737a-c786-4f9f-bb22-02ca27a557ff":"結束","3190d9a0-41bf-42b3-adf9-9d22a337f65d":"部門","324f8bc5-e6dc-46b5-a18b-8c4e55c7352e":"分組","3431b29b-5fb7-411f-8a1d-8d7676b03264":"幫助文檔","354fbc6d-1abb-4510-81a9-9aa2efa6f482":"搜索歷史","3f52c2a1-892d-47fe-b296-49a35ff8c4ee":"語法錯誤","43395ce9-35f2-4a6d-9e84-8c277369157b":"用戶名","4412a02d-d11d-4231-bf91-fd65afd9ea77":"標籤搜索","47e5459f-882c-4395-a8f1-d49e89b0a263":"不等於","48b09da1-28bf-497d-a327-0ad6e3ef9af1":"括弧","4ced2ca1-2a3f-49d9-9907-1b404d5a1586":"存在 <未知輸入>","51b43939-ce6a-4a41-9038-832b8ab4a175":"加載中...","5b412c79-b099-47cd-8745-21264d9212c4":"姓名","5faa90fc-6455-499a-a0d5-c7ff9c9867df":"切換為手寫CQL語法模式","7058c2d9-91f3-4fe6-8a38-2c145a627959":"小於","719234f9-de71-4fc6-ab3f-59287ff20570":"大於","79279aa4-ad27-4082-8093-06122d68c611":"部門:","88d7ad39-7f49-459f-a1fd-48dd4c0ff9d5":"郵箱:","8b3465a5-e2ca-4f7c-af17-2cb091ef40fe":"{slot0} 後面,期望 {slot1}","905a2fe5-4c8a-467e-813a-963fdb268b10":"手機","914a6df4-9561-4345-a98c-0559e3f787ff":"小於等於","94f38306-0e2c-4d1c-beff-64d14bd7da20":"不必要輸入 {tokenName} ,期望 {slot0}","b2df07f1-b093-4f56-9ec2-af471999634d":"位置","b59f74be-dff0-4e3e-92db-354b475c3efd":"用戶名:","bc71d288-1654-454d-8639-5ed225d8d6f6":"用戶組","bdfe4b04-efd7-4f93-a6ba-3954aca3b0eb":"數值區間","be953f09-653f-4715-a3b9-9e0faef199b3":"全文檢索:hello world","cfbba0e5-b133-4bd7-9b8c-3c92368fe049":"姓名:","d6f72140-92e1-4214-8bcb-d548fa8ed1ce":"語句不完整,缺少結尾","db3f4bef-089e-4144-861d-29f79fa4cd38":"手機:","df7b8ec5-840a-4fc7-aa8c-806d470ec97c":"等於","e28ef3cf-569c-49f8-99b3-533e5013cb9d":"郵箱","e633ed68-a12e-4af5-9a7a-d2eb476f4cef":"大於等於","e7413527-a5ee-4057-b765-3595cd26c09b":"關聯搜索:status:(error OR warning) AND NOT service:“service_a”","e94234be-e478-4314-bc85-572cc285f5f9":"描述","f2447d25-e81c-4656-9e4c-f66741dd8a52":"匹配方式","f307bd91-6737-4667-9e89-daec35b21198":"描述:","fbda5bcb-67b0-4b7c-85fd-fb30068f73a0":"字段名稱","fc7ca498-ab95-4a4b-9f5f-0d024cc127c3":"暫未註冊組件","ff777cfe-21b4-4eb0-bf80-ebd92081fdf5":"完全匹配:\"hello world\""}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@chaoswise/business",
3
- "version": "0.0.17",
3
+ "packageName": "chaoswiseBusiness",
4
+ "version": "1.0.0",
4
5
  "description": "业务组件库",
5
6
  "keywords": [
6
7
  "ui",
@@ -28,6 +29,8 @@
28
29
  "@babel/preset-env": "^7.16.11",
29
30
  "@babel/preset-typescript": "^7.16.7",
30
31
  "@babel/runtime-corejs3": "^7.11.2",
32
+ "@chaoswise/intl": "^2.1.0",
33
+ "@chaoswise/ui": "2.5.2",
31
34
  "@storybook/addon-actions": "^6.4.22",
32
35
  "@storybook/addon-essentials": "^6.4.22",
33
36
  "@storybook/addon-interactions": "^6.4.22",
@@ -71,12 +74,12 @@
71
74
  "webpack-css-themes-plugin": "0.12.3"
72
75
  },
73
76
  "dependencies": {
74
- "@chaoswise/intl": "^1.2.2",
75
77
  "antlr4": "4.9.2",
76
- "react-copy-to-clipboard": "^5.1.0"
78
+ "react-copy-to-clipboard": "^5.1.0",
79
+ "react-intl-universal": "^2.9.1"
77
80
  },
78
81
  "peerDependencies": {
79
- "@chaoswise/ui": ">=2.0.0"
82
+ "@chaoswise/ui": ">=2.4.0"
80
83
  },
81
84
  "author": "cloudwiser",
82
85
  "homepage": "",
@@ -100,11 +103,13 @@
100
103
  "build-webpack": "webpack --config webpack/webpack.build.js",
101
104
  "analyze": "ANALYZE=1 webpack --config webpack/webpack.build.js",
102
105
  "build": "gulp es --gulpfile ./scripts/gulpfile.js",
103
- "build-tar": "node ./scripts/build-tar.js"
106
+ "build-tar": "node ./scripts/build-tar.js",
107
+ "intl-init": "chaoswise-intl init",
108
+ "intl-collect": "chaoswise-intl collect",
109
+ "intl-update": "chaoswise-intl update"
104
110
  },
105
111
  "publishConfig": {
106
112
  "access": "public"
107
113
  },
108
- "license": "MIT",
109
- "gitHead": "b4ad01f638ad33d1a7ecf44dacd71521f80831af"
114
+ "license": "MIT"
110
115
  }
@@ -1,51 +0,0 @@
1
- /*
2
- * @Author: your name
3
- * @Date: 2022-02-21 16:23:43
4
- * @LastEditTime: 2023-05-11 17:35:05
5
- * @LastEditors: andrew.qiao andrew.qiao@cloudwise.com
6
- * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7
- * @FilePath: /change_02/aops_web_commons/packages/ui/config/babel/antdComs.js
8
- */
9
-
10
- module.exports = [
11
- 'Affix', 'Anchor', 'AutoComplete',
12
- 'Avatar', 'BackTop', 'Breadcrumb',
13
- 'Calendar', 'Card', 'Carousel', 'Col',
14
- 'Comment', 'Descriptions',
15
- 'Divider', 'Drawer', 'Dropdown',
16
- 'Icon',
17
- 'List', 'LocaleProvider', 'Layout', 'Mention',
18
- 'Mentions', 'PageHeader', 'Transfer',
19
- 'Popover',
20
- 'Rate', 'Result', 'Row',
21
- 'Skeleton', 'Spin',
22
- 'Statistic', 'Steps', 'Switch', 'TimePicker','TreeSelect',
23
- 'Select',
24
- 'Typography',
25
- 'version', 'Table', 'Tree',
26
- ];
27
- // 已经被覆盖的组件
28
- /**
29
- * Button
30
- * ConfigProvider
31
- * Modal
32
- * Pagination
33
- * Upload
34
- * Tree
35
- * Table
36
- * Tabs
37
- * Tooltip
38
- * Popconfirm
39
- * Radio
40
- * Checkbox
41
- * message
42
- * Slider
43
- * Input
44
- * Progress
45
- * Badge
46
- * Alert
47
- * Menu
48
- * InputNumber
49
- * Cascader
50
- * notification
51
- */
@@ -1,22 +0,0 @@
1
- const fse = require('fs-extra');
2
- // 项目的根目录
3
- const projectPath = process.cwd();
4
-
5
- const babelConfig = {
6
- "libraryName": "@chaoswise/ui/formily",
7
- "camel2DashComponentName": false,
8
- "customName": name => {
9
- return `@chaoswise/ui/lib/Formily/${name}`
10
- },
11
- "style": name => {
12
- // 判断是否有样式文件
13
- const fileTargetPath = `${projectPath}/node_modules/${name}/index.less`;
14
- const isExist = fse.pathExistsSync(fileTargetPath);
15
- if(!isExist) {
16
- return false
17
- }
18
- return `${name}/index.less`
19
- }
20
- }
21
-
22
- module.exports = babelConfig;