@topvisor/ui 1.4.1-projectSelector.1 → 1.4.1-titleHTML.21

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 (35) hide show
  1. package/.chunks/policy.vue_vue_type_style_index_0_lang-Dgb5Q7Hx.amd.js +2 -0
  2. package/.chunks/policy.vue_vue_type_style_index_0_lang-Dgb5Q7Hx.amd.js.map +1 -0
  3. package/.chunks/policy.vue_vue_type_style_index_0_lang-LkyBILW6.es.js +496 -0
  4. package/.chunks/policy.vue_vue_type_style_index_0_lang-LkyBILW6.es.js.map +1 -0
  5. package/assets/policy.css +1 -1
  6. package/assets/project.css +1 -1
  7. package/formsExt/formsExt.amd.js +1 -1
  8. package/formsExt/formsExt.js +1 -1
  9. package/package.json +1 -1
  10. package/popup/popup.amd.js +1 -1
  11. package/popup/popup.amd.js.map +1 -1
  12. package/popup/popup.js +2 -2
  13. package/popup/popup.js.map +1 -1
  14. package/project/project.amd.js +1 -1
  15. package/project/project.amd.js.map +1 -1
  16. package/project/project.js +612 -893
  17. package/project/project.js.map +1 -1
  18. package/src/components/formsExt/selector2/composables/useAPI.d.ts +0 -2
  19. package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -3
  20. package/src/components/formsExt/selector2/types.d.ts +0 -14
  21. package/src/components/popup/popup/listItem.vue.d.ts +4 -24
  22. package/src/components/popup/popup/types.d.ts +0 -1
  23. package/src/components/project/groupSelector/groups/groups.vue.d.ts +0 -2
  24. package/src/components/project/groupSelector/groups/utils.d.ts +1 -1
  25. package/src/components/project/project.d.ts +0 -1
  26. package/.chunks/policy.vue_vue_type_style_index_0_lang-CO-f4TwZ.amd.js +0 -2
  27. package/.chunks/policy.vue_vue_type_style_index_0_lang-CO-f4TwZ.amd.js.map +0 -1
  28. package/.chunks/policy.vue_vue_type_style_index_0_lang-ClaW4X74.es.js +0 -503
  29. package/.chunks/policy.vue_vue_type_style_index_0_lang-ClaW4X74.es.js.map +0 -1
  30. package/src/components/project/projectSelector/projectSelector.vue.d.ts +0 -120
  31. package/src/components/project/projectSelector/stories/mocks/projects.d.ts +0 -10
  32. package/src/components/project/projectSelector/submenu/submenu.vue.d.ts +0 -4
  33. package/src/components/project/projectSelector/submenu/types.d.ts +0 -17
  34. package/src/components/project/projectSelector/types.d.ts +0 -51
  35. package/src/components/project/projectSelector/utils.d.ts +0 -206
@@ -1,120 +0,0 @@
1
- import { Props } from './types';
2
- import { Item as SelectorItem, Props, Size, Slots } from '../../formsExt/selector2/types';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties } from 'vue';
4
- import { Props } from '../../forms/button/types';
5
- import { TopLibPopup } from '../../popup/lib/popup';
6
- import { OnCleanup } from '@vue/reactivity';
7
- type __VLS_Props = Props;
8
- type __VLS_PublicProps = {
9
- 'project'?: NonNullable<Props['project']>;
10
- } & __VLS_Props;
11
- declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
- "update:project": (value: SelectorItem) => any;
13
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
- "onUpdate:project"?: ((value: SelectorItem) => any) | undefined;
15
- }>, {
16
- userId: number;
17
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
18
- refSelector: ({
19
- $: ComponentInternalInstance;
20
- $data: {};
21
- $props: {
22
- readonly modelValue: Props["modelValue"];
23
- readonly items?: SelectorItem[] | undefined;
24
- readonly title?: string | undefined;
25
- readonly disabled?: boolean | undefined;
26
- readonly icon?: string | undefined;
27
- readonly modificator?: string | undefined;
28
- readonly size?: Size | undefined;
29
- readonly isError?: boolean | undefined;
30
- readonly openByFocusInput?: boolean | undefined;
31
- readonly searchType?: "none" | "inline" | "popup" | undefined;
32
- readonly placeholder?: string | undefined;
33
- readonly api?: (Api.ClientRequest<any> | Api.ClientRequestCustom<any, any, any>) | undefined;
34
- readonly apiSetSearchParams?: ((api: NonNullable< Props["api"]>, search: string) => void) | undefined;
35
- readonly minLength?: number | undefined;
36
- readonly useCache?: boolean | undefined;
37
- readonly appendSearchToResult?: boolean | undefined;
38
- readonly appendSearchToResultCond?: ((search: string) => boolean) | undefined;
39
- readonly multiselect?: boolean | undefined;
40
- readonly useAllItem?: boolean | string | undefined;
41
- readonly addChanger?: boolean | undefined;
42
- readonly buttonProps?: Props | undefined;
43
- readonly selectedAsPlaceholder?: boolean | undefined;
44
- readonly openerShortcut?: string | undefined;
45
- readonly "onUpdate:modelValue"?: ((value: SelectorItem | SelectorItem[]) => any) | undefined;
46
- readonly onAppendItem?: ((item: SelectorItem) => any) | undefined;
47
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
48
- $attrs: {
49
- [x: string]: unknown;
50
- };
51
- $refs: {
52
- [x: string]: unknown;
53
- } & {
54
- popupRef: ShallowUnwrapRef<{
55
- id: string;
56
- popup: TopLibPopup<undefined> | undefined;
57
- }> | null;
58
- };
59
- $slots: Readonly<{
60
- [name: string]: Slot<any> | undefined;
61
- }>;
62
- $root: ComponentPublicInstance | null;
63
- $parent: ComponentPublicInstance | null;
64
- $host: Element | null;
65
- $emit: ((event: "update:modelValue", value: SelectorItem | SelectorItem[]) => void) & ((event: "appendItem", item: SelectorItem) => void);
66
- $el: any;
67
- $options: ComponentOptionsBase<Readonly<{
68
- modelValue: Props["modelValue"];
69
- } & Props> & Readonly<{
70
- "onUpdate:modelValue"?: ((value: SelectorItem | SelectorItem[]) => any) | undefined;
71
- onAppendItem?: ((item: SelectorItem) => any) | undefined;
72
- }>, {
73
- resetCache: (resetAPICache?: boolean) => void;
74
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
75
- "update:modelValue": (value: SelectorItem | SelectorItem[]) => any;
76
- appendItem: (item: SelectorItem) => any;
77
- }, string, {
78
- size: Size;
79
- openByFocusInput: boolean;
80
- items: SelectorItem[];
81
- searchType: "none" | "inline" | "popup";
82
- minLength: number;
83
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
84
- beforeCreate?: (() => void) | (() => void)[];
85
- created?: (() => void) | (() => void)[];
86
- beforeMount?: (() => void) | (() => void)[];
87
- mounted?: (() => void) | (() => void)[];
88
- beforeUpdate?: (() => void) | (() => void)[];
89
- updated?: (() => void) | (() => void)[];
90
- activated?: (() => void) | (() => void)[];
91
- deactivated?: (() => void) | (() => void)[];
92
- beforeDestroy?: (() => void) | (() => void)[];
93
- beforeUnmount?: (() => void) | (() => void)[];
94
- destroyed?: (() => void) | (() => void)[];
95
- unmounted?: (() => void) | (() => void)[];
96
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
97
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
98
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
99
- };
100
- $forceUpdate: () => void;
101
- $nextTick: nextTick;
102
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
103
- } & Readonly<{
104
- size: Size;
105
- openByFocusInput: boolean;
106
- items: SelectorItem[];
107
- searchType: "none" | "inline" | "popup";
108
- minLength: number;
109
- }> & Omit<Readonly<{
110
- modelValue: Props["modelValue"];
111
- } & Props> & Readonly<{
112
- "onUpdate:modelValue"?: ((value: SelectorItem | SelectorItem[]) => any) | undefined;
113
- onAppendItem?: ((item: SelectorItem) => any) | undefined;
114
- }>, "resetCache" | ("size" | "openByFocusInput" | "items" | "searchType" | "minLength")> & ShallowUnwrapRef<{
115
- resetCache: (resetAPICache?: boolean) => void;
116
- }> & {} & ComponentCustomProperties & {} & {
117
- $slots: Readonly< Slots> & Slots;
118
- }) | null;
119
- }, any>;
120
- export default _default;
@@ -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
- }[];
@@ -1,4 +0,0 @@
1
- import { Props } from './types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
4
- export default _default;
@@ -1,17 +0,0 @@
1
- export interface Props {
2
- /**
3
- * id проекта
4
- */
5
- id: number;
6
- /**
7
- * Права пользователя в проекте
8
- *
9
- * Записывается в виде строки из нулей и единиц '01011000100000000000'
10
- * Каждому индексу строки соответствует доступ к определенным действиям с проектом
11
- */
12
- right: string;
13
- /**
14
- * url проекта
15
- */
16
- url: string;
17
- }
@@ -1,51 +0,0 @@
1
- import { Props as ButtonProps } from '../../forms/button/types';
2
- import { Item } from '../../formsExt/selector2/types';
3
- export interface Props {
4
- /**
5
- * Выбранный проект
6
- */
7
- project?: Item;
8
- /**
9
- * Список проектов
10
- */
11
- projects?: Item[];
12
- /**
13
- * id пользователя
14
- */
15
- userId: number;
16
- icon?: string;
17
- /**
18
- * Не отображать проект с этим id в списке
19
- */
20
- excludeProjectId?: number;
21
- /**
22
- * Текст для placeholder поля поиска
23
- */
24
- placeholder?: string;
25
- /**
26
- * Текст для opener
27
- */
28
- openerText?: string;
29
- /**
30
- * Настройки кнопки
31
- *
32
- * Если не указан будет использоваться стандартный стиль селектора
33
- *
34
- * @subcategory Single select
35
- */
36
- buttonProps?: ButtonProps;
37
- /**
38
- * code горячей клавиши для открытия селектора ('KeyA');
39
- */
40
- openerShortcut?: string;
41
- /**
42
- * Настроенный API клиент для выполнения запросов
43
- *
44
- * Будет использоваться:
45
- * - для загрузки групп, если не указан `props.projects`
46
- * - для добавления нового проекта пользователю
47
- *
48
- * @const
49
- */
50
- client?: Api.Client<Api.TV.Paths, true>;
51
- }
@@ -1,206 +0,0 @@
1
- import { Item } from '../../formsExt/selector2/types';
2
- import { paths } from 'topvisor-openapi/src/ts/Topvisor';
3
- import { components } from 'topvisor-openapi/src/ts/TV/API/Params/FieldsTrait';
4
- import { components } from 'topvisor-openapi/src/ts/TV/API/Params/OrdersTrait';
5
- import { components } from 'topvisor-openapi/src/ts/TV/API/Params/FiltersTrait';
6
- import { components } from 'topvisor-openapi/src/ts/TV/API/Params/LimitTrait';
7
- import { components } from 'topvisor-openapi/src/ts/TV/API/Params/OffsetTrait';
8
- 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
- /**
16
- * Сгенерировать ссылку на проект
17
- */
18
- export declare const genProjectLink: (projectId: number) => string;
19
- /**
20
- * Сгенерировать ссылку на сайт проекта
21
- */
22
- export declare const genProjectExternalLink: (url: string) => string;
23
- /**
24
- * Создать API запрос на получение списка проектов
25
- *
26
- * Данные после загрузки преобразуются и сортируются с помощью prepareProjects().
27
- *
28
- * @see prepareProjects
29
- */
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, {
31
- "COUNT(*)"?: any;
32
- "IS_YOUTUBE()"?: any;
33
- "IS_APP_STORE()"?: any;
34
- "IS_GOOGLE_PLAY()"?: any;
35
- "GEN_SEARCH_STRING()"?: any;
36
- id?: any;
37
- user_id?: any;
38
- name?: string | null;
39
- url?: any;
40
- date?: any;
41
- last_view?: any;
42
- folder_id?: number | null;
43
- folder_name?: any;
44
- task_time_delete?: any;
45
- task_method_name?: any;
46
- task_method_params_json?: any;
47
- task_status?: any;
48
- task_progress?: any;
49
- site?: any;
50
- update?: any;
51
- status_positions?: string | null;
52
- positions_time?: any;
53
- positions_date?: any;
54
- positions_percent?: any;
55
- status_positions_time?: any;
56
- status_positions_date?: any;
57
- status_positions_percent?: any;
58
- status_positions_by_keywords?: any;
59
- status_volumes?: any;
60
- status_claster?: any;
61
- status_audit?: any;
62
- status_audit_time?: any;
63
- status_audit_percent?: any;
64
- status_watcher?: any;
65
- status_watcher_percent?: any;
66
- status_indexing?: any;
67
- status_indexing_percent?: any;
68
- status_sitemap?: any;
69
- status_sitemap_percent?: any;
70
- status_urlsUpdater?: any;
71
- on?: any;
72
- subdomains?: any;
73
- filter?: any;
74
- auto_correct?: any;
75
- with_snippets?: any;
76
- do_snapshots?: any;
77
- do_snapshots_with_snippets?: any;
78
- report_last_time?: any;
79
- common_traffic?: any;
80
- guest_link_right?: any;
81
- is_task?: any;
82
- count_keywords?: any;
83
- right?: any;
84
- ord?: any;
85
- favorite?: any;
86
- tags?: any;
87
- user_email?: any;
88
- user_currency?: any;
89
- broker_count_campaigns?: any;
90
- broker_count_banners?: any;
91
- broker_count_banners_off?: any;
92
- domain_expire?: any;
93
- ssl_expire?: any;
94
- competitor?: any;
95
- competitor_ord?: any;
96
- pos_summary_up?: any;
97
- pos_summary_stay?: any;
98
- pos_summary_down?: any;
99
- pos_summary_avg?: any;
100
- pos_summary_visibility?: any;
101
- audit_server_location?: any;
102
- audit_auto_collect_pages?: number | null;
103
- audit_auto_collect_pages_limit?: number | null;
104
- indexing_searchers_keys?: unknown[] | null;
105
- watcher_types?: unknown[] | null;
106
- }, {
107
- show_owner_balance?: boolean | null;
108
- show_site_stat?: boolean | null;
109
- show_searchers_and_regions?: number;
110
- include_positions_summary?: boolean | null;
111
- include_positions_summary_params?: unknown[] | null;
112
- is_task?: boolean | null;
113
- fields?: components["schemas"]["TV.API.Params.FieldsTrait"]["fields"];
114
- orders?: components["schemas"]["TV.API.Params.OrdersTrait"]["orders"];
115
- filters?: components["schemas"]["TV.API.Params.FiltersTrait"]["filters"];
116
- id?: components["schemas"]["TV.API.Params.FiltersTrait"]["id"];
117
- limit?: components["schemas"]["TV.API.Params.LimitTrait"]["limit"];
118
- offset?: components["schemas"]["TV.API.Params.OffsetTrait"]["offset"];
119
- }>, Api.ModelFields<{
120
- "COUNT(*)"?: any;
121
- "IS_YOUTUBE()"?: any;
122
- "IS_APP_STORE()"?: any;
123
- "IS_GOOGLE_PLAY()"?: any;
124
- "GEN_SEARCH_STRING()"?: any;
125
- id?: any;
126
- user_id?: any;
127
- name?: string | null;
128
- url?: any;
129
- date?: any;
130
- last_view?: any;
131
- folder_id?: number | null;
132
- folder_name?: any;
133
- task_time_delete?: any;
134
- task_method_name?: any;
135
- task_method_params_json?: any;
136
- task_status?: any;
137
- task_progress?: any;
138
- site?: any;
139
- update?: any;
140
- status_positions?: string | null;
141
- positions_time?: any;
142
- positions_date?: any;
143
- positions_percent?: any;
144
- status_positions_time?: any;
145
- status_positions_date?: any;
146
- status_positions_percent?: any;
147
- status_positions_by_keywords?: any;
148
- status_volumes?: any;
149
- status_claster?: any;
150
- status_audit?: any;
151
- status_audit_time?: any;
152
- status_audit_percent?: any;
153
- status_watcher?: any;
154
- status_watcher_percent?: any;
155
- status_indexing?: any;
156
- status_indexing_percent?: any;
157
- status_sitemap?: any;
158
- status_sitemap_percent?: any;
159
- status_urlsUpdater?: any;
160
- on?: any;
161
- subdomains?: any;
162
- filter?: any;
163
- auto_correct?: any;
164
- with_snippets?: any;
165
- do_snapshots?: any;
166
- do_snapshots_with_snippets?: any;
167
- report_last_time?: any;
168
- common_traffic?: any;
169
- guest_link_right?: any;
170
- is_task?: any;
171
- count_keywords?: any;
172
- right?: any;
173
- ord?: any;
174
- favorite?: any;
175
- tags?: any;
176
- user_email?: any;
177
- user_currency?: any;
178
- broker_count_campaigns?: any;
179
- broker_count_banners?: any;
180
- broker_count_banners_off?: any;
181
- domain_expire?: any;
182
- ssl_expire?: any;
183
- competitor?: any;
184
- competitor_ord?: any;
185
- pos_summary_up?: any;
186
- pos_summary_stay?: any;
187
- pos_summary_down?: any;
188
- pos_summary_avg?: any;
189
- pos_summary_visibility?: any;
190
- audit_server_location?: any;
191
- audit_auto_collect_pages?: number | null;
192
- audit_auto_collect_pages_limit?: number | null;
193
- indexing_searchers_keys?: unknown[] | null;
194
- watcher_types?: unknown[] | null;
195
- }> | undefined>;
196
- /**
197
- * Создать API запрос для добавления проекта
198
- */
199
- export declare const genApiAddProject: (client: Api.Client<Api.TV.Paths, true>) => Api.ClientRequest<Api.ClientRequestContext< paths, "/add/projects_2/projects/", true>, never, Omit<{
200
- url: components["schemas"]["TV.API.Types.UrlShort"];
201
- name?: string | null;
202
- tags?: unknown[] | null;
203
- folder_id?: number | null;
204
- on?: number | null;
205
- is_task?: boolean | null;
206
- }, "fields" | "filters" | "orders" | "fetch_style">, never>;