@itfin/components 1.0.51 → 1.0.52

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.51",
3
+ "version": "1.0.52",
4
4
 
5
5
  "main": "dist/itfin-components.umd.js",
6
6
  "unpkg": "dist/itfin-components.common.js",
@@ -26,8 +26,12 @@ export default @Component({
26
26
  class itfAlert extends Vue {
27
27
  @Prop({ type: String, default: 'info' }) type;
28
28
  @Prop({ type: String }) message;
29
+ @Prop({ type: String }) icon;
29
30
 
30
31
  get iconName() {
32
+ if (this.icon) {
33
+ return this.icon;
34
+ }
31
35
  switch (this.type) {
32
36
  case 'danger': return 'warning_hex';
33
37
  }
@@ -0,0 +1,34 @@
1
+ <template>
2
+
3
+ <nav aria-label="breadcrumb">
4
+ <ol class="breadcrumb mb-1">
5
+ <li
6
+ v-for="(crumb, n) of items"
7
+ class="breadcrumb-item"
8
+ :key="n"
9
+ :class="{'active': n === items.length - 1}"
10
+ :aria-current="n === items.length - 1 ? 'page' : null"
11
+ >
12
+ <span v-if="crumb.disabled">{{crumb.text}}</span>
13
+ <nuxt-link v-else :to="crumb.to" :exact="crumb.exact">{{crumb.text}}</nuxt-link>
14
+ </li>
15
+ </ol>
16
+ </nav>
17
+
18
+ </template>
19
+ <style lang="scss">
20
+ @import '../../assets/scss/variables';
21
+ @import '~bootstrap/scss/breadcrumb';
22
+ </style>
23
+ <script>
24
+ import { Vue, Component, Prop } from 'vue-property-decorator';
25
+
26
+ export default @Component({
27
+ name: 'itfBreadcrumb',
28
+ components: {
29
+ }
30
+ })
31
+ class itfBreadcrumb extends Vue {
32
+ @Prop({ type: Array }) items;
33
+ }
34
+ </script>