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