@mintplayer/vue-bootstrap 3.4.0 → 3.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/vue-bootstrap",
3
- "version": "3.4.0",
3
+ "version": "3.5.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": {
@@ -1,23 +1,36 @@
1
- import { MpScheduler as _ } from "@mintplayer/web-components/scheduler";
2
- import { defineComponent as c, ref as u, onMounted as l, watch as t, openBlock as p, createElementBlock as a, mergeProps as f } from "vue";
3
- const v = /* @__PURE__ */ c({
1
+ import { MpScheduler as k } from "@mintplayer/web-components/scheduler";
2
+ import { defineComponent as a, useModel as v, ref as f, onMounted as p, watch as u, openBlock as d, createElementBlock as m, mergeProps as w, mergeModels as h } from "vue";
3
+ const B = /* @__PURE__ */ a({
4
4
  inheritAttrs: !1,
5
5
  __name: "BsScheduler",
6
- props: {
6
+ props: /* @__PURE__ */ h({
7
7
  events: {},
8
8
  resources: {}
9
- },
10
- setup(n) {
11
- const e = n, r = u(null), s = () => {
12
- r.value && (e.events && (r.value.events = e.events), e.resources && (r.value.resources = e.resources));
9
+ }, {
10
+ view: {},
11
+ viewModifiers: {}
12
+ }),
13
+ emits: ["update:view"],
14
+ setup(c) {
15
+ const e = c, r = v(c, "view"), s = f(null), t = () => {
16
+ s.value && (e.events && (s.value.events = e.events), e.resources && (s.value.resources = e.resources));
17
+ }, l = () => {
18
+ s.value && r.value && (s.value.view = r.value);
13
19
  };
14
- return l(s), t(() => e.events, s), t(() => e.resources, s), (o, m) => (p(), a("mp-scheduler", f({
20
+ p(() => {
21
+ t(), l();
22
+ }), u(() => e.events, t), u(() => e.resources, t), u(r, l);
23
+ function i(n) {
24
+ const o = n.detail;
25
+ o && (r.value = o.view);
26
+ }
27
+ return (n, o) => (d(), m("mp-scheduler", w({
15
28
  ref_key: "el",
16
- ref: r
17
- }, o.$attrs), null, 16));
29
+ ref: s
30
+ }, n.$attrs, { onViewChange: i }), null, 16));
18
31
  }
19
32
  });
20
33
  export {
21
- v as BsScheduler,
22
- _ as MpScheduler
34
+ B as BsScheduler,
35
+ k as MpScheduler
23
36
  };
@@ -1,10 +1,17 @@
1
1
  import { MpScheduler } from '@mintplayer/web-components/scheduler';
2
- import { SchedulerEvent, Resource } from '@mintplayer/web-components/scheduler-core';
2
+ import { SchedulerEvent, Resource, ViewType } from '@mintplayer/web-components/scheduler-core';
3
3
  type __VLS_Props = {
4
4
  events?: SchedulerEvent[];
5
5
  resources?: Resource[];
6
6
  };
7
- 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, {
7
+ type __VLS_PublicProps = {
8
+ 'view'?: ViewType;
9
+ } & __VLS_Props;
10
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:view": (value: ViewType) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:view"?: ((value: ViewType) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
8
15
  el: MpScheduler | null;
9
16
  }, any>;
10
17
  export default _default;
@@ -0,0 +1,35 @@
1
+ import { defineComponent as i, ref as l, onMounted as r, onBeforeUnmount as m, openBlock as g, createElementBlock as d, mergeProps as c, renderSlot as u } from "vue";
2
+ import "@mintplayer/web-components/shell";
3
+ const f = ["state", "breakpoint", "size", "external-toggle", "dismiss-on-navigate"], k = /* @__PURE__ */ i({
4
+ inheritAttrs: !1,
5
+ __name: "BsShell",
6
+ props: {
7
+ state: { default: "auto" },
8
+ breakpoint: { default: "md" },
9
+ size: {},
10
+ externalToggle: { type: Boolean },
11
+ dismissOnNavigate: { type: Boolean }
12
+ },
13
+ emits: ["statechange"],
14
+ setup(e, { emit: s }) {
15
+ const o = s, n = l(null);
16
+ function a(t) {
17
+ o("statechange", t.detail);
18
+ }
19
+ return r(() => n.value?.addEventListener("statechange", a)), m(() => n.value?.removeEventListener("statechange", a)), (t, h) => (g(), d("mp-shell", c({
20
+ ref_key: "el",
21
+ ref: n
22
+ }, t.$attrs, {
23
+ state: e.state,
24
+ breakpoint: e.breakpoint,
25
+ size: e.size,
26
+ "external-toggle": e.externalToggle ? "" : void 0,
27
+ "dismiss-on-navigate": e.dismissOnNavigate ? "" : void 0
28
+ }), [
29
+ u(t.$slots, "default")
30
+ ], 16, f));
31
+ }
32
+ });
33
+ export {
34
+ k as BsShell
35
+ };
@@ -0,0 +1,41 @@
1
+ import { ShellState, ShellStateChangeEventDetail } from '@mintplayer/web-components/shell';
2
+ type __VLS_Props = {
3
+ /** `auto` (default, responsive) | `show` (force open) | `hide` (force closed). */
4
+ state?: ShellState;
5
+ /** Breakpoint below which the sidebar starts collapsed. Default `md`. */
6
+ breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
7
+ /** Expanded sidebar width (any CSS length), e.g. `"15rem"`. */
8
+ size?: string;
9
+ /** Hide the built-in hamburger and drive the toggle from a consumer control. */
10
+ externalToggle?: boolean;
11
+ /** Auto-close the overlay drawer when a sidebar link is clicked (narrow mode only). */
12
+ dismissOnNavigate?: boolean;
13
+ };
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {
20
+ el: unknown;
21
+ };
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ statechange: (detail: ShellStateChangeEventDetail) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onStatechange?: ((detail: ShellStateChangeEventDetail) => any) | undefined;
29
+ }>, {
30
+ state: ShellState;
31
+ breakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
+ el: unknown;
34
+ }, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BsShell } from './BsShell.vue';
2
+ export type { ShellState, ShellStateChangeEventDetail } from '@mintplayer/web-components/shell';