@fewangsit/wangsvue-fats 1.0.0-alpha.48 → 1.0.0-alpha.49

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.
package/wangsvue-fats.js CHANGED
@@ -5428,11 +5428,11 @@ const y1 = () => {
5428
5428
  }
5429
5429
  return i;
5430
5430
  }, w1 = async (t) => {
5431
- if (ct("i18n") || console.error("I18n Plugin not installed!"), ai.value !== t) {
5432
- const n = await S5(t);
5433
- ai.value = t, Tr[t] = n, localStorage.lang = t;
5431
+ if (ai.value !== t) {
5432
+ const e = await S5(t);
5433
+ ai.value = t, Tr[t] = e, localStorage.lang = t;
5434
5434
  }
5435
- }, C5 = () => ({
5435
+ }, C5 = () => (ct("i18n") || console.error("I18n Plugin not installed!"), {
5436
5436
  t: b1,
5437
5437
  locale: ai,
5438
5438
  setLocale: w1,
@@ -5449,7 +5449,50 @@ const y1 = () => {
5449
5449
  e.config.globalProperties.$i18n = t, e.config.globalProperties.$t = t.t, e.provide("i18n", t);
5450
5450
  }
5451
5451
  };
5452
- }, O5 = (t) => (yi = t, k5()), uJ = O5(sS);
5452
+ }, O5 = (t) => (yi = t, k5()), uJ = O5(sS), ln = (t, e) => e.split(".").reduce((n, i) => n ? n[i] : void 0, t), jo = (t, e, n) => {
5453
+ const i = e.split("."), r = i.pop(), o = i.reduce((s, a) => s[a] = s[a] || {}, t);
5454
+ r && (o[r] = n);
5455
+ }, tf = (t, e) => {
5456
+ if (t === e) return !0;
5457
+ if (t && e && typeof t == "object" && typeof e == "object") {
5458
+ const n = Array.isArray(t), i = Array.isArray(e);
5459
+ if (n && i) {
5460
+ if (t.length !== e.length) return !1;
5461
+ for (let o = 0; o < t.length; o++)
5462
+ if (!tf(t[o], e[o])) return !1;
5463
+ return !0;
5464
+ }
5465
+ if (n !== i) return !1;
5466
+ if (t instanceof Date && e instanceof Date)
5467
+ return t.getTime() === e.getTime();
5468
+ if (t instanceof RegExp && e instanceof RegExp)
5469
+ return t.toString() === e.toString();
5470
+ const r = Object.keys(t);
5471
+ if (r.length !== Object.keys(e).length) return !1;
5472
+ for (const o of r)
5473
+ if (!Object.prototype.hasOwnProperty.call(e, o) || !tf(t[o], e[o])) return !1;
5474
+ return !0;
5475
+ }
5476
+ return t !== t && e !== e;
5477
+ }, S1 = (t, e, n) => tf(t, e), T5 = (t, e) => {
5478
+ if (t != null && (e != null && e.length)) {
5479
+ for (const n of e)
5480
+ if (S1(t, n)) return !0;
5481
+ }
5482
+ return !1;
5483
+ }, C1 = (t, e) => {
5484
+ if (typeof t != "object" || t === null)
5485
+ return e;
5486
+ if (typeof e != "object" || e === null)
5487
+ return t;
5488
+ const n = { ...t };
5489
+ for (const i in e)
5490
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
5491
+ const r = t[i], o = e[i];
5492
+ typeof r == "object" && r !== null && typeof o == "object" && o !== null ? n[i] = C1(r, o) : n[i] = o;
5493
+ }
5494
+ return n;
5495
+ };
5453
5496
  var In = {
5454
5497
  STARTS_WITH: "startsWith",
5455
5498
  CONTAINS: "contains",
@@ -5469,7 +5512,7 @@ var In = {
5469
5512
  function Mm(t, e) {
5470
5513
  var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
5471
5514
  if (!n) {
5472
- if (Array.isArray(t) || (n = T5(t)) || e) {
5515
+ if (Array.isArray(t) || (n = I5(t)) || e) {
5473
5516
  n && (t = n);
5474
5517
  var i = 0, r = function() {
5475
5518
  };
@@ -5498,7 +5541,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
5498
5541
  }
5499
5542
  } };
5500
5543
  }
5501
- function T5(t, e) {
5544
+ function I5(t, e) {
5502
5545
  if (t) {
5503
5546
  if (typeof t == "string") return Lm(t, e);
5504
5547
  var n = Object.prototype.toString.call(t).slice(8, -1);
@@ -5511,7 +5554,7 @@ function Lm(t, e) {
5511
5554
  for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n];
5512
5555
  return i;
5513
5556
  }
5514
- var S1 = {
5557
+ var k1 = {
5515
5558
  filter: function(e, n, i, r, o) {
5516
5559
  var s = [];
5517
5560
  if (!e)
@@ -5650,21 +5693,21 @@ function qc(t) {
5650
5693
  for (var e = 1; e < arguments.length; e++) {
5651
5694
  var n = arguments[e] != null ? arguments[e] : {};
5652
5695
  e % 2 ? Pm(Object(n), !0).forEach(function(i) {
5653
- I5(t, i, n[i]);
5696
+ A5(t, i, n[i]);
5654
5697
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Pm(Object(n)).forEach(function(i) {
5655
5698
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
5656
5699
  });
5657
5700
  }
5658
5701
  return t;
5659
5702
  }
5660
- function I5(t, e, n) {
5661
- return e = A5(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
5703
+ function A5(t, e, n) {
5704
+ return e = x5(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
5662
5705
  }
5663
- function A5(t) {
5664
- var e = x5(t, "string");
5706
+ function x5(t) {
5707
+ var e = E5(t, "string");
5665
5708
  return ya(e) == "symbol" ? e : String(e);
5666
5709
  }
5667
- function x5(t, e) {
5710
+ function E5(t, e) {
5668
5711
  if (ya(t) != "object" || !t) return t;
5669
5712
  var n = t[Symbol.toPrimitive];
5670
5713
  if (n !== void 0) {
@@ -5817,8 +5860,8 @@ var Dm = {
5817
5860
  csp: {
5818
5861
  nonce: void 0
5819
5862
  }
5820
- }, E5 = Symbol();
5821
- function M5(t, e, n, i) {
5863
+ }, M5 = Symbol();
5864
+ function L5(t, e, n, i) {
5822
5865
  if (t !== e) {
5823
5866
  var r = document.getElementById(n), o = r.cloneNode(!0), s = r.getAttribute("href").replace(t, e);
5824
5867
  o.setAttribute("id", n + "-clone"), o.setAttribute("href", s), o.addEventListener("load", function() {
@@ -5826,59 +5869,16 @@ function M5(t, e, n, i) {
5826
5869
  }), r.parentNode && r.parentNode.insertBefore(o, r.nextSibling);
5827
5870
  }
5828
5871
  }
5829
- var L5 = {
5872
+ var P5 = {
5830
5873
  install: function(e, n) {
5831
5874
  var i = n ? qc(qc({}, Dm), n) : qc({}, Dm), r = {
5832
5875
  config: Ut(i),
5833
- changeTheme: M5
5876
+ changeTheme: L5
5834
5877
  };
5835
- e.config.globalProperties.$primevue = r, e.provide(E5, r);
5878
+ e.config.globalProperties.$primevue = r, e.provide(M5, r);
5836
5879
  }
5837
5880
  };
5838
- const ln = (t, e) => e.split(".").reduce((n, i) => n ? n[i] : void 0, t), jo = (t, e, n) => {
5839
- const i = e.split("."), r = i.pop(), o = i.reduce((s, a) => s[a] = s[a] || {}, t);
5840
- r && (o[r] = n);
5841
- }, tf = (t, e) => {
5842
- if (t === e) return !0;
5843
- if (t && e && typeof t == "object" && typeof e == "object") {
5844
- const n = Array.isArray(t), i = Array.isArray(e);
5845
- if (n && i) {
5846
- if (t.length !== e.length) return !1;
5847
- for (let o = 0; o < t.length; o++)
5848
- if (!tf(t[o], e[o])) return !1;
5849
- return !0;
5850
- }
5851
- if (n !== i) return !1;
5852
- if (t instanceof Date && e instanceof Date)
5853
- return t.getTime() === e.getTime();
5854
- if (t instanceof RegExp && e instanceof RegExp)
5855
- return t.toString() === e.toString();
5856
- const r = Object.keys(t);
5857
- if (r.length !== Object.keys(e).length) return !1;
5858
- for (const o of r)
5859
- if (!Object.prototype.hasOwnProperty.call(e, o) || !tf(t[o], e[o])) return !1;
5860
- return !0;
5861
- }
5862
- return t !== t && e !== e;
5863
- }, C1 = (t, e, n) => tf(t, e), P5 = (t, e) => {
5864
- if (t != null && (e != null && e.length)) {
5865
- for (const n of e)
5866
- if (C1(t, n)) return !0;
5867
- }
5868
- return !1;
5869
- }, k1 = (t, e) => {
5870
- if (typeof t != "object" || t === null)
5871
- return e;
5872
- if (typeof e != "object" || e === null)
5873
- return t;
5874
- const n = { ...t };
5875
- for (const i in e)
5876
- if (Object.prototype.hasOwnProperty.call(e, i)) {
5877
- const r = t[i], o = e[i];
5878
- typeof r == "object" && r !== null && typeof o == "object" && o !== null ? n[i] = k1(r, o) : n[i] = o;
5879
- }
5880
- return n;
5881
- }, D5 = {
5881
+ const D5 = {
5882
5882
  startsWith: "Starts with",
5883
5883
  contains: "Contains",
5884
5884
  notContains: "Not contains",
@@ -6163,7 +6163,7 @@ const ln = (t, e) => e.split(".").reduce((n, i) => n ? n[i] : void 0, t), jo = (
6163
6163
  if (!e)
6164
6164
  throw new Error("WangsVue is not installed!");
6165
6165
  return t ? e.getComponentConfig(t) : e.config;
6166
- }, B5 = (t, e) => k1(t, e), R5 = (t = Bm, e = !0) => {
6166
+ }, B5 = (t, e) => C1(t, e), R5 = (t = Bm, e = !0) => {
6167
6167
  const n = e ? B5(Bm, t) : t;
6168
6168
  return {
6169
6169
  install: (i, r) => {
@@ -6195,7 +6195,7 @@ const ln = (t, e) => e.split(".").reduce((n, i) => n ? n[i] : void 0, t), jo = (
6195
6195
  }
6196
6196
  })
6197
6197
  };
6198
- i.config.globalProperties.$wangsvue = s, i.config.globalProperties.$preset = s.config.preset, i.provide(O1, s), i.provide("preset", o.preset), i.provide("useToastConfig", o.useToastConfig), i.use(L5, {
6198
+ i.config.globalProperties.$wangsvue = s, i.config.globalProperties.$preset = s.config.preset, i.provide(O1, s), i.provide("preset", o.preset), i.provide("useToastConfig", o.useToastConfig), i.use(P5, {
6199
6199
  unstyled: !0,
6200
6200
  pt: o.preset,
6201
6201
  locale: o.locale.global
@@ -8470,12 +8470,12 @@ const ks = /* @__PURE__ */ xe({
8470
8470
  vt(() => {
8471
8471
  i.useValidator && (Object.assign(s, rn(i.fieldName ?? "checkbox")), i.value != null && (s.value = i.value)), i.modelValue != null && (s.value = i.modelValue);
8472
8472
  });
8473
- const a = te(() => i.triState ? s.value : i.binary ? s.value === i.trueValue : P5(i.value, i.modelValue)), l = te(() => i.triState && o.value === !1), u = (c) => {
8473
+ const a = te(() => i.triState ? s.value : i.binary ? s.value === i.trueValue : T5(i.value, i.modelValue)), l = te(() => i.triState && o.value === !1), u = (c) => {
8474
8474
  if (!i.disabled && !i.readonly) {
8475
8475
  let d;
8476
8476
  i.binary && !i.triState ? d = a.value ? i.falseValue : i.trueValue : i.triState ? d = // eslint-disable-next-line no-nested-ternary
8477
8477
  s.value == null ? !1 : s.value === !1 ? !0 : null : Array.isArray(i.modelValue) && (a.value ? d = i.modelValue.filter(
8478
- (f) => !C1(f, i.value)
8478
+ (f) => !S1(f, i.value)
8479
8479
  ) : d = i.modelValue ? [...i.modelValue, i.value] : [i.value]), o.value = d, s.value = d, r("change", c);
8480
8480
  }
8481
8481
  };
@@ -11534,7 +11534,7 @@ var fr = {
11534
11534
  visibleOptions: function() {
11535
11535
  var e = this, n = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
11536
11536
  if (this.filterValue) {
11537
- var i = S1.filter(n, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
11537
+ var i = k1.filter(n, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
11538
11538
  if (this.optionGroupLabel) {
11539
11539
  var r = this.options || [], o = [];
11540
11540
  return r.forEach(function(s) {
@@ -28754,7 +28754,7 @@ var c0 = {
28754
28754
  visibleOptions: function() {
28755
28755
  var e = this, n = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
28756
28756
  if (this.filterValue) {
28757
- var i = S1.filter(n, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
28757
+ var i = k1.filter(n, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
28758
28758
  if (this.optionGroupLabel) {
28759
28759
  var r = this.options || [], o = [];
28760
28760
  return r.forEach(function(s) {