@blueking/ediatable 0.0.1-beta.1

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 (38) hide show
  1. package/README.md +7 -0
  2. package/package.json +68 -0
  3. package/typings/components/date-time-picker.vue.d.ts +63 -0
  4. package/typings/components/db-icon/index.d.ts +23 -0
  5. package/typings/components/fixed-column.vue.d.ts +35 -0
  6. package/typings/components/head-column.vue.d.ts +52 -0
  7. package/typings/components/input.vue.d.ts +73 -0
  8. package/typings/components/operation.vue.d.ts +42 -0
  9. package/typings/components/select.vue.d.ts +65 -0
  10. package/typings/components/tag-input.vue.d.ts +60 -0
  11. package/typings/directives/index.d.ts +6 -0
  12. package/typings/directives/overflowTips.d.ts +13 -0
  13. package/typings/ediatable.vue.d.ts +18 -0
  14. package/typings/hooks/useColumnResize.d.ts +16 -0
  15. package/typings/hooks/useIsWidthOverflow.d.ts +4 -0
  16. package/typings/hooks/useValidtor.d.ts +10 -0
  17. package/typings/utils/cookie.d.ts +1 -0
  18. package/typings/utils/encode.d.ts +6 -0
  19. package/typings/utils/index.d.ts +3 -0
  20. package/typings/utils/random.d.ts +1 -0
  21. package/typings/utils/regex.d.ts +37 -0
  22. package/typings/utils/tippy.d.ts +6 -0
  23. package/typings/vue2.d.ts +18 -0
  24. package/typings/vue3.d.ts +12 -0
  25. package/vue2/config.json +1 -0
  26. package/vue2/index.es.min.js +49931 -0
  27. package/vue2/index.iife.min.js +60144 -0
  28. package/vue2/index.umd.min.js +53285 -0
  29. package/vue2/vue2.css +3326 -0
  30. package/vue2/vue22.css +1 -0
  31. package/vue2/vue23.css +1 -0
  32. package/vue3/config.json +1 -0
  33. package/vue3/index.es.min.js +9212 -0
  34. package/vue3/index.iife.min.js +53278 -0
  35. package/vue3/index.umd.min.js +9682 -0
  36. package/vue3/vue3.css +460 -0
  37. package/vue3/vue32.css +1 -0
  38. package/vue3/vue33.css +1 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ ### 支持 Vue2/Vue3 版本 无差别使用
2
+
3
+ #### 安装
4
+
5
+ ```bash
6
+ npm i @blueking/ediatable
7
+ ```
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@blueking/ediatable",
3
+ "version": "0.0.1-beta.1",
4
+ "description": "蓝鲸 Ediatable",
5
+ "license": "MIT",
6
+ "author": "Tencent BlueKing",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./typings/vue3.d.ts",
10
+ "import": "./vue3/index.es.min.js",
11
+ "default": "./vue3/index.es.min.js"
12
+ },
13
+ "./vue3": {
14
+ "types": "./typings/vue3.d.ts",
15
+ "import": "./vue3/index.es.min.js",
16
+ "default": "./vue3/index.es.min.js"
17
+ },
18
+ "./vue2": {
19
+ "types": "./typings/vue2.d.ts",
20
+ "import": "./vue2/index.es.min.js",
21
+ "default": "./vue2/index.es.min.js"
22
+ },
23
+ "./vue3/*": "./vue3/*",
24
+ "./vue2/*": "./vue2/*"
25
+ },
26
+ "typesVersions": {
27
+ "*": {
28
+ ".": [
29
+ "./typings/vue3.d.ts"
30
+ ],
31
+ "vue3": [
32
+ "./typings/vue3.d.ts"
33
+ ],
34
+ "vue2": [
35
+ "./typings/vue2.d.ts"
36
+ ]
37
+ }
38
+ },
39
+ "types": "./typings/vue3.d.ts",
40
+ "module": "./vue3/index.es.min.js",
41
+ "unpkg": "./vue3/index.es.min.js",
42
+ "files": [
43
+ "vue2",
44
+ "vue3",
45
+ "typings"
46
+ ],
47
+ "publishConfig": {
48
+ "access": "public",
49
+ "registry": "https://registry.npmjs.org/"
50
+ },
51
+ "peerDependencies": {
52
+ "vue": "^3"
53
+ },
54
+ "engines": {
55
+ "node": ">=18.16.0"
56
+ },
57
+ "dependencies": {
58
+ "@vueuse/core": "10.9.0",
59
+ "vue-i18n": "9.6.5"
60
+ },
61
+ "scripts": {
62
+ "dev": "vite --mode development -c scripts/vite.dev.ts",
63
+ "build": "tsx ./scripts/vite.build.ts",
64
+ "dts": "vue-tsc --project tsconfig.dts.json",
65
+ "prettier": "prettier ./src ./scripts ./playground --write",
66
+ "visualize": "vite-bundle-visualizer -c scripts/vite.vusualizer.ts"
67
+ }
68
+ }
@@ -0,0 +1,63 @@
1
+ import { type Rules } from '../hooks/useValidtor';
2
+ interface Props {
3
+ placeholder?: string;
4
+ rules?: Rules;
5
+ type?: any;
6
+ disabled?: boolean;
7
+ }
8
+ interface Slots {
9
+ footer(): any;
10
+ }
11
+ type ValueType = [string, string] | string;
12
+ declare let __VLS_typeProps: Props;
13
+ type __VLS_PublicProps = {
14
+ modelValue?: ValueType;
15
+ } & typeof __VLS_typeProps;
16
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
17
+ placeholder: string;
18
+ rules: undefined;
19
+ type: undefined;
20
+ disabled: boolean;
21
+ }>, {
22
+ getValue: () => Promise<ValueType>;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:modelValue": (modelValue: ValueType) => void;
25
+ change: (value: any) => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
27
+ placeholder: string;
28
+ rules: undefined;
29
+ type: undefined;
30
+ disabled: boolean;
31
+ }>>> & {
32
+ onChange?: ((value: any) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((modelValue: ValueType) => any) | undefined;
34
+ }, {
35
+ type: any;
36
+ placeholder: string;
37
+ rules: Rules;
38
+ disabled: boolean;
39
+ }, {}>, Readonly<Slots> & Slots>;
40
+ export default _default;
41
+
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
+ type __VLS_TypePropsToOption<T> = {
57
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
58
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
+ } : {
60
+ type: import('vue').PropType<T[K]>;
61
+ required: true;
62
+ };
63
+ };
@@ -0,0 +1,23 @@
1
+ import './style.css';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ type: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ svg: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ type: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ svg: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ }>>, {
21
+ svg: boolean;
22
+ }, {}>;
23
+ export default _default;
@@ -0,0 +1,35 @@
1
+ interface Props {
2
+ fixed?: 'right' | 'left';
3
+ }
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
5
+ fixed: string;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
7
+ fixed: string;
8
+ }>>>, {
9
+ fixed: "right" | "left";
10
+ }, {}>, {
11
+ default?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithDefaults<P, D> = {
15
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
16
+ default: D[K];
17
+ }> : P[K];
18
+ };
19
+ type __VLS_Prettify<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
@@ -0,0 +1,52 @@
1
+ interface Props {
2
+ width?: number;
3
+ required?: boolean;
4
+ minWidth?: number;
5
+ maxWidth?: number;
6
+ fixed?: 'right' | 'left';
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
9
+ width: undefined;
10
+ required: boolean;
11
+ minWidth: undefined;
12
+ maxWidth: undefined;
13
+ fixed: undefined;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
15
+ width: undefined;
16
+ required: boolean;
17
+ minWidth: undefined;
18
+ maxWidth: undefined;
19
+ fixed: undefined;
20
+ }>>>, {
21
+ minWidth: number;
22
+ width: number;
23
+ required: boolean;
24
+ fixed: "right" | "left";
25
+ maxWidth: number;
26
+ }, {}>, {
27
+ default?(_: {}): any;
28
+ append?(_: {}): any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToOption<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
@@ -0,0 +1,73 @@
1
+ import { type Rules } from '../hooks/useValidtor';
2
+ interface Props {
3
+ placeholder?: string;
4
+ rules?: Rules;
5
+ disabled?: boolean;
6
+ type?: string;
7
+ min?: number;
8
+ max?: number;
9
+ isShowBlur?: boolean;
10
+ }
11
+ declare let __VLS_typeProps: Props;
12
+ type __VLS_PublicProps = {
13
+ modelValue?: string | number;
14
+ } & typeof __VLS_typeProps;
15
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
16
+ placeholder: string;
17
+ rules: undefined;
18
+ disabled: boolean;
19
+ type: string;
20
+ min: number;
21
+ max: number;
22
+ isShowBlur: boolean;
23
+ }>, {
24
+ getValue: () => Promise<string | number>;
25
+ focus: () => void;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (modelValue: string | number) => void;
28
+ submit: (value: string | number) => void;
29
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
30
+ placeholder: string;
31
+ rules: undefined;
32
+ disabled: boolean;
33
+ type: string;
34
+ min: number;
35
+ max: number;
36
+ isShowBlur: boolean;
37
+ }>>> & {
38
+ onSubmit?: ((value: string | number) => any) | undefined;
39
+ "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
40
+ }, {
41
+ type: string;
42
+ placeholder: string;
43
+ rules: Rules;
44
+ disabled: boolean;
45
+ min: number;
46
+ max: number;
47
+ isShowBlur: boolean;
48
+ }, {}>, {
49
+ blur?(_: {}): any;
50
+ }>;
51
+ export default _default;
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
65
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
+ type __VLS_TypePropsToOption<T> = {
67
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
68
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
+ } : {
70
+ type: import('vue').PropType<T[K]>;
71
+ required: true;
72
+ };
73
+ };
@@ -0,0 +1,42 @@
1
+ interface Props {
2
+ showAdd?: boolean;
3
+ showRemove?: boolean;
4
+ removeable?: boolean;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
7
+ showAdd: boolean;
8
+ showRemove: boolean;
9
+ removeable: boolean;
10
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ add: () => void;
12
+ remove: () => void;
13
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
14
+ showAdd: boolean;
15
+ showRemove: boolean;
16
+ removeable: boolean;
17
+ }>>> & {
18
+ onAdd?: (() => any) | undefined;
19
+ onRemove?: (() => any) | undefined;
20
+ }, {
21
+ showAdd: boolean;
22
+ showRemove: boolean;
23
+ removeable: boolean;
24
+ }, {}>;
25
+ export default _default;
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToOption<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: import('vue').PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
@@ -0,0 +1,65 @@
1
+ import { type Rules } from '../hooks/useValidtor';
2
+ type IKey = string | number | string[];
3
+ export interface IListItem {
4
+ value: IKey;
5
+ label: string;
6
+ }
7
+ interface Props {
8
+ list: Array<IListItem>;
9
+ placeholder?: string;
10
+ rules?: Rules;
11
+ disabled?: boolean;
12
+ multiple?: boolean;
13
+ showSelectAll?: boolean;
14
+ }
15
+ declare let __VLS_typeProps: Props;
16
+ type __VLS_PublicProps = {
17
+ modelValue?: IKey;
18
+ } & typeof __VLS_typeProps;
19
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
20
+ placeholder: string;
21
+ textarea: boolean;
22
+ rules: () => never[];
23
+ disabled: boolean;
24
+ multiple: boolean;
25
+ showSelectAll: boolean;
26
+ }>, {
27
+ getValue: () => Promise<IKey>;
28
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ "update:modelValue": (modelValue: IKey) => void;
30
+ change: (value: IKey) => void;
31
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
32
+ placeholder: string;
33
+ textarea: boolean;
34
+ rules: () => never[];
35
+ disabled: boolean;
36
+ multiple: boolean;
37
+ showSelectAll: boolean;
38
+ }>>> & {
39
+ onChange?: ((value: IKey) => any) | undefined;
40
+ "onUpdate:modelValue"?: ((modelValue: IKey) => any) | undefined;
41
+ }, {
42
+ placeholder: string;
43
+ rules: Rules;
44
+ disabled: boolean;
45
+ multiple: boolean;
46
+ showSelectAll: boolean;
47
+ }, {}>;
48
+ export default _default;
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToOption<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
@@ -0,0 +1,60 @@
1
+ import { type Rules } from '../hooks/useValidtor';
2
+ interface Props {
3
+ placeholder?: string;
4
+ single?: boolean;
5
+ rules?: Rules;
6
+ showTip?: boolean;
7
+ }
8
+ declare let __VLS_typeProps: Props;
9
+ type __VLS_PublicProps = {
10
+ modelValue?: string[];
11
+ } & typeof __VLS_typeProps;
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
13
+ placeholder: string;
14
+ single: boolean;
15
+ rules: undefined;
16
+ showTip: boolean;
17
+ }>, {
18
+ getValue: () => Promise<string[] | undefined>;
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ "update:modelValue": (modelValue: string[]) => void;
21
+ change: (value: string[]) => void;
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
23
+ placeholder: string;
24
+ single: boolean;
25
+ rules: undefined;
26
+ showTip: boolean;
27
+ }>>> & {
28
+ onChange?: ((value: string[]) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((modelValue: string[]) => any) | undefined;
30
+ }, {
31
+ placeholder: string;
32
+ rules: Rules;
33
+ single: boolean;
34
+ showTip: boolean;
35
+ }, {}>, {
36
+ tip?(_: {}): any;
37
+ }>;
38
+ export default _default;
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
52
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
+ type __VLS_TypePropsToOption<T> = {
54
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
55
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
+ } : {
57
+ type: import('vue').PropType<T[K]>;
58
+ required: true;
59
+ };
60
+ };
@@ -0,0 +1,6 @@
1
+ import type { App } from 'vue';
2
+ /**
3
+ * 设置全局指令
4
+ * @param app vue app
5
+ */
6
+ export declare const setGlobalDirectives: (app: App<Element>) => void;
@@ -0,0 +1,13 @@
1
+ import type { DirectiveBinding } from 'vue';
2
+ /**
3
+ * 判断元素是否溢出容器
4
+ * @param {*} el
5
+ * @returns
6
+ */
7
+ export declare function checkOverflow(el: Element): boolean;
8
+ declare const overflowTips: {
9
+ mounted(el: Element, binding: DirectiveBinding): void;
10
+ updated(el: Element, binding: DirectiveBinding): void;
11
+ beforeUnmount(el: Element): void;
12
+ };
13
+ export default overflowTips;
@@ -0,0 +1,18 @@
1
+ import './lib/bk-icon/iconcool.js';
2
+ import './lib/bk-icon/style.css';
3
+ import 'bkui-vue/dist/style.css';
4
+ import type { InjectionKey, Ref } from 'vue';
5
+ export declare const renderTablekey: InjectionKey<{
6
+ isOverflow: Ref<boolean>;
7
+ rowWidth: Ref<number>;
8
+ }>;
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
10
+ default?(_: {}): any;
11
+ data?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,16 @@
1
+ import { type InjectionKey, type Ref } from 'vue';
2
+ export declare const tableColumnResizekey: InjectionKey<{
3
+ columnMousedown: (event: MouseEvent, payload: {
4
+ columnKey: string;
5
+ minWidth: number;
6
+ }) => void;
7
+ columnMouseMove: (event: MouseEvent) => void;
8
+ }>;
9
+ export default function (tableRef: Ref<Element>, tableColumnResizeRef: Ref<HTMLElement>, mouseupCallback: () => void): {
10
+ initColumnWidth: () => void;
11
+ handleMouseDown: (event: MouseEvent, payload: {
12
+ columnKey: string;
13
+ minWidth: number;
14
+ }) => void;
15
+ handleMouseMove: (event: MouseEvent) => void;
16
+ };
@@ -0,0 +1,4 @@
1
+ import { type Ref, type ComputedRef } from 'vue';
2
+ export declare function useIsWidthOverflow<T extends Ref<any> | ComputedRef<any>>(domRef: Ref<HTMLElement>, watchVariable: T): {
3
+ isOverflow: Ref<boolean>;
4
+ };
@@ -0,0 +1,10 @@
1
+ export type Rules = Array<{
2
+ validator: (value: any) => boolean | Promise<boolean>;
3
+ message: string | (() => string);
4
+ }>;
5
+ export default function (rules: Rules | undefined): {
6
+ validator: (targetValue: any) => Promise<boolean>;
7
+ loading: import("vue").Ref<boolean>;
8
+ error: import("vue").Ref<boolean>;
9
+ message: import("vue").Ref<string>;
10
+ };
@@ -0,0 +1 @@
1
+ export declare const getCookieByName: (name: string) => string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @desc 多行文本处理
3
+ * @param { String } text
4
+ * @returns { String }
5
+ */
6
+ export declare const encodeMult: (text: string) => string;
@@ -0,0 +1,3 @@
1
+ export * from './cookie';
2
+ export * from './random';
3
+ export * from './encode';
@@ -0,0 +1 @@
1
+ export declare const random: () => string;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * 以小写英文字符开头,且只能包含英文字母、数字、连字符-
3
+ */
4
+ export declare const nameRegx: RegExp;
5
+ /**
6
+ * ipv4 正则
7
+ */
8
+ export declare const ipv4: RegExp;
9
+ /**
10
+ * ipv6 正则
11
+ */
12
+ export declare const ipv6: RegExp;
13
+ /**
14
+ * ip:port 正则
15
+ */
16
+ export declare const ipPort: RegExp;
17
+ /**
18
+ * 正整数 正则
19
+ */
20
+ export declare const integerRegx: RegExp;
21
+ export declare const domainRegex: RegExp;
22
+ /**
23
+ * 域名:port 正则
24
+ */
25
+ export declare const domainPort: RegExp;
26
+ /**
27
+ * 管控区域:IP
28
+ */
29
+ export declare const netIp: RegExp;
30
+ /**
31
+ * 数据库/表名称限制正则
32
+ */
33
+ export declare const dbRegex: RegExp;
34
+ /**
35
+ * 批量搜索分隔符,支持 中英竖线、中英逗号、中英分号、顿号、制表符、换行符、斜线
36
+ */
37
+ export declare const batchSplitRegex: RegExp;
@@ -0,0 +1,6 @@
1
+ import { type Instance, type MultipleTargets, type Props, type SingleTarget } from 'tippy.js';
2
+ /**
3
+ * tippy
4
+ */
5
+ export declare function dbTippy(targets: MultipleTargets, optionalProps?: Partial<Props>): Instance[];
6
+ export declare function dbTippy(targets: SingleTarget, optionalProps?: Partial<Props>): Instance;
@@ -0,0 +1,18 @@
1
+ import DateTimePickerColumn from './components/date-time-picker.vue';
2
+ import InputColumn from './components/input.vue';
3
+ import FixedColumn from './components/fixed-column.vue';
4
+ import HeadColumn from './components/head-column.vue';
5
+ import OperationColumn from './components/operation.vue';
6
+ import SelectColumn from './components/select.vue';
7
+ import TagInputColumn from './components/tag-input.vue';
8
+ import TextPlainColumn from './components/text-plain.vue';
9
+ export * from './hooks/useValidtor';
10
+ export { DateTimePickerColumn, InputColumn, FixedColumn, HeadColumn, OperationColumn, SelectColumn, TagInputColumn, TextPlainColumn, };
11
+ declare const _default: {
12
+ name: string;
13
+ created(): void;
14
+ mounted(): void;
15
+ beforeDestroy(): void;
16
+ render(createElement: any): any;
17
+ };
18
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import Ediatable from './ediatable.vue';
2
+ import DateTimePickerColumn from './components/date-time-picker.vue';
3
+ import InputColumn from './components/input.vue';
4
+ import FixedColumn from './components/fixed-column.vue';
5
+ import HeadColumn from './components/head-column.vue';
6
+ import OperationColumn from './components/operation.vue';
7
+ import SelectColumn from './components/select.vue';
8
+ import TagInputColumn from './components/tag-input.vue';
9
+ import TextPlainColumn from './components/text-plain.vue';
10
+ export * from './hooks/useValidtor';
11
+ export { Ediatable, DateTimePickerColumn, InputColumn, FixedColumn, HeadColumn, OperationColumn, SelectColumn, TagInputColumn, TextPlainColumn, };
12
+ export default Ediatable;
@@ -0,0 +1 @@
1
+ {"type":"blueking-ediatable","name":"blueking-ediatable","displayName":"蓝鲸作业平台 ediatable 组件","framework":"vue2"}