@mintplayer/vue-bootstrap 3.28.0 → 3.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/accordion/index.mjs +45 -36
  2. package/accordion/src/BsAccordion.vue.d.ts +12 -5
  3. package/accordion/src/BsAccordionItem.vue.d.ts +9 -2
  4. package/accordion/src/accordion-context.d.ts +8 -0
  5. package/accordion/src/index.d.ts +1 -1
  6. package/calendar/index.mjs +99 -24
  7. package/calendar/src/generated/BsCalendar.generated.vue.d.ts +113 -0
  8. package/{charts/trend/src/BsTrendChart.vue.d.ts → calendar/src/generated/calendar.view.generated.vue.d.ts} +4 -5
  9. package/calendar/src/generated/index.d.ts +1 -0
  10. package/calendar/src/index.d.ts +2 -1
  11. package/card/index.mjs +39 -46
  12. package/card/src/BsCard.vue.d.ts +8 -1
  13. package/card/src/BsCardFooter.vue.d.ts +2 -1
  14. package/card/src/BsCardHeader.vue.d.ts +4 -8
  15. package/card/src/BsCardImg.vue.d.ts +2 -1
  16. package/carousel/index.mjs +149 -61
  17. package/carousel/src/carousel.vue.d.ts +2 -0
  18. package/carousel/src/generated/BsCarousel.generated.vue.d.ts +234 -0
  19. package/carousel/src/generated/BsCarouselItem.generated.vue.d.ts +122 -0
  20. package/{navbar/src/BsNavbarItem.vue.d.ts → carousel/src/generated/carousel-item.view.generated.vue.d.ts} +11 -14
  21. package/carousel/src/generated/carousel.view.generated.vue.d.ts +27 -0
  22. package/carousel/src/generated/index.d.ts +2 -0
  23. package/carousel/src/index.d.ts +2 -2
  24. package/charts/hierarchy/index.mjs +242 -41
  25. package/charts/hierarchy/src/generated/BsHierarchyChart.generated.vue.d.ts +292 -0
  26. package/charts/hierarchy/src/generated/hierarchy-chart.view.generated.vue.d.ts +8 -0
  27. package/charts/hierarchy/src/generated/index.d.ts +1 -0
  28. package/charts/hierarchy/src/index.d.ts +2 -2
  29. package/charts/sparkline/index.mjs +44 -18
  30. package/charts/sparkline/src/BsSparkline.vue.d.ts +14 -2
  31. package/charts/trend/index.mjs +133 -21
  32. package/charts/trend/src/generated/BsTrendChart.generated.vue.d.ts +136 -0
  33. package/charts/trend/src/generated/index.d.ts +1 -0
  34. package/charts/trend/src/generated/trend-chart.view.generated.vue.d.ts +8 -0
  35. package/charts/trend/src/index.d.ts +2 -2
  36. package/checkbox/index.mjs +1 -29
  37. package/checkbox/src/BsCheckbox.vue.d.ts +29 -5
  38. package/chunks/BsCheckbox-C8H1KT2D.mjs +96 -0
  39. package/chunks/BsDatatable.generated-CLyz-zYI.mjs +446 -0
  40. package/chunks/BsDatetimePicker.generated-DB9itVGP.mjs +191 -0
  41. package/chunks/BsSplitterPanel.generated-B84cMuMJ.mjs +97 -0
  42. package/chunks/BsTreeview.generated-Rf47miZv.mjs +124 -0
  43. package/chunks/radio-group-key-CnFhXLW0.mjs +4 -0
  44. package/code-snippet/index.mjs +123 -31
  45. package/code-snippet/src/generated/BsCodeSnippet.generated.vue.d.ts +132 -0
  46. package/code-snippet/src/generated/code-snippet.view.generated.vue.d.ts +8 -0
  47. package/code-snippet/src/generated/index.d.ts +1 -0
  48. package/code-snippet/src/index.d.ts +2 -1
  49. package/datatable/index.mjs +3 -86
  50. package/datatable/src/generated/BsDatatable.generated.vue.d.ts +544 -0
  51. package/datatable/src/generated/datatable.view.generated.vue.d.ts +59 -0
  52. package/datatable/src/generated/index.d.ts +1 -0
  53. package/datatable/src/index.d.ts +3 -1
  54. package/datepicker/index.mjs +155 -24
  55. package/datepicker/src/generated/BsDatepicker.generated.vue.d.ts +183 -0
  56. package/datepicker/src/generated/datepicker.view.generated.vue.d.ts +8 -0
  57. package/datepicker/src/generated/index.d.ts +1 -0
  58. package/datepicker/src/index.d.ts +3 -1
  59. package/datetime-picker/index.mjs +1 -29
  60. package/datetime-picker/src/generated/BsDatetimePicker.generated.vue.d.ts +216 -0
  61. package/datetime-picker/src/generated/datetime-picker.view.generated.vue.d.ts +8 -0
  62. package/datetime-picker/src/generated/index.d.ts +1 -0
  63. package/datetime-picker/src/index.d.ts +2 -1
  64. package/dock/index.mjs +122 -23
  65. package/dock/src/generated/BsDockManager.generated.vue.d.ts +174 -0
  66. package/dock/src/generated/dock-manager.view.generated.vue.d.ts +33 -0
  67. package/dock/src/generated/dock-node.view.generated.vue.d.ts +6 -0
  68. package/dock/src/generated/index.d.ts +1 -0
  69. package/dock/src/index.d.ts +3 -1
  70. package/dropdown-menu/index.mjs +33 -31
  71. package/dropdown-menu/src/BsDropdownItem.vue.d.ts +1 -1
  72. package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +12 -5
  73. package/dropdown-menu/src/index.d.ts +1 -1
  74. package/file-manager/index.mjs +265 -17
  75. package/file-manager/src/generated/BsFileManager.generated.vue.d.ts +213 -0
  76. package/file-manager/src/generated/file-manager.view.generated.vue.d.ts +8 -0
  77. package/file-manager/src/generated/index.d.ts +1 -0
  78. package/file-manager/src/index.d.ts +3 -1
  79. package/input-group/index.mjs +15 -8
  80. package/input-group/src/BsInputGroup.vue.d.ts +7 -1
  81. package/machine/index.mjs +64 -1
  82. package/machine/src/content.d.ts +13 -0
  83. package/machine/src/core.d.ts +23 -0
  84. package/machine/src/core.spec.d.ts +1 -0
  85. package/machine/src/index.d.ts +2 -0
  86. package/multi-range/index.mjs +97 -22
  87. package/multi-range/src/generated/BsMultiRange.generated.vue.d.ts +132 -0
  88. package/multi-range/src/generated/index.d.ts +1 -0
  89. package/multi-range/src/generated/multi-range.view.generated.vue.d.ts +8 -0
  90. package/multi-range/src/index.d.ts +2 -1
  91. package/navbar/index.mjs +189 -57
  92. package/navbar/src/generated/BsNavbar.generated.vue.d.ts +196 -0
  93. package/navbar/src/generated/BsNavbarDropdown.generated.vue.d.ts +155 -0
  94. package/navbar/src/generated/BsNavbarItem.generated.vue.d.ts +144 -0
  95. package/navbar/src/generated/BsNavbarNav.generated.vue.d.ts +135 -0
  96. package/navbar/src/generated/index.d.ts +4 -0
  97. package/navbar/src/generated/navbar-dropdown.view.generated.vue.d.ts +34 -0
  98. package/navbar/src/generated/navbar-item.view.generated.vue.d.ts +27 -0
  99. package/navbar/src/generated/navbar-nav.view.generated.vue.d.ts +27 -0
  100. package/navbar/src/generated/navbar.view.generated.vue.d.ts +38 -0
  101. package/navbar/src/index.d.ts +2 -5
  102. package/otp-input/index.mjs +115 -21
  103. package/otp-input/src/generated/BsOtpInput.generated.vue.d.ts +134 -0
  104. package/otp-input/src/generated/index.d.ts +1 -0
  105. package/{theming/src/BsThemeToggle.vue.d.ts → otp-input/src/generated/otp-input.view.generated.vue.d.ts} +3 -3
  106. package/otp-input/src/index.d.ts +2 -1
  107. package/package.json +7 -5
  108. package/pagination/index.mjs +54 -20
  109. package/pagination/src/BsPagination.vue.d.ts +21 -4
  110. package/phone-input/index.mjs +151 -31
  111. package/phone-input/src/generated/BsPhoneInput.generated.vue.d.ts +174 -0
  112. package/phone-input/src/generated/index.d.ts +1 -0
  113. package/{file-manager/src/BsFileManager.vue.d.ts → phone-input/src/generated/phone-input.view.generated.vue.d.ts} +3 -3
  114. package/phone-input/src/index.d.ts +2 -1
  115. package/query-builder/index.mjs +259 -42
  116. package/query-builder/src/generated/BsQueryBuilder.generated.vue.d.ts +268 -0
  117. package/query-builder/src/generated/index.d.ts +1 -0
  118. package/query-builder/src/generated/query-builder-item.view.generated.vue.d.ts +30 -0
  119. package/query-builder/src/generated/query-builder.view.generated.vue.d.ts +33 -0
  120. package/query-builder/src/index.d.ts +3 -1
  121. package/radio/index.mjs +74 -21
  122. package/radio/src/BsRadio.vue.d.ts +28 -8
  123. package/radio/src/index.d.ts +1 -0
  124. package/radio/src/radio-group-key.d.ts +10 -0
  125. package/radio-group/index.mjs +37 -20
  126. package/radio-group/src/BsRadioGroup.vue.d.ts +13 -8
  127. package/ribbon/index.mjs +1223 -25
  128. package/ribbon/src/generated/BsQuickAccessToolbar.generated.vue.d.ts +135 -0
  129. package/ribbon/src/generated/BsRibbon.generated.vue.d.ts +219 -0
  130. package/ribbon/src/generated/BsRibbonButton.generated.vue.d.ts +199 -0
  131. package/ribbon/src/generated/BsRibbonCheckBox.generated.vue.d.ts +106 -0
  132. package/ribbon/src/generated/BsRibbonColorPicker.generated.vue.d.ts +106 -0
  133. package/ribbon/src/generated/BsRibbonComboBox.generated.vue.d.ts +117 -0
  134. package/ribbon/src/generated/BsRibbonContextualTabSet.generated.vue.d.ts +153 -0
  135. package/ribbon/src/generated/BsRibbonDropdownButton.generated.vue.d.ts +204 -0
  136. package/ribbon/src/generated/BsRibbonGallery.generated.vue.d.ts +210 -0
  137. package/ribbon/src/generated/BsRibbonGalleryItem.generated.vue.d.ts +175 -0
  138. package/ribbon/src/generated/BsRibbonGroup.generated.vue.d.ts +199 -0
  139. package/ribbon/src/generated/BsRibbonGroupButton.generated.vue.d.ts +117 -0
  140. package/ribbon/src/generated/BsRibbonMenuItem.generated.vue.d.ts +188 -0
  141. package/ribbon/src/generated/BsRibbonMenuSeparator.generated.vue.d.ts +17 -0
  142. package/ribbon/src/generated/BsRibbonSplitButton.generated.vue.d.ts +208 -0
  143. package/ribbon/src/generated/BsRibbonTab.generated.vue.d.ts +175 -0
  144. package/ribbon/src/generated/BsRibbonTemplateItem.generated.vue.d.ts +135 -0
  145. package/ribbon/src/generated/BsRibbonToggleButton.generated.vue.d.ts +210 -0
  146. package/ribbon/src/generated/index.d.ts +18 -0
  147. package/ribbon/src/generated/quick-access-toolbar.view.generated.vue.d.ts +27 -0
  148. package/ribbon/src/generated/ribbon-button.view.generated.vue.d.ts +27 -0
  149. package/ribbon/src/generated/ribbon-check-box.view.generated.vue.d.ts +8 -0
  150. package/ribbon/src/generated/ribbon-color-picker.view.generated.vue.d.ts +8 -0
  151. package/ribbon/src/generated/ribbon-combo-box.view.generated.vue.d.ts +9 -0
  152. package/ribbon/src/generated/ribbon-contextual-tab-set.view.generated.vue.d.ts +27 -0
  153. package/ribbon/src/generated/ribbon-dropdown-button.view.generated.vue.d.ts +29 -0
  154. package/ribbon/src/generated/ribbon-gallery-item.view.generated.vue.d.ts +27 -0
  155. package/ribbon/src/generated/ribbon-gallery.view.generated.vue.d.ts +28 -0
  156. package/ribbon/src/generated/ribbon-group-button.view.generated.vue.d.ts +9 -0
  157. package/ribbon/src/generated/ribbon-group.view.generated.vue.d.ts +27 -0
  158. package/ribbon/src/generated/ribbon-menu-item.view.generated.vue.d.ts +27 -0
  159. package/ribbon/src/generated/ribbon-menu-separator.view.generated.vue.d.ts +8 -0
  160. package/ribbon/src/generated/ribbon-split-button.view.generated.vue.d.ts +29 -0
  161. package/ribbon/src/generated/ribbon-tab.view.generated.vue.d.ts +27 -0
  162. package/ribbon/src/generated/ribbon-template-item.view.generated.vue.d.ts +27 -0
  163. package/ribbon/src/generated/ribbon-toggle-button.view.generated.vue.d.ts +27 -0
  164. package/ribbon/src/generated/ribbon.view.generated.vue.d.ts +29 -0
  165. package/ribbon/src/index.d.ts +3 -2
  166. package/scheduler/index.mjs +457 -39
  167. package/scheduler/src/generated/BsScheduler.generated.vue.d.ts +202 -0
  168. package/scheduler/src/generated/index.d.ts +1 -0
  169. package/scheduler/src/generated/sched-editor.view.generated.vue.d.ts +6 -0
  170. package/scheduler/src/generated/sched-month.view.generated.vue.d.ts +6 -0
  171. package/scheduler/src/generated/sched-popover-event.view.generated.vue.d.ts +6 -0
  172. package/scheduler/src/generated/sched-popover.view.generated.vue.d.ts +6 -0
  173. package/scheduler/src/generated/sched-row-panel.view.generated.vue.d.ts +6 -0
  174. package/scheduler/src/generated/sched-time-grid.view.generated.vue.d.ts +6 -0
  175. package/scheduler/src/generated/sched-timeline.view.generated.vue.d.ts +6 -0
  176. package/scheduler/src/generated/sched-year.view.generated.vue.d.ts +6 -0
  177. package/scheduler/src/generated/scheduler.view.generated.vue.d.ts +8 -0
  178. package/scheduler/src/index.d.ts +4 -2
  179. package/select/index.mjs +129 -30
  180. package/select/src/generated/BsSelect.generated.vue.d.ts +257 -0
  181. package/select/src/generated/index.d.ts +1 -0
  182. package/select/src/generated/select.view.generated.vue.d.ts +37 -0
  183. package/select/src/index.d.ts +2 -1
  184. package/shell/index.mjs +54 -27
  185. package/shell/src/BsShell.vue.d.ts +23 -11
  186. package/shell/src/index.d.ts +2 -1
  187. package/shell/src/shell-state-change.d.ts +4 -0
  188. package/signature-pad/index.mjs +101 -22
  189. package/signature-pad/src/generated/BsSignaturePad.generated.vue.d.ts +129 -0
  190. package/signature-pad/src/generated/index.d.ts +1 -0
  191. package/signature-pad/src/generated/signature-pad.view.generated.vue.d.ts +8 -0
  192. package/signature-pad/src/index.d.ts +2 -2
  193. package/splitter/index.mjs +1 -13
  194. package/splitter/src/generated/BsSplitter.generated.vue.d.ts +177 -0
  195. package/splitter/src/generated/BsSplitterPanel.generated.vue.d.ts +122 -0
  196. package/splitter/src/generated/index.d.ts +2 -0
  197. package/splitter/src/generated/splitter-panel.view.generated.vue.d.ts +27 -0
  198. package/splitter/src/generated/splitter.view.generated.vue.d.ts +27 -0
  199. package/splitter/src/index.d.ts +2 -2
  200. package/src/index.d.ts +4 -7
  201. package/tab-control/index.mjs +90 -21
  202. package/tab-control/src/BsTabControl.vue.d.ts +63 -28
  203. package/{timeline/src/BsTimelineItem.vue.d.ts → tab-control/src/BsTabPage.vue.d.ts} +8 -11
  204. package/tab-control/src/index.d.ts +2 -1
  205. package/theming/index.mjs +53 -31
  206. package/theming/src/generated/BsThemeToggle.generated.vue.d.ts +31 -0
  207. package/theming/src/generated/index.d.ts +1 -0
  208. package/theming/src/generated/theme-toggle.view.generated.vue.d.ts +8 -0
  209. package/theming/src/index.d.ts +2 -2
  210. package/theming/src/useBsTheme.d.ts +2 -2
  211. package/tile-manager/src/BsTileManager.vue.d.ts +3 -3
  212. package/timeline/index.mjs +224 -136
  213. package/timeline/src/generated/BsTimeline.generated.vue.d.ts +328 -0
  214. package/timeline/src/generated/BsTimelineItem.generated.vue.d.ts +209 -0
  215. package/timeline/src/generated/index.d.ts +2 -0
  216. package/timeline/src/generated/timeline-item.view.generated.vue.d.ts +45 -0
  217. package/timeline/src/generated/timeline.view.generated.vue.d.ts +89 -0
  218. package/timeline/src/index.d.ts +3 -4
  219. package/timepicker/index.mjs +195 -42
  220. package/timepicker/src/generated/BsTimeList.generated.vue.d.ts +94 -0
  221. package/timepicker/src/generated/BsTimepicker.generated.vue.d.ts +161 -0
  222. package/timepicker/src/generated/index.d.ts +2 -0
  223. package/timepicker/src/generated/time-list.view.generated.vue.d.ts +8 -0
  224. package/timepicker/src/generated/timepicker.view.generated.vue.d.ts +8 -0
  225. package/timepicker/src/index.d.ts +2 -2
  226. package/toggle-button/index.mjs +18 -19
  227. package/toggle-button/src/BsToggleButton.vue.d.ts +2 -6
  228. package/tree-select/index.mjs +240 -91
  229. package/tree-select/src/generated/BsTreeSelect.generated.vue.d.ts +323 -0
  230. package/tree-select/src/generated/index.d.ts +1 -0
  231. package/tree-select/src/generated/tree-select.view.generated.vue.d.ts +56 -0
  232. package/tree-select/src/index.d.ts +3 -3
  233. package/treeview/index.mjs +1 -58
  234. package/treeview/src/generated/BsTreeview.generated.vue.d.ts +240 -0
  235. package/treeview/src/generated/index.d.ts +1 -0
  236. package/treeview/src/generated/treeview.view.generated.vue.d.ts +36 -0
  237. package/treeview/src/index.d.ts +2 -1
  238. package/typeahead/index.mjs +71 -59
  239. package/typeahead/src/BsTypeahead.vue.d.ts +3 -3
  240. package/calendar/src/BsCalendar.vue.d.ts +0 -28
  241. package/carousel/src/BsCarousel.vue.d.ts +0 -53
  242. package/charts/hierarchy/src/BsHierarchyChart.vue.d.ts +0 -19
  243. package/code-snippet/src/BsCodeSnippet.vue.d.ts +0 -43
  244. package/datatable/src/BsDatatable.vue.d.ts +0 -89
  245. package/datepicker/src/BsDatepicker.vue.d.ts +0 -28
  246. package/datetime-picker/src/BsDatetimePicker.vue.d.ts +0 -28
  247. package/dock/src/BsDockManager.vue.d.ts +0 -29
  248. package/multi-range/src/BsMultiRange.vue.d.ts +0 -11
  249. package/navbar/src/BsNavbar.vue.d.ts +0 -38
  250. package/navbar/src/BsNavbarBrand.vue.d.ts +0 -21
  251. package/navbar/src/BsNavbarDropdown.vue.d.ts +0 -22
  252. package/otp-input/src/BsOtpInput.vue.d.ts +0 -11
  253. package/phone-input/src/BsPhoneInput.vue.d.ts +0 -16
  254. package/query-builder/src/BsQueryBuilder.vue.d.ts +0 -20
  255. package/ribbon/src/BsRibbon.vue.d.ts +0 -29
  256. package/scheduler/src/BsScheduler.vue.d.ts +0 -31
  257. package/select/src/BsSelect.vue.d.ts +0 -33
  258. package/signature-pad/src/BsSignaturePad.vue.d.ts +0 -12
  259. package/splitter/src/BsSplitter.vue.d.ts +0 -17
  260. package/timeline/src/BsTimeline.vue.d.ts +0 -58
  261. package/timepicker/src/BsTimeList.vue.d.ts +0 -28
  262. package/timepicker/src/BsTimepicker.vue.d.ts +0 -28
  263. package/tree-select/src/BsTreeSelect.vue.d.ts +0 -32
  264. package/treeview/src/BsTreeview.vue.d.ts +0 -27
  265. package/vue-bootstrap.css +0 -2
@@ -1,46 +1,247 @@
1
- import { createElementBlock as e, defineComponent as t, mergeModels as n, mergeProps as r, onMounted as i, openBlock as a, ref as o, useModel as s, watch as c } from "vue";
2
- import "@mintplayer/web-components/charts/hierarchy";
1
+ import { useCore as e } from "../../machine/index.mjs";
2
+ import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, useTemplateRef as f } from "vue";
3
+ import { installLightStyles as p } from "@mintplayer/ui-core/scoped-styles";
4
+ import { hierarchyChartCore as m, hierarchyChartScopedStyles as h } from "@mintplayer/ui-core/charts/hierarchy";
3
5
  //#endregion
4
- //#region libs/mintplayer-vue-bootstrap/charts/hierarchy/src/BsHierarchyChart.vue
5
- var l = /* @__PURE__ */ t({
6
- inheritAttrs: !1,
7
- __name: "BsHierarchyChart",
8
- props: /*@__PURE__*/ n({
9
- data: {},
10
- layout: {},
11
- loadChildren: { type: Function },
12
- tooltipFormatter: { type: Function },
13
- labelFormatter: { type: Function }
14
- }, {
15
- rootId: { default: void 0 },
16
- rootIdModifiers: {}
17
- }),
18
- emits: ["update:rootId"],
19
- setup(t) {
20
- let n = t, l = s(t, "rootId"), u = o(null), d = () => {
21
- u.value && (u.value.data = n.data);
22
- }, f = () => {
23
- u.value && n.layout && (u.value.layout = n.layout);
24
- }, p = () => {
25
- u.value && (u.value.rootId = l.value);
26
- }, m = () => {
27
- u.value && (u.value.loadChildren = n.loadChildren);
28
- }, h = () => {
29
- u.value && (u.value.tooltipFormatter = n.tooltipFormatter);
30
- }, g = () => {
31
- u.value && (u.value.labelFormatter = n.labelFormatter);
32
- };
33
- i(() => {
34
- d(), f(), p(), m(), h(), g();
35
- }), c(() => n.data, d), c(() => n.layout, f), c(l, p), c(() => n.loadChildren, m), c(() => n.tooltipFormatter, h), c(() => n.labelFormatter, g);
36
- function _(e) {
37
- l.value = e.target.rootId;
6
+ //#region libs/mintplayer-vue-bootstrap/charts/hierarchy/src/generated/hierarchy-chart.view.generated.vue
7
+ var g = /* @__PURE__ */ o({
8
+ __name: "hierarchy-chart.view.generated",
9
+ props: { view: {} },
10
+ setup(e) {
11
+ return (n, o) => (c(), i("div", s({
12
+ "data-mps": "hierarchy-chart",
13
+ ref: "root"
14
+ }, e.view.root), [e.view.breadcrumb ? (c(), i("nav", s({
15
+ key: 0,
16
+ "data-mps": "hierarchy-chart"
17
+ }, e.view.breadcrumb.nav), [(c(!0), i(t, null, l(e.view.breadcrumb.items, (e) => (c(), i(t, { key: e.key }, [
18
+ e.current ? (c(), i("span", s({
19
+ key: 0,
20
+ "data-mps": "hierarchy-chart"
21
+ }, { ref_for: !0 }, e.current), u(e.text), 17)) : r("", !0),
22
+ e.button ? (c(), i("button", s({
23
+ key: 1,
24
+ "data-mps": "hierarchy-chart"
25
+ }, { ref_for: !0 }, e.button), u(e.text), 17)) : r("", !0),
26
+ e.sep ? (c(), i("span", s({
27
+ key: 2,
28
+ "data-mps": "hierarchy-chart"
29
+ }, { ref_for: !0 }, e.sep), "/", 16)) : r("", !0)
30
+ ], 64))), 128))], 16)) : r("", !0), a("div", s({ "data-mps": "hierarchy-chart" }, e.view.chart, { style: e.view.chartStyle }), [
31
+ e.view.sunburst ? (c(), i("svg", s({
32
+ key: 0,
33
+ "data-mps": "hierarchy-chart"
34
+ }, e.view.sunburst.svg), [a("g", s({ "data-mps": "hierarchy-chart" }, e.view.sunburst.g), [(c(!0), i(t, null, l(e.view.sunburst.arcs, (e) => (c(), i("path", s({
35
+ "data-mps": "hierarchy-chart",
36
+ key: e.key
37
+ }, { ref_for: !0 }, e.bag), null, 16))), 128)), (c(!0), i(t, null, l(e.view.sunburst.labels, (e) => (c(), i("text", s({
38
+ "data-mps": "hierarchy-chart",
39
+ key: e.key
40
+ }, { ref_for: !0 }, e.bag), u(e.text), 17))), 128))], 16)], 16)) : r("", !0),
41
+ e.view.sunburst ? (c(), i("button", s({
42
+ key: 1,
43
+ "data-mps": "hierarchy-chart"
44
+ }, e.view.sunburst.center.bag, { style: e.view.sunburst.center.style }), u(e.view.sunburst.center.text), 17)) : r("", !0),
45
+ e.view.icicle ? (c(), i("div", s({
46
+ key: 2,
47
+ "data-mps": "hierarchy-chart"
48
+ }, e.view.icicle.tree), [a("div", s({ "data-mps": "hierarchy-chart" }, e.view.icicle.focus.bag, { style: e.view.icicle.focus.style }), [e.view.icicle.focus.label === null ? r("", !0) : (c(), i("span", s({
49
+ key: 0,
50
+ "data-mps": "hierarchy-chart"
51
+ }, e.view.cellLabel), u(e.view.icicle.focus.label), 17))], 16), (c(!0), i(t, null, l(e.view.icicle.cells, (t) => (c(), i("div", s({
52
+ "data-mps": "hierarchy-chart",
53
+ key: t.key
54
+ }, { ref_for: !0 }, t.bag, { style: t.style }), [t.label === null ? r("", !0) : (c(), i("span", s({
55
+ key: 0,
56
+ "data-mps": "hierarchy-chart"
57
+ }, { ref_for: !0 }, e.view.cellLabel), u(t.label), 17))], 16))), 128))], 16)) : r("", !0),
58
+ e.view.treemap ? (c(), i("div", s({
59
+ key: 3,
60
+ "data-mps": "hierarchy-chart"
61
+ }, e.view.treemap.wrap), [a("button", s({ "data-mps": "hierarchy-chart" }, e.view.treemap.header.bag), u(e.view.treemap.header.text), 17), a("div", s({ "data-mps": "hierarchy-chart" }, e.view.treemap.body), [(c(!0), i(t, null, l(e.view.treemap.cells, (t) => (c(), i("div", s({
62
+ "data-mps": "hierarchy-chart",
63
+ key: t.key
64
+ }, { ref_for: !0 }, t.bag, { style: t.style }), [t.label === null ? r("", !0) : (c(), i("span", s({
65
+ key: 0,
66
+ "data-mps": "hierarchy-chart"
67
+ }, { ref_for: !0 }, e.view.cellLabel), u(t.label), 17))], 16))), 128))], 16)], 16)) : r("", !0),
68
+ a("div", s({ "data-mps": "hierarchy-chart" }, e.view.tooltip.bag, { style: e.view.tooltip.style }), u(e.view.tooltip.text), 17),
69
+ e.view.hint ? (c(), i("div", s({
70
+ key: 4,
71
+ "data-mps": "hierarchy-chart"
72
+ }, e.view.hint.bag), u(e.view.hint.text), 17)) : r("", !0),
73
+ a("div", s({ "data-mps": "hierarchy-chart" }, e.view.live), u(e.view.announcement), 17)
74
+ ], 16)], 16));
75
+ }
76
+ }), _ = /* @__PURE__ */ o({
77
+ name: "BsHierarchyChart",
78
+ __name: "BsHierarchyChart.generated",
79
+ props: {
80
+ data: {
81
+ type: null,
82
+ default: null
83
+ },
84
+ layout: {
85
+ type: String,
86
+ default: "sunburst"
87
+ },
88
+ rootId: {
89
+ type: String,
90
+ default: null
91
+ },
92
+ maxDepth: {
93
+ type: String,
94
+ default: null
95
+ },
96
+ minAngle: {
97
+ type: Number,
98
+ default: .2
99
+ },
100
+ minSize: {
101
+ type: Number,
102
+ default: 4
103
+ },
104
+ showLabels: {
105
+ type: Boolean,
106
+ default: !0
107
+ },
108
+ labelFontSize: {
109
+ type: Number,
110
+ default: 12
111
+ },
112
+ backdrop: {
113
+ type: String,
114
+ default: null
115
+ },
116
+ colorMin: {
117
+ type: Number,
118
+ default: 0
119
+ },
120
+ colorMax: {
121
+ type: Number,
122
+ default: 100
123
+ },
124
+ colorStart: {
125
+ type: String,
126
+ default: "#fe0000"
127
+ },
128
+ colorEnd: {
129
+ type: String,
130
+ default: "#21b577"
131
+ },
132
+ transitionDuration: {
133
+ type: Number,
134
+ default: 300
135
+ },
136
+ locale: {
137
+ type: String,
138
+ default: null
139
+ },
140
+ zoomGestures: {
141
+ type: String,
142
+ default: "wheel pinch"
143
+ },
144
+ zoomHintLabel: {
145
+ type: String,
146
+ default: null
147
+ },
148
+ showBreadcrumb: {
149
+ type: Boolean,
150
+ default: !1
151
+ },
152
+ breadcrumbLabel: {
153
+ type: String,
154
+ default: "Chart path"
155
+ },
156
+ zoomOutLabel: {
157
+ type: String,
158
+ default: "Zoom out one level"
159
+ },
160
+ metricUnitLabel: {
161
+ type: String,
162
+ default: "%"
163
+ },
164
+ valueUnitLabel: {
165
+ type: String,
166
+ default: ""
167
+ },
168
+ loadingLabel: {
169
+ type: String,
170
+ default: "Loading"
171
+ },
172
+ inputLabel: {
173
+ type: String,
174
+ default: null
175
+ },
176
+ tooltipFormatter: {
177
+ type: null,
178
+ default: null
179
+ },
180
+ labelFormatter: {
181
+ type: null,
182
+ default: null
183
+ },
184
+ loadChildren: {
185
+ type: null,
186
+ default: null
38
187
  }
39
- return (t, n) => (a(), e("mp-hierarchy-chart", r({
40
- ref_key: "el",
41
- ref: u
42
- }, t.$attrs, { onHierarchyZoom: _ }), null, 16));
188
+ },
189
+ emits: [
190
+ "rootidchange",
191
+ "zoom",
192
+ "nodeselect",
193
+ "nodehover",
194
+ "nodeloaderror",
195
+ "update:rootId"
196
+ ],
197
+ setup(t, { expose: r, emit: i }) {
198
+ let a = t, o = i;
199
+ p("hierarchy-chart", h);
200
+ let l = f("template"), u = e(m, () => ({
201
+ data: a.data,
202
+ layout: a.layout,
203
+ rootId: a.rootId,
204
+ maxDepth: a.maxDepth,
205
+ minAngle: a.minAngle,
206
+ minSize: a.minSize,
207
+ showLabels: a.showLabels,
208
+ labelFontSize: a.labelFontSize,
209
+ backdrop: a.backdrop,
210
+ colorMin: a.colorMin,
211
+ colorMax: a.colorMax,
212
+ colorStart: a.colorStart,
213
+ colorEnd: a.colorEnd,
214
+ transitionDuration: a.transitionDuration,
215
+ locale: a.locale,
216
+ zoomGestures: a.zoomGestures,
217
+ zoomHintLabel: a.zoomHintLabel,
218
+ showBreadcrumb: a.showBreadcrumb,
219
+ breadcrumbLabel: a.breadcrumbLabel,
220
+ zoomOutLabel: a.zoomOutLabel,
221
+ metricUnitLabel: a.metricUnitLabel,
222
+ valueUnitLabel: a.valueUnitLabel,
223
+ loadingLabel: a.loadingLabel,
224
+ inputLabel: a.inputLabel,
225
+ tooltipFormatter: a.tooltipFormatter,
226
+ labelFormatter: a.labelFormatter,
227
+ loadChildren: a.loadChildren
228
+ }), {
229
+ idPrefix: "bs-hierarchy-chart",
230
+ root: () => l.value?.$el,
231
+ emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
232
+ models: ["rootId"]
233
+ }), _ = u.props;
234
+ return r({
235
+ zoomTo: (...e) => u.call("zoomTo", e),
236
+ focusNode: (...e) => u.call("focusNode", e),
237
+ setZoomLevel: (...e) => u.call("setZoomLevel", e),
238
+ resetZoom: (...e) => u.call("resetZoom", e),
239
+ zoomLevel: (...e) => u.call("zoomLevel", e)
240
+ }), (e, t) => (c(), n(g, s({
241
+ ref_key: "template",
242
+ ref: l
243
+ }, d(_)), null, 16));
43
244
  }
44
245
  });
45
246
  //#endregion
46
- export { l as BsHierarchyChart };
247
+ export { _ as BsHierarchyChart };
@@ -0,0 +1,292 @@
1
+ import { PropType } from 'vue';
2
+ import { HierarchyChartInputs, HierarchyChartMethods, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNodeEventDetail } from '@mintplayer/ui-core/charts/hierarchy';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ data: {
5
+ type: PropType<HierarchyChartInputs["data"]>;
6
+ default: null;
7
+ };
8
+ layout: {
9
+ type: PropType<HierarchyChartInputs["layout"]>;
10
+ default: string;
11
+ };
12
+ rootId: {
13
+ type: PropType<HierarchyChartInputs["rootId"]>;
14
+ default: null;
15
+ };
16
+ /** A positive number, or `auto`. */
17
+ maxDepth: {
18
+ type: PropType<HierarchyChartInputs["maxDepth"]>;
19
+ default: null;
20
+ };
21
+ minAngle: {
22
+ type: PropType<HierarchyChartInputs["minAngle"]>;
23
+ default: number;
24
+ };
25
+ minSize: {
26
+ type: PropType<HierarchyChartInputs["minSize"]>;
27
+ default: number;
28
+ };
29
+ showLabels: {
30
+ type: PropType<HierarchyChartInputs["showLabels"]>;
31
+ default: boolean;
32
+ };
33
+ labelFontSize: {
34
+ type: PropType<HierarchyChartInputs["labelFontSize"]>;
35
+ default: number;
36
+ };
37
+ backdrop: {
38
+ type: PropType<HierarchyChartInputs["backdrop"]>;
39
+ default: null;
40
+ };
41
+ colorMin: {
42
+ type: PropType<HierarchyChartInputs["colorMin"]>;
43
+ default: number;
44
+ };
45
+ colorMax: {
46
+ type: PropType<HierarchyChartInputs["colorMax"]>;
47
+ default: number;
48
+ };
49
+ colorStart: {
50
+ type: PropType<HierarchyChartInputs["colorStart"]>;
51
+ default: string;
52
+ };
53
+ colorEnd: {
54
+ type: PropType<HierarchyChartInputs["colorEnd"]>;
55
+ default: string;
56
+ };
57
+ transitionDuration: {
58
+ type: PropType<HierarchyChartInputs["transitionDuration"]>;
59
+ default: number;
60
+ };
61
+ locale: {
62
+ type: PropType<HierarchyChartInputs["locale"]>;
63
+ default: null;
64
+ };
65
+ zoomGestures: {
66
+ type: PropType<HierarchyChartInputs["zoomGestures"]>;
67
+ default: string;
68
+ };
69
+ zoomHintLabel: {
70
+ type: PropType<HierarchyChartInputs["zoomHintLabel"]>;
71
+ default: null;
72
+ };
73
+ showBreadcrumb: {
74
+ type: PropType<HierarchyChartInputs["showBreadcrumb"]>;
75
+ default: boolean;
76
+ };
77
+ breadcrumbLabel: {
78
+ type: PropType<HierarchyChartInputs["breadcrumbLabel"]>;
79
+ default: string;
80
+ };
81
+ zoomOutLabel: {
82
+ type: PropType<HierarchyChartInputs["zoomOutLabel"]>;
83
+ default: string;
84
+ };
85
+ metricUnitLabel: {
86
+ type: PropType<HierarchyChartInputs["metricUnitLabel"]>;
87
+ default: string;
88
+ };
89
+ valueUnitLabel: {
90
+ type: PropType<HierarchyChartInputs["valueUnitLabel"]>;
91
+ default: string;
92
+ };
93
+ loadingLabel: {
94
+ type: PropType<HierarchyChartInputs["loadingLabel"]>;
95
+ default: string;
96
+ };
97
+ inputLabel: {
98
+ type: PropType<HierarchyChartInputs["inputLabel"]>;
99
+ default: null;
100
+ };
101
+ tooltipFormatter: {
102
+ type: PropType<HierarchyChartInputs["tooltipFormatter"]>;
103
+ default: null;
104
+ };
105
+ labelFormatter: {
106
+ type: PropType<HierarchyChartInputs["labelFormatter"]>;
107
+ default: null;
108
+ };
109
+ loadChildren: {
110
+ type: PropType<HierarchyChartInputs["loadChildren"]>;
111
+ default: null;
112
+ };
113
+ }>, {
114
+ /** Re-root on a node id (the tree root when omitted). */
115
+ zoomTo: (id?: string | null | undefined) => ReturnType<HierarchyChartMethods["zoomTo"]>;
116
+ /** Move focus to a rendered node. */
117
+ focusNode: (id: string) => ReturnType<HierarchyChartMethods["focusNode"]>;
118
+ /** Magnify geometrically, anchored at chart fractions (default: the centre). */
119
+ setZoomLevel: (zoom: number, anchorX?: number | undefined, anchorY?: number | undefined) => ReturnType<HierarchyChartMethods["setZoomLevel"]>;
120
+ /** Back to the fitted view. */
121
+ resetZoom: () => ReturnType<HierarchyChartMethods["resetZoom"]>;
122
+ /** The current geometric magnification (1 = fitted). */
123
+ zoomLevel: () => ReturnType<HierarchyChartMethods["zoomLevel"]>;
124
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
125
+ zoom: (detail: HierarchyNodeEventDetail) => any;
126
+ rootidchange: (detail: string | null) => any;
127
+ nodeselect: (detail: HierarchyNodeEventDetail) => any;
128
+ nodehover: (detail: HierarchyHoverEventDetail) => any;
129
+ nodeloaderror: (detail: HierarchyLoadErrorEventDetail) => any;
130
+ "update:rootId": (value: string | null) => any;
131
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
132
+ data: {
133
+ type: PropType<HierarchyChartInputs["data"]>;
134
+ default: null;
135
+ };
136
+ layout: {
137
+ type: PropType<HierarchyChartInputs["layout"]>;
138
+ default: string;
139
+ };
140
+ rootId: {
141
+ type: PropType<HierarchyChartInputs["rootId"]>;
142
+ default: null;
143
+ };
144
+ /** A positive number, or `auto`. */
145
+ maxDepth: {
146
+ type: PropType<HierarchyChartInputs["maxDepth"]>;
147
+ default: null;
148
+ };
149
+ minAngle: {
150
+ type: PropType<HierarchyChartInputs["minAngle"]>;
151
+ default: number;
152
+ };
153
+ minSize: {
154
+ type: PropType<HierarchyChartInputs["minSize"]>;
155
+ default: number;
156
+ };
157
+ showLabels: {
158
+ type: PropType<HierarchyChartInputs["showLabels"]>;
159
+ default: boolean;
160
+ };
161
+ labelFontSize: {
162
+ type: PropType<HierarchyChartInputs["labelFontSize"]>;
163
+ default: number;
164
+ };
165
+ backdrop: {
166
+ type: PropType<HierarchyChartInputs["backdrop"]>;
167
+ default: null;
168
+ };
169
+ colorMin: {
170
+ type: PropType<HierarchyChartInputs["colorMin"]>;
171
+ default: number;
172
+ };
173
+ colorMax: {
174
+ type: PropType<HierarchyChartInputs["colorMax"]>;
175
+ default: number;
176
+ };
177
+ colorStart: {
178
+ type: PropType<HierarchyChartInputs["colorStart"]>;
179
+ default: string;
180
+ };
181
+ colorEnd: {
182
+ type: PropType<HierarchyChartInputs["colorEnd"]>;
183
+ default: string;
184
+ };
185
+ transitionDuration: {
186
+ type: PropType<HierarchyChartInputs["transitionDuration"]>;
187
+ default: number;
188
+ };
189
+ locale: {
190
+ type: PropType<HierarchyChartInputs["locale"]>;
191
+ default: null;
192
+ };
193
+ zoomGestures: {
194
+ type: PropType<HierarchyChartInputs["zoomGestures"]>;
195
+ default: string;
196
+ };
197
+ zoomHintLabel: {
198
+ type: PropType<HierarchyChartInputs["zoomHintLabel"]>;
199
+ default: null;
200
+ };
201
+ showBreadcrumb: {
202
+ type: PropType<HierarchyChartInputs["showBreadcrumb"]>;
203
+ default: boolean;
204
+ };
205
+ breadcrumbLabel: {
206
+ type: PropType<HierarchyChartInputs["breadcrumbLabel"]>;
207
+ default: string;
208
+ };
209
+ zoomOutLabel: {
210
+ type: PropType<HierarchyChartInputs["zoomOutLabel"]>;
211
+ default: string;
212
+ };
213
+ metricUnitLabel: {
214
+ type: PropType<HierarchyChartInputs["metricUnitLabel"]>;
215
+ default: string;
216
+ };
217
+ valueUnitLabel: {
218
+ type: PropType<HierarchyChartInputs["valueUnitLabel"]>;
219
+ default: string;
220
+ };
221
+ loadingLabel: {
222
+ type: PropType<HierarchyChartInputs["loadingLabel"]>;
223
+ default: string;
224
+ };
225
+ inputLabel: {
226
+ type: PropType<HierarchyChartInputs["inputLabel"]>;
227
+ default: null;
228
+ };
229
+ tooltipFormatter: {
230
+ type: PropType<HierarchyChartInputs["tooltipFormatter"]>;
231
+ default: null;
232
+ };
233
+ labelFormatter: {
234
+ type: PropType<HierarchyChartInputs["labelFormatter"]>;
235
+ default: null;
236
+ };
237
+ loadChildren: {
238
+ type: PropType<HierarchyChartInputs["loadChildren"]>;
239
+ default: null;
240
+ };
241
+ }>> & Readonly<{
242
+ onZoom?: ((detail: HierarchyNodeEventDetail) => any) | undefined;
243
+ onRootidchange?: ((detail: string | null) => any) | undefined;
244
+ onNodeselect?: ((detail: HierarchyNodeEventDetail) => any) | undefined;
245
+ onNodehover?: ((detail: HierarchyHoverEventDetail) => any) | undefined;
246
+ onNodeloaderror?: ((detail: HierarchyLoadErrorEventDetail) => any) | undefined;
247
+ "onUpdate:rootId"?: ((value: string | null) => any) | undefined;
248
+ }>, {
249
+ data: import('@mintplayer/ui-core/charts/core').HierarchyNode | null;
250
+ locale: string | null;
251
+ inputLabel: string | null;
252
+ maxDepth: string | number | null;
253
+ labelFormatter: import('@mintplayer/ui-core/charts/hierarchy').HierarchyNodeFormatter | null;
254
+ tooltipFormatter: import('@mintplayer/ui-core/charts/hierarchy').HierarchyNodeFormatter | null;
255
+ metricUnitLabel: string;
256
+ valueUnitLabel: string;
257
+ layout: string;
258
+ rootId: string | null;
259
+ minAngle: number;
260
+ minSize: number;
261
+ showLabels: boolean;
262
+ labelFontSize: number;
263
+ backdrop: string | null;
264
+ colorMin: number;
265
+ colorMax: number;
266
+ colorStart: string;
267
+ colorEnd: string;
268
+ transitionDuration: number;
269
+ showBreadcrumb: boolean;
270
+ breadcrumbLabel: string;
271
+ zoomOutLabel: string;
272
+ zoomGestures: string;
273
+ zoomHintLabel: string | null;
274
+ loadingLabel: string;
275
+ loadChildren: import('@mintplayer/ui-core/charts/hierarchy').HierarchyChildrenLoader | null;
276
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
277
+ template: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
278
+ view: import('@mintplayer/ui-core/charts/hierarchy').HierarchyChartView;
279
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
280
+ root: HTMLDivElement;
281
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
282
+ P: {};
283
+ B: {};
284
+ D: {};
285
+ C: {};
286
+ M: {};
287
+ Defaults: {};
288
+ }, Readonly<{
289
+ view: import('@mintplayer/ui-core/charts/hierarchy').HierarchyChartView;
290
+ }> & Readonly<{}>, {}, {}, {}, {}, {}> | null;
291
+ }, HTMLDivElement>;
292
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { HierarchyChartView } from '@mintplayer/ui-core/charts/hierarchy';
2
+ type __VLS_Props = {
3
+ view: HierarchyChartView;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
6
+ root: HTMLDivElement;
7
+ }, HTMLDivElement>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BsHierarchyChart } from './BsHierarchyChart.generated.vue';
@@ -1,2 +1,2 @@
1
- export { default as BsHierarchyChart } from './BsHierarchyChart.vue';
2
- export type { HierarchyNode, HierarchyChartLayout, HierarchyChildrenLoader, HierarchyNodeFormatter, HierarchyNodeEventDetail, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, } from '@mintplayer/web-components/charts/hierarchy';
1
+ export * from './generated';
2
+ export type { HierarchyChartLayout, HierarchyChildrenLoader, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNode, HierarchyNodeEventDetail, HierarchyNodeFormatter, } from '@mintplayer/ui-core/charts/hierarchy';
@@ -1,27 +1,53 @@
1
- import { createElementBlock as e, defineComponent as t, mergeProps as n, onMounted as r, openBlock as i, ref as a, watch as o } from "vue";
2
- import "@mintplayer/web-components/charts/sparkline";
1
+ import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, guardReactiveProps as a, mergeProps as o, normalizeProps as s, onMounted as c, openBlock as l, ref as u, shallowRef as d, unref as f, useAttrs as p } from "vue";
2
+ import { installLightStyles as m } from "@mintplayer/ui-core/scoped-styles";
3
+ import { SPARKLINE_SCOPE as h, connectSparkline as g, sparklineScopedStyles as _ } from "@mintplayer/ui-core/charts/sparkline";
3
4
  //#endregion
4
5
  //#region libs/mintplayer-vue-bootstrap/charts/sparkline/src/BsSparkline.vue
5
- var s = /* @__PURE__ */ t({
6
+ var v = /* @__PURE__ */ i({
6
7
  inheritAttrs: !1,
7
8
  __name: "BsSparkline",
8
9
  props: {
9
- points: {},
10
- summaryFormatter: { type: Function }
10
+ points: { default: () => [] },
11
+ area: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ showLastDot: {
16
+ type: Boolean,
17
+ default: !0
18
+ },
19
+ yMin: {},
20
+ yMax: {},
21
+ locale: {},
22
+ inputLabel: {},
23
+ summaryFormatter: {}
11
24
  },
12
- setup(t) {
13
- let s = t, c = a(null), l = () => {
14
- c.value && (c.value.points = s.points ?? []);
15
- }, u = () => {
16
- c.value && (c.value.summaryFormatter = s.summaryFormatter);
17
- };
18
- return r(() => {
19
- l(), u();
20
- }), o(() => s.points, l), o(() => s.summaryFormatter, u), (t, r) => (i(), e("mp-sparkline", n({
21
- ref_key: "el",
22
- ref: c
23
- }, t.$attrs), null, 16));
25
+ setup(i) {
26
+ let v = i;
27
+ m(h, _);
28
+ let y = p(), b = d(null), x = u(void 0);
29
+ c(() => x.value = b.value?.closest("[lang]")?.getAttribute("lang") ?? void 0);
30
+ let S = e(() => Object.fromEntries(Object.entries(y).filter(([e]) => e !== "aria-label"))), C = e(() => g(v.points, {
31
+ area: v.area,
32
+ showLastDot: v.showLastDot,
33
+ yMin: v.yMin,
34
+ yMax: v.yMax,
35
+ locale: v.locale ?? x.value,
36
+ label: y["aria-label"] ?? v.inputLabel,
37
+ summaryFormatter: v.summaryFormatter
38
+ }));
39
+ return (e, i) => (l(), n("span", o({
40
+ ref_key: "root",
41
+ ref: b
42
+ }, {
43
+ ...C.value.root,
44
+ ...S.value
45
+ }, { class: [C.value.root.class, f(y).class] }), [C.value.svg ? (l(), n("svg", s(o({ key: 0 }, C.value.svg)), [
46
+ C.value.fill ? (l(), n("path", s(o({ key: 0 }, C.value.fill)), null, 16)) : t("", !0),
47
+ r("path", s(a(C.value.line)), null, 16),
48
+ C.value.dot ? (l(), n("circle", s(o({ key: 1 }, C.value.dot)), null, 16)) : t("", !0)
49
+ ], 16)) : t("", !0)], 16));
24
50
  }
25
51
  });
26
52
  //#endregion
27
- export { s as BsSparkline };
53
+ export { v as BsSparkline };