@endge/utils 0.24.14 → 0.25.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.
- package/dist/collection/collection.d.ts +7 -7
- package/dist/collection/collection.types.d.ts +10 -10
- package/dist/collection/indexed-collection.d.ts +17 -17
- package/dist/database/PayloadHttpClient.d.ts +3 -3
- package/dist/events/ChangeNotifier.d.ts +8 -0
- package/dist/events/EventBus.d.ts +3 -3
- package/dist/execute/NamedExecutor.d.ts +9 -9
- package/dist/execute/delay-executor.d.ts +8 -8
- package/dist/index.d.ts +8 -14
- package/dist/shared/serialize/decorator.d.ts +2 -2
- package/dist/tools/hotkeys.d.ts +8 -8
- package/dist/tools/logs.d.ts +7 -7
- package/dist/tools/tools.types.d.ts +2 -2
- package/dist/utils.js +545 -634
- package/package.json +11 -17
- package/dist/composable/useCookie.d.ts +0 -1
- package/dist/events/Subscribable.d.ts +0 -31
- package/dist/serialize/useStorageDebounced.d.ts +0 -2
- package/dist/tooltip/TooltipRegistrator.d.ts +0 -15
- package/dist/tooltip/store.d.ts +0 -29
- package/dist/tooltip/tooltip.types.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endge/utils",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.24.14",
|
|
5
3
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
4
|
+
"version": "0.25.6",
|
|
5
|
+
"private": false,
|
|
6
|
+
"sideEffects": false,
|
|
8
7
|
"exports": {
|
|
9
8
|
".": {
|
|
10
9
|
"types": "./dist/index.d.ts",
|
|
11
10
|
"import": "./dist/utils.js"
|
|
12
11
|
}
|
|
13
12
|
},
|
|
14
|
-
"
|
|
13
|
+
"module": "./dist/utils.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -19,34 +19,28 @@
|
|
|
19
19
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
20
20
|
"dev": "vite build --watch",
|
|
21
21
|
"build": "vite build",
|
|
22
|
-
"test": "vitest"
|
|
22
|
+
"test": "vitest",
|
|
23
|
+
"lint-check": "eslint . --cache",
|
|
24
|
+
"lint-fix": "eslint . --fix --cache"
|
|
23
25
|
},
|
|
24
26
|
"dependencies": {
|
|
25
27
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
26
28
|
"class-transformer": "^0.5.1",
|
|
27
29
|
"class-validator": "^0.14.1",
|
|
28
|
-
"cookie-es": "^1.2.2",
|
|
29
30
|
"date-fns": "^2.30.0",
|
|
30
31
|
"date-fns-tz": "^2.0.1",
|
|
31
|
-
"destr": "^2.0.3",
|
|
32
32
|
"lodash": "^4.17.21",
|
|
33
33
|
"reflect-metadata": "^0.2.2",
|
|
34
34
|
"ts-luxon": "^6.2.0",
|
|
35
35
|
"uuid": "^11.0.3"
|
|
36
36
|
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"pinia": "^2.1.7 || ^3.0.0",
|
|
39
|
-
"vue": "^3.5.13"
|
|
40
|
-
},
|
|
41
37
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"@vue/tsconfig": "^0.9.1",
|
|
38
|
+
"@antfu/eslint-config": "9.3.0",
|
|
39
|
+
"eslint": "10.9.1",
|
|
45
40
|
"rimraf": "^6.0.1",
|
|
46
41
|
"typescript": "~6.0.3",
|
|
47
42
|
"unplugin-dts": "^1.0.3",
|
|
48
43
|
"vite": "^6.1.0",
|
|
49
|
-
"vitest": "^3.2.4"
|
|
50
|
-
"vue-tsc": "^3.3.11"
|
|
44
|
+
"vitest": "^3.2.4"
|
|
51
45
|
}
|
|
52
46
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useCookie: (name: any, _opts?: any) => import('vue').Ref<string, string>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Subscribable – базовый класс для реализации паттерна наблюдателя.
|
|
4
|
-
* Предоставляет методы для подписки, отписки и уведомления слушателей.
|
|
5
|
-
* Пример:
|
|
6
|
-
* ```ts
|
|
7
|
-
* { refObj: domain } = useSubscribableRef(BuildX.domain)
|
|
8
|
-
* // domain будет реактивной переменной, которая тригерится при каждом внутреннем обновлении.
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export declare class Subscribable {
|
|
12
|
-
private subscribers;
|
|
13
|
-
/**
|
|
14
|
-
* Подписывается на обновления.
|
|
15
|
-
* @param listener Функция, вызываемая при уведомлении.
|
|
16
|
-
* @returns Функция для отписки.
|
|
17
|
-
*/
|
|
18
|
-
subscribe(listener: () => void): () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Уведомляет всех подписчиков.
|
|
21
|
-
*/
|
|
22
|
-
notify(): void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Ref – обёртка для значения, поддерживающая подписку на изменения.
|
|
26
|
-
*/
|
|
27
|
-
export declare const useSubscribableRef: <T extends Subscribable>(obj: T) => {
|
|
28
|
-
refObj: Ref<T>;
|
|
29
|
-
unsubscribe: () => void;
|
|
30
|
-
};
|
|
31
|
-
export declare const useSubscribableRefAuto: <T extends Subscribable>(obj: T) => Ref<T>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface TooltipRegistratorProps {
|
|
2
|
-
id?: string;
|
|
3
|
-
data?: unknown;
|
|
4
|
-
template?: unknown;
|
|
5
|
-
location?: unknown;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
maxWidth?: string;
|
|
8
|
-
customClass?: string;
|
|
9
|
-
justifyClass?: string;
|
|
10
|
-
slots?: {
|
|
11
|
-
default?: () => any;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export type TooltipRenderFunction = (tag: string, props?: Record<string, unknown>, children?: any) => any;
|
|
15
|
-
export declare function TooltipRegistrator(h: TooltipRenderFunction, props: TooltipRegistratorProps): any;
|
package/dist/tooltip/store.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { TooltipInstance } from './tooltip.types';
|
|
2
|
-
export declare const useTooltipStore: import('pinia').StoreDefinition<"tooltip", Pick<{
|
|
3
|
-
tooltips: Record<string, TooltipInstance>;
|
|
4
|
-
activeId: import('vue').Ref<string | null, string | null>;
|
|
5
|
-
registerTooltip: (tt: Omit<TooltipInstance, "visible">) => void;
|
|
6
|
-
unregisterTooltip: (id: string) => void;
|
|
7
|
-
showTooltip: (id: string) => void;
|
|
8
|
-
hideTooltip: (id: string) => void;
|
|
9
|
-
setActiveTooltipId: (id: string) => void;
|
|
10
|
-
clearActiveTooltipId: () => void;
|
|
11
|
-
}, "tooltips" | "activeId">, Pick<{
|
|
12
|
-
tooltips: Record<string, TooltipInstance>;
|
|
13
|
-
activeId: import('vue').Ref<string | null, string | null>;
|
|
14
|
-
registerTooltip: (tt: Omit<TooltipInstance, "visible">) => void;
|
|
15
|
-
unregisterTooltip: (id: string) => void;
|
|
16
|
-
showTooltip: (id: string) => void;
|
|
17
|
-
hideTooltip: (id: string) => void;
|
|
18
|
-
setActiveTooltipId: (id: string) => void;
|
|
19
|
-
clearActiveTooltipId: () => void;
|
|
20
|
-
}, never>, Pick<{
|
|
21
|
-
tooltips: Record<string, TooltipInstance>;
|
|
22
|
-
activeId: import('vue').Ref<string | null, string | null>;
|
|
23
|
-
registerTooltip: (tt: Omit<TooltipInstance, "visible">) => void;
|
|
24
|
-
unregisterTooltip: (id: string) => void;
|
|
25
|
-
showTooltip: (id: string) => void;
|
|
26
|
-
hideTooltip: (id: string) => void;
|
|
27
|
-
setActiveTooltipId: (id: string) => void;
|
|
28
|
-
clearActiveTooltipId: () => void;
|
|
29
|
-
}, "registerTooltip" | "unregisterTooltip" | "showTooltip" | "hideTooltip" | "setActiveTooltipId" | "clearActiveTooltipId">>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface TooltipInstance {
|
|
2
|
-
id: string;
|
|
3
|
-
content: string | (() => any);
|
|
4
|
-
activator: string;
|
|
5
|
-
visible: boolean;
|
|
6
|
-
active?: boolean;
|
|
7
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
-
maxWidth?: string | number;
|
|
9
|
-
}
|
|
10
|
-
export declare const TooltipAttribute = "x-collection-tooltip-id";
|