@mintplayer/vue-bootstrap 3.10.0 → 3.12.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.10.0",
3
+ "version": "3.12.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,36 +1,42 @@
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({
1
+ import { MpScheduler as x } from "@mintplayer/web-components/scheduler";
2
+ import { defineComponent as f, useModel as v, ref as p, onMounted as m, watch as o, openBlock as w, createElementBlock as y, mergeProps as h, mergeModels as M } from "vue";
3
+ const g = /* @__PURE__ */ f({
4
4
  inheritAttrs: !1,
5
5
  __name: "BsScheduler",
6
- props: /* @__PURE__ */ h({
6
+ props: /* @__PURE__ */ M({
7
7
  events: {},
8
- resources: {}
8
+ resources: {},
9
+ options: {},
10
+ readonly: { type: Boolean }
9
11
  }, {
10
12
  view: {},
11
- viewModifiers: {}
13
+ viewModifiers: {},
14
+ date: {},
15
+ dateModifiers: {}
12
16
  }),
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);
17
+ emits: ["update:view", "update:date"],
18
+ setup(l) {
19
+ const e = l, n = v(l, "view"), r = v(l, "date"), t = p(null), s = () => {
20
+ t.value && (e.events && (t.value.events = e.events), e.resources && (t.value.resources = e.resources), e.options && (t.value.options = e.options), t.value.readonly = e.readonly === !0);
21
+ }, i = () => {
22
+ t.value && n.value && (t.value.view = n.value);
23
+ }, c = () => {
24
+ t.value && r.value && (t.value.date = r.value);
19
25
  };
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
+ m(() => {
27
+ s(), i(), c();
28
+ }), o(() => e.events, s), o(() => e.resources, s), o(() => e.options, s), o(() => e.readonly, s), o(n, i), o(r, c);
29
+ function d(u) {
30
+ const a = u.detail;
31
+ a && (n.value = a.view, r.value = a.date);
26
32
  }
27
- return (n, o) => (d(), m("mp-scheduler", w({
33
+ return (u, a) => (w(), y("mp-scheduler", h({
28
34
  ref_key: "el",
29
- ref: s
30
- }, n.$attrs, { onViewChange: i }), null, 16));
35
+ ref: t
36
+ }, u.$attrs, { onViewChange: d }), null, 16));
31
37
  }
32
38
  });
33
39
  export {
34
- B as BsScheduler,
35
- k as MpScheduler
40
+ g as BsScheduler,
41
+ x as MpScheduler
36
42
  };
@@ -1,16 +1,22 @@
1
1
  import { MpScheduler } from '@mintplayer/web-components/scheduler';
2
- import { SchedulerEvent, Resource, ViewType } from '@mintplayer/web-components/scheduler-core';
2
+ import { SchedulerEvent, SchedulerOptions, Resource, ResourceGroup, ViewType } from '@mintplayer/web-components/scheduler-core';
3
3
  type __VLS_Props = {
4
4
  events?: SchedulerEvent[];
5
- resources?: Resource[];
5
+ resources?: (Resource | ResourceGroup)[];
6
+ options?: Partial<SchedulerOptions>;
7
+ /** Coarse look-but-don't-touch switch; `options.permissions` refines it. */
8
+ readonly?: boolean;
6
9
  };
7
10
  type __VLS_PublicProps = {
8
11
  'view'?: ViewType;
12
+ 'date'?: Date;
9
13
  } & __VLS_Props;
10
14
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
15
  "update:view": (value: ViewType) => any;
16
+ "update:date": (value: Date) => any;
12
17
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
18
  "onUpdate:view"?: ((value: ViewType) => any) | undefined;
19
+ "onUpdate:date"?: ((value: Date) => any) | undefined;
14
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
21
  el: MpScheduler | null;
16
22
  }, any>;