@signal24/vue-foundation 3.3.0 → 3.3.2

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Common components, directives, and helpers for Vue 3 apps",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <modal class="vf-alert" :class="classes">
3
- <h1 v-if="!this.isBare" slot="header">{{ title }}</h1>
3
+ <h1 v-if="!this.isBare" v-slot:header>{{ title }}</h1>
4
4
 
5
5
  <div v-if="isHtml" v-html="message" class="user-message"></div>
6
6
  <div v-else v-user-text="message"></div>
7
7
 
8
- <template v-if="!this.isBare" slot="footer">
8
+ <template v-if="!this.isBare" v-slot:footer>
9
9
  <template v-if="shouldConfirm">
10
10
  <button class="primary" @click="ok" v-autofocus>Confirm</button>
11
11
  <button class="default" @click="$dismiss()">Cancel</button>
@@ -538,6 +538,7 @@ export default {
538
538
  border-style: solid;
539
539
  border-width: 5px 5px 0 5px;
540
540
  border-color: #333333 transparent transparent transparent;
541
+ pointer-events: none;
541
542
  }
542
543
 
543
544
  &.open:after {
@@ -7,7 +7,7 @@ Object.defineProperty(Array.prototype, 'diff', {
7
7
  return false;
8
8
  }
9
9
  }
10
-
10
+
11
11
  return true;
12
12
  });
13
13
  }
@@ -29,19 +29,12 @@ Object.defineProperty(Array.prototype, 'intersect', {
29
29
  return true;
30
30
  }
31
31
  }
32
-
32
+
33
33
  return false;
34
34
  });
35
35
  }
36
36
  });
37
37
 
38
- Object.defineProperty(Array.prototype, 'unique', {
39
- enumerable: false,
40
- value: function() {
41
- return [...new Set(this)]
42
- }
43
- });
44
-
45
38
  Object.defineProperty(Array.prototype, 'keyBy', {
46
39
  enumerable: false,
47
40
  value: function(keyProp) {
@@ -77,7 +70,7 @@ Object.defineProperty(Array.prototype, 'pluck', {
77
70
  Object.defineProperty(Array.prototype, 'remove', {
78
71
  enumerable: false,
79
72
  value: function(element) {
80
- let index = this.indexOf(element);
73
+ const index = this.indexOf(element);
81
74
  index > -1 && this.splice(index, 1);
82
75
  }
83
76
  });
@@ -85,7 +78,7 @@ Object.defineProperty(Array.prototype, 'remove', {
85
78
  Object.defineProperty(Array.prototype, 'replace', {
86
79
  enumerable: false,
87
80
  value: function(element, replacement) {
88
- let index = this.indexOf(element);
81
+ const index = this.indexOf(element);
89
82
  index > -1 && this.splice(index, 1, replacement);
90
83
  }
91
84
  });
@@ -98,3 +91,10 @@ Object.defineProperty(Array.prototype, 'sortBy', {
98
91
  });
99
92
  }
100
93
  });
94
+
95
+ Object.defineProperty(Array.prototype, 'unique', {
96
+ enumerable: false,
97
+ value: function() {
98
+ return [...new Set(this)]
99
+ }
100
+ });