@silexlabs/silex-dashboard 1.0.70 → 1.0.72

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.5.6
2
+ * vue v3.5.10
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -575,9 +575,17 @@ var Vue = (function (exports) {
575
575
  let error;
576
576
  while (batchedSub) {
577
577
  let e = batchedSub;
578
+ let next;
579
+ while (e) {
580
+ if (!(e.flags & 1)) {
581
+ e.flags &= ~8;
582
+ }
583
+ e = e.next;
584
+ }
585
+ e = batchedSub;
578
586
  batchedSub = void 0;
579
587
  while (e) {
580
- const next = e.next;
588
+ next = e.next;
581
589
  e.next = void 0;
582
590
  e.flags &= ~8;
583
591
  if (e.flags & 1) {
@@ -667,7 +675,7 @@ var Vue = (function (exports) {
667
675
  computed.flags &= ~2;
668
676
  }
669
677
  }
670
- function removeSub(link) {
678
+ function removeSub(link, soft = false) {
671
679
  const { dep, prevSub, nextSub } = link;
672
680
  if (prevSub) {
673
681
  prevSub.nextSub = nextSub;
@@ -680,12 +688,18 @@ var Vue = (function (exports) {
680
688
  if (dep.subs === link) {
681
689
  dep.subs = prevSub;
682
690
  }
691
+ if (dep.subsHead === link) {
692
+ dep.subsHead = nextSub;
693
+ }
683
694
  if (!dep.subs && dep.computed) {
684
695
  dep.computed.flags &= ~4;
685
696
  for (let l = dep.computed.deps; l; l = l.nextDep) {
686
- removeSub(l);
697
+ removeSub(l, true);
687
698
  }
688
699
  }
700
+ if (!soft && !--dep.sc && dep.map) {
701
+ dep.map.delete(dep.key);
702
+ }
689
703
  }
690
704
  function removeDep(link) {
691
705
  const { prevDep, nextDep } = link;
@@ -764,6 +778,16 @@ var Vue = (function (exports) {
764
778
  * Doubly linked list representing the subscribing effects (tail)
765
779
  */
766
780
  this.subs = void 0;
781
+ /**
782
+ * For object property deps cleanup
783
+ */
784
+ this.target = void 0;
785
+ this.map = void 0;
786
+ this.key = void 0;
787
+ /**
788
+ * Subscriber counter
789
+ */
790
+ this.sc = 0;
767
791
  {
768
792
  this.subsHead = void 0;
769
793
  }
@@ -782,9 +806,7 @@ var Vue = (function (exports) {
782
806
  activeSub.depsTail.nextDep = link;
783
807
  activeSub.depsTail = link;
784
808
  }
785
- if (activeSub.flags & 4) {
786
- addSub(link);
787
- }
809
+ addSub(link);
788
810
  } else if (link.version === -1) {
789
811
  link.version = this.version;
790
812
  if (link.nextDep) {
@@ -848,22 +870,25 @@ var Vue = (function (exports) {
848
870
  }
849
871
  }
850
872
  function addSub(link) {
851
- const computed = link.dep.computed;
852
- if (computed && !link.dep.subs) {
853
- computed.flags |= 4 | 16;
854
- for (let l = computed.deps; l; l = l.nextDep) {
855
- addSub(l);
873
+ link.dep.sc++;
874
+ if (link.sub.flags & 4) {
875
+ const computed = link.dep.computed;
876
+ if (computed && !link.dep.subs) {
877
+ computed.flags |= 4 | 16;
878
+ for (let l = computed.deps; l; l = l.nextDep) {
879
+ addSub(l);
880
+ }
856
881
  }
882
+ const currentTail = link.dep.subs;
883
+ if (currentTail !== link) {
884
+ link.prevSub = currentTail;
885
+ if (currentTail) currentTail.nextSub = link;
886
+ }
887
+ if (link.dep.subsHead === void 0) {
888
+ link.dep.subsHead = link;
889
+ }
890
+ link.dep.subs = link;
857
891
  }
858
- const currentTail = link.dep.subs;
859
- if (currentTail !== link) {
860
- link.prevSub = currentTail;
861
- if (currentTail) currentTail.nextSub = link;
862
- }
863
- if (link.dep.subsHead === void 0) {
864
- link.dep.subsHead = link;
865
- }
866
- link.dep.subs = link;
867
892
  }
868
893
  const targetMap = /* @__PURE__ */ new WeakMap();
869
894
  const ITERATE_KEY = Symbol(
@@ -884,6 +909,9 @@ var Vue = (function (exports) {
884
909
  let dep = depsMap.get(key);
885
910
  if (!dep) {
886
911
  depsMap.set(key, dep = new Dep());
912
+ dep.target = target;
913
+ dep.map = depsMap;
914
+ dep.key = key;
887
915
  }
888
916
  {
889
917
  dep.track({
@@ -964,8 +992,8 @@ var Vue = (function (exports) {
964
992
  endBatch();
965
993
  }
966
994
  function getDepFromReactive(object, key) {
967
- var _a;
968
- return (_a = targetMap.get(object)) == null ? void 0 : _a.get(key);
995
+ const depMap = targetMap.get(object);
996
+ return depMap && depMap.get(key);
969
997
  }
970
998
 
971
999
  function reactiveReadArray(array) {
@@ -1760,13 +1788,15 @@ var Vue = (function (exports) {
1760
1788
  }
1761
1789
  }
1762
1790
  function triggerRef(ref2) {
1763
- {
1764
- ref2.dep.trigger({
1765
- target: ref2,
1766
- type: "set",
1767
- key: "value",
1768
- newValue: ref2._value
1769
- });
1791
+ if (ref2.dep) {
1792
+ {
1793
+ ref2.dep.trigger({
1794
+ target: ref2,
1795
+ type: "set",
1796
+ key: "value",
1797
+ newValue: ref2._value
1798
+ });
1799
+ }
1770
1800
  }
1771
1801
  }
1772
1802
  function unref(ref2) {
@@ -1899,6 +1929,10 @@ var Vue = (function (exports) {
1899
1929
  * @internal
1900
1930
  */
1901
1931
  this.globalVersion = globalVersion - 1;
1932
+ /**
1933
+ * @internal
1934
+ */
1935
+ this.next = void 0;
1902
1936
  // for backwards compat
1903
1937
  this.effect = this;
1904
1938
  this["__v_isReadonly"] = !setter;
@@ -2514,7 +2548,9 @@ var Vue = (function (exports) {
2514
2548
  cb.flags &= ~1;
2515
2549
  }
2516
2550
  cb();
2517
- cb.flags &= ~1;
2551
+ if (!(cb.flags & 4)) {
2552
+ cb.flags &= ~1;
2553
+ }
2518
2554
  }
2519
2555
  }
2520
2556
  }
@@ -2570,7 +2606,9 @@ var Vue = (function (exports) {
2570
2606
  job.i,
2571
2607
  job.i ? 15 : 14
2572
2608
  );
2573
- job.flags &= ~1;
2609
+ if (!(job.flags & 4)) {
2610
+ job.flags &= ~1;
2611
+ }
2574
2612
  }
2575
2613
  }
2576
2614
  } finally {
@@ -3611,6 +3649,7 @@ var Vue = (function (exports) {
3611
3649
  `useId() is called when there is no active component instance to be associated with.`
3612
3650
  );
3613
3651
  }
3652
+ return "";
3614
3653
  }
3615
3654
  function markAsyncBoundary(instance) {
3616
3655
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
@@ -4369,6 +4408,11 @@ Server rendered element contains fewer child nodes than client vdom.`
4369
4408
  const id = requestIdleCallback(hydrate, { timeout });
4370
4409
  return () => cancelIdleCallback(id);
4371
4410
  };
4411
+ function elementIsVisibleInViewport(el) {
4412
+ const { top, left, bottom, right } = el.getBoundingClientRect();
4413
+ const { innerHeight, innerWidth } = window;
4414
+ return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);
4415
+ }
4372
4416
  const hydrateOnVisible = (opts) => (hydrate, forEach) => {
4373
4417
  const ob = new IntersectionObserver((entries) => {
4374
4418
  for (const e of entries) {
@@ -4378,7 +4422,15 @@ Server rendered element contains fewer child nodes than client vdom.`
4378
4422
  break;
4379
4423
  }
4380
4424
  }, opts);
4381
- forEach((el) => ob.observe(el));
4425
+ forEach((el) => {
4426
+ if (!(el instanceof Element)) return;
4427
+ if (elementIsVisibleInViewport(el)) {
4428
+ hydrate();
4429
+ ob.disconnect();
4430
+ return false;
4431
+ }
4432
+ ob.observe(el);
4433
+ });
4382
4434
  return () => ob.disconnect();
4383
4435
  };
4384
4436
  const hydrateOnMediaQuery = (query) => (hydrate) => {
@@ -4423,7 +4475,10 @@ Server rendered element contains fewer child nodes than client vdom.`
4423
4475
  let next = node.nextSibling;
4424
4476
  while (next) {
4425
4477
  if (next.nodeType === 1) {
4426
- cb(next);
4478
+ const result = cb(next);
4479
+ if (result === false) {
4480
+ break;
4481
+ }
4427
4482
  } else if (isComment(next)) {
4428
4483
  if (next.data === "]") {
4429
4484
  if (--depth === 0) break;
@@ -9623,7 +9678,7 @@ Component that was made reactive: `,
9623
9678
  // #3666, avoid reference pollution when reusing vnode
9624
9679
  child.slice()
9625
9680
  );
9626
- } else if (typeof child === "object") {
9681
+ } else if (isVNode(child)) {
9627
9682
  return cloneIfMounted(child);
9628
9683
  } else {
9629
9684
  return createVNode(Text, null, String(child));
@@ -10354,7 +10409,7 @@ Component that was made reactive: `,
10354
10409
  return true;
10355
10410
  }
10356
10411
 
10357
- const version = "3.5.6";
10412
+ const version = "3.5.10";
10358
10413
  const warn = warn$1 ;
10359
10414
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10360
10415
  const devtools = devtools$1 ;
@@ -10641,7 +10696,7 @@ Component that was made reactive: `,
10641
10696
  resolve();
10642
10697
  }
10643
10698
  };
10644
- if (explicitTimeout) {
10699
+ if (explicitTimeout != null) {
10645
10700
  return setTimeout(resolveIfNotStale, explicitTimeout);
10646
10701
  }
10647
10702
  const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
@@ -11122,6 +11177,11 @@ Expected function or array of functions, received type ${typeof value}.`
11122
11177
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
11123
11178
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
11124
11179
  }
11180
+ } else if (
11181
+ // #11081 force set props for possible async custom element
11182
+ el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
11183
+ ) {
11184
+ patchDOMProp(el, camelize(key), nextValue);
11125
11185
  } else {
11126
11186
  if (key === "true-value") {
11127
11187
  el._trueValue = nextValue;
@@ -11162,13 +11222,7 @@ Expected function or array of functions, received type ${typeof value}.`
11162
11222
  if (isNativeOn(key) && isString(value)) {
11163
11223
  return false;
11164
11224
  }
11165
- if (key in el) {
11166
- return true;
11167
- }
11168
- if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
11169
- return true;
11170
- }
11171
- return false;
11225
+ return key in el;
11172
11226
  }
11173
11227
 
11174
11228
  const REMOVAL = {};
@@ -11833,7 +11887,7 @@ Expected function or array of functions, received type ${typeof value}.`
11833
11887
  setChecked(el, binding, vnode);
11834
11888
  }
11835
11889
  };
11836
- function setChecked(el, { value, oldValue }, vnode) {
11890
+ function setChecked(el, { value }, vnode) {
11837
11891
  el._modelValue = value;
11838
11892
  let checked;
11839
11893
  if (isArray(value)) {
@@ -11883,19 +11937,19 @@ Expected function or array of functions, received type ${typeof value}.`
11883
11937
  },
11884
11938
  // set value in mounted & updated because <select> relies on its children
11885
11939
  // <option>s.
11886
- mounted(el, { value, modifiers: { number } }) {
11940
+ mounted(el, { value }) {
11887
11941
  setSelected(el, value);
11888
11942
  },
11889
11943
  beforeUpdate(el, _binding, vnode) {
11890
11944
  el[assignKey] = getModelAssigner(vnode);
11891
11945
  },
11892
- updated(el, { value, modifiers: { number } }) {
11946
+ updated(el, { value }) {
11893
11947
  if (!el._assigning) {
11894
11948
  setSelected(el, value);
11895
11949
  }
11896
11950
  }
11897
11951
  };
11898
- function setSelected(el, value, number) {
11952
+ function setSelected(el, value) {
11899
11953
  const isMultiple = el.multiple;
11900
11954
  const isArrayValue = isArray(value);
11901
11955
  if (isMultiple && !isArrayValue && !isSet(value)) {