@topvisor/ui 0.9.36 → 1.0.0-colors-3

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 (196) hide show
  1. package/.chunks/{datepicker-CMuCkYBj.amd.js → datepicker-CGWwMJRV.amd.js} +10 -10
  2. package/.chunks/datepicker-CGWwMJRV.amd.js.map +1 -0
  3. package/.chunks/{datepicker-CtcFJYEp.es.js → datepicker-INKeNnsk.es.js} +22 -22
  4. package/.chunks/datepicker-INKeNnsk.es.js.map +1 -0
  5. package/.chunks/debounce-4ipCj607.amd.js +2 -0
  6. package/.chunks/debounce-4ipCj607.amd.js.map +1 -0
  7. package/.chunks/debounce-BISRz08p.es.js +116 -0
  8. package/.chunks/debounce-BISRz08p.es.js.map +1 -0
  9. package/.chunks/{forms-Cay_sybt.es.js → forms-BDAati-M.es.js} +264 -249
  10. package/.chunks/forms-BDAati-M.es.js.map +1 -0
  11. package/.chunks/forms-ZqLh7cu5.amd.js +3 -0
  12. package/.chunks/forms-ZqLh7cu5.amd.js.map +1 -0
  13. package/.chunks/i18n-C_OH9IT3.amd.js +2 -0
  14. package/.chunks/{i18n-eDh3Aaw9.amd.js.map → i18n-C_OH9IT3.amd.js.map} +1 -1
  15. package/.chunks/i18n-DuTvft1T.es.js +26 -0
  16. package/.chunks/{i18n-qpB8zyhD.es.js.map → i18n-DuTvft1T.es.js.map} +1 -1
  17. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B-fUb36w.amd.js +2 -0
  18. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B-fUb36w.amd.js.map +1 -0
  19. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CaEDfkda.es.js +174 -0
  20. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CaEDfkda.es.js.map +1 -0
  21. package/.chunks/menu-BDD1uC-t.amd.js +2 -0
  22. package/.chunks/menu-BDD1uC-t.amd.js.map +1 -0
  23. package/.chunks/{menu-B3Nf7_NC.es.js → menu-DJZI8eh6.es.js} +30 -32
  24. package/.chunks/menu-DJZI8eh6.es.js.map +1 -0
  25. package/.chunks/{popup-B7UOyCUj.es.js → popup-C18N-1yr.es.js} +23 -18
  26. package/.chunks/popup-C18N-1yr.es.js.map +1 -0
  27. package/.chunks/{popup-BGuc5GyB.amd.js → popup-C497Sl7G.amd.js} +16 -11
  28. package/.chunks/popup-C497Sl7G.amd.js.map +1 -0
  29. package/assets/core.css +1 -1
  30. package/assets/dark.css +1 -1
  31. package/assets/forms.css +1 -1
  32. package/assets/formsExt.css +1 -1
  33. package/assets/light.css +1 -1
  34. package/assets/listItem.css +1 -1
  35. package/assets/menu.css +1 -1
  36. package/assets/popup.css +1 -1
  37. package/assets/tabs.css +1 -1
  38. package/assets/tabsView.css +1 -1
  39. package/common/common.d.ts +1 -1
  40. package/components/forms/avatar/avatar.vue.d.ts +12 -12
  41. package/components/forms/button/button.d.ts +14 -2
  42. package/components/forms/button/button.vue.d.ts +11 -12
  43. package/components/forms/checkbox/checkbox.vue.d.ts +19 -43
  44. package/components/forms/controlLabel/controlLabel.vue.d.ts +7 -8
  45. package/components/forms/forms.d.ts +0 -1
  46. package/components/forms/hint/hint.vue.d.ts +2 -3
  47. package/components/forms/input/input.d.ts +0 -1
  48. package/components/forms/input/input.vue.d.ts +11 -12
  49. package/components/forms/inputDate/inputDate.d.ts +0 -1
  50. package/components/forms/inputDate/inputDate.vue.d.ts +11 -12
  51. package/components/forms/radio/radio.vue.d.ts +8 -9
  52. package/components/forms/select/select.d.ts +0 -1
  53. package/components/forms/select/select.vue.d.ts +31 -69
  54. package/components/forms/select/stories/exampleOptions.d.ts +0 -1
  55. package/components/forms/switcher/switcher.vue.d.ts +8 -9
  56. package/components/forms/textarea/textarea.vue.d.ts +11 -12
  57. package/components/formsExt/editArea/editArea.d.ts +0 -1
  58. package/components/formsExt/editArea/editArea.vue.d.ts +13 -14
  59. package/components/formsExt/editInput/editInput.d.ts +0 -1
  60. package/components/formsExt/editInput/editInput.vue.d.ts +3 -4
  61. package/components/formsExt/formsExt.d.ts +0 -1
  62. package/components/formsExt/menu/menu.d.ts +0 -1
  63. package/components/formsExt/menu/menu.vue.d.ts +32 -48
  64. package/components/formsExt/menu/stories/items.d.ts +0 -1
  65. package/components/formsExt/radioGroup/radioGroup.d.ts +0 -1
  66. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +31 -42
  67. package/components/formsExt/selector2/api.d.ts +0 -1
  68. package/components/formsExt/selector2/itemMulti.vue.d.ts +3 -4
  69. package/components/formsExt/selector2/selector2.d.ts +0 -1
  70. package/components/formsExt/selector2/selector2.vue.d.ts +37 -117
  71. package/components/popup/alert/alert.d.ts +8 -0
  72. package/components/popup/alert/alert.vue.d.ts +33 -0
  73. package/components/popup/confirm/confirm.d.ts +21 -0
  74. package/components/popup/confirm/confirm.vue.d.ts +35 -0
  75. package/components/popup/lib/popup.d.ts +0 -1
  76. package/components/popup/lib/worker.d.ts +4 -5
  77. package/components/popup/popup/listItem.vue.d.ts +11 -12
  78. package/components/popup/popup/opener.vue.d.ts +13 -14
  79. package/components/popup/popup/popup.d.ts +8 -2
  80. package/components/popup/popup/popup.vue.d.ts +13 -14
  81. package/components/popup/popup/widgetInput.vue.d.ts +32 -82
  82. package/components/popup/popup.d.ts +6 -1
  83. package/components/popup/prompt/prompt.d.ts +21 -0
  84. package/components/popup/prompt/prompt.vue.d.ts +35 -0
  85. package/components/project/project.d.ts +0 -1
  86. package/components/project/selectorCompetitors/composables.d.ts +0 -1
  87. package/components/project/selectorCompetitors/selectorCompetitors.d.ts +0 -1
  88. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +32 -24
  89. package/components/tabs/tabs/content.vue.d.ts +7 -8
  90. package/components/tabs/tabs/tab.vue.d.ts +7 -8
  91. package/components/tabs/tabs/tabs.vue.d.ts +7 -8
  92. package/components/tabs/tabs.d.ts +0 -1
  93. package/components/tabsView/tabsView/menu.vue.d.ts +22 -14
  94. package/components/tabsView/tabsView/menuItem.vue.d.ts +12 -12
  95. package/components/tabsView/tabsView/menuTitle.vue.d.ts +8 -8
  96. package/components/tabsView/tabsView/store.d.ts +1 -2
  97. package/components/tabsView/tabsView/tabsView.d.ts +0 -1
  98. package/components/tabsView/tabsView/tabsView.vue.d.ts +34 -34
  99. package/components/tabsView/tabsView.d.ts +0 -1
  100. package/core/app.amd.js +1 -1
  101. package/core/app.amd.js.map +1 -1
  102. package/core/app.d.ts +0 -1
  103. package/core/app.js +23 -21
  104. package/core/app.js.map +1 -1
  105. package/core/core/core.d.ts +14 -0
  106. package/core/core.amd.js +1 -1
  107. package/core/core.d.ts +2 -1
  108. package/core/core.js +1 -1
  109. package/core/directives/focus.d.ts +0 -1
  110. package/core/directives/sticky.d.ts +0 -1
  111. package/core/directives/swimUp.d.ts +0 -1
  112. package/core/directives/tooltip.d.ts +0 -1
  113. package/core/plugins/core.d.ts +0 -1
  114. package/core/plugins/i18n.d.ts +0 -1
  115. package/core/plugins/piniaTPA.d.ts +0 -1
  116. package/core/utils/lodash.d.ts +6 -0
  117. package/core/utils/price.d.ts +0 -1
  118. package/core/utils/store/localStorage.d.ts +0 -1
  119. package/core/utils/store/plugin.d.ts +0 -1
  120. package/core/utils/store/store.d.ts +0 -1
  121. package/forms/forms.amd.js +1 -1
  122. package/forms/forms.d.ts +1 -0
  123. package/forms/forms.js +1 -1
  124. package/forms/helpers.d.ts +1 -0
  125. package/formsExt/formsExt.amd.js +1 -1
  126. package/formsExt/formsExt.amd.js.map +1 -1
  127. package/formsExt/formsExt.d.ts +1 -0
  128. package/formsExt/formsExt.js +3 -3
  129. package/formsExt/formsExt.js.map +1 -1
  130. package/package.json +1 -2
  131. package/popup/popup.amd.js +1 -1
  132. package/popup/popup.amd.js.map +1 -1
  133. package/popup/popup.d.ts +1 -0
  134. package/popup/popup.js +219 -21
  135. package/popup/popup.js.map +1 -1
  136. package/popup/worker.amd.js +1 -1
  137. package/popup/worker.amd.js.map +1 -1
  138. package/popup/worker.d.ts +3 -0
  139. package/popup/worker.js +2 -2
  140. package/popup/worker.js.map +1 -1
  141. package/project/project.amd.js +1 -1
  142. package/project/project.amd.js.map +1 -1
  143. package/project/project.d.ts +1 -0
  144. package/project/project.js +20 -20
  145. package/tabs/tabs.amd.js +1 -1
  146. package/tabs/tabs.d.ts +1 -0
  147. package/tabs/tabs.js +1 -1
  148. package/tabsView/tabsView.amd.js +1 -1
  149. package/tabsView/tabsView.amd.js.map +1 -1
  150. package/tabsView/tabsView.d.ts +1 -0
  151. package/tabsView/tabsView.js +1 -1
  152. package/tabsView/tabsView.js.map +1 -1
  153. package/utils/check.d.ts +1 -0
  154. package/utils/clipboard.d.ts +1 -0
  155. package/utils/date.amd.js +1 -1
  156. package/utils/date.d.ts +1 -0
  157. package/utils/date.js +2 -2
  158. package/utils/device.amd.js +1 -1
  159. package/utils/device.d.ts +1 -0
  160. package/utils/device.js +1 -1
  161. package/utils/dom.d.ts +3 -0
  162. package/utils/image.d.ts +1 -0
  163. package/utils/keyboard.d.ts +1 -0
  164. package/utils/lodash.amd.js +2 -0
  165. package/utils/lodash.amd.js.map +1 -0
  166. package/utils/lodash.d.ts +2 -0
  167. package/utils/lodash.js +706 -0
  168. package/utils/lodash.js.map +1 -0
  169. package/utils/number.d.ts +1 -0
  170. package/utils/price.amd.js +1 -1
  171. package/utils/price.d.ts +1 -0
  172. package/utils/price.js +2 -2
  173. package/utils/route.d.ts +1 -0
  174. package/utils/scroll.d.ts +1 -0
  175. package/utils/store.d.ts +1 -0
  176. package/utils/string.amd.js +1 -1
  177. package/utils/string.d.ts +1 -0
  178. package/utils/string.js +1 -1
  179. package/utils/system.d.ts +1 -0
  180. package/utils/url.d.ts +1 -0
  181. package/.chunks/datepicker-CMuCkYBj.amd.js.map +0 -1
  182. package/.chunks/datepicker-CtcFJYEp.es.js.map +0 -1
  183. package/.chunks/forms-Cay_sybt.es.js.map +0 -1
  184. package/.chunks/forms-Lm1WM1gO.amd.js +0 -3
  185. package/.chunks/forms-Lm1WM1gO.amd.js.map +0 -1
  186. package/.chunks/i18n-eDh3Aaw9.amd.js +0 -2
  187. package/.chunks/i18n-qpB8zyhD.es.js +0 -20
  188. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B3TjT92k.es.js +0 -161
  189. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B3TjT92k.es.js.map +0 -1
  190. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D1glM0F3.amd.js +0 -2
  191. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D1glM0F3.amd.js.map +0 -1
  192. package/.chunks/menu-B3Nf7_NC.es.js.map +0 -1
  193. package/.chunks/menu-Dg2EKy3O.amd.js +0 -2
  194. package/.chunks/menu-Dg2EKy3O.amd.js.map +0 -1
  195. package/.chunks/popup-B7UOyCUj.es.js.map +0 -1
  196. package/.chunks/popup-BGuc5GyB.amd.js.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import { Size, sizes } from '../../forms/helpers';
2
-
3
2
  export interface Props {
4
3
  /**
5
4
  * Выбранный элемент
@@ -1,123 +1,26 @@
1
1
  import { Item, Props, Slots } from './selector2';
2
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { Size } from '../../forms/helpers';
4
-
4
+ declare let __VLS_typeProps: Props;
5
+ type __VLS_PublicProps = {
6
+ modelValue?: Props['modelValue'];
7
+ } & typeof __VLS_typeProps;
5
8
  declare function __VLS_template(): Readonly<Slots> & Slots;
6
- declare const __VLS_component: DefineComponent<{
7
- modelValue: PropType<Props["modelValue"]>;
8
- size: {
9
- type: PropType<Size>;
10
- default: string;
11
- };
12
- disabled: {
13
- type: PropType<boolean>;
14
- };
15
- isError: {
16
- type: PropType<boolean>;
17
- };
18
- placeholder: {
19
- type: PropType<string>;
20
- };
21
- addChanger: {
22
- type: PropType<boolean>;
23
- };
24
- items: {
25
- type: PropType<Item[]>;
26
- default: () => Array<Item>;
27
- };
28
- minLength: {
29
- type: PropType<number>;
30
- default: number;
31
- };
32
- apiRequest: {
33
- type: PropType<{
34
- [propName: string]: any;
35
- params: {
36
- limit?: number;
37
- offset?: number;
38
- search?: string;
39
- };
40
- call: Function;
41
- cache: Map<string, {
42
- result: Array<Item>;
43
- nextOffset?: number;
44
- }>;
45
- }>;
46
- };
47
- useCache: {
48
- type: PropType<boolean>;
49
- };
50
- multiselect: {
51
- type: PropType<boolean>;
52
- };
53
- appendSearchToResult: {
54
- type: PropType<boolean>;
55
- };
56
- appendAllValue: {
57
- type: PropType<boolean>;
58
- };
59
- showSelectedInInput: {
60
- type: PropType<boolean>;
61
- default: boolean;
62
- };
63
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
64
- modelValue: PropType<Props["modelValue"]>;
65
- size: {
66
- type: PropType<Size>;
67
- default: string;
68
- };
69
- disabled: {
70
- type: PropType<boolean>;
71
- };
72
- isError: {
73
- type: PropType<boolean>;
74
- };
75
- placeholder: {
76
- type: PropType<string>;
77
- };
78
- addChanger: {
79
- type: PropType<boolean>;
80
- };
81
- items: {
82
- type: PropType<Item[]>;
83
- default: () => Array<Item>;
84
- };
85
- minLength: {
86
- type: PropType<number>;
87
- default: number;
88
- };
89
- apiRequest: {
90
- type: PropType<{
91
- [propName: string]: any;
92
- params: {
93
- limit?: number;
94
- offset?: number;
95
- search?: string;
96
- };
97
- call: Function;
98
- cache: Map<string, {
99
- result: Array<Item>;
100
- nextOffset?: number;
101
- }>;
102
- }>;
103
- };
104
- useCache: {
105
- type: PropType<boolean>;
106
- };
107
- multiselect: {
108
- type: PropType<boolean>;
109
- };
110
- appendSearchToResult: {
111
- type: PropType<boolean>;
112
- };
113
- appendAllValue: {
114
- type: PropType<boolean>;
115
- };
116
- showSelectedInInput: {
117
- type: PropType<boolean>;
118
- default: boolean;
119
- };
120
- }>>, {
9
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
10
+ items: () => Array<Item>;
11
+ size: string;
12
+ minLength: number;
13
+ showSelectedInInput: boolean;
14
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ "update:modelValue": (modelValue: Item | Item[]) => void;
16
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
17
+ items: () => Array<Item>;
18
+ size: string;
19
+ minLength: number;
20
+ showSelectedInInput: boolean;
21
+ }>>> & {
22
+ "onUpdate:modelValue"?: ((modelValue: Item | Item[]) => any) | undefined;
23
+ }, {
121
24
  size: Size;
122
25
  items: Item[];
123
26
  minLength: number;
@@ -125,8 +28,25 @@ declare const __VLS_component: DefineComponent<{
125
28
  }, {}>;
126
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
127
30
  export default _default;
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
128
39
  type __VLS_WithTemplateSlots<T, S> = T & {
129
40
  new (): {
130
41
  $slots: S;
131
42
  };
132
43
  };
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToOption<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
@@ -0,0 +1,8 @@
1
+ import { Emits as PopupEmits, Props as PopupProps } from '../popup/popup';
2
+ export interface Props extends PopupProps {
3
+ /**
4
+ * Текст кнопки
5
+ */
6
+ submitText?: string;
7
+ }
8
+ export type Emits = {} & PopupEmits;
@@ -0,0 +1,33 @@
1
+ import { Props } from './alert';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare function __VLS_template(): {
4
+ opener?(_: {}): any;
5
+ header?(_: {}): any;
6
+ default?(_: {}): any;
7
+ footer?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ open: () => void;
11
+ close: () => void;
12
+ scrollContentList: (value: Event) => void;
13
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
14
+ onClose?: (() => any) | undefined;
15
+ onOpen?: (() => any) | undefined;
16
+ onScrollContentList?: ((value: Event) => any) | undefined;
17
+ }, {}, {}>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToOption<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
@@ -0,0 +1,21 @@
1
+ import { Emits as PopupEmits, Props as PopupProps } from '../popup/popup';
2
+ export interface Props extends PopupProps {
3
+ /**
4
+ * Текст кнопки отмены
5
+ */
6
+ cancelText?: string;
7
+ /**
8
+ * Текст кнопки подтверждения
9
+ */
10
+ submitText?: string;
11
+ /**
12
+ * Если true, кнопка подтверждения будет красной
13
+ */
14
+ isWarning?: boolean;
15
+ }
16
+ export type Emits = PopupEmits & {
17
+ /**
18
+ * Будет вызвано при нажатии кнопок или закрытии окна
19
+ */
20
+ (e: 'submit'): void;
21
+ };
@@ -0,0 +1,35 @@
1
+ import { Props } from './confirm';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare function __VLS_template(): {
4
+ opener?(_: {}): any;
5
+ header?(_: {}): any;
6
+ default?(_: {}): any;
7
+ footer?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ open: () => void;
11
+ close: () => void;
12
+ scrollContentList: (value: Event) => void;
13
+ submit: () => void;
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
15
+ onSubmit?: (() => any) | undefined;
16
+ onClose?: (() => any) | undefined;
17
+ onOpen?: (() => any) | undefined;
18
+ onScrollContentList?: ((value: Event) => any) | undefined;
19
+ }, {}, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
@@ -1,5 +1,4 @@
1
1
  import { default as Component } from '../../component';
2
-
3
2
  export interface PopupOptions {
4
3
  popup?: string;
5
4
  p?: number;
@@ -1,13 +1,12 @@
1
- import { Popup, PopupOptions } from './popup';
2
-
1
+ import { Popup } from './popup';
3
2
  declare let decoratorBeforeOpen: (arg0: Popup) => void;
4
3
  declare let decoratorAfterOpen: (arg0: Popup) => void;
5
4
  declare let decoratorIsIgnoreOuterClick: (arg0: Event) => boolean;
6
- interface Options {
5
+ type Options = {
7
6
  decoratorBeforeOpen: typeof decoratorBeforeOpen;
8
7
  decoratorAfterOpen: typeof decoratorAfterOpen;
9
8
  decoratorIsIgnoreOuterClick: typeof decoratorIsIgnoreOuterClick;
10
- }
9
+ };
11
10
  declare class Worker {
12
11
  static noClose: boolean;
13
12
  static vueConnectors: Map<any, any>;
@@ -32,7 +31,7 @@ declare class Worker {
32
31
  * @param elOpener - элемент, вызвавший открытие Popup
33
32
  * @param options - опции Popup
34
33
  */
35
- static open(elOpener: HTMLElement, options: PopupOptions): Promise<Popup>;
34
+ private static open;
36
35
  static close(elPopup: HTMLElement): void;
37
36
  static recalcPosition(elPopup: HTMLElement): void;
38
37
  static scrollToActive(elPopup: HTMLElement): void;
@@ -1,13 +1,12 @@
1
1
  import { ListItemProps } from './popup';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  default?(_: {}): any;
6
5
  };
7
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListItemProps>, {
6
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ListItemProps>, {
8
7
  type: string;
9
8
  closeByClick: boolean;
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ListItemProps>, {
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ListItemProps>, {
11
10
  type: string;
12
11
  closeByClick: boolean;
13
12
  }>>>, {
@@ -16,15 +15,6 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
16
15
  }, {}>;
17
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
17
  export default _default;
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToRuntimeProps<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: PropType<T[K]>;
25
- required: true;
26
- };
27
- };
28
18
  type __VLS_WithDefaults<P, D> = {
29
19
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
20
  default: D[K];
@@ -38,3 +28,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
38
28
  $slots: S;
39
29
  };
40
30
  };
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToOption<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
@@ -1,33 +1,23 @@
1
- import { OpenerProps, Pos, PosBy } from './popup';
1
+ import { OpenerProps, PosBy, Pos } from './popup';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
-
4
3
  declare function __VLS_template(): {
5
4
  default?(_: {}): any;
6
5
  };
7
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OpenerProps>, {
6
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OpenerProps>, {
8
7
  pos: string;
9
8
  notch: boolean;
10
9
  posBy: string;
11
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OpenerProps>, {
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OpenerProps>, {
12
11
  pos: string;
13
12
  notch: boolean;
14
13
  posBy: string;
15
14
  }>>>, {
15
+ posBy: PosBy;
16
16
  pos: Pos;
17
17
  notch: boolean;
18
- posBy: PosBy;
19
18
  }, {}>;
20
19
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
20
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
21
  type __VLS_WithDefaults<P, D> = {
32
22
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
23
  default: D[K];
@@ -41,3 +31,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
41
31
  $slots: S;
42
32
  };
43
33
  };
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToOption<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
@@ -16,8 +16,14 @@ export interface Props extends OpenerProps {
16
16
  * Длительность анимации в мс
17
17
  */
18
18
  transitionDuration?: number | undefined;
19
+ /**
20
+ * Ссылка на справку.
21
+ *
22
+ * Если указана, кнопка справки будет добавлена в футере popup
23
+ */
24
+ footerSupportLink?: string;
19
25
  }
20
- export interface Emits {
26
+ export type Emits = {
21
27
  /**
22
28
  * Будет вызвано при открытии Popup
23
29
  */
@@ -30,7 +36,7 @@ export interface Emits {
30
36
  * Будет вызвано при скролле списка в Popup
31
37
  */
32
38
  (e: 'scrollContentList', value: Event): void;
33
- }
39
+ };
34
40
  export interface OpenerProps {
35
41
  /**
36
42
  * id компонента Popup, который необходимо открыть
@@ -1,7 +1,6 @@
1
- import { Props, Pos, PosBy } from './popup';
2
1
  import { default as PopupClass } from '../lib/popup';
2
+ import { Props, PosBy, Pos } from './popup';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
-
5
4
  declare function __VLS_template(): {
6
5
  opener?(_: {}): any;
7
6
  header?(_: {}): any;
@@ -10,7 +9,7 @@ declare function __VLS_template(): {
10
9
  contentList?(_: {}): any;
11
10
  footer?(_: {}): any;
12
11
  };
13
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
14
13
  id: string;
15
14
  pos: string;
16
15
  notch: boolean;
@@ -21,7 +20,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
21
20
  open: () => void;
22
21
  close: () => void;
23
22
  scrollContentList: (value: Event) => void;
24
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
23
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
25
24
  id: string;
26
25
  pos: string;
27
26
  notch: boolean;
@@ -32,21 +31,12 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
32
31
  onScrollContentList?: ((value: Event) => any) | undefined;
33
32
  }, {
34
33
  id: string;
34
+ posBy: PosBy;
35
35
  pos: Pos;
36
36
  notch: boolean;
37
- posBy: PosBy;
38
37
  }, {}>;
39
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
39
  export default _default;
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToRuntimeProps<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: PropType<T[K]>;
47
- required: true;
48
- };
49
- };
50
40
  type __VLS_WithDefaults<P, D> = {
51
41
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
42
  default: D[K];
@@ -60,3 +50,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
60
50
  $slots: S;
61
51
  };
62
52
  };
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToOption<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
@@ -1,85 +1,35 @@
1
- import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- import { Size } from '../../forms/helpers';
3
- import { CaptionType } from '../../forms/input/input';
4
- declare const _default: DefineComponent<{
5
- modelValue: PropType<any>;
6
- icon: {
7
- type: PropType<string>;
8
- };
9
- icon2: {
10
- type: PropType<string>;
11
- };
12
- title: {
13
- type: PropType<string>;
14
- };
15
- size: {
16
- type: PropType<Size>;
17
- };
18
- name: {
19
- type: PropType<string>;
20
- };
21
- disabled: {
22
- type: PropType<boolean>;
23
- };
24
- isError: {
25
- type: PropType<boolean>;
26
- };
27
- readonly: {
28
- type: PropType<boolean>;
29
- };
30
- modificator: {
31
- type: PropType<string>;
32
- };
33
- isLoading: {
34
- type: PropType<boolean>;
35
- };
36
- addCleaner: {
37
- type: PropType<boolean>;
38
- default: boolean;
39
- };
40
- captionType: {
41
- type: PropType<CaptionType>;
42
- };
43
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
44
- modelValue: PropType<any>;
45
- icon: {
46
- type: PropType<string>;
47
- };
48
- icon2: {
49
- type: PropType<string>;
50
- };
51
- title: {
52
- type: PropType<string>;
53
- };
54
- size: {
55
- type: PropType<Size>;
56
- };
57
- name: {
58
- type: PropType<string>;
59
- };
60
- disabled: {
61
- type: PropType<boolean>;
62
- };
63
- isError: {
64
- type: PropType<boolean>;
65
- };
66
- readonly: {
67
- type: PropType<boolean>;
68
- };
69
- modificator: {
70
- type: PropType<string>;
71
- };
72
- isLoading: {
73
- type: PropType<boolean>;
74
- };
75
- addCleaner: {
76
- type: PropType<boolean>;
77
- default: boolean;
78
- };
79
- captionType: {
80
- type: PropType<CaptionType>;
81
- };
82
- }>>, {
1
+ import { Props } from '../../forms/input/input';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare let __VLS_typeProps: Props;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: any;
6
+ } & typeof __VLS_typeProps;
7
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
8
+ addCleaner: boolean;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ "update:modelValue": (modelValue: any) => void;
11
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
12
+ addCleaner: boolean;
13
+ }>>> & {
14
+ "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
15
+ }, {
83
16
  addCleaner: boolean;
84
17
  }, {}>;
85
18
  export default _default;
19
+ type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
+ default: D[K];
22
+ }> : P[K];
23
+ };
24
+ type __VLS_Prettify<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
@@ -3,8 +3,13 @@ import { default as Popup } from './popup/popup.vue';
3
3
  import { default as PopupOpener } from './popup/opener.vue';
4
4
  import { default as PopupListItem } from './popup/listItem.vue';
5
5
  import { default as PopupWidgetInput } from './popup/widgetInput.vue';
6
-
6
+ import { default as PopupAlert } from './alert/alert.vue';
7
+ import { default as PopupConfirm } from './confirm/confirm.vue';
8
+ import { default as PopupPrompt } from './prompt/prompt.vue';
7
9
  export declare const TopPopup: typeof Popup & ComponentCustomProps;
8
10
  export declare const TopPopupOpener: typeof PopupOpener & ComponentCustomProps;
9
11
  export declare const TopPopupListItem: typeof PopupListItem & ComponentCustomProps;
10
12
  export declare const TopPopupWidgetInput: typeof PopupWidgetInput & ComponentCustomProps;
13
+ export declare const TopPopupAlert: typeof PopupAlert & ComponentCustomProps;
14
+ export declare const TopPopupConfirm: typeof PopupConfirm & ComponentCustomProps;
15
+ export declare const TopPopupPrompt: typeof PopupPrompt & ComponentCustomProps;
@@ -0,0 +1,21 @@
1
+ import { Emits as PopupEmits, Props as PopupProps } from '../popup/popup';
2
+ export interface Props extends PopupProps {
3
+ /**
4
+ * Текст кнопки подтверждения
5
+ */
6
+ submitText?: string;
7
+ /**
8
+ * Текст кнопки отмены
9
+ */
10
+ cancelText?: string;
11
+ /**
12
+ * Значение, введенное в поле ввода
13
+ */
14
+ defaultValue?: string;
15
+ }
16
+ export type Emits = PopupEmits & {
17
+ /**
18
+ * Будет вызвано при нажатии кнопки подтверждения
19
+ */
20
+ (e: 'submit', value: string): void;
21
+ };