@alicloud/console-components-search 0.2.31 → 0.2.32
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 -0
- package/dist/index.js +4 -4
- package/doc-dist/deps/main.js +1 -1
- package/doc-dist/log-deps-build.log +1 -1
- package/es/ComplexSearch/index.js +5 -5
- package/lib/ComplexSearch/index.js +5 -5
- package/package.json +14 -15
|
@@ -4,7 +4,7 @@ BreezrPluginStyledComponentsIsolation The plugin will trying to use the package
|
|
|
4
4
|
`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`
|
|
5
5
|
at isModuleDeclaration (/Users/fringey/www/github/alibabacloud-console-components/node_modules/@babel/types/lib/validators/generated/index.js:2740:35)
|
|
6
6
|
at PluginPass.Program (/Users/fringey/www/github/alibabacloud-console-components/node_modules/babel-plugin-lodash/lib/index.js:102:44)
|
|
7
|
-
✔ Webpack: Compiled successfully in
|
|
7
|
+
✔ Webpack: Compiled successfully in 7.45s
|
|
8
8
|
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
9
9
|
This can impact web performance.
|
|
10
10
|
Assets:
|
|
@@ -69,24 +69,24 @@ var normalizeSelectDataSource = function normalizeSelectDataSource(title, list)
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
var normalizeSearchOptions = function normalizeSearchOptions(dataIndex, value, options) {
|
|
72
|
-
var opt = options.find(function (o) {
|
|
72
|
+
var opt = options === null || options === void 0 ? void 0 : options.find(function (o) {
|
|
73
73
|
return o.dataIndex === dataIndex;
|
|
74
74
|
});
|
|
75
75
|
var valueLabel = value;
|
|
76
76
|
|
|
77
77
|
if ((opt === null || opt === void 0 ? void 0 : opt.template) === 'select') {
|
|
78
|
-
var _opt$templateProps;
|
|
78
|
+
var _opt$templateProps, _opt$templateProps$da;
|
|
79
79
|
|
|
80
|
-
valueLabel = (_opt$templateProps = opt.templateProps) === null || _opt$templateProps === void 0 ? void 0 : _opt$templateProps.dataSource.find(function (d) {
|
|
80
|
+
valueLabel = (_opt$templateProps = opt.templateProps) === null || _opt$templateProps === void 0 ? void 0 : (_opt$templateProps$da = _opt$templateProps.dataSource.find(function (d) {
|
|
81
81
|
return d.value === value;
|
|
82
|
-
}).label;
|
|
82
|
+
})) === null || _opt$templateProps$da === void 0 ? void 0 : _opt$templateProps$da.label;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
if ((opt === null || opt === void 0 ? void 0 : opt.template) === 'multiple') {
|
|
86
86
|
var _opt$templateProps2;
|
|
87
87
|
|
|
88
88
|
valueLabel = (_opt$templateProps2 = opt.templateProps) === null || _opt$templateProps2 === void 0 ? void 0 : _opt$templateProps2.dataSource.filter(function (d) {
|
|
89
|
-
return value.includes(d.value);
|
|
89
|
+
return value === null || value === void 0 ? void 0 : value.includes(d.value);
|
|
90
90
|
}).map(function (d) {
|
|
91
91
|
return d.label;
|
|
92
92
|
}).join('/');
|
|
@@ -94,24 +94,24 @@ var normalizeSelectDataSource = function normalizeSelectDataSource(title, list)
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
var normalizeSearchOptions = function normalizeSearchOptions(dataIndex, value, options) {
|
|
97
|
-
var opt = options.find(function (o) {
|
|
97
|
+
var opt = options === null || options === void 0 ? void 0 : options.find(function (o) {
|
|
98
98
|
return o.dataIndex === dataIndex;
|
|
99
99
|
});
|
|
100
100
|
var valueLabel = value;
|
|
101
101
|
|
|
102
102
|
if ((opt === null || opt === void 0 ? void 0 : opt.template) === 'select') {
|
|
103
|
-
var _opt$templateProps;
|
|
103
|
+
var _opt$templateProps, _opt$templateProps$da;
|
|
104
104
|
|
|
105
|
-
valueLabel = (_opt$templateProps = opt.templateProps) === null || _opt$templateProps === void 0 ? void 0 : _opt$templateProps.dataSource.find(function (d) {
|
|
105
|
+
valueLabel = (_opt$templateProps = opt.templateProps) === null || _opt$templateProps === void 0 ? void 0 : (_opt$templateProps$da = _opt$templateProps.dataSource.find(function (d) {
|
|
106
106
|
return d.value === value;
|
|
107
|
-
}).label;
|
|
107
|
+
})) === null || _opt$templateProps$da === void 0 ? void 0 : _opt$templateProps$da.label;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
if ((opt === null || opt === void 0 ? void 0 : opt.template) === 'multiple') {
|
|
111
111
|
var _opt$templateProps2;
|
|
112
112
|
|
|
113
113
|
valueLabel = (_opt$templateProps2 = opt.templateProps) === null || _opt$templateProps2 === void 0 ? void 0 : _opt$templateProps2.dataSource.filter(function (d) {
|
|
114
|
-
return value.includes(d.value);
|
|
114
|
+
return value === null || value === void 0 ? void 0 : value.includes(d.value);
|
|
115
115
|
}).map(function (d) {
|
|
116
116
|
return d.label;
|
|
117
117
|
}).join('/');
|
package/package.json
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/console-components-search",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "breezr start --config config/breezr.docs.config.ts",
|
|
9
|
-
"doc:build": "rm -rf doc-dist && breezr build --config config/breezr.docs.config.ts",
|
|
10
|
-
"doc:serve": "echo \"访问 https://xconsole.aliyun-inc.com/demo-playground?consoleOSId=console-fe-test-rc-search-doc&servePath=http://localhost:5556/doc-dist/ ,预览本地打包好的文档资源!\n\n您还可以将文档资源部署到自己的cdn,然后将上述url中的servePath修改为自己的cdn地址,得到你自己的文档预览链接。\" && serve -l 5556 --cors",
|
|
11
|
-
"upload": "breezr upload --config config/breezr.docs.config.ts",
|
|
12
|
-
"upload:pre": "npm run upload -- --tag=pre",
|
|
13
|
-
"babel": "breezr build --engine babel",
|
|
14
|
-
"babel:esm": "breezr build --engine babel --es-module",
|
|
15
|
-
"types": "tsc -p src --emitDeclarationOnly",
|
|
16
|
-
"build": "breezr build --engine webpack",
|
|
17
|
-
"clean": "rm -rf dist lib es doc-dist",
|
|
18
|
-
"prepublishOnly": "npm run clean && npm run babel && npm run babel:esm && npm run types && npm run build && npm run doc:build"
|
|
19
|
-
},
|
|
20
7
|
"devDependencies": {
|
|
21
8
|
"@alicloud/console-toolkit-cli": "^1.2.0",
|
|
22
9
|
"@alicloud/console-toolkit-preset-component": "^1.2.8",
|
|
@@ -39,5 +26,17 @@
|
|
|
39
26
|
"@alicloud/console-components-truncate": "^1.0.16",
|
|
40
27
|
"@alicloud/console-logger-sls": "^1.2.31",
|
|
41
28
|
"js-cookie": "^2.0.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "breezr start --config config/breezr.docs.config.ts",
|
|
32
|
+
"doc:build": "rm -rf doc-dist && breezr build --config config/breezr.docs.config.ts",
|
|
33
|
+
"doc:serve": "echo \"访问 https://xconsole.aliyun-inc.com/demo-playground?consoleOSId=console-fe-test-rc-search-doc&servePath=http://localhost:5556/doc-dist/ ,预览本地打包好的文档资源!\n\n您还可以将文档资源部署到自己的cdn,然后将上述url中的servePath修改为自己的cdn地址,得到你自己的文档预览链接。\" && serve -l 5556 --cors",
|
|
34
|
+
"upload": "breezr upload --config config/breezr.docs.config.ts",
|
|
35
|
+
"upload:pre": "npm run upload -- --tag=pre",
|
|
36
|
+
"babel": "breezr build --engine babel",
|
|
37
|
+
"babel:esm": "breezr build --engine babel --es-module",
|
|
38
|
+
"types": "tsc -p src --emitDeclarationOnly",
|
|
39
|
+
"build": "breezr build --engine webpack",
|
|
40
|
+
"clean": "rm -rf dist lib es doc-dist"
|
|
42
41
|
}
|
|
43
|
-
}
|
|
42
|
+
}
|