@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
  **/
@@ -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
  **/
@@ -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
  };
@@ -544,11 +545,10 @@ var Vue = (function (exports) {
544
545
  }
545
546
  }
546
547
  stop() {
547
- var _a;
548
548
  if (this.active) {
549
549
  preCleanupEffect(this);
550
550
  postCleanupEffect(this);
551
- (_a = this.onStop) == null ? void 0 : _a.call(this);
551
+ this.onStop && this.onStop();
552
552
  this.active = false;
553
553
  }
554
554
  }
@@ -761,8 +761,8 @@ var Vue = (function (exports) {
761
761
  resetScheduling();
762
762
  }
763
763
  function getDepFromReactive(object, key) {
764
- var _a;
765
- return (_a = targetMap.get(object)) == null ? void 0 : _a.get(key);
764
+ const depsMap = targetMap.get(object);
765
+ return depsMap && depsMap.get(key);
766
766
  }
767
767
 
768
768
  const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
@@ -2424,21 +2424,21 @@ getter: `, this.getter);
2424
2424
  vnode,
2425
2425
  proxy,
2426
2426
  withProxy,
2427
- props,
2428
2427
  propsOptions: [propsOptions],
2429
2428
  slots,
2430
2429
  attrs,
2431
2430
  emit,
2432
2431
  render,
2433
2432
  renderCache,
2433
+ props,
2434
2434
  data,
2435
2435
  setupState,
2436
2436
  ctx,
2437
2437
  inheritAttrs
2438
2438
  } = instance;
2439
+ const prev = setCurrentRenderingInstance(instance);
2439
2440
  let result;
2440
2441
  let fallthroughAttrs;
2441
- const prev = setCurrentRenderingInstance(instance);
2442
2442
  {
2443
2443
  accessedAttrs = false;
2444
2444
  }
@@ -2460,7 +2460,7 @@ getter: `, this.getter);
2460
2460
  thisProxy,
2461
2461
  proxyToUse,
2462
2462
  renderCache,
2463
- props,
2463
+ true ? shallowReadonly(props) : props,
2464
2464
  setupState,
2465
2465
  data,
2466
2466
  ctx
@@ -2474,19 +2474,18 @@ getter: `, this.getter);
2474
2474
  }
2475
2475
  result = normalizeVNode(
2476
2476
  render2.length > 1 ? render2(
2477
- props,
2477
+ true ? shallowReadonly(props) : props,
2478
2478
  true ? {
2479
2479
  get attrs() {
2480
2480
  markAttrsAccessed();
2481
- return attrs;
2481
+ return shallowReadonly(attrs);
2482
2482
  },
2483
2483
  slots,
2484
2484
  emit
2485
2485
  } : { attrs, slots, emit }
2486
2486
  ) : render2(
2487
- props,
2487
+ true ? shallowReadonly(props) : props,
2488
2488
  null
2489
- /* we know it doesn't need it */
2490
2489
  )
2491
2490
  );
2492
2491
  fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
@@ -2512,7 +2511,7 @@ getter: `, this.getter);
2512
2511
  propsOptions
2513
2512
  );
2514
2513
  }
2515
- root = cloneVNode(root, fallthroughAttrs);
2514
+ root = cloneVNode(root, fallthroughAttrs, false, true);
2516
2515
  } else if (!accessedAttrs && root.type !== Comment) {
2517
2516
  const allAttrs = Object.keys(attrs);
2518
2517
  const eventAttrs = [];
@@ -2546,7 +2545,7 @@ getter: `, this.getter);
2546
2545
  `Runtime directive used on component with non-element root node. The directives will not function as intended.`
2547
2546
  );
2548
2547
  }
2549
- root = cloneVNode(root);
2548
+ root = cloneVNode(root, null, false, true);
2550
2549
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
2551
2550
  }
2552
2551
  if (vnode.transition) {
@@ -3037,7 +3036,7 @@ If this is a native custom element, make sure to exclude it from component resol
3037
3036
  let parentSuspenseId;
3038
3037
  const isSuspensible = isVNodeSuspensible(vnode);
3039
3038
  if (isSuspensible) {
3040
- if (parentSuspense == null ? void 0 : parentSuspense.pendingBranch) {
3039
+ if (parentSuspense && parentSuspense.pendingBranch) {
3041
3040
  parentSuspenseId = parentSuspense.pendingId;
3042
3041
  parentSuspense.deps++;
3043
3042
  }
@@ -3349,8 +3348,8 @@ If this is a native custom element, make sure to exclude it from component resol
3349
3348
  }
3350
3349
  }
3351
3350
  function isVNodeSuspensible(vnode) {
3352
- var _a;
3353
- return ((_a = vnode.props) == null ? void 0 : _a.suspensible) != null && vnode.props.suspensible !== false;
3351
+ const suspensible = vnode.props && vnode.props.suspensible;
3352
+ return suspensible != null && suspensible !== false;
3354
3353
  }
3355
3354
 
3356
3355
  const ssrContextKey = Symbol.for("v-scx");
@@ -3577,34 +3576,29 @@ If this is a native custom element, make sure to exclude it from component resol
3577
3576
  return cur;
3578
3577
  };
3579
3578
  }
3580
- function traverse(value, depth, currentDepth = 0, seen) {
3581
- if (!isObject(value) || value["__v_skip"]) {
3579
+ function traverse(value, depth = Infinity, seen) {
3580
+ if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
3582
3581
  return value;
3583
3582
  }
3584
- if (depth && depth > 0) {
3585
- if (currentDepth >= depth) {
3586
- return value;
3587
- }
3588
- currentDepth++;
3589
- }
3590
3583
  seen = seen || /* @__PURE__ */ new Set();
3591
3584
  if (seen.has(value)) {
3592
3585
  return value;
3593
3586
  }
3594
3587
  seen.add(value);
3588
+ depth--;
3595
3589
  if (isRef(value)) {
3596
- traverse(value.value, depth, currentDepth, seen);
3590
+ traverse(value.value, depth, seen);
3597
3591
  } else if (isArray(value)) {
3598
3592
  for (let i = 0; i < value.length; i++) {
3599
- traverse(value[i], depth, currentDepth, seen);
3593
+ traverse(value[i], depth, seen);
3600
3594
  }
3601
3595
  } else if (isSet(value) || isMap(value)) {
3602
3596
  value.forEach((v) => {
3603
- traverse(v, depth, currentDepth, seen);
3597
+ traverse(v, depth, seen);
3604
3598
  });
3605
3599
  } else if (isPlainObject(value)) {
3606
3600
  for (const key in value) {
3607
- traverse(value[key], depth, currentDepth, seen);
3601
+ traverse(value[key], depth, seen);
3608
3602
  }
3609
3603
  }
3610
3604
  return value;
@@ -3762,7 +3756,7 @@ If this is a native custom element, make sure to exclude it from component resol
3762
3756
  instance
3763
3757
  );
3764
3758
  setTransitionHooks(oldInnerChild, leavingHooks);
3765
- if (mode === "out-in") {
3759
+ if (mode === "out-in" && innerChild.type !== Comment) {
3766
3760
  state.isLeaving = true;
3767
3761
  leavingHooks.afterLeave = () => {
3768
3762
  state.isLeaving = false;
@@ -3947,11 +3941,21 @@ If this is a native custom element, make sure to exclude it from component resol
3947
3941
  }
3948
3942
  }
3949
3943
  function getKeepAliveChild(vnode) {
3950
- return isKeepAlive(vnode) ? (
3951
- // #7121 ensure get the child component subtree in case
3952
- // it's been replaced during HMR
3953
- vnode.component ? vnode.component.subTree : vnode.children ? vnode.children[0] : void 0
3954
- ) : vnode;
3944
+ if (!isKeepAlive(vnode)) {
3945
+ return vnode;
3946
+ }
3947
+ if (vnode.component) {
3948
+ return vnode.component.subTree;
3949
+ }
3950
+ const { shapeFlag, children } = vnode;
3951
+ if (children) {
3952
+ if (shapeFlag & 16) {
3953
+ return children[0];
3954
+ }
3955
+ if (shapeFlag & 32 && isFunction(children.default)) {
3956
+ return children.default();
3957
+ }
3958
+ }
3955
3959
  }
3956
3960
  function setTransitionHooks(vnode, hooks) {
3957
3961
  if (vnode.shapeFlag & 6 && vnode.component) {
@@ -4267,7 +4271,7 @@ If this is a native custom element, make sure to exclude it from component resol
4267
4271
  return () => {
4268
4272
  pendingCacheKey = null;
4269
4273
  if (!slots.default) {
4270
- return current = null;
4274
+ return null;
4271
4275
  }
4272
4276
  const children = slots.default();
4273
4277
  const rawVNode = children[0];
@@ -5550,7 +5554,7 @@ If you want to remount the same app, move your app creation logic into a factory
5550
5554
  return !!(currentInstance || currentRenderingInstance || currentApp);
5551
5555
  }
5552
5556
 
5553
- const internalObjectProto = /* @__PURE__ */ Object.create(null);
5557
+ const internalObjectProto = {};
5554
5558
  const createInternalObject = () => Object.create(internalObjectProto);
5555
5559
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
5556
5560
 
@@ -6003,21 +6007,17 @@ If you want to remount the same app, move your app creation logic into a factory
6003
6007
  instance.slots.default = () => normalized;
6004
6008
  };
6005
6009
  const initSlots = (instance, children) => {
6010
+ const slots = instance.slots = createInternalObject();
6006
6011
  if (instance.vnode.shapeFlag & 32) {
6007
6012
  const type = children._;
6008
6013
  if (type) {
6009
- instance.slots = toRaw(children);
6010
- def(instance.slots, "_", type);
6014
+ extend(slots, children);
6015
+ def(slots, "_", type, true);
6011
6016
  } else {
6012
- normalizeObjectSlots(
6013
- children,
6014
- instance.slots = createInternalObject());
6015
- }
6016
- } else {
6017
- instance.slots = createInternalObject();
6018
- if (children) {
6019
- normalizeVNodeSlots(instance, children);
6017
+ normalizeObjectSlots(children, slots);
6020
6018
  }
6019
+ } else if (children) {
6020
+ normalizeVNodeSlots(instance, children);
6021
6021
  }
6022
6022
  };
6023
6023
  const updateSlots = (instance, children, optimized) => {
@@ -8759,8 +8759,8 @@ Component that was made reactive: `,
8759
8759
  return null;
8760
8760
  return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
8761
8761
  }
8762
- function cloneVNode(vnode, extraProps, mergeRef = false) {
8763
- const { props, ref, patchFlag, children } = vnode;
8762
+ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
8763
+ const { props, ref, patchFlag, children, transition } = vnode;
8764
8764
  const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
8765
8765
  const cloned = {
8766
8766
  __v_isVNode: true,
@@ -8790,7 +8790,7 @@ Component that was made reactive: `,
8790
8790
  dynamicChildren: vnode.dynamicChildren,
8791
8791
  appContext: vnode.appContext,
8792
8792
  dirs: vnode.dirs,
8793
- transition: vnode.transition,
8793
+ transition,
8794
8794
  // These should technically only be non-null on mounted VNodes. However,
8795
8795
  // they *should* be copied for kept-alive vnodes. So we just always copy
8796
8796
  // them since them being non-null during a mount doesn't affect the logic as
@@ -8804,6 +8804,9 @@ Component that was made reactive: `,
8804
8804
  ctx: vnode.ctx,
8805
8805
  ce: vnode.ce
8806
8806
  };
8807
+ if (transition && cloneTransition) {
8808
+ cloned.transition = transition.clone(cloned);
8809
+ }
8807
8810
  return cloned;
8808
8811
  }
8809
8812
  function deepCloneVNode(vnode) {
@@ -9611,7 +9614,7 @@ Component that was made reactive: `,
9611
9614
  return true;
9612
9615
  }
9613
9616
 
9614
- const version = "3.4.23";
9617
+ const version = "3.4.26";
9615
9618
  const warn = warn$1 ;
9616
9619
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9617
9620
  const devtools = devtools$1 ;
@@ -9807,8 +9810,8 @@ Component that was made reactive: `,
9807
9810
  el._isLeaving = true;
9808
9811
  const resolve = () => finishLeave(el, done);
9809
9812
  addTransitionClass(el, leaveFromClass);
9810
- forceReflow();
9811
9813
  addTransitionClass(el, leaveActiveClass);
9814
+ forceReflow();
9812
9815
  nextFrame(() => {
9813
9816
  if (!el._isLeaving) {
9814
9817
  return;
@@ -12631,11 +12634,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
12631
12634
  }
12632
12635
  },
12633
12636
  onselfclosingtag(end) {
12634
- var _a;
12635
12637
  const name = currentOpenTag.tag;
12636
12638
  currentOpenTag.isSelfClosing = true;
12637
12639
  endOpenTag(end);
12638
- if (((_a = stack[0]) == null ? void 0 : _a.tag) === name) {
12640
+ if (stack[0] && stack[0].tag === name) {
12639
12641
  onCloseTag(stack.shift(), end);
12640
12642
  }
12641
12643
  },
@@ -12936,16 +12938,15 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
12936
12938
  currentOpenTag = null;
12937
12939
  }
12938
12940
  function onText(content, start, end) {
12939
- var _a;
12940
12941
  {
12941
- const tag = (_a = stack[0]) == null ? void 0 : _a.tag;
12942
+ const tag = stack[0] && stack[0].tag;
12942
12943
  if (tag !== "script" && tag !== "style" && content.includes("&")) {
12943
12944
  content = currentOptions.decodeEntities(content, false);
12944
12945
  }
12945
12946
  }
12946
12947
  const parent = stack[0] || currentRoot;
12947
12948
  const lastNode = parent.children[parent.children.length - 1];
12948
- if ((lastNode == null ? void 0 : lastNode.type) === 2) {
12949
+ if (lastNode && lastNode.type === 2) {
12949
12950
  lastNode.content += content;
12950
12951
  setLocEnd(lastNode.loc, end);
12951
12952
  } else {
@@ -13021,11 +13022,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
13021
13022
  return false;
13022
13023
  }
13023
13024
  function isComponent({ tag, props }) {
13024
- var _a;
13025
13025
  if (currentOptions.isCustomElement(tag)) {
13026
13026
  return false;
13027
13027
  }
13028
- if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) || ((_a = currentOptions.isBuiltInComponent) == null ? void 0 : _a.call(currentOptions, tag)) || currentOptions.isNativeTag && !currentOptions.isNativeTag(tag)) {
13028
+ if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) || currentOptions.isBuiltInComponent && currentOptions.isBuiltInComponent(tag) || currentOptions.isNativeTag && !currentOptions.isNativeTag(tag)) {
13029
13029
  return true;
13030
13030
  }
13031
13031
  for (let i = 0; i < props.length; i++) {
@@ -13045,7 +13045,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
13045
13045
  }
13046
13046
  const windowsNewlineRE = /\r\n/g;
13047
13047
  function condenseWhitespace(nodes, tag) {
13048
- var _a, _b;
13049
13048
  const shouldCondense = currentOptions.whitespace !== "preserve";
13050
13049
  let removedWhitespace = false;
13051
13050
  for (let i = 0; i < nodes.length; i++) {
@@ -13053,8 +13052,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
13053
13052
  if (node.type === 2) {
13054
13053
  if (!inPre) {
13055
13054
  if (isAllWhitespace(node.content)) {
13056
- const prev = (_a = nodes[i - 1]) == null ? void 0 : _a.type;
13057
- const next = (_b = nodes[i + 1]) == null ? void 0 : _b.type;
13055
+ const prev = nodes[i - 1] && nodes[i - 1].type;
13056
+ const next = nodes[i + 1] && nodes[i + 1].type;
13058
13057
  if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) {
13059
13058
  removedWhitespace = true;
13060
13059
  nodes[i] = null;
@@ -13192,7 +13191,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
13192
13191
  }
13193
13192
  tokenizer.mode = currentOptions.parseMode === "html" ? 1 : currentOptions.parseMode === "sfc" ? 2 : 0;
13194
13193
  tokenizer.inXML = currentOptions.ns === 1 || currentOptions.ns === 2;
13195
- const delimiters = options == null ? void 0 : options.delimiters;
13194
+ const delimiters = options && options.delimiters;
13196
13195
  if (delimiters) {
13197
13196
  tokenizer.delimiterOpen = toCharCodes(delimiters[0]);
13198
13197
  tokenizer.delimiterClose = toCharCodes(delimiters[1]);
@@ -13517,6 +13516,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
13517
13516
  vOnce: 0
13518
13517
  },
13519
13518
  parent: null,
13519
+ grandParent: null,
13520
13520
  currentNode: root,
13521
13521
  childIndex: 0,
13522
13522
  inVOnce: false,
@@ -13657,6 +13657,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
13657
13657
  const child = parent.children[i];
13658
13658
  if (isString(child))
13659
13659
  continue;
13660
+ context.grandParent = context.parent;
13660
13661
  context.parent = parent;
13661
13662
  context.childIndex = i;
13662
13663
  context.onNodeRemoved = nodeRemoved;
@@ -15216,6 +15217,16 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15216
15217
  if (arg)
15217
15218
  mergeArgs.push(arg);
15218
15219
  };
15220
+ const pushRefVForMarker = () => {
15221
+ if (context.scopes.vFor > 0) {
15222
+ properties.push(
15223
+ createObjectProperty(
15224
+ createSimpleExpression("ref_for", true),
15225
+ createSimpleExpression("true")
15226
+ )
15227
+ );
15228
+ }
15229
+ };
15219
15230
  const analyzePatchFlag = ({ key, value }) => {
15220
15231
  if (isStaticExp(key)) {
15221
15232
  const name = key.content;
@@ -15259,14 +15270,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15259
15270
  let isStatic = true;
15260
15271
  if (name === "ref") {
15261
15272
  hasRef = true;
15262
- if (context.scopes.vFor > 0) {
15263
- properties.push(
15264
- createObjectProperty(
15265
- createSimpleExpression("ref_for", true),
15266
- createSimpleExpression("true")
15267
- )
15268
- );
15269
- }
15273
+ pushRefVForMarker();
15270
15274
  }
15271
15275
  if (name === "is" && (isComponentTag(tag) || value && value.content.startsWith("vue:") || false)) {
15272
15276
  continue;
@@ -15310,18 +15314,14 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15310
15314
  ) {
15311
15315
  shouldUseBlock = true;
15312
15316
  }
15313
- if (isVBind && isStaticArgOf(arg, "ref") && context.scopes.vFor > 0) {
15314
- properties.push(
15315
- createObjectProperty(
15316
- createSimpleExpression("ref_for", true),
15317
- createSimpleExpression("true")
15318
- )
15319
- );
15317
+ if (isVBind && isStaticArgOf(arg, "ref")) {
15318
+ pushRefVForMarker();
15320
15319
  }
15321
15320
  if (!arg && (isVBind || isVOn)) {
15322
15321
  hasDynamicKeys = true;
15323
15322
  if (exp) {
15324
15323
  if (isVBind) {
15324
+ pushRefVForMarker();
15325
15325
  pushMergeArg();
15326
15326
  mergeArgs.push(exp);
15327
15327
  } else {