@itfin/components 1.0.104 → 1.0.105

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": "@itfin/components",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -1,25 +1,31 @@
1
1
  <template>
2
2
 
3
3
  <nav aria-label="breadcrumb">
4
- <ol class="breadcrumb mb-1">
4
+ <ol class="breadcrumb mb-1" itemscope itemtype="https://schema.org/BreadcrumbList">
5
5
  <li
6
6
  v-for="(crumb, n) of items"
7
7
  class="breadcrumb-item"
8
8
  :key="n"
9
9
  :class="{'active': n === items.length - 1}"
10
10
  :aria-current="n === items.length - 1 ? 'page' : null"
11
+ itemprop="itemListElement"
12
+ itemscope
13
+ itemtype="https://schema.org/ListItem"
11
14
  >
12
- <span v-if="crumb.disabled || !crumb.to">{{crumb.text}}</span>
13
- <nuxt-link v-else :to="crumb.to" :exact="crumb.exact">{{crumb.text}}</nuxt-link>
15
+ <span itemprop="item" v-if="crumb.disabled || !crumb.to">
16
+ <span class="d-none d-md-inline" itemprop="name">{{crumb.text}}</span>
17
+ <span class="d-md-none" aria-hidden="true">{{crumb.mobileText || crumb.text}}</span>
18
+ </span>
19
+ <nuxt-link itemprop="item" v-else :to="crumb.to" :exact="crumb.exact">
20
+ <span class="d-none d-md-inline" itemprop="name">{{crumb.text}}</span>
21
+ <span class="d-md-none" aria-hidden="true">{{crumb.mobileText || crumb.text}}</span>
22
+ </nuxt-link>
23
+ <meta itemprop="position" :content="n + 1" />
14
24
  </li>
15
25
  </ol>
16
26
  </nav>
17
27
 
18
28
  </template>
19
- <style lang="scss">
20
- @import '../../assets/scss/variables';
21
- //@import '~bootstrap/scss/breadcrumb';
22
- </style>
23
29
  <script>
24
30
  import { Vue, Component, Prop } from 'vue-property-decorator';
25
31