@opendesign-plus-test/components 0.0.1-rc.146 → 0.0.1-rc.148

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.
Files changed (75) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +172 -90
  3. package/dist/components/activity/OActivityApproval.vue.d.ts +1 -144
  4. package/dist/components/activity/index.d.ts +1 -6
  5. package/dist/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
  6. package/dist/components/logo-swiper/OLogoSwiperItems.vue.d.ts +1 -0
  7. package/dist/components/logo-swiper/index.d.ts +4 -0
  8. package/dist/components/logo-swiper/types.d.ts +1 -0
  9. package/dist/components/meeting/OMeetingMinutes.vue.d.ts +20 -0
  10. package/dist/components/meeting/components/OMeetingSendMinutesDialog.vue.d.ts +17 -0
  11. package/dist/components/meeting/index.d.ts +26 -1
  12. package/dist/components/meeting/types.d.ts +17 -0
  13. package/dist/components/video/OVideoDetail.vue.d.ts +7 -0
  14. package/dist/components/video/index.d.ts +27 -0
  15. package/dist/components/video/types.d.ts +24 -0
  16. package/dist/components.cjs.js +40 -40
  17. package/dist/components.css +1 -1
  18. package/dist/components.es.js +12387 -11849
  19. package/dist/index.d.ts +1 -0
  20. package/dist/treeshaking/_virtual/icon-chevron-right.mjs +2 -2
  21. package/dist/treeshaking/_virtual/icon-edit.mjs +17 -0
  22. package/dist/treeshaking/_virtual/icon-material.mjs +21 -0
  23. package/dist/treeshaking/_virtual/icon-video.mjs +28 -0
  24. package/dist/treeshaking/components/activity/OActivityApproval.css +114 -407
  25. package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +1 -144
  26. package/dist/treeshaking/components/activity/OActivityApproval.vue.mjs +198 -244
  27. package/dist/treeshaking/components/activity/OActivityApproval2.css +0 -288
  28. package/dist/treeshaking/components/activity/OActivityMyCalendar.css +441 -297
  29. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.mjs +110 -107
  30. package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +10 -3
  31. package/dist/treeshaking/components/activity/index.d.ts +1 -6
  32. package/dist/treeshaking/components/common/WordAvatar.css +3 -2
  33. package/dist/treeshaking/components/common/WordAvatar.vue.mjs +19 -3
  34. package/dist/treeshaking/components/float-poster/OFloatPoster.css +25 -11
  35. package/dist/treeshaking/components/float-poster/OFloatPoster.vue.mjs +1 -1
  36. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.css +22 -8
  37. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.d.ts +1 -0
  38. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.mjs +2 -9
  39. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue2.mjs +21 -0
  40. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.css +39 -26
  41. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.d.ts +1 -0
  42. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +1 -1
  43. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue2.mjs +12 -8
  44. package/dist/treeshaking/components/logo-swiper/index.d.ts +4 -0
  45. package/dist/treeshaking/components/logo-swiper/types.d.ts +1 -0
  46. package/dist/treeshaking/components/meeting/OMeetingMinutes.css +731 -0
  47. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.d.ts +20 -0
  48. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.mjs +8 -0
  49. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue2.mjs +356 -0
  50. package/dist/treeshaking/components/meeting/OMeetingMinutes2.css +11 -0
  51. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +5 -5
  52. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.css +276 -0
  53. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue.d.ts +17 -0
  54. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue.mjs +7 -0
  55. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue2.mjs +222 -0
  56. package/dist/treeshaking/components/meeting/index.d.ts +26 -1
  57. package/dist/treeshaking/components/meeting/index.mjs +7 -0
  58. package/dist/treeshaking/components/meeting/types.d.ts +17 -0
  59. package/dist/treeshaking/components/section/OSection.vue2.mjs +2 -2
  60. package/dist/treeshaking/components/video/OVideoDetail.css +754 -0
  61. package/dist/treeshaking/components/video/OVideoDetail.vue.d.ts +7 -0
  62. package/dist/treeshaking/components/video/OVideoDetail.vue.mjs +318 -0
  63. package/dist/treeshaking/components/video/OVideoDetail.vue3.mjs +5 -0
  64. package/dist/treeshaking/components/video/index.d.ts +27 -0
  65. package/dist/treeshaking/components/video/index.mjs +10 -0
  66. package/dist/treeshaking/components/video/types.d.ts +24 -0
  67. package/dist/treeshaking/i18n/en.mjs +42 -1
  68. package/dist/treeshaking/i18n/zh.mjs +42 -1
  69. package/dist/treeshaking/index.d.ts +1 -0
  70. package/dist/treeshaking/index.mjs +4 -1
  71. package/package.json +3 -3
  72. package/dist/treeshaking/_virtual/icon-filter.mjs +0 -21
  73. package/dist/treeshaking/components/common/ThFilter.css +0 -146
  74. package/dist/treeshaking/components/common/ThFilter.vue.mjs +0 -270
  75. package/dist/treeshaking/components/common/ThFilter.vue3.mjs +0 -5
@@ -1,146 +0,0 @@
1
- .hover-icon-rotate .o-icon {
2
- transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
- }
4
- @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon {
6
- transform: rotate(-180deg);
7
- }
8
- }
9
- .th-filter-wrapper {
10
- display: flex;
11
- column-gap: var(--o-gap-2);
12
- flex-wrap: nowrap;
13
- align-items: center;
14
- }
15
- .th-filter-wrapper > span:first-child {
16
- word-break: keep-all;
17
- }
18
- .th-filter-wrapper .filter-wrapper {
19
- display: flex;
20
- align-items: center;
21
- justify-content: center;
22
- cursor: pointer;
23
- }
24
- .th-filter-wrapper .filter-wrapper > * {
25
- flex-shrink: 0;
26
- }
27
- .th-filter-wrapper .filter-wrapper .filter-hover-icon {
28
- display: none;
29
- }
30
- .th-filter-wrapper .filter-wrapper .filter-icon {
31
- font-size: 24px;
32
- line-height: 32px;
33
- }
34
- @media (min-width: 1201px) and (max-width: 1680px) {
35
- .th-filter-wrapper .filter-wrapper .filter-icon {
36
- font-size: 20px;
37
- line-height: 28px;
38
- }
39
- }
40
- @media (min-width: 841px) and (max-width: 1200px) {
41
- .th-filter-wrapper .filter-wrapper .filter-icon {
42
- font-size: 18px;
43
- line-height: 26px;
44
- }
45
- }
46
- @media (min-width: 601px) and (max-width: 840px) {
47
- .th-filter-wrapper .filter-wrapper .filter-icon {
48
- font-size: 18px;
49
- line-height: 26px;
50
- }
51
- }
52
- @media (max-width: 600px) {
53
- .th-filter-wrapper .filter-wrapper .filter-icon {
54
- font-size: 16px;
55
- line-height: 24px;
56
- }
57
- }
58
- .th-filter-wrapper .filter-wrapper:hover .filter-icon, .th-filter-wrapper .filter-wrapper.has-checked .filter-icon {
59
- color: var(--o-color-primary1);
60
- }
61
- .th-filter-wrapper .filter-wrapper:hover .o-icon path, .th-filter-wrapper .filter-wrapper.has-checked .o-icon path {
62
- fill: currentColor;
63
- }
64
- .th-filter-dropdown .o-dropdown-item {
65
- min-width: 80px;
66
- max-width: calc(var(--table-width, 300) * 0.8px);
67
- --dropdown-item-justify: flex-start;
68
- --dropdown-item-padding: 7px 12px;
69
- }
70
- .th-filter-dropdown .o-dropdown-item.is-active {
71
- font-weight: 500;
72
- background-color: var(--dropdown-item-bg-color-hover);
73
- color: var(--dropdown-item-color-hover);
74
- }
75
- .th-filter-popover {
76
- --popup-radius: var(--o-radius-xs);
77
- }
78
- .th-filter-popover .o-popup-body {
79
- padding: var(--o-gap-2) 0 0 0;
80
- }
81
- .th-filter-popover .list-content-wrapper {
82
- display: flex;
83
- }
84
- .th-filter-popover .list-content-wrapper .o-scrollbar-wrapper:first-child {
85
- border-right: 1px solid rgb(224, 226, 230);
86
- }
87
- .th-filter-popover .content-wrapper {
88
- padding: 0 var(--o-gap-4);
89
- overflow: auto;
90
- max-height: 300px;
91
- }
92
- .th-filter-popover .content-wrapper .o-checkbox-group {
93
- flex-shrink: 0;
94
- }
95
- .th-filter-popover .content-wrapper .o-checkbox-label {
96
- flex-grow: 1;
97
- }
98
- .th-filter-popover .content-wrapper .o-checkbox-label .label-wrapper {
99
- cursor: pointer;
100
- display: flex;
101
- align-items: center;
102
- justify-content: space-between;
103
- }
104
- .th-filter-popover .content-wrapper .o-checkbox-label .label-wrapper .o-svg-icon {
105
- font-size: 24px;
106
- }
107
- .th-filter-popover .btn-wrapper {
108
- min-width: 158px;
109
- box-sizing: border-box;
110
- display: flex;
111
- align-items: center;
112
- justify-content: center;
113
- padding-bottom: var(--o-gap-3);
114
- font-size: 16px;
115
- line-height: 24px;
116
- }
117
- @media (min-width: 1201px) and (max-width: 1680px) {
118
- .th-filter-popover .btn-wrapper {
119
- font-size: 14px;
120
- line-height: 22px;
121
- }
122
- }
123
- @media (min-width: 841px) and (max-width: 1200px) {
124
- .th-filter-popover .btn-wrapper {
125
- font-size: 14px;
126
- line-height: 22px;
127
- }
128
- }
129
- @media (min-width: 601px) and (max-width: 840px) {
130
- .th-filter-popover .btn-wrapper {
131
- font-size: 14px;
132
- line-height: 22px;
133
- }
134
- }
135
- @media (max-width: 600px) {
136
- .th-filter-popover .btn-wrapper {
137
- font-size: 12px;
138
- line-height: 18px;
139
- }
140
- }
141
- .th-filter-popover .btn-wrapper .o-link {
142
- width: 80px;
143
- display: flex;
144
- align-items: center;
145
- justify-content: center;
146
- }
@@ -1,270 +0,0 @@
1
- import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, unref, withCtx, createVNode, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, normalizeClass, normalizeStyle, createCommentVNode, nextTick, h } from "vue";
2
- import { OPopover, OScroller, OCheckboxGroup, OCheckbox, ODivider, OLink, OIcon, ODropdown, ODropdownItem } from "@opensig/opendesign";
3
- import IconFilter from "../../_virtual/icon-filter.mjs";
4
- import { useI18n } from "../../i18n/index.mjs";
5
- import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
6
- const _hoisted_1 = {
7
- class: "th-filter-wrapper",
8
- ref: "filterRef"
9
- };
10
- const _hoisted_2 = {
11
- key: 1,
12
- class: "list-content-wrapper"
13
- };
14
- const _hoisted_3 = { class: "btn-wrapper" };
15
- const _sfc_main = /* @__PURE__ */ defineComponent({
16
- __name: "ThFilter",
17
- props: {
18
- modelValue: {},
19
- list: { default: () => [] },
20
- multiple: { type: Boolean, default: false },
21
- tableWidth: {}
22
- },
23
- emits: ["update:model-value", "confirm"],
24
- setup(__props, { emit: __emit }) {
25
- const vDompurifyHtml = buildVueDompurifyHTMLDirective();
26
- const { t } = useI18n();
27
- const props = __props;
28
- const emits = __emit;
29
- const isCascader = computed(() => props.list.some((v) => {
30
- var _a;
31
- return (_a = v.children) == null ? void 0 : _a.length;
32
- }));
33
- const options = computed(() => {
34
- return props.list.map((v) => {
35
- const children = (v.children || []).map((t2) => {
36
- return {
37
- label: t2.label,
38
- value: t2.value
39
- };
40
- });
41
- return {
42
- label: v.label,
43
- value: v.value,
44
- children: isCascader.value ? children : void 0
45
- };
46
- });
47
- });
48
- const visible = ref(false);
49
- watch(
50
- () => props.modelValue,
51
- (val) => {
52
- if (!props.multiple) {
53
- checked.value = val;
54
- } else {
55
- multiChecked.value = val;
56
- }
57
- }
58
- );
59
- const multiChecked = ref([]);
60
- const change = (val) => {
61
- multiChecked.value = val;
62
- };
63
- const cascaderValue = ref([]);
64
- const checked = ref(null);
65
- const handleCommand = (val) => {
66
- if (checked.value === val) {
67
- checked.value = null;
68
- } else {
69
- checked.value = val;
70
- }
71
- confirmFn();
72
- };
73
- const reset = () => {
74
- multiChecked.value = [];
75
- cascaderValue.value = [];
76
- checked.value = null;
77
- confirmFn();
78
- };
79
- const confirmFn = () => {
80
- let finalValue = null;
81
- if (!props.multiple) {
82
- finalValue = checked.value;
83
- } else if (isCascader.value) {
84
- finalValue = cascaderValue.value;
85
- } else {
86
- finalValue = multiChecked.value;
87
- }
88
- emits("update:model-value", finalValue);
89
- visible.value = true;
90
- nextTick(() => {
91
- emits("confirm");
92
- visible.value = false;
93
- });
94
- };
95
- const hasChecked = computed(() => {
96
- return multiChecked.value.length || cascaderValue.value.length || checked.value || props.modelValue;
97
- });
98
- const aref = ref(null);
99
- const clickLabelSpan = async (e) => {
100
- var _a, _b;
101
- const ele = e.target.parentElement.parentElement;
102
- await nextTick();
103
- const input = ele.querySelector("input");
104
- input.click();
105
- await nextTick();
106
- (_a = input.change) == null ? void 0 : _a.call(input, input);
107
- await nextTick();
108
- (_b = aref.value) == null ? void 0 : _b.$forceUpdate();
109
- cascaderValue.value = JSON.parse(JSON.stringify(cascaderValue.value));
110
- };
111
- const renderLabel = ({ data }) => {
112
- return h("span", { onclick: clickLabelSpan }, data.label);
113
- };
114
- return (_ctx, _cache) => {
115
- const _component_ElCascaderPanel = resolveComponent("ElCascaderPanel");
116
- return openBlock(), createElementBlock("div", _hoisted_1, [
117
- createElementVNode("span", null, [
118
- renderSlot(_ctx.$slots, "default")
119
- ]),
120
- __props.multiple ? (openBlock(), createBlock(unref(OPopover), {
121
- key: 0,
122
- visible: visible.value,
123
- position: "bottom",
124
- wrapClass: "th-filter-popover",
125
- trigger: "click",
126
- anchor: false
127
- }, {
128
- target: withCtx(() => [
129
- createElementVNode("div", {
130
- class: normalizeClass(["filter-wrapper", hasChecked.value && "has-checked"])
131
- }, [
132
- createVNode(unref(OIcon), { class: "filter-icon" }, {
133
- default: withCtx(() => [
134
- createVNode(unref(IconFilter))
135
- ]),
136
- _: 1
137
- })
138
- ], 2)
139
- ]),
140
- default: withCtx(() => [
141
- !isCascader.value ? (openBlock(), createBlock(unref(OScroller), {
142
- key: 0,
143
- class: "content-wrapper",
144
- "show-type": "hover",
145
- "disabled-x": ""
146
- }, {
147
- default: withCtx(() => [
148
- createVNode(unref(OCheckboxGroup), {
149
- direction: "v",
150
- onChange: change,
151
- modelValue: multiChecked.value,
152
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => multiChecked.value = $event)
153
- }, {
154
- default: withCtx(() => [
155
- (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item) => {
156
- return openBlock(), createBlock(unref(OCheckbox), {
157
- key: item.value,
158
- value: item.value
159
- }, {
160
- default: withCtx(() => [
161
- withDirectives(createElementVNode("span", null, null, 512), [
162
- [unref(vDompurifyHtml), item.label]
163
- ])
164
- ]),
165
- _: 2
166
- }, 1032, ["value"]);
167
- }), 128))
168
- ]),
169
- _: 1
170
- }, 8, ["modelValue"])
171
- ]),
172
- _: 1
173
- })) : (openBlock(), createElementBlock("div", _hoisted_2, [
174
- createVNode(_component_ElCascaderPanel, {
175
- ref_key: "aref",
176
- ref: aref,
177
- expandTrigger: "hover",
178
- renderLabel,
179
- modelValue: cascaderValue.value,
180
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => cascaderValue.value = $event),
181
- style: { "width": "fit-content" },
182
- options: options.value,
183
- props: { multiple: true, expandTrigger: "hover" }
184
- }, null, 8, ["modelValue", "options"])
185
- ])),
186
- createVNode(unref(ODivider)),
187
- createElementVNode("div", _hoisted_3, [
188
- createVNode(unref(OLink), { onClick: reset }, {
189
- default: withCtx(() => [
190
- createTextVNode(toDisplayString(unref(t)("common.reset")), 1)
191
- ]),
192
- _: 1
193
- }),
194
- createVNode(unref(OLink), { onClick: confirmFn }, {
195
- default: withCtx(() => [
196
- createTextVNode(toDisplayString(unref(t)("common.confirm")), 1)
197
- ]),
198
- _: 1
199
- })
200
- ])
201
- ]),
202
- _: 1
203
- }, 8, ["visible"])) : (openBlock(), createBlock(unref(ODropdown), {
204
- key: 1,
205
- optionPosition: "bottom",
206
- optionWrapClass: "th-filter-dropdown",
207
- modelValue: checked.value,
208
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checked.value = $event)
209
- }, {
210
- dropdown: withCtx(() => [
211
- options.value.length ? (openBlock(), createBlock(unref(OScroller), {
212
- key: 0,
213
- "disabled-x": "",
214
- style: { "max-height": "300px" },
215
- "show-type": "always"
216
- }, {
217
- default: withCtx(() => [
218
- createVNode(unref(ODropdownItem), {
219
- style: normalizeStyle({
220
- "--table-width": __props.tableWidth
221
- }),
222
- class: normalizeClass([{ "is-active": __props.modelValue === "" }]),
223
- value: "''",
224
- label: unref(t)("common.all"),
225
- onClick: _cache[2] || (_cache[2] = ($event) => handleCommand(""))
226
- }, null, 8, ["style", "class", "label"]),
227
- (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item) => {
228
- return openBlock(), createBlock(unref(ODropdownItem), {
229
- style: normalizeStyle({
230
- "--table-width": __props.tableWidth
231
- }),
232
- class: normalizeClass([{ "is-active": item.value === __props.modelValue }]),
233
- key: item.value,
234
- value: item.value,
235
- onClick: ($event) => handleCommand(item.value)
236
- }, {
237
- default: withCtx(() => [
238
- withDirectives(createElementVNode("span", null, null, 512), [
239
- [unref(vDompurifyHtml), item.label]
240
- ])
241
- ]),
242
- _: 2
243
- }, 1032, ["style", "class", "value", "onClick"]);
244
- }), 128))
245
- ]),
246
- _: 1
247
- })) : createCommentVNode("", true),
248
- !options.value.length ? renderSlot(_ctx.$slots, "empty", { key: 1 }) : createCommentVNode("", true)
249
- ]),
250
- default: withCtx(() => [
251
- createElementVNode("div", {
252
- class: normalizeClass(["filter-wrapper", hasChecked.value && "has-checked"])
253
- }, [
254
- createVNode(unref(OIcon), { class: "filter-icon" }, {
255
- default: withCtx(() => [
256
- createVNode(unref(IconFilter))
257
- ]),
258
- _: 1
259
- })
260
- ], 2)
261
- ]),
262
- _: 3
263
- }, 8, ["modelValue"]))
264
- ], 512);
265
- };
266
- }
267
- });
268
- export {
269
- _sfc_main as default
270
- };
@@ -1,5 +0,0 @@
1
- import _sfc_main from "./ThFilter.vue.mjs";
2
- import './ThFilter.css';
3
- export {
4
- _sfc_main as default
5
- };