yuyeon 0.0.4 → 0.0.6

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 (43) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.mjs +1239 -969
  3. package/dist/yuyeon.umd.js +1 -1
  4. package/lib/components/button/YButton.mjs +8 -5
  5. package/lib/components/button/YButton.mjs.map +1 -1
  6. package/lib/components/button/YButton.scss +117 -117
  7. package/lib/components/dialog/YDialog.mjs +4 -0
  8. package/lib/components/dialog/YDialog.mjs.map +1 -1
  9. package/lib/components/icons/YIconPageControl.mjs +32 -0
  10. package/lib/components/icons/YIconPageControl.mjs.map +1 -0
  11. package/lib/components/menu/YMenu.mjs +7 -9
  12. package/lib/components/menu/YMenu.mjs.map +1 -1
  13. package/lib/components/pagination/YPagination.mjs +202 -8
  14. package/lib/components/pagination/YPagination.mjs.map +1 -1
  15. package/lib/components/pagination/YPagination.scss +37 -0
  16. package/lib/components/table/YDataTable.mjs +16 -2
  17. package/lib/components/table/YDataTable.mjs.map +1 -1
  18. package/lib/components/table/YDataTableBody.mjs +11 -3
  19. package/lib/components/table/YDataTableBody.mjs.map +1 -1
  20. package/lib/components/table/YDataTableHead.mjs +11 -3
  21. package/lib/components/table/YDataTableHead.mjs.map +1 -1
  22. package/lib/components/table/YDataTableServer.mjs +8 -1
  23. package/lib/components/table/YDataTableServer.mjs.map +1 -1
  24. package/lib/components/tooltip/YTooltip.mjs +8 -10
  25. package/lib/components/tooltip/YTooltip.mjs.map +1 -1
  26. package/lib/composables/ref.mjs +13 -0
  27. package/lib/composables/ref.mjs.map +1 -0
  28. package/lib/util/common.mjs +6 -0
  29. package/lib/util/common.mjs.map +1 -1
  30. package/package.json +1 -1
  31. package/types/components/button/YButton.d.ts +1 -0
  32. package/types/components/dialog/YDialog.d.ts +9 -1
  33. package/types/components/icons/YIconPageControl.d.ts +20 -0
  34. package/types/components/menu/YMenu.d.ts +1 -1
  35. package/types/components/pagination/YPagination.d.ts +43 -10
  36. package/types/components/table/YDataTable.d.ts +14 -2
  37. package/types/components/table/YDataTableBody.d.ts +9 -1
  38. package/types/components/table/YDataTableHead.d.ts +9 -1
  39. package/types/components/table/YDataTableServer.d.ts +15 -0
  40. package/types/components/tooltip/YTooltip.d.ts +1 -1
  41. package/types/composables/ref.d.ts +5 -0
  42. package/types/util/common.d.ts +1 -0
  43. package/types/vite-env.d.ts +0 -1
@@ -0,0 +1,13 @@
1
+ import { onBeforeUpdate, ref } from "vue";
2
+ export function useRefs() {
3
+ const refs = ref([]);
4
+ onBeforeUpdate(() => refs.value = []);
5
+ function updateRef(e, i) {
6
+ refs.value[i] = e;
7
+ }
8
+ return {
9
+ refs,
10
+ updateRef
11
+ };
12
+ }
13
+ //# sourceMappingURL=ref.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ref.mjs","names":["onBeforeUpdate","ref","useRefs","refs","value","updateRef","e","i"],"sources":["../../src/composables/ref.ts"],"sourcesContent":["import { onBeforeUpdate, Ref, ref } from \"vue\";\r\n\r\nexport function useRefs <T extends {}> () {\r\n const refs = ref<(T | undefined)[]>([]) as Ref<(T | undefined)[]>\r\n\r\n onBeforeUpdate(() => (refs.value = []))\r\n\r\n function updateRef (e: any, i: number) {\r\n refs.value[i] = e\r\n }\r\n\r\n return { refs, updateRef }\r\n}\r\n"],"mappings":"AAAA,SAASA,cAAc,EAAOC,GAAG,QAAQ,KAAK;AAE9C,OAAO,SAASC,OAAOA,CAAA,EAAmB;EACxC,MAAMC,IAAI,GAAGF,GAAG,CAAoB,EAAE,CAA2B;EAEjED,cAAc,CAAC,MAAOG,IAAI,CAACC,KAAK,GAAG,EAAG,CAAC;EAEvC,SAASC,SAASA,CAAEC,CAAM,EAAEC,CAAS,EAAE;IACrCJ,IAAI,CAACC,KAAK,CAACG,CAAC,CAAC,GAAGD,CAAC;EACnB;EAEA,OAAO;IAAEH,IAAI;IAAEE;EAAU,CAAC;AAC5B"}
@@ -63,4 +63,10 @@ export function clamp(value) {
63
63
  let max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
64
64
  return Math.max(min, Math.min(max, value));
65
65
  }
66
+ export function getRangeArr(length) {
67
+ let start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
68
+ return Array.from({
69
+ length
70
+ }, (v, k) => start + k);
71
+ }
66
72
  //# sourceMappingURL=common.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.mjs","names":["hasOwnProperty","object","property","Object","prototype","call","getNestedValue","obj","path","fallback","last","length","traversObj","undefined","i","mergeDeep","source","arguments","overwrite","arrayFn","ret","key","sourceValue","overwriteValue","Array","isArray","getObjectValueByPath","traversPath","replace","split","randomCharOne","str","charAt","Math","floor","random","clamp","value","min","max"],"sources":["../../src/util/common.ts"],"sourcesContent":["export function hasOwnProperty(object: any, property: string) {\r\n if (object) {\r\n return Object.prototype.hasOwnProperty.call(object, property);\r\n }\r\n return false;\r\n}\r\n\r\nexport function getNestedValue(\r\n obj: any,\r\n path: (string | number)[],\r\n fallback?: any,\r\n): any {\r\n const last = path.length - 1;\r\n let traversObj = obj;\r\n\r\n if (last < 0) return traversObj === undefined ? fallback : traversObj;\r\n\r\n for (let i = 0; i < last; i += 1) {\r\n if (traversObj == null) {\r\n return fallback;\r\n }\r\n traversObj = traversObj[path[i]];\r\n }\r\n\r\n if (traversObj == null) return fallback;\r\n\r\n return traversObj[path[last]] === undefined\r\n ? fallback\r\n : traversObj[path[last]];\r\n}\r\n\r\nexport function mergeDeep(source: Record<string, any> = {}, overwrite: Record<string, any> = {}, arrayFn?: (source: unknown[], overwrite: unknown[]) => unknown[]) {\r\n const ret = {...source};\r\n for (const key in overwrite) {\r\n const sourceValue = ret[key];\r\n const overwriteValue = overwrite[key];\r\n\r\n if (Array.isArray(sourceValue) && Array.isArray(overwriteValue)) {\r\n if (arrayFn) {\r\n ret[key] = arrayFn(sourceValue, overwriteValue);\r\n continue;\r\n }\r\n }\r\n\r\n if (typeof sourceValue === 'object' && typeof overwriteValue === 'object') {\r\n ret[key] = mergeDeep(sourceValue, overwriteValue, arrayFn);\r\n continue;\r\n }\r\n\r\n ret[key] = overwriteValue;\r\n }\r\n return ret;\r\n}\r\n\r\nexport function getObjectValueByPath(\r\n obj: any,\r\n path: string,\r\n fallback?: any,\r\n): any {\r\n // credit: http://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key#comment55278413_6491621\r\n let traversPath = path;\r\n if (obj == null || !traversPath || typeof traversPath !== 'string') {\r\n return fallback;\r\n }\r\n if (obj[traversPath] !== undefined) return obj[traversPath];\r\n traversPath = traversPath.replace(/\\[(\\w+)\\]/g, '.$1'); // convert indexes to properties\r\n traversPath = traversPath.replace(/^\\./, ''); // strip a leading dot\r\n return getNestedValue(obj, traversPath.split('.'), fallback);\r\n}\r\n\r\nexport function randomCharOne(str: string) {\r\n if (str) {\r\n return str.charAt(Math.floor(Math.random() * str.length));\r\n }\r\n return '';\r\n}\r\n\r\nexport function clamp (value: number, min = 0, max = 1) {\r\n return Math.max(min, Math.min(max, value))\r\n}\r\n"],"mappings":"AAAA,OAAO,SAASA,cAAcA,CAACC,MAAW,EAAEC,QAAgB,EAAE;EAC5D,IAAID,MAAM,EAAE;IACV,OAAOE,MAAM,CAACC,SAAS,CAACJ,cAAc,CAACK,IAAI,CAACJ,MAAM,EAAEC,QAAQ,CAAC;EAC/D;EACA,OAAO,KAAK;AACd;AAEA,OAAO,SAASI,cAAcA,CAC5BC,GAAQ,EACRC,IAAyB,EACzBC,QAAc,EACT;EACL,MAAMC,IAAI,GAAGF,IAAI,CAACG,MAAM,GAAG,CAAC;EAC5B,IAAIC,UAAU,GAAGL,GAAG;EAEpB,IAAIG,IAAI,GAAG,CAAC,EAAE,OAAOE,UAAU,KAAKC,SAAS,GAAGJ,QAAQ,GAAGG,UAAU;EAErE,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,EAAEI,CAAC,IAAI,C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,CAACC,GAAG,EAAEF,KAAK,CAAC,CAAC;AAC5C"}
1
+ {"version":3,"file":"common.mjs","names":["hasOwnProperty","object","property","Object","prototype","call","getNestedValue","obj","path","fallback","last","length","traversObj","undefined","i","mergeDeep","source","arguments","overwrite","arrayFn","ret","key","sourceValue","overwriteValue","Array","isArray","getObjectValueByPath","traversPath","replace","split","randomCharOne","str","charAt","Math","floor","random","clamp","value","min","max","getRangeArr","start","from","v","k"],"sources":["../../src/util/common.ts"],"sourcesContent":["export function hasOwnProperty(object: any, property: string) {\r\n if (object) {\r\n return Object.prototype.hasOwnProperty.call(object, property);\r\n }\r\n return false;\r\n}\r\n\r\nexport function getNestedValue(\r\n obj: any,\r\n path: (string | number)[],\r\n fallback?: any,\r\n): any {\r\n const last = path.length - 1;\r\n let traversObj = obj;\r\n\r\n if (last < 0) return traversObj === undefined ? fallback : traversObj;\r\n\r\n for (let i = 0; i < last; i += 1) {\r\n if (traversObj == null) {\r\n return fallback;\r\n }\r\n traversObj = traversObj[path[i]];\r\n }\r\n\r\n if (traversObj == null) return fallback;\r\n\r\n return traversObj[path[last]] === undefined\r\n ? fallback\r\n : traversObj[path[last]];\r\n}\r\n\r\nexport function mergeDeep(source: Record<string, any> = {}, overwrite: Record<string, any> = {}, arrayFn?: (source: unknown[], overwrite: unknown[]) => unknown[]) {\r\n const ret = {...source};\r\n for (const key in overwrite) {\r\n const sourceValue = ret[key];\r\n const overwriteValue = overwrite[key];\r\n\r\n if (Array.isArray(sourceValue) && Array.isArray(overwriteValue)) {\r\n if (arrayFn) {\r\n ret[key] = arrayFn(sourceValue, overwriteValue);\r\n continue;\r\n }\r\n }\r\n\r\n if (typeof sourceValue === 'object' && typeof overwriteValue === 'object') {\r\n ret[key] = mergeDeep(sourceValue, overwriteValue, arrayFn);\r\n continue;\r\n }\r\n\r\n ret[key] = overwriteValue;\r\n }\r\n return ret;\r\n}\r\n\r\nexport function getObjectValueByPath(\r\n obj: any,\r\n path: string,\r\n fallback?: any,\r\n): any {\r\n // credit: http://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key#comment55278413_6491621\r\n let traversPath = path;\r\n if (obj == null || !traversPath || typeof traversPath !== 'string') {\r\n return fallback;\r\n }\r\n if (obj[traversPath] !== undefined) return obj[traversPath];\r\n traversPath = traversPath.replace(/\\[(\\w+)\\]/g, '.$1'); // convert indexes to properties\r\n traversPath = traversPath.replace(/^\\./, ''); // strip a leading dot\r\n return getNestedValue(obj, traversPath.split('.'), fallback);\r\n}\r\n\r\nexport function randomCharOne(str: string) {\r\n if (str) {\r\n return str.charAt(Math.floor(Math.random() * str.length));\r\n }\r\n return '';\r\n}\r\n\r\nexport function clamp (value: number, min = 0, max = 1) {\r\n return Math.max(min, Math.min(max, value))\r\n}\r\n\r\nexport function getRangeArr(length: number, start = 0) {\r\n return Array.from({ length }, (v, k) => start + k);\r\n}\r\n"],"mappings":"AAAA,OAAO,SAASA,cAAcA,CAACC,MAAW,EAAEC,QAAgB,EAAE;EAC5D,IAAID,MAAM,EAAE;IACV,OAAOE,MAAM,CAACC,SAAS,CAACJ,cAAc,CAACK,IAAI,CAACJ,MAAM,EAAEC,QAAQ,CAAC;EAC/D;EACA,OAAO,KAAK;AACd;AAEA,OAAO,SAASI,cAAcA,CAC5BC,GAAQ,EACRC,IAAyB,EACzBC,QAAc,EACT;EACL,MAAMC,IAAI,GAAGF,IAAI,CAACG,MAAM,GAAG,CAAC;EAC5B,IAAIC,UAAU,GAAGL,GAAG;EAEpB,IAAIG,IAAI,GAAG,CAAC,EAAE,OAAOE,UAAU,KAAKC,SAAS,GAAGJ,QAAQ,GAAGG,UAAU;EAErE,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,EAAEI,CAAC,IAAI,CAAC,EAAE;IAChC,IAAIF,UAAU,IAAI,IAAI,EAAE;MACtB,OAAOH,QAAQ;IACjB;IACAG,UAAU,GAAGA,UAAU,CAACJ,IAAI,CAACM,CAAC,CAAC,CAAC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AA,QAAAM,SAAA,QAAAJ,SAAA,GAAAI,SAAA,MAAG,CAAC;EACnD,OAAOO,KAAK,CAACkB,IAAI,CAAC;IAAE/B;EAAO,CAAC,EAAE,CAACgC,CAAC,EAAEC,CAAC,KAAKH,KAAK,GAAGG,CAAC,CAAC;AACpD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuyeon",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "files": [
5
5
  "dist",
6
6
  "lib",
@@ -68,6 +68,7 @@ export declare const YButton: import("vue").DefineComponent<{
68
68
  variations(): any[];
69
69
  small(): boolean;
70
70
  icon(): boolean;
71
+ variOutlined(): boolean;
71
72
  classes(): {
72
73
  [x: string]: string | boolean | undefined;
73
74
  };
@@ -6,6 +6,9 @@ export declare const YDialog: import("vue").DefineComponent<{
6
6
  dialogClasses: {
7
7
  type: PropType<string | string[] | Record<string, any>>;
8
8
  };
9
+ persistent: {
10
+ type: BooleanConstructor;
11
+ };
9
12
  }, {
10
13
  active: import("vue").WritableComputedRef<boolean>;
11
14
  layer: import("vue").Ref<import("vue").DefineComponent<{
@@ -115,6 +118,11 @@ export declare const YDialog: import("vue").DefineComponent<{
115
118
  dialogClasses: {
116
119
  type: PropType<string | string[] | Record<string, any>>;
117
120
  };
121
+ persistent: {
122
+ type: BooleanConstructor;
123
+ };
118
124
  }>> & {
119
125
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
120
- }, {}, {}>;
126
+ }, {
127
+ persistent: boolean;
128
+ }, {}>;
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ export declare const PageControlPaths: {
3
+ next: string;
4
+ prev: string;
5
+ last: string;
6
+ first: string;
7
+ };
8
+ export declare const YIconPageControl: import("vue").DefineComponent<{
9
+ type: {
10
+ type: PropType<"first" | "last" | "next" | "prev">;
11
+ default: string;
12
+ };
13
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ type: {
15
+ type: PropType<"first" | "last" | "next" | "prev">;
16
+ default: string;
17
+ };
18
+ }>>, {
19
+ type: "first" | "last" | "next" | "prev";
20
+ }, {}>;
@@ -179,7 +179,7 @@ export declare const YMenu: import("vue").DefineComponent<{
179
179
  baseEl: import("vue").Ref<HTMLElement | undefined>;
180
180
  coordinatesStyles: import("vue").ComputedRef<CSSProperties>;
181
181
  baseSlot: import("vue").Ref<any>;
182
- } | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
182
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
183
183
  transition: {
184
184
  default: string;
185
185
  type: PropType<string | (import("vue").TransitionProps & {
@@ -1,3 +1,4 @@
1
+ import { ComponentPublicInstance } from 'vue';
1
2
  export declare const pressYPaginationProps: <Defaults extends {
2
3
  start?: unknown;
3
4
  modelValue?: unknown;
@@ -5,6 +6,9 @@ export declare const pressYPaginationProps: <Defaults extends {
5
6
  length?: unknown;
6
7
  totalVisible?: unknown;
7
8
  showEndButton?: unknown;
9
+ gap?: unknown;
10
+ color?: unknown;
11
+ activeColor?: unknown;
8
12
  } = {}>(defaults?: Defaults | undefined) => {
9
13
  start: unknown extends Defaults["start"] ? {
10
14
  type: (StringConstructor | NumberConstructor)[];
@@ -50,6 +54,24 @@ export declare const pressYPaginationProps: <Defaults extends {
50
54
  type: import("vue").PropType<unknown extends Defaults ? "showEndButton" : "showEndButton" | Defaults>;
51
55
  default: unknown extends Defaults["showEndButton"] ? boolean : boolean | Defaults["showEndButton"];
52
56
  };
57
+ gap: unknown extends Defaults["gap"] ? {
58
+ type: (StringConstructor | NumberConstructor)[];
59
+ default: number;
60
+ } : Omit<{
61
+ type: (StringConstructor | NumberConstructor)[];
62
+ default: number;
63
+ }, "default" | "type"> & {
64
+ type: import("vue").PropType<unknown extends Defaults["gap"] ? string | number : NonNullable<string | number> | Defaults["gap"]>;
65
+ default: unknown extends Defaults["gap"] ? string | number : NonNullable<string | number> | Defaults["gap"];
66
+ };
67
+ color: unknown extends Defaults["color"] ? StringConstructor : {
68
+ type: import("vue").PropType<unknown extends Defaults ? "color" : "color" | Defaults>;
69
+ default: unknown extends Defaults["color"] ? string : string | Defaults["color"];
70
+ };
71
+ activeColor: unknown extends Defaults["activeColor"] ? StringConstructor : {
72
+ type: import("vue").PropType<unknown extends Defaults ? "activeColor" : "activeColor" | Defaults>;
73
+ default: unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"];
74
+ };
53
75
  };
54
76
  export declare const YPagination: import("vue").DefineComponent<{
55
77
  start: {
@@ -68,12 +90,19 @@ export declare const YPagination: import("vue").DefineComponent<{
68
90
  };
69
91
  totalVisible: (StringConstructor | NumberConstructor)[];
70
92
  showEndButton: BooleanConstructor;
71
- }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
72
- 'update:modelValue': (value: number) => boolean;
73
- first: (value: number) => boolean;
74
- last: (value: number) => boolean;
75
- prev: (value: number) => boolean;
76
- next: (value: number) => boolean;
93
+ gap: {
94
+ type: (StringConstructor | NumberConstructor)[];
95
+ default: number;
96
+ };
97
+ color: StringConstructor;
98
+ activeColor: StringConstructor;
99
+ }, {
100
+ itemCount: import("vue").ShallowRef<number>;
101
+ page: import("vue").WritableComputedRef<any>;
102
+ refs: import("vue").Ref<(ComponentPublicInstance | undefined)[]>;
103
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
104
+ 'update:modelValue': (value: number) => true;
105
+ change: (value: number, control?: string) => true;
77
106
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
107
  start: {
79
108
  type: (StringConstructor | NumberConstructor)[];
@@ -91,16 +120,20 @@ export declare const YPagination: import("vue").DefineComponent<{
91
120
  };
92
121
  totalVisible: (StringConstructor | NumberConstructor)[];
93
122
  showEndButton: BooleanConstructor;
123
+ gap: {
124
+ type: (StringConstructor | NumberConstructor)[];
125
+ default: number;
126
+ };
127
+ color: StringConstructor;
128
+ activeColor: StringConstructor;
94
129
  }>> & {
95
130
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
96
- onFirst?: ((value: number) => any) | undefined;
97
- onLast?: ((value: number) => any) | undefined;
98
- onPrev?: ((value: number) => any) | undefined;
99
- onNext?: ((value: number) => any) | undefined;
131
+ onChange?: ((value: number, control?: string | undefined) => any) | undefined;
100
132
  }, {
101
133
  length: string | number;
102
134
  disabled: boolean;
103
135
  modelValue: number;
104
136
  start: string | number;
105
137
  showEndButton: boolean;
138
+ gap: string | number;
106
139
  }, {}>;
@@ -45,7 +45,13 @@ export declare const YDataTable: import("vue").DefineComponent<{
45
45
  };
46
46
  width: PropType<string | number>;
47
47
  search: PropType<string>;
48
- }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
+ 'update:modelValue': (value: any[]) => boolean;
50
+ 'update:page': (value: number) => boolean;
51
+ 'update:pageSize': (value: number) => boolean;
52
+ 'update:sortBy': (value: any) => boolean;
53
+ 'update:options': (value: any) => boolean;
54
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
55
  page: {
50
56
  type: PropType<string | number>;
51
57
  default: number;
@@ -56,7 +62,13 @@ export declare const YDataTable: import("vue").DefineComponent<{
56
62
  };
57
63
  width: PropType<string | number>;
58
64
  search: PropType<string>;
59
- }>>, {
65
+ }>> & {
66
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
67
+ "onUpdate:page"?: ((value: number) => any) | undefined;
68
+ "onUpdate:pageSize"?: ((value: number) => any) | undefined;
69
+ "onUpdate:sortBy"?: ((value: any) => any) | undefined;
70
+ "onUpdate:options"?: ((value: any) => any) | undefined;
71
+ }, {
60
72
  page: string | number;
61
73
  pageSize: string | number;
62
74
  }, {}>;
@@ -1,2 +1,10 @@
1
- export declare const YDataTableBody: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const YDataTableBody: import("vue").DefineComponent<{
2
+ headers: {
3
+ type: ArrayConstructor[];
4
+ };
5
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ headers: {
7
+ type: ArrayConstructor[];
8
+ };
9
+ }>>, {}, {}>;
2
10
  export type YDataTableBody = InstanceType<typeof YDataTableBody>;
@@ -1,2 +1,10 @@
1
- export declare const YDataTableHead: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const YDataTableHead: import("vue").DefineComponent<{
2
+ headers: {
3
+ type: ArrayConstructor[];
4
+ };
5
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ headers: {
7
+ type: ArrayConstructor[];
8
+ };
9
+ }>>, {}, {}>;
2
10
  export type YDataTableHead = InstanceType<typeof YDataTableHead>;
@@ -5,6 +5,7 @@ export declare const pressDataTableServerProps: <Defaults extends {
5
5
  width?: unknown;
6
6
  search?: unknown;
7
7
  total?: unknown;
8
+ headers?: unknown;
8
9
  } = {}>(defaults?: Defaults | undefined) => {
9
10
  page: unknown extends Defaults["page"] ? {
10
11
  type: PropType<string | number>;
@@ -44,6 +45,14 @@ export declare const pressDataTableServerProps: <Defaults extends {
44
45
  type: PropType<unknown extends Defaults["total"] ? string | number : NonNullable<string | number> | Defaults["total"]>;
45
46
  default: unknown extends Defaults["total"] ? string | number : NonNullable<string | number> | Defaults["total"];
46
47
  };
48
+ headers: unknown extends Defaults["headers"] ? {
49
+ type: ArrayConstructor[];
50
+ } : Omit<{
51
+ type: ArrayConstructor[];
52
+ }, "default" | "type"> & {
53
+ type: PropType<unknown extends Defaults["headers"] ? unknown[] : unknown[] | Defaults["headers"]>;
54
+ default: unknown extends Defaults["headers"] ? unknown[] : unknown[] | Defaults["headers"];
55
+ };
47
56
  };
48
57
  export declare const YDataTableServer: import("vue").DefineComponent<{
49
58
  page: {
@@ -60,6 +69,9 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
60
69
  type: PropType<string | number>;
61
70
  required: true;
62
71
  };
72
+ headers: {
73
+ type: ArrayConstructor[];
74
+ };
63
75
  }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
64
76
  page: {
65
77
  type: PropType<string | number>;
@@ -75,6 +87,9 @@ export declare const YDataTableServer: import("vue").DefineComponent<{
75
87
  type: PropType<string | number>;
76
88
  required: true;
77
89
  };
90
+ headers: {
91
+ type: ArrayConstructor[];
92
+ };
78
93
  }>>, {
79
94
  page: string | number;
80
95
  pageSize: string | number;
@@ -139,7 +139,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
139
139
  coordinatesStyles: import("vue").ComputedRef<CSSProperties>;
140
140
  baseSlot: import("vue").Ref<any>;
141
141
  active: import("vue").WritableComputedRef<boolean>;
142
- } | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
142
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
143
143
  transition: {
144
144
  default: string;
145
145
  type: PropType<string | (import("vue").TransitionProps & {
@@ -0,0 +1,5 @@
1
+ import { Ref } from "vue";
2
+ export declare function useRefs<T extends {}>(): {
3
+ refs: Ref<(T | undefined)[]>;
4
+ updateRef: (e: any, i: number) => void;
5
+ };
@@ -6,3 +6,4 @@ export declare function mergeDeep(source?: Record<string, any>, overwrite?: Reco
6
6
  export declare function getObjectValueByPath(obj: any, path: string, fallback?: any): any;
7
7
  export declare function randomCharOne(str: string): string;
8
8
  export declare function clamp(value: number, min?: number, max?: number): number;
9
+ export declare function getRangeArr(length: number, start?: number): number[];
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />