@mintplayer/react-bootstrap 19.0.0 → 19.1.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/checkbox/index.mjs +14 -0
- package/checkbox/src/BsCheckbox.d.ts +11 -0
- package/checkbox/src/index.d.ts +1 -0
- package/datatable/index.mjs +20 -0
- package/datatable/src/BsDatatable.d.ts +25 -0
- package/datatable/src/index.d.ts +1 -0
- package/datepicker/index.mjs +17 -0
- package/datepicker/src/BsDatepicker.d.ts +17 -0
- package/datepicker/src/index.d.ts +1 -0
- package/datetime-picker/index.mjs +16 -0
- package/datetime-picker/src/BsDatetimePicker.d.ts +13 -0
- package/datetime-picker/src/index.d.ts +1 -0
- package/dock/index.mjs +14 -0
- package/dock/src/BsDockManager.d.ts +17 -0
- package/dock/src/index.d.ts +1 -0
- package/file-manager/index.mjs +20 -0
- package/file-manager/src/BsFileManager.d.ts +20 -0
- package/file-manager/src/index.d.ts +1 -0
- package/multi-range/index.mjs +15 -0
- package/multi-range/src/BsMultiRange.d.ts +12 -0
- package/multi-range/src/index.d.ts +1 -0
- package/otp-input/index.mjs +15 -0
- package/otp-input/src/BsOtpInput.d.ts +11 -0
- package/otp-input/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/pagination/index.mjs +14 -0
- package/pagination/src/BsPagination.d.ts +11 -0
- package/pagination/src/index.d.ts +1 -0
- package/query-builder/index.mjs +20 -0
- package/query-builder/src/BsQueryBuilder.d.ts +29 -0
- package/query-builder/src/index.d.ts +1 -0
- package/radio/index.mjs +14 -0
- package/radio/src/BsRadio.d.ts +10 -0
- package/radio/src/index.d.ts +1 -0
- package/ribbon/index.mjs +138 -0
- package/ribbon/src/BsRibbon.d.ts +82 -0
- package/ribbon/src/index.d.ts +1 -0
- package/scheduler/index.mjs +21 -0
- package/scheduler/src/BsScheduler.d.ts +54 -0
- package/scheduler/src/index.d.ts +1 -0
- package/select/index.mjs +14 -0
- package/select/src/BsSelect.d.ts +15 -0
- package/select/src/index.d.ts +1 -0
- package/splitter/index.mjs +16 -0
- package/splitter/src/BsSplitter.d.ts +16 -0
- package/splitter/src/index.d.ts +1 -0
- package/tab-control/index.mjs +19 -0
- package/tab-control/src/BsTabControl.d.ts +14 -0
- package/tab-control/src/index.d.ts +1 -0
- package/tile-manager/index.mjs +16 -0
- package/tile-manager/src/BsTileManager.d.ts +23 -0
- package/tile-manager/src/index.d.ts +1 -0
- package/timepicker/index.mjs +22 -0
- package/timepicker/src/BsTimeList.d.ts +11 -0
- package/timepicker/src/BsTimepicker.d.ts +11 -0
- package/timepicker/src/index.d.ts +2 -0
- package/toggle-button/index.mjs +14 -0
- package/toggle-button/src/BsToggleButton.d.ts +10 -0
- package/toggle-button/src/index.d.ts +1 -0
- package/treeview/index.mjs +16 -0
- package/treeview/src/BsTreeview.d.ts +14 -0
- package/treeview/src/index.d.ts +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as o } from "@lit/react";
|
|
3
|
+
import { MpCheckbox as t } from "@mintplayer/web-components/checkbox";
|
|
4
|
+
const c = o({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-checkbox",
|
|
7
|
+
elementClass: t,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: "change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
c as BsCheckbox
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpCheckbox, CheckboxChangeEventDetail } from '@mintplayer/web-components/checkbox';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-checkbox>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Typed props extend off MpCheckbox; the `events`
|
|
6
|
+
* map surfaces the WC's CustomEvent dispatch as an idiomatic React
|
|
7
|
+
* `onChange` prop with full detail typing.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BsCheckbox: import('@lit/react').ReactWebComponent<MpCheckbox, {
|
|
10
|
+
onChange: EventName<CustomEvent<CheckboxChangeEventDetail>>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsCheckbox } from './BsCheckbox';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { createComponent as e } from "@lit/react";
|
|
3
|
+
import { MpDatatable as t } from "@mintplayer/web-components/datatable";
|
|
4
|
+
const l = e({
|
|
5
|
+
react: a,
|
|
6
|
+
tagName: "mp-datatable",
|
|
7
|
+
elementClass: t,
|
|
8
|
+
events: {
|
|
9
|
+
onPageChange: "mp-datatable-page-change",
|
|
10
|
+
onPerPageChange: "mp-datatable-per-page-change",
|
|
11
|
+
onSortChange: "mp-datatable-sort-change",
|
|
12
|
+
onRowClick: "mp-datatable-row-click",
|
|
13
|
+
onRowDblClick: "mp-datatable-row-dblclick",
|
|
14
|
+
onRowContextMenu: "mp-datatable-row-contextmenu",
|
|
15
|
+
onSelectionChange: "mp-datatable-selection-change"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
l as BsDatatable
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpDatatable, RowEventDetail, SortChangeEventDetail, SelectionChangeEventDetail } from '@mintplayer/web-components/datatable';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-datatable>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. The `events` map surfaces each CustomEvent the WC
|
|
6
|
+
* dispatches as an idiomatic React `on*` prop with full detail typing.
|
|
7
|
+
*
|
|
8
|
+
* Note: complex props like `columns` and `rows` are typed by the
|
|
9
|
+
* MpDatatable class fields. Set them as JS objects via the spread/prop
|
|
10
|
+
* APIs; @lit/react forwards them as properties (not attributes) so
|
|
11
|
+
* arrays/functions/Maps round-trip correctly.
|
|
12
|
+
*/
|
|
13
|
+
export declare const BsDatatable: import('@lit/react').ReactWebComponent<MpDatatable, {
|
|
14
|
+
onPageChange: EventName<CustomEvent<{
|
|
15
|
+
page: number;
|
|
16
|
+
}>>;
|
|
17
|
+
onPerPageChange: EventName<CustomEvent<{
|
|
18
|
+
perPage: number;
|
|
19
|
+
}>>;
|
|
20
|
+
onSortChange: EventName<CustomEvent<SortChangeEventDetail>>;
|
|
21
|
+
onRowClick: EventName<CustomEvent<RowEventDetail>>;
|
|
22
|
+
onRowDblClick: EventName<CustomEvent<RowEventDetail>>;
|
|
23
|
+
onRowContextMenu: EventName<CustomEvent<RowEventDetail>>;
|
|
24
|
+
onSelectionChange: EventName<CustomEvent<SelectionChangeEventDetail>>;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsDatatable } from './BsDatatable';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpDatepickerElement as n } from "@mintplayer/web-components/datepicker";
|
|
4
|
+
const r = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-datepicker",
|
|
7
|
+
elementClass: n,
|
|
8
|
+
events: {
|
|
9
|
+
onSelectedDateChange: "selected-date-change",
|
|
10
|
+
onCurrentMonthChange: "current-month-change",
|
|
11
|
+
onOpened: "opened",
|
|
12
|
+
onClosed: "closed"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
r as BsDatepicker
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpDatepickerElement } from '@mintplayer/web-components/datepicker';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-datepicker>`. Side-effect-registers the WC via the
|
|
5
|
+
* import above. Surfaces the WC's `selected-date-change` /
|
|
6
|
+
* `current-month-change` / `opened` / `closed` events as React props.
|
|
7
|
+
*
|
|
8
|
+
* `selectedDate` / `currentMonth` / `disableDateFn` / `min` / `max` are
|
|
9
|
+
* `attribute: false` class fields on the WC — pass them as JS objects (Date
|
|
10
|
+
* instances, functions) and @lit/react forwards them as properties.
|
|
11
|
+
*/
|
|
12
|
+
export declare const BsDatepicker: import('@lit/react').ReactWebComponent<MpDatepickerElement, {
|
|
13
|
+
onSelectedDateChange: EventName<CustomEvent<Date>>;
|
|
14
|
+
onCurrentMonthChange: EventName<CustomEvent<Date>>;
|
|
15
|
+
onOpened: EventName<CustomEvent<void>>;
|
|
16
|
+
onClosed: EventName<CustomEvent<void>>;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsDatepicker } from './BsDatepicker';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpDatetimePickerElement as o } from "@mintplayer/web-components/datetime-picker";
|
|
4
|
+
const n = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-datetime-picker",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onValueChange: "value-change",
|
|
10
|
+
onOpened: "opened",
|
|
11
|
+
onClosed: "closed"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
n as BsDatetimePicker
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpDatetimePickerElement } from '@mintplayer/web-components/datetime-picker';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-datetime-picker>`. Side-effect-registers the WC
|
|
5
|
+
* via the import above. The `value` prop is a `Date | null` JS object
|
|
6
|
+
* forwarded as a class property (attribute: false on the WC); the
|
|
7
|
+
* `value-change` CustomEvent<Date | null> surfaces as React `onValueChange`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BsDatetimePicker: import('@lit/react').ReactWebComponent<MpDatetimePickerElement, {
|
|
10
|
+
onValueChange: EventName<CustomEvent<Date | null>>;
|
|
11
|
+
onOpened: EventName<CustomEvent<"date" | "time">>;
|
|
12
|
+
onClosed: EventName<CustomEvent<"date" | "time">>;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsDatetimePicker } from './BsDatetimePicker';
|
package/dock/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as a } from "@lit/react";
|
|
3
|
+
import { MintDockManagerElement as o } from "@mintplayer/web-components/dock";
|
|
4
|
+
const m = a({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mint-dock-manager",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onLayoutChanged: "dock-layout-changed"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
m as BsDockManager
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MintDockManagerElement, DockLayoutSnapshot } from '@mintplayer/web-components/dock';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mint-dock-manager>`. Side-effect-registers the WC
|
|
5
|
+
* via the import above. The `layout` JS prop is an object, so @lit/react
|
|
6
|
+
* forwards it as a property — pass a snapshot directly, no JSON
|
|
7
|
+
* stringification needed.
|
|
8
|
+
*
|
|
9
|
+
* Project pane content via native named slots:
|
|
10
|
+
* <BsDockManager layout={layout}>
|
|
11
|
+
* <div slot="panel-1">…</div>
|
|
12
|
+
* <div slot="panel-2">…</div>
|
|
13
|
+
* </BsDockManager>
|
|
14
|
+
*/
|
|
15
|
+
export declare const BsDockManager: import('@lit/react').ReactWebComponent<MintDockManagerElement, {
|
|
16
|
+
onLayoutChanged: EventName<CustomEvent<DockLayoutSnapshot>>;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsDockManager } from './BsDockManager';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as o } from "@lit/react";
|
|
3
|
+
import { MpFileManager as n } from "@mintplayer/web-components/file-manager";
|
|
4
|
+
const p = o({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-file-manager",
|
|
7
|
+
elementClass: n,
|
|
8
|
+
events: {
|
|
9
|
+
onNavigate: "mp-navigate",
|
|
10
|
+
onNodeOpen: "mp-node-open",
|
|
11
|
+
onSelectionChange: "mp-selection-change",
|
|
12
|
+
onUploadRequest: "mp-upload-request",
|
|
13
|
+
onOperation: "mp-operation",
|
|
14
|
+
onChildrenLoaded: "mp-children-loaded",
|
|
15
|
+
onError: "mp-error"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
p as BsFileManager
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpFileManager, NavigateEventDetail, NodeOpenEventDetail, SelectionChangeEventDetail, UploadRequestEventDetail, OperationEventDetail } from '@mintplayer/web-components/file-manager';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-file-manager>`. Side-effect-registers the WC
|
|
5
|
+
* via the import above. Surfaces the seven `mp-*` events the WC
|
|
6
|
+
* dispatches with full detail typing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BsFileManager: import('@lit/react').ReactWebComponent<MpFileManager, {
|
|
9
|
+
onNavigate: EventName<CustomEvent<NavigateEventDetail>>;
|
|
10
|
+
onNodeOpen: EventName<CustomEvent<NodeOpenEventDetail>>;
|
|
11
|
+
onSelectionChange: EventName<CustomEvent<SelectionChangeEventDetail>>;
|
|
12
|
+
onUploadRequest: EventName<CustomEvent<UploadRequestEventDetail>>;
|
|
13
|
+
onOperation: EventName<CustomEvent<OperationEventDetail>>;
|
|
14
|
+
onChildrenLoaded: EventName<CustomEvent<{
|
|
15
|
+
folderId: string | null;
|
|
16
|
+
}>>;
|
|
17
|
+
onError: EventName<CustomEvent<{
|
|
18
|
+
message: string;
|
|
19
|
+
}>>;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsFileManager } from './BsFileManager';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MintMultiRangeElement as a } from "@mintplayer/web-components/multi-range";
|
|
4
|
+
const o = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-multi-range",
|
|
7
|
+
elementClass: a,
|
|
8
|
+
events: {
|
|
9
|
+
onValueInput: "value-input",
|
|
10
|
+
onValueChange: "value-change"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
o as BsMultiRange
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MintMultiRangeElement } from '@mintplayer/web-components/multi-range';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-multi-range>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Surfaces both events the WC emits — `value-input`
|
|
6
|
+
* (continuous, fires on each thumb drag) and `value-change` (committed,
|
|
7
|
+
* fires on pointer release).
|
|
8
|
+
*/
|
|
9
|
+
export declare const BsMultiRange: import('@lit/react').ReactWebComponent<MintMultiRangeElement, {
|
|
10
|
+
onValueInput: EventName<CustomEvent<number[]>>;
|
|
11
|
+
onValueChange: EventName<CustomEvent<number[]>>;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsMultiRange } from './BsMultiRange';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MintOtpInputElement as o } from "@mintplayer/web-components/otp-input";
|
|
4
|
+
const m = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-otp-input",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onValueChange: "value-change",
|
|
10
|
+
onComplete: "complete"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
m as BsOtpInput
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MintOtpInputElement } from '@mintplayer/web-components/otp-input';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-otp-input>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Surfaces both `value-change` (fires on every
|
|
6
|
+
* character) and `complete` (fires once when every slot is filled).
|
|
7
|
+
*/
|
|
8
|
+
export declare const BsOtpInput: import('@lit/react').ReactWebComponent<MintOtpInputElement, {
|
|
9
|
+
onValueChange: EventName<CustomEvent<string>>;
|
|
10
|
+
onComplete: EventName<CustomEvent<string>>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsOtpInput } from './BsOtpInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "React 19 wrappers around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed React components via @lit/react's createComponent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { createComponent as n } from "@lit/react";
|
|
3
|
+
import { MpPagination as t } from "@mintplayer/web-components/pagination";
|
|
4
|
+
const i = n({
|
|
5
|
+
react: a,
|
|
6
|
+
tagName: "mp-pagination",
|
|
7
|
+
elementClass: t,
|
|
8
|
+
events: {
|
|
9
|
+
onMpPaginationPageChange: "mp-pagination-page-change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
i as BsPagination
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpPagination, PageChangeEventDetail } from '@mintplayer/web-components/pagination';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-pagination>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. The pagination WC fires its own custom event name
|
|
6
|
+
* (`mp-pagination-page-change`); the `events` map below surfaces it as
|
|
7
|
+
* an `onMpPaginationPageChange` typed React prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BsPagination: import('@lit/react').ReactWebComponent<MpPagination, {
|
|
10
|
+
onMpPaginationPageChange: EventName<CustomEvent<PageChangeEventDetail>>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsPagination } from './BsPagination';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as r } from "@lit/react";
|
|
3
|
+
import { MpQueryBuilderElement as o } from "@mintplayer/web-components/query-builder";
|
|
4
|
+
const a = r({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-query-builder",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onQueryChange: "query-change",
|
|
10
|
+
onSaveQuery: "save-query",
|
|
11
|
+
onLoadQuery: "load-query",
|
|
12
|
+
onDeleteQuery: "delete-query",
|
|
13
|
+
onSortByChange: "sort-by-change",
|
|
14
|
+
onSelectedFieldsChange: "selected-fields-change",
|
|
15
|
+
onRootEntityChange: "root-entity-change"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
a as BsQueryBuilder
|
|
20
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpQueryBuilderElement, Expression, SavedQuery, SortDescriptor } from '@mintplayer/web-components/query-builder';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-query-builder>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Surfaces the WC's seven CustomEvents with full detail
|
|
6
|
+
* typing.
|
|
7
|
+
*
|
|
8
|
+
* `schema`, `value`, `fieldsSelected`, `savedQueries` etc. are JS-object
|
|
9
|
+
* props — pass them as objects and @lit/react forwards them as properties.
|
|
10
|
+
*/
|
|
11
|
+
export declare const BsQueryBuilder: import('@lit/react').ReactWebComponent<MpQueryBuilderElement, {
|
|
12
|
+
onQueryChange: EventName<CustomEvent<{
|
|
13
|
+
tree: Expression;
|
|
14
|
+
}>>;
|
|
15
|
+
onSaveQuery: EventName<CustomEvent<SavedQuery>>;
|
|
16
|
+
onLoadQuery: EventName<CustomEvent<SavedQuery>>;
|
|
17
|
+
onDeleteQuery: EventName<CustomEvent<{
|
|
18
|
+
id: string;
|
|
19
|
+
}>>;
|
|
20
|
+
onSortByChange: EventName<CustomEvent<{
|
|
21
|
+
sortBy: SortDescriptor[];
|
|
22
|
+
}>>;
|
|
23
|
+
onSelectedFieldsChange: EventName<CustomEvent<{
|
|
24
|
+
selectedFields: string[];
|
|
25
|
+
}>>;
|
|
26
|
+
onRootEntityChange: EventName<CustomEvent<{
|
|
27
|
+
rootEntity: string;
|
|
28
|
+
}>>;
|
|
29
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsQueryBuilder } from './BsQueryBuilder';
|
package/radio/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as o } from "@lit/react";
|
|
3
|
+
import { MpRadio as a } from "@mintplayer/web-components/radio";
|
|
4
|
+
const r = o({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-radio",
|
|
7
|
+
elementClass: a,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: "change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
r as BsRadio
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpRadio, RadioChangeEventDetail } from '@mintplayer/web-components/radio';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-radio>`. Side-effect-registers the WC via the
|
|
5
|
+
* import above. The `events` map surfaces the WC's CustomEvent dispatch
|
|
6
|
+
* as an idiomatic React `onChange` prop with full detail typing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BsRadio: import('@lit/react').ReactWebComponent<MpRadio, {
|
|
9
|
+
onChange: EventName<CustomEvent<RadioChangeEventDetail>>;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsRadio } from './BsRadio';
|
package/ribbon/index.mjs
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpRibbon as o, MpQuickAccessToolbar as n, MpRibbonTab as a, MpRibbonContextualTabSet as b, MpRibbonGroup as l, MpRibbonButton as s, MpRibbonSplitButton as i, MpRibbonDropdownButton as m, MpRibbonMenuItem as c, MpRibbonMenuSeparator as r, MpRibbonToggleButton as p, MpRibbonCheckBox as g, MpRibbonComboBox as u, MpRibbonColorPicker as C, MpRibbonGroupButton as R, MpRibbonGallery as B, MpRibbonGalleryItem as M, MpRibbonTemplateItem as N } from "@mintplayer/web-components/ribbon";
|
|
4
|
+
const v = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-ribbon",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onTabChange: "tab-change",
|
|
10
|
+
onMinimizeToggle: "minimize-toggle"
|
|
11
|
+
}
|
|
12
|
+
}), T = t({
|
|
13
|
+
react: e,
|
|
14
|
+
tagName: "mp-quick-access-toolbar",
|
|
15
|
+
elementClass: n
|
|
16
|
+
}), x = t({
|
|
17
|
+
react: e,
|
|
18
|
+
tagName: "mp-ribbon-tab",
|
|
19
|
+
elementClass: a
|
|
20
|
+
}), y = t({
|
|
21
|
+
react: e,
|
|
22
|
+
tagName: "mp-ribbon-contextual-tab-set",
|
|
23
|
+
elementClass: b,
|
|
24
|
+
events: {
|
|
25
|
+
onContextualVisibilityChange: "contextual-visibility-change"
|
|
26
|
+
}
|
|
27
|
+
}), G = t({
|
|
28
|
+
react: e,
|
|
29
|
+
tagName: "mp-ribbon-group",
|
|
30
|
+
elementClass: l,
|
|
31
|
+
events: {
|
|
32
|
+
onDialogLauncherClick: "dialog-launcher-click"
|
|
33
|
+
}
|
|
34
|
+
}), S = t({
|
|
35
|
+
react: e,
|
|
36
|
+
tagName: "mp-ribbon-button",
|
|
37
|
+
elementClass: s,
|
|
38
|
+
events: {
|
|
39
|
+
onItemClick: "item-click"
|
|
40
|
+
}
|
|
41
|
+
}), I = t({
|
|
42
|
+
react: e,
|
|
43
|
+
tagName: "mp-ribbon-split-button",
|
|
44
|
+
elementClass: i,
|
|
45
|
+
events: {
|
|
46
|
+
onMainAction: "main-action",
|
|
47
|
+
onItemClick: "item-click",
|
|
48
|
+
onMenuToggle: "menu-toggle"
|
|
49
|
+
}
|
|
50
|
+
}), d = t({
|
|
51
|
+
react: e,
|
|
52
|
+
tagName: "mp-ribbon-dropdown-button",
|
|
53
|
+
elementClass: m,
|
|
54
|
+
events: {
|
|
55
|
+
onMenuToggle: "menu-toggle"
|
|
56
|
+
}
|
|
57
|
+
}), f = t({
|
|
58
|
+
react: e,
|
|
59
|
+
tagName: "mp-ribbon-menu-item",
|
|
60
|
+
elementClass: c,
|
|
61
|
+
events: {
|
|
62
|
+
onMenuSelect: "menu-select"
|
|
63
|
+
}
|
|
64
|
+
}), w = t({
|
|
65
|
+
react: e,
|
|
66
|
+
tagName: "mp-ribbon-menu-separator",
|
|
67
|
+
elementClass: r
|
|
68
|
+
}), A = t({
|
|
69
|
+
react: e,
|
|
70
|
+
tagName: "mp-ribbon-toggle-button",
|
|
71
|
+
elementClass: p,
|
|
72
|
+
events: {
|
|
73
|
+
onToggle: "toggle"
|
|
74
|
+
}
|
|
75
|
+
}), D = t({
|
|
76
|
+
react: e,
|
|
77
|
+
tagName: "mp-ribbon-checkbox",
|
|
78
|
+
elementClass: g,
|
|
79
|
+
events: {
|
|
80
|
+
onCheckChange: "check-change"
|
|
81
|
+
}
|
|
82
|
+
}), z = t({
|
|
83
|
+
react: e,
|
|
84
|
+
tagName: "mp-ribbon-combobox",
|
|
85
|
+
elementClass: u,
|
|
86
|
+
events: {
|
|
87
|
+
onValueChange: "value-change"
|
|
88
|
+
}
|
|
89
|
+
}), P = t({
|
|
90
|
+
react: e,
|
|
91
|
+
tagName: "mp-ribbon-color-picker",
|
|
92
|
+
elementClass: C,
|
|
93
|
+
events: {
|
|
94
|
+
onColorChange: "color-change"
|
|
95
|
+
}
|
|
96
|
+
}), Q = t({
|
|
97
|
+
react: e,
|
|
98
|
+
tagName: "mp-ribbon-group-button",
|
|
99
|
+
elementClass: R,
|
|
100
|
+
events: {
|
|
101
|
+
onGroupSelect: "group-select"
|
|
102
|
+
}
|
|
103
|
+
}), V = t({
|
|
104
|
+
react: e,
|
|
105
|
+
tagName: "mp-ribbon-gallery",
|
|
106
|
+
elementClass: B
|
|
107
|
+
}), q = t({
|
|
108
|
+
react: e,
|
|
109
|
+
tagName: "mp-ribbon-gallery-item",
|
|
110
|
+
elementClass: M,
|
|
111
|
+
events: {
|
|
112
|
+
onGallerySelect: "gallery-select"
|
|
113
|
+
}
|
|
114
|
+
}), L = t({
|
|
115
|
+
react: e,
|
|
116
|
+
tagName: "mp-ribbon-template-item",
|
|
117
|
+
elementClass: N
|
|
118
|
+
});
|
|
119
|
+
export {
|
|
120
|
+
T as BsQuickAccessToolbar,
|
|
121
|
+
v as BsRibbon,
|
|
122
|
+
S as BsRibbonButton,
|
|
123
|
+
D as BsRibbonCheckBox,
|
|
124
|
+
P as BsRibbonColorPicker,
|
|
125
|
+
z as BsRibbonComboBox,
|
|
126
|
+
y as BsRibbonContextualTabSet,
|
|
127
|
+
d as BsRibbonDropdownButton,
|
|
128
|
+
V as BsRibbonGallery,
|
|
129
|
+
q as BsRibbonGalleryItem,
|
|
130
|
+
G as BsRibbonGroup,
|
|
131
|
+
Q as BsRibbonGroupButton,
|
|
132
|
+
f as BsRibbonMenuItem,
|
|
133
|
+
w as BsRibbonMenuSeparator,
|
|
134
|
+
I as BsRibbonSplitButton,
|
|
135
|
+
x as BsRibbonTab,
|
|
136
|
+
L as BsRibbonTemplateItem,
|
|
137
|
+
A as BsRibbonToggleButton
|
|
138
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpRibbon, MpQuickAccessToolbar, MpRibbonTab, MpRibbonContextualTabSet, MpRibbonGroup, MpRibbonButton, MpRibbonSplitButton, MpRibbonDropdownButton, MpRibbonMenuItem, MpRibbonMenuSeparator, MpRibbonToggleButton, MpRibbonCheckBox, MpRibbonComboBox, MpRibbonColorPicker, MpRibbonGroupButton, MpRibbonGallery, MpRibbonGalleryItem, MpRibbonTemplateItem, RibbonTabChangeEvent } from '@mintplayer/web-components/ribbon';
|
|
3
|
+
export declare const BsRibbon: import('@lit/react').ReactWebComponent<MpRibbon, {
|
|
4
|
+
onTabChange: EventName<CustomEvent<RibbonTabChangeEvent>>;
|
|
5
|
+
onMinimizeToggle: EventName<CustomEvent<{
|
|
6
|
+
minimized: boolean;
|
|
7
|
+
}>>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const BsQuickAccessToolbar: import('@lit/react').ReactWebComponent<MpQuickAccessToolbar, {}>;
|
|
10
|
+
export declare const BsRibbonTab: import('@lit/react').ReactWebComponent<MpRibbonTab, {}>;
|
|
11
|
+
export declare const BsRibbonContextualTabSet: import('@lit/react').ReactWebComponent<MpRibbonContextualTabSet, {
|
|
12
|
+
onContextualVisibilityChange: EventName<CustomEvent<{
|
|
13
|
+
hidden: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
}>>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const BsRibbonGroup: import('@lit/react').ReactWebComponent<MpRibbonGroup, {
|
|
19
|
+
onDialogLauncherClick: EventName<CustomEvent<{
|
|
20
|
+
groupId?: string;
|
|
21
|
+
}>>;
|
|
22
|
+
}>;
|
|
23
|
+
interface ItemClickDetail {
|
|
24
|
+
itemId?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const BsRibbonButton: import('@lit/react').ReactWebComponent<MpRibbonButton, {
|
|
27
|
+
onItemClick: EventName<CustomEvent<ItemClickDetail>>;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const BsRibbonSplitButton: import('@lit/react').ReactWebComponent<MpRibbonSplitButton, {
|
|
30
|
+
onMainAction: EventName<CustomEvent<ItemClickDetail>>;
|
|
31
|
+
onItemClick: EventName<CustomEvent<ItemClickDetail>>;
|
|
32
|
+
onMenuToggle: EventName<CustomEvent<{
|
|
33
|
+
itemId?: string;
|
|
34
|
+
open: boolean;
|
|
35
|
+
}>>;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const BsRibbonDropdownButton: import('@lit/react').ReactWebComponent<MpRibbonDropdownButton, {
|
|
38
|
+
onMenuToggle: EventName<CustomEvent<{
|
|
39
|
+
itemId?: string;
|
|
40
|
+
open: boolean;
|
|
41
|
+
}>>;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const BsRibbonMenuItem: import('@lit/react').ReactWebComponent<MpRibbonMenuItem, {
|
|
44
|
+
onMenuSelect: EventName<CustomEvent<ItemClickDetail>>;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const BsRibbonMenuSeparator: import('@lit/react').ReactWebComponent<MpRibbonMenuSeparator, {}>;
|
|
47
|
+
export declare const BsRibbonToggleButton: import('@lit/react').ReactWebComponent<MpRibbonToggleButton, {
|
|
48
|
+
onToggle: EventName<CustomEvent<{
|
|
49
|
+
itemId?: string;
|
|
50
|
+
pressed: boolean;
|
|
51
|
+
}>>;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const BsRibbonCheckBox: import('@lit/react').ReactWebComponent<MpRibbonCheckBox, {
|
|
54
|
+
onCheckChange: EventName<CustomEvent<{
|
|
55
|
+
itemId?: string;
|
|
56
|
+
checked: boolean;
|
|
57
|
+
}>>;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const BsRibbonComboBox: import('@lit/react').ReactWebComponent<MpRibbonComboBox, {
|
|
60
|
+
onValueChange: EventName<CustomEvent<{
|
|
61
|
+
itemId?: string;
|
|
62
|
+
value: unknown;
|
|
63
|
+
}>>;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const BsRibbonColorPicker: import('@lit/react').ReactWebComponent<MpRibbonColorPicker, {
|
|
66
|
+
onColorChange: EventName<CustomEvent<{
|
|
67
|
+
itemId?: string;
|
|
68
|
+
color: string;
|
|
69
|
+
}>>;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const BsRibbonGroupButton: import('@lit/react').ReactWebComponent<MpRibbonGroupButton, {
|
|
72
|
+
onGroupSelect: EventName<CustomEvent<{
|
|
73
|
+
itemId?: string;
|
|
74
|
+
value: unknown;
|
|
75
|
+
}>>;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const BsRibbonGallery: import('@lit/react').ReactWebComponent<MpRibbonGallery, {}>;
|
|
78
|
+
export declare const BsRibbonGalleryItem: import('@lit/react').ReactWebComponent<MpRibbonGalleryItem, {
|
|
79
|
+
onGallerySelect: EventName<CustomEvent<ItemClickDetail>>;
|
|
80
|
+
}>;
|
|
81
|
+
export declare const BsRibbonTemplateItem: import('@lit/react').ReactWebComponent<MpRibbonTemplateItem, {}>;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BsRibbon';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpScheduler as n } from "@mintplayer/web-components/scheduler";
|
|
4
|
+
const a = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-scheduler",
|
|
7
|
+
elementClass: n,
|
|
8
|
+
events: {
|
|
9
|
+
onEventSelected: "event-selected",
|
|
10
|
+
onEventDblClick: "event-dblclick",
|
|
11
|
+
onEventCreate: "event-create",
|
|
12
|
+
onEventUpdate: "event-update",
|
|
13
|
+
onEventDelete: "event-delete",
|
|
14
|
+
onDateClick: "date-click",
|
|
15
|
+
onViewChange: "view-change",
|
|
16
|
+
onSelectionChange: "selection-change"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
a as BsScheduler
|
|
21
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpScheduler } from '@mintplayer/web-components/scheduler';
|
|
3
|
+
import { SchedulerEvent, TimeSlot, ViewType } from '@mintplayer/web-components/scheduler-core';
|
|
4
|
+
interface TimeRange {
|
|
5
|
+
start: Date;
|
|
6
|
+
end: Date;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* React wrapper for `<mp-scheduler>`. Side-effect-registers the WC via
|
|
10
|
+
* the import above. Maps every scheduler custom-event onto a typed
|
|
11
|
+
* `on*` React prop.
|
|
12
|
+
*
|
|
13
|
+
* Note: `events` and `resources` props are JS-shaped (arrays of
|
|
14
|
+
* SchedulerEvent / Resource); @lit/react forwards them as element
|
|
15
|
+
* properties.
|
|
16
|
+
*/
|
|
17
|
+
export declare const BsScheduler: import('@lit/react').ReactWebComponent<MpScheduler, {
|
|
18
|
+
onEventSelected: EventName<CustomEvent<{
|
|
19
|
+
event: SchedulerEvent;
|
|
20
|
+
originalEvent: Event;
|
|
21
|
+
}>>;
|
|
22
|
+
onEventDblClick: EventName<CustomEvent<{
|
|
23
|
+
event: SchedulerEvent;
|
|
24
|
+
originalEvent: Event;
|
|
25
|
+
}>>;
|
|
26
|
+
onEventCreate: EventName<CustomEvent<{
|
|
27
|
+
range: TimeRange;
|
|
28
|
+
view: ViewType;
|
|
29
|
+
resourceId?: string;
|
|
30
|
+
originalEvent: Event;
|
|
31
|
+
}>>;
|
|
32
|
+
onEventUpdate: EventName<CustomEvent<{
|
|
33
|
+
event: SchedulerEvent;
|
|
34
|
+
oldEvent: SchedulerEvent;
|
|
35
|
+
originalEvent: Event;
|
|
36
|
+
}>>;
|
|
37
|
+
onEventDelete: EventName<CustomEvent<{
|
|
38
|
+
event: SchedulerEvent;
|
|
39
|
+
originalEvent: Event;
|
|
40
|
+
}>>;
|
|
41
|
+
onDateClick: EventName<CustomEvent<{
|
|
42
|
+
date: Date;
|
|
43
|
+
originalEvent: Event;
|
|
44
|
+
}>>;
|
|
45
|
+
onViewChange: EventName<CustomEvent<{
|
|
46
|
+
view: ViewType;
|
|
47
|
+
}>>;
|
|
48
|
+
onSelectionChange: EventName<CustomEvent<{
|
|
49
|
+
range: TimeRange | null;
|
|
50
|
+
view: ViewType;
|
|
51
|
+
slots?: TimeSlot[];
|
|
52
|
+
}>>;
|
|
53
|
+
}>;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsScheduler } from './BsScheduler';
|
package/select/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpSelect as a } from "@mintplayer/web-components/select";
|
|
4
|
+
const r = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-select",
|
|
7
|
+
elementClass: a,
|
|
8
|
+
events: {
|
|
9
|
+
onValueChange: "value-change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
r as BsSelect
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpSelect, SelectChangeEventDetail } from '@mintplayer/web-components/select';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-select>`. Side-effect-registers the WC via the
|
|
5
|
+
* import above. Typed props come from the `MpSelect` class fields; the
|
|
6
|
+
* `events` map surfaces the WC's `value-change` CustomEvent as an idiomatic
|
|
7
|
+
* React `onValueChange` prop with full detail typing.
|
|
8
|
+
*
|
|
9
|
+
* Consumers can either pass an `options` JS array prop or place `<option>`
|
|
10
|
+
* children for the slot-mirror mode — both work through the same component
|
|
11
|
+
* because slotted light-DOM children are forwarded by React unchanged.
|
|
12
|
+
*/
|
|
13
|
+
export declare const BsSelect: import('@lit/react').ReactWebComponent<MpSelect, {
|
|
14
|
+
onValueChange: EventName<CustomEvent<SelectChangeEventDetail>>;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsSelect } from './BsSelect';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpSplitter as r } from "@mintplayer/web-components/splitter";
|
|
4
|
+
const o = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-splitter",
|
|
7
|
+
elementClass: r,
|
|
8
|
+
events: {
|
|
9
|
+
onResizeStart: "resize-start",
|
|
10
|
+
onResizing: "resizing",
|
|
11
|
+
onResizeEnd: "resize-end"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
o as BsSplitter
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpSplitter, SplitterResizeEventDetail } from '@mintplayer/web-components/splitter';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-splitter>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Surfaces the 3-stage resize lifecycle as React
|
|
6
|
+
* `on*` props with full detail typing.
|
|
7
|
+
*
|
|
8
|
+
* Consumers compose splitter panels as projected children (any
|
|
9
|
+
* elements; the splitter measures + sizes them based on the
|
|
10
|
+
* `mp-splitter-panel-` data attributes or its default heuristic).
|
|
11
|
+
*/
|
|
12
|
+
export declare const BsSplitter: import('@lit/react').ReactWebComponent<MpSplitter, {
|
|
13
|
+
onResizeStart: EventName<CustomEvent<SplitterResizeEventDetail>>;
|
|
14
|
+
onResizing: EventName<CustomEvent<SplitterResizeEventDetail>>;
|
|
15
|
+
onResizeEnd: EventName<CustomEvent<SplitterResizeEventDetail>>;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsSplitter } from './BsSplitter';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { createComponent as a } from "@lit/react";
|
|
3
|
+
import { MpTabControl as e, MpTabPage as o } from "@mintplayer/web-components/tab-control";
|
|
4
|
+
const n = a({
|
|
5
|
+
react: t,
|
|
6
|
+
tagName: "mp-tab-control",
|
|
7
|
+
elementClass: e,
|
|
8
|
+
events: {
|
|
9
|
+
onTabActivate: "tab-activate"
|
|
10
|
+
}
|
|
11
|
+
}), p = a({
|
|
12
|
+
react: t,
|
|
13
|
+
tagName: "mp-tab-page",
|
|
14
|
+
elementClass: o
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
n as BsTabControl,
|
|
18
|
+
p as BsTabPage
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpTabControl, MpTabPage, TabActivateEventDetail } from '@mintplayer/web-components/tab-control';
|
|
3
|
+
/**
|
|
4
|
+
* React wrappers for `<mp-tab-control>` + `<mp-tab-page>`. Side-effect-
|
|
5
|
+
* registers both WCs via the import above. Consumers compose them:
|
|
6
|
+
*
|
|
7
|
+
* <BsTabControl onTabActivate={…}>
|
|
8
|
+
* <BsTabPage tabId="..." title="...">...</BsTabPage>
|
|
9
|
+
* </BsTabControl>
|
|
10
|
+
*/
|
|
11
|
+
export declare const BsTabControl: import('@lit/react').ReactWebComponent<MpTabControl, {
|
|
12
|
+
onTabActivate: EventName<CustomEvent<TabActivateEventDetail>>;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const BsTabPage: import('@lit/react').ReactWebComponent<MpTabPage, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BsTabControl';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MintTileManagerElement as o } from "@mintplayer/web-components/tile-manager";
|
|
4
|
+
const i = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-tile-manager",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onTilelayoutchange: "tilelayoutchange",
|
|
10
|
+
onTilepositionchange: "tilepositionchange",
|
|
11
|
+
onTilegestureblocked: "tilegestureblocked"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
i as BsTileManager
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MintTileManagerElement, TileLayoutSnapshot, TileGestureBlocked, TilePosition } from '@mintplayer/web-components/tile-manager';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-tile-manager>`. Side-effect-registers the WC.
|
|
5
|
+
*
|
|
6
|
+
* The WC takes a `.tiles` JS prop (array of `{id, position, disableMove?,
|
|
7
|
+
* disableResize?, label?}`) and projects each tile's header + body into
|
|
8
|
+
* `${id}-header` / `${id}-content` named slots. Consumers render slot
|
|
9
|
+
* content as light-DOM children:
|
|
10
|
+
*
|
|
11
|
+
* <BsTileManager tiles={[{id:'t1', position:{...}}]}>
|
|
12
|
+
* <div slot="t1-header">Title</div>
|
|
13
|
+
* <div slot="t1-content">Body</div>
|
|
14
|
+
* </BsTileManager>
|
|
15
|
+
*/
|
|
16
|
+
export declare const BsTileManager: import('@lit/react').ReactWebComponent<MintTileManagerElement, {
|
|
17
|
+
onTilelayoutchange: EventName<CustomEvent<TileLayoutSnapshot>>;
|
|
18
|
+
onTilepositionchange: EventName<CustomEvent<{
|
|
19
|
+
id: string;
|
|
20
|
+
position: TilePosition;
|
|
21
|
+
}>>;
|
|
22
|
+
onTilegestureblocked: EventName<CustomEvent<TileGestureBlocked>>;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsTileManager } from './BsTileManager';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as t } from "@lit/react";
|
|
3
|
+
import { MpTimepickerElement as m, MpTimeListElement as i } from "@mintplayer/web-components/timepicker";
|
|
4
|
+
const a = t({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-timepicker",
|
|
7
|
+
elementClass: m,
|
|
8
|
+
events: {
|
|
9
|
+
onSelectedTimeChange: "selected-time-change"
|
|
10
|
+
}
|
|
11
|
+
}), c = t({
|
|
12
|
+
react: e,
|
|
13
|
+
tagName: "mp-time-list",
|
|
14
|
+
elementClass: i,
|
|
15
|
+
events: {
|
|
16
|
+
onSelectedTimeChange: "selected-time-change"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
c as BsTimeList,
|
|
21
|
+
a as BsTimepicker
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpTimeListElement } from '@mintplayer/web-components/timepicker';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-time-list>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Typed props extend off MpTimeListElement; the
|
|
6
|
+
* `events` map surfaces the WC's `selected-time-change` CustomEvent as
|
|
7
|
+
* an idiomatic React `onSelectedTimeChange` prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BsTimeList: import('@lit/react').ReactWebComponent<MpTimeListElement, {
|
|
10
|
+
onSelectedTimeChange: EventName<CustomEvent<Date>>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpTimepickerElement } from '@mintplayer/web-components/timepicker';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-timepicker>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. Typed props extend off MpTimepickerElement; the
|
|
6
|
+
* `events` map surfaces the WC's `selected-time-change` CustomEvent as
|
|
7
|
+
* an idiomatic React `onSelectedTimeChange` prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BsTimepicker: import('@lit/react').ReactWebComponent<MpTimepickerElement, {
|
|
10
|
+
onSelectedTimeChange: EventName<CustomEvent<Date>>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { createComponent as e } from "@lit/react";
|
|
3
|
+
import { MpToggleButton as o } from "@mintplayer/web-components/toggle-button";
|
|
4
|
+
const a = e({
|
|
5
|
+
react: t,
|
|
6
|
+
tagName: "mp-toggle-button",
|
|
7
|
+
elementClass: o,
|
|
8
|
+
events: {
|
|
9
|
+
onChange: "change"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
a as BsToggleButton
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpToggleButton, ToggleChangeEventDetail } from '@mintplayer/web-components/toggle-button';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-toggle-button>`. Side-effect-registers the WC via
|
|
5
|
+
* the import above. The WC fires a native-style `change` CustomEvent with
|
|
6
|
+
* `{ checked, value }` detail; surface it as a typed `onChange` React prop.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BsToggleButton: import('@lit/react').ReactWebComponent<MpToggleButton, {
|
|
9
|
+
onChange: EventName<CustomEvent<ToggleChangeEventDetail>>;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsToggleButton } from './BsToggleButton';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createComponent as o } from "@lit/react";
|
|
3
|
+
import { MpTreeview as r } from "@mintplayer/web-components/treeview";
|
|
4
|
+
const a = o({
|
|
5
|
+
react: e,
|
|
6
|
+
tagName: "mp-treeview",
|
|
7
|
+
elementClass: r,
|
|
8
|
+
events: {
|
|
9
|
+
onTreeNodeSelect: "tree-node-select",
|
|
10
|
+
onTreeNodeExpand: "tree-node-expand",
|
|
11
|
+
onTreeNodeCollapse: "tree-node-collapse"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
a as BsTreeview
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName } from '@lit/react';
|
|
2
|
+
import { MpTreeview, TreeNodeSelectEventDetail, TreeNodeExpandEventDetail, TreeNodeCollapseEventDetail } from '@mintplayer/web-components/treeview';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for `<mp-treeview>`. Side-effect-registers the WC.
|
|
5
|
+
*
|
|
6
|
+
* `items` is a JS-shaped array of `TreeNode`s — @lit/react forwards it
|
|
7
|
+
* as a property. `iconResolver` and `nodeRenderer` are functions and
|
|
8
|
+
* likewise flow through as properties.
|
|
9
|
+
*/
|
|
10
|
+
export declare const BsTreeview: import('@lit/react').ReactWebComponent<MpTreeview, {
|
|
11
|
+
onTreeNodeSelect: EventName<CustomEvent<TreeNodeSelectEventDetail>>;
|
|
12
|
+
onTreeNodeExpand: EventName<CustomEvent<TreeNodeExpandEventDetail>>;
|
|
13
|
+
onTreeNodeCollapse: EventName<CustomEvent<TreeNodeCollapseEventDetail>>;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BsTreeview } from './BsTreeview';
|