@policystudio/policy-studio-ui-vue 1.1.90-beta.58 → 1.1.90-beta.60

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.
@@ -1,6 +1,6 @@
1
1
  @import url("https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round");
2
2
  /*
3
- ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com
3
+ ! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
4
4
  */
5
5
  /*
6
6
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@@ -975,8 +975,7 @@ video {
975
975
  margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));
976
976
  }
977
977
  .psui-el-tab-header.layout-policy-design button {
978
- padding: 8px 2px 10px 0px;
979
- margin-right: 8px;
978
+ padding: 8px 2px 7px 0px;
980
979
  }
981
980
  .psui-el-tab-header.layout-policy-design button {
982
981
  position: relative;
@@ -6465,12 +6464,6 @@ video {
6465
6464
  gap: 0.75rem;
6466
6465
  }
6467
6466
 
6468
- .psui-space-x-0 > :not([hidden]) ~ :not([hidden]) {
6469
- --tw-space-x-reverse: 0;
6470
- margin-right: calc(0px * var(--tw-space-x-reverse));
6471
- margin-left: calc(0px * (1 - var(--tw-space-x-reverse)));
6472
- }
6473
-
6474
6467
  .psui-space-x-0\.5 > :not([hidden]) ~ :not([hidden]) {
6475
6468
  --tw-space-x-reverse: 0;
6476
6469
  margin-right: calc(0.125rem * var(--tw-space-x-reverse));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.58",
3
+ "version": "1.1.90-beta.60",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -25,8 +25,7 @@
25
25
  @apply psui-space-x-2;
26
26
 
27
27
  button {
28
- padding: 8px 2px 10px 0px;
29
- margin-right:8px;
28
+ padding: 8px 2px 7px 0px;
30
29
  @apply psui-flex psui-items-center psui-relative;
31
30
 
32
31
  &:after {
@@ -94,7 +94,7 @@
94
94
  :style="item.text_color ? `color: ${item.text_color};` : ''"
95
95
  >
96
96
  {{ item.title }}
97
-
97
+
98
98
  <PsIcon
99
99
  v-if="item.has_helper"
100
100
  icon="info_outline"
@@ -409,6 +409,13 @@ const props = defineProps({
409
409
  type: [Array, undefined],
410
410
  default: undefined,
411
411
  },
412
+ /**
413
+ * It forces to use hidden itens on collapsible system independent of layouts
414
+ */
415
+ useHiddenItemsOnly: {
416
+ type: Boolean,
417
+ default: true,
418
+ },
412
419
  /**
413
420
  * It sets the values which will be use to render the body.
414
421
  */
@@ -529,13 +536,13 @@ watch(
529
536
  )
530
537
 
531
538
  watch(
532
- ()=> props.itemsHiddenIndexes,
539
+ ()=> props.itemsHiddenIndexes,
533
540
  () => {
534
541
  setCollapsedRows()
535
542
  })
536
543
 
537
544
  watch(
538
- ()=>props.showRowsCollapsed,
545
+ ()=>props.showRowsCollapsed,
539
546
  () => {
540
547
  setCollapsedRows()
541
548
  })
@@ -556,6 +563,10 @@ const resetPolicyImpactItemSelected = (item, columnKey = 'forecast_emissions_sav
556
563
 
557
564
  const setCollapsedRows = () => {
558
565
  let newRowsCollpased = [...(props.itemsHiddenIndexes || [])]
566
+ if (props.useHiddenItemsOnly) {
567
+ collapsedRows.value = newRowsCollpased
568
+ return
569
+ }
559
570
 
560
571
  if (props.itemsHiddenIndexes && props.layout != 'flexible') return
561
572
  if (props.showRowsCollapsed || props.layout == 'flexible') {