@topvisor/ui 1.3.5-3 → 1.3.5-5.0
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/.chunks/{core-DF7fuQev.es.js → core-CaWxDXrZ.es.js} +4 -4
- package/.chunks/{core-DF7fuQev.es.js.map → core-CaWxDXrZ.es.js.map} +1 -1
- package/.chunks/{core-BS_ygt0h.amd.js → core-DmO1i1Ua.amd.js} +2 -2
- package/.chunks/{core-BS_ygt0h.amd.js.map → core-DmO1i1Ua.amd.js.map} +1 -1
- package/.chunks/{datepicker-BYLW8X5k.amd.js → datepicker-CPrHVH4x.amd.js} +2 -2
- package/.chunks/{datepicker-BYLW8X5k.amd.js.map → datepicker-CPrHVH4x.amd.js.map} +1 -1
- package/.chunks/{datepicker-BVIBaChw.es.js → datepicker-J8Zg9mKt.es.js} +2 -2
- package/.chunks/{datepicker-BVIBaChw.es.js.map → datepicker-J8Zg9mKt.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-D5DOxBQO.es.js → dialog_selectorRegions-DoEjgXtb.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-D5DOxBQO.es.js.map → dialog_selectorRegions-DoEjgXtb.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-CaR2-Qo2.amd.js → dialog_selectorRegions-DzufTzj9.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-CaR2-Qo2.amd.js.map → dialog_selectorRegions-DzufTzj9.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-B5rYBKgA.amd.js → dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-B5rYBKgA.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd.js.map} +1 -1
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CPByl0SB.es.js → dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js} +2 -2
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CPByl0SB.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js.map} +1 -1
- package/.chunks/{forms-BrdvrjiZ.es.js → forms-COXAfg9G.es.js} +53 -51
- package/.chunks/{forms-BrdvrjiZ.es.js.map → forms-COXAfg9G.es.js.map} +1 -1
- package/.chunks/{forms-CzUjrBXG.amd.js → forms-DXX5M4DO.amd.js} +3 -3
- package/.chunks/{forms-CzUjrBXG.amd.js.map → forms-DXX5M4DO.amd.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js +199 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-BNr8VcFM.es.js → menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-BNr8VcFM.es.js.map → menu.vue_vue_type_style_index_0_lang-BiyxTfdE.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-jnHbXDIR.amd.js → menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-jnHbXDIR.amd.js.map → menu.vue_vue_type_style_index_0_lang-D3OAqOqX.amd.js.map} +1 -1
- package/.chunks/{notice-CzWMWg_D.amd.js → notice-CSGn_jTM.amd.js} +2 -2
- package/.chunks/{notice-CzWMWg_D.amd.js.map → notice-CSGn_jTM.amd.js.map} +1 -1
- package/.chunks/{notice-BPgkjMG1.es.js → notice-P7CXfEuX.es.js} +2 -2
- package/.chunks/{notice-BPgkjMG1.es.js.map → notice-P7CXfEuX.es.js.map} +1 -1
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js +36 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +1 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js +2 -0
- package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +1 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-XMwkQHNU.es.js → page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js} +4 -4
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-XMwkQHNU.es.js.map → page.vue_vue_type_script_setup_true_lang-D9m45rLs.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-C-BJRiFc.amd.js → page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js} +2 -2
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-C-BJRiFc.amd.js.map → page.vue_vue_type_script_setup_true_lang-DHPOnLj5.amd.js.map} +1 -1
- package/.chunks/popup-CF4k7j3U.amd.js +2 -0
- package/.chunks/popup-CF4k7j3U.amd.js.map +1 -0
- package/.chunks/{popup-do4HUI7u.es.js → popup-G7FYKscC.es.js} +116 -90
- package/.chunks/popup-G7FYKscC.es.js.map +1 -0
- package/.chunks/{utils-B6aJagiK.es.js → utils-CWm0zAtM.es.js} +3 -3
- package/.chunks/{utils-B6aJagiK.es.js.map → utils-CWm0zAtM.es.js.map} +1 -1
- package/.chunks/{utils-BgVG2kmp.amd.js → utils-D505nRsu.amd.js} +2 -2
- package/.chunks/{utils-BgVG2kmp.amd.js.map → utils-D505nRsu.amd.js.map} +1 -1
- package/.chunks/{utils-BqT8hS8L.amd.js → utils-DmxcQpWA.amd.js} +2 -2
- package/.chunks/{utils-BqT8hS8L.amd.js.map → utils-DmxcQpWA.amd.js.map} +1 -1
- package/.chunks/{utils-DyhMNhnz.es.js → utils-Rbz9mxy6.es.js} +2 -2
- package/.chunks/{utils-DyhMNhnz.es.js.map → utils-Rbz9mxy6.es.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CVsiIZz5.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CVsiIZz5.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-BU-FdL6d.amd.js.map} +1 -1
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Bo064qPK.es.js → widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js} +2 -2
- package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Bo064qPK.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-TVpBXc9F.es.js.map} +1 -1
- package/assets/forms.css +1 -1
- package/assets/listItem.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.js +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.js +5 -5
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.js +2 -2
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +387 -388
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.js +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +39 -34
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +24 -20
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +26 -25
- package/project/project.js.map +1 -1
- package/src/api/api/types/ext.d.ts +2 -2
- package/src/components/forms/button/types.d.ts +6 -0
- package/src/components/forms/input/input.vue.d.ts +1 -1
- package/src/components/forms/input/types.d.ts +1 -1
- package/src/components/forms/inputDate/inputDate.vue.d.ts +1 -1
- package/src/components/formsExt/libs/optionGroup/types.d.ts +1 -1
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +3 -2
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +2 -0
- package/src/components/formsExt/selector2/types.d.ts +18 -1
- package/src/components/formsExt/selector2/utils.d.ts +1 -0
- package/src/components/popup/lib/popup.d.ts +14 -2
- package/src/components/popup/lib/worker.d.ts +1 -1
- package/src/components/popup/popup/opener/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/opener/types.d.ts +51 -0
- package/src/components/popup/popup/opener.vue.d.ts +1 -1
- package/src/components/popup/popup/types.d.ts +1 -45
- package/src/components/project/tagSelector/utils/el.d.ts +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.js +2 -2
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.js +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.js +3 -3
- package/utils/string.amd.js +1 -1
- package/utils/string.js +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DZ6ExJKC.es.js +0 -192
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DZ6ExJKC.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_sniT1lq.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_sniT1lq.amd.js.map +0 -1
- package/.chunks/popup-UOJ-t8-v.amd.js +0 -2
- package/.chunks/popup-UOJ-t8-v.amd.js.map +0 -1
- package/.chunks/popup-do4HUI7u.es.js.map +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Item, Props } from '../types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
+
import { ITEM_ID_NEW } from '../utils';
|
|
3
4
|
export type API = ReturnType<typeof useAPI>;
|
|
4
5
|
export declare const useAPI: (api: Props["api"], apiSetSearchParams: Props["apiSetSearchParams"], minLength: number, useCache: Props["useCache"]) => {
|
|
5
6
|
apiRequest: Api.ClientRequest<any, undefined, Api.Params<any, undefined, any, Record<string, any>>, Api.ModelFields<any> | undefined> | Api.ClientRequestCustom<any, any, any> | undefined;
|
|
6
7
|
items: Ref<{
|
|
7
8
|
[x: string]: any;
|
|
8
|
-
id: number |
|
|
9
|
+
id: number | ITEM_ID_NEW;
|
|
9
10
|
name: string;
|
|
10
11
|
}[], Item[] | {
|
|
11
12
|
[x: string]: any;
|
|
12
|
-
id: number |
|
|
13
|
+
id: number | ITEM_ID_NEW;
|
|
13
14
|
name: string;
|
|
14
15
|
}[]>;
|
|
15
16
|
isLoading: Ref<boolean, boolean>;
|
|
@@ -4,7 +4,7 @@ import { API } from './useAPI';
|
|
|
4
4
|
/**
|
|
5
5
|
* Функционал поиска
|
|
6
6
|
*/
|
|
7
|
-
export declare const useMenu: (model: Ref<Props["modelValue"]>, items: Ref<Props["items"]>, multiselect: Props["multiselect"], appendAllValue: Ref<Props["appendAllValue"]>, appendSearchToResult: Ref<Props["appendSearchToResult"]>, searchType: Ref<Props["searchType"]>, minLength: number, api: API) => {
|
|
7
|
+
export declare const useMenu: (model: Ref<Props["modelValue"]>, emits: ReturnType<typeof defineEmits>, items: Ref<Props["items"]>, multiselect: Props["multiselect"], appendAllValue: Ref<Props["appendAllValue"]>, appendSearchToResult: Ref<Props["appendSearchToResult"]>, searchType: Ref<Props["searchType"]>, minLength: number, api: API) => {
|
|
8
8
|
searchText: Ref<string, string>;
|
|
9
9
|
resetSearch: () => void;
|
|
10
10
|
genIsShort: () => boolean;
|
|
@@ -20,8 +20,10 @@ declare function __VLS_template(): {
|
|
|
20
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
21
|
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
22
|
"update:modelValue": (value: Item | Item[]) => any;
|
|
23
|
+
appendItem: (item: Item) => any;
|
|
23
24
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
25
|
"onUpdate:modelValue"?: ((value: Item | Item[]) => any) | undefined;
|
|
26
|
+
onAppendItem?: ((item: Item) => any) | undefined;
|
|
25
27
|
}>, {
|
|
26
28
|
size: Size;
|
|
27
29
|
items: Item[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Size } from '../../forms/helpers';
|
|
2
2
|
import { Props as ButtonProps } from '../../forms/button/types';
|
|
3
|
+
import { Props as PopupProps } from '../../popup/popup/types';
|
|
4
|
+
import { ITEM_ID_NEW } from './utils';
|
|
3
5
|
export interface Props {
|
|
4
6
|
/**
|
|
5
7
|
* Выбранный элемент
|
|
@@ -11,6 +13,10 @@ export interface Props {
|
|
|
11
13
|
* Список вариантов для выбора
|
|
12
14
|
*
|
|
13
15
|
* При работе с api, всегда выводится перед результатами api
|
|
16
|
+
*
|
|
17
|
+
* Используйте либо `items` либо `api`, либо оба параметра в зависимости от задачи
|
|
18
|
+
*
|
|
19
|
+
* Не указывайте одновременно `items` и `api` запрос на получение тех же `items`, в этом нет смысла
|
|
14
20
|
*/
|
|
15
21
|
items?: Item[];
|
|
16
22
|
title?: string;
|
|
@@ -23,6 +29,7 @@ export interface Props {
|
|
|
23
29
|
modificator?: string;
|
|
24
30
|
size?: Size;
|
|
25
31
|
isError?: boolean;
|
|
32
|
+
openByFocus?: PopupProps['openByFocus'];
|
|
26
33
|
/**
|
|
27
34
|
* Тип поиска по элементам
|
|
28
35
|
*
|
|
@@ -73,6 +80,8 @@ export interface Props {
|
|
|
73
80
|
useCache?: boolean;
|
|
74
81
|
/**
|
|
75
82
|
* Добавить в результаты item = {id:null, name:search}, где search - введенная строка в поле поиска
|
|
83
|
+
*
|
|
84
|
+
* При добавлении элемента вызывает emit `appendItem`
|
|
76
85
|
*/
|
|
77
86
|
appendSearchToResult?: boolean;
|
|
78
87
|
/**
|
|
@@ -136,6 +145,14 @@ export interface Slots {
|
|
|
136
145
|
item: Item;
|
|
137
146
|
}): any;
|
|
138
147
|
}
|
|
148
|
+
export type Emits = {
|
|
149
|
+
/**
|
|
150
|
+
* Был добавлен новый элемент через поле поиска
|
|
151
|
+
*
|
|
152
|
+
* @see `props.appendSearchToResult`
|
|
153
|
+
*/
|
|
154
|
+
'appendItem': [item: Item];
|
|
155
|
+
};
|
|
139
156
|
export interface PropsItemMulti {
|
|
140
157
|
id: Item['id'];
|
|
141
158
|
name: Item['name'];
|
|
@@ -155,7 +172,7 @@ export interface Item {
|
|
|
155
172
|
*
|
|
156
173
|
* Если null - объект для добавления, не имеет свой id
|
|
157
174
|
*/
|
|
158
|
-
id: number |
|
|
175
|
+
id: number | typeof ITEM_ID_NEW;
|
|
159
176
|
name: string;
|
|
160
177
|
[propName: string]: any;
|
|
161
178
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as Component } from '../../component';
|
|
2
|
-
import { OpenerProps } from '../popup/types';
|
|
2
|
+
import { OpenerProps } from '../popup/opener/types';
|
|
3
3
|
export interface PopupOptions {
|
|
4
4
|
popup?: string;
|
|
5
5
|
id?: string;
|
|
@@ -9,6 +9,7 @@ export interface PopupOptions {
|
|
|
9
9
|
posBy?: 'left' | 'right' | 'fixed' | Element;
|
|
10
10
|
frontSelector?: string;
|
|
11
11
|
invertX?: boolean;
|
|
12
|
+
openByFocus?: boolean;
|
|
12
13
|
openByHover?: boolean;
|
|
13
14
|
useOriginal?: boolean;
|
|
14
15
|
transitionDuration?: number;
|
|
@@ -35,6 +36,13 @@ export declare class TopLibPopup<T extends Record<string, any> | undefined = und
|
|
|
35
36
|
elPopupBody: HTMLElement | undefined | null;
|
|
36
37
|
elPopupFooter: HTMLElement | undefined | null;
|
|
37
38
|
elFront: HTMLElement | undefined | null;
|
|
39
|
+
/**
|
|
40
|
+
* Для openerIsInput фокусировка срабатывает при входе в поле ввода
|
|
41
|
+
*
|
|
42
|
+
* Фкусировка на сам Popup не производится
|
|
43
|
+
*
|
|
44
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/combobox_role
|
|
45
|
+
*/
|
|
38
46
|
openerIsInput: boolean;
|
|
39
47
|
popupParent: TopLibPopup | undefined;
|
|
40
48
|
$: JQuery<HTMLElement> | undefined;
|
|
@@ -66,9 +74,13 @@ export declare class TopLibPopup<T extends Record<string, any> | undefined = und
|
|
|
66
74
|
*/
|
|
67
75
|
private onMousedown;
|
|
68
76
|
/**
|
|
69
|
-
*
|
|
77
|
+
* Произошла фокусировка на этот popup
|
|
70
78
|
*/
|
|
71
79
|
private onFocus;
|
|
80
|
+
/**
|
|
81
|
+
* Закрыть другие Popup при фокусе на элемент формы в текущем
|
|
82
|
+
*/
|
|
83
|
+
private onFocusCloseOthers;
|
|
72
84
|
/**
|
|
73
85
|
* Закрыть Popup при отведении мыши
|
|
74
86
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OpenerProps } from './types';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
declare const _default: <T extends Record<string, any> | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & OpenerProps<T> & Partial<{}>> & PublicProps;
|
|
5
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
6
|
+
attrs: any;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => VNode & {
|
|
12
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface OpenerProps<T extends Record<string, any> | undefined = undefined> {
|
|
2
|
+
/**
|
|
3
|
+
* id компонента Popup, который необходимо открыть
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Положение Popup относительно кнопки, которая его открывает
|
|
8
|
+
*
|
|
9
|
+
* - 0 - по коориднатам кнопки
|
|
10
|
+
* - 1 - top
|
|
11
|
+
* - 2 - right
|
|
12
|
+
* - 3 - botton
|
|
13
|
+
* - 4 - left
|
|
14
|
+
*/
|
|
15
|
+
pos?: '0' | '1' | '2' | '3' | '4';
|
|
16
|
+
/**
|
|
17
|
+
* Добавить клювик
|
|
18
|
+
*/
|
|
19
|
+
notch?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Открывать / закрывать при фокусировке
|
|
22
|
+
*
|
|
23
|
+
* @remarks Рекомендуется включать при использовании поля ввода
|
|
24
|
+
*/
|
|
25
|
+
openByFocus?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Открывать / закрывать при наведении / отведении мыши
|
|
28
|
+
*/
|
|
29
|
+
openByHover?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Способ привязки позиционирования меню
|
|
32
|
+
*
|
|
33
|
+
* left/right - левый/правый край родителя
|
|
34
|
+
*
|
|
35
|
+
* fixed - по документу
|
|
36
|
+
*/
|
|
37
|
+
posBy?: 'fixed' | 'left' | 'right';
|
|
38
|
+
data?: T;
|
|
39
|
+
}
|
|
40
|
+
export declare const pos: {
|
|
41
|
+
readonly 0: "0";
|
|
42
|
+
readonly 1: "1";
|
|
43
|
+
readonly 2: "2";
|
|
44
|
+
readonly 3: "3";
|
|
45
|
+
readonly 4: "4";
|
|
46
|
+
};
|
|
47
|
+
export declare const posBy: {
|
|
48
|
+
readonly fixed: "fixed";
|
|
49
|
+
readonly left: "left";
|
|
50
|
+
readonly right: "right";
|
|
51
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenerProps } from './types';
|
|
1
|
+
import { OpenerProps } from './opener/types';
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any> | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & OpenerProps<T> & Partial<{}>> & PublicProps;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OpenerProps } from './opener/types';
|
|
1
2
|
export interface Props<T extends Record<string, any> | undefined = undefined> extends OpenerProps<T> {
|
|
2
3
|
/**
|
|
3
4
|
* Уникальный id компонента
|
|
@@ -49,39 +50,6 @@ export type Emits<T extends Record<string, any> | undefined = undefined> = {
|
|
|
49
50
|
*/
|
|
50
51
|
scrollContentList: [e: Event];
|
|
51
52
|
};
|
|
52
|
-
export interface OpenerProps<T extends Record<string, any> | undefined = undefined> {
|
|
53
|
-
/**
|
|
54
|
-
* id компонента Popup, который необходимо открыть
|
|
55
|
-
*/
|
|
56
|
-
id: string;
|
|
57
|
-
/**
|
|
58
|
-
* Положение Popup относительно кнопки, которая его открывает
|
|
59
|
-
*
|
|
60
|
-
* - 0 - по коориднатам кнопки
|
|
61
|
-
* - 1 - top
|
|
62
|
-
* - 2 - right
|
|
63
|
-
* - 3 - botton
|
|
64
|
-
* - 4 - left
|
|
65
|
-
*/
|
|
66
|
-
pos?: '0' | '1' | '2' | '3' | '4';
|
|
67
|
-
/**
|
|
68
|
-
* Добавить клювик
|
|
69
|
-
*/
|
|
70
|
-
notch?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Открывать / закрывать при наведении / отведении мыши
|
|
73
|
-
*/
|
|
74
|
-
openByHover?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Способ привязки позиционирования меню
|
|
77
|
-
*
|
|
78
|
-
* left/right - левый/правый край родителя
|
|
79
|
-
*
|
|
80
|
-
* fixed - по документу
|
|
81
|
-
*/
|
|
82
|
-
posBy?: 'fixed' | 'left' | 'right';
|
|
83
|
-
data?: T;
|
|
84
|
-
}
|
|
85
53
|
export interface ListItemProps {
|
|
86
54
|
/**
|
|
87
55
|
* Тип элемента списка
|
|
@@ -97,15 +65,3 @@ export interface ListItemProps {
|
|
|
97
65
|
*/
|
|
98
66
|
closeByClick?: boolean;
|
|
99
67
|
}
|
|
100
|
-
export declare const pos: {
|
|
101
|
-
readonly 0: "0";
|
|
102
|
-
readonly 1: "1";
|
|
103
|
-
readonly 2: "2";
|
|
104
|
-
readonly 3: "3";
|
|
105
|
-
readonly 4: "4";
|
|
106
|
-
};
|
|
107
|
-
export declare const posBy: {
|
|
108
|
-
readonly fixed: "fixed";
|
|
109
|
-
readonly left: "left";
|
|
110
|
-
readonly right: "right";
|
|
111
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { OpenerProps as PopupOpenerProps } from '../../../popup/popup/types';
|
|
2
|
+
import { OpenerProps as PopupOpenerProps } from '../../../popup/popup/opener/types';
|
|
3
3
|
import { Props as TagSelectorOpenerProps } from '../popupOpener/types';
|
|
4
4
|
/**
|
|
5
5
|
* Сгенерировать элемент для открытия popup с выбором тегов
|
package/tabsView/tabsView.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","vue","../.chunks/forms-
|
|
1
|
+
define(["require","exports","vue","../.chunks/forms-DXX5M4DO.amd","../utils/route.amd","../.chunks/store-YRW59xEF.amd","../.chunks/listItem.vue_vue_type_script_setup_true_lang-DzV225TL.amd","../.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd","../utils/system.amd","../require/css.amd!../assets/tabsView.css","../require/css.amd!../assets/popupHint.css"],(function(J,h,e,m,f,g,_,G,L){"use strict";if(typeof e>"u")var e=window.Vue;const w=(o,n)=>`top:${String(o)}:${n}`,b={loadLocalStorge:(o,n)=>{if(!n.$id)return;const t=w(o,n.$id);try{const a=JSON.parse(localStorage.getItem(t));typeof a==typeof n[o]&&(n[o]=a)}catch{console.warn(new Error(`В localStorage[${t}] не корректный json`))}},addSaverLocalStorge:(o,n)=>{if(!n.$id)return;const t=w(o,n.$id);e.watch(()=>n[o],()=>{localStorage.setItem(t,JSON.stringify(n[o]))},{immediate:!0})}},k=new Set;addEventListener("popstate",o=>{k.forEach(n=>n(o))});const V=Symbol(),E=(o,n)=>{const t=g.defineStore(V,()=>{const a=e.computed(()=>o.showMenuInPopup??m.Core.state.isMobile),i=e.computed(()=>o.pageMod),u=e.ref(!1),r=e.ref(void 0),l=e.ref(!0);return{showMenuInPopup:a,pageMod:i,isShort:u,activeItemName:n,component:r,scrollable:l}},o.idState);if(o.isShortable){const a="isShort";b.loadLocalStorge(a,t),b.addSaverLocalStorge(a,t)}if(t.$id){const a=i=>{n.value=f.getHash(t.$id)};k.add(a)}return t},S=()=>g.useStore(V),P={key:1,class:"top-ellipsis"},v=e.defineComponent({__name:"menuItem",props:{name:{},href:{},icon:{},disabled:{type:Boolean},component:{default:void 0},scrollable:{type:Boolean,default:!0}},setup(o){const n=o,t=S(),a=e.computed(()=>n.name&&t.$id?f.genHash(t.$id,n.name):n.href),i=e.computed(()=>t.showMenuInPopup?_._sfc_main$1:a?"a":"button"),u=r=>{!n.href&&a.value&&r.preventDefault(),n.name&&(t.activeItemName=n.name)};return(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{target:"_self",class:e.normalizeClass({"top-tabsView_menuItem":!e.unref(t).showMenuInPopup,"top-active":r.name&&e.unref(t).activeItemName===r.name,"top-disabled":r.disabled,"top-spa-disabled":!0}),href:a.value,"data-top-icon":r.icon||void 0,disabled:r.disabled||void 0,onClick:u},{default:e.withCtx(()=>[e.unref(t).showMenuInPopup?e.renderSlot(r.$slots,"default",{key:0}):r.$slots.default&&!e.unref(t).isShort?(e.openBlock(),e.createElementBlock("span",P,[e.renderSlot(r.$slots,"default")])):e.createCommentVNode("",!0)]),_:3},8,["class","href","data-top-icon","disabled"]))}}),B=o=>(o==null?void 0:o.name)==="AsyncComponentWrapper"&&!(o!=null&&o.__asyncResolved),T=async(o,n)=>{(o==null?void 0:o.name)==="AsyncComponentWrapper"&&(o!=null&&o.__asyncResolved||(o.__asyncLoader(),await L.sleepWhile(()=>n()&&B(o),200)))},z={class:"top-tabsView_menuOpener"},H=["data-top-icon"],R={class:"top-ellipsis"},O={class:"top-tabsView_menuList"},D={key:0,class:"top-tabsView_menuFooter"},K=e.defineComponent({__name:"menu",props:e.mergeModels({isShortable:{type:Boolean},isLoading:{type:Boolean}},{isLoading:{},isLoadingModifiers:{}}),emits:["update:isLoading"],setup(o){const n=e.useModel(o,"isLoading"),t=S(),a=e.useSlots(),i=new Map,u=()=>{if(!a.default)return;const c=a.default({}).find(s=>s.key==="_menu");c&&r(c.children)},r=c=>{c.forEach(s=>{var I,$,N,C;if(s.type.__name&&s.type.__name!==v.__name)return;if(!s.type.__name&&typeof s.children=="object"){r(s.children);return}if(!((I=s.props)!=null&&I.name)||($=s.props)!=null&&$.disabled)return;const M={title:((C=(N=s.children).default)==null?void 0:C.call(N)[0].children).trim(),icon:s.props.icon,component:s.props.component?e.markRaw(s.props.component):v.props.component.default,scrollable:s.props.scrollable??v.props.scrollable.default};i.set(s.props.name,M)})},l=e.ref(null);let d=0;e.watch(()=>t.activeItemName,async()=>{const c=++d;if(i.size===0&&u(),i.size===0){t.activeItemName="";return}if(l.value=i.get(t.activeItemName)??null,!l.value&&t.$id){const s=f.getHash(t.$id);if(l.value=i.get(s)??null,l.value){t.activeItemName=s;return}}if(!l.value){t.activeItemName=i.keys().next().value;return}if(l.value.component===t.component){n.value=!1;return}t.$id&&f.setHash(t.$id,t.activeItemName,!1),n.value=!0,await T(l.value.component,()=>c===d),c===d&&(t.scrollable=l.value.scrollable,t.component=l.value.component,l.value&&!t.component&&console.warn(`Компонент вкладки ${t.activeItemName} не найден. Добавьте props.component для пункта меню ${t.activeItemName}.`))},{immediate:!0});const p=e.ref();let y;return e.onMounted(()=>{y=new ResizeObserver(()=>{p.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top",p.value.offsetHeight+"px")}),y.observe(p.value)}),e.onUnmounted(()=>{y.disconnect()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:p,class:e.normalizeClass({"top-tabsView_menu":!0,"top-tabsView_menu-inPopup_0":!e.unref(t).showMenuInPopup,"top-tabsView_menu-inPopup_1":e.unref(t).showMenuInPopup,"top-tabsView_menu-short":e.unref(t).isShort&&!e.unref(t).showMenuInPopup})},[e.unref(t).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0},{opener:e.withCtx(()=>[e.createElementVNode("div",z,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-tabsView_menuOpenerActiveItem","data-top-icon":l.value.icon},[e.createElementVNode("span",R,e.toDisplayString(l.value.title),1)],8,H)):e.createCommentVNode("",!0),s[1]||(s[1]=e.createElementVNode("div",{class:"top-tabsView_menuOpenerIcon","data-top-icon":""},null,-1))])]),contentList:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",O,[e.renderSlot(c.$slots,"default")]),c.isShortable?(e.openBlock(),e.createElementBlock("div",D,[c.isShortable?(e.openBlock(),e.createBlock(v,{key:0,icon:e.unref(t).isShort?"":"",onClick:s[0]||(s[0]=M=>e.unref(t).isShort=!e.unref(t).isShort)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t).isShort?"":"Свернуть"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],2))}}),j=e.defineComponent({__name:"tabsView",props:e.mergeModels({modelValue:{},pageMod:{type:Boolean},showMenuInPopup:{type:Boolean,default:void 0},isShortable:{type:Boolean,default:!1},idState:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,t=e.useModel(o,"modelValue"),a=E(n,t),i=Math.random();n.pageMod&&m.Core.state.documentClassModificators.set(i,"top-hasTabsViewPageMod"),e.onUnmounted(()=>{n.pageMod&&m.Core.state.documentClassModificators.delete(i),a.$id&&f.delHash(a.$id,a.activeItemName,!0)});const u=e.ref(),r=e.ref(!1);return e.watch([u,()=>a.component],()=>{r.value=B(a.component)},{immediate:!0}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabsView":!0,"top-tabsView-pageMod":n.pageMod,"top-tabsView-inPopup":e.unref(a).showMenuInPopup})},[e.createVNode(K,{isShortable:l.isShortable,isLoading:r.value,"onUpdate:isLoading":d[0]||(d[0]=p=>r.value=p)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"menu")]),_:3},8,["isShortable","isLoading"]),e.createElementVNode("div",{class:e.normalizeClass({"top-tabsView_contents":!0,"top-tabsView_contents-isLoading":r.value,"top-tabsView_contents-noScrollable":!e.unref(a).scrollable})},[r.value?(e.openBlock(),e.createBlock(m.TopLoadbar,{key:0})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).component),{ref_key:"componentRef",ref:u},null,512))],1024))],2)],2))}}),q={},A={class:"top-tabsView_menuDelimeter"};function F(o,n){return e.openBlock(),e.createElementBlock("div",A)}const U=m._export_sfc(q,[["render",F]]),W=e.defineComponent({__name:"menuTitle",props:{isSubtitle:{type:Boolean}},setup(o){const n=S();return(t,a)=>e.unref(n).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{key:0,type:"title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.unref(n).isShort?(e.openBlock(),e.createBlock(U,{key:1})):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"top-tabsView_menuTitle":!0,"top-tabsView_menuTitle-subtitle":t.isSubtitle})},[e.renderSlot(t.$slots,"default")],2))}});h.TopTabsView=j,h.TopTabsViewMenuItem=v,h.TopTabsViewMenuTitle=W,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=tabsView.amd.js.map
|
package/tabsView/tabsView.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
5
|
|
|
6
6
|
import { watch as k, computed as I, ref as f, defineComponent as M, createBlock as m, openBlock as l, resolveDynamicComponent as O, normalizeClass as S, unref as i, withCtx as b, renderSlot as v, createElementBlock as p, createCommentVNode as y, mergeModels as z, useModel as D, useSlots as U, onMounted as q, onUnmounted as H, createElementVNode as g, toDisplayString as C, Fragment as G, createTextVNode as Q, markRaw as X, createVNode as Y, KeepAlive as Z } from "vue";
|
|
7
|
-
import { C as V, T as x, g as ee } from "../.chunks/forms-
|
|
7
|
+
import { C as V, T as x, g as ee } from "../.chunks/forms-COXAfg9G.es.js";
|
|
8
8
|
import { getHash as K, genHash as te, setHash as oe, delHash as ae } from "../utils/route.js";
|
|
9
9
|
import { u as se, d as ne } from "../.chunks/store-CX_6ZXhO.es.js";
|
|
10
|
-
import {
|
|
10
|
+
import { a as A, _ as ie } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang--W1RouXP.es.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { sleepWhile as re } from "../utils/system.js";
|
|
13
13
|
const j = (t, o) => `top:${String(t)}:${o}`, le = (t, o) => {
|
package/utils/clipboard.amd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DXX5M4DO.amd"],(function(l,t,e){"use strict";if(typeof r>"u")var r=window.Vue;async function a(o,n=!1){let i=!1;return navigator.clipboard&&(await navigator.clipboard.writeText(o),i=!0,n&&e.Core.notice(e.useI18n().Common.Copied_to_clipboard+"","info")),i}async function u(o){let n=!1;e.isSafari()||(n=await a(o));const i='<a href="'+o+'" target="_blank">'+o+"</a>",c=e.useI18n().Common.Copied_to_clipboard+`:
|
|
2
2
|
`+i;if(n)e.Core.notice(c,"info");else{if(!navigator.clipboard){e.Core.notice(e.useI18n().Common.Cannot_copied_to_clipboard+`:
|
|
3
3
|
`+e.useI18n().Common.Copy_guest_link_manually+`
|
|
4
4
|
`+i,"error");return}const d={onclick:()=>a(o).then(()=>e.Core.notice(c,"info")),default:e.useI18n().Common.Copy+"",class:"copy"};await e.Core.notice(e.useI18n().Common.Guest_link_created+`
|
package/utils/clipboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as t, u as a, b as s } from "../.chunks/forms-
|
|
1
|
+
import { C as t, u as a, b as s } from "../.chunks/forms-COXAfg9G.es.js";
|
|
2
2
|
async function r(o, e = !1) {
|
|
3
3
|
let i = !1;
|
|
4
4
|
return navigator.clipboard && (await navigator.clipboard.writeText(o), i = !0, e && t.notice(a().Common.Copied_to_clipboard + "", "info")), i;
|
package/utils/date.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DXX5M4DO.amd"],(function(n,e,t){"use strict";if(typeof a>"u")var a=window.Vue;e.dateFormat=t.dateFormat,e.dateToString=t.dateToString,e.dateUnformat=t.dateUnformat,e.genDate=t.genDate,e.genDateMoscow=t.genDateMoscow,e.genUserDate=t.genUserDate,e.getDayOfWeek=t.getDayOfWeek,e.stringToDate=t.stringToDate,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=date.amd.js.map
|
package/utils/date.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as t, K as s, P as o, N as r, O as g, M as n, J as D, L as d } from "../.chunks/forms-
|
|
1
|
+
import { e as t, K as s, P as o, N as r, O as g, M as n, J as D, L as d } from "../.chunks/forms-COXAfg9G.es.js";
|
|
2
2
|
export {
|
|
3
3
|
t as dateFormat,
|
|
4
4
|
s as dateToString,
|
package/utils/device.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DXX5M4DO.amd"],(function(a,e,i){"use strict";if(typeof l>"u")var l=window.Vue;e.get$scroll=i.get$scroll,e.getCommandKeyLabel=i.getCommandKeyLabel,e.getElsScroll=i.getElsScroll,e.getOS=i.getOS,e.getOSAsync=i.getOSAsync,e.getScrollTop=i.getScrollTop,e.isApp=i.isApp,e.isMacOS=i.isMacOS,e.isMobile=i.isMobile,e.isRetina=i.isRetina,e.isSafari=i.isSafari,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=device.amd.js.map
|
package/utils/device.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as e, x as l, A as t, B as i, D as o, y as g, v as r, w as S, t as c, s as p, b } from "../.chunks/forms-
|
|
1
|
+
import { z as e, x as l, A as t, B as i, D as o, y as g, v as r, w as S, t as c, s as p, b } from "../.chunks/forms-COXAfg9G.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as get$scroll,
|
|
4
4
|
l as getCommandKeyLabel,
|
package/utils/lodash.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DXX5M4DO.amd"],(function(u,e,n){"use strict";if(typeof i>"u")var i=window.Vue;e.cloneDeep=n.cloneDeep,e.debounce=n.debounce,e.memoize=n.memoize,e.merge=n.merge,e.throttle=n.throttle,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=lodash.amd.js.map
|
package/utils/lodash.js
CHANGED
package/utils/price.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DXX5M4DO.amd"],(function(a,t,i){"use strict";if(typeof n>"u")var n=window.Vue;const u=(c,e,o=i.Core.state.currency)=>{e=e??i.useI18nLang().value;let r=c.toLocaleString(e,{style:"currency",currency:o,maximumFractionDigits:2});return r=r.replace(",","."),r};t.genPrice=u,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=price.amd.js.map
|
package/utils/price.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as a, a as o } from "../.chunks/forms-
|
|
1
|
+
import { C as a, a as o } from "../.chunks/forms-COXAfg9G.es.js";
|
|
2
2
|
const i = (t, e, c = a.state.currency) => {
|
|
3
3
|
e = e ?? o().value;
|
|
4
4
|
let r = t.toLocaleString(e, { style: "currency", currency: c, maximumFractionDigits: 2 });
|
package/utils/searchers.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","../.chunks/forms-
|
|
1
|
+
define(["require","exports","../.chunks/forms-DXX5M4DO.amd","../.chunks/core-DmO1i1Ua.amd","vue","../.chunks/dialogs.vue_vue_type_script_setup_true_lang-8KsNy0Bd.amd"],(function(b,c,g,f,r,d){"use strict";if(typeof r>"u")var r=window.Vue;const s={0:"Yandex",20:"Yandex.com",21:"Yandex.com.tr",1:"Google",4:"YouTube",5:"Bing",7:"Seznam",8:"AppStore",9:"GooglePlay",101:"VK",102:"Facebook",103:"Twitter"},t=a=>{let e="";switch(typeof a=="string"&&(a=Number(a)),a){case 0:e="";break;case 20:case 21:e="";break;case 1:e="";break;case 2:e="";break;case 3:e="";break;case 4:e="";break;case 5:e="";break;case 6:e="";break;case 7:e="";break;case 8:e="";break;case 9:e="";break;case null:e="";break}return e},n=a=>{let e="";switch(typeof a=="string"&&(a=Number(a)),a%10){case 0:e="";break;case 1:e="";break;case 2:e="";break}return e},i=(a,e)=>{switch(typeof a=="string"&&(a=Number(a)),a*1){case 1:case 4:case 5:case 6:case 8:case 9:return e}return""},u=(a,e,k)=>{switch(e*1){case 0:switch(k*1){case 2:a=`"${a}"`;break;case 3:a=`"!${a}"`;break;case 5:a=`"[${a}]"`;break;case 6:a=`"[!${a}]"`;break}break;case 1:a=`[${a}]`;break}return a},o=(a,e)=>{switch(e===null&&(e=6),a){case 1:e=3;break;case 2:e=2;break;case 5:e>1&&(e=1);break;default:[1,2,3,5,6].includes(e)||(e=3)}return e};c.genVolumeLabel=u,c.getDeviceGIcon=n,c.getLangLabel=i,c.getSearcherGIcon=t,c.prepareVolumeType=o,c.searchersNames=s,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=searchers.amd.js.map
|
package/utils/searchers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../.chunks/forms-
|
|
2
|
-
import "../.chunks/core-
|
|
1
|
+
import "../.chunks/forms-COXAfg9G.es.js";
|
|
2
|
+
import "../.chunks/core-CaWxDXrZ.es.js";
|
|
3
3
|
import "vue";
|
|
4
|
-
import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-DvkvzHEY.es.js";
|
|
5
5
|
const k = {
|
|
6
6
|
0: "Yandex",
|
|
7
7
|
20: "Yandex.com",
|
package/utils/string.amd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(["require","exports","./check.amd","../.chunks/forms-
|
|
1
|
+
define(["require","exports","./check.amd","../.chunks/forms-DXX5M4DO.amd"],(function(N,c,h,u){"use strict";if(typeof p>"u")var p=window.Vue;const i=new RegExp(`^[^a-zа-я0-9_%#!?.:'"«»[\\](){} \\r\\n\\t<>&/+-]`,"i"),s=e=>{var a;const l=(a=e==null?void 0:e[0])==null?void 0:a.match(i);return{icon:l?e[0]:null,content:l?e.substring(1):e}},f=e=>{e+="";let l=0;if(!e.length)return l;for(let a=0;a<e.length;a++){const n=e.charCodeAt(a);l=(l<<5)-l+n,l=l&l}return l<0&&(l*=-1),l},d=e=>/^\w+:\/\/([\w-]+\.)+[\w-]+(:\d+)?(\/|$)/.test(e),g=e=>{let l=e+"";l=l.replace("-","–");let a=l.split("."),n=a[0],o=a.length>1?"."+a[1]:"";if(n.replace(/[+–]/,"").length<=4)return l;const r=/(\d+)(\d{3})/;for(;r.test(n);)n=n.replace(r,"$1 $2");return n+o},m=e=>e===void 0?"":e.replace(/\r\n|\r|\n/g,"<br>"),w=e=>typeof e=="string"&&e.trim()!==""&&!isNaN(Number(e)),C=(e,l=2,a=1e3,n="")=>{if(w(e))e=Number(e);else return String(e);const o=Math.pow(10,l);let r;return Math.abs(e)>Math.pow(a,3)?r=Math.round(e/Math.pow(a,3)*o)/o+" <small>G"+n+"</small>":Math.abs(e)>Math.pow(a,2)?r=Math.round(e/Math.pow(a,2)*o)/o+" <small>M"+n+"</small>":Math.abs(e)>a?r=Math.round(e/a*o)/o+" <small>K"+n+"</small>":r=Math.round(e*o)/o+"",r=r.replace(/^(-?\d+)(\d{3})/,"$1 $2"),r},M=(e,l,a=1)=>{if(e==null)return"";if(e+="",l==null||e.length<=l)return e;if(a===0)e=e.substr(e.length-l,l),e="..."+e;else if(a===1){const n=e.substr(0,l/2),o=e.substr(e.length-l/2,Math.ceil(l/2));e=n+"..."+o}else a===2&&(e=e.substr(0,l),e=e+"...");return e},b=(e,l,a,n)=>{if(u.useI18nLang().value==="en")return e===1?a:l;const o=e%100,r=e%10;return o>=5&&o<=20||r===0?l:r===1?a:r>=2&&r<=4?n:r>=5&&r<=9?l:n},E=e=>{if(u.useI18nLang().value!="ru"||e=="")return e;const l=e.split(" ");return $.map(l,function(a,n){a=a+"а",a=a.replace("оа","о"),a=a.replace("аяа","ой"),a=a.replace("шийа","шого"),a=a.replace("ыйа","ого"),a=a.replace("йа","я"),a=a.replace("ьа","я"),a=a.replace("яа","и"),a=a.replace("оваа","овой"),a=a.replace("аа","ы"),a=a.replace("кия","кого"),a=a.replace("каи","кой"),l[n]=a}),e=l.join(" "),e},R=e=>{const l={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"j",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"shch",ъ:"",ы:"y",ь:"",э:"e",ю:"u",я:"ya"},a=e.split(" ");return $.map(a,function(n,o){const r=[];for(let t=0;t<n.length;++t)r.push(l[n[t]]||l[n[t].toLowerCase()]==null&&n[t]||l[n[t].toLowerCase()].replace(/^(.)/,function(I){return I.toUpperCase()}));a[o]=r.join("")}),e=a.join(" "),e},k=e=>(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),e),A=(e,l)=>{let a=null;switch(l.operator){case"CONTAINS":case"REGEXP":try{let n=l.values[0];l.operator!="REGEXP"&&(n=n.replace(/([()\[\]])/g,"\\$1")),a=new RegExp("("+n+")","gi")}catch{return e}break}return e=e.replace(a,'<b class="found">$1</b>'),e},L=e=>{var l;return(l=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:l.map(a=>a.toLowerCase()).join("_")},S=e=>`/controller/file/?src=${"/cloud/common/flags/"+e.toUpperCase()+".svg"}`,y=e=>{const l=h.getDomainRegexp(),a="(([\\/?\\w&=%+#;:-]*(\\.\\w+)?))*",n=new RegExp(`(^|[\\s>(),])([a-z0-9а-яё_.]+@${l}${a})`,"gui");e=e.replace(n,'$1<a href="mailto:$2" target="_blank" rel="noopener">↑[$2]↓</a>');const o=new RegExp(`(^|[\\s>(),])(https?://)?(${l}${a})`,"gui");return e=e.replace(o,'$1<a href="√$2$3" target="_blank" rel="nofollow noopener">$2$3</a>'),e=e.replaceAll("√http","http"),e=e.replaceAll("√","http://"),e=e.replaceAll(/(↑\[|]↓)/g,""),e},v=e=>e.charAt(0).toUpperCase()+e.slice(1),T=(e=20)=>{const l="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890";let a="";for(let n=0;n<e;n++)a+=l[Math.floor(Math.random()*l.length)];return a};c.REGEXP_START_SYMBOL_ICON=i,c.addCommasWhite=g,c.addLinkTags=y,c.camelToSnakeCase=L,c.ellipsis=M,c.extractIconAndContent=s,c.genFlagLinkByCountryCode=S,c.genIntHash=f,c.getRandomHash=T,c.highlightHtml=A,c.htmlspecialchars=k,c.isUrl=d,c.nl2br=m,c.numberEnding=b,c.numberWithWord=C,c.rusToLatin=R,c.toCapitalize=v,c.toRoditPadej=E,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=string.amd.js.map
|
package/utils/string.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDomainRegexp as u } from "./check.js";
|
|
2
|
-
import { a as n } from "../.chunks/forms-
|
|
2
|
+
import { a as n } from "../.chunks/forms-COXAfg9G.es.js";
|
|
3
3
|
const s = new RegExp(`^[^a-zа-я0-9_%#!?.:'"«»[\\](){} \\r\\n\\t<>&/+-]`, "i"), g = (e) => {
|
|
4
4
|
var a;
|
|
5
5
|
const l = (a = e == null ? void 0 : e[0]) == null ? void 0 : a.match(s);
|