@mintplayer/vue-bootstrap 3.0.0 → 3.2.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 +30 -0
- package/checkbox/src/BsCheckbox.vue.d.ts +29 -0
- package/checkbox/src/index.d.ts +1 -0
- package/datatable/index.mjs +64 -0
- package/datatable/src/BsDatatable.vue.d.ts +56 -0
- package/datatable/src/index.d.ts +1 -0
- package/datepicker/index.mjs +30 -0
- package/datepicker/src/BsDatepicker.vue.d.ts +28 -0
- package/datepicker/src/index.d.ts +1 -0
- package/datetime-picker/index.mjs +30 -0
- package/datetime-picker/src/BsDatetimePicker.vue.d.ts +28 -0
- package/datetime-picker/src/index.d.ts +1 -0
- package/dock/index.mjs +30 -0
- package/dock/src/BsDockManager.vue.d.ts +29 -0
- package/dock/src/index.d.ts +1 -0
- package/file-manager/index.mjs +21 -0
- package/file-manager/src/BsFileManager.vue.d.ts +8 -0
- package/file-manager/src/index.d.ts +1 -0
- package/multi-range/index.mjs +28 -0
- package/multi-range/src/BsMultiRange.vue.d.ts +11 -0
- package/multi-range/src/index.d.ts +1 -0
- package/otp-input/index.mjs +28 -0
- package/otp-input/src/BsOtpInput.vue.d.ts +11 -0
- package/otp-input/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/pagination/index.mjs +28 -0
- package/pagination/src/BsPagination.vue.d.ts +11 -0
- package/pagination/src/index.d.ts +1 -0
- package/query-builder/index.mjs +43 -0
- package/query-builder/src/BsQueryBuilder.vue.d.ts +20 -0
- package/query-builder/src/index.d.ts +1 -0
- package/radio/index.mjs +30 -0
- package/radio/src/BsRadio.vue.d.ts +29 -0
- package/radio/src/index.d.ts +1 -0
- package/ribbon/index.mjs +48 -0
- package/ribbon/src/BsRibbon.vue.d.ts +29 -0
- package/ribbon/src/index.d.ts +2 -0
- package/scheduler/index.mjs +23 -0
- package/scheduler/src/BsScheduler.vue.d.ts +10 -0
- package/scheduler/src/index.d.ts +2 -0
- package/select/index.mjs +36 -0
- package/select/src/BsSelect.vue.d.ts +33 -0
- package/select/src/index.d.ts +1 -0
- package/splitter/index.mjs +15 -0
- package/splitter/src/BsSplitter.vue.d.ts +17 -0
- package/splitter/src/index.d.ts +2 -0
- package/tab-control/index.mjs +32 -0
- package/tab-control/src/BsTabControl.vue.d.ts +29 -0
- package/tab-control/src/index.d.ts +2 -0
- package/tile-manager/index.mjs +23 -0
- package/tile-manager/src/BsTileManager.vue.d.ts +25 -0
- package/tile-manager/src/index.d.ts +1 -0
- package/timepicker/index.mjs +55 -0
- package/timepicker/src/BsTimeList.vue.d.ts +28 -0
- package/timepicker/src/BsTimepicker.vue.d.ts +28 -0
- package/timepicker/src/index.d.ts +2 -0
- package/toggle-button/index.mjs +30 -0
- package/toggle-button/src/BsToggleButton.vue.d.ts +28 -0
- package/toggle-button/src/index.d.ts +1 -0
- package/treeview/index.mjs +53 -0
- package/treeview/src/BsTreeview.vue.d.ts +19 -0
- package/treeview/src/index.d.ts +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as r, useModel as s, ref as u, onMounted as d, watch as m, openBlock as i, createElementBlock as f, mergeProps as p, renderSlot as h } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/checkbox";
|
|
3
|
+
const _ = /* @__PURE__ */ r({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsCheckbox",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: { type: Boolean },
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(a) {
|
|
12
|
+
const o = s(a, "modelValue"), l = u(null), n = (e) => {
|
|
13
|
+
l.value && (l.value.checked = !!e);
|
|
14
|
+
};
|
|
15
|
+
d(() => n(o.value)), m(o, n);
|
|
16
|
+
function c(e) {
|
|
17
|
+
const t = e.detail;
|
|
18
|
+
t && (o.value = !!t.checked);
|
|
19
|
+
}
|
|
20
|
+
return (e, t) => (i(), f("mp-checkbox", p({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: l
|
|
23
|
+
}, e.$attrs, { onChange: c }), [
|
|
24
|
+
h(e.$slots, "default")
|
|
25
|
+
], 16));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_ as BsCheckbox
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MpCheckbox } from '@mintplayer/web-components/checkbox';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
el: MpCheckbox | null;
|
|
12
|
+
};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: boolean) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
el: MpCheckbox | null;
|
|
22
|
+
}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsCheckbox } from './BsCheckbox.vue';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as h, ref as v, onMounted as f, onBeforeUnmount as m, watch as o, openBlock as g, createElementBlock as C, mergeProps as w } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/datatable";
|
|
3
|
+
const K = /* @__PURE__ */ h({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsDatatable",
|
|
6
|
+
props: {
|
|
7
|
+
columns: {},
|
|
8
|
+
data: {},
|
|
9
|
+
rowKey: { type: Function },
|
|
10
|
+
tree: { type: Boolean },
|
|
11
|
+
idKey: {},
|
|
12
|
+
childCountKey: {},
|
|
13
|
+
treeIndent: {},
|
|
14
|
+
expandedIds: {},
|
|
15
|
+
selectionMode: {},
|
|
16
|
+
selectionStrategy: {},
|
|
17
|
+
selectedIds: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:expandedIds", "update:selectedIds", "fetchRequest", "rowExpand", "rowCollapse", "sortChange", "selectionChange", "rowClick", "rowDblClick", "rowContextMenu", "pageChange", "perPageChange"],
|
|
20
|
+
setup(i, { expose: r, emit: c }) {
|
|
21
|
+
const e = i, d = c, a = v(null), n = () => {
|
|
22
|
+
a.value && (a.value.columns = e.columns ?? [], a.value.data = e.data ?? [], e.rowKey !== void 0 && (a.value.rowKey = e.rowKey), e.tree !== void 0 && (a.value.tree = e.tree), e.idKey !== void 0 && (a.value.idKey = e.idKey), e.childCountKey !== void 0 && (a.value.childCountKey = e.childCountKey), e.treeIndent !== void 0 && (a.value.treeIndent = e.treeIndent), e.expandedIds !== void 0 && (a.value.expandedIds = e.expandedIds instanceof Set ? new Set(e.expandedIds) : new Set(e.expandedIds)), e.selectionMode !== void 0 && (a.value.selectionMode = e.selectionMode), e.selectionStrategy !== void 0 && (a.value.selectionStrategy = e.selectionStrategy), e.selectedIds !== void 0 && (a.value.selectedIds = [...e.selectedIds]));
|
|
23
|
+
}, s = {
|
|
24
|
+
"mp-datatable-fetch-request": (t) => d("fetchRequest", t.detail),
|
|
25
|
+
"mp-datatable-row-expand": (t) => d("rowExpand", t.detail),
|
|
26
|
+
"mp-datatable-row-collapse": (t) => d("rowCollapse", t.detail),
|
|
27
|
+
"mp-datatable-expanded-ids-change": (t) => {
|
|
28
|
+
const l = t.detail;
|
|
29
|
+
d("update:expandedIds", new Set(l.expandedIds));
|
|
30
|
+
},
|
|
31
|
+
"mp-datatable-sort-change": (t) => d("sortChange", t.detail),
|
|
32
|
+
"mp-datatable-selection-change": (t) => {
|
|
33
|
+
const l = t.detail;
|
|
34
|
+
d("selectionChange", l), d("update:selectedIds", [...l.selectedIds]);
|
|
35
|
+
},
|
|
36
|
+
"mp-datatable-row-click": (t) => d("rowClick", t.detail),
|
|
37
|
+
"mp-datatable-row-dblclick": (t) => d("rowDblClick", t.detail),
|
|
38
|
+
"mp-datatable-row-contextmenu": (t) => d("rowContextMenu", t.detail),
|
|
39
|
+
"mp-datatable-page-change": (t) => d("pageChange", t.detail),
|
|
40
|
+
"mp-datatable-per-page-change": (t) => d("perPageChange", t.detail)
|
|
41
|
+
}, p = () => {
|
|
42
|
+
if (a.value)
|
|
43
|
+
for (const [t, l] of Object.entries(s))
|
|
44
|
+
a.value.addEventListener(t, l);
|
|
45
|
+
}, u = () => {
|
|
46
|
+
if (a.value)
|
|
47
|
+
for (const [t, l] of Object.entries(s))
|
|
48
|
+
a.value.removeEventListener(t, l);
|
|
49
|
+
};
|
|
50
|
+
return f(() => {
|
|
51
|
+
n(), p();
|
|
52
|
+
}), m(u), o(() => e.columns, n, { deep: !1 }), o(() => e.data, n, { deep: !1 }), o(() => e.rowKey, n), o(() => e.tree, n), o(() => e.idKey, n), o(() => e.childCountKey, n), o(() => e.treeIndent, n), o(() => e.expandedIds, n, { deep: !1 }), o(() => e.selectionMode, n), o(() => e.selectionStrategy, n), o(() => e.selectedIds, n, { deep: !1 }), r({ el: a, setFetchResponse: (t, l) => {
|
|
53
|
+
a.value?.setFetchResponse(t, l);
|
|
54
|
+
}, invalidateChildren: (t) => {
|
|
55
|
+
a.value?.invalidateChildren(t);
|
|
56
|
+
} }), (t, l) => (g(), C("mp-datatable", w({
|
|
57
|
+
ref_key: "el",
|
|
58
|
+
ref: a
|
|
59
|
+
}, t.$attrs), null, 16));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
K as BsDatatable
|
|
64
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { MpDatatable, DatatableColumnDef, RowKey, DatatableSelectionMode, TreeIdKey, TreeSelectionStrategy, TreeFetchRequestDetail, TreeFetchResponse, TreeRowExpandDetail, RowEventDetail, SortChangeEventDetail, SelectionChangeEventDetail } from '@mintplayer/web-components/datatable';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
columns?: DatatableColumnDef[];
|
|
4
|
+
data?: unknown[];
|
|
5
|
+
rowKey?: RowKey;
|
|
6
|
+
tree?: boolean;
|
|
7
|
+
idKey?: TreeIdKey | string | null;
|
|
8
|
+
childCountKey?: string | null;
|
|
9
|
+
treeIndent?: number;
|
|
10
|
+
expandedIds?: Set<unknown> | ReadonlyArray<unknown>;
|
|
11
|
+
selectionMode?: DatatableSelectionMode;
|
|
12
|
+
selectionStrategy?: TreeSelectionStrategy;
|
|
13
|
+
selectedIds?: string[] | ReadonlyArray<string>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
16
|
+
el: import('vue').Ref<MpDatatable | null, MpDatatable | null>;
|
|
17
|
+
setFetchResponse: (parentId: unknown, response: TreeFetchResponse) => void;
|
|
18
|
+
invalidateChildren: (parentId?: unknown) => void;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
20
|
+
"update:expandedIds": (value: Set<unknown>) => any;
|
|
21
|
+
"update:selectedIds": (value: string[]) => any;
|
|
22
|
+
fetchRequest: (detail: TreeFetchRequestDetail) => any;
|
|
23
|
+
rowExpand: (detail: TreeRowExpandDetail<unknown>) => any;
|
|
24
|
+
rowCollapse: (detail: TreeRowExpandDetail<unknown>) => any;
|
|
25
|
+
sortChange: (detail: SortChangeEventDetail) => any;
|
|
26
|
+
selectionChange: (detail: SelectionChangeEventDetail) => any;
|
|
27
|
+
rowClick: (detail: RowEventDetail<unknown>) => any;
|
|
28
|
+
rowDblClick: (detail: RowEventDetail<unknown>) => any;
|
|
29
|
+
rowContextMenu: (detail: RowEventDetail<unknown>) => any;
|
|
30
|
+
pageChange: (detail: {
|
|
31
|
+
page: number;
|
|
32
|
+
}) => any;
|
|
33
|
+
perPageChange: (detail: {
|
|
34
|
+
perPage: number;
|
|
35
|
+
}) => any;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
|
+
"onUpdate:expandedIds"?: ((value: Set<unknown>) => any) | undefined;
|
|
38
|
+
"onUpdate:selectedIds"?: ((value: string[]) => any) | undefined;
|
|
39
|
+
onFetchRequest?: ((detail: TreeFetchRequestDetail) => any) | undefined;
|
|
40
|
+
onRowExpand?: ((detail: TreeRowExpandDetail<unknown>) => any) | undefined;
|
|
41
|
+
onRowCollapse?: ((detail: TreeRowExpandDetail<unknown>) => any) | undefined;
|
|
42
|
+
onSortChange?: ((detail: SortChangeEventDetail) => any) | undefined;
|
|
43
|
+
onSelectionChange?: ((detail: SelectionChangeEventDetail) => any) | undefined;
|
|
44
|
+
onRowClick?: ((detail: RowEventDetail<unknown>) => any) | undefined;
|
|
45
|
+
onRowDblClick?: ((detail: RowEventDetail<unknown>) => any) | undefined;
|
|
46
|
+
onRowContextMenu?: ((detail: RowEventDetail<unknown>) => any) | undefined;
|
|
47
|
+
onPageChange?: ((detail: {
|
|
48
|
+
page: number;
|
|
49
|
+
}) => any) | undefined;
|
|
50
|
+
onPerPageChange?: ((detail: {
|
|
51
|
+
perPage: number;
|
|
52
|
+
}) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
54
|
+
el: MpDatatable | null;
|
|
55
|
+
}, any>;
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsDatatable } from './BsDatatable.vue';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as s, useModel as c, ref as u, onMounted as d, watch as i, openBlock as m, createElementBlock as p, mergeProps as f, renderSlot as k } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/datepicker";
|
|
3
|
+
const h = /* @__PURE__ */ s({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsDatepicker",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(n) {
|
|
12
|
+
const t = c(n, "modelValue"), l = u(null), a = (e) => {
|
|
13
|
+
l.value && (l.value.selectedDate = e ?? null);
|
|
14
|
+
};
|
|
15
|
+
d(() => a(t.value)), i(t, a);
|
|
16
|
+
function r(e) {
|
|
17
|
+
const o = e.detail;
|
|
18
|
+
t.value = o instanceof Date ? o : null;
|
|
19
|
+
}
|
|
20
|
+
return (e, o) => (m(), p("mp-datepicker", f({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: l
|
|
23
|
+
}, e.$attrs, { onSelectedDateChange: r }), [
|
|
24
|
+
k(e.$slots, "default")
|
|
25
|
+
], 16));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
h as BsDatepicker
|
|
30
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: Date | null;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
el: unknown;
|
|
11
|
+
};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: Date | null) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
el: unknown;
|
|
21
|
+
}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsDatepicker } from './BsDatepicker.vue';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as s, useModel as u, ref as i, onMounted as m, watch as c, openBlock as d, createElementBlock as f, mergeProps as p, renderSlot as k } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/datetime-picker";
|
|
3
|
+
const _ = /* @__PURE__ */ s({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsDatetimePicker",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(n) {
|
|
12
|
+
const t = u(n, "modelValue"), l = i(null), a = (e) => {
|
|
13
|
+
l.value && (l.value.value = e ?? null);
|
|
14
|
+
};
|
|
15
|
+
m(() => a(t.value)), c(t, a);
|
|
16
|
+
function r(e) {
|
|
17
|
+
const o = e.detail;
|
|
18
|
+
t.value = o instanceof Date ? o : null;
|
|
19
|
+
}
|
|
20
|
+
return (e, o) => (d(), f("mp-datetime-picker", p({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: l
|
|
23
|
+
}, e.$attrs, { onValueChange: r }), [
|
|
24
|
+
k(e.$slots, "default")
|
|
25
|
+
], 16));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_ as BsDatetimePicker
|
|
30
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: Date | null;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
el: unknown;
|
|
11
|
+
};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: Date | null) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
el: unknown;
|
|
21
|
+
}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsDatetimePicker } from './BsDatetimePicker.vue';
|
package/dock/index.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as u, useModel as s, ref as c, onMounted as i, watch as d, openBlock as f, createElementBlock as m, mergeProps as p, renderSlot as y } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/dock";
|
|
3
|
+
const h = /* @__PURE__ */ u({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsDockManager",
|
|
6
|
+
props: {
|
|
7
|
+
layout: {},
|
|
8
|
+
layoutModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:layout"],
|
|
11
|
+
setup(l) {
|
|
12
|
+
const o = s(l, "layout"), t = c(null), n = (e) => {
|
|
13
|
+
t.value && (t.value.layout = e ?? null);
|
|
14
|
+
};
|
|
15
|
+
i(() => n(o.value)), d(o, n);
|
|
16
|
+
function r(e) {
|
|
17
|
+
const a = e.detail;
|
|
18
|
+
a && (o.value = a);
|
|
19
|
+
}
|
|
20
|
+
return (e, a) => (f(), m("mint-dock-manager", p({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: t
|
|
23
|
+
}, e.$attrs, { onDockLayoutChanged: r }), [
|
|
24
|
+
y(e.$slots, "default")
|
|
25
|
+
], 16));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
h as BsDockManager
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DockLayoutSnapshot } from '@mintplayer/web-components/dock';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
'layout'?: DockLayoutSnapshot | null;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
el: unknown;
|
|
12
|
+
};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:layout": (value: DockLayoutSnapshot | null) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:layout"?: ((value: DockLayoutSnapshot | null) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
el: unknown;
|
|
22
|
+
}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsDockManager } from './BsDockManager.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as t, ref as a, onMounted as l, watch as p, openBlock as c, createElementBlock as i, mergeProps as m } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/file-manager";
|
|
3
|
+
const _ = /* @__PURE__ */ t({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsFileManager",
|
|
6
|
+
props: {
|
|
7
|
+
nodes: {}
|
|
8
|
+
},
|
|
9
|
+
setup(o) {
|
|
10
|
+
const n = o, e = a(null), r = () => {
|
|
11
|
+
e.value && (e.value.nodes = n.nodes ?? []);
|
|
12
|
+
};
|
|
13
|
+
return l(r), p(() => n.nodes, r, { deep: !0 }), (s, f) => (c(), i("mp-file-manager", m({
|
|
14
|
+
ref_key: "el",
|
|
15
|
+
ref: e
|
|
16
|
+
}, s.$attrs), null, 16));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
_ as BsFileManager
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MpFileManager, FileSystemNode } from '@mintplayer/web-components/file-manager';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
nodes?: FileSystemNode[];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
|
+
el: MpFileManager | null;
|
|
7
|
+
}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsFileManager } from './BsFileManager.vue';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as u, useModel as s, ref as i, onMounted as m, watch as c, openBlock as d, createElementBlock as p, mergeProps as f } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/multi-range";
|
|
3
|
+
const v = /* @__PURE__ */ u({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsMultiRange",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(n) {
|
|
12
|
+
const l = s(n, "modelValue"), t = i(null), a = (e) => {
|
|
13
|
+
t.value && (t.value.value = e ?? []);
|
|
14
|
+
};
|
|
15
|
+
m(() => a(l.value)), c(l, a, { deep: !0 });
|
|
16
|
+
function r(e) {
|
|
17
|
+
const o = e.detail;
|
|
18
|
+
Array.isArray(o) && (l.value = [...o]);
|
|
19
|
+
}
|
|
20
|
+
return (e, o) => (d(), p("mp-multi-range", f({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: t
|
|
23
|
+
}, e.$attrs, { onValueChange: r }), null, 16));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
v as BsMultiRange
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: number[];
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: number[]) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
el: unknown;
|
|
10
|
+
}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsMultiRange } from './BsMultiRange.vue';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as r, useModel as s, ref as p, onMounted as i, watch as m, openBlock as c, createElementBlock as d, mergeProps as f } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/otp-input";
|
|
3
|
+
const V = /* @__PURE__ */ r({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsOtpInput",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(a) {
|
|
12
|
+
const t = s(a, "modelValue"), o = p(null), n = (e) => {
|
|
13
|
+
o.value && (o.value.value = e ?? "");
|
|
14
|
+
};
|
|
15
|
+
i(() => n(t.value)), m(t, n);
|
|
16
|
+
function u(e) {
|
|
17
|
+
const l = e.detail;
|
|
18
|
+
t.value = typeof l == "string" ? l : "";
|
|
19
|
+
}
|
|
20
|
+
return (e, l) => (c(), d("mp-otp-input", f({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: o
|
|
23
|
+
}, e.$attrs, { onValueChange: u }), null, 16));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
V as BsOtpInput
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
el: unknown;
|
|
10
|
+
}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsOtpInput } from './BsOtpInput.vue';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/vue-bootstrap",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Vue 3.5 SFC adapters around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed Vue components with v-model support for input WCs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as r, useModel as s, ref as u, onMounted as m, watch as c, openBlock as p, createElementBlock as d, mergeProps as f } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/pagination";
|
|
3
|
+
const _ = /* @__PURE__ */ r({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsPagination",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(l) {
|
|
12
|
+
const n = s(l, "modelValue"), o = u(null), a = (e) => {
|
|
13
|
+
o.value && (o.value.selectedPageNumber = typeof e == "number" ? e : 1);
|
|
14
|
+
};
|
|
15
|
+
m(() => a(n.value)), c(n, a);
|
|
16
|
+
function i(e) {
|
|
17
|
+
const t = e.detail;
|
|
18
|
+
n.value = t.page;
|
|
19
|
+
}
|
|
20
|
+
return (e, t) => (p(), d("mp-pagination", f({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: o
|
|
23
|
+
}, e.$attrs, { onMpPaginationPageChange: i }), null, 16));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
_ as BsPagination
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: number | null;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: number | null) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
el: unknown;
|
|
10
|
+
}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsPagination } from './BsPagination.vue';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as c, useModel as n, ref as m, onMounted as f, watch as u, openBlock as y, createElementBlock as v, mergeProps as p, mergeModels as g } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/query-builder";
|
|
3
|
+
const Q = /* @__PURE__ */ c({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsQueryBuilder",
|
|
6
|
+
props: /* @__PURE__ */ g({
|
|
7
|
+
schema: {},
|
|
8
|
+
selectedFields: {},
|
|
9
|
+
sortBy: {},
|
|
10
|
+
savedQueries: {},
|
|
11
|
+
editorRegistry: {},
|
|
12
|
+
messages: {}
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(i) {
|
|
19
|
+
const t = n(i, "modelValue"), e = i, s = m(null), a = (r) => {
|
|
20
|
+
s.value && r !== void 0 && (s.value.query = r);
|
|
21
|
+
}, o = () => {
|
|
22
|
+
s.value && (e.schema && (s.value.schema = e.schema), e.selectedFields && (s.value.selectedFields = e.selectedFields), e.sortBy && (s.value.sortBy = e.sortBy), e.savedQueries && (s.value.savedQueries = e.savedQueries), e.editorRegistry && (s.value.editorRegistry = e.editorRegistry), e.messages && (s.value.messages = e.messages));
|
|
23
|
+
};
|
|
24
|
+
f(() => {
|
|
25
|
+
o(), a(t.value);
|
|
26
|
+
}), u(t, a, { deep: !0 }), u(
|
|
27
|
+
() => [e.schema, e.selectedFields, e.sortBy, e.savedQueries, e.editorRegistry, e.messages],
|
|
28
|
+
o,
|
|
29
|
+
{ deep: !0 }
|
|
30
|
+
);
|
|
31
|
+
function d(r) {
|
|
32
|
+
const l = r.detail;
|
|
33
|
+
l && (t.value = l.tree);
|
|
34
|
+
}
|
|
35
|
+
return (r, l) => (y(), v("mp-query-builder", p({
|
|
36
|
+
ref_key: "el",
|
|
37
|
+
ref: s
|
|
38
|
+
}, r.$attrs, { onQueryChange: d }), null, 16));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
Q as BsQueryBuilder
|
|
43
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntitySchema, Expression, SavedQuery, SortDescriptor, EditorRegistry, QueryBuilderMessages } from '@mintplayer/web-components/query-builder';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
schema?: EntitySchema[];
|
|
4
|
+
selectedFields?: string[];
|
|
5
|
+
sortBy?: SortDescriptor[];
|
|
6
|
+
savedQueries?: SavedQuery[];
|
|
7
|
+
editorRegistry?: EditorRegistry;
|
|
8
|
+
messages?: Partial<QueryBuilderMessages>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
modelValue?: Expression;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: Expression) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: Expression) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
el: unknown;
|
|
19
|
+
}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsQueryBuilder } from './BsQueryBuilder.vue';
|