@qikdev/vue-ui 0.2.247 → 0.2.248

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
@@ -44,7 +44,7 @@ import {
44
44
  vModelDynamic as Yn,
45
45
  } from "vue";
46
46
  import { EventDispatcher as Ll } from "@qikdev/sdk";
47
- const iu = "0.2.247";
47
+ const iu = "0.2.248";
48
48
  class Rt extends Error {}
49
49
  class ru extends Rt {
50
50
  constructor(t) {
@@ -31823,7 +31823,7 @@ const uC = {
31823
31823
  },
31824
31824
  methods: {
31825
31825
  fieldDefaultValue() {
31826
- var s;
31826
+ var s, i;
31827
31827
  var e =
31828
31828
  this.expressions && this.expressions.value
31829
31829
  ? this.getExpressionValue
@@ -31835,18 +31835,21 @@ const uC = {
31835
31835
  : void 0,
31836
31836
  n = aC(this.actualField),
31837
31837
  r = this.cleanInput(t || n);
31838
- if (
31839
- (s = this.field) != null &&
31840
- s.assumeDefault &&
31841
- (!r &&
31842
- this.widget === "timezone" &&
31843
- ((r = this.$sdk.geo.getDefaultTimezone()),
31844
- console.log("Got the default timezone", r)),
31845
- !r && this.widget === "country")
31846
- ) {
31847
- const i = this.$sdk.geo.getDefaultCountry();
31848
- (r = i == null ? void 0 : i.name),
31849
- console.log("Got the default country", i, r);
31838
+ if ((s = this.field) != null && s.assumeDefault) {
31839
+ if (
31840
+ (!r &&
31841
+ this.widget === "timezone" &&
31842
+ ((r = this.$sdk.geo.getDefaultTimezone()),
31843
+ console.log("Got the default timezone", r)),
31844
+ !r && this.widget === "country")
31845
+ ) {
31846
+ const l = this.$sdk.geo.getDefaultCountry();
31847
+ (r = l == null ? void 0 : l.name),
31848
+ console.log("Got the default country", l, r);
31849
+ }
31850
+ !r &&
31851
+ ((i = this.field) == null ? void 0 : i.type) === "date" &&
31852
+ (r = new Date());
31850
31853
  }
31851
31854
  return r;
31852
31855
  },
@@ -32253,6 +32256,7 @@ const uC = {
32253
32256
  case "color":
32254
32257
  case "model":
32255
32258
  break;
32259
+ case "date":
32256
32260
  case "datefield":
32257
32261
  case "datepicker":
32258
32262
  return "datefield";
@@ -33074,7 +33078,7 @@ function cC(e, t, n, r, s, i) {
33074
33078
  }
33075
33079
  const ns = /* @__PURE__ */ T(uC, [
33076
33080
  ["render", cC],
33077
- ["__scopeId", "data-v-8dfbf9ff"],
33081
+ ["__scopeId", "data-v-0433bfce"],
33078
33082
  ]);
33079
33083
  function fC(e, t, n, r) {
33080
33084
  var s = -1,