wave-ui 3.18.1 → 3.19.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.
@@ -5,7 +5,7 @@ var de = (e) => {
5
5
  var Ie = (e, t, i) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
6
  var F = (e, t, i) => Ie(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
7
7
  var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
8
- import { reactive as Z, resolveComponent as $, createBlock as b, openBlock as o, Teleport as Ve, createVNode as T, TransitionGroup as ae, normalizeClass as m, withCtx as f, createElementBlock as u, Fragment as v, renderList as x, createCommentVNode as p, mergeProps as _, createElementVNode as w, createApp as Te, defineComponent as Le, inject as Re, withKeys as A, renderSlot as c, withModifiers as M, createTextVNode as B, toDisplayString as S, normalizeStyle as R, toHandlers as ne, Transition as O, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as xe, KeepAlive as Oe } from "vue";
8
+ import { reactive as Z, resolveComponent as $, createBlock as b, openBlock as o, Teleport as Ve, createVNode as T, TransitionGroup as ae, normalizeClass as m, withCtx as f, createElementBlock as u, Fragment as v, renderList as x, createCommentVNode as p, mergeProps as _, createElementVNode as w, h as Te, render as Le, inject as Re, withKeys as A, renderSlot as c, withModifiers as M, createTextVNode as B, toDisplayString as S, normalizeStyle as R, toHandlers as ne, Transition as O, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as xe, KeepAlive as Oe } from "vue";
9
9
  const Pe = Z({
10
10
  on: "#app",
11
11
  // Sets the Wave UI root node. If not found, will default to `body`.
@@ -712,18 +712,11 @@ const N = class N {
712
712
  };
713
713
  H = new WeakMap(), te(N, H);
714
714
  let oe = N;
715
- const Qe = (e, t, i) => {
716
- const s = document.createElement("div");
717
- e.appendChild(s);
718
- const a = Te(Le({
719
- ...Je,
720
- inject: ["$waveui"]
721
- })).provide("$waveui", i);
722
- for (const l in t) {
723
- const n = t[l];
724
- a.component(n.name, { ...n, inject: ["$waveui"] });
725
- }
726
- a.mount(s), s.remove();
715
+ const Qe = (e) => {
716
+ const t = document.createElement("div");
717
+ document.body.appendChild(t);
718
+ const i = Te(Je);
719
+ i.appContext = e._context, Le(i, t), t.remove();
727
720
  };
728
721
  let be = !1;
729
722
  const Ze = (e) => {
@@ -817,8 +810,8 @@ const K = class K {
817
810
  beforeMount() {
818
811
  if (!be) {
819
812
  be = !0;
820
- const l = Re("$waveui"), { config: n } = l, r = document.querySelector(n.on) || document.body;
821
- r.classList.add("w-app"), n.theme === "auto" ? Ze(l) : l.switchTheme(n.theme, !0), je(l), Qe(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
813
+ const l = Re("$waveui"), { config: n } = l;
814
+ (document.querySelector(n.on) || document.body).classList.add("w-app"), n.theme === "auto" ? Ze(l) : l.switchTheme(n.theme, !0), je(l), Qe(t), t._context.mixins.find((d) => d.mounted && delete d.mounted);
822
815
  }
823
816
  }
824
817
  }), new K(t, i), ie(K, X, !0);