@policystudio/policy-studio-ui-vue 1.1.90-beta.22 → 1.1.90-beta.26

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.22",
3
+ "version": "1.1.90-beta.26",
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
+
@@ -184,7 +184,7 @@ const updatePosition = () => {
184
184
  PSDropdownDialog.value.style.minWidth = `${rectTrigger.width}px`
185
185
 
186
186
  if (rectTrigger.x + rectDialog.width + 20 > windowWidth) {
187
- PSDropdownDialog.value.style.left = `${windowWidth - rectDialog.width + 15}px`
187
+ PSDropdownDialog.value.style.left = `${windowWidth - rectDialog.width - 30}px`
188
188
  } else {
189
189
  PSDropdownDialog.value.style.left = `${rectTrigger.x}px`
190
190
  }
@@ -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 {