toggle-components-library 1.25.2 → 1.25.3

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.
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.25.2",
3
+ "version": "1.25.3",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.25.2",
3
+ "version": "1.25.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -15,7 +15,7 @@
15
15
  tag="ul"
16
16
  v-model="inputVal"
17
17
  v-bind="dragOptions"
18
-
18
+
19
19
  >
20
20
  <transition-group type="transition" >
21
21
  <li
@@ -25,7 +25,7 @@
25
25
  :style="{marginRight:thumbnailWidth / 8 + 'px'}"
26
26
 
27
27
  >
28
- <div class="toggle-item-img toggle-dark-grey toggle-center"
28
+ <div class="toggle-item-img toggle-dark-grey toggle-center" :class="moveIconClass"
29
29
  :style="{ background: `rgb(243, 237, 237) url(${image.url}) no-repeat center top`,
30
30
  height: previewRatio == 'letterbox' ? thumbnailWidth / 2 + 'px': thumbnailWidth+'px',
31
31
  width: thumbnailWidth+'px'}"
@@ -49,7 +49,7 @@
49
49
  :id="'dropzone'+_uid"
50
50
  :options="dropzoneOptions"
51
51
  @vdropzone-file-added="fileAdded"
52
-
52
+
53
53
  />
54
54
  </div>
55
55
  </div>
@@ -142,6 +142,11 @@ export default {
142
142
  animation: 200,
143
143
  group: "images",
144
144
  };
145
+ },
146
+ moveIconClass() {
147
+ return {
148
+ 'toggle-move-icon' : this.images.length > 1
149
+ }
145
150
  },
146
151
  inputVal: {
147
152
  get: function (){
@@ -155,8 +160,8 @@ export default {
155
160
  },
156
161
  methods: {
157
162
 
158
-
159
-
163
+
164
+
160
165
  }
161
166
  }
162
167
 
@@ -164,5 +169,4 @@ export default {
164
169
  </script>
165
170
  <style lang="scss">
166
171
 
167
-
168
172
  </style>
@@ -45,7 +45,16 @@ export default {
45
45
  window.getSelection().removeAllRanges();
46
46
  window.getSelection().addRange(range);
47
47
  document.execCommand("copy");
48
- }
48
+ this.click();
49
+ },
50
+ click(){
51
+ /**
52
+ * Emitted when the button is clicked.
53
+ * @event click
54
+ * @type {Event}
55
+ */
56
+ this.$emit('click');
57
+ }
49
58
  }
50
59
  };
51
60
  </script>
@@ -507,20 +507,20 @@ $iconWidth:20px;
507
507
  background-size: cover !important;
508
508
  background-position: center;
509
509
  border-radius:4px;
510
- cursor: move;
511
510
  }
512
- .toggle-item-img::after{
511
+ .toggle-center {
512
+ display: flex;
513
+ align-items: center;
514
+ justify-content: center;
515
+ }
516
+ .toggle-move-icon::after {
513
517
  position: absolute;
514
518
  content:'';
515
519
  height: 100%;
516
520
  width: 100%;
521
+ background-size: $iconWidth!important;
517
522
  background: url('../assets/icons/draggable.svg') no-repeat center center;
518
- background-size: $iconWidth;
519
- }
520
- .toggle-center {
521
- display: flex;
522
- align-items: center;
523
- justify-content: center;
523
+ cursor: move;
524
524
  }
525
525
 
526
526
  }
@@ -51,7 +51,7 @@ a {
51
51
  background-position: center;
52
52
  background-size: contain;
53
53
  background-repeat: no-repeat;
54
- cursor:pointer;
54
+ cursor:copy;
55
55
  }
56
56
  }
57
57
  }