@silexlabs/silex-dashboard 1.0.45 → 1.0.47

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.4.23
2
+ * vue v3.4.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -10,7 +10,7 @@ var Vue = (function (exports) {
10
10
  // @__NO_SIDE_EFFECTS__
11
11
  function makeMap(str, expectsLowerCase) {
12
12
  const set = new Set(str.split(","));
13
- return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
13
+ return (val) => set.has(val);
14
14
  }
15
15
 
16
16
  const EMPTY_OBJ = Object.freeze({}) ;
@@ -84,10 +84,11 @@ var Vue = (function (exports) {
84
84
  fns[i](arg);
85
85
  }
86
86
  };
87
- const def = (obj, key, value) => {
87
+ const def = (obj, key, value, writable = false) => {
88
88
  Object.defineProperty(obj, key, {
89
89
  configurable: true,
90
90
  enumerable: false,
91
+ writable,
91
92
  value
92
93
  });
93
94
  };
@@ -479,11 +480,10 @@ var Vue = (function (exports) {
479
480
  }
480
481
  }
481
482
  stop() {
482
- var _a;
483
483
  if (this.active) {
484
484
  preCleanupEffect(this);
485
485
  postCleanupEffect(this);
486
- (_a = this.onStop) == null ? void 0 : _a.call(this);
486
+ this.onStop && this.onStop();
487
487
  this.active = false;
488
488
  }
489
489
  }
@@ -696,8 +696,8 @@ var Vue = (function (exports) {
696
696
  resetScheduling();
697
697
  }
698
698
  function getDepFromReactive(object, key) {
699
- var _a;
700
- return (_a = targetMap.get(object)) == null ? void 0 : _a.get(key);
699
+ const depsMap = targetMap.get(object);
700
+ return depsMap && depsMap.get(key);
701
701
  }
702
702
 
703
703
  const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
@@ -2359,21 +2359,21 @@ getter: `, this.getter);
2359
2359
  vnode,
2360
2360
  proxy,
2361
2361
  withProxy,
2362
- props,
2363
2362
  propsOptions: [propsOptions],
2364
2363
  slots,
2365
2364
  attrs,
2366
2365
  emit,
2367
2366
  render,
2368
2367
  renderCache,
2368
+ props,
2369
2369
  data,
2370
2370
  setupState,
2371
2371
  ctx,
2372
2372
  inheritAttrs
2373
2373
  } = instance;
2374
+ const prev = setCurrentRenderingInstance(instance);
2374
2375
  let result;
2375
2376
  let fallthroughAttrs;
2376
- const prev = setCurrentRenderingInstance(instance);
2377
2377
  {
2378
2378
  accessedAttrs = false;
2379
2379
  }
@@ -2395,7 +2395,7 @@ getter: `, this.getter);
2395
2395
  thisProxy,
2396
2396
  proxyToUse,
2397
2397
  renderCache,
2398
- props,
2398
+ true ? shallowReadonly(props) : props,
2399
2399
  setupState,
2400
2400
  data,
2401
2401
  ctx
@@ -2409,19 +2409,18 @@ getter: `, this.getter);
2409
2409
  }
2410
2410
  result = normalizeVNode(
2411
2411
  render2.length > 1 ? render2(
2412
- props,
2412
+ true ? shallowReadonly(props) : props,
2413
2413
  true ? {
2414
2414
  get attrs() {
2415
2415
  markAttrsAccessed();
2416
- return attrs;
2416
+ return shallowReadonly(attrs);
2417
2417
  },
2418
2418
  slots,
2419
2419
  emit
2420
2420
  } : { attrs, slots, emit }
2421
2421
  ) : render2(
2422
- props,
2422
+ true ? shallowReadonly(props) : props,
2423
2423
  null
2424
- /* we know it doesn't need it */
2425
2424
  )
2426
2425
  );
2427
2426
  fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
@@ -2447,7 +2446,7 @@ getter: `, this.getter);
2447
2446
  propsOptions
2448
2447
  );
2449
2448
  }
2450
- root = cloneVNode(root, fallthroughAttrs);
2449
+ root = cloneVNode(root, fallthroughAttrs, false, true);
2451
2450
  } else if (!accessedAttrs && root.type !== Comment) {
2452
2451
  const allAttrs = Object.keys(attrs);
2453
2452
  const eventAttrs = [];
@@ -2481,7 +2480,7 @@ getter: `, this.getter);
2481
2480
  `Runtime directive used on component with non-element root node. The directives will not function as intended.`
2482
2481
  );
2483
2482
  }
2484
- root = cloneVNode(root);
2483
+ root = cloneVNode(root, null, false, true);
2485
2484
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
2486
2485
  }
2487
2486
  if (vnode.transition) {
@@ -2972,7 +2971,7 @@ If this is a native custom element, make sure to exclude it from component resol
2972
2971
  let parentSuspenseId;
2973
2972
  const isSuspensible = isVNodeSuspensible(vnode);
2974
2973
  if (isSuspensible) {
2975
- if (parentSuspense == null ? void 0 : parentSuspense.pendingBranch) {
2974
+ if (parentSuspense && parentSuspense.pendingBranch) {
2976
2975
  parentSuspenseId = parentSuspense.pendingId;
2977
2976
  parentSuspense.deps++;
2978
2977
  }
@@ -3284,8 +3283,8 @@ If this is a native custom element, make sure to exclude it from component resol
3284
3283
  }
3285
3284
  }
3286
3285
  function isVNodeSuspensible(vnode) {
3287
- var _a;
3288
- return ((_a = vnode.props) == null ? void 0 : _a.suspensible) != null && vnode.props.suspensible !== false;
3286
+ const suspensible = vnode.props && vnode.props.suspensible;
3287
+ return suspensible != null && suspensible !== false;
3289
3288
  }
3290
3289
 
3291
3290
  const ssrContextKey = Symbol.for("v-scx");
@@ -3512,34 +3511,29 @@ If this is a native custom element, make sure to exclude it from component resol
3512
3511
  return cur;
3513
3512
  };
3514
3513
  }
3515
- function traverse(value, depth, currentDepth = 0, seen) {
3516
- if (!isObject(value) || value["__v_skip"]) {
3514
+ function traverse(value, depth = Infinity, seen) {
3515
+ if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
3517
3516
  return value;
3518
3517
  }
3519
- if (depth && depth > 0) {
3520
- if (currentDepth >= depth) {
3521
- return value;
3522
- }
3523
- currentDepth++;
3524
- }
3525
3518
  seen = seen || /* @__PURE__ */ new Set();
3526
3519
  if (seen.has(value)) {
3527
3520
  return value;
3528
3521
  }
3529
3522
  seen.add(value);
3523
+ depth--;
3530
3524
  if (isRef(value)) {
3531
- traverse(value.value, depth, currentDepth, seen);
3525
+ traverse(value.value, depth, seen);
3532
3526
  } else if (isArray(value)) {
3533
3527
  for (let i = 0; i < value.length; i++) {
3534
- traverse(value[i], depth, currentDepth, seen);
3528
+ traverse(value[i], depth, seen);
3535
3529
  }
3536
3530
  } else if (isSet(value) || isMap(value)) {
3537
3531
  value.forEach((v) => {
3538
- traverse(v, depth, currentDepth, seen);
3532
+ traverse(v, depth, seen);
3539
3533
  });
3540
3534
  } else if (isPlainObject(value)) {
3541
3535
  for (const key in value) {
3542
- traverse(value[key], depth, currentDepth, seen);
3536
+ traverse(value[key], depth, seen);
3543
3537
  }
3544
3538
  }
3545
3539
  return value;
@@ -3697,7 +3691,7 @@ If this is a native custom element, make sure to exclude it from component resol
3697
3691
  instance
3698
3692
  );
3699
3693
  setTransitionHooks(oldInnerChild, leavingHooks);
3700
- if (mode === "out-in") {
3694
+ if (mode === "out-in" && innerChild.type !== Comment) {
3701
3695
  state.isLeaving = true;
3702
3696
  leavingHooks.afterLeave = () => {
3703
3697
  state.isLeaving = false;
@@ -3882,11 +3876,21 @@ If this is a native custom element, make sure to exclude it from component resol
3882
3876
  }
3883
3877
  }
3884
3878
  function getKeepAliveChild(vnode) {
3885
- return isKeepAlive(vnode) ? (
3886
- // #7121 ensure get the child component subtree in case
3887
- // it's been replaced during HMR
3888
- vnode.component ? vnode.component.subTree : vnode.children ? vnode.children[0] : void 0
3889
- ) : vnode;
3879
+ if (!isKeepAlive(vnode)) {
3880
+ return vnode;
3881
+ }
3882
+ if (vnode.component) {
3883
+ return vnode.component.subTree;
3884
+ }
3885
+ const { shapeFlag, children } = vnode;
3886
+ if (children) {
3887
+ if (shapeFlag & 16) {
3888
+ return children[0];
3889
+ }
3890
+ if (shapeFlag & 32 && isFunction(children.default)) {
3891
+ return children.default();
3892
+ }
3893
+ }
3890
3894
  }
3891
3895
  function setTransitionHooks(vnode, hooks) {
3892
3896
  if (vnode.shapeFlag & 6 && vnode.component) {
@@ -4202,7 +4206,7 @@ If this is a native custom element, make sure to exclude it from component resol
4202
4206
  return () => {
4203
4207
  pendingCacheKey = null;
4204
4208
  if (!slots.default) {
4205
- return current = null;
4209
+ return null;
4206
4210
  }
4207
4211
  const children = slots.default();
4208
4212
  const rawVNode = children[0];
@@ -5485,7 +5489,7 @@ If you want to remount the same app, move your app creation logic into a factory
5485
5489
  return !!(currentInstance || currentRenderingInstance || currentApp);
5486
5490
  }
5487
5491
 
5488
- const internalObjectProto = /* @__PURE__ */ Object.create(null);
5492
+ const internalObjectProto = {};
5489
5493
  const createInternalObject = () => Object.create(internalObjectProto);
5490
5494
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
5491
5495
 
@@ -5938,21 +5942,17 @@ If you want to remount the same app, move your app creation logic into a factory
5938
5942
  instance.slots.default = () => normalized;
5939
5943
  };
5940
5944
  const initSlots = (instance, children) => {
5945
+ const slots = instance.slots = createInternalObject();
5941
5946
  if (instance.vnode.shapeFlag & 32) {
5942
5947
  const type = children._;
5943
5948
  if (type) {
5944
- instance.slots = toRaw(children);
5945
- def(instance.slots, "_", type);
5949
+ extend(slots, children);
5950
+ def(slots, "_", type, true);
5946
5951
  } else {
5947
- normalizeObjectSlots(
5948
- children,
5949
- instance.slots = createInternalObject());
5950
- }
5951
- } else {
5952
- instance.slots = createInternalObject();
5953
- if (children) {
5954
- normalizeVNodeSlots(instance, children);
5952
+ normalizeObjectSlots(children, slots);
5955
5953
  }
5954
+ } else if (children) {
5955
+ normalizeVNodeSlots(instance, children);
5956
5956
  }
5957
5957
  };
5958
5958
  const updateSlots = (instance, children, optimized) => {
@@ -8694,8 +8694,8 @@ Component that was made reactive: `,
8694
8694
  return null;
8695
8695
  return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
8696
8696
  }
8697
- function cloneVNode(vnode, extraProps, mergeRef = false) {
8698
- const { props, ref, patchFlag, children } = vnode;
8697
+ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
8698
+ const { props, ref, patchFlag, children, transition } = vnode;
8699
8699
  const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
8700
8700
  const cloned = {
8701
8701
  __v_isVNode: true,
@@ -8725,7 +8725,7 @@ Component that was made reactive: `,
8725
8725
  dynamicChildren: vnode.dynamicChildren,
8726
8726
  appContext: vnode.appContext,
8727
8727
  dirs: vnode.dirs,
8728
- transition: vnode.transition,
8728
+ transition,
8729
8729
  // These should technically only be non-null on mounted VNodes. However,
8730
8730
  // they *should* be copied for kept-alive vnodes. So we just always copy
8731
8731
  // them since them being non-null during a mount doesn't affect the logic as
@@ -8739,6 +8739,9 @@ Component that was made reactive: `,
8739
8739
  ctx: vnode.ctx,
8740
8740
  ce: vnode.ce
8741
8741
  };
8742
+ if (transition && cloneTransition) {
8743
+ cloned.transition = transition.clone(cloned);
8744
+ }
8742
8745
  return cloned;
8743
8746
  }
8744
8747
  function deepCloneVNode(vnode) {
@@ -9546,7 +9549,7 @@ Component that was made reactive: `,
9546
9549
  return true;
9547
9550
  }
9548
9551
 
9549
- const version = "3.4.23";
9552
+ const version = "3.4.26";
9550
9553
  const warn = warn$1 ;
9551
9554
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9552
9555
  const devtools = devtools$1 ;
@@ -9742,8 +9745,8 @@ Component that was made reactive: `,
9742
9745
  el._isLeaving = true;
9743
9746
  const resolve = () => finishLeave(el, done);
9744
9747
  addTransitionClass(el, leaveFromClass);
9745
- forceReflow();
9746
9748
  addTransitionClass(el, leaveActiveClass);
9749
+ forceReflow();
9747
9750
  nextFrame(() => {
9748
9751
  if (!el._isLeaving) {
9749
9752
  return;