@chaoswise/business 0.0.18 → 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 (82) hide show
  1. package/config/babel/index.js +2 -29
  2. package/config/swc.js +5 -0
  3. package/lib/AggregateSearch/CLSPL/SPLStagy.js +17 -7
  4. package/lib/AggregateSearch/CLSPL/index.js +2 -1
  5. package/lib/AggregateSearch/components/CloseAllIcon/index.js +1 -1
  6. package/lib/AggregateSearch/components/DropDown/config.js +54 -0
  7. package/lib/AggregateSearch/components/DropDown/index.js +33 -67
  8. package/lib/AggregateSearch/components/SwitchBtn/index.js +9 -7
  9. package/lib/AggregateSearch/index.js +17 -5
  10. package/lib/AggregateSearch/index.less +1 -1
  11. package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/index.js +1 -1
  12. package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +1 -1
  13. package/lib/PropertyControlViewer/components/DoCommon.js +1 -1
  14. package/lib/PropertyControlViewer/components/DoQuote/components/QuoteView.js +3 -3
  15. package/lib/PropertyControlViewer/components/DoSelect.js +1 -1
  16. package/lib/PropertyControlViewer/components/DoUser.js +15 -19
  17. package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +2 -2
  18. package/lib/PropertyControlViewer/config/utils.js +58 -59
  19. package/lib/PropertyControlViewer/index.js +7 -6
  20. package/lib/Watermark/index.js +35 -16
  21. package/lib/locales/en_US.json +1 -0
  22. package/lib/locales/index.js +42 -0
  23. package/lib/locales/intl.js +75 -0
  24. package/lib/locales/withLocale.js +37 -0
  25. package/lib/locales/zh_CN.json +1 -0
  26. package/lib/locales/zh_TW.json +1 -0
  27. package/package.json +12 -7
  28. package/config/babel/antdComs.js +0 -51
  29. package/config/babel/formily.js +0 -22
  30. package/config/city/citys.js +0 -1964
  31. package/config/theme/CWTheme.js +0 -427
  32. package/config/theme/chart.dark.js +0 -394
  33. package/config/theme/chart.light.js +0 -3
  34. package/config/theme/common.less +0 -161
  35. package/config/theme/dark.js +0 -784
  36. package/config/theme/dark.less +0 -80
  37. package/config/theme/default.js +0 -717
  38. package/config/theme/default.less +0 -144
  39. package/config/theme/style/color/bezierEasing.less +0 -110
  40. package/config/theme/style/color/colorPalette.less +0 -85
  41. package/config/theme/style/color/colors.less +0 -162
  42. package/config/theme/style/color/tinyColor.less +0 -1184
  43. package/config/theme/style/compact.less +0 -4
  44. package/config/theme/style/components.less +0 -65
  45. package/config/theme/style/core/base.less +0 -10
  46. package/config/theme/style/core/global.less +0 -491
  47. package/config/theme/style/core/iconfont.less +0 -22
  48. package/config/theme/style/core/index.less +0 -5
  49. package/config/theme/style/core/motion/fade.less +0 -34
  50. package/config/theme/style/core/motion/move.less +0 -129
  51. package/config/theme/style/core/motion/other.less +0 -51
  52. package/config/theme/style/core/motion/slide.less +0 -129
  53. package/config/theme/style/core/motion/zoom.less +0 -179
  54. package/config/theme/style/core/motion.less +0 -22
  55. package/config/theme/style/css.js +0 -3
  56. package/config/theme/style/dark.less +0 -4
  57. package/config/theme/style/default.css +0 -1784
  58. package/config/theme/style/default.less +0 -4
  59. package/config/theme/style/index-pure.less +0 -2
  60. package/config/theme/style/index.css +0 -1784
  61. package/config/theme/style/index.d.ts +0 -1
  62. package/config/theme/style/index.js +0 -3
  63. package/config/theme/style/index.less +0 -3
  64. package/config/theme/style/mixins/box.less +0 -7
  65. package/config/theme/style/mixins/clearfix.less +0 -16
  66. package/config/theme/style/mixins/compatibility.less +0 -13
  67. package/config/theme/style/mixins/customize.less +0 -181
  68. package/config/theme/style/mixins/iconfont.less +0 -28
  69. package/config/theme/style/mixins/index.less +0 -14
  70. package/config/theme/style/mixins/modal-mask.less +0 -30
  71. package/config/theme/style/mixins/motion.less +0 -33
  72. package/config/theme/style/mixins/operation-unit.less +0 -16
  73. package/config/theme/style/mixins/reset.less +0 -11
  74. package/config/theme/style/mixins/rounded-arrow.less +0 -44
  75. package/config/theme/style/mixins/size.less +0 -10
  76. package/config/theme/style/mixins/typography.less +0 -58
  77. package/config/theme/style/themes/compact.less +0 -295
  78. package/config/theme/style/themes/dark.less +0 -457
  79. package/config/theme/style/themes/default.less +0 -1080
  80. package/config/theme/style/themes/index.less +0 -7
  81. package/config/theme/style/themes/variable.less +0 -1135
  82. package/config/theme/style/variable.less +0 -4
@@ -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.18",
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": "476b0d792a3fd31448820329f14d76a807c31b64"
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;