@topvisor/ui 1.5.6-topSelectorReactive.0 → 1.5.6-topSelectorReactive.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/.chunks/api-DZQlrC2R.amd.js +2 -0
  2. package/.chunks/api-DZQlrC2R.amd.js.map +1 -0
  3. package/.chunks/{api-D5wIZnrK.esm.js → api-DZQlrC2R.esm.js} +21 -18
  4. package/.chunks/api-DZQlrC2R.esm.js.map +1 -0
  5. package/.chunks/{app-CQnQGya1.amd.js → app-DinkodXi.amd.js} +2 -2
  6. package/.chunks/{app-CQnQGya1.amd.js.map → app-DinkodXi.amd.js.map} +1 -1
  7. package/.chunks/{app-CQnQGya1.esm.js → app-DinkodXi.esm.js} +11 -11
  8. package/.chunks/app-DinkodXi.esm.js.map +1 -0
  9. package/.chunks/{datepicker-CYAhR3K9.amd.js → datepicker-bozIEbDA.amd.js} +2 -2
  10. package/.chunks/{datepicker-CYAhR3K9.amd.js.map → datepicker-bozIEbDA.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-CYAhR3K9.esm.js → datepicker-bozIEbDA.esm.js} +2 -2
  12. package/.chunks/{datepicker-CYAhR3K9.esm.js.map → datepicker-bozIEbDA.esm.js.map} +1 -1
  13. package/.chunks/{dialog-B7DkbSQZ.amd.js → dialog-BCDVMWG1.amd.js} +2 -2
  14. package/.chunks/{dialog-B7DkbSQZ.amd.js.map → dialog-BCDVMWG1.amd.js.map} +1 -1
  15. package/.chunks/{dialog-B7DkbSQZ.esm.js → dialog-BCDVMWG1.esm.js} +3 -3
  16. package/.chunks/{dialog-B7DkbSQZ.esm.js.map → dialog-BCDVMWG1.esm.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-DnDFRV42.amd.js → dialog_regionSelectorRegions-0M1fMu1a.amd.js} +2 -2
  18. package/.chunks/dialog_regionSelectorRegions-0M1fMu1a.amd.js.map +1 -0
  19. package/.chunks/{dialog_regionSelectorRegions-DnDFRV42.esm.js → dialog_regionSelectorRegions-0M1fMu1a.esm.js} +6 -6
  20. package/.chunks/dialog_regionSelectorRegions-0M1fMu1a.esm.js.map +1 -0
  21. package/.chunks/forms-CY5MOh7a.amd.js +2 -0
  22. package/.chunks/forms-CY5MOh7a.amd.js.map +1 -0
  23. package/.chunks/{forms-BiKUURH4.esm.js → forms-CY5MOh7a.esm.js} +16 -14
  24. package/.chunks/forms-CY5MOh7a.esm.js.map +1 -0
  25. package/.chunks/formsExt-C9r4Gz9y.amd.js +2 -0
  26. package/.chunks/formsExt-C9r4Gz9y.amd.js.map +1 -0
  27. package/.chunks/{formsExt-kZL0--bf.esm.js → formsExt-C9r4Gz9y.esm.js} +162 -162
  28. package/.chunks/formsExt-C9r4Gz9y.esm.js.map +1 -0
  29. package/.chunks/{mocker-C3O-c0Np.amd.js → mocker-Bl1SzAJY.amd.js} +2 -2
  30. package/.chunks/mocker-Bl1SzAJY.amd.js.map +1 -0
  31. package/.chunks/{mocker-C3O-c0Np.esm.js → mocker-Bl1SzAJY.esm.js} +6 -2
  32. package/.chunks/mocker-Bl1SzAJY.esm.js.map +1 -0
  33. package/.chunks/notice-bro62vCA.amd.js +4 -0
  34. package/.chunks/notice-bro62vCA.amd.js.map +1 -0
  35. package/.chunks/{notice-LFdPfo-5.esm.js → notice-bro62vCA.esm.js} +3 -3
  36. package/.chunks/notice-bro62vCA.esm.js.map +1 -0
  37. package/.chunks/popup-3cwJ8Hev.amd.js +2 -0
  38. package/.chunks/popup-3cwJ8Hev.amd.js.map +1 -0
  39. package/.chunks/{popup-KKfSSrM6.esm.js → popup-3cwJ8Hev.esm.js} +5 -3
  40. package/.chunks/popup-3cwJ8Hev.esm.js.map +1 -0
  41. package/.chunks/popup-CzhBQhVH.amd.js +2 -0
  42. package/.chunks/popup-CzhBQhVH.amd.js.map +1 -0
  43. package/.chunks/{popup-DB5g_8kB.esm.js → popup-CzhBQhVH.esm.js} +5 -5
  44. package/.chunks/popup-CzhBQhVH.esm.js.map +1 -0
  45. package/.chunks/punycode.es6-CMafsPEb.amd.js +2 -0
  46. package/.chunks/punycode.es6-CMafsPEb.amd.js.map +1 -0
  47. package/.chunks/punycode.es6-CMafsPEb.esm.js +105 -0
  48. package/.chunks/{punycode.es6-BZRFIj88.esm.js.map → punycode.es6-CMafsPEb.esm.js.map} +1 -1
  49. package/.chunks/store-DjQAOnrn.esm.js.map +1 -1
  50. package/.chunks/{utils-D4nhUVHm.amd.js → utils-Be-ScFyj.amd.js} +2 -2
  51. package/.chunks/{utils-D4nhUVHm.amd.js.map → utils-Be-ScFyj.amd.js.map} +1 -1
  52. package/.chunks/{utils-D4nhUVHm.esm.js → utils-Be-ScFyj.esm.js} +3 -3
  53. package/.chunks/{utils-D4nhUVHm.esm.js.map → utils-Be-ScFyj.esm.js.map} +1 -1
  54. package/.chunks/{utils-DKbnf1Th.amd.js → utils-ds_g-L_r.amd.js} +2 -2
  55. package/.chunks/{utils-DKbnf1Th.amd.js.map → utils-ds_g-L_r.amd.js.map} +1 -1
  56. package/.chunks/{utils-DKbnf1Th.esm.js → utils-ds_g-L_r.esm.js} +4 -4
  57. package/.chunks/{utils-DKbnf1Th.esm.js.map → utils-ds_g-L_r.esm.js.map} +1 -1
  58. package/.chunks/{worker-BufdAd-a.amd.js → worker-Bv_yPPMv.amd.js} +2 -2
  59. package/.chunks/{worker-BufdAd-a.amd.js.map → worker-Bv_yPPMv.amd.js.map} +1 -1
  60. package/.chunks/{worker-BufdAd-a.esm.js → worker-Bv_yPPMv.esm.js} +3 -3
  61. package/.chunks/{worker-BufdAd-a.esm.js.map → worker-Bv_yPPMv.esm.js.map} +1 -1
  62. package/api/additional.js.map +1 -1
  63. package/api/index.amd.js +1 -1
  64. package/api/index.amd.js.map +1 -1
  65. package/api/index.js +1 -1
  66. package/assets/formsExt.css +1 -1
  67. package/assets/project.css +1 -1
  68. package/autoload-css-manifest.amd.json +4 -4
  69. package/autoload-css-manifest.json +4 -4
  70. package/charts/charts.amd.js +1 -1
  71. package/charts/charts.amd.js.map +1 -1
  72. package/charts/charts.js +1 -1
  73. package/charts/charts.js.map +1 -1
  74. package/core/app.amd.js +1 -1
  75. package/core/app.amd.js.map +1 -1
  76. package/core/app.js +3 -3
  77. package/dialog/dialog.amd.js +1 -1
  78. package/dialog/dialog.amd.js.map +1 -1
  79. package/dialog/dialog.js +2 -2
  80. package/forms/forms.amd.js +1 -1
  81. package/forms/forms.amd.js.map +1 -1
  82. package/forms/forms.js +1 -1
  83. package/formsExt/formsExt.amd.js +1 -1
  84. package/formsExt/formsExt.amd.js.map +1 -1
  85. package/formsExt/formsExt.js +1 -1
  86. package/layout/layout.amd.js +1 -1
  87. package/layout/layout.amd.js.map +1 -1
  88. package/layout/layout.js +1 -1
  89. package/package.json +2 -2
  90. package/popup/popup.amd.js +1 -1
  91. package/popup/popup.amd.js.map +1 -1
  92. package/popup/popup.js +1 -1
  93. package/popup/worker.amd.js +1 -1
  94. package/popup/worker.amd.js.map +1 -1
  95. package/popup/worker.js +1 -1
  96. package/project/project.amd.js +1 -1
  97. package/project/project.amd.js.map +1 -1
  98. package/project/project.js +458 -459
  99. package/project/project.js.map +1 -1
  100. package/schedule/schedule.amd.js +1 -1
  101. package/schedule/schedule.amd.js.map +1 -1
  102. package/schedule/schedule.js +8 -6
  103. package/schedule/schedule.js.map +1 -1
  104. package/src/api/api/mocker/index.d.ts +1 -6
  105. package/src/api/api/types/api.d.ts +1 -1
  106. package/src/components/formsExt/selector2/composables/useAPI.d.ts +406 -0
  107. package/src/components/formsExt/selector2/composables/useMenu.d.ts +412 -0
  108. package/src/components/formsExt/selector2/types.d.ts +17 -11
  109. package/src/components/popup/popup/types.d.ts +6 -1
  110. package/src/components/project/project.d.ts +1 -1
  111. package/src/components/project/projectSelector/cache.d.ts +14 -12
  112. package/src/components/project/projectSelector/submenu/types.d.ts +7 -14
  113. package/src/components/project/projectSelector/types.d.ts +22 -9
  114. package/src/components/project/projectSelector/utils.d.ts +8 -4
  115. package/src/core/core/core.d.ts +2 -3
  116. package/src/core/core/options.d.ts +26 -19
  117. package/src/core/core/state.d.ts +3 -4
  118. package/src/core/plugins/core.d.ts +1 -1
  119. package/tabsView/tabsView.amd.js +1 -1
  120. package/tabsView/tabsView.amd.js.map +1 -1
  121. package/tabsView/tabsView.js +2 -2
  122. package/tabsView/tabsView.js.map +1 -1
  123. package/utils/check.js.map +1 -1
  124. package/utils/clipboard.amd.js +1 -1
  125. package/utils/clipboard.amd.js.map +1 -1
  126. package/utils/clipboard.js +1 -1
  127. package/utils/clipboard.js.map +1 -1
  128. package/utils/date.amd.js +1 -1
  129. package/utils/date.amd.js.map +1 -1
  130. package/utils/date.js +1 -1
  131. package/utils/device.amd.js +1 -1
  132. package/utils/device.amd.js.map +1 -1
  133. package/utils/device.js +1 -1
  134. package/utils/dom.amd.js.map +1 -1
  135. package/utils/dom.js.map +1 -1
  136. package/utils/image.amd.js +1 -1
  137. package/utils/image.amd.js.map +1 -1
  138. package/utils/image.js +1 -1
  139. package/utils/lodash.amd.js +1 -1
  140. package/utils/lodash.amd.js.map +1 -1
  141. package/utils/lodash.js +1 -1
  142. package/utils/price.amd.js +1 -1
  143. package/utils/price.amd.js.map +1 -1
  144. package/utils/price.js +1 -1
  145. package/utils/price.js.map +1 -1
  146. package/utils/route.js.map +1 -1
  147. package/utils/scroll.js.map +1 -1
  148. package/utils/searchers.amd.js +1 -1
  149. package/utils/searchers.amd.js.map +1 -1
  150. package/utils/searchers.js +1 -1
  151. package/utils/searchers.js.map +1 -1
  152. package/utils/string.amd.js +1 -1
  153. package/utils/string.amd.js.map +1 -1
  154. package/utils/string.js +2 -2
  155. package/utils/string.js.map +1 -1
  156. package/utils/url.amd.js +1 -1
  157. package/utils/url.amd.js.map +1 -1
  158. package/utils/url.js +1 -1
  159. package/utils/url.js.map +1 -1
  160. package/.chunks/api-D5wIZnrK.amd.js +0 -2
  161. package/.chunks/api-D5wIZnrK.amd.js.map +0 -1
  162. package/.chunks/api-D5wIZnrK.esm.js.map +0 -1
  163. package/.chunks/app-CQnQGya1.esm.js.map +0 -1
  164. package/.chunks/dialog_regionSelectorRegions-DnDFRV42.amd.js.map +0 -1
  165. package/.chunks/dialog_regionSelectorRegions-DnDFRV42.esm.js.map +0 -1
  166. package/.chunks/forms-BiKUURH4.amd.js +0 -2
  167. package/.chunks/forms-BiKUURH4.amd.js.map +0 -1
  168. package/.chunks/forms-BiKUURH4.esm.js.map +0 -1
  169. package/.chunks/formsExt-kZL0--bf.amd.js +0 -2
  170. package/.chunks/formsExt-kZL0--bf.amd.js.map +0 -1
  171. package/.chunks/formsExt-kZL0--bf.esm.js.map +0 -1
  172. package/.chunks/mocker-C3O-c0Np.amd.js.map +0 -1
  173. package/.chunks/mocker-C3O-c0Np.esm.js.map +0 -1
  174. package/.chunks/notice-LFdPfo-5.amd.js +0 -4
  175. package/.chunks/notice-LFdPfo-5.amd.js.map +0 -1
  176. package/.chunks/notice-LFdPfo-5.esm.js.map +0 -1
  177. package/.chunks/popup-DB5g_8kB.amd.js +0 -2
  178. package/.chunks/popup-DB5g_8kB.amd.js.map +0 -1
  179. package/.chunks/popup-DB5g_8kB.esm.js.map +0 -1
  180. package/.chunks/popup-KKfSSrM6.amd.js +0 -2
  181. package/.chunks/popup-KKfSSrM6.amd.js.map +0 -1
  182. package/.chunks/popup-KKfSSrM6.esm.js.map +0 -1
  183. package/.chunks/punycode.es6-BZRFIj88.amd.js +0 -2
  184. package/.chunks/punycode.es6-BZRFIj88.amd.js.map +0 -1
  185. package/.chunks/punycode.es6-BZRFIj88.esm.js +0 -105
@@ -0,0 +1,412 @@
1
+ import { Ref } from 'vue';
2
+ import { Item, Props } from '../types';
3
+ import { API } from './useAPI';
4
+ import { ITEM_ID_NEW } from '../utils';
5
+ /**
6
+ * Функционал поиска
7
+ */
8
+ export declare const useMenu: <T extends Item = Item>(model: Ref<Props<T>["modelValue"]>, props: Readonly<Props<T>> & {
9
+ minLength: number;
10
+ }, emits: ReturnType<typeof defineEmits>, api: API) => {
11
+ searchText: Ref<string, string>;
12
+ resetSearch: () => void;
13
+ genIsShort: () => boolean;
14
+ itemsForShow: Ref<{
15
+ [x: string]: any;
16
+ id: number | typeof ITEM_ID_NEW;
17
+ name: string;
18
+ listItemProps?: {
19
+ type?: "button" | "formControls" | "regular" | "title" | "delimiter" | undefined;
20
+ closeByClick?: boolean | undefined;
21
+ class?: string | undefined;
22
+ attrs?: {
23
+ style?: string | undefined;
24
+ title?: string | undefined;
25
+ id?: string | undefined;
26
+ dir?: string | undefined;
27
+ hidden?: string | undefined;
28
+ contextmenu?: string | undefined;
29
+ lang?: string | undefined;
30
+ tabindex?: string | undefined;
31
+ color?: string | undefined;
32
+ contenteditable?: string | undefined;
33
+ onCopy?: string | undefined;
34
+ onCut?: string | undefined;
35
+ onPaste?: string | undefined;
36
+ onCompositionend?: string | undefined;
37
+ onCompositionstart?: string | undefined;
38
+ onCompositionupdate?: string | undefined;
39
+ onDrag?: string | undefined;
40
+ onDragend?: string | undefined;
41
+ onDragenter?: string | undefined;
42
+ onDragexit?: string | undefined;
43
+ onDragleave?: string | undefined;
44
+ onDragover?: string | undefined;
45
+ onDragstart?: string | undefined;
46
+ onDrop?: string | undefined;
47
+ onFocus?: string | undefined;
48
+ onFocusin?: string | undefined;
49
+ onFocusout?: string | undefined;
50
+ onBlur?: string | undefined;
51
+ onChange?: string | undefined;
52
+ onBeforeinput?: string | undefined;
53
+ onFormdata?: string | undefined;
54
+ onInput?: string | undefined;
55
+ onReset?: string | undefined;
56
+ onSubmit?: string | undefined;
57
+ onInvalid?: string | undefined;
58
+ onFullscreenchange?: string | undefined;
59
+ onFullscreenerror?: string | undefined;
60
+ onLoad?: string | undefined;
61
+ onError?: string | undefined;
62
+ onKeydown?: string | undefined;
63
+ onKeypress?: string | undefined;
64
+ onKeyup?: string | undefined;
65
+ onDblclick?: string | undefined;
66
+ onMousedown?: string | undefined;
67
+ onMouseenter?: string | undefined;
68
+ onMouseleave?: string | undefined;
69
+ onMousemove?: string | undefined;
70
+ onMouseout?: string | undefined;
71
+ onMouseover?: string | undefined;
72
+ onMouseup?: string | undefined;
73
+ onAbort?: string | undefined;
74
+ onCanplay?: string | undefined;
75
+ onCanplaythrough?: string | undefined;
76
+ onDurationchange?: string | undefined;
77
+ onEmptied?: string | undefined;
78
+ onEncrypted?: string | undefined;
79
+ onEnded?: string | undefined;
80
+ onLoadeddata?: string | undefined;
81
+ onLoadedmetadata?: string | undefined;
82
+ onLoadstart?: string | undefined;
83
+ onPause?: string | undefined;
84
+ onPlay?: string | undefined;
85
+ onPlaying?: string | undefined;
86
+ onProgress?: string | undefined;
87
+ onRatechange?: string | undefined;
88
+ onSeeked?: string | undefined;
89
+ onSeeking?: string | undefined;
90
+ onStalled?: string | undefined;
91
+ onSuspend?: string | undefined;
92
+ onTimeupdate?: string | undefined;
93
+ onVolumechange?: string | undefined;
94
+ onWaiting?: string | undefined;
95
+ onSelect?: string | undefined;
96
+ onScroll?: string | undefined;
97
+ onScrollend?: string | undefined;
98
+ onTouchcancel?: string | undefined;
99
+ onTouchend?: string | undefined;
100
+ onTouchmove?: string | undefined;
101
+ onTouchstart?: string | undefined;
102
+ onAuxclick?: string | undefined;
103
+ onClick?: string | undefined;
104
+ onContextmenu?: string | undefined;
105
+ onGotpointercapture?: string | undefined;
106
+ onLostpointercapture?: string | undefined;
107
+ onPointerdown?: string | undefined;
108
+ onPointermove?: string | undefined;
109
+ onPointerup?: string | undefined;
110
+ onPointercancel?: string | undefined;
111
+ onPointerenter?: string | undefined;
112
+ onPointerleave?: string | undefined;
113
+ onPointerover?: string | undefined;
114
+ onPointerout?: string | undefined;
115
+ onBeforetoggle?: string | undefined;
116
+ onToggle?: string | undefined;
117
+ onWheel?: string | undefined;
118
+ onAnimationcancel?: string | undefined;
119
+ onAnimationstart?: string | undefined;
120
+ onAnimationend?: string | undefined;
121
+ onAnimationiteration?: string | undefined;
122
+ onSecuritypolicyviolation?: string | undefined;
123
+ onTransitioncancel?: string | undefined;
124
+ onTransitionend?: string | undefined;
125
+ onTransitionrun?: string | undefined;
126
+ onTransitionstart?: string | undefined;
127
+ innerHTML?: string | undefined;
128
+ accesskey?: string | undefined;
129
+ draggable?: string | undefined;
130
+ enterkeyhint?: string | undefined;
131
+ enterKeyHint?: string | undefined;
132
+ inert?: string | undefined;
133
+ placeholder?: string | undefined;
134
+ spellcheck?: string | undefined;
135
+ translate?: string | undefined;
136
+ radiogroup?: string | undefined;
137
+ role?: string | undefined;
138
+ about?: string | undefined;
139
+ datatype?: string | undefined;
140
+ inlist?: string | undefined;
141
+ prefix?: string | undefined;
142
+ property?: string | undefined;
143
+ resource?: string | undefined;
144
+ typeof?: string | undefined;
145
+ vocab?: string | undefined;
146
+ autocapitalize?: string | undefined;
147
+ autocorrect?: string | undefined;
148
+ autosave?: string | undefined;
149
+ itemprop?: string | undefined;
150
+ itemscope?: string | undefined;
151
+ itemtype?: string | undefined;
152
+ itemid?: string | undefined;
153
+ itemref?: string | undefined;
154
+ results?: string | undefined;
155
+ security?: string | undefined;
156
+ unselectable?: string | undefined;
157
+ inputmode?: string | undefined;
158
+ is?: string | undefined;
159
+ exportparts?: string | undefined;
160
+ part?: string | undefined;
161
+ "aria-activedescendant"?: string | undefined;
162
+ "aria-atomic"?: string | undefined;
163
+ "aria-autocomplete"?: string | undefined;
164
+ "aria-busy"?: string | undefined;
165
+ "aria-checked"?: string | undefined;
166
+ "aria-colcount"?: string | undefined;
167
+ "aria-colindex"?: string | undefined;
168
+ "aria-colspan"?: string | undefined;
169
+ "aria-controls"?: string | undefined;
170
+ "aria-current"?: string | undefined;
171
+ "aria-describedby"?: string | undefined;
172
+ "aria-details"?: string | undefined;
173
+ "aria-disabled"?: string | undefined;
174
+ "aria-dropeffect"?: string | undefined;
175
+ "aria-errormessage"?: string | undefined;
176
+ "aria-expanded"?: string | undefined;
177
+ "aria-flowto"?: string | undefined;
178
+ "aria-grabbed"?: string | undefined;
179
+ "aria-haspopup"?: string | undefined;
180
+ "aria-hidden"?: string | undefined;
181
+ "aria-invalid"?: string | undefined;
182
+ "aria-keyshortcuts"?: string | undefined;
183
+ "aria-label"?: string | undefined;
184
+ "aria-labelledby"?: string | undefined;
185
+ "aria-level"?: string | undefined;
186
+ "aria-live"?: string | undefined;
187
+ "aria-modal"?: string | undefined;
188
+ "aria-multiline"?: string | undefined;
189
+ "aria-multiselectable"?: string | undefined;
190
+ "aria-orientation"?: string | undefined;
191
+ "aria-owns"?: string | undefined;
192
+ "aria-placeholder"?: string | undefined;
193
+ "aria-posinset"?: string | undefined;
194
+ "aria-pressed"?: string | undefined;
195
+ "aria-readonly"?: string | undefined;
196
+ "aria-relevant"?: string | undefined;
197
+ "aria-required"?: string | undefined;
198
+ "aria-roledescription"?: string | undefined;
199
+ "aria-rowcount"?: string | undefined;
200
+ "aria-rowindex"?: string | undefined;
201
+ "aria-rowspan"?: string | undefined;
202
+ "aria-selected"?: string | undefined;
203
+ "aria-setsize"?: string | undefined;
204
+ "aria-sort"?: string | undefined;
205
+ "aria-valuemax"?: string | undefined;
206
+ "aria-valuemin"?: string | undefined;
207
+ "aria-valuenow"?: string | undefined;
208
+ "aria-valuetext"?: string | undefined;
209
+ } | undefined;
210
+ } | undefined;
211
+ }[], Item[] | {
212
+ [x: string]: any;
213
+ id: number | typeof ITEM_ID_NEW;
214
+ name: string;
215
+ listItemProps?: {
216
+ type?: "button" | "formControls" | "regular" | "title" | "delimiter" | undefined;
217
+ closeByClick?: boolean | undefined;
218
+ class?: string | undefined;
219
+ attrs?: {
220
+ style?: string | undefined;
221
+ title?: string | undefined;
222
+ id?: string | undefined;
223
+ dir?: string | undefined;
224
+ hidden?: string | undefined;
225
+ contextmenu?: string | undefined;
226
+ lang?: string | undefined;
227
+ tabindex?: string | undefined;
228
+ color?: string | undefined;
229
+ contenteditable?: string | undefined;
230
+ onCopy?: string | undefined;
231
+ onCut?: string | undefined;
232
+ onPaste?: string | undefined;
233
+ onCompositionend?: string | undefined;
234
+ onCompositionstart?: string | undefined;
235
+ onCompositionupdate?: string | undefined;
236
+ onDrag?: string | undefined;
237
+ onDragend?: string | undefined;
238
+ onDragenter?: string | undefined;
239
+ onDragexit?: string | undefined;
240
+ onDragleave?: string | undefined;
241
+ onDragover?: string | undefined;
242
+ onDragstart?: string | undefined;
243
+ onDrop?: string | undefined;
244
+ onFocus?: string | undefined;
245
+ onFocusin?: string | undefined;
246
+ onFocusout?: string | undefined;
247
+ onBlur?: string | undefined;
248
+ onChange?: string | undefined;
249
+ onBeforeinput?: string | undefined;
250
+ onFormdata?: string | undefined;
251
+ onInput?: string | undefined;
252
+ onReset?: string | undefined;
253
+ onSubmit?: string | undefined;
254
+ onInvalid?: string | undefined;
255
+ onFullscreenchange?: string | undefined;
256
+ onFullscreenerror?: string | undefined;
257
+ onLoad?: string | undefined;
258
+ onError?: string | undefined;
259
+ onKeydown?: string | undefined;
260
+ onKeypress?: string | undefined;
261
+ onKeyup?: string | undefined;
262
+ onDblclick?: string | undefined;
263
+ onMousedown?: string | undefined;
264
+ onMouseenter?: string | undefined;
265
+ onMouseleave?: string | undefined;
266
+ onMousemove?: string | undefined;
267
+ onMouseout?: string | undefined;
268
+ onMouseover?: string | undefined;
269
+ onMouseup?: string | undefined;
270
+ onAbort?: string | undefined;
271
+ onCanplay?: string | undefined;
272
+ onCanplaythrough?: string | undefined;
273
+ onDurationchange?: string | undefined;
274
+ onEmptied?: string | undefined;
275
+ onEncrypted?: string | undefined;
276
+ onEnded?: string | undefined;
277
+ onLoadeddata?: string | undefined;
278
+ onLoadedmetadata?: string | undefined;
279
+ onLoadstart?: string | undefined;
280
+ onPause?: string | undefined;
281
+ onPlay?: string | undefined;
282
+ onPlaying?: string | undefined;
283
+ onProgress?: string | undefined;
284
+ onRatechange?: string | undefined;
285
+ onSeeked?: string | undefined;
286
+ onSeeking?: string | undefined;
287
+ onStalled?: string | undefined;
288
+ onSuspend?: string | undefined;
289
+ onTimeupdate?: string | undefined;
290
+ onVolumechange?: string | undefined;
291
+ onWaiting?: string | undefined;
292
+ onSelect?: string | undefined;
293
+ onScroll?: string | undefined;
294
+ onScrollend?: string | undefined;
295
+ onTouchcancel?: string | undefined;
296
+ onTouchend?: string | undefined;
297
+ onTouchmove?: string | undefined;
298
+ onTouchstart?: string | undefined;
299
+ onAuxclick?: string | undefined;
300
+ onClick?: string | undefined;
301
+ onContextmenu?: string | undefined;
302
+ onGotpointercapture?: string | undefined;
303
+ onLostpointercapture?: string | undefined;
304
+ onPointerdown?: string | undefined;
305
+ onPointermove?: string | undefined;
306
+ onPointerup?: string | undefined;
307
+ onPointercancel?: string | undefined;
308
+ onPointerenter?: string | undefined;
309
+ onPointerleave?: string | undefined;
310
+ onPointerover?: string | undefined;
311
+ onPointerout?: string | undefined;
312
+ onBeforetoggle?: string | undefined;
313
+ onToggle?: string | undefined;
314
+ onWheel?: string | undefined;
315
+ onAnimationcancel?: string | undefined;
316
+ onAnimationstart?: string | undefined;
317
+ onAnimationend?: string | undefined;
318
+ onAnimationiteration?: string | undefined;
319
+ onSecuritypolicyviolation?: string | undefined;
320
+ onTransitioncancel?: string | undefined;
321
+ onTransitionend?: string | undefined;
322
+ onTransitionrun?: string | undefined;
323
+ onTransitionstart?: string | undefined;
324
+ innerHTML?: string | undefined;
325
+ accesskey?: string | undefined;
326
+ draggable?: string | undefined;
327
+ enterkeyhint?: string | undefined;
328
+ enterKeyHint?: string | undefined;
329
+ inert?: string | undefined;
330
+ placeholder?: string | undefined;
331
+ spellcheck?: string | undefined;
332
+ translate?: string | undefined;
333
+ radiogroup?: string | undefined;
334
+ role?: string | undefined;
335
+ about?: string | undefined;
336
+ datatype?: string | undefined;
337
+ inlist?: string | undefined;
338
+ prefix?: string | undefined;
339
+ property?: string | undefined;
340
+ resource?: string | undefined;
341
+ typeof?: string | undefined;
342
+ vocab?: string | undefined;
343
+ autocapitalize?: string | undefined;
344
+ autocorrect?: string | undefined;
345
+ autosave?: string | undefined;
346
+ itemprop?: string | undefined;
347
+ itemscope?: string | undefined;
348
+ itemtype?: string | undefined;
349
+ itemid?: string | undefined;
350
+ itemref?: string | undefined;
351
+ results?: string | undefined;
352
+ security?: string | undefined;
353
+ unselectable?: string | undefined;
354
+ inputmode?: string | undefined;
355
+ is?: string | undefined;
356
+ exportparts?: string | undefined;
357
+ part?: string | undefined;
358
+ "aria-activedescendant"?: string | undefined;
359
+ "aria-atomic"?: string | undefined;
360
+ "aria-autocomplete"?: string | undefined;
361
+ "aria-busy"?: string | undefined;
362
+ "aria-checked"?: string | undefined;
363
+ "aria-colcount"?: string | undefined;
364
+ "aria-colindex"?: string | undefined;
365
+ "aria-colspan"?: string | undefined;
366
+ "aria-controls"?: string | undefined;
367
+ "aria-current"?: string | undefined;
368
+ "aria-describedby"?: string | undefined;
369
+ "aria-details"?: string | undefined;
370
+ "aria-disabled"?: string | undefined;
371
+ "aria-dropeffect"?: string | undefined;
372
+ "aria-errormessage"?: string | undefined;
373
+ "aria-expanded"?: string | undefined;
374
+ "aria-flowto"?: string | undefined;
375
+ "aria-grabbed"?: string | undefined;
376
+ "aria-haspopup"?: string | undefined;
377
+ "aria-hidden"?: string | undefined;
378
+ "aria-invalid"?: string | undefined;
379
+ "aria-keyshortcuts"?: string | undefined;
380
+ "aria-label"?: string | undefined;
381
+ "aria-labelledby"?: string | undefined;
382
+ "aria-level"?: string | undefined;
383
+ "aria-live"?: string | undefined;
384
+ "aria-modal"?: string | undefined;
385
+ "aria-multiline"?: string | undefined;
386
+ "aria-multiselectable"?: string | undefined;
387
+ "aria-orientation"?: string | undefined;
388
+ "aria-owns"?: string | undefined;
389
+ "aria-placeholder"?: string | undefined;
390
+ "aria-posinset"?: string | undefined;
391
+ "aria-pressed"?: string | undefined;
392
+ "aria-readonly"?: string | undefined;
393
+ "aria-relevant"?: string | undefined;
394
+ "aria-required"?: string | undefined;
395
+ "aria-roledescription"?: string | undefined;
396
+ "aria-rowcount"?: string | undefined;
397
+ "aria-rowindex"?: string | undefined;
398
+ "aria-rowspan"?: string | undefined;
399
+ "aria-selected"?: string | undefined;
400
+ "aria-setsize"?: string | undefined;
401
+ "aria-sort"?: string | undefined;
402
+ "aria-valuemax"?: string | undefined;
403
+ "aria-valuemin"?: string | undefined;
404
+ "aria-valuenow"?: string | undefined;
405
+ "aria-valuetext"?: string | undefined;
406
+ } | undefined;
407
+ } | undefined;
408
+ }[]>;
409
+ selectItem: (item: Item) => void;
410
+ selectNextItem: () => void;
411
+ deleteItemByItem: (item: Item) => Promise<void>;
412
+ };
@@ -2,13 +2,13 @@ import { Size } from '../../forms/helpers';
2
2
  import { Props as ButtonProps } from '../../forms/button/types';
3
3
  import { ListItemProps, Props as PopupProps } from '../../popup/popup/types';
4
4
  import { ITEM_ID_ALL, ITEM_ID_NEW } from './utils';
5
- export interface Props {
5
+ export interface Props<T extends Item = Item> {
6
6
  /**
7
7
  * Выбранный элемент
8
8
  *
9
9
  * Массив выбранных элементов, если multiselect = true
10
10
  */
11
- modelValue: Item | Item[];
11
+ modelValue: T | T[] | Item | Item[];
12
12
  /**
13
13
  * Список вариантов для выбора
14
14
  *
@@ -18,7 +18,13 @@ export interface Props {
18
18
  *
19
19
  * Не указывайте одновременно `items` и `api` запрос на получение тех же `items`, в этом нет смысла
20
20
  */
21
- items?: Item[];
21
+ items?: T[];
22
+ /**
23
+ * Форсировать состояние загрузки, если в отоборажаемом списке нет элементов
24
+ *
25
+ * Для случаев, когда нужно показать, что входные `items` в процессе загрузки
26
+ */
27
+ itemsIsLoading?: boolean;
22
28
  title?: string;
23
29
  disabled?: boolean;
24
30
  icon?: string;
@@ -73,7 +79,7 @@ export interface Props {
73
79
  /**
74
80
  * Если указан, будет выполнена загрузка результатов через API
75
81
  *
76
- * Константа, после установки заменять нельзя
82
+ * Константа, после установки менять нельзя
77
83
  *
78
84
  * @subcategory Api
79
85
  */
@@ -87,7 +93,7 @@ export interface Props {
87
93
  *
88
94
  * @subcategory Api
89
95
  */
90
- apiSetSearchParams?: (api: NonNullable<Props['api']>, search: string) => void;
96
+ apiSetSearchParams?: (api: NonNullable<Props<T>['api']>, search: string) => void;
91
97
  /**
92
98
  * Минимальная длина для выполнения поиска
93
99
  *
@@ -125,7 +131,7 @@ export interface Props {
125
131
  */
126
132
  appendSearchToResultCond?: (search: string) => boolean;
127
133
  /**
128
- * Не закрывать popup и не выбирать элемент автоматически после «добавления введённого значения»
134
+ * Не закрывать popup и не выбирать элемент автоматически после "добавления введённого значения"
129
135
  *
130
136
  * Работает только вместе с `appendSearchToResult = true`
131
137
  */
@@ -177,7 +183,7 @@ export interface Props {
177
183
  */
178
184
  openerShortcut?: string;
179
185
  }
180
- export interface Slots {
186
+ export interface Slots<T extends Item> {
181
187
  /**
182
188
  * Шаблон для генерации элементов списка результатов
183
189
  *
@@ -194,7 +200,7 @@ export interface Slots {
194
200
  * ```
195
201
  */
196
202
  item?(props: {
197
- item: Item;
203
+ item: T;
198
204
  }): any;
199
205
  /**
200
206
  * Шаблон для генерации элементов действий
@@ -204,7 +210,7 @@ export interface Slots {
204
210
  * Передается в слот `actions` компонента `TopPopupListItem`
205
211
  */
206
212
  actions?(props: {
207
- item: Item;
213
+ item: T;
208
214
  }): any;
209
215
  }
210
216
  export type Emits = {
@@ -213,7 +219,7 @@ export type Emits = {
213
219
  *
214
220
  * @see `props.appendSearchToResult`
215
221
  */
216
- 'appendItem': [item: Item];
222
+ appendItem: [item: Item];
217
223
  /**
218
224
  * Будет вызвано при открытии Popup
219
225
  */
@@ -241,7 +247,7 @@ export interface Item {
241
247
  id: number | typeof ITEM_ID_NEW;
242
248
  name: string;
243
249
  /**
244
- * Настройки вывода элемента
250
+ * Настройки вывода элемента списка
245
251
  */
246
252
  listItemProps?: ListItemProps;
247
253
  [propName: string]: any;
@@ -1,4 +1,5 @@
1
1
  import { OpenerProps } from './opener/types';
2
+ import { HTMLAttributes } from 'vue';
2
3
  export interface Props<T extends Record<string, any> | undefined = undefined> extends OpenerProps<T> {
3
4
  /**
4
5
  * Уникальный id компонента
@@ -64,5 +65,9 @@ export interface ListItemProps {
64
65
  * Следует ли закрывать меню по клику на элемент типа button и link
65
66
  */
66
67
  closeByClick?: boolean;
67
- attrs?: Partial<HTMLElement>;
68
+ /**
69
+ * CSS-класс элемента списка
70
+ */
71
+ class?: string;
72
+ attrs?: Partial<Record<Exclude<keyof HTMLAttributes, 'class'>, string>>;
68
73
  }
@@ -4,7 +4,7 @@ export { default as TopRegionSelector } from './regionSelector/regionSelector.vu
4
4
  export { findRegion, genSearcherByKey, dialogRegionSelector } from './regionSelector/utils/utils';
5
5
  export { default as TopGroupSelector } from './groupSelector/groupSelector.vue';
6
6
  export { default as TopProjectSelector } from './projectSelector/projectSelector.vue';
7
- export { clearCache } from './projectSelector/cache';
7
+ export { clearCache as topProjectSelectorClearCache } from './projectSelector/cache';
8
8
  export type { Emits as TopTagSelectorEmits, Tag, TagId, TagIdExclude } from './tagSelector/types';
9
9
  export { genElPopupOpener as genElTopTagSelectorPopupOpener, renderElPopupOpener as renderElTopTagSelectorPopupOpener, } from './tagSelector/utils/el';
10
10
  export { default as TopTagSelector } from './tagSelector/tagSelector.vue';
@@ -1,15 +1,5 @@
1
1
  import { Item } from '../../formsExt/selector2/types';
2
- import { ShallowRef, Ref } from 'vue';
3
- /**
4
- * Кеш списка проектов
5
- *
6
- * Используется только при `dataSource` = `static`
7
- * Данные синхронизируются между всеми экземплярами ProjectSelector
8
- *
9
- * @todo Добавить поддержку моков
10
- */
11
- export declare const projectsCache: ShallowRef<Item[] | undefined, Item[] | undefined>;
12
- export declare const resetStateSignal: Ref<number, number>;
2
+ import { Ref, ShallowRef } from 'vue';
13
3
  /**
14
4
  * Promise текущего выполняющегося запроса на получение проектов.
15
5
  *
@@ -26,6 +16,18 @@ export declare const projectsRequest: Ref<{
26
16
  finally: (onfinally?: (() => void) | null | undefined) => Promise<Api.ResponseError<any> | Api.ResponseSuccess<any, "get">>;
27
17
  readonly [Symbol.toStringTag]: string;
28
18
  } | null>;
19
+ /**
20
+ * Кеш списка проектов
21
+ *
22
+ * Используется только при `dataSource` = `static`
23
+ * Данные синхронизируются между всеми экземплярами ProjectSelector
24
+ *
25
+ * @todo Добавить поддержку моков
26
+ */
27
+ export declare const projectsCache: ShallowRef<Item[] | undefined, Item[] | undefined>;
29
28
  export declare const setCacheTotal: (projectsTotal: number) => void;
30
29
  export declare const getCacheTotal: () => number | undefined;
31
- export declare const clearCache: (resetState?: boolean) => void;
30
+ /**
31
+ * Сбросить локальный кеш и кеш API `/get/projects_2/projects/`
32
+ */
33
+ export declare const clearCache: () => void;
@@ -1,17 +1,10 @@
1
+ import { Item as ProjectItem } from '../types';
1
2
  export interface Props {
2
3
  /**
3
- * id проекта
4
- */
5
- id: number;
6
- /**
7
- * Права пользователя в проекте
8
- *
9
- * Записывается в виде строки из нулей и единиц '01011000100000000000'
10
- * Каждому индексу строки соответствует доступ к определенным действиям с проектом
11
- */
12
- right: string;
13
- /**
14
- * url проекта
15
- */
16
- url: string;
4
+ * Уникальный id для popup
5
+ */
6
+ id: string;
17
7
  }
8
+ export type PopupData = {
9
+ projectItem: ProjectItem;
10
+ };
@@ -1,10 +1,10 @@
1
1
  import { Props as ButtonProps } from '../../forms/button/types';
2
- import { Item } from '../../formsExt/selector2/types';
2
+ import { Item as SelectorItem } from '../../formsExt/selector2/types';
3
3
  export interface Props {
4
4
  /**
5
5
  * Выбранный проект
6
6
  */
7
- modelValue?: Item;
7
+ modelValue?: SelectorItem;
8
8
  /**
9
9
  * Настроенный API клиент для выполнения запросов
10
10
  *
@@ -16,21 +16,32 @@ export interface Props {
16
16
  */
17
17
  client: Api.Client<Api.TV.Paths, true>;
18
18
  /**
19
- * Нужно ли добавлять ссылки на проекты
19
+ * Режим вывода меню проектов
20
+ *
21
+ * - В этом режиме проект нельзя выбарть
22
+ * - Вместо выбора будет переход к указанному проекту
20
23
  */
21
- addLinksToProjects?: boolean;
24
+ menuMode?: boolean;
22
25
  /**
23
26
  * Не отображать проект с этим id в списке
24
27
  */
25
28
  excludeProjectId?: number;
29
+ /**
30
+ * code горячей клавиши для открытия селектора ('KeyA');
31
+ */
32
+ openerShortcut?: string;
26
33
  /**
27
34
  * Модификатор элемента, открывающего popup
28
35
  *
29
36
  * Добавит класс: `top-selector2-{{ modificator }}`
37
+ *
38
+ * @subcategory TopSelector
30
39
  */
31
40
  modificator?: string;
32
41
  /**
33
42
  * Текст для placeholder поля поиска
43
+ *
44
+ * @subcategory TopSelector
34
45
  */
35
46
  placeholder?: string;
36
47
  /**
@@ -38,11 +49,13 @@ export interface Props {
38
49
  *
39
50
  * Если не указан будет использоваться стандартный стиль селектора
40
51
  *
41
- * @subcategory Single select
52
+ * @subcategory TopSelector
42
53
  */
43
54
  buttonProps?: ButtonProps;
44
- /**
45
- * code горячей клавиши для открытия селектора ('KeyA');
46
- */
47
- openerShortcut?: string;
48
55
  }
56
+ export type Project = Required<Api.TV.Result<'/get/projects_2/projects/', ['id', 'user_id', 'name', 'url', 'on', 'right']>[number]> & {
57
+ name: string;
58
+ };
59
+ export type Item = SelectorItem | SelectorItem & Project & {
60
+ externalLink: string;
61
+ };