@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
  **/
@@ -7,7 +7,7 @@ import * as runtimeDom from '@vue/runtime-dom';
7
7
  import { initCustomFormatter, registerRuntimeCompiler, warn } from '@vue/runtime-dom';
8
8
  export * from '@vue/runtime-dom';
9
9
  import { compile } from '@vue/compiler-dom';
10
- import { isString, NOOP, extend, generateCodeFrame, EMPTY_OBJ } from '@vue/shared';
10
+ import { isString, NOOP, genCacheKey, extend, generateCodeFrame } from '@vue/shared';
11
11
 
12
12
  function initDev() {
13
13
  {
@@ -18,15 +18,7 @@ function initDev() {
18
18
  if (!!(process.env.NODE_ENV !== "production")) {
19
19
  initDev();
20
20
  }
21
- const compileCache = /* @__PURE__ */ new WeakMap();
22
- function getCache(options) {
23
- let c = compileCache.get(options != null ? options : EMPTY_OBJ);
24
- if (!c) {
25
- c = /* @__PURE__ */ Object.create(null);
26
- compileCache.set(options != null ? options : EMPTY_OBJ, c);
27
- }
28
- return c;
29
- }
21
+ const compileCache = /* @__PURE__ */ Object.create(null);
30
22
  function compileToFunction(template, options) {
31
23
  if (!isString(template)) {
32
24
  if (template.nodeType) {
@@ -36,9 +28,8 @@ function compileToFunction(template, options) {
36
28
  return NOOP;
37
29
  }
38
30
  }
39
- const key = template;
40
- const cache = getCache(options);
41
- const cached = cache[key];
31
+ const key = genCacheKey(template, options);
32
+ const cached = compileCache[key];
42
33
  if (cached) {
43
34
  return cached;
44
35
  }
@@ -73,7 +64,7 @@ ${codeFrame}` : message);
73
64
  }
74
65
  const render = new Function("Vue", code)(runtimeDom);
75
66
  render._rc = true;
76
- return cache[key] = render;
67
+ return compileCache[key] = render;
77
68
  }
78
69
  registerRuntimeCompiler(compileToFunction);
79
70
 
@@ -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
  **/
@@ -109,6 +109,12 @@ var Vue = (function (exports) {
109
109
  const getGlobalThis = () => {
110
110
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
111
111
  };
112
+ function genCacheKey(source, options) {
113
+ return source + JSON.stringify(
114
+ options,
115
+ (_, val) => typeof val === "function" ? val.toString() : val
116
+ );
117
+ }
112
118
 
113
119
  const PatchFlagNames = {
114
120
  [1]: `TEXT`,
@@ -642,9 +648,17 @@ var Vue = (function (exports) {
642
648
  let error;
643
649
  while (batchedSub) {
644
650
  let e = batchedSub;
651
+ let next;
652
+ while (e) {
653
+ if (!(e.flags & 1)) {
654
+ e.flags &= ~8;
655
+ }
656
+ e = e.next;
657
+ }
658
+ e = batchedSub;
645
659
  batchedSub = void 0;
646
660
  while (e) {
647
- const next = e.next;
661
+ next = e.next;
648
662
  e.next = void 0;
649
663
  e.flags &= ~8;
650
664
  if (e.flags & 1) {
@@ -734,7 +748,7 @@ var Vue = (function (exports) {
734
748
  computed.flags &= ~2;
735
749
  }
736
750
  }
737
- function removeSub(link) {
751
+ function removeSub(link, soft = false) {
738
752
  const { dep, prevSub, nextSub } = link;
739
753
  if (prevSub) {
740
754
  prevSub.nextSub = nextSub;
@@ -747,12 +761,18 @@ var Vue = (function (exports) {
747
761
  if (dep.subs === link) {
748
762
  dep.subs = prevSub;
749
763
  }
764
+ if (dep.subsHead === link) {
765
+ dep.subsHead = nextSub;
766
+ }
750
767
  if (!dep.subs && dep.computed) {
751
768
  dep.computed.flags &= ~4;
752
769
  for (let l = dep.computed.deps; l; l = l.nextDep) {
753
- removeSub(l);
770
+ removeSub(l, true);
754
771
  }
755
772
  }
773
+ if (!soft && !--dep.sc && dep.map) {
774
+ dep.map.delete(dep.key);
775
+ }
756
776
  }
757
777
  function removeDep(link) {
758
778
  const { prevDep, nextDep } = link;
@@ -831,6 +851,16 @@ var Vue = (function (exports) {
831
851
  * Doubly linked list representing the subscribing effects (tail)
832
852
  */
833
853
  this.subs = void 0;
854
+ /**
855
+ * For object property deps cleanup
856
+ */
857
+ this.target = void 0;
858
+ this.map = void 0;
859
+ this.key = void 0;
860
+ /**
861
+ * Subscriber counter
862
+ */
863
+ this.sc = 0;
834
864
  {
835
865
  this.subsHead = void 0;
836
866
  }
@@ -849,9 +879,7 @@ var Vue = (function (exports) {
849
879
  activeSub.depsTail.nextDep = link;
850
880
  activeSub.depsTail = link;
851
881
  }
852
- if (activeSub.flags & 4) {
853
- addSub(link);
854
- }
882
+ addSub(link);
855
883
  } else if (link.version === -1) {
856
884
  link.version = this.version;
857
885
  if (link.nextDep) {
@@ -915,22 +943,25 @@ var Vue = (function (exports) {
915
943
  }
916
944
  }
917
945
  function addSub(link) {
918
- const computed = link.dep.computed;
919
- if (computed && !link.dep.subs) {
920
- computed.flags |= 4 | 16;
921
- for (let l = computed.deps; l; l = l.nextDep) {
922
- addSub(l);
946
+ link.dep.sc++;
947
+ if (link.sub.flags & 4) {
948
+ const computed = link.dep.computed;
949
+ if (computed && !link.dep.subs) {
950
+ computed.flags |= 4 | 16;
951
+ for (let l = computed.deps; l; l = l.nextDep) {
952
+ addSub(l);
953
+ }
923
954
  }
955
+ const currentTail = link.dep.subs;
956
+ if (currentTail !== link) {
957
+ link.prevSub = currentTail;
958
+ if (currentTail) currentTail.nextSub = link;
959
+ }
960
+ if (link.dep.subsHead === void 0) {
961
+ link.dep.subsHead = link;
962
+ }
963
+ link.dep.subs = link;
924
964
  }
925
- const currentTail = link.dep.subs;
926
- if (currentTail !== link) {
927
- link.prevSub = currentTail;
928
- if (currentTail) currentTail.nextSub = link;
929
- }
930
- if (link.dep.subsHead === void 0) {
931
- link.dep.subsHead = link;
932
- }
933
- link.dep.subs = link;
934
965
  }
935
966
  const targetMap = /* @__PURE__ */ new WeakMap();
936
967
  const ITERATE_KEY = Symbol(
@@ -951,6 +982,9 @@ var Vue = (function (exports) {
951
982
  let dep = depsMap.get(key);
952
983
  if (!dep) {
953
984
  depsMap.set(key, dep = new Dep());
985
+ dep.target = target;
986
+ dep.map = depsMap;
987
+ dep.key = key;
954
988
  }
955
989
  {
956
990
  dep.track({
@@ -1031,8 +1065,8 @@ var Vue = (function (exports) {
1031
1065
  endBatch();
1032
1066
  }
1033
1067
  function getDepFromReactive(object, key) {
1034
- var _a;
1035
- return (_a = targetMap.get(object)) == null ? void 0 : _a.get(key);
1068
+ const depMap = targetMap.get(object);
1069
+ return depMap && depMap.get(key);
1036
1070
  }
1037
1071
 
1038
1072
  function reactiveReadArray(array) {
@@ -1827,13 +1861,15 @@ var Vue = (function (exports) {
1827
1861
  }
1828
1862
  }
1829
1863
  function triggerRef(ref2) {
1830
- {
1831
- ref2.dep.trigger({
1832
- target: ref2,
1833
- type: "set",
1834
- key: "value",
1835
- newValue: ref2._value
1836
- });
1864
+ if (ref2.dep) {
1865
+ {
1866
+ ref2.dep.trigger({
1867
+ target: ref2,
1868
+ type: "set",
1869
+ key: "value",
1870
+ newValue: ref2._value
1871
+ });
1872
+ }
1837
1873
  }
1838
1874
  }
1839
1875
  function unref(ref2) {
@@ -1966,6 +2002,10 @@ var Vue = (function (exports) {
1966
2002
  * @internal
1967
2003
  */
1968
2004
  this.globalVersion = globalVersion - 1;
2005
+ /**
2006
+ * @internal
2007
+ */
2008
+ this.next = void 0;
1969
2009
  // for backwards compat
1970
2010
  this.effect = this;
1971
2011
  this["__v_isReadonly"] = !setter;
@@ -2581,7 +2621,9 @@ var Vue = (function (exports) {
2581
2621
  cb.flags &= ~1;
2582
2622
  }
2583
2623
  cb();
2584
- cb.flags &= ~1;
2624
+ if (!(cb.flags & 4)) {
2625
+ cb.flags &= ~1;
2626
+ }
2585
2627
  }
2586
2628
  }
2587
2629
  }
@@ -2637,7 +2679,9 @@ var Vue = (function (exports) {
2637
2679
  job.i,
2638
2680
  job.i ? 15 : 14
2639
2681
  );
2640
- job.flags &= ~1;
2682
+ if (!(job.flags & 4)) {
2683
+ job.flags &= ~1;
2684
+ }
2641
2685
  }
2642
2686
  }
2643
2687
  } finally {
@@ -3678,6 +3722,7 @@ var Vue = (function (exports) {
3678
3722
  `useId() is called when there is no active component instance to be associated with.`
3679
3723
  );
3680
3724
  }
3725
+ return "";
3681
3726
  }
3682
3727
  function markAsyncBoundary(instance) {
3683
3728
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
@@ -4436,6 +4481,11 @@ Server rendered element contains fewer child nodes than client vdom.`
4436
4481
  const id = requestIdleCallback(hydrate, { timeout });
4437
4482
  return () => cancelIdleCallback(id);
4438
4483
  };
4484
+ function elementIsVisibleInViewport(el) {
4485
+ const { top, left, bottom, right } = el.getBoundingClientRect();
4486
+ const { innerHeight, innerWidth } = window;
4487
+ return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);
4488
+ }
4439
4489
  const hydrateOnVisible = (opts) => (hydrate, forEach) => {
4440
4490
  const ob = new IntersectionObserver((entries) => {
4441
4491
  for (const e of entries) {
@@ -4445,7 +4495,15 @@ Server rendered element contains fewer child nodes than client vdom.`
4445
4495
  break;
4446
4496
  }
4447
4497
  }, opts);
4448
- forEach((el) => ob.observe(el));
4498
+ forEach((el) => {
4499
+ if (!(el instanceof Element)) return;
4500
+ if (elementIsVisibleInViewport(el)) {
4501
+ hydrate();
4502
+ ob.disconnect();
4503
+ return false;
4504
+ }
4505
+ ob.observe(el);
4506
+ });
4449
4507
  return () => ob.disconnect();
4450
4508
  };
4451
4509
  const hydrateOnMediaQuery = (query) => (hydrate) => {
@@ -4490,7 +4548,10 @@ Server rendered element contains fewer child nodes than client vdom.`
4490
4548
  let next = node.nextSibling;
4491
4549
  while (next) {
4492
4550
  if (next.nodeType === 1) {
4493
- cb(next);
4551
+ const result = cb(next);
4552
+ if (result === false) {
4553
+ break;
4554
+ }
4494
4555
  } else if (isComment(next)) {
4495
4556
  if (next.data === "]") {
4496
4557
  if (--depth === 0) break;
@@ -9690,7 +9751,7 @@ Component that was made reactive: `,
9690
9751
  // #3666, avoid reference pollution when reusing vnode
9691
9752
  child.slice()
9692
9753
  );
9693
- } else if (typeof child === "object") {
9754
+ } else if (isVNode(child)) {
9694
9755
  return cloneIfMounted(child);
9695
9756
  } else {
9696
9757
  return createVNode(Text, null, String(child));
@@ -10421,7 +10482,7 @@ Component that was made reactive: `,
10421
10482
  return true;
10422
10483
  }
10423
10484
 
10424
- const version = "3.5.6";
10485
+ const version = "3.5.10";
10425
10486
  const warn = warn$1 ;
10426
10487
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10427
10488
  const devtools = devtools$1 ;
@@ -10708,7 +10769,7 @@ Component that was made reactive: `,
10708
10769
  resolve();
10709
10770
  }
10710
10771
  };
10711
- if (explicitTimeout) {
10772
+ if (explicitTimeout != null) {
10712
10773
  return setTimeout(resolveIfNotStale, explicitTimeout);
10713
10774
  }
10714
10775
  const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
@@ -11189,6 +11250,11 @@ Expected function or array of functions, received type ${typeof value}.`
11189
11250
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
11190
11251
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
11191
11252
  }
11253
+ } else if (
11254
+ // #11081 force set props for possible async custom element
11255
+ el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
11256
+ ) {
11257
+ patchDOMProp(el, camelize(key), nextValue);
11192
11258
  } else {
11193
11259
  if (key === "true-value") {
11194
11260
  el._trueValue = nextValue;
@@ -11229,13 +11295,7 @@ Expected function or array of functions, received type ${typeof value}.`
11229
11295
  if (isNativeOn(key) && isString(value)) {
11230
11296
  return false;
11231
11297
  }
11232
- if (key in el) {
11233
- return true;
11234
- }
11235
- if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
11236
- return true;
11237
- }
11238
- return false;
11298
+ return key in el;
11239
11299
  }
11240
11300
 
11241
11301
  const REMOVAL = {};
@@ -11900,7 +11960,7 @@ Expected function or array of functions, received type ${typeof value}.`
11900
11960
  setChecked(el, binding, vnode);
11901
11961
  }
11902
11962
  };
11903
- function setChecked(el, { value, oldValue }, vnode) {
11963
+ function setChecked(el, { value }, vnode) {
11904
11964
  el._modelValue = value;
11905
11965
  let checked;
11906
11966
  if (isArray(value)) {
@@ -11950,19 +12010,19 @@ Expected function or array of functions, received type ${typeof value}.`
11950
12010
  },
11951
12011
  // set value in mounted & updated because <select> relies on its children
11952
12012
  // <option>s.
11953
- mounted(el, { value, modifiers: { number } }) {
12013
+ mounted(el, { value }) {
11954
12014
  setSelected(el, value);
11955
12015
  },
11956
12016
  beforeUpdate(el, _binding, vnode) {
11957
12017
  el[assignKey] = getModelAssigner(vnode);
11958
12018
  },
11959
- updated(el, { value, modifiers: { number } }) {
12019
+ updated(el, { value }) {
11960
12020
  if (!el._assigning) {
11961
12021
  setSelected(el, value);
11962
12022
  }
11963
12023
  }
11964
12024
  };
11965
- function setSelected(el, value, number) {
12025
+ function setSelected(el, value) {
11966
12026
  const isMultiple = el.multiple;
11967
12027
  const isArrayValue = isArray(value);
11968
12028
  if (isMultiple && !isArrayValue && !isSet(value)) {
@@ -17003,7 +17063,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17003
17063
  );
17004
17064
  return createTransformProps();
17005
17065
  }
17006
- const rawExp = exp.loc.source;
17066
+ const rawExp = exp.loc.source.trim();
17007
17067
  const expString = exp.type === 4 ? exp.content : rawExp;
17008
17068
  const bindingType = context.bindingMetadata[rawExp];
17009
17069
  if (bindingType === "props" || bindingType === "props-aliased") {
@@ -17790,15 +17850,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17790
17850
  {
17791
17851
  initDev();
17792
17852
  }
17793
- const compileCache = /* @__PURE__ */ new WeakMap();
17794
- function getCache(options) {
17795
- let c = compileCache.get(options != null ? options : EMPTY_OBJ);
17796
- if (!c) {
17797
- c = /* @__PURE__ */ Object.create(null);
17798
- compileCache.set(options != null ? options : EMPTY_OBJ, c);
17799
- }
17800
- return c;
17801
- }
17853
+ const compileCache = /* @__PURE__ */ Object.create(null);
17802
17854
  function compileToFunction(template, options) {
17803
17855
  if (!isString(template)) {
17804
17856
  if (template.nodeType) {
@@ -17808,9 +17860,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17808
17860
  return NOOP;
17809
17861
  }
17810
17862
  }
17811
- const key = template;
17812
- const cache = getCache(options);
17813
- const cached = cache[key];
17863
+ const key = genCacheKey(template, options);
17864
+ const cached = compileCache[key];
17814
17865
  if (cached) {
17815
17866
  return cached;
17816
17867
  }
@@ -17845,7 +17896,7 @@ ${codeFrame}` : message);
17845
17896
  }
17846
17897
  const render = new Function(code)() ;
17847
17898
  render._rc = true;
17848
- return cache[key] = render;
17899
+ return compileCache[key] = render;
17849
17900
  }
17850
17901
  registerRuntimeCompiler(compileToFunction);
17851
17902