@opendesign-plus-test/components 0.0.1-rc.91 → 0.0.1-rc.93

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, normalizeClass, createBlock, unref, normalizeStyle, withCtx, resolveDynamicComponent, createCommentVNode, createVNode } from "vue";
2
- import { OIcon, OIconArrowLeft, OIconArrowRight } from "@opensig/opendesign";
1
+ import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, normalizeClass, createBlock, normalizeStyle, resolveDynamicComponent, createCommentVNode } from "vue";
2
+ import { OScroller, OIcon, OIconArrowLeft, OIconArrowRight } from "@opensig/opendesign";
3
3
  import { useMeetingConfig } from "../composables/useMeetingConfig.mjs";
4
4
  import { CalendarDataType } from "../types.mjs";
5
5
  const _hoisted_1 = { class: "o-sig-meeting-aside" };
@@ -34,55 +34,64 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  };
35
35
  return (_ctx, _cache) => {
36
36
  return openBlock(), createElementBlock("div", _hoisted_1, [
37
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (d, dIdx) => {
38
- return openBlock(), createElementBlock(Fragment, { key: dIdx }, [
39
- (openBlock(true), createElementBlock(Fragment, null, renderList(d, (m) => {
40
- return openBlock(), createElementBlock("div", {
41
- key: m.month,
42
- class: "month-item"
43
- }, [
44
- createElementVNode("div", _hoisted_2, toDisplayString(m.month.replace(/-/g, "/")), 1),
45
- createElementVNode("div", _hoisted_3, [
46
- (openBlock(true), createElementBlock(Fragment, null, renderList(m.days, (d2) => {
47
- return openBlock(), createElementBlock("div", {
48
- class: normalizeClass(["day-item", __props.active === `${m.month}-${d2}` && "active"]),
49
- key: d2,
50
- onClick: ($event) => clickDate(`${m.month}-${d2}`)
51
- }, [
52
- createElementVNode("div", _hoisted_5, toDisplayString(d2), 1),
53
- createElementVNode("div", _hoisted_6, [
54
- __props.meetingDates.includes(`${m.month}-${d2}`) ? (openBlock(), createBlock(unref(OIcon), {
55
- key: 0,
56
- style: normalizeStyle({
57
- zIndex: unref(getConfig)(unref(CalendarDataType).MEETING, "zIndex"),
58
- backgroundColor: unref(getConfig)(unref(CalendarDataType).MEETING, "color")
59
- })
60
- }, {
61
- default: withCtx(() => [
62
- (openBlock(), createBlock(resolveDynamicComponent(unref(getConfig)(unref(CalendarDataType).MEETING, "icon"))))
63
- ]),
64
- _: 1
65
- }, 8, ["style"])) : createCommentVNode("", true),
66
- __props.eventsDates.includes(`${m.month}-${d2}`) ? (openBlock(), createBlock(unref(OIcon), {
67
- key: 1,
68
- style: normalizeStyle({
69
- zIndex: unref(getConfig)(unref(CalendarDataType).EVENTS, "zIndex"),
70
- backgroundColor: unref(getConfig)(unref(CalendarDataType).EVENTS, "color")
71
- })
72
- }, {
73
- default: withCtx(() => [
74
- (openBlock(), createBlock(resolveDynamicComponent(unref(getConfig)(unref(CalendarDataType).EVENTS, "icon"))))
75
- ]),
76
- _: 1
77
- }, 8, ["style"])) : createCommentVNode("", true)
78
- ])
79
- ], 10, _hoisted_4);
80
- }), 128))
81
- ])
82
- ]);
37
+ createVNode(unref(OScroller), {
38
+ class: "month-wrapper",
39
+ "show-type": "hover",
40
+ size: "small"
41
+ }, {
42
+ default: withCtx(() => [
43
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (d, dIdx) => {
44
+ return openBlock(), createElementBlock(Fragment, { key: dIdx }, [
45
+ (openBlock(true), createElementBlock(Fragment, null, renderList(d, (m) => {
46
+ return openBlock(), createElementBlock("div", {
47
+ key: m.month,
48
+ class: "month-item"
49
+ }, [
50
+ createElementVNode("div", _hoisted_2, toDisplayString(m.month.replace(/-/g, "/")), 1),
51
+ createElementVNode("div", _hoisted_3, [
52
+ (openBlock(true), createElementBlock(Fragment, null, renderList(m.days, (d2) => {
53
+ return openBlock(), createElementBlock("div", {
54
+ class: normalizeClass(["day-item", __props.active === `${m.month}-${d2}` && "active"]),
55
+ key: d2,
56
+ onClick: ($event) => clickDate(`${m.month}-${d2}`)
57
+ }, [
58
+ createElementVNode("div", _hoisted_5, toDisplayString(d2), 1),
59
+ createElementVNode("div", _hoisted_6, [
60
+ __props.meetingDates.includes(`${m.month}-${d2}`) ? (openBlock(), createBlock(unref(OIcon), {
61
+ key: 0,
62
+ style: normalizeStyle({
63
+ zIndex: unref(getConfig)(unref(CalendarDataType).MEETING, "zIndex"),
64
+ backgroundColor: unref(getConfig)(unref(CalendarDataType).MEETING, "color")
65
+ })
66
+ }, {
67
+ default: withCtx(() => [
68
+ (openBlock(), createBlock(resolveDynamicComponent(unref(getConfig)(unref(CalendarDataType).MEETING, "icon"))))
69
+ ]),
70
+ _: 1
71
+ }, 8, ["style"])) : createCommentVNode("", true),
72
+ __props.eventsDates.includes(`${m.month}-${d2}`) ? (openBlock(), createBlock(unref(OIcon), {
73
+ key: 1,
74
+ style: normalizeStyle({
75
+ zIndex: unref(getConfig)(unref(CalendarDataType).EVENTS, "zIndex"),
76
+ backgroundColor: unref(getConfig)(unref(CalendarDataType).EVENTS, "color")
77
+ })
78
+ }, {
79
+ default: withCtx(() => [
80
+ (openBlock(), createBlock(resolveDynamicComponent(unref(getConfig)(unref(CalendarDataType).EVENTS, "icon"))))
81
+ ]),
82
+ _: 1
83
+ }, 8, ["style"])) : createCommentVNode("", true)
84
+ ])
85
+ ], 10, _hoisted_4);
86
+ }), 128))
87
+ ])
88
+ ]);
89
+ }), 128))
90
+ ], 64);
83
91
  }), 128))
84
- ], 64);
85
- }), 128)),
92
+ ]),
93
+ _: 1
94
+ }),
86
95
  createElementVNode("div", _hoisted_7, [
87
96
  createVNode(unref(OIcon), {
88
97
  onClick: _cache[0] || (_cache[0] = ($event) => changeMonth(0 - STEP)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.91",
3
+ "version": "0.0.1-rc.93",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",