@qikdev/vue-ui 0.2.309 → 0.2.310

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/dist/lib.es.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  vModelDynamic as Xn,
48
48
  } from "vue";
49
49
  import { EventDispatcher as jl } from "@qikdev/sdk";
50
- const fu = "0.2.309";
50
+ const fu = "0.2.310";
51
51
  class qt extends Error {}
52
52
  class mu extends qt {
53
53
  constructor(t) {
@@ -31178,13 +31178,15 @@ function WO() {
31178
31178
  return `id${e.substr(0, 8)}${e.substr(8, 4)}${e.substr(12, 3)}${e.substr(15, 12)}`;
31179
31179
  }
31180
31180
  function GO(e) {
31181
- const t = e instanceof Date ? e : new Date(e);
31182
- if (isNaN(t.getTime())) throw new Error("Invalid date input");
31183
- const n = new Date();
31184
- let r = n.getFullYear() - t.getFullYear();
31185
- const s = t.getMonth(),
31186
- i = n.getMonth();
31187
- return (i < s || (i === s && n.getDate() < t.getDate())) && r--, r;
31181
+ var t = new Date(e),
31182
+ n = t instanceof Date && !isNaN(t);
31183
+ if (!n || isNaN(t.getTime()))
31184
+ throw new Error(`Invalid date input (${typeof t}, ${t})`);
31185
+ const r = new Date();
31186
+ let s = r.getFullYear() - t.getFullYear();
31187
+ const i = t.getMonth(),
31188
+ l = r.getMonth();
31189
+ return (l < i || (l === i && r.getDate() < t.getDate())) && s--, s;
31188
31190
  }
31189
31191
  Et.evaluateExpression = function (e, t) {
31190
31192
  if (typeof e == "function") return e(t);
@@ -31198,7 +31200,7 @@ Et.evaluateExpression = function (e, t) {
31198
31200
  parseFloat,
31199
31201
  now: new Date(),
31200
31202
  guid: WO,
31201
- years: GO,
31203
+ age: GO,
31202
31204
  array: {
31203
31205
  filter: zO,
31204
31206
  extract: qO,