@uvalib/web-components 1.11.1 → 1.12.0

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 (41) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +192 -54
  3. package/dist/base.css +56 -2
  4. package/dist/components/uvalib-audio/UvalibAudio.d.ts +186 -0
  5. package/dist/components/uvalib-audio/UvalibAudio.js +1154 -0
  6. package/dist/components/uvalib-audio/UvalibAudio.js.map +1 -0
  7. package/dist/components/uvalib-audio/uvalib-audio.d.ts +1 -0
  8. package/dist/components/uvalib-audio/uvalib-audio.js +4 -0
  9. package/dist/components/uvalib-audio/uvalib-audio.js.map +1 -0
  10. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +25 -5
  11. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +62 -9
  12. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  13. package/dist/custom-elements.json +8486 -7187
  14. package/dist/edition-epub.css +511 -0
  15. package/dist/edition-print.css +51 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/styles/base.js +55 -1
  20. package/dist/styles/base.js.map +1 -1
  21. package/dist/styles/edition.d.ts +6 -0
  22. package/dist/styles/edition.js +20 -0
  23. package/dist/styles/edition.js.map +1 -1
  24. package/dist-cdn/base.css +56 -2
  25. package/dist-cdn/chunks/{base-DtkA4Pgg.js → base-D_oPO5cX.js} +56 -2
  26. package/dist-cdn/chunks/{base-DtkA4Pgg.js.map → base-D_oPO5cX.js.map} +1 -1
  27. package/dist-cdn/custom-elements.json +8486 -7187
  28. package/dist-cdn/edition-epub.css +511 -0
  29. package/dist-cdn/edition-print.css +51 -0
  30. package/dist-cdn/manifest.json +6 -3
  31. package/dist-cdn/site-page.js +1 -1
  32. package/dist-cdn/site-style.js +1 -1
  33. package/dist-cdn/skills/uvalib-web-components/SKILL.md +35 -4
  34. package/dist-cdn/skills/uvalib-web-components/reference/components.md +53 -1
  35. package/dist-cdn/uvalib-audio.js +747 -0
  36. package/dist-cdn/uvalib-audio.js.map +1 -0
  37. package/dist-cdn/uvalib-pagefind-search.js +70 -44
  38. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  39. package/package.json +7 -1
  40. package/skills/uvalib-web-components/SKILL.md +35 -4
  41. package/skills/uvalib-web-components/reference/components.md +53 -1
@@ -0,0 +1,511 @@
1
+ /* edition-epub.css: generated from @uvalib/web-components edition.css (src/styles/edition.ts) by scripts/emit-css.mjs. */
2
+ body, .uvalib-edition {
3
+ line-height: 1.7;
4
+ overflow-wrap: break-word;
5
+ -webkit-hyphens: auto;
6
+ hyphens: auto;
7
+ }
8
+ [hidden], .uvalib-edition[hidden] {
9
+ display: none !important;
10
+ }
11
+ section, .div {
12
+ margin: 0;
13
+ }
14
+ section.div + section.div, section.div + div.div, div.div + section.div, div.div + div.div {
15
+ margin-top: 2.5rem;
16
+ }
17
+ h1, h2, h3, h4, h5, h6 {
18
+ margin: 2rem 0 1rem;
19
+ color: #232d4b;
20
+ font-weight: 500;
21
+ line-height: 1.15;
22
+ }
23
+ h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
24
+ margin-top: 0;
25
+ }
26
+ h1 {
27
+ font-size: 2.488rem;
28
+ font-weight: 700;
29
+ }
30
+ h2 {
31
+ font-size: 2.074rem;
32
+ font-weight: 700;
33
+ }
34
+ h3 {
35
+ font-size: 1.728rem;
36
+ }
37
+ h4 {
38
+ font-size: 1.44rem;
39
+ }
40
+ h5 {
41
+ font-size: 1.2rem;
42
+ }
43
+ h6 {
44
+ font-size: 1rem;
45
+ }
46
+ .head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), .list-head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
47
+ display: block;
48
+ margin: 1.5em 0 0.5em;
49
+ font-weight: 700;
50
+ line-height: 1.3;
51
+ }
52
+ .figure .head, .figure .list-head, figure .head, figure .list-head {
53
+ margin: 0;
54
+ }
55
+ p.head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), .figure p.head, figure p.head, p.list-head:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), .figure p.list-head, figure p.list-head {
56
+ margin: 0 0 1em;
57
+ }
58
+ .head-sub, .head-alt, .head-desc {
59
+ font-size: 0.85em;
60
+ font-weight: 500;
61
+ }
62
+ p, div.p, div.ab {
63
+ margin: 0 0 1em;
64
+ }
65
+ .rend-italic, .rend-i, .rend-it {
66
+ font-style: italic;
67
+ }
68
+ .rend-roman, .rend-normal {
69
+ font-style: normal;
70
+ }
71
+ .rend-bold, .rend-b {
72
+ font-weight: 700;
73
+ }
74
+ .rend-smallcaps, .rend-small-caps, .rend-sc {
75
+ font-variant: small-caps;
76
+ }
77
+ .rend-underline, .rend-u {
78
+ text-decoration: underline;
79
+ }
80
+ .rend-sup, .rend-superscript {
81
+ font-size: 0.75em;
82
+ vertical-align: super;
83
+ line-height: 0;
84
+ }
85
+ .rend-sub, .rend-subscript {
86
+ font-size: 0.75em;
87
+ vertical-align: sub;
88
+ line-height: 0;
89
+ }
90
+ .rend-center {
91
+ text-align: center;
92
+ }
93
+ .rend-right {
94
+ text-align: right;
95
+ }
96
+ .rend-left {
97
+ text-align: left;
98
+ }
99
+ .rend-indent:not(.l) {
100
+ text-indent: 2em;
101
+ }
102
+ .rend-indent2:not(.l) {
103
+ text-indent: 4em;
104
+ }
105
+ .rend-indent3:not(.l) {
106
+ text-indent: 6em;
107
+ }
108
+ .rend-no-indent, .rend-noindent {
109
+ text-indent: 0;
110
+ }
111
+ .rend-hang {
112
+ padding-left: 2em;
113
+ text-indent: -2em;
114
+ }
115
+ span.rend-hang {
116
+ display: inline-block;
117
+ }
118
+ br.lb {
119
+ display: none;
120
+ }
121
+ span.lb:before {
122
+ content: ' ';
123
+ }
124
+ .lg {
125
+ margin: 0 0 1.25em;
126
+ }
127
+ .lg .lg {
128
+ margin-bottom: 1em;
129
+ }
130
+ .l {
131
+ display: block;
132
+ position: relative;
133
+ padding-left: 2em;
134
+ text-indent: -2em;
135
+ }
136
+ .l.rend-indent {
137
+ padding-left: 4em;
138
+ }
139
+ .l.rend-indent2 {
140
+ padding-left: 6em;
141
+ }
142
+ .l.rend-indent3 {
143
+ padding-left: 8em;
144
+ }
145
+ .l.rend-indent4 {
146
+ padding-left: 10em;
147
+ }
148
+ .l[data-n] {
149
+ padding-right: 2.5rem;
150
+ }
151
+ .l[data-n]:after {
152
+ content: attr(data-n);
153
+ position: absolute;
154
+ top: 0.35em;
155
+ right: 0;
156
+ color: #4b5563;
157
+ font-size: 0.75rem;
158
+ font-style: normal;
159
+ font-variant: normal;
160
+ font-weight: 400;
161
+ line-height: 1.5;
162
+ text-indent: 0;
163
+ font-variant-numeric: tabular-nums;
164
+ }
165
+ .sp {
166
+ margin: 0 0 1em;
167
+ }
168
+ .speaker {
169
+ margin: 0;
170
+ font-variant: small-caps;
171
+ font-weight: 700;
172
+ letter-spacing: 0.03em;
173
+ }
174
+ .sp > :not(.speaker):not(.stage) {
175
+ margin-left: 1.5em;
176
+ }
177
+ .stage {
178
+ color: #4b5563;
179
+ font-style: italic;
180
+ }
181
+ p.stage, div.stage {
182
+ margin: 0.25em 0 0.75em 1.5em;
183
+ }
184
+ .opener, .closer {
185
+ margin: 1em 0;
186
+ }
187
+ .dateline {
188
+ margin: 0 0 0.75em;
189
+ text-align: right;
190
+ }
191
+ .salute {
192
+ margin: 0 0 0.75em;
193
+ }
194
+ .closer {
195
+ text-align: right;
196
+ }
197
+ .signed {
198
+ margin: 0 0 0.75em;
199
+ text-align: right;
200
+ }
201
+ .postscript, .seg-postscript, .ps {
202
+ display: block;
203
+ margin: 1.5em 0 1em;
204
+ text-align: left;
205
+ }
206
+ blockquote, .epigraph, .cit, .quote, div.q {
207
+ margin: 0.5rem 1.5rem 1.5rem;
208
+ padding: 0 0.5rem;
209
+ border-left: 1px solid #e57200;
210
+ font-style: italic;
211
+ }
212
+ .epigraph blockquote, .cit blockquote, .quote blockquote, div.q blockquote {
213
+ margin: 0;
214
+ padding: 0;
215
+ border: 0;
216
+ }
217
+ blockquote p:last-child, blockquote div.p:last-child, .epigraph p:last-child, .epigraph div.p:last-child, .cit p:last-child, .cit div.p:last-child {
218
+ margin-bottom: 0;
219
+ }
220
+ .bibl {
221
+ display: block;
222
+ font-style: normal;
223
+ }
224
+ .epigraph .bibl, .cit .bibl {
225
+ margin-top: 0.25em;
226
+ text-align: right;
227
+ }
228
+ .argument {
229
+ margin: 0 1.5em 1.5em;
230
+ font-style: italic;
231
+ }
232
+ .byline, .trailer, .dedication, .docAuthor {
233
+ margin: 1em 0;
234
+ text-align: center;
235
+ }
236
+ .dedication {
237
+ font-style: italic;
238
+ }
239
+ .titlepage, .titlePage {
240
+ margin: 0 0 2rem;
241
+ text-align: center;
242
+ }
243
+ .titlePart, .docTitle {
244
+ display: block;
245
+ margin: 0.5em 0;
246
+ color: #232d4b;
247
+ font-size: 1.44rem;
248
+ font-weight: 500;
249
+ line-height: 1.15;
250
+ }
251
+ .titlePart-sub, .titlePart-subtitle {
252
+ font-size: 1.2rem;
253
+ }
254
+ .docAuthor {
255
+ font-variant: small-caps;
256
+ }
257
+ .docImprint, .docDate, .docEdition {
258
+ margin: 1em 0;
259
+ color: #4b5563;
260
+ }
261
+ ul.list, ol.list {
262
+ margin: 0 0 1em;
263
+ padding-left: 1.5em;
264
+ }
265
+ .list-simple, .list-castlist, .list.list-simple, .list.list-castlist {
266
+ padding-left: 0;
267
+ list-style: none;
268
+ }
269
+ .list .label {
270
+ font-weight: 700;
271
+ }
272
+ .table-wrap {
273
+ margin: 0 0 1.25em;
274
+ overflow-x: auto;
275
+ }
276
+ table {
277
+ border-collapse: collapse;
278
+ font-size: 0.9em;
279
+ line-height: 1.4;
280
+ }
281
+ td, th {
282
+ padding: 0.25em 0.6em;
283
+ border-bottom: 1px solid #dadada;
284
+ text-align: left;
285
+ vertical-align: top;
286
+ }
287
+ .ornament, .textbreak {
288
+ display: block;
289
+ height: auto;
290
+ margin: 1.5em 0;
291
+ border: 0;
292
+ color: #4b5563;
293
+ text-align: center;
294
+ overflow: visible;
295
+ }
296
+ hr.ornament:before, hr.textbreak:before, .ornament:empty:before, .textbreak:empty:before {
297
+ content: '\2042';
298
+ font-size: 1.25em;
299
+ line-height: 1;
300
+ }
301
+ .pb {
302
+ color: #4b5563;
303
+ font-size: 0.8125rem;
304
+ font-style: normal;
305
+ font-variant: normal;
306
+ font-weight: 400;
307
+ letter-spacing: normal;
308
+ line-height: 1.2;
309
+ text-indent: 0;
310
+ }
311
+ .pb a, .pb .pb-n {
312
+ display: inline-block;
313
+ margin: 0 0.25em;
314
+ padding: 0.2em 0.5em;
315
+ border: 1px solid #dadada;
316
+ border-radius: 3px;
317
+ white-space: nowrap;
318
+ text-indent: 0;
319
+ }
320
+ .pb a {
321
+ color: #232d4b;
322
+ text-decoration: underline;
323
+ text-underline-offset: 0.15em;
324
+ }
325
+ section > .pb:first-child:not(:empty), .div > .pb:first-child:not(:empty) {
326
+ display: block;
327
+ margin-bottom: 0.5em;
328
+ text-align: right;
329
+ }
330
+ .figure, figure {
331
+ display: block;
332
+ margin: 1.5em 0;
333
+ text-align: center;
334
+ }
335
+ .figure img, figure img {
336
+ display: block;
337
+ max-width: 100%;
338
+ max-height: 80vh;
339
+ width: auto;
340
+ height: auto;
341
+ margin: 0 auto 0.5em;
342
+ }
343
+ .figure .head, .figure .figDesc, .figure figcaption, figure .head, figure .figDesc, figure figcaption {
344
+ display: block;
345
+ color: #4b5563;
346
+ font-size: 0.875em;
347
+ font-weight: 400;
348
+ line-height: 1.4;
349
+ }
350
+ ins.add, .add {
351
+ font-size: 0.85em;
352
+ text-decoration: none;
353
+ vertical-align: super;
354
+ line-height: 0;
355
+ }
356
+ ins.add:before, .add:before {
357
+ content: 'added: ';
358
+ position: absolute;
359
+ width: 1px;
360
+ height: 1px;
361
+ margin: -1px;
362
+ padding: 0;
363
+ overflow: hidden;
364
+ clip: rect(0 0 0 0);
365
+ clip-path: inset(50%);
366
+ white-space: nowrap;
367
+ text-decoration: none;
368
+ }
369
+ ins.add:after, .add:after {
370
+ content: ' (end added)';
371
+ position: absolute;
372
+ width: 1px;
373
+ height: 1px;
374
+ margin: -1px;
375
+ padding: 0;
376
+ overflow: hidden;
377
+ clip: rect(0 0 0 0);
378
+ clip-path: inset(50%);
379
+ white-space: nowrap;
380
+ text-decoration: none;
381
+ }
382
+ del.del, .del {
383
+ text-decoration: line-through;
384
+ }
385
+ del.del:before, .del:before {
386
+ content: 'deleted: ';
387
+ position: absolute;
388
+ width: 1px;
389
+ height: 1px;
390
+ margin: -1px;
391
+ padding: 0;
392
+ overflow: hidden;
393
+ clip: rect(0 0 0 0);
394
+ clip-path: inset(50%);
395
+ white-space: nowrap;
396
+ text-decoration: none;
397
+ }
398
+ del.del:after, .del:after {
399
+ content: ' (end deleted)';
400
+ position: absolute;
401
+ width: 1px;
402
+ height: 1px;
403
+ margin: -1px;
404
+ padding: 0;
405
+ overflow: hidden;
406
+ clip: rect(0 0 0 0);
407
+ clip-path: inset(50%);
408
+ white-space: nowrap;
409
+ text-decoration: none;
410
+ }
411
+ del.del:empty:before, .del:empty:before {
412
+ content: '[deletion]';
413
+ position: static;
414
+ display: inline-block;
415
+ width: auto;
416
+ height: auto;
417
+ margin: 0;
418
+ overflow: visible;
419
+ clip: auto;
420
+ clip-path: none;
421
+ color: #4b5563;
422
+ font-size: 0.85em;
423
+ }
424
+ del.del:empty:after, .del:empty:after {
425
+ content: none;
426
+ }
427
+ .unclear:after {
428
+ content: '[?]';
429
+ margin-left: 0.1em;
430
+ color: #4b5563;
431
+ font-size: 0.75em;
432
+ font-style: normal;
433
+ vertical-align: super;
434
+ line-height: 0;
435
+ }
436
+ .gap {
437
+ color: #4b5563;
438
+ font-style: italic;
439
+ }
440
+ .gap:empty:before {
441
+ content: '[\2026]';
442
+ font-style: normal;
443
+ }
444
+ sup.noteref, .noteref {
445
+ padding: 0 0.1em;
446
+ font-size: 0.75em;
447
+ font-style: normal;
448
+ line-height: 0;
449
+ vertical-align: super;
450
+ }
451
+ .noteref a {
452
+ color: #232d4b;
453
+ text-underline-offset: 0.15em;
454
+ }
455
+ .noteref a:before {
456
+ content: 'Note ';
457
+ position: absolute;
458
+ width: 1px;
459
+ height: 1px;
460
+ margin: -1px;
461
+ padding: 0;
462
+ overflow: hidden;
463
+ clip: rect(0 0 0 0);
464
+ clip-path: inset(50%);
465
+ white-space: nowrap;
466
+ text-decoration: none;
467
+ }
468
+ .footnotes {
469
+ margin-top: 3rem;
470
+ padding-top: 1rem;
471
+ border-top: 1px solid #808080;
472
+ font-size: 0.875em;
473
+ line-height: 1.5;
474
+ }
475
+ aside.note, .note-foot, .note-end {
476
+ display: flex;
477
+ margin: 0 0 0.75em;
478
+ }
479
+ aside.note .note-n, .note-foot .note-n, .note-end .note-n {
480
+ margin-right: 0.6em;
481
+ }
482
+ .note-n {
483
+ flex: none;
484
+ min-width: 1.75em;
485
+ font-variant-numeric: tabular-nums;
486
+ }
487
+ a.note-n {
488
+ display: inline-block;
489
+ min-height: 24px;
490
+ color: #232d4b;
491
+ }
492
+ .note-body > :last-child {
493
+ margin-bottom: 0;
494
+ }
495
+ aside.note-inline, aside.note:not(.note-foot):not(.note-end) {
496
+ display: block;
497
+ margin: 0 0 1.25em;
498
+ padding: 0.75em 1em;
499
+ border-left: 3px solid #dadada;
500
+ font-size: 0.9em;
501
+ }
502
+ span.note-inline {
503
+ color: #4b5563;
504
+ font-size: 0.9em;
505
+ }
506
+ span.note-inline:before {
507
+ content: '[';
508
+ }
509
+ span.note-inline:after {
510
+ content: ']';
511
+ }
@@ -0,0 +1,51 @@
1
+ /* edition-print.css: generated from @uvalib/web-components edition.css (src/styles/edition.ts) by scripts/emit-css.mjs. */
2
+ @page {
3
+ margin: 2cm 2.2cm 2.4cm;
4
+ @bottom-center {
5
+ content: counter(page);
6
+ color: #4b5563;
7
+ font-size: 9pt;
8
+ }
9
+ }
10
+ @page :first {
11
+ @bottom-center {
12
+ content: none;
13
+ }
14
+ }
15
+ @media print {
16
+ body, .uvalib-edition {
17
+ max-width: none !important;
18
+ color: #000000 !important;
19
+ font-size: 11pt !important;
20
+ line-height: 1.5 !important;
21
+ }
22
+ h1, h2, h3, h4, h5, h6, .head, .speaker {
23
+ color: #000000 !important;
24
+ break-after: avoid !important;
25
+ }
26
+ p, div.p {
27
+ orphans: 3 !important;
28
+ widows: 3 !important;
29
+ }
30
+ .lg, aside.note, .figure, figure {
31
+ break-inside: avoid !important;
32
+ }
33
+ .pb, .stage, .gap, .docImprint, .docDate, .docEdition {
34
+ color: #000000 !important;
35
+ }
36
+ .pb a, .pb .pb-n {
37
+ border-color: #000000 !important;
38
+ color: #000000 !important;
39
+ }
40
+ a {
41
+ color: #000000 !important;
42
+ }
43
+ aside.note-inline, aside.note:not(.note-foot):not(.note-end) {
44
+ border: 1px solid #000000 !important;
45
+ }
46
+ .orig[title]:after, .reg[title]:after, .sic[title]:after, .corr[title]:after, abbr[title]:after {
47
+ content: ' [' attr(title) ']' !important;
48
+ font-size: 0.85em !important;
49
+ font-style: normal !important;
50
+ }
51
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.1",
2
+ "version": "1.12.0",
3
3
  "elements": {
4
4
  "site-page": "site-page.js",
5
5
  "site-header": "site-header.js",
@@ -37,13 +37,16 @@
37
37
  "uvalib-back-to-top": "uvalib-back-to-top.js",
38
38
  "uvalib-dialog": "uvalib-dialog.js",
39
39
  "uvalib-citation": "uvalib-citation.js",
40
- "uvalib-list-filter": "uvalib-list-filter.js"
40
+ "uvalib-list-filter": "uvalib-list-filter.js",
41
+ "uvalib-audio": "uvalib-audio.js"
41
42
  },
42
43
  "styles": [
43
44
  "tokens.css",
44
45
  "base.css",
45
46
  "pagefind.css",
46
- "edition.css"
47
+ "edition.css",
48
+ "edition-epub.css",
49
+ "edition-print.css"
47
50
  ],
48
51
  "modules": [
49
52
  "analytics.js"
@@ -1,6 +1,6 @@
1
1
  import { a as e, f as t, i as n, l as r, m as i, n as a, o, r as s, t as c } from "./chunks/UvalibElement-pGONDAwB.js";
2
2
  import { t as l } from "./chunks/if-defined-COiQb-gl.js";
3
- import { a as u, i as d, n as f, r as p, t as m } from "./chunks/base-DtkA4Pgg.js";
3
+ import { a as u, i as d, n as f, r as p, t as m } from "./chunks/base-D_oPO5cX.js";
4
4
  import { t as h } from "./chunks/accessible-DJv7YOtS.js";
5
5
  import { t as g } from "./chunks/site-header-B78a_ldi.js";
6
6
  import { a as _ } from "./chunks/analytics-DTTihuBD.js";
@@ -1,5 +1,5 @@
1
1
  import { a as e, l as t, m as n, n as r, o as i, r as a, t as o } from "./chunks/UvalibElement-pGONDAwB.js";
2
- import { a as s, i as c, n as l, r as u } from "./chunks/base-DtkA4Pgg.js";
2
+ import { a as s, i as c, n as l, r as u } from "./chunks/base-D_oPO5cX.js";
3
3
  // src/components/site-style/SiteStyle.ts
4
4
  var d = class extends o {
5
5
  constructor(...e) {