@topvisor/ui 1.0.35 → 1.0.36

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 (197) hide show
  1. package/.chunks/{core-DipMf5fL.es.js → core-CO5q-OhH.es.js} +13 -12
  2. package/.chunks/core-CO5q-OhH.es.js.map +1 -0
  3. package/.chunks/core-D-ONEIDC.amd.js +2 -0
  4. package/.chunks/{core-DipMf5fL.es.js.map → core-D-ONEIDC.amd.js.map} +1 -1
  5. package/.chunks/{datepicker-CkmL14DR.amd.js → datepicker-BKWD8N4r.amd.js} +2 -2
  6. package/.chunks/{datepicker-CkmL14DR.amd.js.map → datepicker-BKWD8N4r.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-CSXTkKbz.es.js → datepicker-BfPUBUE1.es.js} +2 -2
  8. package/.chunks/{datepicker-CSXTkKbz.es.js.map → datepicker-BfPUBUE1.es.js.map} +1 -1
  9. package/.chunks/{dialog_selectorRegions-DrwLBBcE.es.js → dialog_selectorRegions-D3CnPt4V.es.js} +4 -4
  10. package/.chunks/{dialog_selectorRegions-DrwLBBcE.es.js.map → dialog_selectorRegions-D3CnPt4V.es.js.map} +1 -1
  11. package/.chunks/{dialog_selectorRegions-UF09pD6-.amd.js → dialog_selectorRegions-DYPTw--e.amd.js} +2 -2
  12. package/.chunks/{dialog_selectorRegions-UF09pD6-.amd.js.map → dialog_selectorRegions-DYPTw--e.amd.js.map} +1 -1
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-Dvauzr0y.amd.js → dialogs.vue_vue_type_script_setup_true_lang-C5vfO9ia.amd.js} +2 -2
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-Dvauzr0y.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-C5vfO9ia.amd.js.map} +1 -1
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-jCRcr8b0.es.js → dialogs.vue_vue_type_script_setup_true_lang-CEkc3TYu.es.js} +2 -2
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-jCRcr8b0.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-CEkc3TYu.es.js.map} +1 -1
  17. package/.chunks/{forms-DvEX_A0C.amd.js → forms-DPIu5wcK.amd.js} +3 -3
  18. package/.chunks/{forms-DvEX_A0C.amd.js.map → forms-DPIu5wcK.amd.js.map} +1 -1
  19. package/.chunks/{forms-gknXHfMr.es.js → forms-YZl4XC4S.es.js} +300 -280
  20. package/.chunks/{forms-gknXHfMr.es.js.map → forms-YZl4XC4S.es.js.map} +1 -1
  21. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CFOaqhEN.es.js → listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js} +2 -2
  22. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CFOaqhEN.es.js.map → listItem.vue_vue_type_script_setup_true_lang-CDrG3onO.es.js.map} +1 -1
  23. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DzidIHjH.amd.js → listItem.vue_vue_type_script_setup_true_lang-CTbTjIda.amd.js} +2 -2
  24. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DzidIHjH.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CTbTjIda.amd.js.map} +1 -1
  25. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Di2dBh6s.es.js → menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js} +2 -2
  26. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BTEBvb7v.amd.js.map → menu.vue_vue_type_style_index_0_lang-2vtQvU8o.es.js.map} +1 -1
  27. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BTEBvb7v.amd.js → menu.vue_vue_type_style_index_0_lang-QsJS5sEm.amd.js} +2 -2
  28. package/.chunks/menu.vue_vue_type_style_index_0_lang-QsJS5sEm.amd.js.map +1 -0
  29. package/.chunks/{notice-CNEYYEEf.amd.js → notice-CwPCnQ9k.amd.js} +2 -2
  30. package/.chunks/{notice-CNEYYEEf.amd.js.map → notice-CwPCnQ9k.amd.js.map} +1 -1
  31. package/.chunks/{notice-B1bqWjOr.es.js → notice-CysocnDZ.es.js} +2 -2
  32. package/.chunks/{notice-B1bqWjOr.es.js.map → notice-CysocnDZ.es.js.map} +1 -1
  33. package/.chunks/{page.vue_vue_type_script_setup_true_lang-rQWGIFXD.es.js → page.vue_vue_type_script_setup_true_lang-DOTfcVUC.es.js} +4 -4
  34. package/.chunks/{page.vue_vue_type_script_setup_true_lang-rQWGIFXD.es.js.map → page.vue_vue_type_script_setup_true_lang-DOTfcVUC.es.js.map} +1 -1
  35. package/.chunks/{page.vue_vue_type_script_setup_true_lang-Z_tJYuPX.amd.js → page.vue_vue_type_script_setup_true_lang-vzWb9Ehr.amd.js} +2 -2
  36. package/.chunks/{page.vue_vue_type_script_setup_true_lang-Z_tJYuPX.amd.js.map → page.vue_vue_type_script_setup_true_lang-vzWb9Ehr.amd.js.map} +1 -1
  37. package/.chunks/{popup-B62kTGwH.es.js → popup-Cbr1ckCd.es.js} +2 -2
  38. package/.chunks/{popup-B62kTGwH.es.js.map → popup-Cbr1ckCd.es.js.map} +1 -1
  39. package/.chunks/{popup-sy_pGJeq.amd.js → popup-DdvupIju.amd.js} +2 -2
  40. package/.chunks/{popup-sy_pGJeq.amd.js.map → popup-DdvupIju.amd.js.map} +1 -1
  41. package/.chunks/{utils-CIbDLh5d.es.js → utils-ASIXzycS.es.js} +3 -3
  42. package/.chunks/{utils-CIbDLh5d.es.js.map → utils-ASIXzycS.es.js.map} +1 -1
  43. package/.chunks/{utils-DnAJ2MaK.es.js → utils-Bjl0RkKM.es.js} +2 -2
  44. package/.chunks/{utils-DnAJ2MaK.es.js.map → utils-Bjl0RkKM.es.js.map} +1 -1
  45. package/.chunks/{utils-abiX7BcR.amd.js → utils-CkpzFGzD.amd.js} +2 -2
  46. package/.chunks/{utils-abiX7BcR.amd.js.map → utils-CkpzFGzD.amd.js.map} +1 -1
  47. package/.chunks/{utils-CtUqTcmN.amd.js → utils-D_OVY7zV.amd.js} +2 -2
  48. package/.chunks/{utils-CtUqTcmN.amd.js.map → utils-D_OVY7zV.amd.js.map} +1 -1
  49. package/assets/forms.css +1 -1
  50. package/charts/charts.amd.js +1 -1
  51. package/charts/charts.amd.js.map +1 -1
  52. package/charts/charts.js +1 -1
  53. package/charts/charts.js.map +1 -1
  54. package/components/charts/miniChart/miniChart.vue.d.ts +1 -1
  55. package/components/charts/miniCharts/miniCharts.d.ts +1 -1
  56. package/components/charts/miniCharts/miniCharts.vue.d.ts +1 -1
  57. package/components/charts/miniCharts/stories/dummy.d.ts +1 -1
  58. package/components/forms/avatar/avatar.vue.d.ts +1 -1
  59. package/components/forms/caption/caption.vue.d.ts +17 -0
  60. package/components/forms/caption/types.d.ts +9 -0
  61. package/components/forms/checkbox/checkbox.vue.d.ts +1 -1
  62. package/components/forms/controlLabel/controlLabel.vue.d.ts +1 -1
  63. package/components/forms/forms.d.ts +2 -0
  64. package/components/forms/hint/hint.vue.d.ts +1 -1
  65. package/components/forms/input/input.vue.d.ts +1 -1
  66. package/components/forms/inputDate/inputDate.vue.d.ts +1 -1
  67. package/components/forms/inputDate/types.d.ts +1 -0
  68. package/components/forms/radio/radio.vue.d.ts +1 -1
  69. package/components/forms/select/select.vue.d.ts +1 -1
  70. package/components/forms/select/stories/exampleOptions.d.ts +1 -1
  71. package/components/forms/switcher/switcher.vue.d.ts +1 -1
  72. package/components/forms/textarea/textarea.vue.d.ts +1 -1
  73. package/components/forms/textarea/{textarea.d.ts → types.d.ts} +4 -0
  74. package/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +1 -1
  75. package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  76. package/components/formsExt/editArea/{editArea.d.ts → types.d.ts} +1 -1
  77. package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  78. package/components/formsExt/editInput/{editInput.d.ts → types.d.ts} +1 -1
  79. package/components/formsExt/menu/menu.vue.d.ts +1 -1
  80. package/components/formsExt/menu/stories/items.d.ts +1 -1
  81. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +1 -1
  82. package/components/formsExt/selector2/{api.d.ts → composables/useAPI.d.ts} +15 -1
  83. package/components/formsExt/selector2/composables/useMenu.d.ts +12 -0
  84. package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  85. package/components/formsExt/selector2/selector2.vue.d.ts +3 -3
  86. package/components/formsExt/selector2/utils.d.ts +6 -0
  87. package/components/popup/alert/alert.vue.d.ts +2 -2
  88. package/components/popup/alert/{alert.d.ts → types.d.ts} +1 -1
  89. package/components/popup/confirm/confirm.vue.d.ts +2 -2
  90. package/components/popup/confirm/{confirm.d.ts → types.d.ts} +1 -1
  91. package/components/popup/lib/worker.d.ts +2 -2
  92. package/components/popup/popup/listItem.vue.d.ts +1 -1
  93. package/components/popup/popup/opener.vue.d.ts +1 -1
  94. package/components/popup/popup/popup.vue.d.ts +1 -1
  95. package/components/popup/popup/widgetInput.vue.d.ts +1 -1
  96. package/components/popup/prompt/prompt.vue.d.ts +2 -2
  97. package/components/popup/prompt/{prompt.d.ts → types.d.ts} +1 -1
  98. package/components/project/selectorCompetitors/composables.d.ts +1 -2
  99. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
  100. package/components/project/selectorCompetitors/stories/items.d.ts +1 -1
  101. package/components/project/selectorCompetitors/{selectorCompetitors.d.ts → types.d.ts} +7 -0
  102. package/components/project/selectorRegion/composables/compare.d.ts +1 -1
  103. package/components/project/selectorRegion/composables/selectRegion.d.ts +2 -2
  104. package/components/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
  105. package/components/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
  106. package/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
  107. package/components/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
  108. package/components/project/selectorRegion/stories/searchers.d.ts +1 -1
  109. package/components/project/selectorRegion/utils/consts.d.ts +1 -1
  110. package/components/project/selectorRegion/utils/utils.d.ts +1 -1
  111. package/components/project/tagSelector/popupOpener/types.d.ts +2 -0
  112. package/components/project/tagSelector/types.d.ts +2 -0
  113. package/components/project/tagSelector/utils/el.d.ts +1 -1
  114. package/components/tabs/tabs/content.vue.d.ts +1 -1
  115. package/components/tabs/tabs/tab.vue.d.ts +1 -1
  116. package/components/tabs/tabs/tabs.vue.d.ts +1 -1
  117. package/components/tabsView/tabsView/menu.vue.d.ts +1 -1
  118. package/components/tabsView/tabsView/menuItem.vue.d.ts +1 -1
  119. package/components/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
  120. package/components/tabsView/tabsView/store.d.ts +12 -0
  121. package/components/tabsView/tabsView/tabsView.vue.d.ts +1 -1
  122. package/core/app.amd.js +1 -1
  123. package/core/app.js +5 -5
  124. package/core/utils/store.d.ts +1 -1
  125. package/dialog/dialog.amd.js +1 -1
  126. package/dialog/dialog.js +2 -2
  127. package/forms/forms.amd.js +1 -1
  128. package/forms/forms.js +8 -7
  129. package/formsExt/formsExt.amd.js +1 -1
  130. package/formsExt/formsExt.amd.js.map +1 -1
  131. package/formsExt/formsExt.js +310 -309
  132. package/formsExt/formsExt.js.map +1 -1
  133. package/icomoon/Topvisor icons.json +82 -36
  134. package/icomoon/demo.html +29 -1
  135. package/icomoon/fonts/Topvisor-2.eot +0 -0
  136. package/icomoon/fonts/Topvisor-2.svg +2 -0
  137. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  138. package/icomoon/fonts/Topvisor-2.woff +0 -0
  139. package/icomoon/selection.json +1 -1
  140. package/icomoon/style.css +11 -5
  141. package/layout/layout.amd.js +1 -1
  142. package/layout/layout.js +1 -1
  143. package/package.json +1 -1
  144. package/popup/popup.amd.js +1 -1
  145. package/popup/popup.amd.js.map +1 -1
  146. package/popup/popup.js +2 -2
  147. package/popup/popup.js.map +1 -1
  148. package/popup/worker.amd.js +1 -1
  149. package/popup/worker.amd.js.map +1 -1
  150. package/popup/worker.js +3 -3
  151. package/popup/worker.js.map +1 -1
  152. package/project/project.amd.js +1 -1
  153. package/project/project.amd.js.map +1 -1
  154. package/project/project.js +244 -241
  155. package/project/project.js.map +1 -1
  156. package/tabsView/tabsView.amd.js +1 -1
  157. package/tabsView/tabsView.amd.js.map +1 -1
  158. package/tabsView/tabsView.js +1 -1
  159. package/tabsView/tabsView.js.map +1 -1
  160. package/utils/clipboard.amd.js +1 -1
  161. package/utils/clipboard.js +1 -1
  162. package/utils/date.amd.js +1 -1
  163. package/utils/date.js +1 -1
  164. package/utils/device.amd.js +1 -1
  165. package/utils/device.js +1 -1
  166. package/utils/lodash.amd.js +1 -1
  167. package/utils/lodash.js +1 -1
  168. package/utils/price.amd.js +1 -1
  169. package/utils/price.js +1 -1
  170. package/utils/searchers.amd.js +1 -1
  171. package/utils/searchers.js +3 -3
  172. package/utils/string.amd.js +1 -1
  173. package/utils/string.amd.js.map +1 -1
  174. package/utils/string.js +1 -1
  175. package/utils/string.js.map +1 -1
  176. package/.chunks/core-MEpuX1uJ.amd.js +0 -2
  177. package/.chunks/core-MEpuX1uJ.amd.js.map +0 -1
  178. package/.chunks/menu.vue_vue_type_style_index_0_lang-Di2dBh6s.es.js.map +0 -1
  179. package/components/forms/inputDate/inputDate.d.ts +0 -3
  180. package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
  181. /package/components/charts/miniChart/{miniChart.d.ts → types.d.ts} +0 -0
  182. /package/components/forms/avatar/{avatar.d.ts → types.d.ts} +0 -0
  183. /package/components/forms/checkbox/{checkbox.d.ts → types.d.ts} +0 -0
  184. /package/components/forms/controlLabel/{controlLabel.d.ts → types.d.ts} +0 -0
  185. /package/components/forms/hint/{hint.d.ts → types.d.ts} +0 -0
  186. /package/components/forms/input/{input.d.ts → types.d.ts} +0 -0
  187. /package/components/forms/inputRange/{inputRange.d.ts → types.d.ts} +0 -0
  188. /package/components/forms/radio/{radio.d.ts → types.d.ts} +0 -0
  189. /package/components/forms/select/{select.d.ts → types.d.ts} +0 -0
  190. /package/components/forms/switcher/{switcher.d.ts → types.d.ts} +0 -0
  191. /package/components/formsExt/menu/{menu.d.ts → types.d.ts} +0 -0
  192. /package/components/formsExt/radioGroup/{radioGroup.d.ts → types.d.ts} +0 -0
  193. /package/components/formsExt/selector2/{selector2.d.ts → types.d.ts} +0 -0
  194. /package/components/popup/popup/{popup.d.ts → types.d.ts} +0 -0
  195. /package/components/project/selectorRegion/{selectorRegion.d.ts → types.d.ts} +0 -0
  196. /package/components/tabs/tabs/{tabs.d.ts → types.d.ts} +0 -0
  197. /package/components/tabsView/tabsView/{tabsView.d.ts → types.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"charts.js","sources":["../../src/components/charts/miniChart/utils/consts.ts","../../src/components/charts/miniChart/miniChart.vue","../../src/components/charts/miniCharts/miniCharts.vue","../../src/components/charts/charts.ts"],"sourcesContent":["/**\n * Кол-во столбцов по умолчанию\n */\nexport const defaultNumberCols = 90;\n\n/**\n * Минимальная высота колонки (в процентах)\n */\nexport const minHeight = 10; // %","<script setup lang=\"ts\">\nimport type { Props } from './miniChart';\nimport { computed } from 'vue';\nimport { dateFormat } from '@/core/utils/date';\nimport { percentOfNumber } from '@/core/utils/number';\nimport { defaultNumberCols, minHeight } from './utils/consts';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: 'blue',\n\tnumberCols: defaultNumberCols,\n});\nconst model = defineModel<Props['modelValue']>();\n\n/**\n * Расчет высоты колонки (в процентах)\n */\nconst genColHeight = (value: number): number => {\n\tlet maximumValue = maxValue.value;\n\n\t// для графиков средней и медианной делаем максимум 1\n\tif (props.isInvert) {\n\t\tvalue -= 1;\n\t\tmaximumValue -= 1;\n\t}\n\n\tlet height = maximumValue > 0 ? Math.round((value / maximumValue) * (100 - minHeight)) : 0;\n\tif (props.isInvert) return 100 - height;\n\n\treturn height + minHeight;\n};\n\nconst isActiveDate = (date: string) => props.activeDates.includes(date);\n\nconst maxValue = computed(() => Math.max(...props.values));\n\n/**\n * Из-за стиля .top-miniChart_chartGrid - direction: rtl\n */\nconst reversedDates = computed(() => props.dates.slice().reverse());\n\n/**\n * Кол-во пустых колонок\n */\nconst numOfEmptyCols = computed(() => {\n\tif (!props.dates.length) return 0;\n\n\treturn props.numberCols - props.dates.length;\n});\n\nconst resetModel = () => {\n\tmodel.value = null;\n};\n\nconst setModel = (e: Event, date: string, value: number | null) => {\n\tif (!(e.target instanceof HTMLElement)) return;\n\n\tmodel.value = {\n\t\telCol: e.target,\n\t\tdate: dateFormat(date),\n\t\tvalue: value === null ? '--' : value + (props.valueSuffix ?? ''),\n\t};\n};\n\n/**\n * Возвращает численный показатель динамики графика\n */\nconst localDynamic = computed(() => {\n\tlet dynamic = props.dynamic;\n\n\tif (typeof dynamic === 'undefined') {\n\t\tconst prevPeriodValue = props.values[props.keysForDyn.start];\n\t\tconst currentValue = props.values[props.keysForDyn.end];\n\t\tdynamic = currentValue - prevPeriodValue;\n\t}\n\n\tconst sign = dynamic < 0 ? -1 : 1;\n\n\treturn sign * (percentOfNumber(Math.abs(dynamic)) as number);\n});\n\nconst dynamicDirection = computed(() => {\n\tlet direction: 'up' | 'stay' | 'down' = 'stay';\n\n\tif (!props.isInvert) {\n\t\tif (localDynamic.value > 0) direction = 'up';\n\t\tif (localDynamic.value < 0) direction = 'down';\n\t} else {\n\t\tif (localDynamic.value > 0) direction = 'down';\n\t\tif (localDynamic.value < 0) direction = 'up';\n\t}\n\n\treturn direction;\n});\n\n</script>\n\n<template>\n\t<div\n\t\t:class=\"{\n\t\t\t['top-miniChart']: true,\n\t\t\t['top-miniChart_hideChartInMobile']: hideChartInMobile,\n\t\t\t[`top-color_${color}`]: true\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"top-miniChart_title top-ellipsis\"\n\t\t\t:data-top-icon=\"gIcon\"\n\t\t>\n\t\t\t{{ title }}\n\t\t</div>\n\n\t\t<div class=\"top-miniChart_chart\">\n\t\t\t<div\n\t\t\t\tclass=\"top-miniChart_chartGrid\"\n\t\t\t\t@mouseleave=\"resetModel()\"\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tv-for=\"(date, i) in reversedDates\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t['top-miniChart_chartGridCol']: true,\n\t\t\t\t\t\t['top-active']: isActiveDate(date)\n\t\t\t\t\t}\"\n\t\t\t\t\t@mouseenter=\"setModel($event, date, values[values.length - i - 1])\"\n\t\t\t\t>\n\t\t\t\t\t<div :style=\"'height:' + genColHeight(values[values.length - i - 1]) + '%'\"/>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tv-for=\"() in numOfEmptyCols\"\n\t\t\t\t\tclass=\"top-miniChart_chartGridCol top-miniChart_chartGridCol-none\"\n\t\t\t\t\t@mouseenter=\"resetModel()\"\n\t\t\t\t>\n\t\t\t\t\t<div></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"top-miniChart_data\">\n\t\t\t<span :class=\"{\n\t\t\t\t['top-miniChart_dataDynamic']: true,\n\t\t\t\t[`top-miniChart_dataDynamic-direction_${dynamicDirection}`]: true,\n\t\t\t}\">\n\t\t\t\t{{ Math.abs(localDynamic) || '' }}\n\t\t\t</span>\n\t\t\t<span class=\"top-miniChart_dataValue\">\n\t\t\t\t{{ percentOfNumber(values[values.length - 1]) || 0 }}\n\t\t\t</span>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"additionalHTML\"\n\t\t\tv-html=\"additionalHTML\"\n\t\t/>\n\t</div>\n\n</template>\n<style>\n@import \"./styles/miniChart.css\";\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onMounted, onUnmounted, ref, watch } from 'vue';\nimport type { Props, Style } from './miniCharts';\n\nconst props = defineProps<Props>();\nconst model = defineModel<Props['modelValue']>();\n\nconst elRef = ref<HTMLElement | null>(null);\n\nlet pagesResizeObserver: ResizeObserver;\n\n/**\n * Количество страниц\n */\nconst countPages = ref(1);\n\n/**\n * Активная страница\n */\nconst activePage = ref(1);\n\n/**\n * Установка количества страниц в блоке\n */\nconst setCountPages = () => {\n\tcountPages.value = Math.round(elRef.value!.scrollHeight / elRef.value!.clientHeight);\n};\n\nwatch(countPages, () => {\n\tif (countPages.value < activePage.value) {\n\t\tactivePage.value = 1;\n\t}\n});\n\nwatch(\n\t() => props.countCharts,\n\t() => setCountPages(),\n\t{ flush: 'post' },\n);\n\n/**\n * Расчет положения для подсказки\n */\nconst tooltipStyle = computed(() => {\n\tif (!model.value) return {};\n\n\tconst box = model.value.elCol.getBoundingClientRect();\n\n\tconst style: Style = {\n\t\ttop: box.bottom + window.scrollY + 'px',\n\t};\n\n\tif (document.documentElement.clientWidth / 2 > box.right) {\n\t\tstyle.left = box.right + window.scrollX + 10 + 'px';\n\t} else {\n\t\tstyle.left = box.left + window.scrollX - 10 + 'px';\n\t\tstyle.transform = 'translate(-100%, 0)';\n\t}\n\n\treturn style;\n});\n\nonMounted(() => {\n\t/**\n\t * Функционал переключения экранов графиков\n\t */\n\tpagesResizeObserver = new ResizeObserver(() => setCountPages());\n\tpagesResizeObserver.observe(elRef.value!);\n\n\twatch(activePage, () => {\n\t\tconst elMiniChart = elRef.value!.children[0];\n\t\tconst pageHeight = elMiniChart.clientHeight + parseInt(window.getComputedStyle(elRef.value!).getPropertyValue('row-gap'));\n\t\tconst scrollTop = pageHeight * (activePage.value - 1);\n\n\t\telRef.value!.scrollTo({ top: scrollTop, behavior: 'smooth' });\n\t});\n});\n\nonUnmounted(() => {\n\tpagesResizeObserver.disconnect();\n});\n</script>\n\n<template>\n\t<div\n\t\tclass=\"top-miniCharts\"\n\t\t:class=\"{\n\t\t\t['top-miniCharts']: true,\n\t\t\t['scrollable']: countPages > 1,\n\t\t\t['top-miniCharts_hideChartInMobile']: hideChartInMobile,\n\t\t}\"\n\t\tref=\"elRef\"\n\t>\n\n\t\t<slot></slot>\n\n\t\t<div\n\t\t\tv-if=\"countPages > 1\"\n\t\t\tclass=\"top-miniCharts_pages\"\n\t\t>\n\t\t\t<span\n\t\t\t\tv-for=\"n in countPages\"\n\t\t\t\t:class=\"{['top-active']: n === activePage}\"\n\t\t\t\t@click=\"activePage = n\"\n\t\t\t></span>\n\t\t</div>\n\n\t\t<Teleport to=\"body\">\n\t\t\t<div\n\t\t\t\tv-if=\"model\"\n\t\t\t\tclass=\"top-miniCharts_tooltip\"\n\t\t\t\t:style=\"tooltipStyle\"\n\t\t\t>\n\t\t\t\t<span>{{ model.date }}</span>\n\t\t\t\t<span>{{ model.value }}</span>\n\t\t\t</div>\n\t\t</Teleport>\n\t</div>\n\n</template>\n\n<style>\n@import \"./styles/miniCharts.css\";\n</style>\n","import type { ComponentCustomProps } from 'vue';\n\nimport MiniChart from './miniChart/miniChart.vue';\nimport MiniCharts from './miniCharts/miniCharts.vue';\n\nexport const TopMiniChart = MiniChart as typeof MiniChart & ComponentCustomProps;\n\nexport const TopMiniCharts = MiniCharts as typeof MiniCharts & ComponentCustomProps;\n"],"names":["defaultNumberCols","minHeight","props","__props","model","useModel","genColHeight","value","maximumValue","maxValue","height","isActiveDate","date","computed","reversedDates","numOfEmptyCols","resetModel","setModel","dateFormat","localDynamic","dynamic","prevPeriodValue","percentOfNumber","dynamicDirection","direction","elRef","ref","pagesResizeObserver","countPages","activePage","setCountPages","watch","tooltipStyle","box","style","onMounted","scrollTop","onUnmounted","TopMiniChart","_sfc_main$1","TopMiniCharts","_sfc_main"],"mappings":"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"}
1
+ {"version":3,"file":"charts.js","sources":["../../src/components/charts/miniChart/utils/consts.ts","../../src/components/charts/miniChart/miniChart.vue","../../src/components/charts/miniCharts/miniCharts.vue","../../src/components/charts/charts.ts"],"sourcesContent":["/**\n * Кол-во столбцов по умолчанию\n */\nexport const defaultNumberCols = 90;\n\n/**\n * Минимальная высота колонки (в процентах)\n */\nexport const minHeight = 10; // %","<script setup lang=\"ts\">\nimport type { Props } from './types';\nimport { computed } from 'vue';\nimport { dateFormat } from '@/core/utils/date';\nimport { percentOfNumber } from '@/core/utils/number';\nimport { defaultNumberCols, minHeight } from './utils/consts';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: 'blue',\n\tnumberCols: defaultNumberCols,\n});\nconst model = defineModel<Props['modelValue']>();\n\n/**\n * Расчет высоты колонки (в процентах)\n */\nconst genColHeight = (value: number): number => {\n\tlet maximumValue = maxValue.value;\n\n\t// для графиков средней и медианной делаем максимум 1\n\tif (props.isInvert) {\n\t\tvalue -= 1;\n\t\tmaximumValue -= 1;\n\t}\n\n\tlet height = maximumValue > 0 ? Math.round((value / maximumValue) * (100 - minHeight)) : 0;\n\tif (props.isInvert) return 100 - height;\n\n\treturn height + minHeight;\n};\n\nconst isActiveDate = (date: string) => props.activeDates.includes(date);\n\nconst maxValue = computed(() => Math.max(...props.values));\n\n/**\n * Из-за стиля .top-miniChart_chartGrid - direction: rtl\n */\nconst reversedDates = computed(() => props.dates.slice().reverse());\n\n/**\n * Кол-во пустых колонок\n */\nconst numOfEmptyCols = computed(() => {\n\tif (!props.dates.length) return 0;\n\n\treturn props.numberCols - props.dates.length;\n});\n\nconst resetModel = () => {\n\tmodel.value = null;\n};\n\nconst setModel = (e: Event, date: string, value: number | null) => {\n\tif (!(e.target instanceof HTMLElement)) return;\n\n\tmodel.value = {\n\t\telCol: e.target,\n\t\tdate: dateFormat(date),\n\t\tvalue: value === null ? '--' : value + (props.valueSuffix ?? ''),\n\t};\n};\n\n/**\n * Возвращает численный показатель динамики графика\n */\nconst localDynamic = computed(() => {\n\tlet dynamic = props.dynamic;\n\n\tif (typeof dynamic === 'undefined') {\n\t\tconst prevPeriodValue = props.values[props.keysForDyn.start];\n\t\tconst currentValue = props.values[props.keysForDyn.end];\n\t\tdynamic = currentValue - prevPeriodValue;\n\t}\n\n\tconst sign = dynamic < 0 ? -1 : 1;\n\n\treturn sign * (percentOfNumber(Math.abs(dynamic)) as number);\n});\n\nconst dynamicDirection = computed(() => {\n\tlet direction: 'up' | 'stay' | 'down' = 'stay';\n\n\tif (!props.isInvert) {\n\t\tif (localDynamic.value > 0) direction = 'up';\n\t\tif (localDynamic.value < 0) direction = 'down';\n\t} else {\n\t\tif (localDynamic.value > 0) direction = 'down';\n\t\tif (localDynamic.value < 0) direction = 'up';\n\t}\n\n\treturn direction;\n});\n\n</script>\n\n<template>\n\t<div\n\t\t:class=\"{\n\t\t\t['top-miniChart']: true,\n\t\t\t['top-miniChart_hideChartInMobile']: hideChartInMobile,\n\t\t\t[`top-color_${color}`]: true\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"top-miniChart_title top-ellipsis\"\n\t\t\t:data-top-icon=\"gIcon\"\n\t\t>\n\t\t\t{{ title }}\n\t\t</div>\n\n\t\t<div class=\"top-miniChart_chart\">\n\t\t\t<div\n\t\t\t\tclass=\"top-miniChart_chartGrid\"\n\t\t\t\t@mouseleave=\"resetModel()\"\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tv-for=\"(date, i) in reversedDates\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t['top-miniChart_chartGridCol']: true,\n\t\t\t\t\t\t['top-active']: isActiveDate(date)\n\t\t\t\t\t}\"\n\t\t\t\t\t@mouseenter=\"setModel($event, date, values[values.length - i - 1])\"\n\t\t\t\t>\n\t\t\t\t\t<div :style=\"'height:' + genColHeight(values[values.length - i - 1]) + '%'\"/>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tv-for=\"() in numOfEmptyCols\"\n\t\t\t\t\tclass=\"top-miniChart_chartGridCol top-miniChart_chartGridCol-none\"\n\t\t\t\t\t@mouseenter=\"resetModel()\"\n\t\t\t\t>\n\t\t\t\t\t<div></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"top-miniChart_data\">\n\t\t\t<span :class=\"{\n\t\t\t\t['top-miniChart_dataDynamic']: true,\n\t\t\t\t[`top-miniChart_dataDynamic-direction_${dynamicDirection}`]: true,\n\t\t\t}\">\n\t\t\t\t{{ Math.abs(localDynamic) || '' }}\n\t\t\t</span>\n\t\t\t<span class=\"top-miniChart_dataValue\">\n\t\t\t\t{{ percentOfNumber(values[values.length - 1]) || 0 }}\n\t\t\t</span>\n\t\t</div>\n\n\t\t<div\n\t\t\tv-if=\"additionalHTML\"\n\t\t\tv-html=\"additionalHTML\"\n\t\t/>\n\t</div>\n\n</template>\n<style>\n@import \"./styles/miniChart.css\";\n</style>\n","<script setup lang=\"ts\">\nimport { computed, onMounted, onUnmounted, ref, watch } from 'vue';\nimport type { Props, Style } from './miniCharts';\n\nconst props = defineProps<Props>();\nconst model = defineModel<Props['modelValue']>();\n\nconst elRef = ref<HTMLElement | null>(null);\n\nlet pagesResizeObserver: ResizeObserver;\n\n/**\n * Количество страниц\n */\nconst countPages = ref(1);\n\n/**\n * Активная страница\n */\nconst activePage = ref(1);\n\n/**\n * Установка количества страниц в блоке\n */\nconst setCountPages = () => {\n\tcountPages.value = Math.round(elRef.value!.scrollHeight / elRef.value!.clientHeight);\n};\n\nwatch(countPages, () => {\n\tif (countPages.value < activePage.value) {\n\t\tactivePage.value = 1;\n\t}\n});\n\nwatch(\n\t() => props.countCharts,\n\t() => setCountPages(),\n\t{ flush: 'post' },\n);\n\n/**\n * Расчет положения для подсказки\n */\nconst tooltipStyle = computed(() => {\n\tif (!model.value) return {};\n\n\tconst box = model.value.elCol.getBoundingClientRect();\n\n\tconst style: Style = {\n\t\ttop: box.bottom + window.scrollY + 'px',\n\t};\n\n\tif (document.documentElement.clientWidth / 2 > box.right) {\n\t\tstyle.left = box.right + window.scrollX + 10 + 'px';\n\t} else {\n\t\tstyle.left = box.left + window.scrollX - 10 + 'px';\n\t\tstyle.transform = 'translate(-100%, 0)';\n\t}\n\n\treturn style;\n});\n\nonMounted(() => {\n\t/**\n\t * Функционал переключения экранов графиков\n\t */\n\tpagesResizeObserver = new ResizeObserver(() => setCountPages());\n\tpagesResizeObserver.observe(elRef.value!);\n\n\twatch(activePage, () => {\n\t\tconst elMiniChart = elRef.value!.children[0];\n\t\tconst pageHeight = elMiniChart.clientHeight + parseInt(window.getComputedStyle(elRef.value!).getPropertyValue('row-gap'));\n\t\tconst scrollTop = pageHeight * (activePage.value - 1);\n\n\t\telRef.value!.scrollTo({ top: scrollTop, behavior: 'smooth' });\n\t});\n});\n\nonUnmounted(() => {\n\tpagesResizeObserver.disconnect();\n});\n</script>\n\n<template>\n\t<div\n\t\tclass=\"top-miniCharts\"\n\t\t:class=\"{\n\t\t\t['top-miniCharts']: true,\n\t\t\t['scrollable']: countPages > 1,\n\t\t\t['top-miniCharts_hideChartInMobile']: hideChartInMobile,\n\t\t}\"\n\t\tref=\"elRef\"\n\t>\n\n\t\t<slot></slot>\n\n\t\t<div\n\t\t\tv-if=\"countPages > 1\"\n\t\t\tclass=\"top-miniCharts_pages\"\n\t\t>\n\t\t\t<span\n\t\t\t\tv-for=\"n in countPages\"\n\t\t\t\t:class=\"{['top-active']: n === activePage}\"\n\t\t\t\t@click=\"activePage = n\"\n\t\t\t></span>\n\t\t</div>\n\n\t\t<Teleport to=\"body\">\n\t\t\t<div\n\t\t\t\tv-if=\"model\"\n\t\t\t\tclass=\"top-miniCharts_tooltip\"\n\t\t\t\t:style=\"tooltipStyle\"\n\t\t\t>\n\t\t\t\t<span>{{ model.date }}</span>\n\t\t\t\t<span>{{ model.value }}</span>\n\t\t\t</div>\n\t\t</Teleport>\n\t</div>\n\n</template>\n\n<style>\n@import \"./styles/miniCharts.css\";\n</style>\n","import type { ComponentCustomProps } from 'vue';\n\nimport MiniChart from './miniChart/miniChart.vue';\nimport MiniCharts from './miniCharts/miniCharts.vue';\n\nexport const TopMiniChart = MiniChart as typeof MiniChart & ComponentCustomProps;\n\nexport const TopMiniCharts = MiniCharts as typeof MiniCharts & ComponentCustomProps;\n"],"names":["defaultNumberCols","minHeight","props","__props","model","useModel","genColHeight","value","maximumValue","maxValue","height","isActiveDate","date","computed","reversedDates","numOfEmptyCols","resetModel","setModel","dateFormat","localDynamic","dynamic","prevPeriodValue","percentOfNumber","dynamicDirection","direction","elRef","ref","pagesResizeObserver","countPages","activePage","setCountPages","watch","tooltipStyle","box","style","onMounted","scrollTop","onUnmounted","TopMiniChart","_sfc_main$1","TopMiniCharts","_sfc_main"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { Props, Item, Color } from './miniChart';
1
+ import { Props, Item, Color } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,4 +1,4 @@
1
- import { Item } from '../miniChart/miniChart';
1
+ import { Item } from '../miniChart/types';
2
2
  export interface Props {
3
3
  modelValue?: Item | null;
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { Props } from './miniCharts';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { Item } from '../miniChart/miniChart';
3
+ import { Item } from '../miniChart/types';
4
4
  type __VLS_Props = Props;
5
5
  type __VLS_PublicProps = {
6
6
  modelValue?: Props['modelValue'];
@@ -1,4 +1,4 @@
1
- import { Props as MiniChartProps } from '../../miniChart/miniChart';
1
+ import { Props as MiniChartProps } from '../../miniChart/types';
2
2
  /**
3
3
  * Список объектов props для мини графиков
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Props, Size } from './avatar';
1
+ import { Props, Size } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
4
4
  i18n: {
@@ -0,0 +1,17 @@
1
+ import { Props, Slots } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<Slots> & Slots;
6
+ refs: {};
7
+ rootEl: HTMLLabelElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,9 @@
1
+ export interface Props {
2
+ title: string;
3
+ }
4
+ export interface Slots {
5
+ /**
6
+ * Слот с элементом ввода
7
+ */
8
+ default(props: {}): any;
9
+ }
@@ -1,4 +1,4 @@
1
- import { Props } from './checkbox';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,4 +1,4 @@
1
- import { Props } from './controlLabel';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -1,6 +1,7 @@
1
1
  import { ComponentCustomProps } from 'vue';
2
2
  import { default as Avatar } from './avatar/avatar.vue';
3
3
  import { default as Button } from './button/button.vue';
4
+ import { default as Caption } from './caption/caption.vue';
4
5
  import { default as Checkbox } from './checkbox/checkbox.vue';
5
6
  import { default as ControlLabel } from './controlLabel/controlLabel.vue';
6
7
  import { default as Hint } from './hint/hint.vue';
@@ -15,6 +16,7 @@ import { default as Loadbar } from './loadbar/loadbar.vue';
15
16
  import { default as Preloader } from './preloader/preloader.vue';
16
17
  export declare const TopAvatar: typeof Avatar & ComponentCustomProps;
17
18
  export declare const TopButton: typeof Button & ComponentCustomProps;
19
+ export declare const TopCaption: typeof Caption & ComponentCustomProps;
18
20
  export declare const TopCheckbox: typeof Checkbox & ComponentCustomProps;
19
21
  export declare const TopControlLabel: typeof ControlLabel & ComponentCustomProps;
20
22
  export declare const TopHint: typeof Hint & ComponentCustomProps;
@@ -1,4 +1,4 @@
1
- import { Props } from './hint';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Props, Size, Styling, CaptionType } from './input';
1
+ import { Props, Size, Styling, CaptionType } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Props } from './inputDate';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
4
  "update:modelValue": (value: string) => any;
@@ -0,0 +1 @@
1
+ export * from '../input/types';
@@ -1,4 +1,4 @@
1
- import { Props } from './radio';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Props, Size, Style } from './select';
1
+ import { Props, Size, Style } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,4 +1,4 @@
1
- import { Option, Props } from '../select';
1
+ import { Option, Props } from '../types';
2
2
  declare const optionsMap: Map<Props['modelValue'], Option>;
3
3
  declare const groupOptions: Map<string, string>;
4
4
  declare const optionsArray: Option[];
@@ -1,4 +1,4 @@
1
- import { Props } from './switcher';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Props, Style } from './textarea';
1
+ import { Props, Style } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
4
  "update:modelValue": (value?: string | undefined) => any;
@@ -25,6 +25,10 @@ export interface Props {
25
25
  * Добавить к полю элемент с подсказкой, которая будет появляться при наведении
26
26
  */
27
27
  hint?: string;
28
+ /**
29
+ * Максимальное количество символов
30
+ */
31
+ maxLength?: number;
28
32
  }
29
33
  export declare const styling: {
30
34
  readonly regular: "";
@@ -1,6 +1,6 @@
1
1
  import { Props, Style } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { Size } from '../radioGroup/radioGroup';
3
+ import { Size } from '../radioGroup/types';
4
4
  type __VLS_Props = Props;
5
5
  type __VLS_PublicProps = {
6
6
  modelValue: Props['modelValue'];
@@ -1,4 +1,4 @@
1
- import { Props } from './editArea';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
4
  close: () => any;
@@ -1,4 +1,4 @@
1
- import { Props as TextareaProps } from '../../forms/textarea/textarea';
1
+ import { Props as TextareaProps } from '../../forms/textarea/types';
2
2
  export interface Props extends TextareaProps {
3
3
  /**
4
4
  * Поддерживает modelValue и **все другие** props компонента Textarea
@@ -1,4 +1,4 @@
1
- import { Props } from './editInput';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
4
  "update:modelValue": (value: string) => any;
@@ -1,4 +1,4 @@
1
- import { Props as InputProps } from '../../forms/input/input';
1
+ import { Props as InputProps } from '../../forms/input/types';
2
2
  import { Props as ButtonProps } from '../../forms/button/types';
3
3
  export interface Props {
4
4
  modelValue: string;
@@ -1,4 +1,4 @@
1
- import { Props, styling } from './menu';
1
+ import { Props, styling } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,3 +1,3 @@
1
- import { Item } from '../menu';
1
+ import { Item } from '../types';
2
2
  declare const items: Item[];
3
3
  export default items;
@@ -1,4 +1,4 @@
1
- import { Props, Size } from './radioGroup';
1
+ import { Props, Size } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,6 +1,20 @@
1
- import { Item, Props } from './selector2';
1
+ import { Item, Props } from '../types';
2
2
  import { Ref } from 'vue';
3
+ export type API = ReturnType<typeof useAPI>;
3
4
  export declare const useAPI: (apiRequest: Props["apiRequest"], minLength: number, useCache: Props["useCache"]) => {
5
+ apiRequest: {
6
+ [propName: string]: any;
7
+ params: {
8
+ limit?: number;
9
+ offset?: number;
10
+ search?: string;
11
+ };
12
+ call: Function;
13
+ cache: Map<string, {
14
+ result: Array<Item>;
15
+ nextOffset?: number;
16
+ }>;
17
+ } | undefined;
4
18
  items: Ref<{
5
19
  [x: string]: any;
6
20
  id: number | null;
@@ -0,0 +1,12 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { Item, Props } from '../types';
3
+ import { API } from './useAPI';
4
+ /**
5
+ * Функционал поиска
6
+ */
7
+ export declare const useMenu: (model: Ref<Props["modelValue"]>, items: Ref<Props["items"]>, multiselect: Props["multiselect"], appendAllValue: Ref<Props["appendAllValue"]>, appendSearchToResult: Ref<Props["appendSearchToResult"]>, api: API) => {
8
+ searchText: Ref<string, string>;
9
+ resetSearch: () => void;
10
+ items: ComputedRef<Item[]>;
11
+ itemsForShow: ComputedRef<Item[]>;
12
+ };
@@ -1,4 +1,4 @@
1
- import { PropsItemMulti } from './selector2';
1
+ import { PropsItemMulti } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<PropsItemMulti, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
4
  delete: (id: number | null) => any;
@@ -1,11 +1,11 @@
1
+ import { Item, Props, Slots, Size } from './types';
1
2
  import { TopLibPopup } from '../../popup/lib/popup';
2
- import { Item, Props, Slots, Size } from './selector2';
3
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/popup';
4
+ import { PopupEvent, Props } from '../../popup/popup/types';
5
5
  import { OnCleanup } from '@vue/reactivity';
6
6
  type __VLS_Props = Props;
7
7
  type __VLS_PublicProps = {
8
- modelValue?: Props['modelValue'];
8
+ modelValue: Props['modelValue'];
9
9
  } & __VLS_Props;
10
10
  declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
@@ -0,0 +1,6 @@
1
+ import { Item, Props } from './types';
2
+ export declare const ITEM_ID_ALL = 0;
3
+ /**
4
+ * Выбран ли элемент
5
+ */
6
+ export declare const isSelected: (modelValue: Props["modelValue"], item: Item, checkNameForNullId?: boolean) => boolean;
@@ -1,6 +1,6 @@
1
- import { Props } from './alert';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { PopupEvent } from '../popup/popup';
3
+ import { PopupEvent } from '../popup/types';
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
6
6
  slots: {
@@ -1,4 +1,4 @@
1
- import { Emits as PopupEmits, Props as PopupProps } from '../popup/popup';
1
+ import { Emits as PopupEmits, Props as PopupProps } from '../popup/types';
2
2
  export interface Props extends PopupProps {
3
3
  /**
4
4
  * Текст кнопки
@@ -1,5 +1,5 @@
1
- import { PopupEvent } from '../popup/popup';
2
- import { Props } from './confirm';
1
+ import { PopupEvent } from '../popup/types';
2
+ import { Props } from './types';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Emits as PopupEmits, Props as PopupProps } from '../popup/popup';
1
+ import { Emits as PopupEmits, Props as PopupProps } from '../popup/types';
2
2
  export interface Props extends PopupProps {
3
3
  /**
4
4
  * Текст кнопки отмены
@@ -1,5 +1,5 @@
1
1
  import { TopLibPopup } from './popup';
2
- import { OpenerProps } from '../popup/popup';
2
+ import { OpenerProps } from '../popup/types';
3
3
  export type Options = {
4
4
  /**
5
5
  * Глобальное событие, которое будет вызвано перед открытием TopPopup
@@ -38,7 +38,7 @@ declare class Worker {
38
38
  */
39
39
  static getAllVisible(): HTMLElement[];
40
40
  /**
41
- * Открть Popup от указанного elOpener
41
+ * Открыть Popup от указанного elOpener
42
42
  * @param {HTMLElement} elOpener - элемент, который должен вызвать открытие Popup
43
43
  */
44
44
  static openByOpener(elOpener: HTMLElement): Promise<TopLibPopup | undefined>;
@@ -1,4 +1,4 @@
1
- import { ListItemProps } from './popup';
1
+ import { ListItemProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { OpenerProps } from './popup';
1
+ import { OpenerProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
@@ -1,5 +1,5 @@
1
1
  import { TopLibPopup } from '../lib/popup';
2
- import { Props, PopupEvent } from './popup';
2
+ import { Props, PopupEvent } from './types';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Props } from '../../forms/input/input';
1
+ import { Props } from '../../forms/input/types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  declare const __VLS_defaults: {
@@ -1,5 +1,5 @@
1
- import { PopupEvent } from '../popup/popup';
2
- import { Props } from './prompt';
1
+ import { PopupEvent } from '../popup/types';
2
+ import { Props } from './types';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
@@ -1,4 +1,4 @@
1
- import { Emits as PopupEmits, Props as PopupProps } from '../popup/popup';
1
+ import { Emits as PopupEmits, Props as PopupProps } from '../popup/types';
2
2
  export interface Props extends PopupProps {
3
3
  /**
4
4
  * Текст кнопки подтверждения
@@ -1,4 +1,3 @@
1
1
  import { MaybeRefOrGetter, ComputedRef } from 'vue';
2
- import { Item } from './selectorCompetitors';
3
- import { Competitor } from './types/competitor';
2
+ import { Competitor, Item } from './types';
4
3
  export declare const useItemsFromCompetitors: (competitors: MaybeRefOrGetter<Competitor[]>, projectId: MaybeRefOrGetter<number>) => ComputedRef<Item[]>;
@@ -1,4 +1,4 @@
1
- import { Props } from './selectorCompetitors';
1
+ import { Props } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,3 +1,3 @@
1
- import { Item } from '../selectorCompetitors';
1
+ import { Item } from '../types';
2
2
  declare const _default: Item[];
3
3
  export default _default;
@@ -21,3 +21,10 @@ export interface Item extends ButtonProps {
21
21
  content: string;
22
22
  icon?: string;
23
23
  }
24
+ export type Competitor = {
25
+ id: number;
26
+ name: string;
27
+ site: string;
28
+ on: 0 | 1;
29
+ url: string;
30
+ };
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- import { Props, SearcherByKey } from '../selectorRegion';
2
+ import { Props, SearcherByKey } from '../types';
3
3
  /**
4
4
  * Создание и управление реактивными переменными для сравнения
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- import { Option } from '../../../forms/select/select';
3
- import { Props, SearcherIndexed } from '../selectorRegion';
2
+ import { Option } from '../../../forms/select/types';
3
+ import { Props, SearcherIndexed } from '../types';
4
4
  /**
5
5
  * Создание и управление реактивными переменными для выбора региона
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- import { Props, SearcherByKey } from '../selectorRegion';
3
- import { Options } from '../../../forms/select/select';
2
+ import { Props, SearcherByKey } from '../types';
3
+ import { Options } from '../../../forms/select/types';
4
4
  /**
5
5
  * Создание и управление реактивными переменными для выбора ПС
6
6
  *
@@ -1,6 +1,6 @@
1
- import { Props, Region, SearcherIndexed, SearcherByKey } from '../selectorRegion';
1
+ import { Props, Region, SearcherIndexed, SearcherByKey } from '../types';
2
2
  import { Ref, ComputedRef } from 'vue';
3
- import { Options, Option } from '../../../forms/select/select';
3
+ import { Options, Option } from '../../../forms/select/types';
4
4
  /**
5
5
  * Создание и управления рективными переменными компонента
6
6
  *
@@ -1,4 +1,4 @@
1
- import { Region } from '../selectorRegion';
1
+ import { Region } from '../types';
2
2
  export interface Props {
3
3
  /**
4
4
  * Список регионов
@@ -1,4 +1,4 @@
1
- import { Props, Region, SearcherIndexed, Searcher } from './selectorRegion';
1
+ import { Props, Region, SearcherIndexed, Searcher } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = Props;
4
4
  type __VLS_PublicProps = {
@@ -1,3 +1,3 @@
1
- import { Searcher } from '../selectorRegion';
1
+ import { Searcher } from '../types';
2
2
  declare const searchers: Searcher[];
3
3
  export default searchers;
@@ -1,4 +1,4 @@
1
- import { Region, SearcherIndexed } from '../selectorRegion';
1
+ import { Region, SearcherIndexed } from '../types';
2
2
  /**
3
3
  * Ключ ПС - для выбора нескольких ПС или регионов
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Region, Searcher, SearcherByKey } from '../selectorRegion';
1
+ import { Region, Searcher, SearcherByKey } from '../types';
2
2
  import { AsyncTopDialogHandle } from '../../../dialog/dialog/composables/asyncDialogHandle';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  import { Props } from '../dialog_selectorRegions/types';
@@ -1,5 +1,6 @@
1
1
  import { ModelRef, Ref } from 'vue';
2
2
  import { Props as TagSelectorProps, Tag } from '../types';
3
+ import { Styling } from '../../../forms/button/types';
3
4
  export type TagSelectorTarget = {
4
5
  model: ModelRef<TagSelectorProps['modelValue']> | Ref<TagSelectorProps['modelValue']>;
5
6
  mode: Props['mode'];
@@ -59,4 +60,5 @@ export interface Props {
59
60
  * Полезная нагрузка, при редактировании целевого объекта
60
61
  */
61
62
  payload?: Record<string, any>;
63
+ styling?: Styling;
62
64
  }
@@ -1,4 +1,5 @@
1
1
  import { components as componentsTagId } from 'topvisor-openapi/src/ts/Tags_2/Types/TagId';
2
+ import { Styling } from '../../forms/button/types';
2
3
  /**
3
4
  * Информация о теге
4
5
  */
@@ -89,6 +90,7 @@ export interface Props {
89
90
  * Не рекомендуется менять
90
91
  */
91
92
  emitDelay?: number;
93
+ styling?: Styling;
92
94
  }
93
95
  export type FiltersAction = 'add' | 'replace' | 'delete';
94
96
  export type Emits = {
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { OpenerProps as PopupOpenerProps } from '../../../popup/popup/popup';
2
+ import { OpenerProps as PopupOpenerProps } from '../../../popup/popup/types';
3
3
  import { Props as TagSelectorOpenerProps } from '../popupOpener/types';
4
4
  /**
5
5
  * Сгенерировтаь элемент для открытия popup с выбором тегов