@mintplayer/vue-bootstrap 3.15.0 → 3.16.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.
@@ -0,0 +1,45 @@
1
+ import { defineComponent as y, useModel as p, ref as f, onMounted as h, watch as e, openBlock as v, createElementBlock as F, mergeProps as C, mergeModels as I } from "vue";
2
+ import "@mintplayer/web-components/charts/hierarchy";
3
+ const _ = /* @__PURE__ */ y({
4
+ inheritAttrs: !1,
5
+ __name: "BsHierarchyChart",
6
+ props: /* @__PURE__ */ I({
7
+ data: {},
8
+ layout: {},
9
+ loadChildren: { type: Function },
10
+ tooltipFormatter: { type: Function },
11
+ labelFormatter: { type: Function }
12
+ }, {
13
+ rootId: { default: void 0 },
14
+ rootIdModifiers: {}
15
+ }),
16
+ emits: ["update:rootId"],
17
+ setup(l) {
18
+ const o = l, a = p(l, "rootId"), t = f(null), n = () => {
19
+ t.value && (t.value.data = o.data);
20
+ }, i = () => {
21
+ t.value && o.layout && (t.value.layout = o.layout);
22
+ }, u = () => {
23
+ t.value && (t.value.rootId = a.value);
24
+ }, c = () => {
25
+ t.value && (t.value.loadChildren = o.loadChildren);
26
+ }, d = () => {
27
+ t.value && (t.value.tooltipFormatter = o.tooltipFormatter);
28
+ }, s = () => {
29
+ t.value && (t.value.labelFormatter = o.labelFormatter);
30
+ };
31
+ h(() => {
32
+ n(), i(), u(), c(), d(), s();
33
+ }), e(() => o.data, n), e(() => o.layout, i), e(a, u), e(() => o.loadChildren, c), e(() => o.tooltipFormatter, d), e(() => o.labelFormatter, s);
34
+ function m(r) {
35
+ a.value = r.target.rootId;
36
+ }
37
+ return (r, b) => (v(), F("mp-hierarchy-chart", C({
38
+ ref_key: "el",
39
+ ref: t
40
+ }, r.$attrs, { onHierarchyZoom: m }), null, 16));
41
+ }
42
+ });
43
+ export {
44
+ _ as BsHierarchyChart
45
+ };
@@ -0,0 +1,19 @@
1
+ import { HierarchyChartLayout, HierarchyChildrenLoader, HierarchyNode, HierarchyNodeFormatter } from '@mintplayer/web-components/charts/hierarchy';
2
+ type __VLS_Props = {
3
+ data?: HierarchyNode;
4
+ layout?: HierarchyChartLayout;
5
+ loadChildren?: HierarchyChildrenLoader;
6
+ tooltipFormatter?: HierarchyNodeFormatter;
7
+ labelFormatter?: HierarchyNodeFormatter;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ 'rootId'?: string | undefined;
11
+ } & __VLS_Props;
12
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:rootId": (value: string | undefined) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:rootId"?: ((value: string | undefined) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
17
+ el: unknown;
18
+ }, any>;
19
+ export default _default;
@@ -0,0 +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';
@@ -0,0 +1,26 @@
1
+ import { defineComponent as m, ref as p, onMounted as i, watch as o, openBlock as l, createElementBlock as u, mergeProps as c } from "vue";
2
+ import "@mintplayer/web-components/charts/sparkline";
3
+ const F = /* @__PURE__ */ m({
4
+ inheritAttrs: !1,
5
+ __name: "BsSparkline",
6
+ props: {
7
+ points: {},
8
+ summaryFormatter: { type: Function }
9
+ },
10
+ setup(s) {
11
+ const t = s, e = p(null), r = () => {
12
+ e.value && (e.value.points = t.points ?? []);
13
+ }, n = () => {
14
+ e.value && (e.value.summaryFormatter = t.summaryFormatter);
15
+ };
16
+ return i(() => {
17
+ r(), n();
18
+ }), o(() => t.points, r), o(() => t.summaryFormatter, n), (a, f) => (l(), u("mp-sparkline", c({
19
+ ref_key: "el",
20
+ ref: e
21
+ }, a.$attrs), null, 16));
22
+ }
23
+ });
24
+ export {
25
+ F as BsSparkline
26
+ };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ points?: (number | null)[];
3
+ summaryFormatter?: (points: (number | null)[]) => string | undefined;
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
+ el: unknown;
7
+ }, any>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as BsSparkline } from './BsSparkline.vue';
@@ -0,0 +1,26 @@
1
+ import { defineComponent as m, ref as c, onMounted as u, watch as n, openBlock as i, createElementBlock as l, mergeProps as p } from "vue";
2
+ import "@mintplayer/web-components/charts/trend";
3
+ const F = /* @__PURE__ */ m({
4
+ inheritAttrs: !1,
5
+ __name: "BsTrendChart",
6
+ props: {
7
+ series: {},
8
+ summaryFormatter: { type: Function }
9
+ },
10
+ setup(a) {
11
+ const r = a, e = c(null), t = () => {
12
+ e.value && (e.value.series = r.series ?? []);
13
+ }, s = () => {
14
+ e.value && (e.value.summaryFormatter = r.summaryFormatter);
15
+ };
16
+ return u(() => {
17
+ t(), s();
18
+ }), n(() => r.series, t), n(() => r.summaryFormatter, s), (o, f) => (i(), l("mp-trend-chart", p({
19
+ ref_key: "el",
20
+ ref: e
21
+ }, o.$attrs), null, 16));
22
+ }
23
+ });
24
+ export {
25
+ F as BsTrendChart
26
+ };
@@ -0,0 +1,9 @@
1
+ import { TrendSeries } from '@mintplayer/web-components/charts/trend';
2
+ type __VLS_Props = {
3
+ series?: TrendSeries[];
4
+ summaryFormatter?: (series: TrendSeries[]) => string | undefined;
5
+ };
6
+ 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
+ el: unknown;
8
+ }, any>;
9
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as BsTrendChart } from './BsTrendChart.vue';
2
+ export type { TrendSeries, TrendPoint, TrendPointEventDetail, TrendHoverEventDetail, } from '@mintplayer/web-components/charts/trend';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/vue-bootstrap",
3
- "version": "3.15.0",
3
+ "version": "3.16.0",
4
4
  "description": "Vue 3.5 SFC adapters around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed Vue components with v-model support for input WCs.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,7 +25,155 @@
25
25
  "types": "./src/index.d.ts",
26
26
  "import": "./index.mjs"
27
27
  },
28
- "./package.json": "./package.json"
28
+ "./package.json": "./package.json",
29
+ "./accordion": {
30
+ "types": "./accordion/src/index.d.ts",
31
+ "import": "./accordion/index.mjs"
32
+ },
33
+ "./calendar": {
34
+ "types": "./calendar/src/index.d.ts",
35
+ "import": "./calendar/index.mjs"
36
+ },
37
+ "./card": {
38
+ "types": "./card/src/index.d.ts",
39
+ "import": "./card/index.mjs"
40
+ },
41
+ "./carousel": {
42
+ "types": "./carousel/src/index.d.ts",
43
+ "import": "./carousel/index.mjs"
44
+ },
45
+ "./charts/hierarchy": {
46
+ "types": "./charts/hierarchy/src/index.d.ts",
47
+ "import": "./charts/hierarchy/index.mjs"
48
+ },
49
+ "./charts/sparkline": {
50
+ "types": "./charts/sparkline/src/index.d.ts",
51
+ "import": "./charts/sparkline/index.mjs"
52
+ },
53
+ "./charts/trend": {
54
+ "types": "./charts/trend/src/index.d.ts",
55
+ "import": "./charts/trend/index.mjs"
56
+ },
57
+ "./checkbox": {
58
+ "types": "./checkbox/src/index.d.ts",
59
+ "import": "./checkbox/index.mjs"
60
+ },
61
+ "./code-snippet": {
62
+ "types": "./code-snippet/src/index.d.ts",
63
+ "import": "./code-snippet/index.mjs"
64
+ },
65
+ "./datatable": {
66
+ "types": "./datatable/src/index.d.ts",
67
+ "import": "./datatable/index.mjs"
68
+ },
69
+ "./datepicker": {
70
+ "types": "./datepicker/src/index.d.ts",
71
+ "import": "./datepicker/index.mjs"
72
+ },
73
+ "./datetime-picker": {
74
+ "types": "./datetime-picker/src/index.d.ts",
75
+ "import": "./datetime-picker/index.mjs"
76
+ },
77
+ "./dock": {
78
+ "types": "./dock/src/index.d.ts",
79
+ "import": "./dock/index.mjs"
80
+ },
81
+ "./dropdown-menu": {
82
+ "types": "./dropdown-menu/src/index.d.ts",
83
+ "import": "./dropdown-menu/index.mjs"
84
+ },
85
+ "./file-manager": {
86
+ "types": "./file-manager/src/index.d.ts",
87
+ "import": "./file-manager/index.mjs"
88
+ },
89
+ "./input-group": {
90
+ "types": "./input-group/src/index.d.ts",
91
+ "import": "./input-group/index.mjs"
92
+ },
93
+ "./multi-range": {
94
+ "types": "./multi-range/src/index.d.ts",
95
+ "import": "./multi-range/index.mjs"
96
+ },
97
+ "./navbar": {
98
+ "types": "./navbar/src/index.d.ts",
99
+ "import": "./navbar/index.mjs"
100
+ },
101
+ "./otp-input": {
102
+ "types": "./otp-input/src/index.d.ts",
103
+ "import": "./otp-input/index.mjs"
104
+ },
105
+ "./pagination": {
106
+ "types": "./pagination/src/index.d.ts",
107
+ "import": "./pagination/index.mjs"
108
+ },
109
+ "./phone-input": {
110
+ "types": "./phone-input/src/index.d.ts",
111
+ "import": "./phone-input/index.mjs"
112
+ },
113
+ "./query-builder": {
114
+ "types": "./query-builder/src/index.d.ts",
115
+ "import": "./query-builder/index.mjs"
116
+ },
117
+ "./radio": {
118
+ "types": "./radio/src/index.d.ts",
119
+ "import": "./radio/index.mjs"
120
+ },
121
+ "./radio-group": {
122
+ "types": "./radio-group/src/index.d.ts",
123
+ "import": "./radio-group/index.mjs"
124
+ },
125
+ "./ribbon": {
126
+ "types": "./ribbon/src/index.d.ts",
127
+ "import": "./ribbon/index.mjs"
128
+ },
129
+ "./scheduler": {
130
+ "types": "./scheduler/src/index.d.ts",
131
+ "import": "./scheduler/index.mjs"
132
+ },
133
+ "./select": {
134
+ "types": "./select/src/index.d.ts",
135
+ "import": "./select/index.mjs"
136
+ },
137
+ "./shell": {
138
+ "types": "./shell/src/index.d.ts",
139
+ "import": "./shell/index.mjs"
140
+ },
141
+ "./signature-pad": {
142
+ "types": "./signature-pad/src/index.d.ts",
143
+ "import": "./signature-pad/index.mjs"
144
+ },
145
+ "./splitter": {
146
+ "types": "./splitter/src/index.d.ts",
147
+ "import": "./splitter/index.mjs"
148
+ },
149
+ "./tab-control": {
150
+ "types": "./tab-control/src/index.d.ts",
151
+ "import": "./tab-control/index.mjs"
152
+ },
153
+ "./tile-manager": {
154
+ "types": "./tile-manager/src/index.d.ts",
155
+ "import": "./tile-manager/index.mjs"
156
+ },
157
+ "./timeline": {
158
+ "types": "./timeline/src/index.d.ts",
159
+ "import": "./timeline/index.mjs"
160
+ },
161
+ "./timepicker": {
162
+ "types": "./timepicker/src/index.d.ts",
163
+ "import": "./timepicker/index.mjs"
164
+ },
165
+ "./toggle-button": {
166
+ "types": "./toggle-button/src/index.d.ts",
167
+ "import": "./toggle-button/index.mjs"
168
+ },
169
+ "./tree-select": {
170
+ "types": "./tree-select/src/index.d.ts",
171
+ "import": "./tree-select/index.mjs"
172
+ },
173
+ "./treeview": {
174
+ "types": "./treeview/src/index.d.ts",
175
+ "import": "./treeview/index.mjs"
176
+ }
29
177
  },
30
178
  "peerDependencies": {
31
179
  "vue": "^3.5.0",
@@ -34,4 +182,4 @@
34
182
  "dependencies": {
35
183
  "tslib": "^2.3.0"
36
184
  }
37
- }
185
+ }
@@ -1,6 +1,6 @@
1
1
  import { resolveSides as x } from "@mintplayer/web-components/timeline";
2
2
  import { MpTimeline as _, MpTimelineItem as ee } from "@mintplayer/web-components/timeline";
3
- import { defineComponent as L, useSlots as M, ref as w, computed as F, onMounted as A, onBeforeUnmount as D, watch as y, onUpdated as U, openBlock as a, createElementBlock as d, mergeProps as N, Fragment as O, renderList as P, renderSlot as m, createCommentVNode as v } from "vue";
3
+ import { defineComponent as L, useSlots as M, ref as w, computed as F, onMounted as A, onBeforeUnmount as D, watch as b, onUpdated as U, openBlock as a, createElementBlock as d, mergeProps as N, Fragment as O, renderList as P, renderSlot as m, createCommentVNode as u } from "vue";
4
4
  const V = ["orientation", "align", "reverse", "selectable"], j = ["item-id", "title", "description", "time", "icon", "color", "item-class", "disabled"], q = {
5
5
  key: 0,
6
6
  slot: "marker"
@@ -29,7 +29,7 @@ const V = ["orientation", "align", "reverse", "selectable"], j = ["item-id", "ti
29
29
  },
30
30
  emits: ["item-click", "update:selection"],
31
31
  setup(s, { emit: p }) {
32
- const i = s, f = p, l = M(), S = () => !!(l.marker || l.title || l.timestamp || l.opposite || l.content), b = () => S() && !!i.items?.length, c = w(null), B = (t, o) => t.id ?? o, C = F(() => x(i.items?.length ?? 0, i.align, i.reverse)), u = (t, o) => {
32
+ const i = s, f = p, l = M(), S = () => !!(l.marker || l.title || l.timestamp || l.opposite || l.content), y = () => S() && !!i.items?.length, c = w(null), B = (t, o) => t.id ?? o, C = F(() => x(i.items?.length ?? 0, i.align, i.reverse)), v = (t, o) => {
33
33
  const e = i.items?.length ?? 0, n = i.reverse ? e - 1 - o : o;
34
34
  return {
35
35
  index: o,
@@ -49,16 +49,16 @@ const V = ["orientation", "align", "reverse", "selectable"], j = ["item-id", "ti
49
49
  );
50
50
  } else
51
51
  f("update:selection", o.selected);
52
- }, k = () => {
53
- c.value && (c.value.items = !b() && i.items ? i.items : []);
54
52
  }, h = () => {
53
+ c.value && (c.value.items = !y() && i.items ? i.items : []);
54
+ }, k = () => {
55
55
  !c.value || i.selectable === "none" || (c.value.selectedIds = (i.selection ?? []).map((t, o) => B(t, o)));
56
56
  };
57
57
  return A(() => {
58
- c.value?.addEventListener("item-click", I), c.value?.addEventListener("selection-change", $), k(), h();
58
+ c.value?.addEventListener("item-click", I), c.value?.addEventListener("selection-change", $), h(), k();
59
59
  }), D(() => {
60
60
  c.value?.removeEventListener("item-click", I), c.value?.removeEventListener("selection-change", $);
61
- }), y(() => i.items, k), U(k), y(() => i.selection, h, { deep: !0 }), y(() => i.selectable, h), (t, o) => (a(), d("mp-timeline", N({
61
+ }), b(() => i.items, h), U(h), b(() => i.selection, k, { deep: !0 }), b(() => i.selectable, k), (t, o) => (a(), d("mp-timeline", N({
62
62
  ref_key: "el",
63
63
  ref: c,
64
64
  orientation: s.orientation,
@@ -66,7 +66,7 @@ const V = ["orientation", "align", "reverse", "selectable"], j = ["item-id", "ti
66
66
  reverse: s.reverse,
67
67
  selectable: s.selectable
68
68
  }, t.$attrs), [
69
- b() ? (a(!0), d(O, { key: 0 }, P(s.items ?? [], (e, n) => (a(), d("mp-timeline-item", {
69
+ y() ? (a(!0), d(O, { key: 0 }, P(s.items ?? [], (e, n) => (a(), d("mp-timeline-item", {
70
70
  key: e.id ?? n,
71
71
  "item-id": e.id ?? void 0,
72
72
  title: e.title ?? void 0,
@@ -80,34 +80,34 @@ const V = ["orientation", "align", "reverse", "selectable"], j = ["item-id", "ti
80
80
  l.marker ? (a(), d("span", q, [
81
81
  m(t.$slots, "marker", {
82
82
  item: e,
83
- ctx: u(e, n)
83
+ ctx: v(e, n)
84
84
  })
85
- ])) : v("", !0),
85
+ ])) : u("", !0),
86
86
  l.title ? (a(), d("span", z, [
87
87
  m(t.$slots, "title", {
88
88
  item: e,
89
- ctx: u(e, n)
89
+ ctx: v(e, n)
90
90
  })
91
- ])) : v("", !0),
91
+ ])) : u("", !0),
92
92
  l.timestamp ? (a(), d("span", G, [
93
93
  m(t.$slots, "timestamp", {
94
94
  item: e,
95
- ctx: u(e, n)
95
+ ctx: v(e, n)
96
96
  })
97
- ])) : v("", !0),
97
+ ])) : u("", !0),
98
98
  l.opposite ? (a(), d("span", H, [
99
99
  m(t.$slots, "opposite", {
100
100
  item: e,
101
- ctx: u(e, n)
101
+ ctx: v(e, n)
102
102
  })
103
- ])) : v("", !0),
103
+ ])) : u("", !0),
104
104
  l.content ? (a(), d("div", J, [
105
105
  m(t.$slots, "content", {
106
106
  item: e,
107
- ctx: u(e, n)
107
+ ctx: v(e, n)
108
108
  })
109
- ])) : v("", !0)
110
- ], 8, j))), 128)) : m(t.$slots, "default", { key: 1 })
109
+ ])) : u("", !0)
110
+ ], 8, j))), 128)) : m(t.$slots, "default", {}, void 0, void 0, 1)
111
111
  ], 16, V));
112
112
  }
113
113
  }), K = ["item-id", "title", "description", "time", "icon", "color", "item-class", "disabled", "selected"], X = /* @__PURE__ */ L({