ebt-vue3 2.4.5 → 2.5.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebt-vue3",
3
- "version": "2.4.5",
3
+ "version": "2.5.2",
4
4
  "description": "Vue3 Library for SuttaCentral Voice EBT-Sites",
5
5
  "author": "Karl Lew",
6
6
  "scripts": {
@@ -30,14 +30,14 @@
30
30
  "module": "index.mjs",
31
31
  "dependencies": {
32
32
  "@mdi/font": "7.0.96",
33
- "@sc-voice/ms-dpd": "^2.37.0",
33
+ "@sc-voice/ms-dpd": "^2.38.0",
34
34
  "compression": "^1.7.4",
35
35
  "idb-keyval": "^6.2.0",
36
36
  "log-instance": "^1.6.0",
37
37
  "merkle-json": "^2.7.0",
38
38
  "pinia": "^2.0.16",
39
39
  "roboto-fontface": "*",
40
- "scv-esm": "^1.110.360",
40
+ "scv-esm": "^1.110.362",
41
41
  "serve-favicon": "^2.5.0",
42
42
  "uuid": "^9.0.0",
43
43
  "vite-plugin-vuetify": "^2.0.3",
@@ -352,11 +352,25 @@ code {
352
352
  opacity: 0.0;
353
353
  justify-content: center;
354
354
  cursor: pointer;
355
+ height: 1px;
355
356
  }
356
357
  .last-tab:focus {
357
358
  outline: 1pt solid green;
358
359
  }
359
360
 
361
+ .pali-meaning {
362
+ max-width: 30em;
363
+ }
364
+ .pali-group {
365
+ margin-top: 0.4em;
366
+ display: flex;
367
+ }
368
+ .pali-cartouche {
369
+ text-wrap: nowrap;
370
+ min-width: 7em;
371
+ margin-left: 0.5em;
372
+ }
373
+
360
374
  .dpd-grammar {
361
375
  color: white;
362
376
  border-left: solid 1px gray;
@@ -383,6 +397,18 @@ div[title]:hover::before {
383
397
  z-index: 1;
384
398
  }
385
399
 
400
+ .dpd-link {
401
+ display: flex;
402
+ justify-content: center;
403
+ margin-top: 1em;
404
+ }
405
+ .dpd-link div {
406
+ border-top: 1px solid rgba(255,255,255,0.1);
407
+ padding-top: 0.5em;
408
+ padding-left: 0.7em;
409
+ padding-right: 0.7em;
410
+ }
411
+
386
412
  /******************** CORE CSS (END) ********************/
387
413
 
388
414
  /**************** Search Results (BEGIN) ***************/
@@ -44,16 +44,28 @@
44
44
  controls :src="urlPaliAudio"
45
45
  autoplay
46
46
  ></audio>
47
- <table v-if="volatile.dictionary">
48
- <tr v-for="(def,i) in groupDefinitions(group)">
49
- <td v-html="dpdCartoucheHtml(def,i)"
50
- ></td>
51
- <td title="Meaning" v-html="meaningHtml(def)"
52
- ></td>
53
- </tr>
54
- </table>
47
+ <div v-if="volatile.dictionary" >
48
+ <div v-for="(def,i) in groupDefinitions(group)"
49
+ class="pali-group">
50
+ <div v-html="dpdCartoucheHtml(def,i)"
51
+ class="pali-cartouche">
52
+ </div>
53
+ <div>&nbsp;</div>
54
+ <div class="pali-meaning"
55
+ v-html="meaningHtml(def)"
56
+ ></div>
57
+ </div>
58
+ </div>
55
59
  </div><!-- group -->
56
60
  </div><!-- dict -->
61
+ <div class="dpd-link">
62
+ <div>
63
+ <a :href="dpdUrl()" target="_blank">
64
+ Digital Pali Dictionary
65
+ <v-icon>mdi-open-in-new</v-icon>
66
+ </a>
67
+ </div>
68
+ </div>
57
69
  </v-sheet>
58
70
  </template>
59
71
 
@@ -99,6 +111,12 @@
99
111
  components: {
100
112
  },
101
113
  methods: {
114
+ dpdUrl() {
115
+ const msg = "PaliView.dpdUrl";
116
+ let ebtWord = this.card.location[0];
117
+ let link = Dictionary.dpdLink(ebtWord);
118
+ return link?.url;
119
+ },
102
120
  customFilter(value, search, internal) {
103
121
  const msg = "PaliView.customFilter";
104
122
  const dbg = DBG.PALI_SEARCH;
@@ -449,10 +467,16 @@
449
467
  justify-content: space-between;
450
468
  align-items: center;
451
469
  margin-top: 0.7em;
452
- border-bottom: 1pt solid rgba(var(--v-theme-on-surface),0.3);
453
470
  }
454
471
  .dict-group-title {
455
472
  }
473
+ .dict-group:hover {
474
+ border-radius: 10px;
475
+ background: linear-gradient(160deg,
476
+ rgb(var(--v-theme-currentbg)),
477
+ rgb(var(--v-theme-toolbar))
478
+ ) !important;
479
+ }
456
480
  .dict-group:hover .dict-menu {
457
481
  color: rgb(var(--v-theme-link));
458
482
  }
@@ -47,7 +47,6 @@
47
47
  <div :class="segMatchedClass(segment)"
48
48
  :id="id"
49
49
  @click.left='onClickSegBody'
50
- :title="segment.scid"
51
50
  >
52
51
  <div class="seg-id" v-if="settings.showId">
53
52
  {{segment.scid}}
@@ -727,7 +727,6 @@ export const useVolatileStore = defineStore('volatile', {
727
727
  let { dictionary } = this;
728
728
  let info = dictionary.abbreviationInfo(def.pos) || {};
729
729
  let { meaning=pos, explanation='' } = info;
730
- console.log(msg, info);
731
730
  return explanation.length
732
731
  ? `${meaning}: ${explanation}`
733
732
  : meaning;