@policystudio/policy-studio-ui-vue 1.1.90-beta.21 → 1.1.90-beta.25

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.
@@ -4288,8 +4288,6 @@ video {
4288
4288
  width: 100%;
4289
4289
  flex-direction: column;
4290
4290
  font-weight: 500;
4291
- .psui-el-dropdown-menu-list-item {
4292
- }
4293
4291
  .psui-el-dropdown-menu-list-item{
4294
4292
  margin-left: 0px;
4295
4293
  margin-right: 0px;
@@ -19,6 +19,9 @@ export const getParentScrollableEl = (node) => {
19
19
  }
20
20
  };
21
21
  export const getParentVueComponentByName = (comp, name) => {
22
+ if (!comp) {
23
+ return null;
24
+ }
22
25
  if (comp.$options.name === name) {
23
26
  return comp;
24
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralFunctions.js","sourceRoot":"","sources":["../../src/util/GeneralFunctions.js"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,EAAE;IACrC,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,MAAM,UAAU,GACd,gEAAgE,CAAA;IAClE,MAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAA;IAC1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAA;KAC1E;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,EAAE;IAC5C,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,OAAO,IAAI,CAAA;KACZ;IAED,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE;QACzC,OAAO,IAAI,CAAA;K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,IAAI,EAAE,EAAE;IACxD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAA;KACZ;IAED,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI,EAAE;QAC/B,OAAO,IAAI,CAAA;KACZ;SAAM;QACL,OAAO,2BAA2B,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;KACvD;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.21",
3
+ "version": "1.1.90-beta.25",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -3,7 +3,7 @@
3
3
  @apply psui-w-full psui-flex psui-flex-col psui-font-medium psui-my-4;
4
4
 
5
5
  .psui-el-dropdown-menu-list-item {
6
- @apply psui-flex psui-items-end psui-justify-between psui-mx-0 psui-text-small psui-text-gray-60 psui-cursor-pointer psui-transition-all psui-show-childrens-on-hover;
6
+ @apply psui-flex psui-items-end psui-justify-between psui-mx-0 psui-text-small psui-text-gray-60 psui-cursor-pointer psui-transition-all;
7
7
  padding: 7px 20px;
8
8
 
9
9
  &-left-label {
@@ -100,6 +100,7 @@ const getParent = computed(() => {
100
100
  })
101
101
 
102
102
  const getIcon = computed(() => {
103
+ if(!getParent.value) return
103
104
  if (getParent.value._props.layout === 'medium') return 'expand_more'
104
105
  if (getParent.value._props.layout === 'big' && isOpen.value === false) return 'add'
105
106
  if (getParent.value._props.layout === 'big' && isOpen.value === true) return 'remove'
@@ -126,3 +127,6 @@ const end = (el) => {
126
127
  <style>
127
128
  /* Please, use the file src/assets/scss/components/PsAccordion.scss */
128
129
  </style>
130
+
131
+
132
+
@@ -51,7 +51,7 @@
51
51
 
52
52
  import { randomString, getParentScrollableEl } from '../../util/GeneralFunctions.js'
53
53
 
54
- import { ref, onBeforeUnmount, defineEmits, defineExpose } from 'vue'
54
+ import { ref, onBeforeUnmount } from 'vue'
55
55
 
56
56
  defineExpose({
57
57
  close:() => close()
@@ -54,7 +54,7 @@
54
54
 
55
55
  <script setup>
56
56
  import PsIcon from '../ui/PsIcon.vue'
57
- import { ref, computed, defineEmits } from 'vue'
57
+ import { ref, computed } from 'vue'
58
58
 
59
59
  const props = defineProps({
60
60
  /**
@@ -71,7 +71,7 @@
71
71
 
72
72
  <script setup>
73
73
  import PsRichTooltip from '../tooltip/PsRichTooltip.vue'
74
- import { ref, computed, useAttrs, defineEmits } from 'vue'
74
+ import { ref, computed, useAttrs } from 'vue'
75
75
 
76
76
  const props = defineProps({
77
77
  /**
@@ -38,7 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <script setup>
41
- import { ref, computed, defineEmits } from 'vue'
41
+ import { ref, computed } from 'vue'
42
42
 
43
43
  const props = defineProps({
44
44
  /**
@@ -32,7 +32,6 @@
32
32
  </template>
33
33
 
34
34
  <script setup>
35
- import { defineEmits } from 'vue'
36
35
 
37
36
  defineProps({
38
37
  /**
@@ -350,7 +350,7 @@ import PsTooltip from '../tooltip/PsTooltip.vue'
350
350
  import PsSwitch from '../controls/PsSwitch.vue'
351
351
  import tailwindConfig from '../../../tailwind.config'
352
352
 
353
- import { ref, computed, watch, onMounted, onBeforeUnmount, defineEmits, getCurrentInstance } from 'vue'
353
+ import { ref, computed, watch, onMounted, onBeforeUnmount, getCurrentInstance } from 'vue'
354
354
 
355
355
  const props = defineProps({
356
356
  /**
@@ -90,7 +90,7 @@
90
90
 
91
91
  <script setup>
92
92
  import PsIcon from '../ui/PsIcon.vue'
93
- import { computed, defineEmits, getCurrentInstance } from 'vue'
93
+ import { computed, getCurrentInstance } from 'vue'
94
94
 
95
95
  defineProps({
96
96
  /**
@@ -85,7 +85,7 @@
85
85
 
86
86
  <script setup>
87
87
  import PsIcon from '../ui/PsIcon.vue'
88
- import { computed, defineEmits, getCurrentInstance } from 'vue'
88
+ import { computed, getCurrentInstance } from 'vue'
89
89
 
90
90
  defineProps({
91
91
  /**
@@ -38,7 +38,7 @@
38
38
 
39
39
  <script setup>
40
40
  import PsRichTooltip from '../tooltip/PsRichTooltip.vue'
41
- import { computed, defineEmits } from 'vue'
41
+ import { computed } from 'vue'
42
42
 
43
43
  const props = defineProps({
44
44
  /**
@@ -19,7 +19,12 @@ export const getParentScrollableEl = (node) => {
19
19
  return getParentScrollableEl(node.parentNode)
20
20
  }
21
21
  }
22
+
22
23
  export const getParentVueComponentByName = (comp, name) => {
24
+ if (!comp) {
25
+ return null
26
+ }
27
+
23
28
  if (comp.$options.name === name) {
24
29
  return comp
25
30
  } else {