@topvisor/ui 1.0.42-TopSelector.2 → 1.0.42-TopSelector.4

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 (77) hide show
  1. package/.chunks/{core-CZLRhkk2.es.js → core-kP5TitXz.es.js} +4 -4
  2. package/.chunks/{core-CZLRhkk2.es.js.map → core-kP5TitXz.es.js.map} +1 -1
  3. package/.chunks/{datepicker-BZ-GKoJc.es.js → datepicker-yhtd7Tx4.es.js} +2 -2
  4. package/.chunks/{datepicker-BZ-GKoJc.es.js.map → datepicker-yhtd7Tx4.es.js.map} +1 -1
  5. package/.chunks/{dialog_selectorRegions-CR77RefG.es.js → dialog_selectorRegions-C7d9L2z3.es.js} +4 -4
  6. package/.chunks/{dialog_selectorRegions-CR77RefG.es.js.map → dialog_selectorRegions-C7d9L2z3.es.js.map} +1 -1
  7. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-sExyADFk.es.js → dialogs.vue_vue_type_script_setup_true_lang-ma6AxkKH.es.js} +2 -2
  8. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-sExyADFk.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-ma6AxkKH.es.js.map} +1 -1
  9. package/.chunks/{forms-1PEYT7sp.es.js → forms-CiEXUPjB.es.js} +5 -5
  10. package/.chunks/{forms-1PEYT7sp.es.js.map → forms-CiEXUPjB.es.js.map} +1 -1
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CXMPz7WD.es.js +184 -0
  12. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CXMPz7WD.es.js.map +1 -0
  13. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DUKoPDjZ.amd.js +2 -0
  14. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DUKoPDjZ.amd.js.map +1 -0
  15. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BYP0xpzD.es.js → menu.vue_vue_type_style_index_0_lang--iamwNSE.es.js} +2 -2
  16. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BYP0xpzD.es.js.map → menu.vue_vue_type_style_index_0_lang--iamwNSE.es.js.map} +1 -1
  17. package/.chunks/{notice-C505E22P.es.js → notice-D13FhiHA.es.js} +2 -2
  18. package/.chunks/{notice-C505E22P.es.js.map → notice-D13FhiHA.es.js.map} +1 -1
  19. package/.chunks/{page.vue_vue_type_script_setup_true_lang-_-EoskSt.es.js → page.vue_vue_type_script_setup_true_lang-B6YquNpa.es.js} +4 -4
  20. package/.chunks/{page.vue_vue_type_script_setup_true_lang-_-EoskSt.es.js.map → page.vue_vue_type_script_setup_true_lang-B6YquNpa.es.js.map} +1 -1
  21. package/.chunks/popup-C5-ffkMJ.amd.js.map +1 -1
  22. package/.chunks/{popup-Bh3WbTKH.es.js → popup-a5ndofEo.es.js} +3 -3
  23. package/.chunks/popup-a5ndofEo.es.js.map +1 -0
  24. package/.chunks/{utils-DEyMm4Iq.es.js → utils-DUw1K93-.es.js} +2 -2
  25. package/.chunks/{utils-DEyMm4Iq.es.js.map → utils-DUw1K93-.es.js.map} +1 -1
  26. package/.chunks/{utils-CMJHpNDX.es.js → utils-DvEz97O5.es.js} +3 -3
  27. package/.chunks/{utils-CMJHpNDX.es.js.map → utils-DvEz97O5.es.js.map} +1 -1
  28. package/assets/core.css +1 -1
  29. package/assets/forms.css +1 -1
  30. package/assets/formsExt.css +1 -1
  31. package/assets/project.css +1 -1
  32. package/charts/charts.js +1 -1
  33. package/components/formsExt/selector2/selector2.vue.d.ts +7 -173
  34. package/components/formsExt/selector2/types.d.ts +6 -0
  35. package/components/popup/alert/alert.vue.d.ts +1 -10
  36. package/components/popup/alert/types.d.ts +2 -2
  37. package/components/popup/confirm/confirm.vue.d.ts +1 -12
  38. package/components/popup/confirm/types.d.ts +1 -1
  39. package/components/popup/lib/popup.d.ts +5 -2
  40. package/components/popup/lib/worker.d.ts +2 -2
  41. package/components/popup/popup/opener.vue.d.ts +11 -17
  42. package/components/popup/popup/popup.vue.d.ts +30 -32
  43. package/components/popup/popup/types.d.ts +20 -11
  44. package/components/popup/prompt/prompt.vue.d.ts +1 -12
  45. package/components/popup/prompt/types.d.ts +1 -1
  46. package/core/app.js +5 -5
  47. package/dialog/dialog.js +2 -2
  48. package/forms/forms.js +1 -1
  49. package/formsExt/formsExt.amd.js +1 -1
  50. package/formsExt/formsExt.amd.js.map +1 -1
  51. package/formsExt/formsExt.js +6 -4
  52. package/formsExt/formsExt.js.map +1 -1
  53. package/layout/layout.js +1 -1
  54. package/package.json +1 -1
  55. package/popup/popup.amd.js +1 -1
  56. package/popup/popup.amd.js.map +1 -1
  57. package/popup/popup.js +27 -24
  58. package/popup/popup.js.map +1 -1
  59. package/popup/worker.amd.js +1 -1
  60. package/popup/worker.amd.js.map +1 -1
  61. package/popup/worker.js +13 -13
  62. package/popup/worker.js.map +1 -1
  63. package/project/project.amd.js +1 -1
  64. package/project/project.js +5 -5
  65. package/tabsView/tabsView.js +1 -1
  66. package/utils/clipboard.js +1 -1
  67. package/utils/date.js +1 -1
  68. package/utils/device.js +1 -1
  69. package/utils/lodash.js +1 -1
  70. package/utils/price.js +1 -1
  71. package/utils/searchers.js +3 -3
  72. package/utils/string.js +1 -1
  73. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C660hIcG.amd.js +0 -2
  74. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C660hIcG.amd.js.map +0 -1
  75. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DPwnYUm-.es.js +0 -181
  76. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DPwnYUm-.es.js.map +0 -1
  77. package/.chunks/popup-Bh3WbTKH.es.js.map +0 -1
@@ -1,8 +1,6 @@
1
1
  import { Item, Props, Slots, Size } from './types';
2
2
  import { TopLibPopup } from '../../popup/lib/popup';
3
- import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
4
- import { PopupEvent, Props } from '../../popup/popup/types';
5
- import { OnCleanup } from '@vue/reactivity';
3
+ import { ShallowUnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
6
4
  type __VLS_Props = Props;
7
5
  type __VLS_PublicProps = {
8
6
  modelValue: Props['modelValue'];
@@ -11,92 +9,10 @@ declare function __VLS_template(): {
11
9
  attrs: Partial<{}>;
12
10
  slots: Readonly<Slots> & Slots;
13
11
  refs: {
14
- popupRef: ({
15
- $: ComponentInternalInstance;
16
- $data: {};
17
- $props: {
18
- readonly id?: string | undefined;
19
- readonly class?: string | undefined;
20
- readonly transitionDuration?: number | undefined;
21
- readonly footerSupportLink?: string | undefined;
22
- readonly pos?: "0" | "1" | "2" | "3" | "4" | undefined;
23
- readonly notch?: boolean | undefined;
24
- readonly openByHover?: boolean | undefined;
25
- readonly posBy?: "fixed" | "left" | "right" | undefined;
26
- readonly onClose?: ((popupEvent: PopupEvent) => any) | undefined;
27
- readonly onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
28
- readonly onScrollContentList?: ((e: Event) => any) | undefined;
29
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
30
- $attrs: {
31
- [x: string]: unknown;
32
- };
33
- $refs: {
34
- [x: string]: unknown;
35
- };
36
- $slots: Readonly<{
37
- [name: string]: Slot<any> | undefined;
38
- }>;
39
- $root: ComponentPublicInstance | null;
40
- $parent: ComponentPublicInstance | null;
41
- $host: Element | null;
42
- $emit: ((event: "close", popupEvent: PopupEvent) => void) & ((event: "open", popupEvent: PopupEvent) => void) & ((event: "scrollContentList", e: Event) => void);
43
- $el: any;
44
- $options: ComponentOptionsBase<Readonly< Props> & Readonly<{
45
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
46
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
47
- onScrollContentList?: ((e: Event) => any) | undefined;
48
- }>, {
49
- popup: TopLibPopup | undefined;
50
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
51
- close: (popupEvent: PopupEvent) => any;
52
- open: (popupEvent: PopupEvent) => any;
53
- scrollContentList: (e: Event) => any;
54
- }, string, {
55
- id: string;
56
- posBy: "fixed" | "left" | "right";
57
- pos: "0" | "1" | "2" | "3" | "4";
58
- notch: boolean;
59
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
60
- beforeCreate?: (() => void) | (() => void)[];
61
- created?: (() => void) | (() => void)[];
62
- beforeMount?: (() => void) | (() => void)[];
63
- mounted?: (() => void) | (() => void)[];
64
- beforeUpdate?: (() => void) | (() => void)[];
65
- updated?: (() => void) | (() => void)[];
66
- activated?: (() => void) | (() => void)[];
67
- deactivated?: (() => void) | (() => void)[];
68
- beforeDestroy?: (() => void) | (() => void)[];
69
- beforeUnmount?: (() => void) | (() => void)[];
70
- destroyed?: (() => void) | (() => void)[];
71
- unmounted?: (() => void) | (() => void)[];
72
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
73
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
74
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
75
- };
76
- $forceUpdate: () => void;
77
- $nextTick: nextTick;
78
- $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;
79
- } & Readonly<{
12
+ popupRef: ShallowUnwrapRef<{
80
13
  id: string;
81
- posBy: "fixed" | "left" | "right";
82
- pos: "0" | "1" | "2" | "3" | "4";
83
- notch: boolean;
84
- }> & Omit<Readonly< Props> & Readonly<{
85
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
86
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
87
- onScrollContentList?: ((e: Event) => any) | undefined;
88
- }>, ("id" | "posBy" | "pos" | "notch") | "popup"> & ShallowUnwrapRef<{
89
- popup: TopLibPopup | undefined;
90
- }> & {} & ComponentCustomProperties & {} & {
91
- $slots: {
92
- opener?(_: {}): any;
93
- header?(_: {}): any;
94
- widget?(_: {}): any;
95
- content?(_: {}): any;
96
- contentList?(_: {}): any;
97
- footer?(_: {}): any;
98
- };
99
- }) | null;
14
+ popup: TopLibPopup<undefined> | undefined;
15
+ }> | null;
100
16
  subcomponentSelector: unknown;
101
17
  };
102
18
  rootEl: any;
@@ -112,92 +28,10 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
112
28
  searchType: "none" | "inline" | "popup";
113
29
  minLength: number;
114
30
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
115
- popupRef: ({
116
- $: ComponentInternalInstance;
117
- $data: {};
118
- $props: {
119
- readonly id?: string | undefined;
120
- readonly class?: string | undefined;
121
- readonly transitionDuration?: number | undefined;
122
- readonly footerSupportLink?: string | undefined;
123
- readonly pos?: "0" | "1" | "2" | "3" | "4" | undefined;
124
- readonly notch?: boolean | undefined;
125
- readonly openByHover?: boolean | undefined;
126
- readonly posBy?: "fixed" | "left" | "right" | undefined;
127
- readonly onClose?: ((popupEvent: PopupEvent) => any) | undefined;
128
- readonly onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
129
- readonly onScrollContentList?: ((e: Event) => any) | undefined;
130
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
131
- $attrs: {
132
- [x: string]: unknown;
133
- };
134
- $refs: {
135
- [x: string]: unknown;
136
- };
137
- $slots: Readonly<{
138
- [name: string]: Slot<any> | undefined;
139
- }>;
140
- $root: ComponentPublicInstance | null;
141
- $parent: ComponentPublicInstance | null;
142
- $host: Element | null;
143
- $emit: ((event: "close", popupEvent: PopupEvent) => void) & ((event: "open", popupEvent: PopupEvent) => void) & ((event: "scrollContentList", e: Event) => void);
144
- $el: any;
145
- $options: ComponentOptionsBase<Readonly< Props> & Readonly<{
146
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
147
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
148
- onScrollContentList?: ((e: Event) => any) | undefined;
149
- }>, {
150
- popup: TopLibPopup | undefined;
151
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
152
- close: (popupEvent: PopupEvent) => any;
153
- open: (popupEvent: PopupEvent) => any;
154
- scrollContentList: (e: Event) => any;
155
- }, string, {
156
- id: string;
157
- posBy: "fixed" | "left" | "right";
158
- pos: "0" | "1" | "2" | "3" | "4";
159
- notch: boolean;
160
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
161
- beforeCreate?: (() => void) | (() => void)[];
162
- created?: (() => void) | (() => void)[];
163
- beforeMount?: (() => void) | (() => void)[];
164
- mounted?: (() => void) | (() => void)[];
165
- beforeUpdate?: (() => void) | (() => void)[];
166
- updated?: (() => void) | (() => void)[];
167
- activated?: (() => void) | (() => void)[];
168
- deactivated?: (() => void) | (() => void)[];
169
- beforeDestroy?: (() => void) | (() => void)[];
170
- beforeUnmount?: (() => void) | (() => void)[];
171
- destroyed?: (() => void) | (() => void)[];
172
- unmounted?: (() => void) | (() => void)[];
173
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
174
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
175
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
176
- };
177
- $forceUpdate: () => void;
178
- $nextTick: nextTick;
179
- $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;
180
- } & Readonly<{
31
+ popupRef: ShallowUnwrapRef<{
181
32
  id: string;
182
- posBy: "fixed" | "left" | "right";
183
- pos: "0" | "1" | "2" | "3" | "4";
184
- notch: boolean;
185
- }> & Omit<Readonly< Props> & Readonly<{
186
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
187
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
188
- onScrollContentList?: ((e: Event) => any) | undefined;
189
- }>, ("id" | "posBy" | "pos" | "notch") | "popup"> & ShallowUnwrapRef<{
190
- popup: TopLibPopup | undefined;
191
- }> & {} & ComponentCustomProperties & {} & {
192
- $slots: {
193
- opener?(_: {}): any;
194
- header?(_: {}): any;
195
- widget?(_: {}): any;
196
- content?(_: {}): any;
197
- contentList?(_: {}): any;
198
- footer?(_: {}): any;
199
- };
200
- }) | null;
33
+ popup: TopLibPopup<undefined> | undefined;
34
+ }> | null;
201
35
  subcomponentSelector: unknown;
202
36
  }, any>;
203
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -15,6 +15,12 @@ export interface Props {
15
15
  items?: Item[];
16
16
  title?: string;
17
17
  disabled?: boolean;
18
+ /**
19
+ * Модификатор элемента, открывающего popup
20
+ *
21
+ * Добавит класс: `top-selector2-{{ modificator }}`
22
+ */
23
+ modificator?: string;
18
24
  size?: Size;
19
25
  isError?: boolean;
20
26
  /**
@@ -1,6 +1,5 @@
1
1
  import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { PopupEvent } from '../popup/types';
4
3
  declare function __VLS_template(): {
5
4
  attrs: Partial<{}>;
6
5
  slots: {
@@ -13,15 +12,7 @@ declare function __VLS_template(): {
13
12
  rootEl: any;
14
13
  };
15
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
- close: (popupEvent: PopupEvent) => any;
18
- open: (popupEvent: PopupEvent) => any;
19
- scrollContentList: (e: Event) => any;
20
- }, string, PublicProps, Readonly<Props> & Readonly<{
21
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
22
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
23
- onScrollContentList?: ((e: Event) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, any, string, PublicProps, any, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
17
  export default _default;
27
18
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,8 +1,8 @@
1
- import { Emits as PopupEmits, Props as PopupProps } from '../popup/types';
1
+ import { Props as PopupProps } from '../popup/types';
2
+ export type { Emits } from '../popup/types';
2
3
  export interface Props extends PopupProps {
3
4
  /**
4
5
  * Текст кнопки
5
6
  */
6
7
  submitText?: string;
7
8
  }
8
- export type Emits = {} & PopupEmits;
@@ -1,4 +1,3 @@
1
- import { PopupEvent } from '../popup/types';
2
1
  import { Props } from './types';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
3
  declare function __VLS_template(): {
@@ -13,17 +12,7 @@ declare function __VLS_template(): {
13
12
  rootEl: any;
14
13
  };
15
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
- close: (popupEvent: PopupEvent) => any;
18
- open: (popupEvent: PopupEvent) => any;
19
- submit: () => any;
20
- scrollContentList: (e: Event) => any;
21
- }, string, PublicProps, Readonly<Props> & Readonly<{
22
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
23
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
24
- onSubmit?: (() => any) | undefined;
25
- onScrollContentList?: ((e: Event) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, any, string, PublicProps, any, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
27
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
17
  export default _default;
29
18
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -13,7 +13,7 @@ export interface Props extends PopupProps {
13
13
  */
14
14
  isWarning?: boolean;
15
15
  }
16
- export type Emits = PopupEmits & {
16
+ export type Emits<T extends Record<string, any> | undefined> = PopupEmits<T> & {
17
17
  /**
18
18
  * Будет вызвано при нажатии кнопок или закрытии окна
19
19
  */
@@ -1,4 +1,5 @@
1
1
  import { default as Component } from '../../component';
2
+ import { OpenerProps } from '../popup/types';
2
3
  export interface PopupOptions {
3
4
  popup?: string;
4
5
  id?: string;
@@ -21,9 +22,11 @@ export interface PopupOptions {
21
22
  * - aftershow.top-menu-popup
22
23
  * - afterclose.top-menu-popup
23
24
  */
24
- export declare class TopLibPopup extends Component {
25
+ export declare class TopLibPopup<T extends Record<string, any> | undefined = undefined> extends Component {
25
26
  static componentName: string;
26
- el: HTMLElement;
27
+ el: HTMLElement & {
28
+ __TopPopupOpenerProps: OpenerProps<T>;
29
+ };
27
30
  elActiveByDefault: boolean | undefined;
28
31
  elPopup: HTMLElement | undefined;
29
32
  elPopupInner: HTMLElement | undefined;
@@ -56,8 +56,8 @@ declare class Worker {
56
56
  * Скролл к активному элементу списка
57
57
  */
58
58
  static scrollToActive(elPopup: HTMLElement): void;
59
- static decoratorBeforeOpen(popup: TopLibPopup): void;
60
- static decoratorAfterOpen(popup: TopLibPopup): void;
59
+ static decoratorBeforeOpen(popup: TopLibPopup<any>): void;
60
+ static decoratorAfterOpen(popup: TopLibPopup<any>): void;
61
61
  static decoratorIsIgnoreOuterClick(e: MouseEvent): boolean;
62
62
  /**
63
63
  * Зарегистрировать Vue компонент
@@ -1,23 +1,17 @@
1
1
  import { OpenerProps } from './types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
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;
5
7
  slots: {
6
8
  default?(_: {}): any;
7
9
  };
8
- refs: {};
9
- rootEl: any;
10
+ emit: {};
11
+ }>) => VNode & {
12
+ __ctx?: Awaited<typeof __VLS_setup>;
10
13
  };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: DefineComponent<OpenerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OpenerProps> & Readonly<{}>, {
13
- posBy: "fixed" | "left" | "right";
14
- pos: "0" | "1" | "2" | "3" | "4";
15
- notch: boolean;
16
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
14
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
15
+ type __VLS_PrettifyLocal<T> = {
16
+ [K in keyof T]: T[K];
17
+ } & {};
@@ -1,40 +1,38 @@
1
1
  import { TopLibPopup } from '../lib/popup';
2
2
  import { Props, PopupEvent } from './types';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
+ 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<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onClose?: ((popupEvent: PopupEvent<T>) => any) | undefined;
7
+ readonly onOpen?: ((popupEvent: PopupEvent<T>) => any) | undefined;
8
+ readonly onScrollContentList?: ((e: Event) => any) | undefined;
9
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onOpen" | "onScrollContentList"> & Props<T> & Partial<{}>> & PublicProps;
10
+ expose(exposed: ShallowUnwrapRef<{
11
+ id: string;
12
+ popup: TopLibPopup<T> | undefined;
13
+ }>): void;
14
+ attrs: any;
6
15
  slots: {
7
16
  opener?(_: {}): any;
8
- header?(_: {}): any;
17
+ header?(_: {
18
+ data: T | undefined;
19
+ }): any;
9
20
  widget?(_: {}): any;
10
- content?(_: {}): any;
11
- contentList?(_: {}): any;
12
- footer?(_: {}): any;
21
+ content?(_: {
22
+ data: T | undefined;
23
+ }): any;
24
+ contentList?(_: {
25
+ data: T | undefined;
26
+ }): any;
27
+ footer?(_: {
28
+ data: T | undefined;
29
+ }): any;
13
30
  };
14
- refs: {};
15
- rootEl: any;
31
+ emit: ((evt: "close", popupEvent: PopupEvent<T>) => void) & ((evt: "open", popupEvent: PopupEvent<T>) => void) & ((evt: "scrollContentList", e: Event) => void);
32
+ }>) => VNode & {
33
+ __ctx?: Awaited<typeof __VLS_setup>;
16
34
  };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: DefineComponent<Props, {
19
- popup: TopLibPopup | undefined;
20
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
- close: (popupEvent: PopupEvent) => any;
22
- open: (popupEvent: PopupEvent) => any;
23
- scrollContentList: (e: Event) => any;
24
- }, string, PublicProps, Readonly<Props> & Readonly<{
25
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
26
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
27
- onScrollContentList?: ((e: Event) => any) | undefined;
28
- }>, {
29
- id: string;
30
- posBy: "fixed" | "left" | "right";
31
- pos: "0" | "1" | "2" | "3" | "4";
32
- notch: boolean;
33
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
34
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
35
  export default _default;
36
- type __VLS_WithTemplateSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };
36
+ type __VLS_PrettifyLocal<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -1,6 +1,8 @@
1
- export interface Props extends OpenerProps {
1
+ export interface Props<T extends Record<string, any> | undefined = undefined> extends OpenerProps<T> {
2
2
  /**
3
- * Уникальный id компонента, используется только в setup, т.е. изменение id будет проигнорировано
3
+ * Уникальный id компонента
4
+ *
5
+ * Используется только в setup, т.е. изменение `id` будет проигнорировано
4
6
  *
5
7
  * Генерируется автоматически при создании кнопки Popup
6
8
  *
@@ -23,25 +25,31 @@ export interface Props extends OpenerProps {
23
25
  */
24
26
  footerSupportLink?: string;
25
27
  }
26
- export type PopupEvent = {
28
+ export type PopupEvent<T extends Record<string, any> | undefined> = {
27
29
  elPopup: HTMLElement;
28
30
  elPopupOpener: HTMLElement;
31
+ /**
32
+ * Данные, с которым был открыт Popup
33
+ *
34
+ * @see {OpenerProps['data']}
35
+ */
36
+ data: OpenerProps<T>['data'];
29
37
  };
30
- export type Emits = {
38
+ export type Emits<T extends Record<string, any> | undefined> = {
31
39
  /**
32
40
  * Будет вызвано при открытии Popup
33
41
  */
34
- open: [popupEvent: PopupEvent];
42
+ open: [popupEvent: PopupEvent<T>];
35
43
  /**
36
44
  * Будет вызвано после закрытия Popup перед его удалением
37
45
  */
38
- close: [popupEvent: PopupEvent];
46
+ close: [popupEvent: PopupEvent<T>];
39
47
  /**
40
48
  * Будет вызвано при скролле списка в Popup
41
49
  */
42
50
  scrollContentList: [e: Event];
43
51
  };
44
- export interface OpenerProps {
52
+ export interface OpenerProps<T extends Record<string, any> | undefined = undefined> {
45
53
  /**
46
54
  * id компонента Popup, который необходимо открыть
47
55
  */
@@ -72,14 +80,15 @@ export interface OpenerProps {
72
80
  * fixed - по документу
73
81
  */
74
82
  posBy?: 'fixed' | 'left' | 'right';
83
+ data?: T;
75
84
  }
76
85
  export interface ListItemProps {
77
86
  /**
78
87
  * Тип элемента списка
79
- * * button - обычный кликабельный (выбираемый) элемент, поддерижвает вставку ссылок через атрибут href
80
- * * regular - произвольное содержимое
81
- * * title - заголовок
82
- * * delimiter - разделитель
88
+ * - button: обычный кликабельный (выбираемый) элемент, поддерживает вставку ссылок через атрибут href
89
+ * - regular: произвольное содержимое
90
+ * - title: заголовок
91
+ * - delimiter: разделитель
83
92
  */
84
93
  type?: 'button' | 'regular' | 'title' | 'delimiter';
85
94
  /**
@@ -1,4 +1,3 @@
1
- import { PopupEvent } from '../popup/types';
2
1
  import { Props } from './types';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
3
  declare function __VLS_template(): {
@@ -13,17 +12,7 @@ declare function __VLS_template(): {
13
12
  rootEl: any;
14
13
  };
15
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
- close: (popupEvent: PopupEvent) => any;
18
- open: (popupEvent: PopupEvent) => any;
19
- submit: (value: string) => any;
20
- scrollContentList: (e: Event) => any;
21
- }, string, PublicProps, Readonly<Props> & Readonly<{
22
- onClose?: ((popupEvent: PopupEvent) => any) | undefined;
23
- onOpen?: ((popupEvent: PopupEvent) => any) | undefined;
24
- onSubmit?: ((value: string) => any) | undefined;
25
- onScrollContentList?: ((e: Event) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, any, string, PublicProps, any, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
27
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
17
  export default _default;
29
18
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -13,7 +13,7 @@ export interface Props extends PopupProps {
13
13
  */
14
14
  defaultValue?: string;
15
15
  }
16
- export type Emits = PopupEmits & {
16
+ export type Emits<T extends Record<string, any> | undefined> = PopupEmits<T> & {
17
17
  /**
18
18
  * Будет вызвано при нажатии кнопки подтверждения
19
19
  */
package/core/app.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d } from "../.chunks/forms-1PEYT7sp.es.js";
2
- import { C as P, i as T, u as b, a as y } from "../.chunks/forms-1PEYT7sp.es.js";
3
- import { c as G } from "../.chunks/core-CZLRhkk2.es.js";
1
+ import { d } from "../.chunks/forms-CiEXUPjB.es.js";
2
+ import { C as P, i as T, u as b, a as y } from "../.chunks/forms-CiEXUPjB.es.js";
3
+ import { c as G } from "../.chunks/core-kP5TitXz.es.js";
4
4
  import { watch as p } from "vue";
5
5
  import { guestLinkToClipboard as f } from "../utils/clipboard.js";
6
6
  import { camelToSnakeCase as g } from "../utils/string.js";
7
7
  import { getHash as m, setHash as l } from "../utils/route.js";
8
- import { u as A, a as D } from "../.chunks/utils-DEyMm4Iq.es.js";
9
- import { T as j } from "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-sExyADFk.es.js";
8
+ import { u as A, a as D } from "../.chunks/utils-DUw1K93-.es.js";
9
+ import { T as j } from "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-ma6AxkKH.es.js";
10
10
  class u {
11
11
  #s;
12
12
  #t;
package/dialog/dialog.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as k, a as B } from "../.chunks/page.vue_vue_type_script_setup_true_lang-_-EoskSt.es.js";
1
+ import { _ as k, a as B } from "../.chunks/page.vue_vue_type_script_setup_true_lang-B6YquNpa.es.js";
2
2
  import { defineComponent as l, ref as i, onUpdated as u, createBlock as a, openBlock as p, KeepAlive as s, createCommentVNode as d, unref as g, resolveDynamicComponent as c, mergeProps as f } from "vue";
3
- import { b as v } from "../.chunks/utils-DEyMm4Iq.es.js";
3
+ import { b as v } from "../.chunks/utils-DUw1K93-.es.js";
4
4
  const C = {
5
5
  name: {
6
6
  type: String,
package/forms/forms.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as p, g as T, X as s, h as t, j as e, k as r, l as n, m as l, n as i, o as u, x, p as b, q as c, r as d, s as h } from "../.chunks/forms-1PEYT7sp.es.js";
1
+ import { T as p, g as T, X as s, h as t, j as e, k as r, l as n, m as l, n as i, o as u, x, p as b, q as c, r as d, s as h } from "../.chunks/forms-CiEXUPjB.es.js";
2
2
  export {
3
3
  p as TopAvatar,
4
4
  T as TopButton,