@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.
Files changed (78) hide show
  1. package/README.md +1 -106
  2. package/dist/es/index.es.js +22 -0
  3. package/{es → dist/es}/index.vue.es2.js +11 -42
  4. package/dist/es/utils/en_US.es.js +44 -0
  5. package/{es → dist/es}/utils/zh_CN.es.js +1 -1
  6. package/{lib → dist/lib}/index.cjs.js +10 -2
  7. package/{lib → dist/lib}/index.vue.cjs2.js +83 -114
  8. package/dist/lib/utils/en_US.cjs.js +44 -0
  9. package/{lib → dist/lib}/utils/zh_CN.cjs.js +2 -2
  10. package/{types → dist/types}/utils/en_US.d.ts +2 -1
  11. package/{types → dist/types}/utils/zh_CN.d.ts +2 -1
  12. package/package.json +72 -63
  13. package/src/index.ts +24 -0
  14. package/es/index.es.js +0 -14
  15. package/es/utils/en_US.es.js +0 -44
  16. package/lib/utils/en_US.cjs.js +0 -44
  17. /package/{es → dist/es}/composables/use-checkbox.es.js +0 -0
  18. /package/{es → dist/es}/composables/use-custom.es.js +0 -0
  19. /package/{es → dist/es}/composables/use-datepicker.es.js +0 -0
  20. /package/{es → dist/es}/composables/use-dropdown.es.js +0 -0
  21. /package/{es → dist/es}/composables/use-edit.es.js +0 -0
  22. /package/{es → dist/es}/composables/use-init.es.js +0 -0
  23. /package/{es → dist/es}/composables/use-match.es.js +0 -0
  24. /package/{es → dist/es}/composables/use-num-range.es.js +0 -0
  25. /package/{es → dist/es}/composables/use-placeholder.es.js +0 -0
  26. /package/{es → dist/es}/composables/use-tag.es.js +0 -0
  27. /package/{es → dist/es}/index-VrLZbD8H.css +0 -0
  28. /package/{es → dist/es}/index.type.es.js +0 -0
  29. /package/{es → dist/es}/index.vue.es.js +0 -0
  30. /package/{es → dist/es}/smb-theme.es.js +0 -0
  31. /package/{es → dist/es}/utils/clone.es.js +0 -0
  32. /package/{es → dist/es}/utils/date.es.js +0 -0
  33. /package/{es → dist/es}/utils/dropdown.es.js +0 -0
  34. /package/{es → dist/es}/utils/index.es.js +0 -0
  35. /package/{es → dist/es}/utils/tag.es.js +0 -0
  36. /package/{es → dist/es}/utils/type.es.js +0 -0
  37. /package/{es → dist/es}/utils/validate.es.js +0 -0
  38. /package/{index.css → dist/index.css} +0 -0
  39. /package/{lib → dist/lib}/composables/use-checkbox.cjs.js +0 -0
  40. /package/{lib → dist/lib}/composables/use-custom.cjs.js +0 -0
  41. /package/{lib → dist/lib}/composables/use-datepicker.cjs.js +0 -0
  42. /package/{lib → dist/lib}/composables/use-dropdown.cjs.js +0 -0
  43. /package/{lib → dist/lib}/composables/use-edit.cjs.js +0 -0
  44. /package/{lib → dist/lib}/composables/use-init.cjs.js +0 -0
  45. /package/{lib → dist/lib}/composables/use-match.cjs.js +0 -0
  46. /package/{lib → dist/lib}/composables/use-num-range.cjs.js +0 -0
  47. /package/{lib → dist/lib}/composables/use-placeholder.cjs.js +0 -0
  48. /package/{lib → dist/lib}/composables/use-tag.cjs.js +0 -0
  49. /package/{lib → dist/lib}/index-VrLZbD8H.css +0 -0
  50. /package/{lib → dist/lib}/index.type.cjs.js +0 -0
  51. /package/{lib → dist/lib}/index.vue.cjs.js +0 -0
  52. /package/{lib → dist/lib}/smb-theme.cjs.js +0 -0
  53. /package/{lib → dist/lib}/utils/clone.cjs.js +0 -0
  54. /package/{lib → dist/lib}/utils/date.cjs.js +0 -0
  55. /package/{lib → dist/lib}/utils/dropdown.cjs.js +0 -0
  56. /package/{lib → dist/lib}/utils/index.cjs.js +0 -0
  57. /package/{lib → dist/lib}/utils/tag.cjs.js +0 -0
  58. /package/{lib → dist/lib}/utils/type.cjs.js +0 -0
  59. /package/{lib → dist/lib}/utils/validate.cjs.js +0 -0
  60. /package/{types → dist/types}/composables/use-checkbox.d.ts +0 -0
  61. /package/{types → dist/types}/composables/use-custom.d.ts +0 -0
  62. /package/{types → dist/types}/composables/use-datepicker.d.ts +0 -0
  63. /package/{types → dist/types}/composables/use-dropdown.d.ts +0 -0
  64. /package/{types → dist/types}/composables/use-edit.d.ts +0 -0
  65. /package/{types → dist/types}/composables/use-init.d.ts +0 -0
  66. /package/{types → dist/types}/composables/use-match.d.ts +0 -0
  67. /package/{types → dist/types}/composables/use-num-range.d.ts +0 -0
  68. /package/{types → dist/types}/composables/use-placeholder.d.ts +0 -0
  69. /package/{types → dist/types}/composables/use-tag.d.ts +0 -0
  70. /package/{types → dist/types}/index.type.d.ts +0 -0
  71. /package/{types → dist/types}/smb-theme.d.ts +0 -0
  72. /package/{types → dist/types}/utils/clone.d.ts +0 -0
  73. /package/{types → dist/types}/utils/date.d.ts +0 -0
  74. /package/{types → dist/types}/utils/dropdown.d.ts +0 -0
  75. /package/{types → dist/types}/utils/index.d.ts +0 -0
  76. /package/{types → dist/types}/utils/tag.d.ts +0 -0
  77. /package/{types → dist/types}/utils/type.d.ts +0 -0
  78. /package/{types → dist/types}/utils/validate.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- export declare const zhCN: {
1
+ declare const _default: {
2
2
  tvp: {
3
3
  tvpSearchbox: {
4
4
  defaultPlaceholder: string;
@@ -39,3 +39,4 @@ export declare const zhCN: {
39
39
  };
40
40
  };
41
41
  };
42
+ export default _default;
package/package.json CHANGED
@@ -1,63 +1,72 @@
1
- {
2
- "name": "@opentiny/vue-search-box",
3
- "version": "0.1.0",
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": "lib/index.cjs.js",
17
- "module": "es/index.es.js",
18
- "types": "types/index.d.ts",
19
- "style": "src/index.less",
20
- "keywords": [
21
- "search",
22
- "comprehensive search",
23
- "opentiny"
24
- ],
25
- "peerDependencies": {
26
- "vue": "^3.0.0"
27
- },
28
- "dependencies": {
29
- "@opentiny/vue-button": "^3.21.0",
30
- "@opentiny/vue-checkbox": "^3.21.0",
31
- "@opentiny/vue-checkbox-group": "^3.21.0",
32
- "@opentiny/vue-date-picker": "^3.21.0",
33
- "@opentiny/vue-dropdown": "^3.21.0",
34
- "@opentiny/vue-dropdown-item": "^3.21.0",
35
- "@opentiny/vue-dropdown-menu": "^3.21.0",
36
- "@opentiny/vue-form": "^3.21.0",
37
- "@opentiny/vue-form-item": "^3.21.0",
38
- "@opentiny/vue-icon": "^3.21.0",
39
- "@opentiny/vue-input": "^3.21.0",
40
- "@opentiny/vue-loading": "^3.21.0",
41
- "@opentiny/vue-locale": "^3.21.0",
42
- "@opentiny/vue-option": "^3.21.0",
43
- "@opentiny/vue-popover": "^3.21.0",
44
- "@opentiny/vue-select": "^3.21.0",
45
- "@opentiny/vue-tag": "^3.21.0",
46
- "@opentiny/vue-tooltip": "^3.21.0"
47
- },
48
- "devDependencies": {
49
- "@vitejs/plugin-vue": "^4.0.0",
50
- "commander": "^6.2.0",
51
- "glob": "^11.0.0",
52
- "vue": "^3.0.0",
53
- "less": "^4.2.2",
54
- "shelljs": "^0.8.4",
55
- "typescript": "^5.8.2",
56
- "vite": "^6.2.2",
57
- "vite-plugin-dts": "^4.3.0"
58
- },
59
- "scripts": {
60
- "build": "pnpm build:theme && vite build && node scripts/pre-release.cjs",
61
- "build:theme": "vite build --config vite.config.theme.ts"
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
- };
@@ -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
- };
@@ -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