@policystudio/policy-studio-ui-vue 1.1.0 → 1.1.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.
@@ -1709,6 +1709,8 @@ video {
1709
1709
  --text-opacity: 1;
1710
1710
  color: #798490;
1711
1711
  color: rgba(121, 132, 144, var(--text-opacity));
1712
+ font-size: 16px;
1713
+ line-height: 130%;
1712
1714
  }
1713
1715
 
1714
1716
  .psui-el-climate-zone-badge {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  &-percentage {
21
- @apply psui-text-gray-50;
21
+ @apply psui-text-gray-50 psui-text-p;
22
22
  }
23
23
  }
24
24
 
@@ -352,40 +352,21 @@ export default {
352
352
  this.$forceUpdate()
353
353
  this.$emit('collapse-row', this.collapsedRows)
354
354
  },
355
- shouldShowIcon(item) {
356
- if(item.actions && (item.deep == 1 || item.deep == 2)) {
357
- return true
358
- } else {
359
- return false
360
- }
361
- },
362
355
  onRowHover(index) {
363
356
  this.isHoveringRow = index
364
357
  },
358
+ shouldShowIcon(item) {
359
+ if(item?.action && item?.deep == 2) return true
360
+ else return false
361
+ },
365
362
  getIcon(item) {
366
- if(item.actions && item.is_disabled) {
367
- return item.actions[1].icon
368
- } else if(item.actions && !item.is_disabled) {
369
- return item.actions[0].icon
370
- } else {
371
- return ''
372
- }
363
+ if(item?.action) return item.action.icon
373
364
  },
374
365
  getText(item) {
375
- if(item.actions && item.is_disabled) {
376
- return item.actions[1].text
377
- } else if(item.actions && !item.is_disabled) {
378
- return item.actions[0].text
379
- } else {
380
- return ''
381
- }
366
+ if(item?.action) return item.action.text
382
367
  },
383
368
  executeCallback(item) {
384
- if(item.actions && item.is_disabled) {
385
- item.actions[1].callback()
386
- } else if(item.actions && !item.is_disabled) {
387
- item.actions[0].callback()
388
- }
369
+ if(item?.action) item.action.callback(item)
389
370
  },
390
371
  }
391
372
  }