@policystudio/policy-studio-ui-vue 1.0.75 → 1.0.78

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.
@@ -17251,6 +17251,7 @@ html {
17251
17251
  transition-duration: 300ms;
17252
17252
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
17253
17253
  z-index: 10;
17254
+ display: none;
17254
17255
  transition-delay: 0.4s;
17255
17256
  }
17256
17257
 
@@ -18664,6 +18665,10 @@ html {
18664
18665
  margin-left: 0.25rem;
18665
18666
  }
18666
18667
 
18668
+ .psui-el-table-results tbody tr td .actions .is-last-deep {
18669
+ padding-left: 2.5rem;
18670
+ }
18671
+
18667
18672
  .psui-el-table-results tbody tr td:not(:first-child) > div {
18668
18673
  justify-content: flex-end;
18669
18674
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.75",
3
+ "version": "1.0.78",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -81,6 +81,10 @@
81
81
  &-button {
82
82
  @apply .psui-cursor-pointer .psui-ml-1;
83
83
  }
84
+
85
+ .is-last-deep {
86
+ @apply psui-pl-10;
87
+ }
84
88
  }
85
89
 
86
90
  &:not(:first-child) {
@@ -5,7 +5,7 @@
5
5
  @apply psui-relative;
6
6
 
7
7
  .psui-el-tooltip-dialog {
8
- @apply psui-fixed psui-opacity-0 psui-transition-opacity psui-duration-300 psui-ease-in-out psui-z-10;
8
+ @apply psui-fixed psui-opacity-0 psui-transition-opacity psui-duration-300 psui-ease-in-out psui-z-10 psui-hidden;
9
9
  transition-delay: 0.4s;
10
10
 
11
11
  .psui-el-tooltip-content {
@@ -12,8 +12,8 @@
12
12
  <div v-if="$slots.prepend" class="psui-el-input-prepend">
13
13
  <slot name="prepend"></slot>
14
14
  </div>
15
-
16
15
  <input
16
+ :title="title"
17
17
  :type="type"
18
18
  :placeholder="placeholder"
19
19
  :disabled="disabled"
@@ -29,7 +29,6 @@
29
29
  v-bind="getAttrs"
30
30
  :class="{ 'focus': isFocus }"
31
31
  />
32
-
33
32
  <div v-if="$slots.append || hasError" class="psui-el-input-append">
34
33
  <span v-if="hasError" class="material-icons psui-text-red-20 material-icons-sharp">error</span>
35
34
  <slot v-else name="append"></slot>
@@ -48,6 +47,13 @@
48
47
  export default {
49
48
  name: 'PsInput',
50
49
  props: {
50
+ /**
51
+ * It set the title and also its tooltip default behavior
52
+ */
53
+ title: {
54
+ type: String,
55
+ default: ''
56
+ },
51
57
  /**
52
58
  * It sets the type of your button. default: text.
53
59
  */
@@ -108,16 +114,15 @@ export default {
108
114
  type: Boolean,
109
115
  default: false
110
116
  },
111
-
112
117
  minValue: {
113
- type: Number
118
+ type: null
114
119
  },
115
120
  maxValue: {
116
- type: Number
121
+ type: null
117
122
  },
118
123
  step:{
119
- type: Number
120
- }
124
+ type: null
125
+ },
121
126
  },
122
127
  data: () => ({
123
128
  isFocus: false,
@@ -152,7 +157,7 @@ export default {
152
157
  onInputBlur($event) {
153
158
  this.isFocus = false
154
159
  this.$emit('blur', $event)
155
- }
160
+ },
156
161
  }
157
162
  }
158
163
  </script>
@@ -24,8 +24,7 @@
24
24
  <td>
25
25
  <div
26
26
  class="actions psui-space-x-3"
27
- :class="{ 'psui-ml-8' : item.type == 'study_data' }"
28
- :style="{ paddingLeft: `${(item.last_deep) ? item.deep * 29 : item.deep * 16}px` }"
27
+ :style="{ paddingLeft: `${item.deep * 16}px` }"
29
28
  >
30
29
  <PsIcon
31
30
  v-if="!item.last_deep || item.type === 'total'"
@@ -37,11 +36,13 @@
37
36
  :class="checkRowIsVisible(item) ? 'psui-rotate-0' : 'psui--rotate-90'"
38
37
  @click.native="onCollapse(item)"
39
38
  />
39
+
40
40
  <PsRichTooltip
41
41
  v-if="item.is_disabled"
42
42
  layout="gray"
43
43
  position="top"
44
44
  class="psui-inline-flex psui-cursor-default"
45
+ :class="{ 'is-last-deep' : item.last_deep }"
45
46
  >
46
47
  <template v-slot:trigger>
47
48
  <p class="title psui-text-gray-50">{{ item.title }}</p>
@@ -64,7 +65,10 @@
64
65
  <p
65
66
  v-else
66
67
  class="title"
67
- :class="{ 'psui-font-bold' : item.type == 'total' }"
68
+ :class="[
69
+ { 'psui-font-bold' : item.type == 'total' },
70
+ { 'is-last-deep' : item.last_deep }
71
+ ]"
68
72
  >
69
73
  {{ item.title }}
70
74
  </p>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <PsTooltip :layout="layout" :title="title" :cssClass="cssClass" :position="position">
2
+ <PsTooltip :layout="layout" :title="title" :cssClass="cssClass" :position="position" :ignoreDialog="ignoreDialog">
3
3
  <template v-slot:trigger>
4
4
  <slot name="trigger"></slot>
5
5
  </template>
@@ -39,6 +39,10 @@ export default {
39
39
  type: String,
40
40
  default: 'bottom',
41
41
  validator: (value)=> ['bottom','top'].includes(value)
42
+ },
43
+ ignoreDialog: {
44
+ type: Boolean,
45
+ default: false
42
46
  }
43
47
 
44
48
  },
@@ -113,6 +113,7 @@ export default {
113
113
  const rectDialog = dialog.getBoundingClientRect()
114
114
  const rectTrigger = trigger.getBoundingClientRect()
115
115
  const windowWidth = document.documentElement.clientWidth
116
+
116
117
  dialog.style.top = `${rectTrigger.y + rectTrigger.height + 8}px`
117
118
 
118
119
  if (rectTrigger.x + rectDialog.width + 20 > windowWidth) {