@opendesign-plus-test/components 0.0.1-rc.306 → 0.0.1-rc.307

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.
@@ -35568,7 +35568,7 @@ function UM(e, t) {
35568
35568
  let r = e.match(/<body[^>]*>([\s\S]*?)<\/body>/i), i = r ? r[1] : e;
35569
35569
  return i = i.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, ""), {
35570
35570
  body: i.replace(/style\s*=\s*"([^"]*)"/gi, (e, t) => {
35571
- let n = t.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size|line-height|text-decoration)\s*:\s*[^;]+;?/gi, "").replace(/\s{2,}/g, " ").trim();
35571
+ let n = t.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size|line-height|text-decoration)\s*:\s*[^;]+;?/gi, "").replace(/(?<![-\w])list-style(?:-type)?\s*:\s*[^;]*circle[^;]*;?/gi, "").replace(/\s{2,}/g, " ").trim();
35572
35572
  return n ? `style="${n}"` : "";
35573
35573
  }),
35574
35574
  styleCss: n.join("\n")
@@ -35624,7 +35624,7 @@ var WM = { class: "o-html-viewer" }, GM = ["aria-label"], KM = {
35624
35624
  "aria-label": t.title ?? U(o)("htmlViewer.title")
35625
35625
  }, null, 8, GM)), [[U(r), h.value]]) : c.value ? (P(), f("div", KM, [V(e.$slots, "loading", {}, () => [g(H(U(o)("htmlViewer.loading")), 1)], !0)])) : p.value ? (P(), f("div", qM, [V(e.$slots, "error", {}, () => [g(H(p.value), 1)], !0)])) : d("", !0)]));
35626
35626
  }
35627
- }), [["__scopeId", "data-v-b45a5197"]]), XM = Object.assign(YM, { install(e) {
35627
+ }), [["__scopeId", "data-v-d580315c"]]), XM = Object.assign(YM, { install(e) {
35628
35628
  e.component("OHtmlViewer", YM);
35629
35629
  } });
35630
35630
  // src/components/icon/index.ts
@@ -1,7 +1,7 @@
1
1
  import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import OHtmlViewer_vue_vue_type_script_setup_true_lang_default from "./OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs";
3
- import './OHtmlViewer.vue_vue_type_style_index_0_scoped_b45a5197_lang.css';
3
+ import './OHtmlViewer.vue_vue_type_style_index_0_scoped_d580315c_lang.css';
4
4
  import './OHtmlViewer.vue_vue_type_style_index_1_lang.css';
5
5
  // src/components/html-viewer/OHtmlViewer.vue
6
- var OHtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OHtmlViewer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-b45a5197"]]);
6
+ var OHtmlViewer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OHtmlViewer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d580315c"]]);
7
7
  export { OHtmlViewer_default as default };
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-b45a5197] {
1
+ .hover-icon-rotate .o-icon[data-v-d580315c] {
2
2
  transition: all var(--o-duration-m1) var(--o-easing-standard-in);
3
3
  }
4
4
  @media (hover: hover) {
5
- .hover-icon-rotate:hover .o-icon[data-v-b45a5197] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-d580315c] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-html-viewer[data-v-b45a5197] {
9
+ .o-html-viewer[data-v-d580315c] {
10
10
  position: relative;
11
11
  width: 100%;
12
12
  --o-gap-1: 4px;
@@ -21,7 +21,7 @@
21
21
  --o-gap-10: 72px;
22
22
  }
23
23
  @media (max-width: 1680px) {
24
- .o-html-viewer[data-v-b45a5197] {
24
+ .o-html-viewer[data-v-d580315c] {
25
25
  --o-gap-1: 4px;
26
26
  --o-gap-2: 8px;
27
27
  --o-gap-3: 8px;
@@ -35,7 +35,7 @@
35
35
  }
36
36
  }
37
37
  @media (max-width: 1200px) {
38
- .o-html-viewer[data-v-b45a5197] {
38
+ .o-html-viewer[data-v-d580315c] {
39
39
  --o-gap-1: 4px;
40
40
  --o-gap-2: 8px;
41
41
  --o-gap-3: 8px;
@@ -49,7 +49,7 @@
49
49
  }
50
50
  }
51
51
  @media (max-width: 840px) {
52
- .o-html-viewer[data-v-b45a5197] {
52
+ .o-html-viewer[data-v-d580315c] {
53
53
  --o-gap-1: 4px;
54
54
  --o-gap-2: 8px;
55
55
  --o-gap-3: 8px;
@@ -63,7 +63,7 @@
63
63
  }
64
64
  }
65
65
  @media (max-width: 600px) {
66
- .o-html-viewer[data-v-b45a5197] {
66
+ .o-html-viewer[data-v-d580315c] {
67
67
  --o-gap-1: 4px;
68
68
  --o-gap-2: 8px;
69
69
  --o-gap-3: 8px;
@@ -76,7 +76,7 @@
76
76
  --o-gap-10: 32px;
77
77
  }
78
78
  }
79
- .o-html-viewer__status[data-v-b45a5197] {
79
+ .o-html-viewer__status[data-v-d580315c] {
80
80
  display: flex;
81
81
  align-items: center;
82
82
  justify-content: center;
@@ -86,10 +86,10 @@
86
86
  line-height: 22px;
87
87
  color: var(--o-color-info2);
88
88
  }
89
- .o-html-viewer__status.is-error[data-v-b45a5197] {
89
+ .o-html-viewer__status.is-error[data-v-d580315c] {
90
90
  color: var(--o-color-info3);
91
91
  }
92
- .o-html-viewer__body[data-v-b45a5197] {
92
+ .o-html-viewer__body[data-v-d580315c] {
93
93
  max-width: 880px;
94
94
  margin: 0 auto;
95
95
  font-size: var(--doc-base-size, var(--o-font_size-tip1, 14px));
@@ -99,55 +99,55 @@
99
99
  word-wrap: break-word;
100
100
  overflow-wrap: break-word;
101
101
  }
102
- .o-html-viewer__body[data-v-b45a5197] .title_content {
102
+ .o-html-viewer__body[data-v-d580315c] .title_content {
103
103
  color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
104
104
  }
105
- .o-html-viewer__body[data-v-b45a5197] .body_content {
105
+ .o-html-viewer__body[data-v-d580315c] .body_content {
106
106
  padding: 0;
107
107
  }
108
- .o-html-viewer__body[data-v-b45a5197] [style*='font-family' i] {
108
+ .o-html-viewer__body[data-v-d580315c] [style*='font-family' i] {
109
109
  font-family: inherit !important;
110
110
  }
111
- .o-html-viewer__body[data-v-b45a5197] .list_title {
111
+ .o-html-viewer__body[data-v-d580315c] .list_title {
112
112
  font-size: 22px;
113
113
  line-height: 30px;
114
114
  }
115
115
  @media (min-width: 1201px) and (max-width: 1680px) {
116
- .o-html-viewer__body[data-v-b45a5197] .list_title {
116
+ .o-html-viewer__body[data-v-d580315c] .list_title {
117
117
  font-size: 18px;
118
118
  line-height: 26px;
119
119
  }
120
120
  }
121
121
  @media (min-width: 841px) and (max-width: 1200px) {
122
- .o-html-viewer__body[data-v-b45a5197] .list_title {
122
+ .o-html-viewer__body[data-v-d580315c] .list_title {
123
123
  font-size: 16px;
124
124
  line-height: 24px;
125
125
  }
126
126
  }
127
127
  @media (min-width: 601px) and (max-width: 840px) {
128
- .o-html-viewer__body[data-v-b45a5197] .list_title {
128
+ .o-html-viewer__body[data-v-d580315c] .list_title {
129
129
  font-size: 16px;
130
130
  line-height: 24px;
131
131
  }
132
132
  }
133
133
  @media (max-width: 600px) {
134
- .o-html-viewer__body[data-v-b45a5197] .list_title {
134
+ .o-html-viewer__body[data-v-d580315c] .list_title {
135
135
  font-size: 16px;
136
136
  line-height: 24px;
137
137
  }
138
138
  }
139
- .o-html-viewer__body[data-v-b45a5197] .list_title {
139
+ .o-html-viewer__body[data-v-d580315c] .list_title {
140
140
  display: block;
141
141
  margin-bottom: var(--o-r-gap-4, 16px);
142
142
  }
143
- .o-html-viewer__body[data-v-b45a5197] .ropa_base_information .content {
143
+ .o-html-viewer__body[data-v-d580315c] .ropa_base_information .content {
144
144
  padding-left: 0;
145
145
  }
146
- .o-html-viewer__body[data-v-b45a5197] .ropa_base_information .content ul, .o-html-viewer__body[data-v-b45a5197] .ropa_base_information .content ol {
146
+ .o-html-viewer__body[data-v-d580315c] .ropa_base_information .content ul, .o-html-viewer__body[data-v-d580315c] .ropa_base_information .content ol {
147
147
  padding-left: 0;
148
148
  }
149
- .o-html-viewer__body[data-v-b45a5197] :where(h1),
150
- .o-html-viewer__body[data-v-b45a5197] .title_content {
149
+ .o-html-viewer__body[data-v-d580315c] :where(h1),
150
+ .o-html-viewer__body[data-v-d580315c] .title_content {
151
151
  font-weight: bold;
152
152
  text-align: center;
153
153
  margin: var(--o-r-gap-7, var(--o-gap-6, 32px)) 0 var(--doc-title-border-bottom-gap, var(--o-gap-6, 32px));
@@ -157,133 +157,136 @@
157
157
  line-height: 44px;
158
158
  }
159
159
  @media (min-width: 1201px) and (max-width: 1680px) {
160
- .o-html-viewer__body[data-v-b45a5197] :where(h1),
161
- .o-html-viewer__body[data-v-b45a5197] .title_content {
160
+ .o-html-viewer__body[data-v-d580315c] :where(h1),
161
+ .o-html-viewer__body[data-v-d580315c] .title_content {
162
162
  font-size: 20px;
163
163
  line-height: 28px;
164
164
  }
165
165
  }
166
166
  @media (min-width: 841px) and (max-width: 1200px) {
167
- .o-html-viewer__body[data-v-b45a5197] :where(h1),
168
- .o-html-viewer__body[data-v-b45a5197] .title_content {
167
+ .o-html-viewer__body[data-v-d580315c] :where(h1),
168
+ .o-html-viewer__body[data-v-d580315c] .title_content {
169
169
  font-size: 20px;
170
170
  line-height: 28px;
171
171
  }
172
172
  }
173
173
  @media (min-width: 601px) and (max-width: 840px) {
174
- .o-html-viewer__body[data-v-b45a5197] :where(h1),
175
- .o-html-viewer__body[data-v-b45a5197] .title_content {
174
+ .o-html-viewer__body[data-v-d580315c] :where(h1),
175
+ .o-html-viewer__body[data-v-d580315c] .title_content {
176
176
  font-size: 18px;
177
177
  line-height: 26px;
178
178
  }
179
179
  }
180
180
  @media (max-width: 600px) {
181
- .o-html-viewer__body[data-v-b45a5197] :where(h1),
182
- .o-html-viewer__body[data-v-b45a5197] .title_content {
181
+ .o-html-viewer__body[data-v-d580315c] :where(h1),
182
+ .o-html-viewer__body[data-v-d580315c] .title_content {
183
183
  font-size: 16px;
184
184
  line-height: 24px;
185
185
  }
186
186
  }
187
- .o-html-viewer__body[data-v-b45a5197] :where(h2) {
187
+ .o-html-viewer__body[data-v-d580315c] :where(h2) {
188
188
  font-size: 18px;
189
189
  font-weight: bold;
190
190
  color: color-mix(in srgb, var(--o-color-primary1) 90%, transparent);
191
191
  padding-bottom: 0.3rem;
192
192
  line-height: 1.4;
193
193
  }
194
- .o-html-viewer__body[data-v-b45a5197] :where(h3) {
194
+ .o-html-viewer__body[data-v-d580315c] :where(h3) {
195
195
  font-size: 16px;
196
196
  font-weight: bold;
197
197
  color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
198
198
  margin: 1.8rem 0 0.8rem;
199
199
  line-height: 1.5;
200
200
  }
201
- .o-html-viewer__body[data-v-b45a5197] :where(h4) {
201
+ .o-html-viewer__body[data-v-d580315c] :where(h4) {
202
202
  font-size: 15px;
203
203
  font-weight: bold;
204
204
  color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
205
205
  margin: 1.5rem 0 0.6rem;
206
206
  line-height: 1.5;
207
207
  }
208
- .o-html-viewer__body[data-v-b45a5197] :where(h5) {
208
+ .o-html-viewer__body[data-v-d580315c] :where(h5) {
209
209
  font-size: 14px;
210
210
  font-weight: bold;
211
211
  color: color-mix(in srgb, var(--o-color-info1) 90%, transparent);
212
212
  margin: 1.2rem 0 0.5rem;
213
213
  line-height: 1.5;
214
214
  }
215
- .o-html-viewer__body[data-v-b45a5197] :where(h6) {
215
+ .o-html-viewer__body[data-v-d580315c] :where(h6) {
216
216
  font-size: 14px;
217
217
  font-weight: bold;
218
218
  color: color-mix(in srgb, var(--o-color-info2) 90%, transparent);
219
219
  margin: 1rem 0 0.4rem;
220
220
  line-height: 1.5;
221
221
  }
222
- .o-html-viewer__body[data-v-b45a5197] :where(p) {
222
+ .o-html-viewer__body[data-v-d580315c] :where(p) {
223
223
  margin-bottom: var(--o-gap-2, 8px) !important;
224
224
  text-align: justify;
225
225
  }
226
- .o-html-viewer__body[data-v-b45a5197] :where(a) {
226
+ .o-html-viewer__body[data-v-d580315c] :where(a) {
227
227
  color: var(--o-color-primary1);
228
228
  text-decoration: none !important;
229
229
  }
230
- .o-html-viewer__body[data-v-b45a5197] :where(a):hover {
230
+ .o-html-viewer__body[data-v-d580315c] :where(a):hover {
231
231
  text-decoration: underline !important;
232
232
  }
233
- .o-html-viewer__body[data-v-b45a5197] :where(h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p) {
233
+ .o-html-viewer__body[data-v-d580315c] :where(h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p) {
234
234
  text-indent: 0;
235
235
  }
236
- .o-html-viewer__body[data-v-b45a5197] :where(.table-wrap) {
236
+ .o-html-viewer__body[data-v-d580315c] :where(.table-wrap) {
237
237
  overflow-x: auto;
238
238
  margin: 1rem 0;
239
239
  -webkit-overflow-scrolling: touch;
240
240
  }
241
- .o-html-viewer__body[data-v-b45a5197] :where(table) {
241
+ .o-html-viewer__body[data-v-d580315c] :where(table) {
242
242
  border-collapse: collapse;
243
243
  width: 100%;
244
244
  }
245
- .o-html-viewer__body[data-v-b45a5197] :where(th, td) {
245
+ .o-html-viewer__body[data-v-d580315c] :where(th, td) {
246
246
  border: 1px solid var(--o-color-control1);
247
247
  padding: 6px 10px;
248
248
  text-align: left;
249
249
  vertical-align: top;
250
250
  }
251
- .o-html-viewer__body[data-v-b45a5197] :where(th) {
251
+ .o-html-viewer__body[data-v-d580315c] :where(th) {
252
252
  background-color: var(--o-color-fill2);
253
253
  font-weight: bold;
254
254
  text-align: center;
255
255
  }
256
- .o-html-viewer__body[data-v-b45a5197] :where(tr:nth-child(even)) {
256
+ .o-html-viewer__body[data-v-d580315c] :where(tr:nth-child(even)) {
257
257
  background-color: var(--o-color-fill3);
258
258
  }
259
- .o-html-viewer__body[data-v-b45a5197] :where(td p, th p) {
259
+ .o-html-viewer__body[data-v-d580315c] :where(td p, th p) {
260
260
  text-indent: 0;
261
261
  margin: 0.2rem 0 !important;
262
262
  }
263
- .o-html-viewer__body[data-v-b45a5197] :where(ul, ol) {
263
+ .o-html-viewer__body[data-v-d580315c] :where(ul, ol) {
264
264
  padding-left: 2em;
265
265
  margin: 0.5rem 0;
266
266
  }
267
- .o-html-viewer__body[data-v-b45a5197] :where(li) {
267
+ .o-html-viewer__body[data-v-d580315c] :where(ul > li) {
268
+ list-style-type: disc;
269
+ }
270
+ .o-html-viewer__body[data-v-d580315c] :where(li) {
268
271
  margin-bottom: 0.3rem;
269
272
  }
270
- .o-html-viewer__body[data-v-b45a5197] :where(li p) {
273
+ .o-html-viewer__body[data-v-d580315c] :where(li p) {
271
274
  text-indent: 0;
272
275
  }
273
- .o-html-viewer__body[data-v-b45a5197] :where(img) {
276
+ .o-html-viewer__body[data-v-d580315c] :where(img) {
274
277
  max-width: 100%;
275
278
  height: auto;
276
279
  display: block;
277
280
  margin: 1rem auto;
278
281
  }
279
- .o-html-viewer__body[data-v-b45a5197] :where(code) {
282
+ .o-html-viewer__body[data-v-d580315c] :where(code) {
280
283
  font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
281
284
  background: var(--o-color-fill3);
282
285
  padding: 1px 4px;
283
286
  border-radius: 2px;
284
287
  font-size: 0.9em;
285
288
  }
286
- .o-html-viewer__body[data-v-b45a5197] :where(pre) {
289
+ .o-html-viewer__body[data-v-d580315c] :where(pre) {
287
290
  font-family: var(--doc-font-mono, "Consolas", "Courier New", monospace) !important;
288
291
  background: var(--o-color-fill3);
289
292
  padding: 12px 16px;
@@ -295,32 +298,32 @@
295
298
  max-width: 100%;
296
299
  -webkit-overflow-scrolling: touch;
297
300
  }
298
- .o-html-viewer__body[data-v-b45a5197] :where(pre code) {
301
+ .o-html-viewer__body[data-v-d580315c] :where(pre code) {
299
302
  background: none;
300
303
  padding: 0;
301
304
  }
302
- .o-html-viewer__body[data-v-b45a5197] :where(blockquote) {
305
+ .o-html-viewer__body[data-v-d580315c] :where(blockquote) {
303
306
  border-left: 3px solid var(--o-color-primary1);
304
307
  margin: 0.8rem 0;
305
308
  padding: 0.5rem 1rem;
306
309
  color: color-mix(in srgb, var(--o-color-info2) 90%, transparent);
307
310
  background: var(--o-color-fill2);
308
311
  }
309
- .o-html-viewer__body[data-v-b45a5197] :where(blockquote p) {
312
+ .o-html-viewer__body[data-v-d580315c] :where(blockquote p) {
310
313
  text-indent: 0;
311
314
  }
312
- .o-html-viewer__body[data-v-b45a5197] :where(hr) {
315
+ .o-html-viewer__body[data-v-d580315c] :where(hr) {
313
316
  border: none;
314
317
  border-top: 1px solid var(--o-color-control4);
315
318
  margin: 1.5rem 0;
316
319
  }
317
320
  @media (max-width: 1200px) {
318
- .o-html-viewer__body[data-v-b45a5197] {
321
+ .o-html-viewer__body[data-v-d580315c] {
319
322
  font-size: var(--doc-base-size, 12px);
320
323
  }
321
324
  }
322
325
  @media (max-width: 840px) {
323
- .o-html-viewer__body[data-v-b45a5197] {
326
+ .o-html-viewer__body[data-v-d580315c] {
324
327
  padding: 24px 16px;
325
328
  }
326
329
  }
@@ -27,6 +27,8 @@ export interface ParsedDocT {
27
27
  * text-decoration 常以内联 `!important` 出现(如从网页复制的链接 `text-decoration: underline !important`),
28
28
  * 优先级高于任何样式表规则(含 `!important`),无法被组件 CSS 覆盖,必须在此移除;
29
29
  * 链接下划线统一由组件控制(默认无、hover 显示)。
30
+ * list-style/list-style-type 仅移除空心圆(circle)声明——项目符号唯一需要强制为实心的场景;
31
+ * 其余类型(disc/decimal/none 等)原样保留,不做多余修改。
30
32
  *
31
33
  * 注意:`<style>` 是 head-only 元素,交给 DOMPurify 片段净化时会因被解析进 head 而丢失,
32
34
  * 因此调用方需将返回的 CSS 单独渲染,不要与 body 一起传入净化指令。
@@ -78,6 +78,8 @@ function stripTypography(css) {
78
78
  * text-decoration 常以内联 `!important` 出现(如从网页复制的链接 `text-decoration: underline !important`),
79
79
  * 优先级高于任何样式表规则(含 `!important`),无法被组件 CSS 覆盖,必须在此移除;
80
80
  * 链接下划线统一由组件控制(默认无、hover 显示)。
81
+ * list-style/list-style-type 仅移除空心圆(circle)声明——项目符号唯一需要强制为实心的场景;
82
+ * 其余类型(disc/decimal/none 等)原样保留,不做多余修改。
81
83
  *
82
84
  * 注意:`<style>` 是 head-only 元素,交给 DOMPurify 片段净化时会因被解析进 head 而丢失,
83
85
  * 因此调用方需将返回的 CSS 单独渲染,不要与 body 一起传入净化指令。
@@ -90,7 +92,7 @@ function parseHtml(text, scope) {
90
92
  rawBody = rawBody.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, "");
91
93
  return {
92
94
  body: rawBody.replace(/style\s*=\s*"([^"]*)"/gi, (_m, val) => {
93
- const cleaned = val.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size|line-height|text-decoration)\s*:\s*[^;]+;?/gi, "").replace(/\s{2,}/g, " ").trim();
95
+ const cleaned = val.replace(/(?<![-\w])(?:color|background(?:-color)?|font-size|line-height|text-decoration)\s*:\s*[^;]+;?/gi, "").replace(/(?<![-\w])list-style(?:-type)?\s*:\s*[^;]*circle[^;]*;?/gi, "").replace(/\s{2,}/g, " ").trim();
94
96
  return cleaned ? `style="${cleaned}"` : "";
95
97
  }),
96
98
  styleCss: styleParts.join("\n")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.306",
3
+ "version": "0.0.1-rc.307",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",