@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,33 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLSpanElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ titleId: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ "scroll-into-title": () => any;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ titleId: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ }>> & Readonly<{
23
+ "onScroll-into-title"?: (() => any) | undefined;
24
+ }>, {
25
+ titleId: string;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./MarkdownTitle.vue2.mjs";
2
+ import './MarkdownTitle.css';
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _MarkdownTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5cbd177d"]]);
5
+ export {
6
+ _MarkdownTitle as default
7
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, unref, withCtx, createTextVNode, toDisplayString } from "vue";
2
+ import { useMessage, OPopover, OIcon } from "@opensig/opendesign";
3
+ import { useClipboard } from "@opendesign-plus/composables";
4
+ import { useI18n } from "../../i18n/index.mjs";
5
+ import IconLink from "../../_virtual/icon-link.mjs";
6
+ const _hoisted_1 = { class: "o-md-title-wrap" };
7
+ const _hoisted_2 = { class: "o-md-title" };
8
+ const _hoisted_3 = { class: "o-md-title-copy-link-wrap" };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "MarkdownTitle",
11
+ props: {
12
+ // 标签标题
13
+ titleId: {
14
+ type: String,
15
+ default: ""
16
+ }
17
+ },
18
+ emits: ["scroll-into-title"],
19
+ setup(__props) {
20
+ const props = __props;
21
+ const message = useMessage();
22
+ const { t } = useI18n();
23
+ const onClickCopyLink = async () => {
24
+ const text = `${window.location.origin}${window.location.pathname}#${props.titleId.replace("user-content-", "")}`;
25
+ if (await useClipboard(text)) {
26
+ message.success({
27
+ content: t("common.copySuccess")
28
+ });
29
+ }
30
+ };
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createElementBlock("span", _hoisted_1, [
33
+ createElementVNode("span", _hoisted_2, [
34
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
35
+ ]),
36
+ createElementVNode("span", _hoisted_3, [
37
+ createVNode(unref(OPopover), {
38
+ position: "right",
39
+ trigger: "hover"
40
+ }, {
41
+ target: withCtx(() => [
42
+ createElementVNode("a", {
43
+ class: "o-md-title-copy-link",
44
+ onClick: onClickCopyLink
45
+ }, [
46
+ createVNode(unref(OIcon), { class: "o-md-title-icon-copy" }, {
47
+ default: withCtx(() => [
48
+ createVNode(unref(IconLink))
49
+ ]),
50
+ _: 1
51
+ })
52
+ ])
53
+ ]),
54
+ default: withCtx(() => [
55
+ createTextVNode(" " + toDisplayString(unref(t)("common.copyLink")), 1)
56
+ ]),
57
+ _: 1
58
+ })
59
+ ])
60
+ ]);
61
+ };
62
+ }
63
+ });
64
+ export {
65
+ _sfc_main as default
66
+ };
@@ -0,0 +1,94 @@
1
+ .hover-icon-rotate .o-icon[data-v-54a29503] {
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-54a29503] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-table-data--wrap[data-v-54a29503] {
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-table-data--wrap[data-v-54a29503] {
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-table-data--wrap[data-v-54a29503] {
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-table-data--wrap[data-v-54a29503] {
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-table-data--wrap[data-v-54a29503] {
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-table-data--wrap[data-v-54a29503] .o-data-table {
78
+ --table-edge-padding: var(--o-gap-4);
79
+ --table-cell-padding: var(--o-gap-2) var(--o-gap-4);
80
+ --table-head-cell-padding: var(--o-gap-2) var(--o-gap-4);
81
+ --table-head-bg: var(--o-color-fill2);
82
+ width: 100%;
83
+ }
84
+ .o-table-data--wrap[data-v-54a29503] .md-cell {
85
+ background: var(--o-color-fill2) !important;
86
+ }
87
+ .o-table-data-original[data-v-54a29503] {
88
+ width: 100%;
89
+ margin-bottom: var(--o-gap-4);
90
+ max-height: var(--o-md-table-max-height);
91
+ overflow: auto;
92
+ border: 1px solid var(--o-color-control4);
93
+ border-radius: var(--o-md-table-radius, var(--o-radius-m));
94
+ }
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ original?: boolean;
4
+ maxHeight?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ maxHeight: string;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./TableData.vue2.mjs";
2
+ import './TableData.css';
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const TableData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-54a29503"]]);
5
+ export {
6
+ TableData as default
7
+ };
@@ -0,0 +1,112 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, createBlock, normalizeStyle, withCtx, createElementVNode, withDirectives, h } from "vue";
2
+ import { ODataTable, OScroller } from "@opensig/opendesign";
3
+ import { buildVueDompurifyHTMLDirective } from "vue-dompurify-html";
4
+ const _hoisted_1 = {
5
+ key: 0,
6
+ class: "o-table-data--wrap"
7
+ };
8
+ const _hoisted_2 = { class: "markdown-body" };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "TableData",
11
+ props: {
12
+ content: {},
13
+ original: { type: Boolean },
14
+ maxHeight: { default: "calc(100vh - var(--layout-doc-content-min-height, 144px) - 64px)" }
15
+ },
16
+ setup(__props) {
17
+ const vDompurifyHtml = buildVueDompurifyHTMLDirective();
18
+ const props = __props;
19
+ const renderHtmlCell = (html) => withDirectives(h("div", { class: "md-cell markdown-body" }), [[vDompurifyHtml, html]]);
20
+ const isRegular = computed(() => {
21
+ if (props.original) {
22
+ return false;
23
+ }
24
+ const html = (props.content || "").trim();
25
+ if (!html) {
26
+ return false;
27
+ }
28
+ if (typeof DOMParser === "undefined") {
29
+ return false;
30
+ }
31
+ const doc = new DOMParser().parseFromString(html, "text/html");
32
+ const table = doc.querySelector("table");
33
+ if (!table) {
34
+ return false;
35
+ }
36
+ if (table.querySelector("[colspan],[rowspan]")) {
37
+ return false;
38
+ }
39
+ const thead = table.querySelector("thead");
40
+ const headerRow = thead == null ? void 0 : thead.querySelector("tr");
41
+ const headerCells = headerRow ? Array.from(headerRow.children) : [];
42
+ if (headerCells.length === 0) {
43
+ return false;
44
+ }
45
+ const tbody = table.querySelector("tbody") ?? table;
46
+ const bodyRows = Array.from(tbody.querySelectorAll("tr")).filter((tr) => !tr.closest("thead"));
47
+ return bodyRows.length > 0;
48
+ });
49
+ const tableColumns = computed(() => {
50
+ if (!isRegular.value) {
51
+ return [];
52
+ }
53
+ const doc = new DOMParser().parseFromString(props.content, "text/html");
54
+ const headerRow = doc.querySelector("thead tr");
55
+ const headerCells = headerRow ? Array.from(headerRow.children) : [];
56
+ return headerCells.map((cell, i) => ({
57
+ key: `col_${i}`,
58
+ label: (cell.textContent || "").trim(),
59
+ minWidth: 120,
60
+ formatter: ({ cellValue }) => renderHtmlCell(String(cellValue ?? ""))
61
+ }));
62
+ });
63
+ const tableData = computed(() => {
64
+ if (!isRegular.value) {
65
+ return [];
66
+ }
67
+ const doc = new DOMParser().parseFromString(props.content, "text/html");
68
+ const tbody = doc.querySelector("tbody") ?? doc.querySelector("table");
69
+ const bodyRows = Array.from(tbody.querySelectorAll("tr")).filter((tr) => !tr.closest("thead"));
70
+ return bodyRows.map((tr, rowIndex) => {
71
+ const cells = Array.from(tr.querySelectorAll("td,th"));
72
+ const row = { id: rowIndex };
73
+ cells.forEach((cell, i) => {
74
+ row[`col_${i}`] = cell.innerHTML;
75
+ });
76
+ return row;
77
+ });
78
+ });
79
+ return (_ctx, _cache) => {
80
+ return isRegular.value && tableColumns.value.length && tableData.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
81
+ createVNode(unref(ODataTable), {
82
+ data: tableData.value,
83
+ columns: tableColumns.value,
84
+ "row-key": "id",
85
+ border: "all",
86
+ "header-style": "split-line",
87
+ size: "small",
88
+ "column-resizable": "",
89
+ "max-height": __props.maxHeight
90
+ }, null, 8, ["data", "columns", "max-height"])
91
+ ])) : (openBlock(), createBlock(unref(OScroller), {
92
+ key: 1,
93
+ class: "o-table-data-original",
94
+ size: "small",
95
+ "show-type": "always",
96
+ style: normalizeStyle({ "--o-md-table-max-height": __props.maxHeight })
97
+ }, {
98
+ default: withCtx(() => [
99
+ createElementVNode("div", _hoisted_2, [
100
+ withDirectives(createElementVNode("div", null, null, 512), [
101
+ [unref(vDompurifyHtml), props.content]
102
+ ])
103
+ ])
104
+ ]),
105
+ _: 1
106
+ }, 8, ["style"]));
107
+ };
108
+ }
109
+ });
110
+ export {
111
+ _sfc_main as default
112
+ };
@@ -0,0 +1,66 @@
1
+ .hover-icon-rotate .o-icon[data-v-049444f7] {
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-049444f7] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-table-expand-scaler[data-v-049444f7] {
10
+ position: relative;
11
+ width: 80vw;
12
+ height: auto;
13
+ max-height: 90vh;
14
+ overflow: auto;
15
+ background-color: var(--o-color-fill2);
16
+ border-radius: var(--o-radius-l);
17
+ font-size: 14px;
18
+ line-height: 22px;
19
+ }
20
+ @media (min-width: 1201px) and (max-width: 1680px) {
21
+ .o-table-expand-scaler[data-v-049444f7] {
22
+ font-size: 14px;
23
+ line-height: 18px;
24
+ }
25
+ }
26
+ @media (min-width: 841px) and (max-width: 1200px) {
27
+ .o-table-expand-scaler[data-v-049444f7] {
28
+ font-size: 12px;
29
+ line-height: 18px;
30
+ }
31
+ }
32
+ @media (min-width: 601px) and (max-width: 840px) {
33
+ .o-table-expand-scaler[data-v-049444f7] {
34
+ font-size: 12px;
35
+ line-height: 18px;
36
+ }
37
+ }
38
+ @media (max-width: 600px) {
39
+ .o-table-expand-scaler[data-v-049444f7] {
40
+ font-size: 12px;
41
+ line-height: 18px;
42
+ }
43
+ }
44
+ .o-table-expand-close-btn[data-v-049444f7] {
45
+ position: sticky;
46
+ top: 12px;
47
+ right: 12px;
48
+ float: right;
49
+ z-index: 2;
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ cursor: pointer;
54
+ color: var(--o-color-info2);
55
+ }
56
+ @media (hover: hover) {
57
+ .o-table-expand-close-btn[data-v-049444f7]:hover {
58
+ color: var(--o-color-info1);
59
+ }
60
+ }
61
+ .o-table-expand-close-btn .o-table-expand-close-icon[data-v-049444f7] {
62
+ margin-right: 8px;
63
+ }
64
+ .o-table-expand-content[data-v-049444f7] {
65
+ padding: 48px 32px;
66
+ }
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ 'visible'?: boolean;
6
+ } & __VLS_Props;
7
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:visible": (value: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./TableExpand.vue2.mjs";
2
+ import './TableExpand.css';
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const TableExpand = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-049444f7"]]);
5
+ export {
6
+ TableExpand as default
7
+ };
@@ -0,0 +1,89 @@
1
+ import { defineComponent, useModel, ref, watch, onBeforeUnmount, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, createElementVNode, toDisplayString, mergeModels } from "vue";
2
+ import { OLayer, OIcon } from "@opensig/opendesign";
3
+ import { useI18n } from "../../../i18n/index.mjs";
4
+ import IconUnexpand from "../../../_virtual/icon-unexpand.mjs";
5
+ import TableData from "./TableData.vue.mjs";
6
+ const _hoisted_1 = { class: "o-table-expand-scaler" };
7
+ const _hoisted_2 = { class: "o-table-expand-content" };
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "TableExpand",
10
+ props: /* @__PURE__ */ mergeModels({
11
+ content: {}
12
+ }, {
13
+ "visible": { type: Boolean, ...{ default: false } },
14
+ "visibleModifiers": {}
15
+ }),
16
+ emits: ["update:visible"],
17
+ setup(__props) {
18
+ const { t } = useI18n();
19
+ const visible = useModel(__props, "visible");
20
+ const onClose = () => {
21
+ visible.value = false;
22
+ };
23
+ const tableReady = ref(false);
24
+ let readyTimer;
25
+ watch(
26
+ () => visible.value,
27
+ (val) => {
28
+ if (typeof window === "undefined") {
29
+ return;
30
+ }
31
+ if (readyTimer) {
32
+ clearTimeout(readyTimer);
33
+ }
34
+ clearTimeout(readyTimer);
35
+ readyTimer = setTimeout(() => {
36
+ tableReady.value = val;
37
+ }, 300);
38
+ },
39
+ {
40
+ immediate: true
41
+ }
42
+ );
43
+ onBeforeUnmount(() => {
44
+ if (readyTimer) {
45
+ clearTimeout(readyTimer);
46
+ }
47
+ });
48
+ return (_ctx, _cache) => {
49
+ const _component_ClientOnly = resolveComponent("ClientOnly");
50
+ return openBlock(), createBlock(_component_ClientOnly, null, {
51
+ default: withCtx(() => [
52
+ createVNode(unref(OLayer), {
53
+ visible: visible.value,
54
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event)
55
+ }, {
56
+ default: withCtx(() => [
57
+ createElementVNode("div", _hoisted_1, [
58
+ createElementVNode("div", {
59
+ class: "o-table-expand-close-btn",
60
+ onClick: onClose
61
+ }, [
62
+ createVNode(unref(OIcon), { class: "o-table-expand-close-icon" }, {
63
+ default: withCtx(() => [
64
+ createVNode(unref(IconUnexpand))
65
+ ]),
66
+ _: 1
67
+ }),
68
+ createElementVNode("span", null, toDisplayString(unref(t)("common.collapse")), 1)
69
+ ]),
70
+ createElementVNode("div", _hoisted_2, [
71
+ createVNode(TableData, {
72
+ original: !tableReady.value,
73
+ content: __props.content,
74
+ "max-height": "min(calc(100vh - var(--layout-doc-content-min-height, 144px) - 64px), 80vh)"
75
+ }, null, 8, ["original", "content"])
76
+ ])
77
+ ])
78
+ ]),
79
+ _: 1
80
+ }, 8, ["visible"])
81
+ ]),
82
+ _: 1
83
+ });
84
+ };
85
+ }
86
+ });
87
+ export {
88
+ _sfc_main as default
89
+ };
@@ -0,0 +1,163 @@
1
+ import { App } from 'vue';
2
+ declare const MarkdownTable: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
4
+ tableRef: HTMLDivElement;
5
+ }, any, import('vue').ComponentProvideOptions, {
6
+ P: {};
7
+ B: {};
8
+ D: {};
9
+ C: {};
10
+ M: {};
11
+ Defaults: {};
12
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
13
+ __isFragment?: never;
14
+ __isTeleport?: never;
15
+ __isSuspense?: never;
16
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
17
+ $slots: {
18
+ default?(_: {}): any;
19
+ };
20
+ }) & {
21
+ install(app: App): void;
22
+ };
23
+ declare const MarkdownCode: {
24
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
25
+ lang?: string;
26
+ code?: string;
27
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
28
+ mdCodeRef: HTMLDivElement;
29
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
30
+ P: {};
31
+ B: {};
32
+ D: {};
33
+ C: {};
34
+ M: {};
35
+ Defaults: {};
36
+ }, Readonly<{
37
+ lang?: string;
38
+ code?: string;
39
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
40
+ __isFragment?: never;
41
+ __isTeleport?: never;
42
+ __isSuspense?: never;
43
+ } & import('vue').ComponentOptionsBase<Readonly<{
44
+ lang?: string;
45
+ code?: string;
46
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
47
+ $slots: {
48
+ default?(_: {}): any;
49
+ };
50
+ }) & {
51
+ install(app: App): void;
52
+ };
53
+ declare const MarkdownImage: {
54
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
55
+ containerRef: HTMLSpanElement;
56
+ }, HTMLSpanElement, import('vue').ComponentProvideOptions, {
57
+ P: {};
58
+ B: {};
59
+ D: {};
60
+ C: {};
61
+ M: {};
62
+ Defaults: {};
63
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
64
+ __isFragment?: never;
65
+ __isTeleport?: never;
66
+ __isSuspense?: never;
67
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
68
+ $slots: {
69
+ default?(_: {}): any;
70
+ };
71
+ }) & {
72
+ install(app: App): void;
73
+ };
74
+ declare const MarkdownTitle: {
75
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
76
+ titleId: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{
81
+ "onScroll-into-title"?: (() => any) | undefined;
82
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
83
+ "scroll-into-title": () => any;
84
+ }, import('vue').PublicProps, {
85
+ titleId: string;
86
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
87
+ P: {};
88
+ B: {};
89
+ D: {};
90
+ C: {};
91
+ M: {};
92
+ Defaults: {};
93
+ }, Readonly<import('vue').ExtractPropTypes<{
94
+ titleId: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ }>> & Readonly<{
99
+ "onScroll-into-title"?: (() => any) | undefined;
100
+ }>, {}, {}, {}, {}, {
101
+ titleId: string;
102
+ }>;
103
+ __isFragment?: never;
104
+ __isTeleport?: never;
105
+ __isSuspense?: never;
106
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
107
+ titleId: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ }>> & Readonly<{
112
+ "onScroll-into-title"?: (() => any) | undefined;
113
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
114
+ "scroll-into-title": () => any;
115
+ }, string, {
116
+ titleId: string;
117
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
118
+ $slots: {
119
+ default?(_: {}): any;
120
+ };
121
+ }) & {
122
+ install(app: App): void;
123
+ };
124
+ declare const MarkdownPageTitle: {
125
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
126
+ bg?: string;
127
+ gitcodeUrl?: string;
128
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
129
+ bg: string;
130
+ gitcodeUrl: string;
131
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
132
+ titleRef: HTMLDivElement;
133
+ }, any, import('vue').ComponentProvideOptions, {
134
+ P: {};
135
+ B: {};
136
+ D: {};
137
+ C: {};
138
+ M: {};
139
+ Defaults: {};
140
+ }, Readonly<{
141
+ bg?: string;
142
+ gitcodeUrl?: string;
143
+ }> & Readonly<{}>, {}, {}, {}, {}, {
144
+ bg: string;
145
+ gitcodeUrl: string;
146
+ }>;
147
+ __isFragment?: never;
148
+ __isTeleport?: never;
149
+ __isSuspense?: never;
150
+ } & import('vue').ComponentOptionsBase<Readonly<{
151
+ bg?: string;
152
+ gitcodeUrl?: string;
153
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
154
+ bg: string;
155
+ gitcodeUrl: string;
156
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
157
+ $slots: {
158
+ default?(_: {}): any;
159
+ };
160
+ }) & {
161
+ install(app: App): void;
162
+ };
163
+ export { MarkdownTable, MarkdownCode, MarkdownImage, MarkdownTitle, MarkdownPageTitle, };