@policystudio/policy-studio-ui-vue 1.1.90-beta.59 → 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)
@@ -6464,12 +6464,6 @@ video {
6464
6464
  gap: 0.75rem;
6465
6465
  }
6466
6466
 
6467
- .psui-space-x-0 > :not([hidden]) ~ :not([hidden]) {
6468
- --tw-space-x-reverse: 0;
6469
- margin-right: calc(0px * var(--tw-space-x-reverse));
6470
- margin-left: calc(0px * (1 - var(--tw-space-x-reverse)));
6471
- }
6472
-
6473
6467
  .psui-space-x-0\.5 > :not([hidden]) ~ :not([hidden]) {
6474
6468
  --tw-space-x-reverse: 0;
6475
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.59",
3
+ "version": "1.1.90-beta.60",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -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') {