@policystudio/policy-studio-ui-vue 1.0.76 → 1.0.79

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.
@@ -18665,6 +18665,10 @@ html {
18665
18665
  margin-left: 0.25rem;
18666
18666
  }
18667
18667
 
18668
+ .psui-el-table-results tbody tr td .actions .is-last-deep {
18669
+ padding-left: 2.5rem;
18670
+ }
18671
+
18668
18672
  .psui-el-table-results tbody tr td:not(:first-child) > div {
18669
18673
  justify-content: flex-end;
18670
18674
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.76",
3
+ "version": "1.0.79",
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) {
@@ -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>
@@ -2,8 +2,8 @@
2
2
  <thead>
3
3
  <tr>
4
4
  <th>
5
- <div>
6
- <p class="title">Measures & Packages</p>
5
+ <div v-if="firstColumnTitle">
6
+ <p class="title">{{ firstColumnTitle }}</p>
7
7
  </div>
8
8
  </th>
9
9
 
@@ -29,7 +29,7 @@
29
29
  <tr>
30
30
  <th>
31
31
  <div>
32
- <p class="description">Select the measures you want to combine <br />to create your policy.</p>
32
+ <p v-if="firstColumnDescription" class="description">{{ firstColumnDescription }}</p>
33
33
  </div>
34
34
  </th>
35
35
 
@@ -75,6 +75,20 @@ export default {
75
75
  name: 'PsTableResultsHead',
76
76
  components: { PsIcon },
77
77
  props: {
78
+ /**
79
+ * It sets the title for the first column.
80
+ */
81
+ firstColumnTitle: {
82
+ type: String,
83
+ default: ''
84
+ },
85
+ /**
86
+ * It sets the description for the first column.
87
+ */
88
+ firstColumnDescription: {
89
+ type: String,
90
+ default: ''
91
+ },
78
92
  /**
79
93
  * It sets the values which will be use to render the header.
80
94
  */