@policystudio/policy-studio-ui-vue 1.0.47 → 1.0.48

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.
@@ -17255,13 +17255,20 @@ html {
17255
17255
 
17256
17256
  .psui-el-draggable .psui-el-draggable-item-title {
17257
17257
  --text-opacity: 1;
17258
- color: #515E6A;
17259
- color: rgba(81, 94, 106, var(--text-opacity));
17258
+ color: #798490;
17259
+ color: rgba(121, 132, 144, var(--text-opacity));
17260
17260
  font-size: 14px;
17261
17261
  line-height: 130%;
17262
17262
  font-weight: 700;
17263
17263
  }
17264
17264
 
17265
+ .psui-el-draggable .psui-el-draggable-item-title .psui-el-checkmark:before {
17266
+ margin-right: 0.25rem;
17267
+ --text-opacity: 1;
17268
+ color: #D6DDE5;
17269
+ color: rgba(214, 221, 229, var(--text-opacity));
17270
+ }
17271
+
17265
17272
  .psui-el-draggable .psui-el-draggable-item-append {
17266
17273
  display: flex;
17267
17274
  --text-opacity: 1;
@@ -17274,77 +17281,16 @@ html {
17274
17281
  font-size: 18px;
17275
17282
  }
17276
17283
 
17277
- .psui-el-draggable .psui-el-draggable-item:active {
17284
+ .psui-el-draggable .psui-el-draggable-item:active,
17285
+ .psui-el-draggable .psui-el-draggable-item.on-dragging {
17278
17286
  cursor: -webkit-grabbing;
17279
17287
  cursor: grabbing;
17280
17288
  }
17281
17289
 
17282
- .psui-el-draggable .psui-el-draggable-list-items-wrapper {
17283
- width: 100%;
17284
- display: flex;
17285
- flex-wrap: wrap;
17286
- }
17287
-
17288
- .psui-el-draggable .psui-el-draggable-list-items-wrapper li {
17289
- width: 100%;
17290
- margin-bottom: 0.5rem;
17291
- box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1);
17292
- background-color: #ffffff;
17293
- border-radius: 0.25rem;
17294
- display: flex;
17295
- align-items: center;
17296
- padding: 7px 16px;
17297
- }
17298
-
17299
- .psui-el-draggable .psui-el-draggable-list-items-wrapper li:hover {
17300
- --text-opacity: 1;
17301
- color: #798490;
17302
- color: rgba(121, 132, 144, var(--text-opacity));
17303
- cursor: -webkit-grab;
17304
- cursor: grab
17305
- }
17306
-
17307
- .psui-el-draggable .psui-el-draggable-list-items-wrapper li:active {
17308
- cursor: -webkit-grabbing;
17309
- cursor: grabbing
17310
- }
17311
-
17312
- .psui-el-draggable .psui-el-draggable-list-items-wrapper .psui-el-draggable-item-wrapper {
17313
- -webkit-user-select: none;
17314
- -moz-user-select: none;
17315
- -ms-user-select: none;
17316
- user-select: none;
17317
- width: 100%;
17318
- display: flex;
17319
- align-items: center
17320
- }
17321
-
17322
- .psui-el-draggable .psui-el-draggable-list-items-wrapper .psui-el-draggable-item-icon {
17323
- display: flex;
17324
- justify-content: flex-end;
17325
- margin-left: auto;
17290
+ .psui-el-draggable .psui-el-draggable-item.on-drag-over {
17291
+ opacity: 0.2;
17326
17292
  }
17327
17293
 
17328
- .psui-el-draggable .psui-el-draggable-list-items-wrapper .psui-el-draggable-item-icon i {
17329
- font-family: 'Material Icons Round';
17330
- font-weight: normal;
17331
- font-style: normal;
17332
- font-size: 24px;
17333
- line-height: 1;
17334
- letter-spacing: normal;
17335
- text-transform: none;
17336
- display: inline-block;
17337
- white-space: nowrap;
17338
- word-wrap: normal;
17339
- direction: ltr;
17340
- -webkit-font-feature-settings: 'liga';
17341
- -webkit-font-smoothing: antialiased;
17342
- --text-opacity: 1;
17343
- color: #D6DDE5;
17344
- color: rgba(214, 221, 229, var(--text-opacity));
17345
- font-size: 18px;
17346
- }
17347
-
17348
17294
  .psui-el-input-select {
17349
17295
  width: 100%;
17350
17296
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",
@@ -31,7 +31,13 @@
31
31
  padding: 7px 16px;
32
32
 
33
33
  &-title {
34
- @apply psui-text-gray-60 psui-text-small psui-font-bold;
34
+ @apply psui-text-gray-50 psui-text-small psui-font-bold;
35
+
36
+ .psui-el-checkmark {
37
+ &:before {
38
+ @apply psui-mr-1 psui-text-gray-30;
39
+ }
40
+ }
35
41
  }
36
42
 
37
43
  &-append {
@@ -42,39 +48,15 @@
42
48
  }
43
49
  }
44
50
 
45
- &:active {
46
- @apply psui-cursor-grabbing;
51
+ &:active,
52
+ &.on-dragging {
53
+ cursor: -webkit-grabbing;
54
+ cursor: -moz-grabbing;
55
+ cursor: grabbing;
47
56
  }
48
- }
49
-
50
-
51
- .psui-el-draggable-list-items-wrapper {
52
- @apply psui-w-full psui-flex psui-flex-wrap;
53
57
 
54
- li {
55
- @apply psui-w-full psui-mb-2 psui-shadow-elevation-5 psui-bg-white psui-rounded psui-flex psui-items-center;
56
- padding: 7px 16px;
57
-
58
- &:hover {
59
- @apply psui-text-gray-50 psui-cursor-grab
60
- }
61
-
62
- &:active {
63
- @apply psui-cursor-grabbing
64
- }
65
- }
66
-
67
- .psui-el-draggable-item-wrapper {
68
- @apply psui-select-none psui-w-full psui-flex psui-items-center
69
- }
70
-
71
- .psui-el-draggable-item-icon {
72
- @apply psui-flex psui-justify-end psui-ml-auto;
73
-
74
- i {
75
- @apply psui-icon psui-text-gray-30;
76
- font-size: 18px;
77
- }
58
+ &.on-drag-over {
59
+ opacity: 0.2;
78
60
  }
79
61
  }
80
62
  }
@@ -31,7 +31,7 @@ export default {
31
31
  type: [String, Boolean],
32
32
  },
33
33
  value:{
34
- type: Array
34
+ type: [Array, Boolean]
35
35
  },
36
36
  /**
37
37
  * It disables the checkbox input.
@@ -4,13 +4,14 @@
4
4
  v-for="(columnGroup, indexColumnGroup) in getColumns.columnGroups"
5
5
  :key="indexColumnGroup"
6
6
  :ref="indexColumnGroup"
7
+ :id="`edit-group-${indexColumnGroup}`"
7
8
  >
8
9
  <div
9
10
  class="psui-el-draggable-wrapper-title"
10
11
  draggable="true"
11
- @dragstart="onDragStart"
12
- @dragover="$emit('drag-over', $event)"
13
- @dragend="onDragEnd"
12
+ @dragstart="$emit('drag-start-group', indexColumnGroup)"
13
+ @dragend="$emit('drag-end-group', indexColumnGroup)"
14
+ @dragover="$emit('drag-over-group', indexColumnGroup)"
14
15
  >
15
16
  <p>{{ columnGroup.title }}</p>
16
17
  <i class="material-icons-round">drag_indicator</i>
@@ -22,19 +23,24 @@
22
23
  :key="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
23
24
  :id="`edit-columns-column-${indexColumnGroup}-${indexColumn}`"
24
25
  class="psui-el-draggable-item"
26
+ draggable="true"
27
+ @dragstart="$emit('drag-start-item', { indexColumnGroup, indexColumn }, $event)"
28
+ @dragover="$emit('drag-over-item', { indexColumnGroup, indexColumn }, $event)"
29
+ @dragend="$emit('drag-end-item', $event)"
25
30
  >
26
31
  <div
27
32
  class="psui-w-full psui-flex psui-items-center"
28
- draggable="true"
29
- @dragstart="$emit('drag-start-item',$event)"
30
- @dragover="$emit('drag-over-item',$event)"
31
- @dragend="$emit('drag-end-item',$event)"
32
33
  >
33
34
  <span class="psui-el-draggable-item-title">
34
- {{ column.title }}
35
+ <PsCheckbox
36
+ size="small"
37
+ :value="column.isActive"
38
+ :label="column.title"
39
+ @input="$emit('on-select-item', { studyKey: getColumns.key, indexColumnGroup, indexColumn, columnGroupKey: columnGroup.key })"
40
+ />
35
41
  </span>
36
42
  <span class="psui-el-draggable-item-append">
37
- <i class="material-icons-round">drag_indicator</i>
43
+ <i class="psui-icon">drag_indicator</i>
38
44
  </span>
39
45
  </div>
40
46
  </div>
@@ -59,16 +65,7 @@ export default {
59
65
  */
60
66
  module:{
61
67
  type: String
62
- }
63
- },
64
- methods:{
65
- onDragStart(event){
66
- this.$emit('drag-start', event)
67
68
  },
68
-
69
- onDragEnd(event){
70
- this.$emit('drag-end',event)
71
- }
72
- }
69
+ },
73
70
  }
74
71
  </script>