@topvisor/ui 1.4.1-projectSelector.1 → 1.4.1-projectSelector.2
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/package.json +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +559 -558
- package/project/project.js.map +1 -1
- package/src/components/project/projectSelector/projectSelector.vue.d.ts +1 -0
- package/src/components/project/projectSelector/types.d.ts +2 -2
- package/src/components/project/projectSelector/utils.d.ts +1 -8
- package/src/components/project/projectSelector/stories/mocks/projects.d.ts +0 -10
|
@@ -13,6 +13,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
13
13
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:project"?: ((value: SelectorItem) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
+
addLinksToProjects: boolean;
|
|
16
17
|
userId: number;
|
|
17
18
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
18
19
|
refSelector: ({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Item } from '../../formsExt/selector2/types';
|
|
2
1
|
import { paths } from 'topvisor-openapi/src/ts/Topvisor';
|
|
3
2
|
import { components } from 'topvisor-openapi/src/ts/TV/API/Params/FieldsTrait';
|
|
4
3
|
import { components } from 'topvisor-openapi/src/ts/TV/API/Params/OrdersTrait';
|
|
@@ -6,12 +5,6 @@ import { components } from 'topvisor-openapi/src/ts/TV/API/Params/FiltersTrait';
|
|
|
6
5
|
import { components } from 'topvisor-openapi/src/ts/TV/API/Params/LimitTrait';
|
|
7
6
|
import { components } from 'topvisor-openapi/src/ts/TV/API/Params/OffsetTrait';
|
|
8
7
|
import { components } from 'topvisor-openapi/src/ts/TV/API/Types/UrlShort';
|
|
9
|
-
/**
|
|
10
|
-
* Подготавливает данные проектов для отображения:
|
|
11
|
-
* - добавляет listItemProps
|
|
12
|
-
* - сортирует по категориям с заголовками
|
|
13
|
-
*/
|
|
14
|
-
export declare const prepareProjects: (projects: Item[] | undefined, excludeProjectId?: number) => Item[] | undefined;
|
|
15
8
|
/**
|
|
16
9
|
* Сгенерировать ссылку на проект
|
|
17
10
|
*/
|
|
@@ -27,7 +20,7 @@ export declare const genProjectExternalLink: (url: string) => string;
|
|
|
27
20
|
*
|
|
28
21
|
* @see prepareProjects
|
|
29
22
|
*/
|
|
30
|
-
export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>, excludeProjectId?: number) => Api.ClientRequest<Api.ClientRequestContext< paths, "/get/projects_2/projects/", true>, ("name" | "id" | "on" | "right" | "url" | "user_id")[], Api.Params<Api.ClientRequestContext< paths, "/get/projects_2/projects/", true>, undefined, {
|
|
23
|
+
export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>, limit?: number, excludeProjectId?: number, addLinksToProjects?: boolean) => Api.ClientRequest<Api.ClientRequestContext< paths, "/get/projects_2/projects/", true>, ("name" | "id" | "on" | "right" | "url" | "user_id")[], Api.Params<Api.ClientRequestContext< paths, "/get/projects_2/projects/", true>, undefined, {
|
|
31
24
|
"COUNT(*)"?: any;
|
|
32
25
|
"IS_YOUTUBE()"?: any;
|
|
33
26
|
"IS_APP_STORE()"?: any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Item } from '../../../../formsExt/selector2/types';
|
|
2
|
-
export declare const mockProjects: Item[];
|
|
3
|
-
export declare const generateProjects: (count: number) => {
|
|
4
|
-
id: number;
|
|
5
|
-
user_id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
url: string;
|
|
8
|
-
on: 0 | 1 | -1;
|
|
9
|
-
right: string;
|
|
10
|
-
}[];
|