@opendesign-plus-test/components 0.0.1-rc.154 → 0.0.1-rc.156

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 (119) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +52 -40
  3. package/dist/components/activity/OActivityApproval.vue.d.ts +169 -19
  4. package/dist/components/activity/OActivityForm.vue.d.ts +169 -19
  5. package/dist/components/activity/OActivityMyCalendar.vue.d.ts +18 -10
  6. package/dist/components/activity/index.d.ts +356 -52
  7. package/dist/components/banner/index.d.ts +6 -6
  8. package/dist/components/events/index.d.ts +20 -20
  9. package/dist/components/footer/index.d.ts +3 -3
  10. package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
  11. package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  12. package/dist/components/header/index.d.ts +28 -28
  13. package/dist/components/header-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +1 -1
  14. package/dist/components/header-language-switcher/index.d.ts +3 -3
  15. package/dist/components/header-search/OHeaderSearch.vue.d.ts +43 -35
  16. package/dist/components/header-search/index.d.ts +37 -33
  17. package/dist/components/logo-swiper/index.d.ts +11 -11
  18. package/dist/components/markdown/MarkdownCode.vue.d.ts +25 -0
  19. package/dist/components/markdown/MarkdownImage.vue.d.ts +21 -0
  20. package/dist/components/markdown/MarkdownPageTitle.vue.d.ts +28 -0
  21. package/dist/components/markdown/MarkdownTable.vue.d.ts +21 -0
  22. package/dist/components/markdown/MarkdownTitle.vue.d.ts +33 -0
  23. package/dist/components/markdown/components/TableData.vue.d.ts +9 -0
  24. package/dist/components/markdown/components/TableExpand.vue.d.ts +12 -0
  25. package/dist/components/markdown/index.d.ts +163 -0
  26. package/dist/components/meeting/OMeetingForm.vue.d.ts +169 -19
  27. package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +18 -10
  28. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  29. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  30. package/dist/components/meeting/components/OMeetingSigAside.vue.d.ts +9 -5
  31. package/dist/components/meeting/composables/useMeetingConfig.d.ts +1 -1
  32. package/dist/components/meeting/index.d.ts +212 -58
  33. package/dist/components/search/OSearchInput.vue.d.ts +43 -35
  34. package/dist/components/search/index.d.ts +35 -31
  35. package/dist/components/search/internal/SearchImageInput.vue.d.ts +37 -29
  36. package/dist/components/sig/OSigList.vue.d.ts +0 -2
  37. package/dist/components/video/index.d.ts +3 -3
  38. package/dist/components.cjs.js +40 -40
  39. package/dist/components.css +1 -1
  40. package/dist/components.es.js +13714 -13111
  41. package/dist/index.d.ts +1 -0
  42. package/dist/treeshaking/_virtual/icon-copy2.mjs +20 -0
  43. package/dist/treeshaking/_virtual/icon-expand.mjs +21 -0
  44. package/dist/treeshaking/_virtual/icon-link.mjs +31 -0
  45. package/dist/treeshaking/_virtual/icon-more.mjs +19 -0
  46. package/dist/treeshaking/_virtual/icon-unexpand.mjs +22 -0
  47. package/dist/treeshaking/assets/markdown/md-title-bg.png.mjs +4 -0
  48. package/dist/treeshaking/assets/svg-icons/icon-zoom.svg.mjs +4 -0
  49. package/dist/treeshaking/components/activity/OActivityApproval.css +8 -8
  50. package/dist/treeshaking/components/activity/OActivityApproval.vue.d.ts +169 -19
  51. package/dist/treeshaking/components/activity/OActivityForm.vue.d.ts +169 -19
  52. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.d.ts +18 -10
  53. package/dist/treeshaking/components/activity/index.d.ts +356 -52
  54. package/dist/treeshaking/components/banner/index.d.ts +6 -6
  55. package/dist/treeshaking/components/events/index.d.ts +20 -20
  56. package/dist/treeshaking/components/footer/index.d.ts +3 -3
  57. package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
  58. package/dist/treeshaking/components/header/components/HeaderFlatten.css +55 -60
  59. package/dist/treeshaking/components/header/components/HeaderFlatten.vue.mjs +1 -1
  60. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  61. package/dist/treeshaking/components/header/index.d.ts +28 -28
  62. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +1 -1
  63. package/dist/treeshaking/components/header-language-switcher/index.d.ts +3 -3
  64. package/dist/treeshaking/components/header-search/OHeaderSearch.vue.d.ts +43 -35
  65. package/dist/treeshaking/components/header-search/index.d.ts +37 -33
  66. package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
  67. package/dist/treeshaking/components/markdown/MarkdownCode.css +116 -0
  68. package/dist/treeshaking/components/markdown/MarkdownCode.vue.d.ts +25 -0
  69. package/dist/treeshaking/components/markdown/MarkdownCode.vue.mjs +7 -0
  70. package/dist/treeshaking/components/markdown/MarkdownCode.vue2.mjs +121 -0
  71. package/dist/treeshaking/components/markdown/MarkdownImage.css +39 -0
  72. package/dist/treeshaking/components/markdown/MarkdownImage.vue.d.ts +21 -0
  73. package/dist/treeshaking/components/markdown/MarkdownImage.vue.mjs +7 -0
  74. package/dist/treeshaking/components/markdown/MarkdownImage.vue2.mjs +64 -0
  75. package/dist/treeshaking/components/markdown/MarkdownPageTitle.css +230 -0
  76. package/dist/treeshaking/components/markdown/MarkdownPageTitle.vue.d.ts +28 -0
  77. package/dist/treeshaking/components/markdown/MarkdownPageTitle.vue.mjs +7 -0
  78. package/dist/treeshaking/components/markdown/MarkdownPageTitle.vue2.mjs +127 -0
  79. package/dist/treeshaking/components/markdown/MarkdownTable.css +64 -0
  80. package/dist/treeshaking/components/markdown/MarkdownTable.vue.d.ts +21 -0
  81. package/dist/treeshaking/components/markdown/MarkdownTable.vue.mjs +7 -0
  82. package/dist/treeshaking/components/markdown/MarkdownTable.vue2.mjs +69 -0
  83. package/dist/treeshaking/components/markdown/MarkdownTitle.css +76 -0
  84. package/dist/treeshaking/components/markdown/MarkdownTitle.vue.d.ts +33 -0
  85. package/dist/treeshaking/components/markdown/MarkdownTitle.vue.mjs +7 -0
  86. package/dist/treeshaking/components/markdown/MarkdownTitle.vue2.mjs +66 -0
  87. package/dist/treeshaking/components/markdown/components/TableData.css +94 -0
  88. package/dist/treeshaking/components/markdown/components/TableData.vue.d.ts +9 -0
  89. package/dist/treeshaking/components/markdown/components/TableData.vue.mjs +7 -0
  90. package/dist/treeshaking/components/markdown/components/TableData.vue2.mjs +112 -0
  91. package/dist/treeshaking/components/markdown/components/TableExpand.css +66 -0
  92. package/dist/treeshaking/components/markdown/components/TableExpand.vue.d.ts +12 -0
  93. package/dist/treeshaking/components/markdown/components/TableExpand.vue.mjs +7 -0
  94. package/dist/treeshaking/components/markdown/components/TableExpand.vue2.mjs +89 -0
  95. package/dist/treeshaking/components/markdown/index.d.ts +163 -0
  96. package/dist/treeshaking/components/markdown/index.mjs +37 -0
  97. package/dist/treeshaking/components/meeting/OMeetingForm.vue.d.ts +169 -19
  98. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.d.ts +18 -10
  99. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  100. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  101. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue.d.ts +9 -5
  102. package/dist/treeshaking/components/meeting/composables/useMeetingConfig.d.ts +1 -1
  103. package/dist/treeshaking/components/meeting/index.d.ts +212 -58
  104. package/dist/treeshaking/components/search/OSearchInput.vue.d.ts +43 -35
  105. package/dist/treeshaking/components/search/index.d.ts +35 -31
  106. package/dist/treeshaking/components/search/internal/SearchImageInput.vue.d.ts +37 -29
  107. package/dist/treeshaking/components/sig/OSigDetail.css +1 -1
  108. package/dist/treeshaking/components/sig/OSigList.css +130 -152
  109. package/dist/treeshaking/components/sig/OSigList.vue.d.ts +0 -2
  110. package/dist/treeshaking/components/sig/OSigList.vue.mjs +99 -107
  111. package/dist/treeshaking/components/sig/components/OSigItem.css +366 -30
  112. package/dist/treeshaking/components/video/OVideoDetail.css +7 -7
  113. package/dist/treeshaking/components/video/index.d.ts +3 -3
  114. package/dist/treeshaking/i18n/en.mjs +7 -1
  115. package/dist/treeshaking/i18n/zh.mjs +7 -1
  116. package/dist/treeshaking/index.d.ts +1 -0
  117. package/dist/treeshaking/index.mjs +6 -0
  118. package/dist/treeshaking/shared/theme.mjs +15 -3
  119. package/package.json +3 -3
@@ -0,0 +1,64 @@
1
+ import { defineComponent, ref, computed, onMounted, watch, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, renderSlot } from "vue";
2
+ import { useElementSize } from "@vueuse/core";
3
+ import { useImageViewer } from "@opensig/opendesign";
4
+ import { useScreen } from "@opendesign-plus/composables";
5
+ import IconZoom from "../../assets/svg-icons/icon-zoom.svg.mjs";
6
+ const _hoisted_1 = ["src"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "MarkdownImage",
9
+ setup(__props) {
10
+ const { lePadV } = useScreen();
11
+ const containerRef = ref();
12
+ const { width } = useElementSize(containerRef);
13
+ const zoomEnabled = computed(() => width.value >= 216);
14
+ const zoomImgUrl = ref("");
15
+ const isHover = ref(false);
16
+ const inParagraph = ref(false);
17
+ onMounted(() => {
18
+ var _a, _b;
19
+ inParagraph.value = ((_b = (_a = containerRef.value) == null ? void 0 : _a.parentElement) == null ? void 0 : _b.tagName) === "P";
20
+ });
21
+ watch(zoomEnabled, () => {
22
+ var _a;
23
+ const img = (_a = containerRef.value) == null ? void 0 : _a.querySelector('img:not([class="o-md-img-icon-zoom"])');
24
+ if (img) {
25
+ zoomImgUrl.value = img.src;
26
+ }
27
+ });
28
+ const { open, unmount } = useImageViewer({
29
+ previewList: () => [zoomImgUrl.value],
30
+ currentIndex: 0,
31
+ layerOptions: {
32
+ maskClose: true
33
+ }
34
+ });
35
+ const onClickContainer = () => {
36
+ if (zoomEnabled.value && zoomImgUrl.value) {
37
+ open();
38
+ }
39
+ };
40
+ onBeforeUnmount(() => {
41
+ unmount();
42
+ });
43
+ return (_ctx, _cache) => {
44
+ return openBlock(), createElementBlock("span", {
45
+ ref_key: "containerRef",
46
+ ref: containerRef,
47
+ class: normalizeClass(["o-md-img", { "unexpand": !zoomEnabled.value, "in-paragraph": inParagraph.value }]),
48
+ onClick: onClickContainer,
49
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => isHover.value = true),
50
+ onMouseleave: _cache[1] || (_cache[1] = ($event) => isHover.value = false)
51
+ }, [
52
+ !unref(lePadV) && zoomEnabled.value && isHover.value ? (openBlock(), createElementBlock("img", {
53
+ key: 0,
54
+ class: "o-md-img-icon-zoom",
55
+ src: unref(IconZoom)
56
+ }, null, 8, _hoisted_1)) : createCommentVNode("", true),
57
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
58
+ ], 34);
59
+ };
60
+ }
61
+ });
62
+ export {
63
+ _sfc_main as default
64
+ };
@@ -0,0 +1,230 @@
1
+ .hover-icon-rotate .o-icon[data-v-ea2252e3] {
2
+ transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
+ }
4
+ @media (hover: hover) {
5
+ .hover-icon-rotate:hover .o-icon[data-v-ea2252e3] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-md-page-title[data-v-ea2252e3] {
10
+ --o-gap-1: 4px;
11
+ --o-gap-2: 8px;
12
+ --o-gap-3: 12px;
13
+ --o-gap-4: 16px;
14
+ --o-gap-5: 24px;
15
+ --o-gap-6: 32px;
16
+ --o-gap-7: 40px;
17
+ --o-gap-8: 48px;
18
+ --o-gap-9: 64px;
19
+ --o-gap-10: 72px;
20
+ }
21
+ @media (max-width: 1680px) {
22
+ .o-md-page-title[data-v-ea2252e3] {
23
+ --o-gap-1: 4px;
24
+ --o-gap-2: 8px;
25
+ --o-gap-3: 8px;
26
+ --o-gap-4: 12px;
27
+ --o-gap-5: 16px;
28
+ --o-gap-6: 24px;
29
+ --o-gap-7: 24px;
30
+ --o-gap-8: 40px;
31
+ --o-gap-9: 48px;
32
+ --o-gap-10: 56px;
33
+ }
34
+ }
35
+ @media (max-width: 1200px) {
36
+ .o-md-page-title[data-v-ea2252e3] {
37
+ --o-gap-1: 4px;
38
+ --o-gap-2: 8px;
39
+ --o-gap-3: 8px;
40
+ --o-gap-4: 8px;
41
+ --o-gap-5: 12px;
42
+ --o-gap-6: 16px;
43
+ --o-gap-7: 16px;
44
+ --o-gap-8: 24px;
45
+ --o-gap-9: 32px;
46
+ --o-gap-10: 40px;
47
+ }
48
+ }
49
+ @media (max-width: 840px) {
50
+ .o-md-page-title[data-v-ea2252e3] {
51
+ --o-gap-1: 4px;
52
+ --o-gap-2: 8px;
53
+ --o-gap-3: 12px;
54
+ --o-gap-4: 16px;
55
+ --o-gap-5: 24px;
56
+ --o-gap-6: 28px;
57
+ --o-gap-7: 12px;
58
+ --o-gap-8: 24px;
59
+ --o-gap-9: 32px;
60
+ --o-gap-10: 32px;
61
+ }
62
+ }
63
+ @media (max-width: 600px) {
64
+ .o-md-page-title[data-v-ea2252e3] {
65
+ --o-gap-1: 4px;
66
+ --o-gap-2: 8px;
67
+ --o-gap-3: 12px;
68
+ --o-gap-4: 16px;
69
+ --o-gap-5: 24px;
70
+ --o-gap-6: 28px;
71
+ --o-gap-7: 12px;
72
+ --o-gap-8: 24px;
73
+ --o-gap-9: 32px;
74
+ --o-gap-10: 32px;
75
+ }
76
+ }
77
+ .o-md-page-title[data-v-ea2252e3] {
78
+ align-items: center;
79
+ justify-content: space-between;
80
+ gap: var(--o-gap-3);
81
+ padding: var(--o-gap-4);
82
+ margin-bottom: var(--o-gap-6);
83
+ border-radius: var(--o-radius-m);
84
+ background-image: var(--f268dc4e);
85
+ background-position: 100% 100%;
86
+ background-repeat: no-repeat;
87
+ }
88
+ .o-md-page-title .o-md-page-title-text[data-v-ea2252e3] h1 {
89
+ margin-top: 0;
90
+ margin-bottom: 0;
91
+ font-size: 32px;
92
+ line-height: 44px;
93
+ }
94
+ @media (min-width: 1201px) and (max-width: 1680px) {
95
+ .o-md-page-title .o-md-page-title-text[data-v-ea2252e3] h1 {
96
+ font-size: 20px;
97
+ line-height: 28px;
98
+ }
99
+ }
100
+ @media (min-width: 841px) and (max-width: 1200px) {
101
+ .o-md-page-title .o-md-page-title-text[data-v-ea2252e3] h1 {
102
+ font-size: 20px;
103
+ line-height: 28px;
104
+ }
105
+ }
106
+ @media (min-width: 601px) and (max-width: 840px) {
107
+ .o-md-page-title .o-md-page-title-text[data-v-ea2252e3] h1 {
108
+ font-size: 18px;
109
+ line-height: 26px;
110
+ }
111
+ }
112
+ @media (max-width: 600px) {
113
+ .o-md-page-title .o-md-page-title-text[data-v-ea2252e3] h1 {
114
+ font-size: 16px;
115
+ line-height: 24px;
116
+ }
117
+ }
118
+ .o-md-page-title .o-md-page-title-actions[data-v-ea2252e3] {
119
+ display: flex;
120
+ align-items: center;
121
+ gap: var(--o-gap-2);
122
+ flex-shrink: 0;
123
+ margin-top: var(--o-gap-3);
124
+ }
125
+ @media (max-width: 840px) {
126
+ .o-md-page-title .o-md-page-title-actions[data-v-ea2252e3] {
127
+ margin-top: 0;
128
+ }
129
+ }
130
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-more[data-v-ea2252e3] {
131
+ font-size: 24px;
132
+ color: var(--o-color-info2);
133
+ }
134
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-atomgit-source[data-v-ea2252e3] {
135
+ font-size: 16px;
136
+ line-height: 24px;
137
+ }
138
+ @media (min-width: 1201px) and (max-width: 1680px) {
139
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-atomgit-source[data-v-ea2252e3] {
140
+ font-size: 14px;
141
+ line-height: 22px;
142
+ }
143
+ }
144
+ @media (min-width: 841px) and (max-width: 1200px) {
145
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-atomgit-source[data-v-ea2252e3] {
146
+ font-size: 14px;
147
+ line-height: 22px;
148
+ }
149
+ }
150
+ @media (min-width: 601px) and (max-width: 840px) {
151
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-atomgit-source[data-v-ea2252e3] {
152
+ font-size: 14px;
153
+ line-height: 22px;
154
+ }
155
+ }
156
+ @media (max-width: 600px) {
157
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-atomgit-source[data-v-ea2252e3] {
158
+ font-size: 12px;
159
+ line-height: 18px;
160
+ }
161
+ }
162
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-atomgit-source[data-v-ea2252e3] .o-link-label {
163
+ display: flex;
164
+ align-items: center;
165
+ }
166
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-ea2252e3] {
167
+ font-size: 22px;
168
+ line-height: 30px;
169
+ }
170
+ @media (min-width: 1201px) and (max-width: 1680px) {
171
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-ea2252e3] {
172
+ font-size: 18px;
173
+ line-height: 26px;
174
+ }
175
+ }
176
+ @media (min-width: 841px) and (max-width: 1200px) {
177
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-ea2252e3] {
178
+ font-size: 16px;
179
+ line-height: 24px;
180
+ }
181
+ }
182
+ @media (min-width: 601px) and (max-width: 840px) {
183
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-ea2252e3] {
184
+ font-size: 16px;
185
+ line-height: 24px;
186
+ }
187
+ }
188
+ @media (max-width: 600px) {
189
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-ea2252e3] {
190
+ font-size: 16px;
191
+ line-height: 24px;
192
+ }
193
+ }
194
+ .o-md-page-title.is-simple[data-v-ea2252e3] {
195
+ padding: 0;
196
+ background-image: none;
197
+ }
198
+ @media (max-width: 840px) {
199
+ .o-md-page-title.first-h1[data-v-ea2252e3] {
200
+ display: flex;
201
+ justify-content: space-between;
202
+ align-items: center;
203
+ }
204
+ }
205
+ .o-md-page-title.more-h1[data-v-ea2252e3] {
206
+ margin-top: var(--o-gap-6);
207
+ }
208
+ .o-md-page-dlg-action-box-container[data-v-ea2252e3] {
209
+ display: flex;
210
+ justify-content: space-around;
211
+ }
212
+ .o-md-page-dlg-action-box-container .o-md-page-dlg-action-box[data-v-ea2252e3] {
213
+ align-items: center;
214
+ display: flex;
215
+ flex-direction: column;
216
+ }
217
+ .o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-icon[data-v-ea2252e3] {
218
+ display: flex;
219
+ justify-content: center;
220
+ align-items: center;
221
+ width: 40px;
222
+ height: 40px;
223
+ background-color: var(--o-color-fill1);
224
+ border-radius: 50%;
225
+ font-size: 24px;
226
+ }
227
+ .o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-label[data-v-ea2252e3] {
228
+ margin-top: 8px;
229
+ color: var(--o-color-info1);
230
+ }
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ bg?: string;
3
+ gitcodeUrl?: string;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {
11
+ titleRef: HTMLDivElement;
12
+ };
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ bg: string;
18
+ gitcodeUrl: string;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ titleRef: HTMLDivElement;
21
+ }, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./MarkdownPageTitle.vue2.mjs";
2
+ import './MarkdownPageTitle.css';
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _MarkdownPageTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea2252e3"]]);
5
+ export {
6
+ _MarkdownPageTitle as default
7
+ };
@@ -0,0 +1,127 @@
1
+ import { defineComponent, useCssVars, computed, ref, onMounted, watch, nextTick, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
+ import { useWindowSize } from "@vueuse/core";
3
+ import { OIcon, OLink, ODialog } from "@opensig/opendesign";
4
+ import { useScreen } from "@opendesign-plus/composables";
5
+ import { useI18n } from "../../i18n/index.mjs";
6
+ import bg from "../../assets/markdown/md-title-bg.png.mjs";
7
+ import IconOutlink from "../../_virtual/icon-outlink.mjs";
8
+ import IconMore from "../../_virtual/icon-more.mjs";
9
+ const _hoisted_1 = { class: "o-md-page-title-text" };
10
+ const _hoisted_2 = {
11
+ key: 0,
12
+ class: "o-md-page-title-actions"
13
+ };
14
+ const _hoisted_3 = { class: "o-md-page-dlg-action-box-container" };
15
+ const _hoisted_4 = { class: "o-md-page-dlg-action-box" };
16
+ const _hoisted_5 = { class: "o-md-page-dlg-action-box-icon" };
17
+ const _hoisted_6 = { class: "o-md-page-dlg-action-box-label" };
18
+ const _sfc_main = /* @__PURE__ */ defineComponent({
19
+ __name: "MarkdownPageTitle",
20
+ props: {
21
+ bg: { default: bg },
22
+ gitcodeUrl: { default: "" }
23
+ },
24
+ setup(__props) {
25
+ useCssVars((_ctx) => ({
26
+ "f268dc4e": bgImage.value
27
+ }));
28
+ const props = __props;
29
+ const { lePadV } = useScreen();
30
+ const { width } = useWindowSize();
31
+ const { t } = useI18n();
32
+ const bgImage = computed(() => `url(${props.bg})`);
33
+ const titleRef = ref();
34
+ const isFirstH1 = ref(false);
35
+ const showActionsDlg = ref(false);
36
+ const checkShowDownloadPdf = () => {
37
+ var _a;
38
+ const mdBodyH1 = document.querySelector(".markdown-body h1");
39
+ const myH1 = (_a = titleRef.value) == null ? void 0 : _a.querySelector("h1");
40
+ isFirstH1.value = myH1 === mdBodyH1;
41
+ };
42
+ onMounted(() => {
43
+ checkShowDownloadPdf();
44
+ });
45
+ watch([lePadV, width], async () => {
46
+ await nextTick();
47
+ checkShowDownloadPdf();
48
+ });
49
+ return (_ctx, _cache) => {
50
+ return openBlock(), createElementBlock(Fragment, null, [
51
+ createElementVNode("div", {
52
+ ref_key: "titleRef",
53
+ ref: titleRef,
54
+ class: normalizeClass(["o-md-page-title", {
55
+ "is-simple": !isFirstH1.value || unref(lePadV),
56
+ "first-h1": isFirstH1.value,
57
+ "more-h1": !isFirstH1.value
58
+ }])
59
+ }, [
60
+ createElementVNode("div", _hoisted_1, [
61
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
62
+ ]),
63
+ isFirstH1.value && __props.gitcodeUrl ? (openBlock(), createElementBlock("div", _hoisted_2, [
64
+ unref(lePadV) ? (openBlock(), createBlock(unref(OIcon), {
65
+ key: 0,
66
+ class: "o-md-page-title-icon-more",
67
+ onClick: _cache[0] || (_cache[0] = ($event) => showActionsDlg.value = true)
68
+ }, {
69
+ default: withCtx(() => [
70
+ createVNode(unref(IconMore))
71
+ ]),
72
+ _: 1
73
+ })) : (openBlock(), createBlock(unref(OLink), {
74
+ key: 1,
75
+ class: "o-md-page-title-atomgit-source",
76
+ size: "large",
77
+ href: __props.gitcodeUrl,
78
+ target: "_blank",
79
+ rel: "noopener noreferrer"
80
+ }, {
81
+ default: withCtx(() => [
82
+ createTextVNode(toDisplayString(unref(t)("md.gitSource")) + " ", 1),
83
+ createVNode(unref(OIcon), { class: "o-md-page-title-icon-outlink" }, {
84
+ default: withCtx(() => [
85
+ createVNode(unref(IconOutlink))
86
+ ]),
87
+ _: 1
88
+ })
89
+ ]),
90
+ _: 1
91
+ }, 8, ["href"]))
92
+ ])) : createCommentVNode("", true)
93
+ ], 2),
94
+ unref(lePadV) ? (openBlock(), createBlock(unref(ODialog), {
95
+ key: 0,
96
+ visible: showActionsDlg.value,
97
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => showActionsDlg.value = $event),
98
+ size: "medium",
99
+ "phone-half-full": ""
100
+ }, {
101
+ header: withCtx(() => [
102
+ createTextVNode(toDisplayString(unref(t)("md.moreActions")), 1)
103
+ ]),
104
+ default: withCtx(() => [
105
+ createElementVNode("div", _hoisted_3, [
106
+ createElementVNode("div", _hoisted_4, [
107
+ createElementVNode("div", _hoisted_5, [
108
+ createVNode(unref(OIcon), null, {
109
+ default: withCtx(() => [
110
+ createVNode(unref(IconOutlink))
111
+ ]),
112
+ _: 1
113
+ })
114
+ ]),
115
+ createElementVNode("div", _hoisted_6, toDisplayString(unref(t)("md.gitSource")), 1)
116
+ ])
117
+ ])
118
+ ]),
119
+ _: 1
120
+ }, 8, ["visible"])) : createCommentVNode("", true)
121
+ ], 64);
122
+ };
123
+ }
124
+ });
125
+ export {
126
+ _sfc_main as default
127
+ };
@@ -0,0 +1,64 @@
1
+ .hover-icon-rotate .o-icon[data-v-954dc628] {
2
+ transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
+ }
4
+ @media (hover: hover) {
5
+ .hover-icon-rotate:hover .o-icon[data-v-954dc628] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-md-table-container[data-v-954dc628] {
10
+ position: relative;
11
+ width: 100%;
12
+ margin-bottom: var(--o-gap-2, 8px);
13
+ }
14
+ .o-md-table-container .o-md-table-expand-btn[data-v-954dc628] {
15
+ position: absolute;
16
+ top: 1px;
17
+ right: 1px;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ padding: 7px 16px;
22
+ z-index: 10;
23
+ cursor: pointer;
24
+ color: var(--o-color-info2);
25
+ background-color: var(--o-color-fill2);
26
+ border-top-right-radius: var(--o-radius-l);
27
+ font-size: 14px;
28
+ line-height: 22px;
29
+ }
30
+ @media (min-width: 1201px) and (max-width: 1680px) {
31
+ .o-md-table-container .o-md-table-expand-btn[data-v-954dc628] {
32
+ font-size: 14px;
33
+ line-height: 18px;
34
+ }
35
+ }
36
+ @media (min-width: 841px) and (max-width: 1200px) {
37
+ .o-md-table-container .o-md-table-expand-btn[data-v-954dc628] {
38
+ font-size: 12px;
39
+ line-height: 18px;
40
+ }
41
+ }
42
+ @media (min-width: 601px) and (max-width: 840px) {
43
+ .o-md-table-container .o-md-table-expand-btn[data-v-954dc628] {
44
+ font-size: 12px;
45
+ line-height: 18px;
46
+ }
47
+ }
48
+ @media (max-width: 600px) {
49
+ .o-md-table-container .o-md-table-expand-btn[data-v-954dc628] {
50
+ font-size: 12px;
51
+ line-height: 18px;
52
+ }
53
+ }
54
+ @media (hover: hover) {
55
+ .o-md-table-container .o-md-table-expand-btn[data-v-954dc628]:hover {
56
+ color: var(--o-color-info1);
57
+ }
58
+ }
59
+ .o-md-table-container .o-md-table-expand-btn .o-md-table-expand-icon[data-v-954dc628] {
60
+ margin-right: 8px;
61
+ }
62
+ .o-md-table-container .o-md-table-content[data-v-954dc628] {
63
+ opacity: 0;
64
+ }
@@ -0,0 +1,21 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ tableRef: HTMLDivElement;
8
+ };
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
13
+ tableRef: HTMLDivElement;
14
+ }, any>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./MarkdownTable.vue2.mjs";
2
+ import './MarkdownTable.css';
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _MarkdownTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-954dc628"]]);
5
+ export {
6
+ _MarkdownTable as default
7
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, unref, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, createBlock } from "vue";
2
+ import { OIcon } from "@opensig/opendesign";
3
+ import { useScreen } from "@opendesign-plus/composables";
4
+ import { useI18n } from "../../i18n/index.mjs";
5
+ import IconExpand from "../../_virtual/icon-expand.mjs";
6
+ import TableExpand from "./components/TableExpand.vue.mjs";
7
+ import TableData from "./components/TableData.vue.mjs";
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "MarkdownTable",
10
+ setup(__props) {
11
+ const { t } = useI18n();
12
+ const { lePadV } = useScreen();
13
+ const showExpand = ref(false);
14
+ const tableRef = ref();
15
+ const content = ref("");
16
+ const renderTable = ref(true);
17
+ onMounted(() => {
18
+ var _a;
19
+ content.value = ((_a = tableRef.value) == null ? void 0 : _a.innerHTML) || "";
20
+ renderTable.value = false;
21
+ });
22
+ const zoomVisible = ref(false);
23
+ const onExpand = () => {
24
+ zoomVisible.value = true;
25
+ };
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createElementBlock(Fragment, null, [
28
+ createElementVNode("div", {
29
+ class: "o-md-table-container",
30
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => showExpand.value = true),
31
+ onMouseleave: _cache[1] || (_cache[1] = ($event) => showExpand.value = false)
32
+ }, [
33
+ !unref(lePadV) && showExpand.value ? (openBlock(), createElementBlock("div", {
34
+ key: 0,
35
+ class: "o-md-table-expand-btn",
36
+ onClick: onExpand
37
+ }, [
38
+ createVNode(unref(OIcon), { class: "o-md-table-expand-icon" }, {
39
+ default: withCtx(() => [
40
+ createVNode(unref(IconExpand))
41
+ ]),
42
+ _: 1
43
+ }),
44
+ createElementVNode("span", null, toDisplayString(unref(t)("common.expand")), 1)
45
+ ])) : createCommentVNode("", true),
46
+ renderTable.value ? (openBlock(), createElementBlock("div", {
47
+ key: 1,
48
+ ref_key: "tableRef",
49
+ ref: tableRef,
50
+ class: "o-md-table-content"
51
+ }, [
52
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
53
+ ], 512)) : (openBlock(), createBlock(TableData, {
54
+ key: 2,
55
+ content: content.value
56
+ }, null, 8, ["content"]))
57
+ ], 32),
58
+ createVNode(TableExpand, {
59
+ visible: zoomVisible.value,
60
+ "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => zoomVisible.value = $event),
61
+ content: content.value
62
+ }, null, 8, ["visible", "content"])
63
+ ], 64);
64
+ };
65
+ }
66
+ });
67
+ export {
68
+ _sfc_main as default
69
+ };
@@ -0,0 +1,76 @@
1
+ .hover-icon-rotate .o-icon[data-v-5cbd177d] {
2
+ transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
+ }
4
+ @media (hover: hover) {
5
+ .hover-icon-rotate:hover .o-icon[data-v-5cbd177d] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-md-title-wrap[data-v-5cbd177d] {
10
+ position: relative;
11
+ display: inline-flex;
12
+ max-width: 100%;
13
+ }
14
+ .o-md-title-wrap .o-md-title[data-v-5cbd177d] {
15
+ flex: 1;
16
+ display: inline-block;
17
+ overflow-wrap: break-word;
18
+ word-wrap: break-word;
19
+ word-break: normal;
20
+ width: calc(100% - 2rem);
21
+ }
22
+ .o-md-title-wrap .o-md-title-copy-link-wrap[data-v-5cbd177d] {
23
+ position: relative;
24
+ width: 1em;
25
+ height: 1em;
26
+ margin-left: 8px;
27
+ clear: both;
28
+ }
29
+ @media (max-width: 1680px) {
30
+ .o-md-title-wrap .o-md-title-copy-link-wrap[data-v-5cbd177d] {
31
+ margin-left: 4px;
32
+ }
33
+ }
34
+ .o-md-title-wrap .o-md-title-copy-link[data-v-5cbd177d] {
35
+ position: absolute;
36
+ top: 2px;
37
+ font-size: 24px;
38
+ line-height: 32px;
39
+ }
40
+ @media (min-width: 1201px) and (max-width: 1680px) {
41
+ .o-md-title-wrap .o-md-title-copy-link[data-v-5cbd177d] {
42
+ font-size: 20px;
43
+ line-height: 28px;
44
+ }
45
+ }
46
+ @media (min-width: 841px) and (max-width: 1200px) {
47
+ .o-md-title-wrap .o-md-title-copy-link[data-v-5cbd177d] {
48
+ font-size: 18px;
49
+ line-height: 26px;
50
+ }
51
+ }
52
+ @media (min-width: 601px) and (max-width: 840px) {
53
+ .o-md-title-wrap .o-md-title-copy-link[data-v-5cbd177d] {
54
+ font-size: 18px;
55
+ line-height: 26px;
56
+ }
57
+ }
58
+ @media (max-width: 600px) {
59
+ .o-md-title-wrap .o-md-title-copy-link[data-v-5cbd177d] {
60
+ font-size: 16px;
61
+ line-height: 24px;
62
+ }
63
+ }
64
+ @media (hover: hover) {
65
+ .o-md-title-wrap .o-md-title-copy-link[data-v-5cbd177d]:hover {
66
+ color: var(--o-color-primary1);
67
+ }
68
+ }
69
+ .o-md-title-wrap .o-md-title-copy-link .o-md-title-icon-copy[data-v-5cbd177d] {
70
+ color: var(--o-color-info2);
71
+ }
72
+ @media (hover: hover) {
73
+ .o-md-title-wrap .o-md-title-copy-link .o-md-title-icon-copy[data-v-5cbd177d]:hover {
74
+ color: var(--o-color-info1);
75
+ }
76
+ }