@mintplayer/react-bootstrap 19.32.0 → 19.34.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/chunks/{BsDatatable.generated-DHH6bF4T.mjs → BsDatatable.generated-D1zmdG4J.mjs} +53 -52
- package/chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs +91 -0
- package/context-menu/index.mjs +2 -2
- package/context-menu/src/generated/BsContextMenuPanel.generated.d.ts +3 -2
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/BsDatatable.generated.d.ts +3 -1
- package/dock/index.mjs +142 -53
- package/dock/src/generated/BsDockManager.generated.d.ts +11 -5
- package/dock/src/generated/dock-manager.view.generated.d.ts +5 -0
- package/dock/src/generated/dock-tray.view.generated.d.ts +13 -0
- package/dock/src/index.d.ts +2 -2
- package/dropdown/index.mjs +2 -2
- package/dropdown/src/generated/BsDropdownPanel.generated.d.ts +3 -2
- package/file-manager/index.mjs +2 -2
- package/package.json +2 -5
- package/popover/index.mjs +2 -2
- package/popover/src/generated/BsPopoverPanel.generated.d.ts +3 -2
- package/splitter/index.mjs +1 -1
- package/splitter/src/generated/BsSplitterPanel.generated.d.ts +9 -2
- package/tooltip/index.mjs +2 -2
- package/tooltip/src/generated/BsTooltipPanel.generated.d.ts +3 -2
- package/chunks/BsSplitterPanel.generated-C9jE6reT.mjs +0 -86
|
@@ -138,71 +138,71 @@ function ne({ view: i, slots: o = {}, children: ee, className: s, attrs: c, root
|
|
|
138
138
|
}) }) : null, r.panel ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
|
|
139
139
|
"data-mps": "datatable",
|
|
140
140
|
...n(r.panel),
|
|
141
|
-
children: r.
|
|
141
|
+
children: r.body && r.body.custom ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
|
|
142
142
|
"data-mps": "datatable",
|
|
143
|
-
...n(r.
|
|
143
|
+
...n(r.body.body),
|
|
144
144
|
children: o.filter === void 0 ? null : h(o.filter, {
|
|
145
|
-
column: r.
|
|
146
|
-
ctx: r.
|
|
145
|
+
column: r.body.column,
|
|
146
|
+
ctx: r.body.ctx
|
|
147
147
|
})
|
|
148
|
-
}) }) : r.
|
|
148
|
+
}) }) : r.body ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
149
149
|
"data-mps": "datatable",
|
|
150
|
-
...n(r.
|
|
150
|
+
...n(r.body.body),
|
|
151
151
|
children: [
|
|
152
152
|
/* @__PURE__ */ u("button", {
|
|
153
153
|
"data-mps": "datatable",
|
|
154
|
-
...n(r.
|
|
155
|
-
children: r.
|
|
154
|
+
...n(r.body.clear),
|
|
155
|
+
children: r.body.clearText
|
|
156
156
|
}),
|
|
157
|
-
r.
|
|
157
|
+
r.body.comparison ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
158
158
|
"data-mps": "datatable",
|
|
159
|
-
...n(r.
|
|
159
|
+
...n(r.body.comparison.wrap),
|
|
160
160
|
children: [/* @__PURE__ */ u("select", {
|
|
161
161
|
"data-mps": "datatable",
|
|
162
|
-
...e(r.
|
|
163
|
-
defaultValue: r.
|
|
164
|
-
children: r.
|
|
162
|
+
...e(r.body.comparison.operator),
|
|
163
|
+
defaultValue: r.body.comparison.operatorValue,
|
|
164
|
+
children: r.body.comparison.operators.map((e, n) => /* @__PURE__ */ u(a.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
165
165
|
"data-mps": "datatable",
|
|
166
166
|
...t(e.option),
|
|
167
167
|
children: e.text
|
|
168
168
|
}) }, e.key))
|
|
169
169
|
}), /* @__PURE__ */ u("input", {
|
|
170
170
|
"data-mps": "datatable",
|
|
171
|
-
...e(r.
|
|
172
|
-
defaultValue: r.
|
|
171
|
+
...e(r.body.comparison.operand),
|
|
172
|
+
defaultValue: r.body.comparison.operandText,
|
|
173
173
|
ref: ((e) => (t) => {
|
|
174
174
|
t && t.value !== String(e) && (t.value = String(e));
|
|
175
|
-
})(r.
|
|
175
|
+
})(r.body.comparison.operandText)
|
|
176
176
|
})]
|
|
177
177
|
}) }) : null,
|
|
178
|
-
r.
|
|
178
|
+
r.body.comparison && r.body.comparison.applied ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("small", {
|
|
179
179
|
"data-mps": "datatable",
|
|
180
|
-
...n(r.
|
|
181
|
-
children: r.
|
|
180
|
+
...n(r.body.comparison.applied),
|
|
181
|
+
children: r.body.comparison.appliedText
|
|
182
182
|
}) }) : null,
|
|
183
|
-
r.
|
|
183
|
+
r.body.list ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("input", {
|
|
184
184
|
"data-mps": "datatable",
|
|
185
|
-
...e(r.
|
|
186
|
-
defaultValue: r.
|
|
185
|
+
...e(r.body.list.search),
|
|
186
|
+
defaultValue: r.body.list.term,
|
|
187
187
|
ref: ((e) => (t) => {
|
|
188
188
|
t && t.value !== String(e) && (t.value = String(e));
|
|
189
|
-
})(r.
|
|
189
|
+
})(r.body.list.term)
|
|
190
190
|
}) }) : null,
|
|
191
|
-
r.
|
|
191
|
+
r.body.list ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("button", {
|
|
192
192
|
"data-mps": "datatable",
|
|
193
|
-
...n(r.
|
|
194
|
-
children: r.
|
|
193
|
+
...n(r.body.list.invert),
|
|
194
|
+
children: r.body.list.invertText
|
|
195
195
|
}) }) : null,
|
|
196
|
-
r.
|
|
196
|
+
r.body.list ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
197
197
|
"data-mps": "datatable",
|
|
198
|
-
...n(r.
|
|
198
|
+
...n(r.body.list.group),
|
|
199
199
|
children: [
|
|
200
|
-
r.
|
|
200
|
+
r.body.list.loading ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("span", {
|
|
201
201
|
"data-mps": "datatable",
|
|
202
|
-
...n(r.
|
|
203
|
-
children: r.
|
|
202
|
+
...n(r.body.list.loading),
|
|
203
|
+
children: r.body.list.loadingText
|
|
204
204
|
}) }) : null,
|
|
205
|
-
r.
|
|
205
|
+
r.body.list.options.map((t, r) => /* @__PURE__ */ u(a.Fragment, { children: /* @__PURE__ */ d("label", {
|
|
206
206
|
"data-mps": "datatable",
|
|
207
207
|
...n(t.label),
|
|
208
208
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -216,17 +216,17 @@ function ne({ view: i, slots: o = {}, children: ee, className: s, attrs: c, root
|
|
|
216
216
|
children: t.text
|
|
217
217
|
})]
|
|
218
218
|
}) }, t.key)),
|
|
219
|
-
r.
|
|
219
|
+
r.body.list.noValues ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("span", {
|
|
220
220
|
"data-mps": "datatable",
|
|
221
|
-
...n(r.
|
|
222
|
-
children: r.
|
|
221
|
+
...n(r.body.list.noValues),
|
|
222
|
+
children: r.body.list.noValuesText
|
|
223
223
|
}) }) : null
|
|
224
224
|
]
|
|
225
225
|
}) }) : null,
|
|
226
|
-
r.
|
|
226
|
+
r.body.list && r.body.list.hasMore ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("span", {
|
|
227
227
|
"data-mps": "datatable",
|
|
228
|
-
...n(r.
|
|
229
|
-
children: r.
|
|
228
|
+
...n(r.body.list.hasMore),
|
|
229
|
+
children: r.body.list.hasMoreText
|
|
230
230
|
}) }) : null
|
|
231
231
|
]
|
|
232
232
|
}) }) : null
|
|
@@ -399,11 +399,11 @@ var g = [], _ = [], v = [], y = [
|
|
|
399
399
|
10,
|
|
400
400
|
20,
|
|
401
401
|
50
|
|
402
|
-
], b = [], x = [], S = [], C = {}, w = o(function({ columns: e = g, data: t = _, fetch: n = null, caption: r = null, labels: a = null, inputLabel: o = null, sortColumns: l = v, page: d = 1, perPage: h = 20, perPageOptions: w = y, pagination: T = !1, autoSort: E = !0, selectionMode: D = "none", selectedIds: O = b, cutIds: k = x, focusedRowKey: A = null, rowLabel: j = null, rowKey: M = null, tree: N = !1, idKey: P = null, childCountKey: F = null, treeIndent: I = 1.25, expandedIds: L = S, selectionStrategy: R = "flat", loading: z = !1, emptyMessage: B = "No data", virtualScroll: V = !1, itemSize: H = 40, virtualBuffer: U = 10, fill: re = !1, resizableColumns: W = !0, hrefFor: G = null, distincts: K = null, filters: q = C,
|
|
402
|
+
], b = [], x = [], S = [], C = {}, w = o(function({ columns: e = g, data: t = _, fetch: n = null, caption: r = null, labels: a = null, inputLabel: o = null, sortColumns: l = v, page: d = 1, perPage: h = 20, perPageOptions: w = y, pagination: T = !1, autoSort: E = !0, selectionMode: D = "none", selectedIds: O = b, cutIds: k = x, focusedRowKey: A = null, rowLabel: j = null, rowKey: M = null, tree: N = !1, idKey: P = null, childCountKey: F = null, treeIndent: I = 1.25, expandedIds: L = S, selectionStrategy: R = "flat", loading: z = !1, emptyMessage: B = "No data", virtualScroll: V = !1, itemSize: H = 40, virtualBuffer: U = 10, fill: re = !1, resizableColumns: W = !0, hrefFor: G = null, distincts: K = null, filters: q = C, filtersReadonly: J = !1, fetchParams: Y = null, stateKey: X = null, onRowClick: ie, onRowDblClick: ae, onRowContextMenu: oe, onSelectionChanged: se, onRowExpand: ce, onRowCollapse: le, onLoadError: ue, onPageLoad: de, onSortColumnsChange: fe, onPageChange: pe, onPerPageChange: me, onSelectedIdsChange: he, onExpandedIdsChange: Z, onFiltersChange: ge, header: _e, cell: ve, row: ye, filter: be, className: xe, children: Se, ...Q }, Ce) {
|
|
403
403
|
c(f.key, f.css, { order: f.order }), c(m.key, m.css, { order: m.order }), c("datatable", p);
|
|
404
404
|
let $ = s(null);
|
|
405
|
-
ee(
|
|
406
|
-
let
|
|
405
|
+
ee(Ce, () => $.current);
|
|
406
|
+
let we = i(te, {
|
|
407
407
|
columns: e,
|
|
408
408
|
data: t,
|
|
409
409
|
fetch: n,
|
|
@@ -438,14 +438,15 @@ var g = [], _ = [], v = [], y = [
|
|
|
438
438
|
hrefFor: G,
|
|
439
439
|
distincts: K,
|
|
440
440
|
filters: q,
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
filtersReadonly: J,
|
|
442
|
+
fetchParams: Y,
|
|
443
|
+
stateKey: X
|
|
443
444
|
}, {
|
|
444
445
|
idPrefix: "bs-datatable",
|
|
445
446
|
label: Q["aria-label"],
|
|
446
447
|
rootRef: $,
|
|
447
448
|
emit: (e, t) => {
|
|
448
|
-
e === "rowClick" &&
|
|
449
|
+
e === "rowClick" && ie?.(t), e === "rowDblClick" && ae?.(t), e === "rowContextMenu" && oe?.(t), e === "selectionChanged" && se?.(t), e === "rowExpand" && ce?.(t), e === "rowCollapse" && le?.(t), e === "loadError" && ue?.(t), e === "pageLoad" && de?.(t);
|
|
449
450
|
},
|
|
450
451
|
models: [
|
|
451
452
|
"sortColumns",
|
|
@@ -456,21 +457,21 @@ var g = [], _ = [], v = [], y = [
|
|
|
456
457
|
"filters"
|
|
457
458
|
],
|
|
458
459
|
writeModel: (e, t) => {
|
|
459
|
-
e === "sortColumns" &&
|
|
460
|
+
e === "sortColumns" && fe?.(t), e === "page" && pe?.(t), e === "perPage" && me?.(t), e === "selectedIds" && he?.(t), e === "expandedIds" && Z?.(t), e === "filters" && ge?.(t);
|
|
460
461
|
}
|
|
461
462
|
});
|
|
462
463
|
return /* @__PURE__ */ u(ne, {
|
|
463
|
-
...
|
|
464
|
+
...we.props,
|
|
464
465
|
slots: {
|
|
465
|
-
header:
|
|
466
|
-
cell:
|
|
467
|
-
row:
|
|
468
|
-
filter:
|
|
466
|
+
header: _e,
|
|
467
|
+
cell: ve,
|
|
468
|
+
row: ye,
|
|
469
|
+
filter: be
|
|
469
470
|
},
|
|
470
|
-
className:
|
|
471
|
+
className: xe,
|
|
471
472
|
attrs: Q,
|
|
472
473
|
rootRef: $,
|
|
473
|
-
children:
|
|
474
|
+
children: Se
|
|
474
475
|
});
|
|
475
476
|
});
|
|
476
477
|
//#endregion
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { reactProps as e, reactStyle as t, useCore as n } from "../machine/index.mjs";
|
|
2
|
+
import { forwardRef as r, useImperativeHandle as i, useRef as a } from "react";
|
|
3
|
+
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import { splitterCore as u, splitterPanelCore as d, splitterScopedStyles as f } from "@mintplayer/ui-core/splitter";
|
|
6
|
+
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter.view.generated.tsx
|
|
7
|
+
function p({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: o }) {
|
|
8
|
+
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ c("div", {
|
|
9
|
+
"data-mps": "splitter",
|
|
10
|
+
...e(t.root),
|
|
11
|
+
ref: o,
|
|
12
|
+
...a,
|
|
13
|
+
role: t.root.role ?? a?.role,
|
|
14
|
+
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
15
|
+
children: r ?? null
|
|
16
|
+
}) });
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitter.generated.tsx
|
|
20
|
+
var m = r(function({ orientation: e = "horizontal", minPanelSize: t = 50, touchMode: r = !1, labels: s = null, onResizeStart: l, onResizing: d, onResizeEnd: m, className: h, children: g, ..._ }, v) {
|
|
21
|
+
o("splitter", f);
|
|
22
|
+
let y = a(null);
|
|
23
|
+
i(v, () => y.current);
|
|
24
|
+
let b = n(u, {
|
|
25
|
+
orientation: e,
|
|
26
|
+
minPanelSize: t,
|
|
27
|
+
touchMode: r,
|
|
28
|
+
labels: s
|
|
29
|
+
}, {
|
|
30
|
+
idPrefix: "bs-splitter",
|
|
31
|
+
label: _["aria-label"],
|
|
32
|
+
rootRef: y,
|
|
33
|
+
emit: (e, t) => {
|
|
34
|
+
e === "resizeStart" && l?.(t), e === "resizing" && d?.(t), e === "resizeEnd" && m?.(t);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return /* @__PURE__ */ c(p, {
|
|
38
|
+
...b.props,
|
|
39
|
+
className: h,
|
|
40
|
+
attrs: _,
|
|
41
|
+
rootRef: y,
|
|
42
|
+
children: g
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter-panel.view.generated.tsx
|
|
47
|
+
function h({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
|
|
48
|
+
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ l("div", {
|
|
49
|
+
"data-mps": "splitter",
|
|
50
|
+
...e(n.root),
|
|
51
|
+
ref: u,
|
|
52
|
+
...o,
|
|
53
|
+
role: n.root.role ?? o?.role,
|
|
54
|
+
className: [n.root.class, a].filter(Boolean).join(" ") || void 0,
|
|
55
|
+
children: [/* @__PURE__ */ c("div", {
|
|
56
|
+
"data-mps": "splitter",
|
|
57
|
+
...e(n.divider)
|
|
58
|
+
}), /* @__PURE__ */ c("div", {
|
|
59
|
+
"data-mps": "splitter",
|
|
60
|
+
...e(n.pane),
|
|
61
|
+
style: t(n.paneStyle),
|
|
62
|
+
children: i ?? null
|
|
63
|
+
})]
|
|
64
|
+
}) });
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitterPanel.generated.tsx
|
|
68
|
+
var g = r(function({ size: e = null, minSize: t = null, maxSize: r = null, className: s, children: l, ...u }, p) {
|
|
69
|
+
o("splitter", f);
|
|
70
|
+
let m = a(null);
|
|
71
|
+
i(p, () => m.current);
|
|
72
|
+
let g = n(d, {
|
|
73
|
+
size: e,
|
|
74
|
+
minSize: t,
|
|
75
|
+
maxSize: r
|
|
76
|
+
}, {
|
|
77
|
+
idPrefix: "bs-splitter-panel",
|
|
78
|
+
label: u["aria-label"],
|
|
79
|
+
rootRef: m,
|
|
80
|
+
emit: () => void 0
|
|
81
|
+
});
|
|
82
|
+
return /* @__PURE__ */ c(h, {
|
|
83
|
+
...g.props,
|
|
84
|
+
className: s,
|
|
85
|
+
attrs: u,
|
|
86
|
+
rootRef: m,
|
|
87
|
+
children: l
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
//#endregion
|
|
91
|
+
export { m as n, g as t };
|
package/context-menu/index.mjs
CHANGED
|
@@ -17,13 +17,13 @@ function p({ root: e, slots: n = {}, children: r, className: i, attrs: a, rootRe
|
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region libs/mintplayer-react-bootstrap/context-menu/src/generated/BsContextMenuPanel.generated.tsx
|
|
20
|
-
var m = r(function({ overlayId: e = "",
|
|
20
|
+
var m = r(function({ overlayId: e = "", phase: t = "closed", className: r, children: o, ...c }, u) {
|
|
21
21
|
s("context-menu", f);
|
|
22
22
|
let m = a(null);
|
|
23
23
|
i(u, () => m.current);
|
|
24
24
|
let h = n(d, {
|
|
25
25
|
overlayId: e,
|
|
26
|
-
|
|
26
|
+
phase: t
|
|
27
27
|
}, {
|
|
28
28
|
idPrefix: "bs-context-menu-panel",
|
|
29
29
|
label: c["aria-label"],
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ContextMenuPanelInputs } from '@mintplayer/ui-core/context-menu';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsContextMenuPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | '
|
|
3
|
+
export interface BsContextMenuPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'phase'> {
|
|
4
4
|
/** The panel's id. */
|
|
5
5
|
overlayId?: ContextMenuPanelInputs['overlayId'];
|
|
6
|
-
shown
|
|
6
|
+
/** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
|
|
7
|
+
phase?: ContextMenuPanelInputs['phase'];
|
|
7
8
|
children?: React.ReactNode;
|
|
8
9
|
}
|
|
9
10
|
/** The context menu's positioned panel, as the context-menu directive renders it; not used on its own. */
|
package/datatable/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "../chunks/BsDatatable.generated-
|
|
1
|
+
import { t as e } from "../chunks/BsDatatable.generated-D1zmdG4J.mjs";
|
|
2
2
|
import { DEFAULT_DATATABLE_LABELS as t, cellText as n, computeNextSort as r, sortRows as i } from "@mintplayer/ui-core/datatable";
|
|
3
3
|
export { e as BsDatatable, t as DEFAULT_DATATABLE_LABELS, n as cellText, r as computeNextSort, i as sortRows };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { datatableCore, DatatableInputs, DatatableLoadErrorDetail, DatatablePageLoadDetail, RowEventDetail, SelectionChangeEventDetail, TreeRowExpandDetail } from '@mintplayer/ui-core/datatable';
|
|
2
2
|
import { DatatableTemplateProps } from './datatable.view.generated';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export interface BsDatatableProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'columns' | 'data' | 'fetch' | 'caption' | 'labels' | 'inputLabel' | 'sortColumns' | 'page' | 'perPage' | 'perPageOptions' | 'pagination' | 'autoSort' | 'selectionMode' | 'selectedIds' | 'cutIds' | 'focusedRowKey' | 'rowLabel' | 'rowKey' | 'tree' | 'idKey' | 'childCountKey' | 'treeIndent' | 'expandedIds' | 'selectionStrategy' | 'loading' | 'emptyMessage' | 'virtualScroll' | 'itemSize' | 'virtualBuffer' | 'fill' | 'resizableColumns' | 'hrefFor' | 'distincts' | 'filters' | 'fetchParams' | 'stateKey' | 'onRowClick' | 'onRowDblClick' | 'onRowContextMenu' | 'onSelectionChanged' | 'onRowExpand' | 'onRowCollapse' | 'onLoadError' | 'onPageLoad' | 'onSortColumnsChange' | 'onPageChange' | 'onPerPageChange' | 'onSelectedIdsChange' | 'onExpandedIdsChange' | 'onFiltersChange' | 'header' | 'cell' | 'row' | 'filter'> {
|
|
4
|
+
export interface BsDatatableProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'columns' | 'data' | 'fetch' | 'caption' | 'labels' | 'inputLabel' | 'sortColumns' | 'page' | 'perPage' | 'perPageOptions' | 'pagination' | 'autoSort' | 'selectionMode' | 'selectedIds' | 'cutIds' | 'focusedRowKey' | 'rowLabel' | 'rowKey' | 'tree' | 'idKey' | 'childCountKey' | 'treeIndent' | 'expandedIds' | 'selectionStrategy' | 'loading' | 'emptyMessage' | 'virtualScroll' | 'itemSize' | 'virtualBuffer' | 'fill' | 'resizableColumns' | 'hrefFor' | 'distincts' | 'filters' | 'filtersReadonly' | 'fetchParams' | 'stateKey' | 'onRowClick' | 'onRowDblClick' | 'onRowContextMenu' | 'onSelectionChanged' | 'onRowExpand' | 'onRowCollapse' | 'onLoadError' | 'onPageLoad' | 'onSortColumnsChange' | 'onPageChange' | 'onPerPageChange' | 'onSelectedIdsChange' | 'onExpandedIdsChange' | 'onFiltersChange' | 'header' | 'cell' | 'row' | 'filter'> {
|
|
5
5
|
columns?: DatatableInputs['columns'];
|
|
6
6
|
data?: DatatableInputs['data'];
|
|
7
7
|
fetch?: DatatableInputs['fetch'];
|
|
@@ -36,6 +36,7 @@ export interface BsDatatableProps extends Omit<React.HTMLAttributes<HTMLElementT
|
|
|
36
36
|
hrefFor?: DatatableInputs['hrefFor'];
|
|
37
37
|
distincts?: DatatableInputs['distincts'];
|
|
38
38
|
filters?: DatatableInputs['filters'];
|
|
39
|
+
filtersReadonly?: DatatableInputs['filtersReadonly'];
|
|
39
40
|
fetchParams?: DatatableInputs['fetchParams'];
|
|
40
41
|
stateKey?: DatatableInputs['stateKey'];
|
|
41
42
|
/** A row was clicked, or opened with Enter. */
|
|
@@ -79,6 +80,7 @@ export interface BsDatatableProps extends Omit<React.HTMLAttributes<HTMLElementT
|
|
|
79
80
|
* Columns are data (`DatatableColumnDef`). Slots: `header {column}` (a header label),
|
|
80
81
|
* `cell {row, column, rowIndex}` (one cell) and `row {row, rowIndex, ctx}` (all of a
|
|
81
82
|
* row's data cells) and `filter {column, ctx}` (the panel of a column with `filterMode: 'custom'`). Two-way: `sortColumns`, `page`, `perPage`, `selectedIds`, `expandedIds`, `filters`.
|
|
83
|
+
* The table owns the filter state (#465): bind `filters` two-way, or one-way with `filtersReadonly` (the user sees the filters but cannot edit them).
|
|
82
84
|
* An `aria-label` names the table. With `fetch`, filters are applied server-side; `stateKey` prefetches
|
|
83
85
|
* the first page during SSR and hands it to the client (#448).
|
|
84
86
|
*/
|
package/dock/index.mjs
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import { reactProps as e, reactStyle as t, useCore as n } from "../machine/index.mjs";
|
|
2
|
-
import { n as r, t as i } from "../chunks/BsSplitterPanel.generated-
|
|
2
|
+
import { n as r, t as i } from "../chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { forwardRef as o, useImperativeHandle as s, useRef as c } from "react";
|
|
5
5
|
import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
|
|
6
6
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal as p } from "react-dom";
|
|
8
|
-
import { DOCK_LABELS as m, EMPTY_DOCK_LAYOUT as h,
|
|
8
|
+
import { DOCK_LABELS as m, EMPTY_DOCK_LAYOUT as h, closeDockPane as g, closeDockPanes as _, dockCore as v, dockOpenPanes as y, dockScopedStyles as b, isDockPaneOpen as x, mergeDockLabels as S, openDockPane as C } from "@mintplayer/ui-core/dock";
|
|
9
|
+
//#region libs/mintplayer-react-bootstrap/dock/src/generated/dock-tray.view.generated.tsx
|
|
10
|
+
function w({ tray: n, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
11
|
+
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
|
|
12
|
+
"data-mps": "dock",
|
|
13
|
+
...e(n.bag),
|
|
14
|
+
...s,
|
|
15
|
+
role: n.bag.role ?? s?.role,
|
|
16
|
+
className: [n.bag.class, o].filter(Boolean).join(" ") || void 0,
|
|
17
|
+
children: n.rows.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d("div", {
|
|
18
|
+
"data-mps": "dock",
|
|
19
|
+
...e(n.bag),
|
|
20
|
+
children: n.toolbars.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ f("div", {
|
|
21
|
+
"data-mps": "dock",
|
|
22
|
+
...e(n.bag),
|
|
23
|
+
style: t(n.style),
|
|
24
|
+
children: [/* @__PURE__ */ d("button", {
|
|
25
|
+
"data-mps": "dock",
|
|
26
|
+
...e(n.thumb)
|
|
27
|
+
}), /* @__PURE__ */ d("div", {
|
|
28
|
+
"data-mps": "dock",
|
|
29
|
+
...e(n.body)
|
|
30
|
+
})]
|
|
31
|
+
}) }, n.key))
|
|
32
|
+
}) }, n.key))
|
|
33
|
+
}) });
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
9
36
|
//#region libs/mintplayer-react-bootstrap/dock/src/generated/dock-node.view.generated.tsx
|
|
10
|
-
function
|
|
37
|
+
function T({ node: n, slots: o = {}, children: s, className: c, attrs: l }) {
|
|
11
38
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
12
39
|
"data-mps": "dock",
|
|
13
40
|
...e(n.bag),
|
|
@@ -16,39 +43,60 @@ function y({ node: n, slots: o = {}, children: s, className: c, attrs: l }) {
|
|
|
16
43
|
className: [n.bag.class, c].filter(Boolean).join(" ") || void 0,
|
|
17
44
|
children: [n.split ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(r, {
|
|
18
45
|
orientation: n.direction,
|
|
19
|
-
minPanelSize:
|
|
46
|
+
minPanelSize: n.minPaneSize,
|
|
20
47
|
onResizeEnd: n.onResizeEnd,
|
|
21
48
|
onResizing: n.onResizing,
|
|
22
|
-
children: n.children.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(i, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
49
|
+
children: n.children.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(i, {
|
|
50
|
+
size: e.size,
|
|
51
|
+
minSize: e.minSize,
|
|
52
|
+
maxSize: e.maxSize,
|
|
53
|
+
children: /* @__PURE__ */ d(T, {
|
|
54
|
+
node: e.node,
|
|
55
|
+
slots: o
|
|
56
|
+
})
|
|
57
|
+
}) }, e.key))
|
|
58
|
+
}) }) : null, n.stack ? /* @__PURE__ */ f(u, { children: [
|
|
59
|
+
n.stack.caption ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
30
60
|
"data-mps": "dock",
|
|
31
|
-
...e(n.bag),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
61
|
+
...e(n.stack.caption.bag),
|
|
62
|
+
children: [/* @__PURE__ */ d("button", {
|
|
63
|
+
"data-mps": "dock",
|
|
64
|
+
...e(n.stack.caption.title),
|
|
65
|
+
children: n.stack.caption.titleText
|
|
66
|
+
}), n.stack.caption.close ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
|
|
67
|
+
"data-mps": "dock",
|
|
68
|
+
...e(n.stack.caption.close),
|
|
69
|
+
children: "×"
|
|
70
|
+
}) }) : null]
|
|
71
|
+
}) }) : null,
|
|
72
|
+
n.stack.tabbed ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
|
|
35
73
|
"data-mps": "dock",
|
|
36
|
-
...e(n.
|
|
37
|
-
children: n.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
74
|
+
...e(n.stack.strip),
|
|
75
|
+
children: n.stack.tabs.map((n, r) => /* @__PURE__ */ d(a.Fragment, { children: n.placeholder ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("span", {
|
|
76
|
+
"data-mps": "dock",
|
|
77
|
+
...e(n.bag),
|
|
78
|
+
style: t(n.style),
|
|
79
|
+
children: n.title
|
|
80
|
+
}) }) : /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
|
|
81
|
+
"data-mps": "dock",
|
|
82
|
+
...e(n.bag),
|
|
83
|
+
children: n.title
|
|
84
|
+
}) }) }, n.key))
|
|
85
|
+
}) }) : null,
|
|
86
|
+
/* @__PURE__ */ d("div", {
|
|
87
|
+
"data-mps": "dock",
|
|
88
|
+
...e(n.stack.body),
|
|
89
|
+
children: n.stack.empty
|
|
90
|
+
})
|
|
91
|
+
] }) : null]
|
|
44
92
|
}) });
|
|
45
93
|
}
|
|
46
94
|
//#endregion
|
|
47
95
|
//#region libs/mintplayer-react-bootstrap/dock/src/generated/dock-manager.view.generated.tsx
|
|
48
|
-
function
|
|
96
|
+
function E(e, t) {
|
|
49
97
|
return typeof e == "function" ? e(t) : e;
|
|
50
98
|
}
|
|
51
|
-
function
|
|
99
|
+
function D({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
|
|
52
100
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
53
101
|
"data-mps": "dock",
|
|
54
102
|
...e(n.root),
|
|
@@ -57,14 +105,22 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
57
105
|
role: n.root.role ?? s?.role,
|
|
58
106
|
className: [n.root.class, o].filter(Boolean).join(" ") || void 0,
|
|
59
107
|
children: [
|
|
108
|
+
n.traysBefore.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
|
|
109
|
+
tray: e,
|
|
110
|
+
slots: r
|
|
111
|
+
}) }, e.key)),
|
|
60
112
|
/* @__PURE__ */ d("div", {
|
|
61
113
|
"data-mps": "dock",
|
|
62
114
|
...e(n.docked),
|
|
63
|
-
children: n.dockedNode ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
115
|
+
children: n.dockedNode ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(T, {
|
|
64
116
|
node: n.dockedNode,
|
|
65
117
|
slots: r
|
|
66
118
|
}) }) : null
|
|
67
119
|
}),
|
|
120
|
+
n.traysAfter.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
|
|
121
|
+
tray: e,
|
|
122
|
+
slots: r
|
|
123
|
+
}) }, e.key)),
|
|
68
124
|
/* @__PURE__ */ d("div", {
|
|
69
125
|
"data-mps": "dock",
|
|
70
126
|
...e(n.floatingLayer),
|
|
@@ -76,23 +132,38 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
76
132
|
/* @__PURE__ */ f("div", {
|
|
77
133
|
"data-mps": "dock",
|
|
78
134
|
...e(n.chrome),
|
|
79
|
-
children: [/* @__PURE__ */ d("
|
|
135
|
+
children: [n.titleButton ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
|
|
136
|
+
"data-mps": "dock",
|
|
137
|
+
...e(n.title),
|
|
138
|
+
children: n.titleText
|
|
139
|
+
}) }) : /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
|
|
80
140
|
"data-mps": "dock",
|
|
81
141
|
...e(n.title),
|
|
82
142
|
children: n.titleText
|
|
83
|
-
}), /* @__PURE__ */ d("button", {
|
|
143
|
+
}) }), n.close ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("button", {
|
|
84
144
|
"data-mps": "dock",
|
|
85
145
|
...e(n.close),
|
|
86
146
|
children: "×"
|
|
87
|
-
})]
|
|
147
|
+
}) }) : null]
|
|
88
148
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ f("div", {
|
|
90
150
|
"data-mps": "dock",
|
|
91
151
|
...e(n.content),
|
|
92
|
-
children: n.node ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
152
|
+
children: [n.node ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(T, {
|
|
93
153
|
node: n.node,
|
|
94
154
|
slots: r
|
|
95
|
-
}) }) : null
|
|
155
|
+
}) }) : null, n.toolbar ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
156
|
+
"data-mps": "dock",
|
|
157
|
+
...e(n.toolbar.bag),
|
|
158
|
+
style: t(n.toolbar.style),
|
|
159
|
+
children: [/* @__PURE__ */ d("button", {
|
|
160
|
+
"data-mps": "dock",
|
|
161
|
+
...e(n.toolbar.thumb)
|
|
162
|
+
}), /* @__PURE__ */ d("div", {
|
|
163
|
+
"data-mps": "dock",
|
|
164
|
+
...e(n.toolbar.body)
|
|
165
|
+
})]
|
|
166
|
+
}) }) : null]
|
|
96
167
|
}),
|
|
97
168
|
n.resizers.map((t, n) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d("div", {
|
|
98
169
|
"data-mps": "dock",
|
|
@@ -101,6 +172,15 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
101
172
|
]
|
|
102
173
|
}) }, n.key))
|
|
103
174
|
}),
|
|
175
|
+
/* @__PURE__ */ d("div", {
|
|
176
|
+
"data-mps": "dock",
|
|
177
|
+
...e(n.edgeLayer),
|
|
178
|
+
children: n.edgeGuides.map((t, n) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d("button", {
|
|
179
|
+
"data-mps": "dock",
|
|
180
|
+
...e(t.bag),
|
|
181
|
+
children: t.glyph
|
|
182
|
+
}) }, t.key))
|
|
183
|
+
}),
|
|
104
184
|
/* @__PURE__ */ d("div", {
|
|
105
185
|
"data-mps": "dock",
|
|
106
186
|
...e(n.intersectionLayer),
|
|
@@ -137,40 +217,49 @@ function x({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
137
217
|
"data-mps": "dock",
|
|
138
218
|
...e(n.parking)
|
|
139
219
|
}),
|
|
140
|
-
n.panes.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: e.host ? p(/* @__PURE__ */ d(u, { children: r.pane === void 0 ? null :
|
|
220
|
+
n.panes.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: e.host ? p(/* @__PURE__ */ d(u, { children: r.pane === void 0 ? null : E(r.pane, {
|
|
221
|
+
pane: e.name,
|
|
222
|
+
kind: e.kind,
|
|
223
|
+
floating: e.floating,
|
|
224
|
+
active: e.active,
|
|
225
|
+
orientation: e.orientation,
|
|
226
|
+
overflowing: e.overflowing
|
|
227
|
+
}) }), e.host) : null }, e.name))
|
|
141
228
|
]
|
|
142
229
|
}) });
|
|
143
230
|
}
|
|
144
231
|
//#endregion
|
|
145
232
|
//#region libs/mintplayer-react-bootstrap/dock/src/generated/BsDockManager.generated.tsx
|
|
146
|
-
var
|
|
147
|
-
l("dock",
|
|
148
|
-
let
|
|
149
|
-
s(
|
|
150
|
-
let
|
|
233
|
+
var O = o(function({ layout: e = null, panes: t = null, minPaneSize: r = 48, debugLayoutIntegrity: i = !1, labels: a = null, onPaneActivated: o, onPanesClosed: u, onLayoutChange: f, pane: p, className: m, children: h, ...g }, _) {
|
|
234
|
+
l("dock", b);
|
|
235
|
+
let y = c(null);
|
|
236
|
+
s(_, () => y.current);
|
|
237
|
+
let x = n(v, {
|
|
151
238
|
layout: e,
|
|
152
|
-
|
|
153
|
-
|
|
239
|
+
panes: t,
|
|
240
|
+
minPaneSize: r,
|
|
241
|
+
debugLayoutIntegrity: i,
|
|
242
|
+
labels: a
|
|
154
243
|
}, {
|
|
155
244
|
idPrefix: "bs-dock-manager",
|
|
156
|
-
label:
|
|
157
|
-
rootRef:
|
|
245
|
+
label: g["aria-label"],
|
|
246
|
+
rootRef: y,
|
|
158
247
|
emit: (e, t) => {
|
|
159
|
-
e === "paneActivated" &&
|
|
248
|
+
e === "paneActivated" && o?.(t), e === "panesClosed" && u?.(t);
|
|
160
249
|
},
|
|
161
250
|
models: ["layout"],
|
|
162
251
|
writeModel: (e, t) => {
|
|
163
|
-
e === "layout" &&
|
|
252
|
+
e === "layout" && f?.(t);
|
|
164
253
|
}
|
|
165
254
|
});
|
|
166
|
-
return /* @__PURE__ */ d(
|
|
167
|
-
...
|
|
168
|
-
slots: { pane:
|
|
169
|
-
className:
|
|
170
|
-
attrs:
|
|
171
|
-
rootRef:
|
|
172
|
-
children:
|
|
255
|
+
return /* @__PURE__ */ d(D, {
|
|
256
|
+
...x.props,
|
|
257
|
+
slots: { pane: p },
|
|
258
|
+
className: m,
|
|
259
|
+
attrs: g,
|
|
260
|
+
rootRef: y,
|
|
261
|
+
children: h
|
|
173
262
|
});
|
|
174
263
|
});
|
|
175
264
|
//#endregion
|
|
176
|
-
export {
|
|
265
|
+
export { O as BsDockManager, m as DOCK_LABELS, h as EMPTY_DOCK_LAYOUT, g as closeDockPane, _ as closeDockPanes, y as dockOpenPanes, x as isDockPaneOpen, S as mergeDockLabels, C as openDockPane };
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import { dockCore, DockInputs, DockPaneActivatedEventDetail } from '@mintplayer/ui-core/dock';
|
|
1
|
+
import { dockCore, DockInputs, DockPaneActivatedEventDetail, DockPanesClosedEventDetail } from '@mintplayer/ui-core/dock';
|
|
2
2
|
import { DockManagerTemplateProps } from './dock-manager.view.generated';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export interface BsDockManagerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'layout' | 'debugLayoutIntegrity' | 'labels' | 'onPaneActivated' | 'onLayoutChange' | 'pane'> {
|
|
4
|
+
export interface BsDockManagerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'layout' | 'panes' | 'minPaneSize' | 'debugLayoutIntegrity' | 'labels' | 'onPaneActivated' | 'onPanesClosed' | 'onLayoutChange' | 'pane'> {
|
|
5
5
|
layout?: DockInputs['layout'];
|
|
6
|
+
panes?: DockInputs['panes'];
|
|
7
|
+
minPaneSize?: DockInputs['minPaneSize'];
|
|
6
8
|
debugLayoutIntegrity?: DockInputs['debugLayoutIntegrity'];
|
|
7
9
|
labels?: DockInputs['labels'];
|
|
8
10
|
/** A tab was activated. */
|
|
9
11
|
onPaneActivated?: (detail: DockPaneActivatedEventDetail) => void;
|
|
12
|
+
/** The user closed panes: every pane name one close removed. */
|
|
13
|
+
onPanesClosed?: (detail: DockPanesClosedEventDetail) => void;
|
|
10
14
|
/** `layout` changed from inside (two-way: pass the value back as `layout`). */
|
|
11
15
|
onLayoutChange?: (value: ReturnType<NonNullable<(typeof dockCore)['state']>>['layout']) => void;
|
|
12
16
|
pane?: NonNullable<DockManagerTemplateProps['slots']>['pane'];
|
|
13
17
|
children?: React.ReactNode;
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
|
-
* A docking layout (#437): panes in tabbed stacks, split side by side
|
|
17
|
-
* windows
|
|
18
|
-
*
|
|
20
|
+
* A docking layout (#437, #474): panes in tabbed stacks, split side by side, torn off into floating
|
|
21
|
+
* windows and docked along the outer edges; toolbars in trays along the four edges. By pointer, touch
|
|
22
|
+
* long-press or the keyboard (M on a tab, a caption or a toolbar thumb). `layout` is two-way; `panes`
|
|
23
|
+
* gives each pane its title, kind and options; the `pane` slot renders each pane by name. Strings come
|
|
24
|
+
* from `labels`.
|
|
19
25
|
*/
|
|
20
26
|
export declare const BsDockManager: React.ForwardRefExoticComponent<BsDockManagerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -6,6 +6,11 @@ export type DockManagerTemplateProps = {
|
|
|
6
6
|
slots?: {
|
|
7
7
|
pane?: React.ReactNode | ((args: {
|
|
8
8
|
pane: string;
|
|
9
|
+
kind: 'document' | 'tool' | 'toolbar';
|
|
10
|
+
floating: boolean;
|
|
11
|
+
active: boolean;
|
|
12
|
+
orientation: 'horizontal' | 'vertical';
|
|
13
|
+
overflowing: boolean;
|
|
9
14
|
}) => React.ReactNode);
|
|
10
15
|
};
|
|
11
16
|
children?: React.ReactNode;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DockTrayView } from '@mintplayer/ui-core/dock';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type DockTrayTemplateProps = {
|
|
4
|
+
tray: DockTrayView;
|
|
5
|
+
} & {
|
|
6
|
+
slots?: {};
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Merged onto the root element after the bag. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
};
|
|
13
|
+
export declare function DockTrayTemplate({ tray, slots, children, className, attrs }: DockTrayTemplateProps): React.ReactElement;
|
package/dock/src/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
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';
|
|
2
|
+
export { DOCK_LABELS, EMPTY_DOCK_LAYOUT, closeDockPane, closeDockPanes, dockOpenPanes, isDockPaneOpen, mergeDockLabels, openDockPane, } from '@mintplayer/ui-core/dock';
|
|
3
|
+
export type { DockClosedPane, DockFloatingPaneBounds, DockFloatingStackLayout, DockLabels, DockLayout, DockLayoutInput, DockLayoutNode, DockLayoutSnapshot, DockPaneActivatedEventDetail, DockPaneAnchor, DockPaneKind, DockPaneOptions, DockPanesClosedEventDetail, DockPanesOptions, DockSplitNode, DockStackNode, DockToolbarRow, DockToolbarTrays, DockTraySide, DockTraySlot, } from '@mintplayer/ui-core/dock';
|
package/dropdown/index.mjs
CHANGED
|
@@ -18,14 +18,14 @@ function x({ root: e, slots: t = {}, children: r, className: i, attrs: a, rootRe
|
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region libs/mintplayer-react-bootstrap/dropdown/src/generated/BsDropdownPanel.generated.tsx
|
|
21
|
-
var S = t(f), C = i(function({ overlayId: e = "", side: t = "bottom",
|
|
21
|
+
var S = t(f), C = i(function({ overlayId: e = "", side: t = "bottom", phase: n = "closed", hasPopup: i = "menu", triggerId: s = null, className: l, children: d, ...f }, p) {
|
|
22
22
|
c(b.key, b.css, { order: b.order }), c("dropdown", y);
|
|
23
23
|
let m = o(null);
|
|
24
24
|
a(p, () => m.current);
|
|
25
25
|
let h = r(v, {
|
|
26
26
|
overlayId: e,
|
|
27
27
|
side: t,
|
|
28
|
-
|
|
28
|
+
phase: n,
|
|
29
29
|
hasPopup: i,
|
|
30
30
|
triggerId: s
|
|
31
31
|
}, {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DropdownPanelInputs } from '@mintplayer/ui-core/dropdown';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsDropdownPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'side' | '
|
|
3
|
+
export interface BsDropdownPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'side' | 'phase' | 'hasPopup' | 'triggerId'> {
|
|
4
4
|
/** The panel's id, which the trigger's `aria-controls` names. */
|
|
5
5
|
overlayId?: DropdownPanelInputs['overlayId'];
|
|
6
6
|
side?: DropdownPanelInputs['side'];
|
|
7
|
-
shown
|
|
7
|
+
/** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
|
|
8
|
+
phase?: DropdownPanelInputs['phase'];
|
|
8
9
|
hasPopup?: DropdownPanelInputs['hasPopup'];
|
|
9
10
|
/** The trigger's id, naming a dialog panel. */
|
|
10
11
|
triggerId?: DropdownPanelInputs['triggerId'];
|
package/file-manager/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactFormProps as e, reactProps as t, reactStyle as n, useCore as r } from "../machine/index.mjs";
|
|
2
|
-
import { t as i } from "../chunks/BsDatatable.generated-
|
|
3
|
-
import { n as a, t as o } from "../chunks/BsSplitterPanel.generated-
|
|
2
|
+
import { t as i } from "../chunks/BsDatatable.generated-D1zmdG4J.mjs";
|
|
3
|
+
import { n as a, t as o } from "../chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs";
|
|
4
4
|
import { t as s } from "../chunks/BsTreeview.generated-GSdEEc7k.mjs";
|
|
5
5
|
import * as c from "react";
|
|
6
6
|
import { forwardRef as l, useImperativeHandle as u, useRef as d } from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.34.0",
|
|
4
4
|
"description": "React 19 Bootstrap components. Each sub-entry renders its own JSX over a framework-neutral core from @mintplayer/ui-core, so it server-renders real HTML and defines no custom elements.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -308,14 +308,11 @@
|
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
"peerDependencies": {
|
|
311
|
-
"@mintplayer/ui-core": "^1.
|
|
311
|
+
"@mintplayer/ui-core": "^1.11.0",
|
|
312
312
|
"react": "^19.0.0",
|
|
313
313
|
"react-dom": "^19.0.0"
|
|
314
314
|
},
|
|
315
315
|
"dependencies": {
|
|
316
316
|
"tslib": "^2.3.0"
|
|
317
|
-
},
|
|
318
|
-
"publishConfig": {
|
|
319
|
-
"tag": "latest"
|
|
320
317
|
}
|
|
321
318
|
}
|
package/popover/index.mjs
CHANGED
|
@@ -34,14 +34,14 @@ function g({ view: e, slots: n = {}, children: r, className: i, attrs: a, rootRe
|
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region libs/mintplayer-react-bootstrap/popover/src/generated/BsPopoverPanel.generated.tsx
|
|
37
|
-
var _ = r(function({ overlayId: e = "", side: t = "bottom",
|
|
37
|
+
var _ = r(function({ overlayId: e = "", side: t = "bottom", phase: r = "closed", heading: o = null, triggerId: c = null, className: u, children: f, ..._ }, v) {
|
|
38
38
|
s(d.key, d.css, { order: d.order }), s(h.key, h.css, { order: h.order }), s("popover", m);
|
|
39
39
|
let y = a(null);
|
|
40
40
|
i(v, () => y.current);
|
|
41
41
|
let b = n(p, {
|
|
42
42
|
overlayId: e,
|
|
43
43
|
side: t,
|
|
44
|
-
|
|
44
|
+
phase: r,
|
|
45
45
|
heading: o,
|
|
46
46
|
triggerId: c
|
|
47
47
|
}, {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PopoverPanelInputs } from '@mintplayer/ui-core/popover';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsPopoverPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'side' | '
|
|
3
|
+
export interface BsPopoverPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'side' | 'phase' | 'heading' | 'triggerId'> {
|
|
4
4
|
/** The panel's id, which the trigger's `aria-controls` names. */
|
|
5
5
|
overlayId?: PopoverPanelInputs['overlayId'];
|
|
6
6
|
side?: PopoverPanelInputs['side'];
|
|
7
|
-
shown
|
|
7
|
+
/** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
|
|
8
|
+
phase?: PopoverPanelInputs['phase'];
|
|
8
9
|
heading?: PopoverPanelInputs['heading'];
|
|
9
10
|
/** The trigger's id, naming the dialog when there is no title. */
|
|
10
11
|
triggerId?: PopoverPanelInputs['triggerId'];
|
package/splitter/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as BsSplitter, t as BsSplitterPanel } from "../chunks/BsSplitterPanel.generated-
|
|
1
|
+
export { n as BsSplitter, t as BsSplitterPanel } from "../chunks/BsSplitterPanel.generated-lcYJ4WuC.mjs";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { SplitterPanelInputs } from '@mintplayer/ui-core/splitter';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
export interface BsSplitterPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>,
|
|
3
|
+
export interface BsSplitterPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'size' | 'minSize' | 'maxSize'> {
|
|
4
|
+
size?: SplitterPanelInputs['size'];
|
|
5
|
+
minSize?: SplitterPanelInputs['minSize'];
|
|
6
|
+
maxSize?: SplitterPanelInputs['maxSize'];
|
|
3
7
|
children?: React.ReactNode;
|
|
4
8
|
}
|
|
5
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* One panel of a splitter. Its content fills the panel. `size` makes it its content's size (`auto`) or
|
|
11
|
+
* fixed px, so the dividers beside it do not move; `minSize` and `maxSize` bound what a divider can do.
|
|
12
|
+
*/
|
|
6
13
|
export declare const BsSplitterPanel: React.ForwardRefExoticComponent<BsSplitterPanelProps & React.RefAttributes<HTMLDivElement>>;
|
package/tooltip/index.mjs
CHANGED
|
@@ -26,14 +26,14 @@ function g({ view: e, slots: n = {}, children: r, className: i, attrs: a, rootRe
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region libs/mintplayer-react-bootstrap/tooltip/src/generated/BsTooltipPanel.generated.tsx
|
|
29
|
-
var _ = r(function({ overlayId: e = "", side: t = "top",
|
|
29
|
+
var _ = r(function({ overlayId: e = "", side: t = "top", phase: r = "closed", className: o, children: c, ...u }, f) {
|
|
30
30
|
s(d.key, d.css, { order: d.order }), s(h.key, h.css, { order: h.order }), s("tooltip", m);
|
|
31
31
|
let _ = a(null);
|
|
32
32
|
i(f, () => _.current);
|
|
33
33
|
let v = n(p, {
|
|
34
34
|
overlayId: e,
|
|
35
35
|
side: t,
|
|
36
|
-
|
|
36
|
+
phase: r
|
|
37
37
|
}, {
|
|
38
38
|
idPrefix: "bs-tooltip-panel",
|
|
39
39
|
label: u["aria-label"],
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TooltipPanelInputs } from '@mintplayer/ui-core/tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface BsTooltipPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'side' | '
|
|
3
|
+
export interface BsTooltipPanelProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'overlayId' | 'side' | 'phase'> {
|
|
4
4
|
/** The panel's id, which the trigger's `aria-describedby` names. */
|
|
5
5
|
overlayId?: TooltipPanelInputs['overlayId'];
|
|
6
6
|
side?: TooltipPanelInputs['side'];
|
|
7
|
-
shown
|
|
7
|
+
/** The overlay phase: `.show` while shown, `hidden` while closed (#465). */
|
|
8
|
+
phase?: TooltipPanelInputs['phase'];
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
}
|
|
10
11
|
/** Bootstrap's tooltip panel, as the tooltip directive renders it; not used on its own. */
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { reactProps as e, useCore as t } from "../machine/index.mjs";
|
|
2
|
-
import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
|
|
3
|
-
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
-
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
import { splitterCore as l, splitterPanelCore as u, splitterScopedStyles as d } from "@mintplayer/ui-core/splitter";
|
|
6
|
-
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter.view.generated.tsx
|
|
7
|
-
function f({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: c }) {
|
|
8
|
-
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
9
|
-
"data-mps": "splitter",
|
|
10
|
-
...e(t.root),
|
|
11
|
-
ref: c,
|
|
12
|
-
...a,
|
|
13
|
-
role: t.root.role ?? a?.role,
|
|
14
|
-
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
15
|
-
children: r ?? null
|
|
16
|
-
}) });
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitter.generated.tsx
|
|
20
|
-
var p = n(function({ orientation: e = "horizontal", minPanelSize: n = 50, touchMode: o = !1, labels: c = null, onResizeStart: u, onResizing: p, onResizeEnd: m, className: h, children: g, ..._ }, v) {
|
|
21
|
-
a("splitter", d);
|
|
22
|
-
let y = i(null);
|
|
23
|
-
r(v, () => y.current);
|
|
24
|
-
let b = t(l, {
|
|
25
|
-
orientation: e,
|
|
26
|
-
minPanelSize: n,
|
|
27
|
-
touchMode: o,
|
|
28
|
-
labels: c
|
|
29
|
-
}, {
|
|
30
|
-
idPrefix: "bs-splitter",
|
|
31
|
-
label: _["aria-label"],
|
|
32
|
-
rootRef: y,
|
|
33
|
-
emit: (e, t) => {
|
|
34
|
-
e === "resizeStart" && u?.(t), e === "resizing" && p?.(t), e === "resizeEnd" && m?.(t);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
return /* @__PURE__ */ s(f, {
|
|
38
|
-
...b.props,
|
|
39
|
-
className: h,
|
|
40
|
-
attrs: _,
|
|
41
|
-
rootRef: y,
|
|
42
|
-
children: g
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/splitter-panel.view.generated.tsx
|
|
47
|
-
function m({ view: t, slots: n = {}, children: r, className: i, attrs: a, rootRef: l }) {
|
|
48
|
-
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
49
|
-
"data-mps": "splitter",
|
|
50
|
-
...e(t.root),
|
|
51
|
-
ref: l,
|
|
52
|
-
...a,
|
|
53
|
-
role: t.root.role ?? a?.role,
|
|
54
|
-
className: [t.root.class, i].filter(Boolean).join(" ") || void 0,
|
|
55
|
-
children: [/* @__PURE__ */ s("div", {
|
|
56
|
-
"data-mps": "splitter",
|
|
57
|
-
...e(t.divider)
|
|
58
|
-
}), /* @__PURE__ */ s("div", {
|
|
59
|
-
"data-mps": "splitter",
|
|
60
|
-
...e(t.pane),
|
|
61
|
-
children: r ?? null
|
|
62
|
-
})]
|
|
63
|
-
}) });
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region libs/mintplayer-react-bootstrap/splitter/src/generated/BsSplitterPanel.generated.tsx
|
|
67
|
-
var h = n(function({ className: e, children: n, ...o }, c) {
|
|
68
|
-
a("splitter", d);
|
|
69
|
-
let l = i(null);
|
|
70
|
-
r(c, () => l.current);
|
|
71
|
-
let f = t(u, {}, {
|
|
72
|
-
idPrefix: "bs-splitter-panel",
|
|
73
|
-
label: o["aria-label"],
|
|
74
|
-
rootRef: l,
|
|
75
|
-
emit: () => void 0
|
|
76
|
-
});
|
|
77
|
-
return /* @__PURE__ */ s(m, {
|
|
78
|
-
...f.props,
|
|
79
|
-
className: e,
|
|
80
|
-
attrs: o,
|
|
81
|
-
rootRef: l,
|
|
82
|
-
children: n
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
//#endregion
|
|
86
|
-
export { p as n, h as t };
|