@mintplayer/react-bootstrap 19.29.0 → 19.31.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/README.md +12 -11
- package/accordion/index.mjs +48 -46
- package/card/index.mjs +90 -76
- package/card/src/BsCard.d.ts +1 -1
- package/card/src/BsCardBody.d.ts +1 -1
- package/card/src/BsCardFooter.d.ts +1 -1
- package/card/src/BsCardLink.d.ts +1 -1
- package/card/src/BsCardSubtitle.d.ts +2 -2
- package/card/src/BsCardText.d.ts +1 -1
- package/card/src/BsCardTitle.d.ts +1 -1
- package/carousel/index.mjs +26 -25
- package/checkbox/index.mjs +1 -1
- package/chunks/BsCheckbox-BZkPJ13E.mjs +66 -0
- package/chunks/{BsDatatable.generated-am6uNreO.mjs → BsDatatable.generated-DqNW60JA.mjs} +54 -52
- package/chunks/{BsDatetimePicker.generated-B4WBEiCo.mjs → BsDatetimePicker.generated-CxaiRt79.mjs} +32 -31
- package/chunks/BsRadio-Bw_MhAOq.mjs +57 -0
- package/datatable/index.mjs +1 -1
- package/datatable/src/generated/BsDatatable.generated.d.ts +4 -2
- package/datepicker/index.mjs +28 -27
- package/datetime-picker/index.mjs +1 -1
- package/dropdown-menu/index.mjs +43 -38
- package/file-manager/index.mjs +21 -20
- package/input-group/index.mjs +17 -15
- package/machine/index.mjs +48 -39
- package/machine/src/index.d.ts +1 -0
- package/machine/src/mark-links.d.ts +8 -0
- package/nav/index.mjs +85 -0
- package/nav/src/generated/BsNav.generated.d.ts +15 -0
- package/nav/src/generated/BsNavItem.generated.d.ts +6 -0
- package/nav/src/generated/index.d.ts +2 -0
- package/nav/src/generated/nav-item.view.generated.d.ts +14 -0
- package/nav/src/generated/nav.view.generated.d.ts +14 -0
- package/nav/src/index.d.ts +1 -0
- package/nav/src/nav-item.react.d.ts +4 -0
- package/navbar/index.mjs +87 -77
- package/navbar/src/navbar-item.react.d.ts +4 -0
- package/otp-input/index.mjs +24 -23
- package/package.json +10 -2
- package/pagination/index.mjs +37 -27
- package/phone-input/index.mjs +26 -25
- package/query-builder/index.mjs +30 -28
- package/radio/index.mjs +1 -1
- package/radio-group/index.mjs +1 -1
- package/scheduler/index.mjs +42 -41
- package/select/index.mjs +27 -26
- package/signature-pad/index.mjs +23 -22
- package/spinner/index.mjs +50 -0
- package/spinner/src/generated/BsSpinner.generated.d.ts +11 -0
- package/spinner/src/generated/index.d.ts +1 -0
- package/spinner/src/generated/spinner.view.generated.d.ts +15 -0
- package/spinner/src/index.d.ts +1 -0
- package/tab-control/index.mjs +56 -54
- package/timepicker/index.mjs +42 -41
- package/toggle-button/index.mjs +1 -1
- package/typeahead/index.mjs +90 -87
- package/chunks/BsCheckbox-BWU2Hrhf.mjs +0 -57
- package/chunks/BsRadio-D1C6Aqjv.mjs +0 -48
package/query-builder/index.mjs
CHANGED
|
@@ -4,12 +4,14 @@ import * as i from "react";
|
|
|
4
4
|
import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
|
|
5
5
|
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
6
6
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
|
|
8
|
+
import { DEFAULT_MESSAGES as p, DEFAULT_OPERATOR_CATALOG as m, MaxDepthExceededError as h, addChild as g, addEmptyConditionTo as _, addEmptyGroupTo as v, addEmptySubqueryTo as y, changeConditionField as b, changeConditionOperator as x, cloneTree as S, collectDescendantIds as C, defaultValueFor as w, emptyCondition as T, emptyGroup as E, emptySubquery as D, findNodeById as O, mapTree as k, moveNode as A, newId as j, operatorsForType as M, queryBuilderCore as N, queryBuilderScopedStyles as P, removeNode as F, renderExpression as I, setGroupLogic as L, updateCondition as R, validateOperatorOverrides as z, valueShapeFor as B, visitTree as V } from "@mintplayer/ui-core/query-builder";
|
|
9
|
+
import { bootstrapButtonGroup as H } from "@mintplayer/ui-core/bootstrap/button-group";
|
|
8
10
|
//#region libs/mintplayer-react-bootstrap/query-builder/src/generated/query-builder-item.view.generated.tsx
|
|
9
|
-
function
|
|
11
|
+
function U(e, t) {
|
|
10
12
|
return typeof e == "function" ? e(t) : e;
|
|
11
13
|
}
|
|
12
|
-
function
|
|
14
|
+
function W({ node: r, view: a, slots: o = {}, children: s, className: c, attrs: f }) {
|
|
13
15
|
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("li", {
|
|
14
16
|
"data-mps": "query-builder",
|
|
15
17
|
...t(r.item),
|
|
@@ -89,7 +91,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
|
|
|
89
91
|
r.condition.hasEditor ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("span", {
|
|
90
92
|
"data-mps": "query-builder",
|
|
91
93
|
...t(r.condition.editor.wrap),
|
|
92
|
-
children: r.condition.editor.custom ? /* @__PURE__ */ u(l, { children: o.editor === void 0 ? null :
|
|
94
|
+
children: r.condition.editor.custom ? /* @__PURE__ */ u(l, { children: o.editor === void 0 ? null : U(o.editor, { ctx: r.condition.editor.ctx }) }) : r.condition.editor.isSelect ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("select", {
|
|
93
95
|
"data-mps": "query-builder",
|
|
94
96
|
...n(r.condition.editor.select),
|
|
95
97
|
defaultValue: r.condition.editor.selectValue,
|
|
@@ -168,7 +170,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
|
|
|
168
170
|
}) }), r.children.length ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("ul", {
|
|
169
171
|
"data-mps": "query-builder",
|
|
170
172
|
...t(r.list),
|
|
171
|
-
children: r.children.map((e, t) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u(
|
|
173
|
+
children: r.children.map((e, t) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u(W, {
|
|
172
174
|
node: e,
|
|
173
175
|
view: a,
|
|
174
176
|
slots: o
|
|
@@ -178,7 +180,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
|
|
|
178
180
|
}
|
|
179
181
|
//#endregion
|
|
180
182
|
//#region libs/mintplayer-react-bootstrap/query-builder/src/generated/query-builder.view.generated.tsx
|
|
181
|
-
function
|
|
183
|
+
function G({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
|
|
182
184
|
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
183
185
|
"data-mps": "query-builder",
|
|
184
186
|
...t(r.root),
|
|
@@ -318,7 +320,7 @@ function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
318
320
|
/* @__PURE__ */ u("ul", {
|
|
319
321
|
"data-mps": "query-builder",
|
|
320
322
|
...t(r.list),
|
|
321
|
-
children: /* @__PURE__ */ u(
|
|
323
|
+
children: /* @__PURE__ */ u(W, {
|
|
322
324
|
node: r.tree,
|
|
323
325
|
view: r,
|
|
324
326
|
slots: a
|
|
@@ -329,11 +331,11 @@ function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
329
331
|
}
|
|
330
332
|
//#endregion
|
|
331
333
|
//#region libs/mintplayer-react-bootstrap/query-builder/src/generated/BsQueryBuilder.generated.tsx
|
|
332
|
-
var
|
|
333
|
-
c("query-builder",
|
|
334
|
-
let
|
|
335
|
-
o(
|
|
336
|
-
let
|
|
334
|
+
var K = [], q = [], J = [], Y = [], X = a(function({ query: e = null, schema: t = K, rootEntity: n = "", multiEntityPickerEnabled: i = !1, selectedFields: a = q, sortBy: l = J, disabled: d = !1, messages: p, maxDepth: m = 32, showPreview: h = !1, showSavedQueries: g = !1, savedQueries: _ = Y, onQueryChange: v, onRootEntityChange: y, onSelectedFieldsChange: b, onSortByChange: x, onSaveQuery: S, onLoadQuery: C, onDeleteQuery: w, editor: T, className: E, children: D, ...O }, k) {
|
|
335
|
+
c(f.key, f.css, { order: f.order }), c(H.key, H.css, { order: H.order }), c("query-builder", P);
|
|
336
|
+
let A = s(null);
|
|
337
|
+
o(k, () => A.current);
|
|
338
|
+
let j = r(N, {
|
|
337
339
|
query: e,
|
|
338
340
|
schema: t,
|
|
339
341
|
rootEntity: n,
|
|
@@ -341,27 +343,27 @@ var W = [], G = [], K = [], q = [], J = a(function({ query: e = null, schema: t
|
|
|
341
343
|
selectedFields: a,
|
|
342
344
|
sortBy: l,
|
|
343
345
|
disabled: d,
|
|
344
|
-
messages:
|
|
345
|
-
maxDepth:
|
|
346
|
-
showPreview:
|
|
347
|
-
showSavedQueries:
|
|
348
|
-
savedQueries:
|
|
346
|
+
messages: p,
|
|
347
|
+
maxDepth: m,
|
|
348
|
+
showPreview: h,
|
|
349
|
+
showSavedQueries: g,
|
|
350
|
+
savedQueries: _
|
|
349
351
|
}, {
|
|
350
352
|
idPrefix: "bs-query-builder",
|
|
351
|
-
label:
|
|
352
|
-
rootRef:
|
|
353
|
+
label: O["aria-label"],
|
|
354
|
+
rootRef: A,
|
|
353
355
|
emit: (e, t) => {
|
|
354
|
-
e === "queryChange" &&
|
|
356
|
+
e === "queryChange" && v?.(t), e === "rootEntityChange" && y?.(t), e === "selectedFieldsChange" && b?.(t), e === "sortByChange" && x?.(t), e === "saveQuery" && S?.(t), e === "loadQuery" && C?.(t), e === "deleteQuery" && w?.(t);
|
|
355
357
|
}
|
|
356
358
|
});
|
|
357
|
-
return /* @__PURE__ */ u(
|
|
358
|
-
...
|
|
359
|
-
slots: { editor:
|
|
360
|
-
className:
|
|
361
|
-
attrs:
|
|
362
|
-
rootRef:
|
|
363
|
-
children:
|
|
359
|
+
return /* @__PURE__ */ u(G, {
|
|
360
|
+
...j.props,
|
|
361
|
+
slots: { editor: T },
|
|
362
|
+
className: E,
|
|
363
|
+
attrs: O,
|
|
364
|
+
rootRef: A,
|
|
365
|
+
children: D
|
|
364
366
|
});
|
|
365
367
|
});
|
|
366
368
|
//#endregion
|
|
367
|
-
export {
|
|
369
|
+
export { X as BsQueryBuilder, p as DEFAULT_MESSAGES, m as DEFAULT_OPERATOR_CATALOG, h as MaxDepthExceededError, g as addChild, _ as addEmptyConditionTo, v as addEmptyGroupTo, y as addEmptySubqueryTo, b as changeConditionField, x as changeConditionOperator, S as cloneTree, C as collectDescendantIds, w as defaultValueFor, T as emptyCondition, E as emptyGroup, D as emptySubquery, O as findNodeById, k as mapTree, A as moveNode, j as newId, M as operatorsForType, F as removeNode, I as renderExpression, L as setGroupLogic, R as updateCondition, z as validateOperatorOverrides, B as valueShapeFor, V as visitTree };
|
package/radio/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BsRadio } from "../chunks/BsRadio-
|
|
1
|
+
export { t as BsRadio } from "../chunks/BsRadio-Bw_MhAOq.mjs";
|
package/radio-group/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
-
import { n as t } from "../chunks/BsRadio-
|
|
2
|
+
import { n as t } from "../chunks/BsRadio-Bw_MhAOq.mjs";
|
|
3
3
|
import { forwardRef as n, useId as r, useMemo as i } from "react";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
import { connectRadioGroup as o, radioGroupName as s } from "@mintplayer/ui-core/radio";
|
package/scheduler/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
2
|
import { useCore as r } from "../machine/index.mjs";
|
|
3
|
-
import { t as i } from "../chunks/BsDatetimePicker.generated-
|
|
3
|
+
import { t as i } from "../chunks/BsDatetimePicker.generated-CxaiRt79.mjs";
|
|
4
4
|
import * as a from "react";
|
|
5
5
|
import { forwardRef as o, useImperativeHandle as s, useRef as c } from "react";
|
|
6
6
|
import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
|
|
7
7
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { bootstrapForms as p } from "@mintplayer/ui-core/bootstrap/forms";
|
|
9
|
+
import { SchedulerStateManager as m, createInitialState as h, schedulerCore as g, schedulerScopedStyles as _ } from "@mintplayer/ui-core/scheduler";
|
|
10
|
+
import { generateEventId as v, generateGroupId as y, generateResourceId as b } from "@mintplayer/ui-core/scheduler-core";
|
|
10
11
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-time-grid.view.generated.tsx
|
|
11
|
-
function
|
|
12
|
+
function x({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
12
13
|
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
13
14
|
"data-mps": "scheduler",
|
|
14
15
|
...t(n.headerRow),
|
|
@@ -103,7 +104,7 @@ function b({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
|
103
104
|
}
|
|
104
105
|
//#endregion
|
|
105
106
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-month.view.generated.tsx
|
|
106
|
-
function
|
|
107
|
+
function S({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
107
108
|
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
|
|
108
109
|
"data-mps": "scheduler",
|
|
109
110
|
...t(n.headerRow),
|
|
@@ -145,7 +146,7 @@ function x({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
|
145
146
|
}
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-year.view.generated.tsx
|
|
148
|
-
function
|
|
149
|
+
function C({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
|
|
149
150
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
|
|
150
151
|
"data-mps": "scheduler",
|
|
151
152
|
...t(e.grid),
|
|
@@ -177,7 +178,7 @@ function S({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
|
|
|
177
178
|
}
|
|
178
179
|
//#endregion
|
|
179
180
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-timeline.view.generated.tsx
|
|
180
|
-
function
|
|
181
|
+
function w({ timeline: r, slots: i = {}, children: o, className: s, attrs: c }) {
|
|
181
182
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
182
183
|
"data-mps": "scheduler",
|
|
183
184
|
...t(r.timeline),
|
|
@@ -314,7 +315,7 @@ function C({ timeline: r, slots: i = {}, children: o, className: s, attrs: c })
|
|
|
314
315
|
}
|
|
315
316
|
//#endregion
|
|
316
317
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-popover-event.view.generated.tsx
|
|
317
|
-
function
|
|
318
|
+
function T({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
|
|
318
319
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("li", {
|
|
319
320
|
"data-mps": "scheduler",
|
|
320
321
|
...t(n.row),
|
|
@@ -346,7 +347,7 @@ function w({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
|
|
|
346
347
|
}
|
|
347
348
|
//#endregion
|
|
348
349
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-popover.view.generated.tsx
|
|
349
|
-
function
|
|
350
|
+
function E({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
350
351
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
351
352
|
"data-mps": "scheduler",
|
|
352
353
|
...t(e.bag),
|
|
@@ -386,7 +387,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
|
386
387
|
e.list ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("ul", {
|
|
387
388
|
"data-mps": "scheduler",
|
|
388
389
|
...t(e.list),
|
|
389
|
-
children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(
|
|
390
|
+
children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(T, {
|
|
390
391
|
event: e,
|
|
391
392
|
slots: r
|
|
392
393
|
}) }, e.key))
|
|
@@ -401,7 +402,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
|
401
402
|
}), /* @__PURE__ */ d("ul", {
|
|
402
403
|
"data-mps": "scheduler",
|
|
403
404
|
...t(e.list),
|
|
404
|
-
children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(
|
|
405
|
+
children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(T, {
|
|
405
406
|
event: e,
|
|
406
407
|
slots: r
|
|
407
408
|
}) }, e.key))
|
|
@@ -442,7 +443,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
|
442
443
|
}
|
|
443
444
|
//#endregion
|
|
444
445
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-row-panel.view.generated.tsx
|
|
445
|
-
function
|
|
446
|
+
function D({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
446
447
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
|
|
447
448
|
"data-mps": "scheduler",
|
|
448
449
|
...t(e.bag),
|
|
@@ -469,7 +470,7 @@ function E({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
|
|
|
469
470
|
}
|
|
470
471
|
//#endregion
|
|
471
472
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-editor.view.generated.tsx
|
|
472
|
-
function
|
|
473
|
+
function O({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
|
|
473
474
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
474
475
|
"data-mps": "scheduler",
|
|
475
476
|
...t(e.bag),
|
|
@@ -598,7 +599,7 @@ function D({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
|
|
|
598
599
|
}
|
|
599
600
|
//#endregion
|
|
600
601
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/scheduler.view.generated.tsx
|
|
601
|
-
function
|
|
602
|
+
function k({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
|
|
602
603
|
return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
|
|
603
604
|
"data-mps": "scheduler",
|
|
604
605
|
...t(n.root),
|
|
@@ -655,19 +656,19 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
655
656
|
...t(n.content),
|
|
656
657
|
style: e(n.contentStyle),
|
|
657
658
|
children: [
|
|
658
|
-
n.timeGrid ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
659
|
+
n.timeGrid ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(x, {
|
|
659
660
|
grid: n.timeGrid,
|
|
660
661
|
slots: r
|
|
661
662
|
}) }) : null,
|
|
662
|
-
n.month ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
663
|
+
n.month ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(S, {
|
|
663
664
|
month: n.month,
|
|
664
665
|
slots: r
|
|
665
666
|
}) }) : null,
|
|
666
|
-
n.year ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
667
|
+
n.year ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(C, {
|
|
667
668
|
year: n.year,
|
|
668
669
|
slots: r
|
|
669
670
|
}) }) : null,
|
|
670
|
-
n.timeline ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
671
|
+
n.timeline ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(w, {
|
|
671
672
|
timeline: n.timeline,
|
|
672
673
|
slots: r
|
|
673
674
|
}) }) : null,
|
|
@@ -693,15 +694,15 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
693
694
|
...t(n.kbdEvent),
|
|
694
695
|
children: n.kbdEventText
|
|
695
696
|
}),
|
|
696
|
-
n.popover ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
697
|
+
n.popover ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(E, {
|
|
697
698
|
popover: n.popover,
|
|
698
699
|
slots: r
|
|
699
700
|
}) }) : null,
|
|
700
|
-
n.rowPanel ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
701
|
+
n.rowPanel ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(D, {
|
|
701
702
|
panel: n.rowPanel,
|
|
702
703
|
slots: r
|
|
703
704
|
}) }) : null,
|
|
704
|
-
n.editor ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(
|
|
705
|
+
n.editor ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(O, {
|
|
705
706
|
editor: n.editor,
|
|
706
707
|
slots: r
|
|
707
708
|
}) }) : null,
|
|
@@ -715,11 +716,11 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
|
|
|
715
716
|
}
|
|
716
717
|
//#endregion
|
|
717
718
|
//#region libs/mintplayer-react-bootstrap/scheduler/src/generated/BsScheduler.generated.tsx
|
|
718
|
-
var
|
|
719
|
-
l("scheduler",
|
|
720
|
-
let
|
|
721
|
-
s(
|
|
722
|
-
let
|
|
719
|
+
var A = [], j = [], M = o(function({ events: e = A, resources: t = j, options: n = null, readonly: i = !1, eventEditor: a = !0, locale: o = null, firstDayOfWeek: u = null, slotDuration: f = null, timeFormat: m = null, view: h = null, date: v = null, selectedEvent: y = null, selectedRange: b = null, onEventSelected: x, onEventDblClick: S, onEventCreate: C, onEventUpdate: w, onEventDelete: T, onDateClick: E, onSelectionChanged: D, onResourceCreate: O, onGroupCreate: M, onResourceUpdate: N, onResourceDelete: P, onViewChange: F, onDateChange: I, onSelectedEventChange: L, onSelectedRangeChange: R, className: z, children: B, ...V }, H) {
|
|
720
|
+
l(p.key, p.css, { order: p.order }), l("scheduler", _);
|
|
721
|
+
let U = c(null);
|
|
722
|
+
s(H, () => U.current);
|
|
723
|
+
let W = r(g, {
|
|
723
724
|
events: e,
|
|
724
725
|
resources: t,
|
|
725
726
|
options: n,
|
|
@@ -728,26 +729,26 @@ var k = [], A = [], j = o(function({ events: e = k, resources: t = A, options: n
|
|
|
728
729
|
locale: o,
|
|
729
730
|
firstDayOfWeek: u,
|
|
730
731
|
slotDuration: f,
|
|
731
|
-
timeFormat:
|
|
732
|
-
view:
|
|
733
|
-
date:
|
|
734
|
-
selectedEvent:
|
|
735
|
-
selectedRange:
|
|
732
|
+
timeFormat: m,
|
|
733
|
+
view: h,
|
|
734
|
+
date: v,
|
|
735
|
+
selectedEvent: y,
|
|
736
|
+
selectedRange: b
|
|
736
737
|
}, {
|
|
737
738
|
idPrefix: "bs-scheduler",
|
|
738
|
-
label:
|
|
739
|
-
rootRef:
|
|
739
|
+
label: V["aria-label"],
|
|
740
|
+
rootRef: U,
|
|
740
741
|
emit: (e, t) => {
|
|
741
|
-
e === "eventSelected" &&
|
|
742
|
+
e === "eventSelected" && x?.(t), e === "eventDblClick" && S?.(t), e === "eventCreate" && C?.(t), e === "eventUpdate" && w?.(t), e === "eventDelete" && T?.(t), e === "dateClick" && E?.(t), e === "selectionChanged" && D?.(t), e === "resourceCreate" && O?.(t), e === "groupCreate" && M?.(t), e === "resourceUpdate" && N?.(t), e === "resourceDelete" && P?.(t), e === "viewChange" && F?.(t), e === "dateChange" && I?.(t), e === "selectedEventChange" && L?.(t), e === "selectedRangeChange" && R?.(t);
|
|
742
743
|
}
|
|
743
744
|
});
|
|
744
|
-
return /* @__PURE__ */ d(
|
|
745
|
-
...
|
|
746
|
-
className:
|
|
747
|
-
attrs:
|
|
748
|
-
rootRef:
|
|
749
|
-
children:
|
|
745
|
+
return /* @__PURE__ */ d(k, {
|
|
746
|
+
...W.props,
|
|
747
|
+
className: z,
|
|
748
|
+
attrs: V,
|
|
749
|
+
rootRef: U,
|
|
750
|
+
children: B
|
|
750
751
|
});
|
|
751
752
|
});
|
|
752
753
|
//#endregion
|
|
753
|
-
export {
|
|
754
|
+
export { M as BsScheduler, m as SchedulerStateManager, h as createInitialState, v as generateEventId, y as generateGroupId, b as generateResourceId };
|
package/select/index.mjs
CHANGED
|
@@ -4,12 +4,13 @@ import * as i from "react";
|
|
|
4
4
|
import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
|
|
5
5
|
import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
|
|
6
6
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
|
|
8
|
+
import { selectCore as p, selectScopedStyles as m } from "@mintplayer/ui-core/select";
|
|
8
9
|
//#region libs/mintplayer-react-bootstrap/select/src/generated/select.view.generated.tsx
|
|
9
|
-
function
|
|
10
|
+
function h(e, t) {
|
|
10
11
|
return typeof e == "function" ? e(t) : e;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function g({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
|
|
13
14
|
return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
|
|
14
15
|
"data-mps": "select",
|
|
15
16
|
...t(r.root),
|
|
@@ -31,12 +32,12 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
31
32
|
children: n.options.map((t, n) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
32
33
|
"data-mps": "select",
|
|
33
34
|
...e(t.bag),
|
|
34
|
-
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) :
|
|
35
|
+
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : h(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
|
|
35
36
|
}) }, t.key))
|
|
36
37
|
}) }) : /* @__PURE__ */ u(l, { children: n.options.map((t, n) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u("option", {
|
|
37
38
|
"data-mps": "select",
|
|
38
39
|
...e(t.bag),
|
|
39
|
-
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) :
|
|
40
|
+
children: r.rich ? /* @__PURE__ */ u(l, { children: a.option === void 0 ? /* @__PURE__ */ u(l, { children: t.option.label }) : h(a.option, { option: t.option }) }) : /* @__PURE__ */ u(l, { children: t.option.label })
|
|
40
41
|
}) }, t.key)) }) }, n.key)) }) : /* @__PURE__ */ u(l, { children: o ?? null })]
|
|
41
42
|
}), r.showFeedback ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
|
|
42
43
|
"data-mps": "select",
|
|
@@ -47,11 +48,11 @@ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
|
|
|
47
48
|
}
|
|
48
49
|
//#endregion
|
|
49
50
|
//#region libs/mintplayer-react-bootstrap/select/src/generated/BsSelect.generated.tsx
|
|
50
|
-
var
|
|
51
|
-
c("select",
|
|
52
|
-
let
|
|
53
|
-
o(
|
|
54
|
-
let
|
|
51
|
+
var _ = [], v = a(function({ size: e = "md", multiple: t = !1, numberVisible: n, disabled: i = !1, required: a = !1, invalid: l = !1, errorText: d, name: h, inputLabel: v, value: y = null, values: b = _, options: x, onValueChange: S, option: C, className: w, children: T, ...E }, D) {
|
|
52
|
+
c(f.key, f.css, { order: f.order }), c("select", m);
|
|
53
|
+
let O = s(null);
|
|
54
|
+
o(D, () => O.current);
|
|
55
|
+
let k = r(p, {
|
|
55
56
|
size: e,
|
|
56
57
|
multiple: t,
|
|
57
58
|
numberVisible: n,
|
|
@@ -59,27 +60,27 @@ var g = [], _ = a(function({ size: e = "md", multiple: t = !1, numberVisible: n,
|
|
|
59
60
|
required: a,
|
|
60
61
|
invalid: l,
|
|
61
62
|
errorText: d,
|
|
62
|
-
name:
|
|
63
|
-
inputLabel:
|
|
64
|
-
value:
|
|
65
|
-
values:
|
|
66
|
-
options:
|
|
63
|
+
name: h,
|
|
64
|
+
inputLabel: v,
|
|
65
|
+
value: y,
|
|
66
|
+
values: b,
|
|
67
|
+
options: x
|
|
67
68
|
}, {
|
|
68
69
|
idPrefix: "bs-select",
|
|
69
|
-
label:
|
|
70
|
-
rootRef:
|
|
70
|
+
label: E["aria-label"],
|
|
71
|
+
rootRef: O,
|
|
71
72
|
emit: (e, t) => {
|
|
72
|
-
e === "valueChange" &&
|
|
73
|
+
e === "valueChange" && S?.(t);
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
|
-
return /* @__PURE__ */ u(
|
|
76
|
-
...
|
|
77
|
-
slots: { option:
|
|
78
|
-
className:
|
|
79
|
-
attrs:
|
|
80
|
-
rootRef:
|
|
81
|
-
children:
|
|
76
|
+
return /* @__PURE__ */ u(g, {
|
|
77
|
+
...k.props,
|
|
78
|
+
slots: { option: C },
|
|
79
|
+
className: w,
|
|
80
|
+
attrs: E,
|
|
81
|
+
rootRef: O,
|
|
82
|
+
children: T
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
//#endregion
|
|
85
|
-
export {
|
|
86
|
+
export { v as BsSelect };
|
package/signature-pad/index.mjs
CHANGED
|
@@ -3,9 +3,10 @@ import { useCore as n } from "../machine/index.mjs";
|
|
|
3
3
|
import { forwardRef as r, useImperativeHandle as i, useRef as a } from "react";
|
|
4
4
|
import { installLightStyles as o } from "@mintplayer/ui-core/scoped-styles";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { bootstrapForms as u } from "@mintplayer/ui-core/bootstrap/forms";
|
|
7
|
+
import { signaturePadCore as d, signaturePadScopedStyles as f } from "@mintplayer/ui-core/signature-pad";
|
|
7
8
|
//#region libs/mintplayer-react-bootstrap/signature-pad/src/generated/signature-pad.view.generated.tsx
|
|
8
|
-
function
|
|
9
|
+
function p({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRef: u }) {
|
|
9
10
|
return /* @__PURE__ */ c(s, { children: /* @__PURE__ */ l("div", {
|
|
10
11
|
"data-mps": "signature-pad",
|
|
11
12
|
...e(n.root),
|
|
@@ -48,36 +49,36 @@ function f({ view: n, slots: r = {}, children: i, className: a, attrs: o, rootRe
|
|
|
48
49
|
}
|
|
49
50
|
//#endregion
|
|
50
51
|
//#region libs/mintplayer-react-bootstrap/signature-pad/src/generated/BsSignaturePad.generated.tsx
|
|
51
|
-
var
|
|
52
|
-
o("signature-pad",
|
|
53
|
-
let
|
|
54
|
-
i(
|
|
55
|
-
let
|
|
52
|
+
var m = { strokes: [] }, h = r(function({ signature: e = m, width: t = 500, height: r = 300, showAccessibilityToggle: s = !0, disabled: l = !1, required: h = !1, invalid: g = !1, errorText: _ = null, inputLabel: v = null, labels: y = null, onSignatureChange: b, className: x, children: S, ...C }, w) {
|
|
53
|
+
o(u.key, u.css, { order: u.order }), o("signature-pad", f);
|
|
54
|
+
let T = a(null);
|
|
55
|
+
i(w, () => T.current);
|
|
56
|
+
let E = n(d, {
|
|
56
57
|
signature: e,
|
|
57
58
|
width: t,
|
|
58
59
|
height: r,
|
|
59
60
|
showAccessibilityToggle: s,
|
|
60
61
|
disabled: l,
|
|
61
|
-
required:
|
|
62
|
-
invalid:
|
|
63
|
-
errorText:
|
|
64
|
-
inputLabel:
|
|
65
|
-
labels:
|
|
62
|
+
required: h,
|
|
63
|
+
invalid: g,
|
|
64
|
+
errorText: _,
|
|
65
|
+
inputLabel: v,
|
|
66
|
+
labels: y
|
|
66
67
|
}, {
|
|
67
68
|
idPrefix: "bs-signature-pad",
|
|
68
|
-
label:
|
|
69
|
-
rootRef:
|
|
69
|
+
label: C["aria-label"],
|
|
70
|
+
rootRef: T,
|
|
70
71
|
emit: (e, t) => {
|
|
71
|
-
e === "signatureChange" &&
|
|
72
|
+
e === "signatureChange" && b?.(t);
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
|
-
return /* @__PURE__ */ c(
|
|
75
|
-
...
|
|
76
|
-
className:
|
|
77
|
-
attrs:
|
|
78
|
-
rootRef:
|
|
79
|
-
children:
|
|
75
|
+
return /* @__PURE__ */ c(p, {
|
|
76
|
+
...E.props,
|
|
77
|
+
className: x,
|
|
78
|
+
attrs: C,
|
|
79
|
+
rootRef: T,
|
|
80
|
+
children: S
|
|
80
81
|
});
|
|
81
82
|
});
|
|
82
83
|
//#endregion
|
|
83
|
-
export {
|
|
84
|
+
export { h as BsSignaturePad };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
+
import { useCore as t } from "../machine/index.mjs";
|
|
3
|
+
import { forwardRef as n, useImperativeHandle as r, useRef as i } from "react";
|
|
4
|
+
import { installLightStyles as a } from "@mintplayer/ui-core/scoped-styles";
|
|
5
|
+
import { Fragment as o, jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import { spinnerCore as c, spinnerScopedStyles as l } from "@mintplayer/ui-core/spinner";
|
|
7
|
+
import { bootstrapSpinners as u } from "@mintplayer/ui-core/bootstrap/spinners";
|
|
8
|
+
//#region libs/mintplayer-react-bootstrap/spinner/src/generated/spinner.view.generated.tsx
|
|
9
|
+
function d({ root: t, label: n, slots: r = {}, children: i, className: a, attrs: c, rootRef: l }) {
|
|
10
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
11
|
+
"data-mps": "spinner",
|
|
12
|
+
...e(t),
|
|
13
|
+
ref: l,
|
|
14
|
+
...c,
|
|
15
|
+
role: t.role ?? c?.role,
|
|
16
|
+
className: [t.class, a].filter(Boolean).join(" ") || void 0,
|
|
17
|
+
children: /* @__PURE__ */ s("span", {
|
|
18
|
+
"data-mps": "spinner",
|
|
19
|
+
className: "visually-hidden",
|
|
20
|
+
children: n
|
|
21
|
+
})
|
|
22
|
+
}) });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region libs/mintplayer-react-bootstrap/spinner/src/generated/BsSpinner.generated.tsx
|
|
26
|
+
var f = n(function({ type: e = "border", color: n = null, small: o = !1, label: f = "Loading…", className: p, children: m, ...h }, g) {
|
|
27
|
+
a(u.key, u.css, { order: u.order }), a("spinner", l);
|
|
28
|
+
let _ = i(null);
|
|
29
|
+
r(g, () => _.current);
|
|
30
|
+
let v = t(c, {
|
|
31
|
+
type: e,
|
|
32
|
+
color: n,
|
|
33
|
+
small: o,
|
|
34
|
+
label: f
|
|
35
|
+
}, {
|
|
36
|
+
idPrefix: "bs-spinner",
|
|
37
|
+
label: h["aria-label"],
|
|
38
|
+
rootRef: _,
|
|
39
|
+
emit: () => void 0
|
|
40
|
+
});
|
|
41
|
+
return /* @__PURE__ */ s(d, {
|
|
42
|
+
...v.props,
|
|
43
|
+
className: p,
|
|
44
|
+
attrs: h,
|
|
45
|
+
rootRef: _,
|
|
46
|
+
children: m
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { f as BsSpinner };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpinnerInputs } from '@mintplayer/ui-core/spinner';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface BsSpinnerProps extends Omit<React.HTMLAttributes<HTMLElementTagNameMap['div']>, 'type' | 'color' | 'small' | 'label'> {
|
|
4
|
+
type?: SpinnerInputs['type'];
|
|
5
|
+
color?: SpinnerInputs['color'];
|
|
6
|
+
small?: SpinnerInputs['small'];
|
|
7
|
+
label?: SpinnerInputs['label'];
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/** Bootstrap's spinner: a `role="status"` loading indicator whose visually hidden `label` a screen reader announces (#452). */
|
|
11
|
+
export declare const BsSpinner: React.ForwardRefExoticComponent<BsSpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsSpinner, type BsSpinnerProps } from './BsSpinner.generated';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpinnerProps } from '@mintplayer/ui-core/spinner';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type SpinnerTemplateProps = {
|
|
4
|
+
root: SpinnerProps['root'];
|
|
5
|
+
label: SpinnerProps['label'];
|
|
6
|
+
} & {
|
|
7
|
+
slots?: {};
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Merged onto the root element after the bag. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** The consumer's remaining attributes, spread onto the root element. */
|
|
12
|
+
attrs?: Record<string, unknown>;
|
|
13
|
+
rootRef?: React.Ref<HTMLElementTagNameMap['div']>;
|
|
14
|
+
};
|
|
15
|
+
export declare function SpinnerTemplate({ root, label, slots, children, className, attrs, rootRef }: SpinnerTemplateProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated';
|