wave-ui 2.41.0 → 2.42.0
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/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.es.js +4 -3
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/core.js +6 -2
- package/src/wave-ui/index.js +1 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, withKeys, createBlock, withModifiers, createCommentVNode, renderSlot, createVNode, withCtx, mergeProps, toHandlers, createTextVNode, toDisplayString, TransitionGroup, Transition, normalizeStyle, resolveDynamicComponent, withDirectives, createSlots, vShow, vModelText, vModelDynamic, resolveDirective, KeepAlive } from "vue";
|
|
7
|
+
import { reactive, inject, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, withKeys, createBlock, withModifiers, createCommentVNode, renderSlot, createVNode, withCtx, mergeProps, toHandlers, createTextVNode, toDisplayString, TransitionGroup, Transition, normalizeStyle, resolveDynamicComponent, withDirectives, createSlots, vShow, vModelText, vModelDynamic, resolveDirective, KeepAlive } from "vue";
|
|
8
8
|
const config = reactive({
|
|
9
9
|
breakpoints: {
|
|
10
10
|
xs: 600,
|
|
@@ -440,6 +440,7 @@ const _WaveUI = class {
|
|
|
440
440
|
this.notify = (...args) => notificationManager.notify(...args);
|
|
441
441
|
_WaveUI.instance = this;
|
|
442
442
|
app.config.globalProperties.$waveui = reactive(this);
|
|
443
|
+
app.provide("$waveui", _WaveUI.instance);
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
446
|
static install(app, options = {}) {
|
|
@@ -469,7 +470,7 @@ const _WaveUI = class {
|
|
|
469
470
|
let WaveUI = _WaveUI;
|
|
470
471
|
__publicField(WaveUI, "instance", null);
|
|
471
472
|
__publicField(WaveUI, "vueInstance", null);
|
|
472
|
-
|
|
473
|
+
const useWaveUI = () => inject("$waveui");
|
|
473
474
|
const _hoisted_1$r = ["aria-expanded"];
|
|
474
475
|
const _hoisted_2$d = ["onClick", "onFocus", "onKeypress", "tabindex"];
|
|
475
476
|
const _hoisted_3$b = ["innerHTML"];
|
|
@@ -7530,4 +7531,4 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
7530
7531
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7531
7532
|
const install = WaveUI.install;
|
|
7532
7533
|
WaveUI.install = (app, options = {}) => install.call(WaveUI, app, { components, ...options });
|
|
7533
|
-
export { WaveUI as default };
|
|
7534
|
+
export { WaveUI as default, useWaveUI };
|