x-group-list 0.4.12 → 0.4.13

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/dist/index.d.ts CHANGED
@@ -1 +1,53 @@
1
- export * from './utils/groupList';
1
+ import { Ref } from 'vue';
2
+
3
+ export declare function diffPosInfos(oldPosInfos: PosInfos, newPosInfos: PosInfos): PosInfo[];
4
+
5
+ export declare function getListEntry(entryList: Ref<ListEntry[]>, id: string): ListEntry | undefined;
6
+
7
+ export declare function hasDetail(entryList: Ref<ListEntry[]>): boolean;
8
+
9
+ export declare type ListEntry = ListGroup | ListItem;
10
+
11
+ export declare interface ListGroup {
12
+ id: string;
13
+ type: 0;
14
+ name: string;
15
+ position: number;
16
+ collapse: boolean;
17
+ detail?: boolean;
18
+ count?: number;
19
+ }
20
+
21
+ export declare interface ListItem {
22
+ id: string;
23
+ type: 1;
24
+ name: string;
25
+ position: number;
26
+ group: string;
27
+ select?: boolean;
28
+ show?: boolean;
29
+ }
30
+
31
+ export declare function onDragEnd(entryList: Ref<ListEntry[]>, draggingType: 0 | 1, oldIndex: number, newIndex: number): void;
32
+
33
+ export declare interface PosInfo {
34
+ id: string;
35
+ group: string;
36
+ position: number;
37
+ }
38
+
39
+ export declare type PosInfos = {
40
+ [key: string]: PosInfo;
41
+ };
42
+
43
+ export declare function selectItem(entryList: Ref<ListEntry[]>, id: string): void;
44
+
45
+ export declare function setCollapse(entryList: Ref<ListEntry[]>, id: string, collapse: boolean): void;
46
+
47
+ export declare function tidyList(entryList: ListEntry[], clean: boolean): ListEntry[];
48
+
49
+ export declare function toggleDetail(entryList: Ref<ListEntry[]>, id: string): void;
50
+
51
+ export declare function toPosInfos(entryList: Ref<ListEntry[]>): PosInfos;
52
+
53
+ export { }
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "vue";
1
2
  //#region src/utils/groupList.ts
2
3
  function e(e, t) {
3
4
  let n = [], r = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-group-list",
3
3
  "private": false,
4
- "version": "0.4.12",
4
+ "version": "0.4.13",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -22,28 +22,32 @@
22
22
  "*": "prettier --write ."
23
23
  },
24
24
  "dependencies": {
25
- "vue": "^3.5.30",
26
- "vuetify": "^4.0.2"
25
+ "vue": "^3.5.32",
26
+ "vuetify": "^4.0.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@eslint/js": "^10.0.1",
30
- "@types/node": "^25.4.0",
31
- "@vitejs/plugin-vue": "^6.0.4",
32
- "eslint": "^10.0.3",
30
+ "@tsconfig/node24": "^24.0.4",
31
+ "@types/node": "^25.5.2",
32
+ "@vitejs/plugin-vue": "^6.0.5",
33
+ "@vue/tsconfig": "^0.9.1",
34
+ "eslint": "^10.2.0",
33
35
  "eslint-config-prettier": "^10.1.8",
34
36
  "eslint-plugin-prettier": "^5.5.5",
37
+ "eslint-plugin-simple-import-sort": "^13.0.0",
35
38
  "eslint-plugin-vue": "^10.8.0",
36
39
  "globals": "^17.4.0",
37
40
  "husky": "^9.1.7",
38
- "lint-staged": "^16.3.3",
41
+ "lint-staged": "^16.4.0",
39
42
  "prettier": "3.8.1",
40
- "sass": "^1.98.0",
43
+ "sass": "^1.99.0",
41
44
  "typescript": "^5.9.3",
42
- "typescript-eslint": "^8.57.0",
43
- "vite": "^8.0.0",
45
+ "typescript-eslint": "^8.58.1",
46
+ "vite": "^8.0.7",
44
47
  "vite-plugin-css-injected-by-js": "^4.0.1",
48
+ "vite-plugin-dts": "^4.5.4",
45
49
  "vite-plugin-vuetify": "^2.1.3",
46
50
  "vue-eslint-parser": "^10.4.0",
47
- "vue-tsc": "^3.2.5"
51
+ "vue-tsc": "^3.2.6"
48
52
  }
49
53
  }
@@ -1,37 +0,0 @@
1
- import { Ref } from 'vue';
2
- export interface ListGroup {
3
- id: string;
4
- type: 0;
5
- name: string;
6
- position: number;
7
- collapse: boolean;
8
- detail?: boolean;
9
- count?: number;
10
- }
11
- export interface ListItem {
12
- id: string;
13
- type: 1;
14
- name: string;
15
- position: number;
16
- group: string;
17
- select?: boolean;
18
- show?: boolean;
19
- }
20
- export type ListEntry = ListGroup | ListItem;
21
- export declare function tidyList(entryList: ListEntry[], clean: boolean): ListEntry[];
22
- export declare function getListEntry(entryList: Ref<ListEntry[]>, id: string): ListEntry | undefined;
23
- export declare function setCollapse(entryList: Ref<ListEntry[]>, id: string, collapse: boolean): void;
24
- export declare function hasDetail(entryList: Ref<ListEntry[]>): boolean;
25
- export declare function toggleDetail(entryList: Ref<ListEntry[]>, id: string): void;
26
- export declare function selectItem(entryList: Ref<ListEntry[]>, id: string): void;
27
- export declare function onDragEnd(entryList: Ref<ListEntry[]>, draggingType: 0 | 1, oldIndex: number, newIndex: number): void;
28
- export interface PosInfo {
29
- id: string;
30
- group: string;
31
- position: number;
32
- }
33
- export type PosInfos = {
34
- [key: string]: PosInfo;
35
- };
36
- export declare function toPosInfos(entryList: Ref<ListEntry[]>): PosInfos;
37
- export declare function diffPosInfos(oldPosInfos: PosInfos, newPosInfos: PosInfos): PosInfo[];