@opentiny/vue-search-box 0.1.6 → 2.27.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 (87) hide show
  1. package/es/index.es.js +2772 -0
  2. package/es/index.es.js.map +1 -0
  3. package/lib/index.cjs.js +2 -0
  4. package/lib/index.cjs.js.map +1 -0
  5. package/package.json +36 -56
  6. package/README.md +0 -134
  7. package/README.zh-CN.md +0 -135
  8. package/dist/es/components/first-level-panel.vue.es.js +0 -4
  9. package/dist/es/components/first-level-panel.vue.es2.js +0 -177
  10. package/dist/es/components/second-level-panel.vue.es.js +0 -4
  11. package/dist/es/components/second-level-panel.vue.es2.js +0 -466
  12. package/dist/es/composables/use-checkbox.es.js +0 -74
  13. package/dist/es/composables/use-custom.es.js +0 -49
  14. package/dist/es/composables/use-datepicker.es.js +0 -86
  15. package/dist/es/composables/use-dropdown.es.js +0 -216
  16. package/dist/es/composables/use-edit.es.js +0 -108
  17. package/dist/es/composables/use-init.es.js +0 -78
  18. package/dist/es/composables/use-match.es.js +0 -170
  19. package/dist/es/composables/use-num-range.es.js +0 -77
  20. package/dist/es/composables/use-placeholder.es.js +0 -41
  21. package/dist/es/composables/use-tag.es.js +0 -56
  22. package/dist/es/index-Tlzvfwv-.css +0 -401
  23. package/dist/es/index.es.js +0 -45
  24. package/dist/es/index.type.es.js +0 -1
  25. package/dist/es/index.vue.es.js +0 -4
  26. package/dist/es/index.vue.es2.js +0 -780
  27. package/dist/es/smb-theme.es.js +0 -18
  28. package/dist/es/utils/clone.es.js +0 -29
  29. package/dist/es/utils/date.es.js +0 -431
  30. package/dist/es/utils/dropdown.es.js +0 -24
  31. package/dist/es/utils/en_US.es.js +0 -45
  32. package/dist/es/utils/index.es.js +0 -13
  33. package/dist/es/utils/tag.es.js +0 -44
  34. package/dist/es/utils/type.es.js +0 -4
  35. package/dist/es/utils/validate.es.js +0 -179
  36. package/dist/es/utils/zh_CN.es.js +0 -45
  37. package/dist/index.css +0 -401
  38. package/dist/lib/components/first-level-panel.vue.cjs.js +0 -4
  39. package/dist/lib/components/first-level-panel.vue.cjs2.js +0 -177
  40. package/dist/lib/components/second-level-panel.vue.cjs.js +0 -4
  41. package/dist/lib/components/second-level-panel.vue.cjs2.js +0 -466
  42. package/dist/lib/composables/use-checkbox.cjs.js +0 -74
  43. package/dist/lib/composables/use-custom.cjs.js +0 -49
  44. package/dist/lib/composables/use-datepicker.cjs.js +0 -86
  45. package/dist/lib/composables/use-dropdown.cjs.js +0 -216
  46. package/dist/lib/composables/use-edit.cjs.js +0 -108
  47. package/dist/lib/composables/use-init.cjs.js +0 -78
  48. package/dist/lib/composables/use-match.cjs.js +0 -170
  49. package/dist/lib/composables/use-num-range.cjs.js +0 -77
  50. package/dist/lib/composables/use-placeholder.cjs.js +0 -41
  51. package/dist/lib/composables/use-tag.cjs.js +0 -56
  52. package/dist/lib/index-Tlzvfwv-.css +0 -401
  53. package/dist/lib/index.cjs.js +0 -45
  54. package/dist/lib/index.type.cjs.js +0 -1
  55. package/dist/lib/index.vue.cjs.js +0 -4
  56. package/dist/lib/index.vue.cjs2.js +0 -780
  57. package/dist/lib/smb-theme.cjs.js +0 -18
  58. package/dist/lib/utils/clone.cjs.js +0 -29
  59. package/dist/lib/utils/date.cjs.js +0 -431
  60. package/dist/lib/utils/dropdown.cjs.js +0 -24
  61. package/dist/lib/utils/en_US.cjs.js +0 -45
  62. package/dist/lib/utils/index.cjs.js +0 -13
  63. package/dist/lib/utils/tag.cjs.js +0 -44
  64. package/dist/lib/utils/type.cjs.js +0 -4
  65. package/dist/lib/utils/validate.cjs.js +0 -179
  66. package/dist/lib/utils/zh_CN.cjs.js +0 -45
  67. package/dist/types/composables/use-checkbox.d.ts +0 -8
  68. package/dist/types/composables/use-custom.d.ts +0 -7
  69. package/dist/types/composables/use-datepicker.d.ts +0 -11
  70. package/dist/types/composables/use-dropdown.d.ts +0 -14
  71. package/dist/types/composables/use-edit.d.ts +0 -13
  72. package/dist/types/composables/use-init.d.ts +0 -10
  73. package/dist/types/composables/use-match.d.ts +0 -8
  74. package/dist/types/composables/use-num-range.d.ts +0 -9
  75. package/dist/types/composables/use-placeholder.d.ts +0 -8
  76. package/dist/types/composables/use-tag.d.ts +0 -9
  77. package/dist/types/smb-theme.d.ts +0 -15
  78. package/dist/types/utils/clone.d.ts +0 -12
  79. package/dist/types/utils/date.d.ts +0 -234
  80. package/dist/types/utils/dropdown.d.ts +0 -12
  81. package/dist/types/utils/en_US.d.ts +0 -43
  82. package/dist/types/utils/index.d.ts +0 -1
  83. package/dist/types/utils/tag.d.ts +0 -46
  84. package/dist/types/utils/type.d.ts +0 -6
  85. package/dist/types/utils/validate.d.ts +0 -31
  86. package/dist/types/utils/zh_CN.d.ts +0 -43
  87. /package/{dist/types → types}/index.type.d.ts +0 -0
@@ -1,46 +0,0 @@
1
- import { ISearchBoxNewTag } from '../index.type';
2
- /**
3
- * 判断是否已选择此标签
4
- * @param state searchbox的state变量
5
- * @param itemValue 标签的value值
6
- * @param itemLabel 标签的label值,可选参数,默认为空字符串,一般用于当prevItem.label为空时
7
- * @return 已选择则返回true,未选择则相反
8
- */
9
- export declare const hasTagItem: (state: any, itemValue: any, itemLabel?: string) => any;
10
- /**
11
- * 清空输入框的值
12
- * @param state searchbox的state变量
13
- */
14
- export declare const resetInput: (state: any) => void;
15
- /**
16
- * update:modelValue和change事件
17
- * @param emits vue的api
18
- * @param state searchbox的state变量
19
- * @param args 其他可选参数:
20
- * @param tagList 尾部添加的新标签数组
21
- * @param index 替换某标签的索引
22
- * @param newTag 表示替换的新标签,主要和索引共用
23
- * @param newValue 表示替换全部的model-value值
24
- * @param oldValue 表示旧的model-value值
25
- */
26
- export declare const emitChangeModelEvent: ({ emits, state, ...args }: {
27
- [x: string]: any;
28
- emits: any;
29
- state: any;
30
- }) => void;
31
- /**
32
- * 创建新标签,防止多个地方创建的标签不一致,缺少某些属性
33
- * @param newTag 新标签对象
34
- * @return 生成的新标签对象
35
- */
36
- export declare const createNewTag: (newTag: ISearchBoxNewTag) => ISearchBoxNewTag;
37
- /**
38
- * 获取元素的唯一标识
39
- * @param props 组件入参对象
40
- * @param prevItem 当前标签父级对象
41
- * @param item 要生成的新标签对象
42
- * @return 此标签的唯一标识
43
- */
44
- export declare const getTagId: (props: any, prevItem: any, item: any) => {
45
- [x: number]: any;
46
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * 判断input输入对象是否为数字类型。
3
- * isNumber(369) // true
4
- * isNumber('') // false
5
- */
6
- export declare const isNumber: (value: any) => boolean;
@@ -1,31 +0,0 @@
1
- /**
2
- * 校验正常标签的值,并返回相应的新标签
3
- * @param instance searchbox 的 instance
4
- * @param state searchbox 的 state
5
- * @param props searchbox 的 props
6
- * @return 验证通过则返回新标签对象,否则返回null
7
- */
8
- export declare const getVerifyTag: (instance: any, state: any, props: any) => Promise<any>;
9
- /**
10
- * 校验 numRange 的值,并返回相应的新标签
11
- * @param instance searchbox 的 instance
12
- * @param state searchbox 的 state
13
- * @param props searchbox 的 props
14
- * @return 验证通过则返回新标签对象,否则返回null
15
- */
16
- export declare const getVerifyNumTag: (instance: any, state: any, props: any) => Promise<any>;
17
- /**
18
- * 校验 dateRange datetimeRange 的值,并返回相应的新标签
19
- * @param instance searchbox 的 instance
20
- * @param state searchbox 的 state
21
- * @param props searchbox 的 props
22
- * @param isDateTimeType 是否 datetimeRange
23
- * @return 验证通过则返回新标签对象,否则返回null
24
- */
25
- export declare const getVerifyDateTag: (instance: any, state: any, props: any, isDateTimeType: any) => Promise<any>;
26
- /**
27
- * 按需加载 state 里 numRange 类型的变量,按需加载校验规则
28
- * @param state searchbox 的 state
29
- * @param item 当前选择的 item 值
30
- */
31
- export declare const setStateNumRange: (state: any, item: any, t: any) => void;
@@ -1,43 +0,0 @@
1
- declare const _default: {
2
- tvp: {
3
- tvpSearchbox: {
4
- defaultPlaceholder: string;
5
- addPlaceholder: string;
6
- tagPlaceholder: string;
7
- dynamicPlaceholder: string;
8
- attributeType: string;
9
- propertyValue: string;
10
- matched: string;
11
- allValues: string;
12
- allProperty: string;
13
- operator: string;
14
- clearAll: string;
15
- emptyValue: string;
16
- help: string;
17
- switchText: string;
18
- tagKey: string;
19
- tagValue: string;
20
- minValueText: string;
21
- maxValueText: string;
22
- rangeMinErr: string;
23
- rangeMaxErr: string;
24
- rangeNumberTitle: string;
25
- rangeDateTitle: string;
26
- timeLengthTitle: string;
27
- rangeBeginLabel: string;
28
- rangeEndLabel: string;
29
- rulekeyword1: string;
30
- notBeNull: string;
31
- noData: string;
32
- selectAll: string;
33
- confirm: string;
34
- cancel: string;
35
- equal: string;
36
- notEqual: string;
37
- contain: string;
38
- notContain: string;
39
- initUse: string;
40
- };
41
- };
42
- };
43
- export default _default;
File without changes