@itfin/components 1.3.90 → 1.3.91

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.3.90",
3
+ "version": "1.3.91",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -10,7 +10,7 @@
10
10
  <div class="b-panel__expand_text" v-text="title"></div>
11
11
  </a>
12
12
  </div>
13
- <div v-if="!nocard" v-show="!collapsed" class="b-panel-header p-3">
13
+ <div v-if="!nocard" v-show="!collapsed" class="b-panel-header px-3 pt-3">
14
14
  <slot name="header">
15
15
  <div>
16
16
  <slot name="title">
@@ -112,7 +112,6 @@
112
112
  justify-content: space-between;
113
113
  min-height: 45px;
114
114
  min-width: 0;
115
- padding: 8px;
116
115
  position: sticky;
117
116
  top: 0;
118
117
  z-index: 10;
@@ -51,7 +51,7 @@ export function formatMoney (val, symbol = '', digits = null) {
51
51
  symbolStr = symbol;
52
52
  }
53
53
  if (digits === null) {
54
- digits = symbol.precision ?? symbol.Precision ?? 2;
54
+ digits = symbol?.precision ?? symbol?.Precision ?? 2;
55
55
  }
56
56
  const value = parseFloat(val.toString()).toFixed(digits)
57
57
  .replace(/\d(?=(\d{3})+\.)/g, '$&' + thousandSeparator)