@opentiny/vue-search-box 0.1.0 → 0.1.1-alpha.2
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/README.md +1 -106
- package/dist/es/index.es.js +22 -0
- package/{es → dist/es}/index.vue.es2.js +11 -42
- package/dist/es/utils/en_US.es.js +44 -0
- package/{es → dist/es}/utils/zh_CN.es.js +1 -1
- package/{lib → dist/lib}/index.cjs.js +10 -2
- package/{lib → dist/lib}/index.vue.cjs2.js +83 -114
- package/dist/lib/utils/en_US.cjs.js +44 -0
- package/{lib → dist/lib}/utils/zh_CN.cjs.js +2 -2
- package/{types → dist/types}/utils/en_US.d.ts +2 -1
- package/{types → dist/types}/utils/zh_CN.d.ts +2 -1
- package/package.json +72 -63
- package/src/index.ts +24 -0
- package/es/index.es.js +0 -14
- package/es/utils/en_US.es.js +0 -44
- package/lib/utils/en_US.cjs.js +0 -44
- /package/{es → dist/es}/composables/use-checkbox.es.js +0 -0
- /package/{es → dist/es}/composables/use-custom.es.js +0 -0
- /package/{es → dist/es}/composables/use-datepicker.es.js +0 -0
- /package/{es → dist/es}/composables/use-dropdown.es.js +0 -0
- /package/{es → dist/es}/composables/use-edit.es.js +0 -0
- /package/{es → dist/es}/composables/use-init.es.js +0 -0
- /package/{es → dist/es}/composables/use-match.es.js +0 -0
- /package/{es → dist/es}/composables/use-num-range.es.js +0 -0
- /package/{es → dist/es}/composables/use-placeholder.es.js +0 -0
- /package/{es → dist/es}/composables/use-tag.es.js +0 -0
- /package/{es → dist/es}/index-VrLZbD8H.css +0 -0
- /package/{es → dist/es}/index.type.es.js +0 -0
- /package/{es → dist/es}/index.vue.es.js +0 -0
- /package/{es → dist/es}/smb-theme.es.js +0 -0
- /package/{es → dist/es}/utils/clone.es.js +0 -0
- /package/{es → dist/es}/utils/date.es.js +0 -0
- /package/{es → dist/es}/utils/dropdown.es.js +0 -0
- /package/{es → dist/es}/utils/index.es.js +0 -0
- /package/{es → dist/es}/utils/tag.es.js +0 -0
- /package/{es → dist/es}/utils/type.es.js +0 -0
- /package/{es → dist/es}/utils/validate.es.js +0 -0
- /package/{index.css → dist/index.css} +0 -0
- /package/{lib → dist/lib}/composables/use-checkbox.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-custom.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-datepicker.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-dropdown.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-edit.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-init.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-match.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-num-range.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-placeholder.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-tag.cjs.js +0 -0
- /package/{lib → dist/lib}/index-VrLZbD8H.css +0 -0
- /package/{lib → dist/lib}/index.type.cjs.js +0 -0
- /package/{lib → dist/lib}/index.vue.cjs.js +0 -0
- /package/{lib → dist/lib}/smb-theme.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/clone.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/date.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/dropdown.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/index.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/tag.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/type.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/validate.cjs.js +0 -0
- /package/{types → dist/types}/composables/use-checkbox.d.ts +0 -0
- /package/{types → dist/types}/composables/use-custom.d.ts +0 -0
- /package/{types → dist/types}/composables/use-datepicker.d.ts +0 -0
- /package/{types → dist/types}/composables/use-dropdown.d.ts +0 -0
- /package/{types → dist/types}/composables/use-edit.d.ts +0 -0
- /package/{types → dist/types}/composables/use-init.d.ts +0 -0
- /package/{types → dist/types}/composables/use-match.d.ts +0 -0
- /package/{types → dist/types}/composables/use-num-range.d.ts +0 -0
- /package/{types → dist/types}/composables/use-placeholder.d.ts +0 -0
- /package/{types → dist/types}/composables/use-tag.d.ts +0 -0
- /package/{types → dist/types}/index.type.d.ts +0 -0
- /package/{types → dist/types}/smb-theme.d.ts +0 -0
- /package/{types → dist/types}/utils/clone.d.ts +0 -0
- /package/{types → dist/types}/utils/date.d.ts +0 -0
- /package/{types → dist/types}/utils/dropdown.d.ts +0 -0
- /package/{types → dist/types}/utils/index.d.ts +0 -0
- /package/{types → dist/types}/utils/tag.d.ts +0 -0
- /package/{types → dist/types}/utils/type.d.ts +0 -0
- /package/{types → dist/types}/utils/validate.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,63 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opentiny/vue-search-box",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"homepage": "https://github.com/opentiny/tiny-search-box#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/opentiny/tiny-search-box/issues"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/opentiny/tiny-search-box.git"
|
|
12
|
-
},
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"author": "",
|
|
15
|
-
"type": "module",
|
|
16
|
-
"main": "
|
|
17
|
-
"module": "
|
|
18
|
-
"types": "types/index.d.ts",
|
|
19
|
-
"style": "src/index.less",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@opentiny/vue-
|
|
43
|
-
"@opentiny/
|
|
44
|
-
"@opentiny/vue-
|
|
45
|
-
"@opentiny/vue-
|
|
46
|
-
"@opentiny/vue-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"vue": "^3.
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentiny/vue-search-box",
|
|
3
|
+
"version": "0.1.1-alpha.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"homepage": "https://github.com/opentiny/tiny-search-box#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/opentiny/tiny-search-box/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/opentiny/tiny-search-box.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "src/index.ts",
|
|
17
|
+
"module": "src/index.ts",
|
|
18
|
+
"types": "types/index.d.ts",
|
|
19
|
+
"style": "src/index.less",
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"main": "dist/lib/index.cjs.js",
|
|
23
|
+
"module": "dist/es/index.es.js",
|
|
24
|
+
"types": "dist/types/index.d.ts",
|
|
25
|
+
"style": "dist/index.less"
|
|
26
|
+
},
|
|
27
|
+
"files": ["dist"],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"search",
|
|
30
|
+
"comprehensive search",
|
|
31
|
+
"opentiny"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "pnpm build:theme && vite build",
|
|
35
|
+
"build:theme": "vite build --config vite.config.theme.ts",
|
|
36
|
+
"prepublish": "node scripts/pre-release.cjs"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"vue": "^3.0.0"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@opentiny/vue-button": "^3.22.0",
|
|
43
|
+
"@opentiny/utils": "^3.22.0",
|
|
44
|
+
"@opentiny/vue-checkbox": "^3.22.0",
|
|
45
|
+
"@opentiny/vue-checkbox-group": "^3.22.0",
|
|
46
|
+
"@opentiny/vue-date-picker": "^3.22.0",
|
|
47
|
+
"@opentiny/vue-dropdown": "^3.22.0",
|
|
48
|
+
"@opentiny/vue-dropdown-item": "^3.22.0",
|
|
49
|
+
"@opentiny/vue-dropdown-menu": "^3.22.0",
|
|
50
|
+
"@opentiny/vue-form": "^3.22.0",
|
|
51
|
+
"@opentiny/vue-form-item": "^3.22.0",
|
|
52
|
+
"@opentiny/vue-icon": "^3.22.0",
|
|
53
|
+
"@opentiny/vue-input": "^3.22.0",
|
|
54
|
+
"@opentiny/vue-loading": "^3.22.0",
|
|
55
|
+
"@opentiny/vue-option": "^3.22.0",
|
|
56
|
+
"@opentiny/vue-popover": "^3.22.0",
|
|
57
|
+
"@opentiny/vue-select": "^3.22.0",
|
|
58
|
+
"@opentiny/vue-tag": "^3.22.0",
|
|
59
|
+
"@opentiny/vue-tooltip": "^3.22.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
63
|
+
"commander": "^6.2.0",
|
|
64
|
+
"glob": "^11.0.0",
|
|
65
|
+
"vue": "^3.0.0",
|
|
66
|
+
"less": "^4.2.2",
|
|
67
|
+
"shelljs": "^0.8.4",
|
|
68
|
+
"typescript": "^5.8.2",
|
|
69
|
+
"vite": "^6.2.2",
|
|
70
|
+
"vite-plugin-dts": "^4.3.0"
|
|
71
|
+
}
|
|
72
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { App } from 'vue'
|
|
2
|
+
import { watch } from 'vue'
|
|
3
|
+
import TinySearchBox from './index.vue'
|
|
4
|
+
import zhCN from './utils/zh_CN'
|
|
5
|
+
import enUS from './utils/en_US'
|
|
6
|
+
import './index.less'
|
|
7
|
+
export * from './index.type'
|
|
8
|
+
|
|
9
|
+
let apps
|
|
10
|
+
TinySearchBox.install = function (app: App) {
|
|
11
|
+
apps = app
|
|
12
|
+
app.component(TinySearchBox.name, TinySearchBox)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const t = (key) => {
|
|
16
|
+
const array = key.split('.')
|
|
17
|
+
return apps?.config?.globalProperties?.$t
|
|
18
|
+
? apps?.config?.globalProperties?.$t(key)
|
|
19
|
+
: zhCN?.[array?.[0]]?.[array?.[1]]?.[array?.[2]]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { zhCN, enUS }
|
|
23
|
+
|
|
24
|
+
export default TinySearchBox
|
package/es/index.es.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "./index.vue.es.js";
|
|
2
|
-
import { zhCN } from "./utils/zh_CN.es.js";
|
|
3
|
-
import { enUS } from "./utils/en_US.es.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import "./index.type.es.js";
|
|
6
|
-
import _sfc_main from "./index.vue.es2.js";
|
|
7
|
-
_sfc_main.install = function(app) {
|
|
8
|
-
app.component(_sfc_main.name, _sfc_main);
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
_sfc_main as default,
|
|
12
|
-
enUS,
|
|
13
|
-
zhCN
|
|
14
|
-
};
|
package/es/utils/en_US.es.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const enUS = {
|
|
2
|
-
tvp: {
|
|
3
|
-
tvpSearchbox: {
|
|
4
|
-
defaultPlaceholder: "请选择属性筛选,或输入关键字",
|
|
5
|
-
addPlaceholder: "添加筛选条件",
|
|
6
|
-
tagPlaceholder: "请选择标签键/值搜索,或输入“键=值”搜索",
|
|
7
|
-
dynamicPlaceholder: "请选择{newValue}搜索",
|
|
8
|
-
attributeType: "属性类型",
|
|
9
|
-
propertyValue: "{0}的值",
|
|
10
|
-
matched: "潜在匹配项",
|
|
11
|
-
allValues: "所有值",
|
|
12
|
-
allProperty: "全部属性",
|
|
13
|
-
operator: "运算符",
|
|
14
|
-
clearAll: "清空",
|
|
15
|
-
emptyValue: "空 值",
|
|
16
|
-
help: "点击查看帮助",
|
|
17
|
-
switchText: "切换到默认搜索项",
|
|
18
|
-
tagKey: "键",
|
|
19
|
-
tagValue: "值",
|
|
20
|
-
minValueText: "最小值",
|
|
21
|
-
maxValueText: "最大值",
|
|
22
|
-
rangeMinErr: "输入值必须在{0}~{1}之间",
|
|
23
|
-
rangeMaxErr: "最大值必须大于等于最小值,或者为空",
|
|
24
|
-
rangeNumberTitle: "请至少输入一个值",
|
|
25
|
-
rangeDateTitle: "请至少输入一个日期",
|
|
26
|
-
timeLengthTitle: "可选时间跨度为{value}天内",
|
|
27
|
-
rangeBeginLabel: "开始日期",
|
|
28
|
-
rangeEndLabel: "结束日期",
|
|
29
|
-
rulekeyword1: "关键字",
|
|
30
|
-
notBeNull: "值不能为空",
|
|
31
|
-
noData: "暂无匹配数据...",
|
|
32
|
-
selectAll: "全选",
|
|
33
|
-
confirm: "确定",
|
|
34
|
-
cancel: "取消",
|
|
35
|
-
equal: "等于",
|
|
36
|
-
notEqual: "不等于",
|
|
37
|
-
contain: "包含",
|
|
38
|
-
notContain: "不包含"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
enUS
|
|
44
|
-
};
|
package/lib/utils/en_US.cjs.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const enUS = {
|
|
4
|
-
tvp: {
|
|
5
|
-
tvpSearchbox: {
|
|
6
|
-
defaultPlaceholder: "请选择属性筛选,或输入关键字",
|
|
7
|
-
addPlaceholder: "添加筛选条件",
|
|
8
|
-
tagPlaceholder: "请选择标签键/值搜索,或输入“键=值”搜索",
|
|
9
|
-
dynamicPlaceholder: "请选择{newValue}搜索",
|
|
10
|
-
attributeType: "属性类型",
|
|
11
|
-
propertyValue: "{0}的值",
|
|
12
|
-
matched: "潜在匹配项",
|
|
13
|
-
allValues: "所有值",
|
|
14
|
-
allProperty: "全部属性",
|
|
15
|
-
operator: "运算符",
|
|
16
|
-
clearAll: "清空",
|
|
17
|
-
emptyValue: "空 值",
|
|
18
|
-
help: "点击查看帮助",
|
|
19
|
-
switchText: "切换到默认搜索项",
|
|
20
|
-
tagKey: "键",
|
|
21
|
-
tagValue: "值",
|
|
22
|
-
minValueText: "最小值",
|
|
23
|
-
maxValueText: "最大值",
|
|
24
|
-
rangeMinErr: "输入值必须在{0}~{1}之间",
|
|
25
|
-
rangeMaxErr: "最大值必须大于等于最小值,或者为空",
|
|
26
|
-
rangeNumberTitle: "请至少输入一个值",
|
|
27
|
-
rangeDateTitle: "请至少输入一个日期",
|
|
28
|
-
timeLengthTitle: "可选时间跨度为{value}天内",
|
|
29
|
-
rangeBeginLabel: "开始日期",
|
|
30
|
-
rangeEndLabel: "结束日期",
|
|
31
|
-
rulekeyword1: "关键字",
|
|
32
|
-
notBeNull: "值不能为空",
|
|
33
|
-
noData: "暂无匹配数据...",
|
|
34
|
-
selectAll: "全选",
|
|
35
|
-
confirm: "确定",
|
|
36
|
-
cancel: "取消",
|
|
37
|
-
equal: "等于",
|
|
38
|
-
notEqual: "不等于",
|
|
39
|
-
contain: "包含",
|
|
40
|
-
notContain: "不包含"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.enUS = enUS;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|