wave-ui 2.40.1 → 2.40.4
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/README.md +2 -0
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +84 -71
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +4 -3
- package/src/wave-ui/components/w-divider.vue +1 -1
- package/src/wave-ui/components/w-form.vue +3 -5
- package/src/wave-ui/components/w-icon.vue +1 -3
- package/src/wave-ui/components/w-notification-manager.vue +1 -2
- package/src/wave-ui/core.js +2 -0
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-ui",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.4",
|
|
4
4
|
"description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
|
|
5
5
|
"author": "Antoni Andre <antoniandre.web@gmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "https://github.com/antoniandre/wave-ui",
|
|
8
|
+
"funding": "https://github.com/sponsors/antoniandre",
|
|
6
9
|
"main": "./dist/wave-ui.umd.js",
|
|
7
10
|
"unpkg": "dist/wave-ui.umd.js",
|
|
8
11
|
"jsdelivr": "dist/wave-ui.umd.js",
|
|
@@ -30,8 +33,6 @@
|
|
|
30
33
|
"vue framework",
|
|
31
34
|
"ui"
|
|
32
35
|
],
|
|
33
|
-
"license": "MIT",
|
|
34
|
-
"repository": "https://github.com/antoniandre/wave-ui",
|
|
35
36
|
"scripts": {
|
|
36
37
|
"dev": "vite",
|
|
37
38
|
"build": "vite build --base /wave-ui/",
|
|
@@ -144,12 +144,10 @@ export default {
|
|
|
144
144
|
el.Validation.message = validationMessage
|
|
145
145
|
},
|
|
146
146
|
|
|
147
|
+
// Reset is called from:
|
|
148
|
+
// - the form `reset` event listener
|
|
149
|
+
// - the modelValue watcher when set to `null`.
|
|
147
150
|
reset (e) {
|
|
148
|
-
// Reset is called from:
|
|
149
|
-
// - the form `reset` event listener
|
|
150
|
-
// - the modelValue watcher when set to `null`.
|
|
151
|
-
// Prevent resetting twice on form reset that sets the modelValue to null.
|
|
152
|
-
if (!e) return
|
|
153
151
|
this.status = null
|
|
154
152
|
|
|
155
153
|
// Since the whole w-form may be disabled or readonly,
|
|
@@ -10,8 +10,6 @@ component.w-icon(
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script>
|
|
13
|
-
import config from '../utils/config'
|
|
14
|
-
|
|
15
13
|
export default {
|
|
16
14
|
name: 'w-icon',
|
|
17
15
|
|
|
@@ -47,7 +45,7 @@ export default {
|
|
|
47
45
|
|
|
48
46
|
computed: {
|
|
49
47
|
hasLigature () {
|
|
50
|
-
return config.iconsLigature === this.fontName
|
|
48
|
+
return this.$waveui.config.iconsLigature === this.fontName
|
|
51
49
|
},
|
|
52
50
|
forcedSize () {
|
|
53
51
|
return this.size && (!isNaN(this.size) ? `${this.size}px` : this.size)
|
|
@@ -16,7 +16,6 @@ transition-group(
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script>
|
|
19
|
-
import config from '../utils/config'
|
|
20
19
|
import NotificationManager from '../utils/notification-manager'
|
|
21
20
|
|
|
22
21
|
export default {
|
|
@@ -28,7 +27,7 @@ export default {
|
|
|
28
27
|
|
|
29
28
|
computed: {
|
|
30
29
|
conf () {
|
|
31
|
-
return config.notificationManager
|
|
30
|
+
return this.$waveui.config.notificationManager
|
|
32
31
|
},
|
|
33
32
|
notifications () {
|
|
34
33
|
return this.notifManager?.notifications || []
|
package/src/wave-ui/core.js
CHANGED
|
@@ -111,7 +111,9 @@ export default class WaveUI {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
this.config = config
|
|
114
|
+
this.notify = notificationManager.notify
|
|
114
115
|
WaveUI.instance = this
|
|
116
|
+
|
|
115
117
|
// Make waveui reactive and expose the single instance in Vue.
|
|
116
118
|
app.config.globalProperties.$waveui = reactive(this)
|
|
117
119
|
}
|