@mintplayer/vue-bootstrap 3.11.0 → 3.14.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.14.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,14 @@
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";
3
- const g = /* @__PURE__ */ f({
1
+ import { MpScheduler as S } from "@mintplayer/web-components/scheduler";
2
+ import { defineComponent as f, useModel as d, ref as p, onMounted as m, watch as o, openBlock as w, createElementBlock as y, mergeProps as h, mergeModels as B } from "vue";
3
+ const M = /* @__PURE__ */ f({
4
4
  inheritAttrs: !1,
5
5
  __name: "BsScheduler",
6
- props: /* @__PURE__ */ y({
6
+ props: /* @__PURE__ */ B({
7
7
  events: {},
8
8
  resources: {},
9
- options: {}
9
+ options: {},
10
+ readonly: { type: Boolean },
11
+ eventEditor: { type: Boolean }
10
12
  }, {
11
13
  view: {},
12
14
  viewModifiers: {},
@@ -14,28 +16,28 @@ const g = /* @__PURE__ */ f({
14
16
  dateModifiers: {}
15
17
  }),
16
18
  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);
22
- }, c = () => {
23
- t.value && n.value && (t.value.date = n.value);
19
+ setup(i) {
20
+ const e = i, r = d(i, "view"), s = d(i, "date"), t = p(null), n = () => {
21
+ 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, e.eventEditor !== void 0 && (t.value.eventEditor = e.eventEditor));
22
+ }, u = () => {
23
+ t.value && r.value && (t.value.view = r.value);
24
+ }, v = () => {
25
+ t.value && s.value && (t.value.date = s.value);
24
26
  };
25
27
  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);
28
+ n(), u(), v();
29
+ }), o(() => e.events, n), o(() => e.resources, n), o(() => e.options, n), o(() => e.readonly, n), o(() => e.eventEditor, n), o(r, u), o(s, v);
30
+ function c(l) {
31
+ const a = l.detail;
32
+ a && (r.value = a.view, s.value = a.date);
31
33
  }
32
- return (i, a) => (w(), h("mp-scheduler", M({
34
+ return (l, a) => (w(), y("mp-scheduler", h({
33
35
  ref_key: "el",
34
36
  ref: t
35
- }, i.$attrs, { onViewChange: d }), null, 16));
37
+ }, l.$attrs, { onViewChange: c }), null, 16));
36
38
  }
37
39
  });
38
40
  export {
39
- g as BsScheduler,
40
- x as MpScheduler
41
+ M as BsScheduler,
42
+ S as MpScheduler
41
43
  };
@@ -1,9 +1,17 @@
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;
9
+ /**
10
+ * The WC's built-in event editor (double-click / right-click / F2), ON by
11
+ * default. Set false when the app ships its own editor — `event-dblclick`
12
+ * keeps firing either way.
13
+ */
14
+ eventEditor?: boolean;
7
15
  };
8
16
  type __VLS_PublicProps = {
9
17
  'view'?: ViewType;