@mintplayer/react-bootstrap 19.32.0 → 19.33.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/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/dropdown/index.mjs +2 -2
- package/dropdown/src/generated/BsDropdownPanel.generated.d.ts +3 -2
- package/file-manager/index.mjs +1 -1
- package/package.json +2 -2
- package/popover/index.mjs +2 -2
- package/popover/src/generated/BsPopoverPanel.generated.d.ts +3 -2
- package/tooltip/index.mjs +2 -2
- package/tooltip/src/generated/BsTooltipPanel.generated.d.ts +3 -2
|
@@ -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
|
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/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,5 +1,5 @@
|
|
|
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-
|
|
2
|
+
import { t as i } from "../chunks/BsDatatable.generated-D1zmdG4J.mjs";
|
|
3
3
|
import { n as a, t as o } from "../chunks/BsSplitterPanel.generated-C9jE6reT.mjs";
|
|
4
4
|
import { t as s } from "../chunks/BsTreeview.generated-GSdEEc7k.mjs";
|
|
5
5
|
import * as c from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.33.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,7 +308,7 @@
|
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
"peerDependencies": {
|
|
311
|
-
"@mintplayer/ui-core": "^1.
|
|
311
|
+
"@mintplayer/ui-core": "^1.9.0",
|
|
312
312
|
"react": "^19.0.0",
|
|
313
313
|
"react-dom": "^19.0.0"
|
|
314
314
|
},
|
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/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. */
|