@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/accordion/index.mjs
CHANGED
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { Fragment as e, cloneVNode as t, computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o,
|
|
2
|
-
import "@mintplayer/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"is-active",
|
|
7
|
-
"disabled"
|
|
8
|
-
], p = /* @__PURE__ */ o({
|
|
9
|
-
inheritAttrs: !1,
|
|
1
|
+
import { Fragment as e, cloneVNode as t, computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, guardReactiveProps as s, inject as c, mergeProps as l, normalizeProps as u, openBlock as d, provide as f, renderSlot as p, unref as m, useId as h, useSlots as g, useTemplateRef as _ } from "vue";
|
|
2
|
+
import { installLightStyles as v } from "@mintplayer/ui-core/scoped-styles";
|
|
3
|
+
import { ACCORDION_SCOPE as y, accordionKeydown as b, accordionScopedStyles as x, accordionSummaryClick as S, accordionToggled as C, connectAccordion as w, connectAccordionTab as T } from "@mintplayer/ui-core/accordion";
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/accordion/src/accordion-context.ts
|
|
5
|
+
var E = Symbol("bs-accordion"), D = ["open"], O = /* @__PURE__ */ o({
|
|
10
6
|
__name: "BsAccordionItem",
|
|
11
7
|
props: {
|
|
12
8
|
index: {},
|
|
13
9
|
isActive: { type: Boolean },
|
|
14
10
|
disabled: { type: Boolean }
|
|
15
11
|
},
|
|
16
|
-
setup(
|
|
17
|
-
let a =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
setup(e) {
|
|
13
|
+
let t = e, a = c(E, null), o = n(() => t.index ?? 0), f = n(() => T(a?.options.value ?? { id: "bs-accordion" }, o.value, { disabled: t.disabled }));
|
|
14
|
+
function m(e) {
|
|
15
|
+
S(e, !!t.disabled);
|
|
16
|
+
}
|
|
17
|
+
function h(e) {
|
|
18
|
+
let n = a?.root.value;
|
|
19
|
+
n && b(n, e, o.value, !!t.disabled);
|
|
20
|
+
}
|
|
21
|
+
return (t, n) => (d(), r("details", l(f.value.item, { open: e.isActive }), [i("summary", l(f.value.summary, {
|
|
22
|
+
onClick: m,
|
|
23
|
+
onKeydown: h
|
|
24
|
+
}), [p(t.$slots, "header")], 16), i("div", u(s(f.value.content)), [p(t.$slots, "default")], 16)], 16, D));
|
|
27
25
|
}
|
|
28
|
-
}),
|
|
29
|
-
inheritAttrs: !1,
|
|
26
|
+
}), k = /* @__PURE__ */ o({
|
|
30
27
|
__name: "BsAccordion",
|
|
31
28
|
props: {
|
|
32
29
|
multi: { type: Boolean },
|
|
@@ -34,23 +31,35 @@ var d = ["slot"], f = [
|
|
|
34
31
|
},
|
|
35
32
|
emits: ["tabToggle"],
|
|
36
33
|
setup(i, { emit: o }) {
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
let s = i, c = o;
|
|
35
|
+
v(y, x);
|
|
36
|
+
let u = `bs-accordion-${h()}`, p = n(() => ({
|
|
37
|
+
id: u,
|
|
38
|
+
multi: s.multi,
|
|
39
|
+
highlightActiveTab: s.highlightActiveTab
|
|
40
|
+
})), b = _("root");
|
|
41
|
+
f(E, {
|
|
42
|
+
options: p,
|
|
43
|
+
root: b
|
|
44
|
+
});
|
|
45
|
+
let S = g();
|
|
46
|
+
function T(t) {
|
|
47
|
+
return t.flatMap((t) => t.type === e && Array.isArray(t.children) ? T(t.children) : [t]);
|
|
40
48
|
}
|
|
41
|
-
let
|
|
49
|
+
let D = n(() => {
|
|
42
50
|
let e = 0;
|
|
43
|
-
return
|
|
44
|
-
}),
|
|
45
|
-
function
|
|
46
|
-
|
|
51
|
+
return T(S.default?.() ?? []).map((n) => n.type === O ? t(n, { index: e++ }) : n);
|
|
52
|
+
}), k = () => D.value;
|
|
53
|
+
function A(e) {
|
|
54
|
+
if (!b.value) return;
|
|
55
|
+
let t = C(b.value, e, !!s.multi);
|
|
56
|
+
t && c("tabToggle", t);
|
|
47
57
|
}
|
|
48
|
-
return (e, t) => (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}), [a(_)], 16, m));
|
|
58
|
+
return (e, t) => (d(), r("div", l({
|
|
59
|
+
ref_key: "root",
|
|
60
|
+
ref: b
|
|
61
|
+
}, m(w)(p.value), { onToggleCapture: A }), [a(k)], 16));
|
|
53
62
|
}
|
|
54
63
|
});
|
|
55
64
|
//#endregion
|
|
56
|
-
export {
|
|
65
|
+
export { k as BsAccordion, O as BsAccordionItem };
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccordionTabToggle } from '@mintplayer/ui-core/accordion';
|
|
2
|
+
/**
|
|
3
|
+
* `BsAccordion` — Bootstrap accordion on native `<details name>` (#437).
|
|
4
|
+
* Renders the markup of `@mintplayer/ui-core/accordion`, so the server HTML is
|
|
5
|
+
* the working accordion with JavaScript off.
|
|
6
|
+
*/
|
|
2
7
|
type __VLS_Props = {
|
|
3
|
-
/** Allow several tabs to stay open at once
|
|
8
|
+
/** Allow several tabs to stay open at once. */
|
|
4
9
|
multi?: boolean;
|
|
5
10
|
/** Paint the open header with the Bootstrap active background. */
|
|
6
11
|
highlightActiveTab?: boolean;
|
|
7
12
|
};
|
|
8
13
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
-
tabToggle: (
|
|
14
|
+
tabToggle: (change: AccordionTabToggle) => any;
|
|
10
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onTabToggle?: ((
|
|
12
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
+
onTabToggle?: ((change: AccordionTabToggle) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
root: HTMLDivElement;
|
|
19
|
+
}, HTMLDivElement>;
|
|
13
20
|
export default _default;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One tab: a native `<details>` row of the parent `BsAccordion`.
|
|
3
|
+
*
|
|
4
|
+
* `index` is injected by the parent; pass it explicitly only when items are
|
|
5
|
+
* not direct children of the accordion. `isActive` is written to the row only
|
|
6
|
+
* when it changes, so a user toggle stands — follow it with `@tab-toggle`.
|
|
7
|
+
*/
|
|
1
8
|
type __VLS_Props = {
|
|
2
9
|
index?: number;
|
|
3
10
|
isActive?: boolean;
|
|
@@ -10,10 +17,10 @@ declare function __VLS_template(): {
|
|
|
10
17
|
default?(_: {}): any;
|
|
11
18
|
};
|
|
12
19
|
refs: {};
|
|
13
|
-
rootEl:
|
|
20
|
+
rootEl: HTMLDetailsElement;
|
|
14
21
|
};
|
|
15
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
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, {},
|
|
23
|
+
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, {}, HTMLDetailsElement>;
|
|
17
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
25
|
export default _default;
|
|
19
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AccordionOptions } from '@mintplayer/ui-core/accordion';
|
|
2
|
+
import { InjectionKey, Ref, ShallowRef } from 'vue';
|
|
3
|
+
/** What a `BsAccordion` hands its items: the core options and its root element. */
|
|
4
|
+
export interface AccordionContext {
|
|
5
|
+
readonly options: Ref<AccordionOptions>;
|
|
6
|
+
readonly root: Readonly<ShallowRef<HTMLDivElement | null>>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ACCORDION_CONTEXT: InjectionKey<AccordionContext>;
|
package/accordion/src/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as BsAccordion } from './BsAccordion.vue';
|
|
2
2
|
export { default as BsAccordionItem } from './BsAccordionItem.vue';
|
|
3
|
-
export type {
|
|
3
|
+
export type { AccordionTabToggle } from '@mintplayer/ui-core/accordion';
|
package/calendar/index.mjs
CHANGED
|
@@ -1,29 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
__name: "
|
|
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 { calendarCore as m, calendarScopedStyles as h } from "@mintplayer/ui-core/calendar";
|
|
5
|
+
//#region libs/mintplayer-vue-bootstrap/calendar/src/generated/calendar.view.generated.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var g = { "data-mps": "calendar" }, _ = /* @__PURE__ */ o({
|
|
7
|
+
__name: "calendar.view.generated",
|
|
8
|
+
props: { view: {} },
|
|
9
|
+
setup(e) {
|
|
10
|
+
return (n, o) => (c(), i("div", s({
|
|
11
|
+
"data-mps": "calendar",
|
|
12
|
+
ref: "root"
|
|
13
|
+
}, e.view.root), [a("div", s({ "data-mps": "calendar" }, e.view.nav), [
|
|
14
|
+
a("button", s({ "data-mps": "calendar" }, e.view.previous), null, 16),
|
|
15
|
+
a("span", s({ "data-mps": "calendar" }, e.view.monthLabel), u(e.view.monthText), 17),
|
|
16
|
+
a("button", s({ "data-mps": "calendar" }, e.view.next), null, 16)
|
|
17
|
+
], 16), a("table", s({ "data-mps": "calendar" }, e.view.grid), [a("tbody", g, [a("tr", s({ "data-mps": "calendar" }, e.view.headRow), [a("th", s({ "data-mps": "calendar" }, e.view.weekHeader), [a("span", s({ "data-mps": "calendar" }, e.view.weekHeaderText), u(e.view.weekLabel), 17)], 16), (c(!0), i(t, null, l(e.view.weekdays, (e) => (c(), i("th", s({
|
|
18
|
+
"data-mps": "calendar",
|
|
19
|
+
key: e.key
|
|
20
|
+
}, { ref_for: !0 }, e.bag), u(e.text), 17))), 128))], 16), (c(!0), i(t, null, l(e.view.weeks, (e) => (c(), i("tr", s({
|
|
21
|
+
"data-mps": "calendar",
|
|
22
|
+
key: e.key
|
|
23
|
+
}, { ref_for: !0 }, e.row), [a("th", s({ "data-mps": "calendar" }, { ref_for: !0 }, e.header), u(e.number), 17), (c(!0), i(t, null, l(e.cells, (e) => (c(), i("td", s({
|
|
24
|
+
"data-mps": "calendar",
|
|
25
|
+
key: e.key
|
|
26
|
+
}, { ref_for: !0 }, e.cell), [e.content ? (c(), i("span", s({
|
|
27
|
+
key: 0,
|
|
28
|
+
"data-mps": "calendar"
|
|
29
|
+
}, { ref_for: !0 }, e.content), u(e.text), 17)) : r("", !0)], 16))), 128))], 16))), 128))])], 16)], 16));
|
|
30
|
+
}
|
|
31
|
+
}), v = /* @__PURE__ */ o({
|
|
32
|
+
name: "BsCalendar",
|
|
33
|
+
__name: "BsCalendar.generated",
|
|
8
34
|
props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
35
|
+
selectedDate: {
|
|
36
|
+
type: null,
|
|
37
|
+
default: null
|
|
38
|
+
},
|
|
39
|
+
currentMonth: {
|
|
40
|
+
type: null,
|
|
41
|
+
default: null
|
|
42
|
+
},
|
|
43
|
+
min: {
|
|
44
|
+
type: null,
|
|
45
|
+
default: null
|
|
46
|
+
},
|
|
47
|
+
max: {
|
|
48
|
+
type: null,
|
|
49
|
+
default: null
|
|
50
|
+
},
|
|
51
|
+
disableDateFn: {
|
|
52
|
+
type: null,
|
|
53
|
+
default: null
|
|
54
|
+
},
|
|
55
|
+
firstDayOfWeek: {
|
|
56
|
+
type: Number,
|
|
57
|
+
default: 1
|
|
58
|
+
},
|
|
59
|
+
locale: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: null
|
|
62
|
+
},
|
|
63
|
+
labels: {
|
|
64
|
+
type: null,
|
|
65
|
+
default: null
|
|
21
66
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
67
|
+
},
|
|
68
|
+
emits: [
|
|
69
|
+
"selecteddatechange",
|
|
70
|
+
"currentmonthchange",
|
|
71
|
+
"update:selectedDate",
|
|
72
|
+
"update:currentMonth"
|
|
73
|
+
],
|
|
74
|
+
setup(t, { expose: r, emit: i }) {
|
|
75
|
+
let a = t, o = i;
|
|
76
|
+
p("calendar", h);
|
|
77
|
+
let l = f("template"), u = e(m, () => ({
|
|
78
|
+
selectedDate: a.selectedDate,
|
|
79
|
+
currentMonth: a.currentMonth,
|
|
80
|
+
min: a.min,
|
|
81
|
+
max: a.max,
|
|
82
|
+
disableDateFn: a.disableDateFn,
|
|
83
|
+
firstDayOfWeek: a.firstDayOfWeek,
|
|
84
|
+
locale: a.locale,
|
|
85
|
+
labels: a.labels
|
|
86
|
+
}), {
|
|
87
|
+
idPrefix: "bs-calendar",
|
|
88
|
+
root: () => l.value?.$el,
|
|
89
|
+
emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
|
|
90
|
+
models: ["selectedDate", "currentMonth"]
|
|
91
|
+
}), g = u.props;
|
|
92
|
+
return r({
|
|
93
|
+
previousMonth: (...e) => u.call("previousMonth", e),
|
|
94
|
+
nextMonth: (...e) => u.call("nextMonth", e),
|
|
95
|
+
select: (...e) => u.call("select", e),
|
|
96
|
+
focusGrid: (...e) => u.call("focusGrid", e)
|
|
97
|
+
}), (e, t) => (c(), n(_, s({
|
|
98
|
+
ref_key: "template",
|
|
99
|
+
ref: l
|
|
100
|
+
}, d(g)), null, 16));
|
|
26
101
|
}
|
|
27
102
|
});
|
|
28
103
|
//#endregion
|
|
29
|
-
export {
|
|
104
|
+
export { v as BsCalendar };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CalendarInputs, CalendarMethods } from '@mintplayer/ui-core/calendar';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
selectedDate: {
|
|
5
|
+
type: PropType<CalendarInputs["selectedDate"]>;
|
|
6
|
+
default: null;
|
|
7
|
+
};
|
|
8
|
+
currentMonth: {
|
|
9
|
+
type: PropType<CalendarInputs["currentMonth"]>;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
min: {
|
|
13
|
+
type: PropType<CalendarInputs["min"]>;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
max: {
|
|
17
|
+
type: PropType<CalendarInputs["max"]>;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
disableDateFn: {
|
|
21
|
+
type: PropType<CalendarInputs["disableDateFn"]>;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
firstDayOfWeek: {
|
|
25
|
+
type: PropType<CalendarInputs["firstDayOfWeek"]>;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
locale: {
|
|
29
|
+
type: PropType<CalendarInputs["locale"]>;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
labels: {
|
|
33
|
+
type: PropType<CalendarInputs["labels"]>;
|
|
34
|
+
default: null;
|
|
35
|
+
};
|
|
36
|
+
}>, {
|
|
37
|
+
/** Show the previous month. */
|
|
38
|
+
previousMonth: () => ReturnType<CalendarMethods["previousMonth"]>;
|
|
39
|
+
/** Show the next month. */
|
|
40
|
+
nextMonth: () => ReturnType<CalendarMethods["nextMonth"]>;
|
|
41
|
+
/** Select a day (ignored when disabled), showing its month. */
|
|
42
|
+
select: (date: Date) => ReturnType<CalendarMethods["select"]>;
|
|
43
|
+
/** Focus the roving day cell. */
|
|
44
|
+
focusGrid: () => ReturnType<CalendarMethods["focusGrid"]>;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
selecteddatechange: (detail: Date) => any;
|
|
47
|
+
currentmonthchange: (detail: Date) => any;
|
|
48
|
+
"update:selectedDate": (value: Date | null) => any;
|
|
49
|
+
"update:currentMonth": (value: Date | null) => any;
|
|
50
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
+
selectedDate: {
|
|
52
|
+
type: PropType<CalendarInputs["selectedDate"]>;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
currentMonth: {
|
|
56
|
+
type: PropType<CalendarInputs["currentMonth"]>;
|
|
57
|
+
default: null;
|
|
58
|
+
};
|
|
59
|
+
min: {
|
|
60
|
+
type: PropType<CalendarInputs["min"]>;
|
|
61
|
+
default: null;
|
|
62
|
+
};
|
|
63
|
+
max: {
|
|
64
|
+
type: PropType<CalendarInputs["max"]>;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
disableDateFn: {
|
|
68
|
+
type: PropType<CalendarInputs["disableDateFn"]>;
|
|
69
|
+
default: null;
|
|
70
|
+
};
|
|
71
|
+
firstDayOfWeek: {
|
|
72
|
+
type: PropType<CalendarInputs["firstDayOfWeek"]>;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
locale: {
|
|
76
|
+
type: PropType<CalendarInputs["locale"]>;
|
|
77
|
+
default: null;
|
|
78
|
+
};
|
|
79
|
+
labels: {
|
|
80
|
+
type: PropType<CalendarInputs["labels"]>;
|
|
81
|
+
default: null;
|
|
82
|
+
};
|
|
83
|
+
}>> & Readonly<{
|
|
84
|
+
onSelecteddatechange?: ((detail: Date) => any) | undefined;
|
|
85
|
+
onCurrentmonthchange?: ((detail: Date) => any) | undefined;
|
|
86
|
+
"onUpdate:selectedDate"?: ((value: Date | null) => any) | undefined;
|
|
87
|
+
"onUpdate:currentMonth"?: ((value: Date | null) => any) | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
min: Date | null;
|
|
90
|
+
max: Date | null;
|
|
91
|
+
disableDateFn: ((date: Date) => boolean) | null;
|
|
92
|
+
firstDayOfWeek: import('@mintplayer/ui-core/calendar').FirstDayOfWeek;
|
|
93
|
+
selectedDate: Date | null;
|
|
94
|
+
currentMonth: Date | null;
|
|
95
|
+
locale: string | null;
|
|
96
|
+
labels: Partial<import('@mintplayer/ui-core/calendar').CalendarLabels> | null;
|
|
97
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
98
|
+
template: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
99
|
+
view: import('@mintplayer/ui-core/calendar').CalendarView;
|
|
100
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
101
|
+
root: HTMLDivElement;
|
|
102
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
103
|
+
P: {};
|
|
104
|
+
B: {};
|
|
105
|
+
D: {};
|
|
106
|
+
C: {};
|
|
107
|
+
M: {};
|
|
108
|
+
Defaults: {};
|
|
109
|
+
}, Readonly<{
|
|
110
|
+
view: import('@mintplayer/ui-core/calendar').CalendarView;
|
|
111
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}> | null;
|
|
112
|
+
}, HTMLDivElement>;
|
|
113
|
+
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CalendarView } from '@mintplayer/ui-core/calendar';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
summaryFormatter?: (series: TrendSeries[]) => string | undefined;
|
|
3
|
+
view: CalendarView;
|
|
5
4
|
};
|
|
6
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, {
|
|
7
|
-
|
|
8
|
-
},
|
|
6
|
+
root: HTMLDivElement;
|
|
7
|
+
}, HTMLDivElement>;
|
|
9
8
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsCalendar } from './BsCalendar.generated.vue';
|
package/calendar/src/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './generated';
|
|
2
|
+
export type { CalendarLabels, FirstDayOfWeek } from '@mintplayer/ui-core/calendar';
|
package/card/index.mjs
CHANGED
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i,
|
|
2
|
-
import {
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s } from "vue";
|
|
2
|
+
import { capColorClasses as c, cardColorClasses as l, cardImgClass as u } from "@mintplayer/ui-core/card";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region libs/mintplayer-vue-bootstrap/card/src/BsCard.vue
|
|
5
|
-
var
|
|
5
|
+
var d = /* @__PURE__ */ i({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "BsCard",
|
|
8
|
+
props: {
|
|
9
|
+
color: {},
|
|
10
|
+
outline: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
setup(e) {
|
|
9
|
-
|
|
16
|
+
let r = e, i = t(() => ["card", ...l(r.color, r.outline)]);
|
|
17
|
+
return (e, t) => (o(), n("div", a({ class: i.value }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
10
18
|
}
|
|
11
|
-
}),
|
|
19
|
+
}), f = /* @__PURE__ */ i({
|
|
12
20
|
inheritAttrs: !1,
|
|
13
21
|
__name: "BsCardBody",
|
|
14
22
|
setup(e) {
|
|
15
|
-
return (e, t) => (
|
|
23
|
+
return (e, t) => (o(), n("div", a({ class: "card-body" }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
16
24
|
}
|
|
17
|
-
}),
|
|
25
|
+
}), p = /* @__PURE__ */ i({
|
|
18
26
|
inheritAttrs: !1,
|
|
19
27
|
__name: "BsCardFooter",
|
|
20
28
|
props: { color: {} },
|
|
21
29
|
setup(e) {
|
|
22
|
-
|
|
30
|
+
let r = e, i = t(() => ["card-footer", ...c(r.color)]);
|
|
31
|
+
return (e, t) => (o(), n("div", a({ class: i.value }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
23
32
|
}
|
|
24
|
-
}),
|
|
33
|
+
}), m = /* @__PURE__ */ i({
|
|
25
34
|
inheritAttrs: !1,
|
|
26
35
|
__name: "BsCardGroup",
|
|
27
36
|
setup(e) {
|
|
28
|
-
return (e, t) => (
|
|
37
|
+
return (e, t) => (o(), n("div", a({ class: "card-group" }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
29
38
|
}
|
|
30
|
-
}),
|
|
39
|
+
}), h = /* @__PURE__ */ i({
|
|
31
40
|
inheritAttrs: !1,
|
|
32
41
|
__name: "BsCardHeader",
|
|
33
|
-
props: {
|
|
34
|
-
color: {},
|
|
35
|
-
navStyle: {}
|
|
36
|
-
},
|
|
42
|
+
props: { color: {} },
|
|
37
43
|
setup(e) {
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
await s(), r.value && m(r.value, t.navStyle ?? null);
|
|
41
|
-
}
|
|
42
|
-
return l(i), p(() => t.navStyle, i), (t, i) => (u(), n("div", o({
|
|
43
|
-
ref_key: "el",
|
|
44
|
-
ref: r,
|
|
45
|
-
class: ["card-header", e.color ? "text-bg-" + e.color : null]
|
|
46
|
-
}, t.$attrs), [f(t.$slots, "default")], 16));
|
|
44
|
+
let r = e, i = t(() => ["card-header", ...c(r.color)]);
|
|
45
|
+
return (e, t) => (o(), n("div", a({ class: i.value }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
47
46
|
}
|
|
48
|
-
}),
|
|
47
|
+
}), g = ["src", "alt"], _ = { class: "card-img-overlay" }, v = ["src", "alt"], y = /* @__PURE__ */ i({
|
|
49
48
|
inheritAttrs: !1,
|
|
50
49
|
__name: "BsCardImg",
|
|
51
50
|
props: {
|
|
@@ -54,52 +53,46 @@ var h = /* @__PURE__ */ i({
|
|
|
54
53
|
alt: {}
|
|
55
54
|
},
|
|
56
55
|
setup(i) {
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
case "bottom": return "card-img-bottom";
|
|
60
|
-
case "overlay": return "card-img";
|
|
61
|
-
default: return "card-img-top";
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
return (t, a) => i.position === "overlay" ? (u(), n(e, { key: 0 }, [r("img", o({
|
|
56
|
+
let c = i, l = t(() => u(c.position));
|
|
57
|
+
return (t, c) => i.position === "overlay" ? (o(), n(e, { key: 0 }, [r("img", a({
|
|
65
58
|
class: "card-img",
|
|
66
59
|
src: i.src,
|
|
67
60
|
alt: i.alt ?? ""
|
|
68
|
-
}, t.$attrs), null, 16,
|
|
61
|
+
}, t.$attrs), null, 16, g), r("div", _, [s(t.$slots, "default")])], 64)) : (o(), n("img", a({
|
|
69
62
|
key: 1,
|
|
70
|
-
class:
|
|
63
|
+
class: l.value,
|
|
71
64
|
src: i.src,
|
|
72
65
|
alt: i.alt ?? ""
|
|
73
|
-
}, t.$attrs), null, 16,
|
|
66
|
+
}, t.$attrs), null, 16, v));
|
|
74
67
|
}
|
|
75
|
-
}),
|
|
68
|
+
}), b = ["href"], x = /* @__PURE__ */ i({
|
|
76
69
|
inheritAttrs: !1,
|
|
77
70
|
__name: "BsCardLink",
|
|
78
71
|
props: { href: {} },
|
|
79
72
|
setup(e) {
|
|
80
|
-
return (t, r) => (
|
|
73
|
+
return (t, r) => (o(), n("a", a({
|
|
81
74
|
class: "card-link",
|
|
82
75
|
href: e.href
|
|
83
|
-
}, t.$attrs), [
|
|
76
|
+
}, t.$attrs), [s(t.$slots, "default")], 16, b));
|
|
84
77
|
}
|
|
85
|
-
}),
|
|
78
|
+
}), S = /* @__PURE__ */ i({
|
|
86
79
|
inheritAttrs: !1,
|
|
87
80
|
__name: "BsCardSubtitle",
|
|
88
81
|
setup(e) {
|
|
89
|
-
return (e, t) => (
|
|
82
|
+
return (e, t) => (o(), n("div", a({ class: "card-subtitle" }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
90
83
|
}
|
|
91
|
-
}),
|
|
84
|
+
}), C = /* @__PURE__ */ i({
|
|
92
85
|
inheritAttrs: !1,
|
|
93
86
|
__name: "BsCardText",
|
|
94
87
|
setup(e) {
|
|
95
|
-
return (e, t) => (
|
|
88
|
+
return (e, t) => (o(), n("div", a({ class: "card-text" }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
96
89
|
}
|
|
97
|
-
}),
|
|
90
|
+
}), w = /* @__PURE__ */ i({
|
|
98
91
|
inheritAttrs: !1,
|
|
99
92
|
__name: "BsCardTitle",
|
|
100
93
|
setup(e) {
|
|
101
|
-
return (e, t) => (
|
|
94
|
+
return (e, t) => (o(), n("div", a({ class: "card-title" }, e.$attrs), [s(e.$slots, "default")], 16));
|
|
102
95
|
}
|
|
103
96
|
});
|
|
104
97
|
//#endregion
|
|
105
|
-
export {
|
|
98
|
+
export { d as BsCard, f as BsCardBody, p as BsCardFooter, m as BsCardGroup, h as BsCardHeader, y as BsCardImg, x as BsCardLink, S as BsCardSubtitle, C as BsCardText, w as BsCardTitle };
|
package/card/src/BsCard.vue.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { CardColor } from '@mintplayer/ui-core/card';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
color?: CardColor;
|
|
4
|
+
outline?: boolean;
|
|
5
|
+
};
|
|
1
6
|
declare function __VLS_template(): {
|
|
2
7
|
attrs: Partial<{}>;
|
|
3
8
|
slots: {
|
|
@@ -7,7 +12,9 @@ declare function __VLS_template(): {
|
|
|
7
12
|
rootEl: any;
|
|
8
13
|
};
|
|
9
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
outline: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
19
|
export default _default;
|
|
13
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
+
import { CardColor } from '@mintplayer/ui-core/card';
|
|
1
2
|
type __VLS_Props = {
|
|
2
|
-
color?:
|
|
3
|
-
navStyle?: 'tabs' | 'pills';
|
|
3
|
+
color?: CardColor;
|
|
4
4
|
};
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
attrs: Partial<{}>;
|
|
7
7
|
slots: {
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
};
|
|
10
|
-
refs: {
|
|
11
|
-
el: HTMLDivElement;
|
|
12
|
-
};
|
|
10
|
+
refs: {};
|
|
13
11
|
rootEl: any;
|
|
14
12
|
};
|
|
15
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
-
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, {
|
|
17
|
-
el: HTMLDivElement;
|
|
18
|
-
}, any>;
|
|
14
|
+
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, {}, any>;
|
|
19
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
16
|
export default _default;
|
|
21
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|