@mintplayer/vue-bootstrap 3.28.0 → 3.30.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.
- package/accordion/index.mjs +45 -36
- package/accordion/src/BsAccordion.vue.d.ts +12 -5
- package/accordion/src/BsAccordionItem.vue.d.ts +9 -2
- package/accordion/src/accordion-context.d.ts +8 -0
- package/accordion/src/index.d.ts +1 -1
- package/calendar/index.mjs +99 -24
- package/calendar/src/generated/BsCalendar.generated.vue.d.ts +113 -0
- package/{charts/trend/src/BsTrendChart.vue.d.ts → calendar/src/generated/calendar.view.generated.vue.d.ts} +4 -5
- package/calendar/src/generated/index.d.ts +1 -0
- package/calendar/src/index.d.ts +2 -1
- package/card/index.mjs +39 -46
- package/card/src/BsCard.vue.d.ts +8 -1
- package/card/src/BsCardFooter.vue.d.ts +2 -1
- package/card/src/BsCardHeader.vue.d.ts +4 -8
- package/card/src/BsCardImg.vue.d.ts +2 -1
- package/carousel/index.mjs +149 -61
- package/carousel/src/carousel.vue.d.ts +2 -0
- package/carousel/src/generated/BsCarousel.generated.vue.d.ts +234 -0
- package/carousel/src/generated/BsCarouselItem.generated.vue.d.ts +122 -0
- package/{navbar/src/BsNavbarItem.vue.d.ts → carousel/src/generated/carousel-item.view.generated.vue.d.ts} +11 -14
- package/carousel/src/generated/carousel.view.generated.vue.d.ts +27 -0
- package/carousel/src/generated/index.d.ts +2 -0
- package/carousel/src/index.d.ts +2 -2
- package/charts/hierarchy/index.mjs +242 -41
- package/charts/hierarchy/src/generated/BsHierarchyChart.generated.vue.d.ts +292 -0
- package/charts/hierarchy/src/generated/hierarchy-chart.view.generated.vue.d.ts +8 -0
- package/charts/hierarchy/src/generated/index.d.ts +1 -0
- package/charts/hierarchy/src/index.d.ts +2 -2
- package/charts/sparkline/index.mjs +44 -18
- package/charts/sparkline/src/BsSparkline.vue.d.ts +14 -2
- package/charts/trend/index.mjs +133 -21
- package/charts/trend/src/generated/BsTrendChart.generated.vue.d.ts +136 -0
- package/charts/trend/src/generated/index.d.ts +1 -0
- package/charts/trend/src/generated/trend-chart.view.generated.vue.d.ts +8 -0
- package/charts/trend/src/index.d.ts +2 -2
- package/checkbox/index.mjs +1 -29
- package/checkbox/src/BsCheckbox.vue.d.ts +29 -5
- package/chunks/BsCheckbox-C8H1KT2D.mjs +96 -0
- package/chunks/BsDatatable.generated-uNBvWmhM.mjs +467 -0
- package/chunks/BsDatetimePicker.generated-DB9itVGP.mjs +191 -0
- package/chunks/BsSplitterPanel.generated-B84cMuMJ.mjs +97 -0
- package/chunks/BsTreeview.generated-Rf47miZv.mjs +124 -0
- package/chunks/radio-group-key-CnFhXLW0.mjs +4 -0
- package/code-snippet/index.mjs +123 -31
- package/code-snippet/src/generated/BsCodeSnippet.generated.vue.d.ts +132 -0
- package/code-snippet/src/generated/code-snippet.view.generated.vue.d.ts +8 -0
- package/code-snippet/src/generated/index.d.ts +1 -0
- package/code-snippet/src/index.d.ts +2 -1
- package/datatable/index.mjs +3 -86
- package/datatable/src/generated/BsDatatable.generated.vue.d.ts +573 -0
- package/datatable/src/generated/datatable.view.generated.vue.d.ts +59 -0
- package/datatable/src/generated/index.d.ts +1 -0
- package/datatable/src/index.d.ts +3 -1
- package/datepicker/index.mjs +155 -24
- package/datepicker/src/generated/BsDatepicker.generated.vue.d.ts +183 -0
- package/datepicker/src/generated/datepicker.view.generated.vue.d.ts +8 -0
- package/datepicker/src/generated/index.d.ts +1 -0
- package/datepicker/src/index.d.ts +3 -1
- package/datetime-picker/index.mjs +1 -29
- package/datetime-picker/src/generated/BsDatetimePicker.generated.vue.d.ts +216 -0
- package/datetime-picker/src/generated/datetime-picker.view.generated.vue.d.ts +8 -0
- package/datetime-picker/src/generated/index.d.ts +1 -0
- package/datetime-picker/src/index.d.ts +2 -1
- package/dock/index.mjs +122 -23
- package/dock/src/generated/BsDockManager.generated.vue.d.ts +174 -0
- package/dock/src/generated/dock-manager.view.generated.vue.d.ts +33 -0
- package/dock/src/generated/dock-node.view.generated.vue.d.ts +6 -0
- package/dock/src/generated/index.d.ts +1 -0
- package/dock/src/index.d.ts +3 -1
- package/dropdown-menu/index.mjs +33 -31
- package/dropdown-menu/src/BsDropdownItem.vue.d.ts +1 -1
- package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +12 -5
- package/dropdown-menu/src/index.d.ts +1 -1
- package/file-manager/index.mjs +265 -17
- package/file-manager/src/generated/BsFileManager.generated.vue.d.ts +213 -0
- package/file-manager/src/generated/file-manager.view.generated.vue.d.ts +8 -0
- package/file-manager/src/generated/index.d.ts +1 -0
- package/file-manager/src/index.d.ts +3 -1
- package/input-group/index.mjs +15 -8
- package/input-group/src/BsInputGroup.vue.d.ts +7 -1
- package/machine/index.mjs +84 -1
- package/machine/src/content.d.ts +13 -0
- package/machine/src/core.d.ts +23 -0
- package/machine/src/core.spec.d.ts +1 -0
- package/machine/src/index.d.ts +3 -0
- package/machine/src/transfer-state.d.ts +27 -0
- package/multi-range/index.mjs +97 -22
- package/multi-range/src/generated/BsMultiRange.generated.vue.d.ts +132 -0
- package/multi-range/src/generated/index.d.ts +1 -0
- package/multi-range/src/generated/multi-range.view.generated.vue.d.ts +8 -0
- package/multi-range/src/index.d.ts +2 -1
- package/navbar/index.mjs +189 -57
- package/navbar/src/generated/BsNavbar.generated.vue.d.ts +196 -0
- package/navbar/src/generated/BsNavbarDropdown.generated.vue.d.ts +155 -0
- package/navbar/src/generated/BsNavbarItem.generated.vue.d.ts +144 -0
- package/navbar/src/generated/BsNavbarNav.generated.vue.d.ts +135 -0
- package/navbar/src/generated/index.d.ts +4 -0
- package/navbar/src/generated/navbar-dropdown.view.generated.vue.d.ts +34 -0
- package/navbar/src/generated/navbar-item.view.generated.vue.d.ts +27 -0
- package/navbar/src/generated/navbar-nav.view.generated.vue.d.ts +27 -0
- package/navbar/src/generated/navbar.view.generated.vue.d.ts +38 -0
- package/navbar/src/index.d.ts +2 -5
- package/otp-input/index.mjs +115 -21
- package/otp-input/src/generated/BsOtpInput.generated.vue.d.ts +134 -0
- package/otp-input/src/generated/index.d.ts +1 -0
- package/{theming/src/BsThemeToggle.vue.d.ts → otp-input/src/generated/otp-input.view.generated.vue.d.ts} +3 -3
- package/otp-input/src/index.d.ts +2 -1
- package/package.json +7 -5
- package/pagination/index.mjs +54 -20
- package/pagination/src/BsPagination.vue.d.ts +21 -4
- package/phone-input/index.mjs +151 -31
- package/phone-input/src/generated/BsPhoneInput.generated.vue.d.ts +174 -0
- package/phone-input/src/generated/index.d.ts +1 -0
- package/{file-manager/src/BsFileManager.vue.d.ts → phone-input/src/generated/phone-input.view.generated.vue.d.ts} +3 -3
- package/phone-input/src/index.d.ts +2 -1
- package/query-builder/index.mjs +259 -42
- package/query-builder/src/generated/BsQueryBuilder.generated.vue.d.ts +268 -0
- package/query-builder/src/generated/index.d.ts +1 -0
- package/query-builder/src/generated/query-builder-item.view.generated.vue.d.ts +30 -0
- package/query-builder/src/generated/query-builder.view.generated.vue.d.ts +33 -0
- package/query-builder/src/index.d.ts +3 -1
- package/radio/index.mjs +74 -21
- package/radio/src/BsRadio.vue.d.ts +28 -8
- package/radio/src/index.d.ts +1 -0
- package/radio/src/radio-group-key.d.ts +10 -0
- package/radio-group/index.mjs +37 -20
- package/radio-group/src/BsRadioGroup.vue.d.ts +13 -8
- package/ribbon/index.mjs +1223 -25
- package/ribbon/src/generated/BsQuickAccessToolbar.generated.vue.d.ts +135 -0
- package/ribbon/src/generated/BsRibbon.generated.vue.d.ts +219 -0
- package/ribbon/src/generated/BsRibbonButton.generated.vue.d.ts +199 -0
- package/ribbon/src/generated/BsRibbonCheckBox.generated.vue.d.ts +106 -0
- package/ribbon/src/generated/BsRibbonColorPicker.generated.vue.d.ts +106 -0
- package/ribbon/src/generated/BsRibbonComboBox.generated.vue.d.ts +117 -0
- package/ribbon/src/generated/BsRibbonContextualTabSet.generated.vue.d.ts +153 -0
- package/ribbon/src/generated/BsRibbonDropdownButton.generated.vue.d.ts +204 -0
- package/ribbon/src/generated/BsRibbonGallery.generated.vue.d.ts +210 -0
- package/ribbon/src/generated/BsRibbonGalleryItem.generated.vue.d.ts +175 -0
- package/ribbon/src/generated/BsRibbonGroup.generated.vue.d.ts +199 -0
- package/ribbon/src/generated/BsRibbonGroupButton.generated.vue.d.ts +117 -0
- package/ribbon/src/generated/BsRibbonMenuItem.generated.vue.d.ts +188 -0
- package/ribbon/src/generated/BsRibbonMenuSeparator.generated.vue.d.ts +17 -0
- package/ribbon/src/generated/BsRibbonSplitButton.generated.vue.d.ts +208 -0
- package/ribbon/src/generated/BsRibbonTab.generated.vue.d.ts +175 -0
- package/ribbon/src/generated/BsRibbonTemplateItem.generated.vue.d.ts +135 -0
- package/ribbon/src/generated/BsRibbonToggleButton.generated.vue.d.ts +210 -0
- package/ribbon/src/generated/index.d.ts +18 -0
- package/ribbon/src/generated/quick-access-toolbar.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-button.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-check-box.view.generated.vue.d.ts +8 -0
- package/ribbon/src/generated/ribbon-color-picker.view.generated.vue.d.ts +8 -0
- package/ribbon/src/generated/ribbon-combo-box.view.generated.vue.d.ts +9 -0
- package/ribbon/src/generated/ribbon-contextual-tab-set.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-dropdown-button.view.generated.vue.d.ts +29 -0
- package/ribbon/src/generated/ribbon-gallery-item.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-gallery.view.generated.vue.d.ts +28 -0
- package/ribbon/src/generated/ribbon-group-button.view.generated.vue.d.ts +9 -0
- package/ribbon/src/generated/ribbon-group.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-menu-item.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-menu-separator.view.generated.vue.d.ts +8 -0
- package/ribbon/src/generated/ribbon-split-button.view.generated.vue.d.ts +29 -0
- package/ribbon/src/generated/ribbon-tab.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-template-item.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon-toggle-button.view.generated.vue.d.ts +27 -0
- package/ribbon/src/generated/ribbon.view.generated.vue.d.ts +29 -0
- package/ribbon/src/index.d.ts +3 -2
- package/scheduler/index.mjs +457 -39
- package/scheduler/src/generated/BsScheduler.generated.vue.d.ts +202 -0
- package/scheduler/src/generated/index.d.ts +1 -0
- package/scheduler/src/generated/sched-editor.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-month.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-popover-event.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-popover.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-row-panel.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-time-grid.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-timeline.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/sched-year.view.generated.vue.d.ts +6 -0
- package/scheduler/src/generated/scheduler.view.generated.vue.d.ts +8 -0
- package/scheduler/src/index.d.ts +4 -2
- package/select/index.mjs +129 -30
- package/select/src/generated/BsSelect.generated.vue.d.ts +257 -0
- package/select/src/generated/index.d.ts +1 -0
- package/select/src/generated/select.view.generated.vue.d.ts +37 -0
- package/select/src/index.d.ts +2 -1
- package/shell/index.mjs +54 -27
- package/shell/src/BsShell.vue.d.ts +23 -11
- package/shell/src/index.d.ts +2 -1
- package/shell/src/shell-state-change.d.ts +4 -0
- package/signature-pad/index.mjs +101 -22
- package/signature-pad/src/generated/BsSignaturePad.generated.vue.d.ts +129 -0
- package/signature-pad/src/generated/index.d.ts +1 -0
- package/signature-pad/src/generated/signature-pad.view.generated.vue.d.ts +8 -0
- package/signature-pad/src/index.d.ts +2 -2
- package/splitter/index.mjs +1 -13
- package/splitter/src/generated/BsSplitter.generated.vue.d.ts +177 -0
- package/splitter/src/generated/BsSplitterPanel.generated.vue.d.ts +122 -0
- package/splitter/src/generated/index.d.ts +2 -0
- package/splitter/src/generated/splitter-panel.view.generated.vue.d.ts +27 -0
- package/splitter/src/generated/splitter.view.generated.vue.d.ts +27 -0
- package/splitter/src/index.d.ts +2 -2
- package/src/index.d.ts +4 -7
- package/tab-control/index.mjs +90 -21
- package/tab-control/src/BsTabControl.vue.d.ts +63 -28
- package/{timeline/src/BsTimelineItem.vue.d.ts → tab-control/src/BsTabPage.vue.d.ts} +8 -11
- package/tab-control/src/index.d.ts +2 -1
- package/theming/index.mjs +53 -31
- package/theming/src/generated/BsThemeToggle.generated.vue.d.ts +31 -0
- package/theming/src/generated/index.d.ts +1 -0
- package/theming/src/generated/theme-toggle.view.generated.vue.d.ts +8 -0
- package/theming/src/index.d.ts +2 -2
- package/theming/src/useBsTheme.d.ts +2 -2
- package/tile-manager/src/BsTileManager.vue.d.ts +3 -3
- package/timeline/index.mjs +224 -136
- package/timeline/src/generated/BsTimeline.generated.vue.d.ts +328 -0
- package/timeline/src/generated/BsTimelineItem.generated.vue.d.ts +209 -0
- package/timeline/src/generated/index.d.ts +2 -0
- package/timeline/src/generated/timeline-item.view.generated.vue.d.ts +45 -0
- package/timeline/src/generated/timeline.view.generated.vue.d.ts +89 -0
- package/timeline/src/index.d.ts +3 -4
- package/timepicker/index.mjs +195 -42
- package/timepicker/src/generated/BsTimeList.generated.vue.d.ts +94 -0
- package/timepicker/src/generated/BsTimepicker.generated.vue.d.ts +161 -0
- package/timepicker/src/generated/index.d.ts +2 -0
- package/timepicker/src/generated/time-list.view.generated.vue.d.ts +8 -0
- package/timepicker/src/generated/timepicker.view.generated.vue.d.ts +8 -0
- package/timepicker/src/index.d.ts +2 -2
- package/toggle-button/index.mjs +18 -19
- package/toggle-button/src/BsToggleButton.vue.d.ts +2 -6
- package/tree-select/index.mjs +240 -91
- package/tree-select/src/generated/BsTreeSelect.generated.vue.d.ts +323 -0
- package/tree-select/src/generated/index.d.ts +1 -0
- package/tree-select/src/generated/tree-select.view.generated.vue.d.ts +56 -0
- package/tree-select/src/index.d.ts +3 -3
- package/treeview/index.mjs +1 -58
- package/treeview/src/generated/BsTreeview.generated.vue.d.ts +240 -0
- package/treeview/src/generated/index.d.ts +1 -0
- package/treeview/src/generated/treeview.view.generated.vue.d.ts +36 -0
- package/treeview/src/index.d.ts +2 -1
- package/typeahead/index.mjs +71 -59
- package/typeahead/src/BsTypeahead.vue.d.ts +3 -3
- package/calendar/src/BsCalendar.vue.d.ts +0 -28
- package/carousel/src/BsCarousel.vue.d.ts +0 -53
- package/charts/hierarchy/src/BsHierarchyChart.vue.d.ts +0 -19
- package/code-snippet/src/BsCodeSnippet.vue.d.ts +0 -43
- package/datatable/src/BsDatatable.vue.d.ts +0 -89
- package/datepicker/src/BsDatepicker.vue.d.ts +0 -28
- package/datetime-picker/src/BsDatetimePicker.vue.d.ts +0 -28
- package/dock/src/BsDockManager.vue.d.ts +0 -29
- package/multi-range/src/BsMultiRange.vue.d.ts +0 -11
- package/navbar/src/BsNavbar.vue.d.ts +0 -38
- package/navbar/src/BsNavbarBrand.vue.d.ts +0 -21
- package/navbar/src/BsNavbarDropdown.vue.d.ts +0 -22
- package/otp-input/src/BsOtpInput.vue.d.ts +0 -11
- package/phone-input/src/BsPhoneInput.vue.d.ts +0 -16
- package/query-builder/src/BsQueryBuilder.vue.d.ts +0 -20
- package/ribbon/src/BsRibbon.vue.d.ts +0 -29
- package/scheduler/src/BsScheduler.vue.d.ts +0 -31
- package/select/src/BsSelect.vue.d.ts +0 -33
- package/signature-pad/src/BsSignaturePad.vue.d.ts +0 -12
- package/splitter/src/BsSplitter.vue.d.ts +0 -17
- package/timeline/src/BsTimeline.vue.d.ts +0 -58
- package/timepicker/src/BsTimeList.vue.d.ts +0 -28
- package/timepicker/src/BsTimepicker.vue.d.ts +0 -28
- package/tree-select/src/BsTreeSelect.vue.d.ts +0 -32
- package/treeview/src/BsTreeview.vue.d.ts +0 -27
- package/vue-bootstrap.css +0 -2
package/dock/index.mjs
CHANGED
|
@@ -1,29 +1,128 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
1
|
+
import { useCore as e } from "../machine/index.mjs";
|
|
2
|
+
import { n as t, t as n } from "../chunks/BsSplitterPanel.generated-B84cMuMJ.mjs";
|
|
3
|
+
import { Fragment as r, Teleport as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeProps as m, openBlock as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useTemplateRef as b, withCtx as x } from "vue";
|
|
4
|
+
import { installLightStyles as S } from "@mintplayer/ui-core/scoped-styles";
|
|
5
|
+
import { DOCK_LABELS as C, EMPTY_DOCK_LAYOUT as w, dockCore as T, dockScopedStyles as E, mergeDockLabels as D } from "@mintplayer/ui-core/dock";
|
|
3
6
|
//#endregion
|
|
4
|
-
//#region libs/mintplayer-vue-bootstrap/dock/src/
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
//#region libs/mintplayer-vue-bootstrap/dock/src/generated/dock-node.view.generated.vue
|
|
8
|
+
var O = /* @__PURE__ */ d({
|
|
9
|
+
__name: "dock-node.view.generated",
|
|
10
|
+
props: { node: {} },
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (i, l) => (h(), s("div", p({ "data-mps": "dock" }, e.node.bag), [e.node.split ? (h(), a(y(t), {
|
|
13
|
+
key: 0,
|
|
14
|
+
orientation: e.node.direction,
|
|
15
|
+
minPanelSize: 48,
|
|
16
|
+
onResizeend: e.node.onResizeEnd,
|
|
17
|
+
onResizing: e.node.onResizing
|
|
18
|
+
}, {
|
|
19
|
+
default: x(() => [(h(!0), s(r, null, g(e.node.children, (e) => (h(), a(y(n), { key: e.key }, {
|
|
20
|
+
default: x(() => [u(O, { node: e.node }, null, 8, ["node"])]),
|
|
21
|
+
_: 2
|
|
22
|
+
}, 1024))), 128))]),
|
|
23
|
+
_: 1
|
|
24
|
+
}, 8, [
|
|
25
|
+
"orientation",
|
|
26
|
+
"onResizeend",
|
|
27
|
+
"onResizing"
|
|
28
|
+
])) : o("", !0), e.node.stack ? (h(), s(r, { key: 1 }, [c("div", p({ "data-mps": "dock" }, e.node.stack.strip), [(h(!0), s(r, null, g(e.node.stack.tabs, (e) => (h(), s(r, { key: e.key }, [e.placeholder ? (h(), s("span", p({
|
|
29
|
+
key: 0,
|
|
30
|
+
"data-mps": "dock"
|
|
31
|
+
}, { ref_for: !0 }, e.bag, { style: e.style }), v(e.title), 17)) : (h(), s("button", p({
|
|
32
|
+
key: 1,
|
|
33
|
+
"data-mps": "dock"
|
|
34
|
+
}, { ref_for: !0 }, e.bag), v(e.title), 17))], 64))), 128))], 16), c("div", p({ "data-mps": "dock" }, e.node.stack.body), v(e.node.stack.empty), 17)], 64)) : o("", !0)], 16));
|
|
35
|
+
}
|
|
36
|
+
}), k = /* @__PURE__ */ d({
|
|
37
|
+
__name: "dock-manager.view.generated",
|
|
38
|
+
props: { view: {} },
|
|
39
|
+
setup(e) {
|
|
40
|
+
return (t, n) => (h(), s("div", p({
|
|
41
|
+
"data-mps": "dock",
|
|
42
|
+
ref: "root"
|
|
43
|
+
}, e.view.root), [
|
|
44
|
+
c("div", p({ "data-mps": "dock" }, e.view.docked), [e.view.dockedNode ? (h(), a(O, {
|
|
45
|
+
key: 0,
|
|
46
|
+
node: e.view.dockedNode
|
|
47
|
+
}, null, 8, ["node"])) : o("", !0)], 16),
|
|
48
|
+
c("div", p({ "data-mps": "dock" }, e.view.floatingLayer), [(h(!0), s(r, null, g(e.view.floating, (e) => (h(), s("div", p({
|
|
49
|
+
"data-mps": "dock",
|
|
50
|
+
key: e.key
|
|
51
|
+
}, { ref_for: !0 }, e.bag, { style: e.style }), [
|
|
52
|
+
c("div", p({ "data-mps": "dock" }, { ref_for: !0 }, e.chrome), [c("div", p({ "data-mps": "dock" }, { ref_for: !0 }, e.title), v(e.titleText), 17), c("button", p({ "data-mps": "dock" }, { ref_for: !0 }, e.close), "×", 16)], 16),
|
|
53
|
+
c("div", p({ "data-mps": "dock" }, { ref_for: !0 }, e.content), [e.node ? (h(), a(O, {
|
|
54
|
+
key: 0,
|
|
55
|
+
node: e.node
|
|
56
|
+
}, null, 8, ["node"])) : o("", !0)], 16),
|
|
57
|
+
(h(!0), s(r, null, g(e.resizers, (e) => (h(), s("div", p({
|
|
58
|
+
"data-mps": "dock",
|
|
59
|
+
key: e.key
|
|
60
|
+
}, { ref_for: !0 }, e.bag), null, 16))), 128))
|
|
61
|
+
], 16))), 128))], 16),
|
|
62
|
+
c("div", p({ "data-mps": "dock" }, e.view.intersectionLayer), [(h(!0), s(r, null, g(e.view.intersections, (e) => (h(), s("div", p({
|
|
63
|
+
"data-mps": "dock",
|
|
64
|
+
key: e.key
|
|
65
|
+
}, { ref_for: !0 }, e.bag, { style: e.style }), null, 16))), 128))], 16),
|
|
66
|
+
c("div", p({ "data-mps": "dock" }, e.view.indicator, { style: e.view.indicatorStyle }), null, 16),
|
|
67
|
+
c("div", p({ "data-mps": "dock" }, e.view.joystick, { style: e.view.joystickStyle }), [(h(!0), s(r, null, g(e.view.joystickCells, (e) => (h(), s(r, { key: e.key }, [e.button ? (h(), s("button", p({
|
|
68
|
+
key: 0,
|
|
69
|
+
"data-mps": "dock"
|
|
70
|
+
}, { ref_for: !0 }, e.bag), v(e.glyph), 17)) : (h(), s("span", p({
|
|
71
|
+
key: 1,
|
|
72
|
+
"data-mps": "dock"
|
|
73
|
+
}, { ref_for: !0 }, e.bag), null, 16))], 64))), 128))], 16),
|
|
74
|
+
c("div", p({ "data-mps": "dock" }, e.view.live), v(e.view.announcement), 17),
|
|
75
|
+
c("div", p({ "data-mps": "dock" }, e.view.parking), null, 16),
|
|
76
|
+
(h(!0), s(r, null, g(e.view.panes, (e) => (h(), s(r, { key: e.name }, [e.host ? (h(), a(i, {
|
|
77
|
+
key: 0,
|
|
78
|
+
to: e.host
|
|
79
|
+
}, [_(t.$slots, "pane", { pane: e.name })], 8, ["to"])) : o("", !0)], 64))), 128))
|
|
80
|
+
], 16));
|
|
81
|
+
}
|
|
82
|
+
}), A = /* @__PURE__ */ d({
|
|
83
|
+
name: "BsDockManager",
|
|
84
|
+
__name: "BsDockManager.generated",
|
|
8
85
|
props: {
|
|
9
|
-
layout: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
t && (l.value = t);
|
|
86
|
+
layout: {
|
|
87
|
+
type: null,
|
|
88
|
+
default: null
|
|
89
|
+
},
|
|
90
|
+
debugLayoutIntegrity: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !1
|
|
93
|
+
},
|
|
94
|
+
labels: {
|
|
95
|
+
type: null,
|
|
96
|
+
default: null
|
|
21
97
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
98
|
+
},
|
|
99
|
+
emits: [
|
|
100
|
+
"layoutchange",
|
|
101
|
+
"paneactivated",
|
|
102
|
+
"update:layout"
|
|
103
|
+
],
|
|
104
|
+
setup(t, { expose: n, emit: r }) {
|
|
105
|
+
let i = t, o = r;
|
|
106
|
+
S("dock", E);
|
|
107
|
+
let s = b("template"), c = e(T, () => ({
|
|
108
|
+
layout: i.layout,
|
|
109
|
+
debugLayoutIntegrity: i.debugLayoutIntegrity,
|
|
110
|
+
labels: i.labels
|
|
111
|
+
}), {
|
|
112
|
+
idPrefix: "bs-dock-manager",
|
|
113
|
+
root: () => s.value?.$el,
|
|
114
|
+
emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
|
|
115
|
+
models: ["layout"]
|
|
116
|
+
}), u = c.props;
|
|
117
|
+
return n({ captureLayout: (...e) => c.call("captureLayout", e) }), (e, t) => (h(), a(k, p({
|
|
118
|
+
ref_key: "template",
|
|
119
|
+
ref: s
|
|
120
|
+
}, y(u)), l({ _: 2 }, [e.$slots.pane ? {
|
|
121
|
+
name: "pane",
|
|
122
|
+
fn: x((t) => [_(e.$slots, "pane", m(f(t)))]),
|
|
123
|
+
key: "0"
|
|
124
|
+
} : void 0]), 1040));
|
|
26
125
|
}
|
|
27
126
|
});
|
|
28
127
|
//#endregion
|
|
29
|
-
export {
|
|
128
|
+
export { A as BsDockManager, C as DOCK_LABELS, w as EMPTY_DOCK_LAYOUT, D as mergeDockLabels };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ComponentPublicInstance, PropType } from 'vue';
|
|
2
|
+
import { DockInputs, DockLayoutSnapshot, DockMethods, DockPaneActivatedEventDetail } from '@mintplayer/ui-core/dock';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
pane?(_: {
|
|
7
|
+
pane: string;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
template: ({
|
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: {
|
|
15
|
+
readonly view: import('@mintplayer/ui-core/dock').DockView;
|
|
16
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
17
|
+
$attrs: import('vue').Attrs;
|
|
18
|
+
$refs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
} & {
|
|
21
|
+
root: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
$slots: Readonly<{
|
|
24
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
$root: ComponentPublicInstance | null;
|
|
27
|
+
$parent: ComponentPublicInstance | null;
|
|
28
|
+
$host: Element | null;
|
|
29
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
30
|
+
$el: HTMLDivElement;
|
|
31
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
32
|
+
view: import('@mintplayer/ui-core/dock').DockView;
|
|
33
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
34
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
35
|
+
created?: (() => void) | (() => void)[];
|
|
36
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
37
|
+
mounted?: (() => void) | (() => void)[];
|
|
38
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
39
|
+
updated?: (() => void) | (() => void)[];
|
|
40
|
+
activated?: (() => void) | (() => void)[];
|
|
41
|
+
deactivated?: (() => void) | (() => void)[];
|
|
42
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
43
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
44
|
+
destroyed?: (() => void) | (() => void)[];
|
|
45
|
+
unmounted?: (() => void) | (() => void)[];
|
|
46
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
47
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
48
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
49
|
+
};
|
|
50
|
+
$forceUpdate: () => void;
|
|
51
|
+
$nextTick: typeof import('vue').nextTick;
|
|
52
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
53
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
54
|
+
view: import('@mintplayer/ui-core/dock').DockView;
|
|
55
|
+
}> & Readonly<{}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
56
|
+
$slots: Readonly<{
|
|
57
|
+
pane?: (args: {
|
|
58
|
+
pane: string;
|
|
59
|
+
}) => unknown;
|
|
60
|
+
}> & {
|
|
61
|
+
pane?: (args: {
|
|
62
|
+
pane: string;
|
|
63
|
+
}) => unknown;
|
|
64
|
+
};
|
|
65
|
+
}) | null;
|
|
66
|
+
};
|
|
67
|
+
rootEl: HTMLDivElement;
|
|
68
|
+
};
|
|
69
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
70
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
71
|
+
layout: {
|
|
72
|
+
type: PropType<DockInputs["layout"]>;
|
|
73
|
+
default: null;
|
|
74
|
+
};
|
|
75
|
+
debugLayoutIntegrity: {
|
|
76
|
+
type: PropType<DockInputs["debugLayoutIntegrity"]>;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
labels: {
|
|
80
|
+
type: PropType<DockInputs["labels"]>;
|
|
81
|
+
default: null;
|
|
82
|
+
};
|
|
83
|
+
}>, {
|
|
84
|
+
/** A copy of the current layout snapshot. */
|
|
85
|
+
captureLayout: () => ReturnType<DockMethods["captureLayout"]>;
|
|
86
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
87
|
+
layoutchange: (detail: DockLayoutSnapshot) => any;
|
|
88
|
+
paneactivated: (detail: DockPaneActivatedEventDetail) => any;
|
|
89
|
+
"update:layout": (value: import('@mintplayer/ui-core/dock').DockLayoutInput) => any;
|
|
90
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
91
|
+
layout: {
|
|
92
|
+
type: PropType<DockInputs["layout"]>;
|
|
93
|
+
default: null;
|
|
94
|
+
};
|
|
95
|
+
debugLayoutIntegrity: {
|
|
96
|
+
type: PropType<DockInputs["debugLayoutIntegrity"]>;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
labels: {
|
|
100
|
+
type: PropType<DockInputs["labels"]>;
|
|
101
|
+
default: null;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
onLayoutchange?: ((detail: DockLayoutSnapshot) => any) | undefined;
|
|
105
|
+
onPaneactivated?: ((detail: DockPaneActivatedEventDetail) => any) | undefined;
|
|
106
|
+
"onUpdate:layout"?: ((value: import('@mintplayer/ui-core/dock').DockLayoutInput) => any) | undefined;
|
|
107
|
+
}>, {
|
|
108
|
+
labels: Partial<import('@mintplayer/ui-core/dock').DockLabels> | null;
|
|
109
|
+
layout: import('@mintplayer/ui-core/dock').DockLayoutInput;
|
|
110
|
+
debugLayoutIntegrity: boolean;
|
|
111
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
112
|
+
template: ({
|
|
113
|
+
$: import('vue').ComponentInternalInstance;
|
|
114
|
+
$data: {};
|
|
115
|
+
$props: {
|
|
116
|
+
readonly view: import('@mintplayer/ui-core/dock').DockView;
|
|
117
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
118
|
+
$attrs: import('vue').Attrs;
|
|
119
|
+
$refs: {
|
|
120
|
+
[x: string]: unknown;
|
|
121
|
+
} & {
|
|
122
|
+
root: HTMLDivElement;
|
|
123
|
+
};
|
|
124
|
+
$slots: Readonly<{
|
|
125
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
$root: ComponentPublicInstance | null;
|
|
128
|
+
$parent: ComponentPublicInstance | null;
|
|
129
|
+
$host: Element | null;
|
|
130
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
131
|
+
$el: HTMLDivElement;
|
|
132
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
133
|
+
view: import('@mintplayer/ui-core/dock').DockView;
|
|
134
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
135
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
136
|
+
created?: (() => void) | (() => void)[];
|
|
137
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
138
|
+
mounted?: (() => void) | (() => void)[];
|
|
139
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
140
|
+
updated?: (() => void) | (() => void)[];
|
|
141
|
+
activated?: (() => void) | (() => void)[];
|
|
142
|
+
deactivated?: (() => void) | (() => void)[];
|
|
143
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
144
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
145
|
+
destroyed?: (() => void) | (() => void)[];
|
|
146
|
+
unmounted?: (() => void) | (() => void)[];
|
|
147
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
148
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
149
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
150
|
+
};
|
|
151
|
+
$forceUpdate: () => void;
|
|
152
|
+
$nextTick: typeof import('vue').nextTick;
|
|
153
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
154
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
155
|
+
view: import('@mintplayer/ui-core/dock').DockView;
|
|
156
|
+
}> & Readonly<{}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
157
|
+
$slots: Readonly<{
|
|
158
|
+
pane?: (args: {
|
|
159
|
+
pane: string;
|
|
160
|
+
}) => unknown;
|
|
161
|
+
}> & {
|
|
162
|
+
pane?: (args: {
|
|
163
|
+
pane: string;
|
|
164
|
+
}) => unknown;
|
|
165
|
+
};
|
|
166
|
+
}) | null;
|
|
167
|
+
}, HTMLDivElement>;
|
|
168
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
169
|
+
export default _default;
|
|
170
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
171
|
+
new (): {
|
|
172
|
+
$slots: S;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DockView } from '@mintplayer/ui-core/dock';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
view: DockView;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
/** One pane's content, by the pane name the layout uses. */
|
|
9
|
+
pane?: (args: {
|
|
10
|
+
pane: string;
|
|
11
|
+
}) => unknown;
|
|
12
|
+
}> & {
|
|
13
|
+
/** One pane's content, by the pane name the layout uses. */
|
|
14
|
+
pane?: (args: {
|
|
15
|
+
pane: string;
|
|
16
|
+
}) => unknown;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
root: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
root: HTMLDivElement;
|
|
26
|
+
}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DockNodeView } from '@mintplayer/ui-core/dock';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
node: DockNodeView;
|
|
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, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsDockManager } from './BsDockManager.generated.vue';
|
package/dock/src/index.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export { DOCK_LABELS, EMPTY_DOCK_LAYOUT, mergeDockLabels } from '@mintplayer/ui-core/dock';
|
|
3
|
+
export type { DockFloatingPaneBounds, DockFloatingStackLayout, DockLabels, DockLayout, DockLayoutInput, DockLayoutNode, DockLayoutSnapshot, DockPaneActivatedEventDetail, DockSplitNode, DockStackNode, } from '@mintplayer/ui-core/dock';
|
package/dropdown-menu/index.mjs
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "@mintplayer/
|
|
1
|
+
import { computed as e, createElementBlock as t, defineComponent as n, mergeProps as r, onBeforeUnmount as i, onMounted as a, openBlock as o, ref as s, renderSlot as c, unref as l, useTemplateRef as u, watch as d } from "vue";
|
|
2
|
+
import { installLightStyles as f } from "@mintplayer/ui-core/scoped-styles";
|
|
3
|
+
import { DROPDOWN_MENU_SCOPE as p, attachDropdownMenu as m, connectDropdownMenu as h, dropdownMenuScopedStyles as g } from "@mintplayer/ui-core/dropdown-menu";
|
|
3
4
|
//#region libs/mintplayer-vue-bootstrap/dropdown-menu/src/BsDropdownMenu.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
-
inheritAttrs: !1,
|
|
5
|
+
var _ = ["data-mps"], v = /* @__PURE__ */ n({
|
|
6
6
|
__name: "BsDropdownMenu",
|
|
7
7
|
props: { maxHeight: {} },
|
|
8
8
|
emits: ["select"],
|
|
9
|
-
setup(
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
setup(n, { emit: d }) {
|
|
10
|
+
let v = n, y = d;
|
|
11
|
+
f(p, g);
|
|
12
|
+
let b = u("menu"), x = s(!1), S = e(() => h({ hydrated: x.value })), C = e(() => v.maxHeight === void 0 ? void 0 : { "--mp-dropdown-max-height": `${v.maxHeight}px` }), w;
|
|
13
|
+
return a(() => {
|
|
14
|
+
x.value = !0, b.value && (w = m(b.value, { onSelect: (e) => y("select", e) }));
|
|
15
|
+
}), i(() => w?.()), (e, n) => (o(), t("ul", r({
|
|
16
|
+
ref_key: "menu",
|
|
17
|
+
ref: b,
|
|
18
|
+
"data-mps": l(p)
|
|
19
|
+
}, S.value, { style: C.value }), [c(e.$slots, "default")], 16, _));
|
|
18
20
|
}
|
|
19
|
-
}),
|
|
21
|
+
}), y = ["aria-disabled"], b = /* @__PURE__ */ n({
|
|
20
22
|
inheritAttrs: !1,
|
|
21
23
|
__name: "BsDropdownItem",
|
|
22
24
|
props: {
|
|
@@ -30,36 +32,36 @@ var l = ["max-height"], u = /* @__PURE__ */ t({
|
|
|
30
32
|
},
|
|
31
33
|
value: {}
|
|
32
34
|
},
|
|
33
|
-
setup(
|
|
34
|
-
let
|
|
35
|
-
|
|
35
|
+
setup(e) {
|
|
36
|
+
let n = e, i = s(null), l = () => {
|
|
37
|
+
i.value && (i.value.dropdownValue = n.value);
|
|
36
38
|
};
|
|
37
|
-
return
|
|
39
|
+
return a(l), d(() => n.value, l), (n, a) => (o(), t("li", r({
|
|
38
40
|
ref_key: "el",
|
|
39
|
-
ref:
|
|
40
|
-
},
|
|
41
|
+
ref: i
|
|
42
|
+
}, n.$attrs, {
|
|
41
43
|
class: ["dropdown-item", {
|
|
42
|
-
active:
|
|
43
|
-
disabled:
|
|
44
|
+
active: e.active,
|
|
45
|
+
disabled: e.disabled
|
|
44
46
|
}],
|
|
45
|
-
"aria-disabled":
|
|
46
|
-
}), [
|
|
47
|
+
"aria-disabled": e.disabled ? "true" : void 0
|
|
48
|
+
}), [c(n.$slots, "default")], 16, y));
|
|
47
49
|
}
|
|
48
|
-
}),
|
|
50
|
+
}), x = /* @__PURE__ */ n({
|
|
49
51
|
inheritAttrs: !1,
|
|
50
52
|
__name: "BsDropdownDivider",
|
|
51
|
-
setup(
|
|
52
|
-
return (
|
|
53
|
+
setup(e) {
|
|
54
|
+
return (e, n) => (o(), t("li", r(e.$attrs, {
|
|
53
55
|
role: "separator",
|
|
54
56
|
class: "dropdown-divider"
|
|
55
57
|
}), null, 16));
|
|
56
58
|
}
|
|
57
|
-
}),
|
|
59
|
+
}), S = /* @__PURE__ */ n({
|
|
58
60
|
inheritAttrs: !1,
|
|
59
61
|
__name: "BsDropdownHeader",
|
|
60
|
-
setup(
|
|
61
|
-
return (
|
|
62
|
+
setup(e) {
|
|
63
|
+
return (e, n) => (o(), t("li", r(e.$attrs, { class: "dropdown-header" }), [c(e.$slots, "default")], 16));
|
|
62
64
|
}
|
|
63
65
|
});
|
|
64
66
|
//#endregion
|
|
65
|
-
export {
|
|
67
|
+
export { x as BsDropdownDivider, S as BsDropdownHeader, b as BsDropdownItem, v as BsDropdownMenu };
|
|
@@ -18,8 +18,8 @@ declare function __VLS_template(): {
|
|
|
18
18
|
};
|
|
19
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
20
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
-
disabled: boolean;
|
|
22
21
|
active: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
24
|
el: HTMLLIElement;
|
|
25
25
|
}, any>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { DropdownSelectEventDetail } from '@mintplayer/
|
|
1
|
+
import { DropdownSelectEventDetail } from '@mintplayer/ui-core/dropdown-menu';
|
|
2
|
+
/**
|
|
3
|
+
* `BsDropdownMenu` — a Bootstrap `.dropdown-menu` list rendered from the
|
|
4
|
+
* headless `@mintplayer/ui-core/dropdown-menu` core (#437). Put
|
|
5
|
+
* `BsDropdownItem` / `BsDropdownDivider` / `BsDropdownHeader` children inside.
|
|
6
|
+
* Once mounted it adds roving-tabindex keyboard navigation, and activating an
|
|
7
|
+
* enabled item emits `select` with that item's `value`.
|
|
8
|
+
*/
|
|
2
9
|
type __VLS_Props = {
|
|
3
10
|
/** Max panel height in px before the item list scrolls. */
|
|
4
11
|
maxHeight?: number;
|
|
@@ -9,9 +16,9 @@ declare function __VLS_template(): {
|
|
|
9
16
|
default?(_: {}): any;
|
|
10
17
|
};
|
|
11
18
|
refs: {
|
|
12
|
-
|
|
19
|
+
menu: HTMLUListElement;
|
|
13
20
|
};
|
|
14
|
-
rootEl:
|
|
21
|
+
rootEl: HTMLUListElement;
|
|
15
22
|
};
|
|
16
23
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
24
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -19,8 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
19
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
27
|
onSelect?: ((detail: DropdownSelectEventDetail) => any) | undefined;
|
|
21
28
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
-
|
|
23
|
-
},
|
|
29
|
+
menu: HTMLUListElement;
|
|
30
|
+
}, HTMLUListElement>;
|
|
24
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
32
|
export default _default;
|
|
26
33
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,4 +2,4 @@ export { default as BsDropdownMenu } from './BsDropdownMenu.vue';
|
|
|
2
2
|
export { default as BsDropdownItem } from './BsDropdownItem.vue';
|
|
3
3
|
export { default as BsDropdownDivider } from './BsDropdownDivider.vue';
|
|
4
4
|
export { default as BsDropdownHeader } from './BsDropdownHeader.vue';
|
|
5
|
-
export type { DropdownSelectEventDetail } from '@mintplayer/
|
|
5
|
+
export type { DropdownSelectEventDetail } from '@mintplayer/ui-core/dropdown-menu';
|