@dcodegroup-au/dsg-vue 0.0.22 → 0.0.23

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,4 +1,4 @@
1
- import { defineComponent as $1, computed as X, h as k9, createBlock as b1, openBlock as H, resolveDynamicComponent as Qe, useTemplateRef as ye, createElementBlock as N, normalizeClass as h1, unref as y, createCommentVNode as W, renderSlot as c1, createVNode as T1, toDisplayString as A1, mergeModels as Ae, useModel as y9, withModifiers as N2, createElementVNode as a1, withDirectives as I2, vModelDynamic as m5, pushScopeId as _6, popScopeId as p6, nextTick as M2, normalizeProps as n2, guardReactiveProps as p2, resolveComponent as t9, mergeProps as r2, withCtx as w1, withScopeId as f6, withKeys as J0, normalizeStyle as f2, Fragment as M1, watch as g2, getCurrentScope as b5, onScopeDispose as M5, toValue as y2, toRef as Re, readonly as w6, ref as o1, customRef as h6, shallowRef as k5, reactive as Ge, watchEffect as y5, vModelText as m6, createSlots as u2, renderList as Z1, useSlots as Ie, getCurrentInstance as b6, onMounted as a2, onUnmounted as Xe, isRef as J9, Teleport as M6, Transition as Ke, render as et, useAttrs as k6, createTextVNode as te, onBeforeUpdate as y6, vShow as Ze } from "vue";
1
+ import { defineComponent as $1, computed as X, h as k9, createBlock as b1, openBlock as H, resolveDynamicComponent as Qe, useTemplateRef as ye, createElementBlock as N, normalizeClass as h1, unref as y, createCommentVNode as W, renderSlot as c1, createVNode as T1, toDisplayString as A1, mergeModels as Ae, useModel as y9, withModifiers as N2, createElementVNode as a1, withDirectives as I2, vModelDynamic as m5, pushScopeId as _6, popScopeId as p6, nextTick as M2, normalizeProps as n2, guardReactiveProps as p2, resolveComponent as t9, mergeProps as r2, withCtx as w1, withScopeId as f6, withKeys as J0, normalizeStyle as f2, Fragment as M1, watch as g2, getCurrentScope as b5, onScopeDispose as M5, toValue as y2, toRef as Re, readonly as w6, ref as o1, customRef as h6, shallowRef as k5, reactive as Ge, watchEffect as y5, onMounted as s2, vModelText as m6, createSlots as u2, renderList as Z1, useSlots as Ie, getCurrentInstance as b6, onUnmounted as Xe, isRef as J9, Teleport as M6, Transition as Ke, render as et, useAttrs as k6, createTextVNode as te, onBeforeUpdate as y6, vShow as Ze } from "vue";
2
2
  import { isoFormatDate as o0 } from "./dsg-vue.helpers-string.esm.js";
3
3
  import { g as j5 } from "./_commonjsHelpers-C6fGbg64.js";
4
4
  import { i as j6, C as x5 } from "./DsgColoursConfig-BseFo6-R.js";
@@ -11804,7 +11804,7 @@ var gF = CF();
11804
11804
  const vF = /* @__PURE__ */ j5(gF), _F = { class: "dsg-input--label-wrapper block" }, pF = {
11805
11805
  key: 0,
11806
11806
  class: "dsg-input--http"
11807
- }, fF = { class: "dsg-input--http-label" }, wF = ["type", "placeholder", "disabled", "autocomplete", "name", "min", "max"], hF = ["type", "placeholder", "disabled", "autocomplete", "name"], mF = {
11807
+ }, fF = { class: "dsg-input--http-label" }, wF = ["type", "placeholder", "disabled", "autocomplete", "name", "min", "max", "step"], hF = ["type", "placeholder", "disabled", "autocomplete", "name"], mF = {
11808
11808
  key: 3,
11809
11809
  class: "dsg-input--tooltip dsg-input--icon-wrapper",
11810
11810
  ref: "dsgInputTooltipWrapper"
@@ -11831,6 +11831,8 @@ const vF = /* @__PURE__ */ j5(gF), _F = { class: "dsg-input--label-wrapper block
11831
11831
  hint: { default: "" },
11832
11832
  placeholder: { default: "" },
11833
11833
  name: { default: "" },
11834
+ step: { default: () => {
11835
+ } },
11834
11836
  hasTooltip: { type: Boolean, default: !1 },
11835
11837
  toolTip: { default: "" },
11836
11838
  min: { default: () => {
@@ -11845,6 +11847,7 @@ const vF = /* @__PURE__ */ j5(gF), _F = { class: "dsg-input--label-wrapper block
11845
11847
  websiteHttps: { type: Boolean, default: !0 },
11846
11848
  websiteWww: { type: Boolean, default: !0 },
11847
11849
  validateOnInput: { type: Boolean, default: () => !0 },
11850
+ validateOnLoad: { type: Boolean, default: !0 },
11848
11851
  validationPatterns: { default: () => [] },
11849
11852
  hideHintOnError: { type: Boolean, default: !0 },
11850
11853
  minLength: { default: 2 },
@@ -11904,31 +11907,38 @@ const vF = /* @__PURE__ */ j5(gF), _F = { class: "dsg-input--label-wrapper block
11904
11907
  return !1;
11905
11908
  }
11906
11909
  }, T = () => {
11907
- if (L.value = [], u("on-before-validate", c.value), c.value)
11908
- if (e.type === "email")
11909
- L.value = z.value;
11910
- else if (e.theme === "credit-card") {
11911
- const g = j.value, v = vF.number(c.value), S = v.card?.type;
11912
- j.value = S ?? !1, g !== S && (I.value++, v.isValid && u("on-card-detected", j.value)), L.value = v.isValid ? [] : ["Please enter a valid credit card number."];
11913
- } else if (e.theme === "website") {
11914
- const g = e.websiteHttps ? "https://" + c.value : "http://" + c.value;
11915
- L.value = w(g) ? [] : ["Please enter a valid website."];
11916
- } else
11917
- e.validationPatterns.length && (L.value = E.value);
11910
+ if (L.value = [], u("on-before-validate", c.value), e.type === "email")
11911
+ L.value = z.value;
11912
+ else if (e.theme === "credit-card") {
11913
+ const g = j.value, v = vF.number(c.value), S = v.card?.type;
11914
+ j.value = S ?? !1, g !== S && (I.value++, v.isValid && u("on-card-detected", j.value)), L.value = v.isValid ? [] : ["Please enter a valid credit card number."];
11915
+ } else if (e.theme === "website") {
11916
+ const g = e.websiteHttps ? "https://" + c.value : "http://" + c.value;
11917
+ L.value = w(g) ? [] : ["Please enter a valid website."];
11918
+ } else
11919
+ e.validationPatterns.length && (L.value = E.value);
11918
11920
  u("on-validate", L.value), d($.value);
11919
11921
  }, Y = (g) => {
11920
11922
  g && typeof g == "function" && g(c.value);
11921
11923
  }, e1 = (g) => {
11922
11924
  L.value = g;
11923
11925
  };
11924
- return g2(c, (g) => {
11925
- if (u("on-before-format", c.value, g), e.theme === "website" && (e.websiteWww && (g = /^www\./.test(g) ? g : `www.${g}`), g = String(g).replace(/\s/g, ""), c.value = g), e.allowableCharacters) {
11926
- const v = e.allowableCharacters instanceof RegExp ? e.allowableCharacters : new RegExp(`[^${e.allowableCharacters}]`, "g");
11927
- g = String(g).replace(v, ""), c.value = g;
11926
+ return g2(
11927
+ c,
11928
+ (g) => {
11929
+ if (u("on-before-format", c.value, g), e.theme === "website" && (e.websiteWww && (g = /^www\./.test(g) ? g : `www.${g}`), g = String(g).replace(/\s/g, ""), c.value = g), e.allowableCharacters) {
11930
+ const v = e.allowableCharacters instanceof RegExp ? e.allowableCharacters : new RegExp(`[^${e.allowableCharacters}]`, "g");
11931
+ g = String(g).replace(v, ""), c.value = g;
11932
+ }
11933
+ e.formatter && (g = e.formatter(g), c.value = g), u("on-format", g), e.validateOnInput && T(), u("update:modelValue", g);
11934
+ },
11935
+ {
11936
+ immediate: !0
11928
11937
  }
11929
- e.formatter && (g = e.formatter(g), c.value = g), u("on-format", g), e.validateOnInput && T(), u("update:modelValue", g);
11930
- }), y5(() => {
11938
+ ), y5(() => {
11931
11939
  L.value = (Array.isArray(e.errors) ? e.errors : [e.errors]).filter((g) => g != null && g !== "");
11940
+ }), s2(() => {
11941
+ e.validateOnLoad && T();
11932
11942
  }), t({
11933
11943
  focus: d,
11934
11944
  validate: T,
@@ -11996,6 +12006,7 @@ const vF = /* @__PURE__ */ j5(gF), _F = { class: "dsg-input--label-wrapper block
11996
12006
  name: g.name,
11997
12007
  min: g.min,
11998
12008
  max: g.max,
12009
+ step: g.step,
11999
12010
  "onUpdate:modelValue": v[2] || (v[2] = (S) => c.value = S),
12000
12011
  onKeydown: [
12001
12012
  _,
@@ -16933,10 +16944,10 @@ N9.compatConfig = {
16933
16944
  };
16934
16945
  const b2 = (e, t) => t ? new Date(e.toLocaleString("en-US", { timeZone: t })) : new Date(e), F9 = (e, t, n) => h9(e, t, n) || n1(), aQ = (e, t, n) => {
16935
16946
  const o = t.dateInTz ? b2(new Date(e), t.dateInTz) : n1(e);
16936
- return n ? i2(o, !0) : o;
16947
+ return n ? a2(o, !0) : o;
16937
16948
  }, h9 = (e, t, n) => {
16938
16949
  if (!e) return null;
16939
- const o = n ? i2(n1(e), !0) : n1(e);
16950
+ const o = n ? a2(n1(e), !0) : n1(e);
16940
16951
  return t ? t.exactMatch ? aQ(e, t, n) : b2(o, t.timezone) : o;
16941
16952
  }, uQ = (e) => {
16942
16953
  const t = new Date(e.getFullYear(), 0, 1).getTimezoneOffset();
@@ -17010,7 +17021,7 @@ const gQ = (e, t, n) => {
17010
17021
  }, _Q = (e) => ({ type: "dot", ...e ?? {} }), W4 = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, q9 = {
17011
17022
  prop: (e) => `"${e}" prop must be enabled!`,
17012
17023
  dateArr: (e) => `You need to use array as "model-value" binding in order to support "${e}"`
17013
- }, l2 = (e) => e, d5 = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, c5 = (e) => e === null, Q4 = (e) => {
17024
+ }, i2 = (e) => e, d5 = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, c5 = (e) => e === null, Q4 = (e) => {
17014
17025
  if (e)
17015
17026
  return [...e.querySelectorAll("input, button, select, textarea, a[href]")][0];
17016
17027
  }, pQ = (e) => {
@@ -17098,15 +17109,15 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17098
17109
  e.getUTCSeconds()
17099
17110
  );
17100
17111
  return new Date(o).toISOString();
17101
- }, i2 = (e, t) => {
17112
+ }, a2 = (e, t) => {
17102
17113
  const n = n1(JSON.parse(JSON.stringify(e))), o = R1(n, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 });
17103
17114
  return t ? vq(o) : o;
17104
17115
  }, Ce = (e, t, n, o) => {
17105
17116
  let r = e ? n1(e) : n1();
17106
17117
  return (t || t === 0) && (r = sQ(r, +t)), (n || n === 0) && (r = lQ(r, +n)), (o || o === 0) && (r = N4(r, +o)), E4(r, 0);
17107
- }, q1 = (e, t) => !e || !t ? !1 : Fe(i2(e), i2(t)), I1 = (e, t) => !e || !t ? !1 : Be(i2(e), i2(t)), K1 = (e, t) => !e || !t ? !1 : He(i2(e), i2(t)), P0 = (e, t, n) => e != null && e[0] && e != null && e[1] ? K1(n, e[0]) && q1(n, e[1]) : e != null && e[0] && t ? K1(n, e[0]) && q1(n, t) || q1(n, e[0]) && K1(n, t) : !1, H2 = (e) => {
17118
+ }, q1 = (e, t) => !e || !t ? !1 : Fe(a2(e), a2(t)), I1 = (e, t) => !e || !t ? !1 : Be(a2(e), a2(t)), K1 = (e, t) => !e || !t ? !1 : He(a2(e), a2(t)), P0 = (e, t, n) => e != null && e[0] && e != null && e[1] ? K1(n, e[0]) && q1(n, e[1]) : e != null && e[0] && t ? K1(n, e[0]) && q1(n, t) || q1(n, e[0]) && K1(n, t) : !1, H2 = (e) => {
17108
17119
  const t = R1(new Date(e), { date: 1 });
17109
- return i2(t);
17120
+ return a2(t);
17110
17121
  }, F3 = (e, t, n) => t && (n || n === 0) ? Object.fromEntries(
17111
17122
  ["hours", "minutes", "seconds"].map((o) => o === t ? [o, n] : [o, isNaN(+e[o]) ? void 0 : +e[o]])
17112
17123
  ) : {
@@ -17186,7 +17197,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17186
17197
  const o = `${K4(n + 1)}-${t}`;
17187
17198
  return e.size ? e.has(o) : !1;
17188
17199
  }
17189
- return typeof e == "function" ? e(i2(R1(n1(), { month: n, year: t }), !0)) : !1;
17200
+ return typeof e == "function" ? e(a2(R1(n1(), { month: n, year: t }), !0)) : !1;
17190
17201
  }, OQ = (e, t, n) => {
17191
17202
  if (e instanceof Map) {
17192
17203
  const o = `${K4(n + 1)}-${t}`;
@@ -17194,7 +17205,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17194
17205
  }
17195
17206
  return !0;
17196
17207
  }, s6 = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((o) => o.month === t && o.year === n), Q9 = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), M9 = (e) => `dp-${q2(e, "yyyy-MM-dd")}`, v5 = (e, t) => {
17197
- const n = A4(i2(t), e), o = j2(i2(t), e);
17208
+ const n = A4(a2(t), e), o = j2(a2(t), e);
17198
17209
  return { before: n, after: o };
17199
17210
  }, m0 = Ge({
17200
17211
  menuFocused: !1,
@@ -17559,9 +17570,9 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17559
17570
  G(C[0]),
17560
17571
  C[1] ? G(C[1]) : Pe(s.value.partialRange)
17561
17572
  ];
17562
- }, w = () => Array.isArray(o.value) ? o.value[1] ? I() : G(l2(o.value[0])) : [], T = () => (o.value || []).map((C) => G(C)), Y = (C = !1) => (C || j(), t.modelAuto ? w() : i.value.enabled ? T() : Array.isArray(o.value) ? F0(() => I(), s.value.enabled) : G(l2(o.value))), e1 = (C) => !C || Array.isArray(C) && !C.length ? null : t.timePicker ? L(l2(C)) : t.monthPicker ? $(l2(C)) : t.yearPicker ? M(l2(C)) : i.value.enabled ? R(l2(C)) : t.weekPicker ? z(l2(C)) : E(l2(C)), m = (C) => {
17573
+ }, w = () => Array.isArray(o.value) ? o.value[1] ? I() : G(i2(o.value[0])) : [], T = () => (o.value || []).map((C) => G(C)), Y = (C = !1) => (C || j(), t.modelAuto ? w() : i.value.enabled ? T() : Array.isArray(o.value) ? F0(() => I(), s.value.enabled) : G(i2(o.value))), e1 = (C) => !C || Array.isArray(C) && !C.length ? null : t.timePicker ? L(i2(C)) : t.monthPicker ? $(i2(C)) : t.yearPicker ? M(i2(C)) : i.value.enabled ? R(i2(C)) : t.weekPicker ? z(i2(C)) : E(i2(C)), m = (C) => {
17563
17574
  const A = e1(C);
17564
- b9(l2(A)) ? (o.value = l2(A), V()) : (o.value = null, d.value = "");
17575
+ b9(i2(A)) ? (o.value = i2(A), V()) : (o.value = null, d.value = "");
17565
17576
  }, g = () => {
17566
17577
  const C = (A) => q2(A, r.value.format);
17567
17578
  return `${C(o.value[0])} ${r.value.rangeSeparator} ${o.value[1] ? C(o.value[1]) : ""}`;
@@ -17580,19 +17591,19 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17580
17591
  }, G = (C) => C ? t.utc ? MQ(C, t.utc === "preserve", t.enableSeconds) : t.modelType ? t.modelType === "timestamp" ? +h(C) : t.modelType === "iso" ? h(C).toISOString() : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? p(h(C)) : p(h(C), t.modelType, !0) : h(C) : "", B = (C, A = !1, l1 = !1) => {
17581
17592
  if (l1) return C;
17582
17593
  if (e("update:model-value", C), l.value.emitTimezone && A) {
17583
- const y1 = Array.isArray(C) ? C.map((F) => b2(l2(F), l.value.emitTimezone)) : b2(l2(C), l.value.emitTimezone);
17594
+ const y1 = Array.isArray(C) ? C.map((F) => b2(i2(F), l.value.emitTimezone)) : b2(i2(C), l.value.emitTimezone);
17584
17595
  e("update:model-timezone-value", y1);
17585
17596
  }
17586
17597
  }, r1 = (C) => Array.isArray(o.value) ? i.value.enabled ? o.value.map((A) => C(A)) : [
17587
17598
  C(o.value[0]),
17588
17599
  o.value[1] ? C(o.value[1]) : Pe(s.value.partialRange)
17589
- ] : C(l2(o.value)), O = () => {
17600
+ ] : C(i2(o.value)), O = () => {
17590
17601
  if (Array.isArray(o.value)) {
17591
17602
  const C = K2(o.value[0], t.weekStart), A = o.value[1] ? K2(o.value[1], t.weekStart) : [];
17592
17603
  return [C.map((l1) => n1(l1)), A.map((l1) => n1(l1))];
17593
17604
  }
17594
17605
  return K2(o.value, t.weekStart).map((C) => n1(C));
17595
- }, P = (C, A) => B(l2(r1(C)), !1, A), Q = (C) => {
17606
+ }, P = (C, A) => B(i2(r1(C)), !1, A), Q = (C) => {
17596
17607
  const A = O();
17597
17608
  return C ? A : e("update:model-value", O());
17598
17609
  }, K = (C = !1) => (C || V(), t.monthPicker ? P(f, C) : t.timePicker ? P(k, C) : t.yearPicker ? P(k1, C) : t.weekPicker ? Q(C) : B(Y(C), !0, C));
@@ -17782,7 +17793,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17782
17793
  defaultedRange: d,
17783
17794
  defaultedMultiDates: u
17784
17795
  } = F1(o), { isTimeValid: c, isMonthValid: _ } = pe(o), { buildMatrix: h } = _e(), p = o1(null), k = o1(null), f = o1(!1), M = o1({}), x = o1(null), L = o1(null);
17785
- a2(() => {
17796
+ s2(() => {
17786
17797
  o.arrowNavigation && h([t2(p), t2(k)], "actionRow"), $(), window.addEventListener("resize", $);
17787
17798
  }), Xe(() => {
17788
17799
  window.removeEventListener("resize", $);
@@ -17797,7 +17808,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17797
17808
  () => !c.value(o.internalModelValue) || !_.value(o.internalModelValue) || !R.value
17798
17809
  ), E = () => {
17799
17810
  const m = s.value;
17800
- return o.timePicker || o.monthPicker, m(l2(o.internalModelValue));
17811
+ return o.timePicker || o.monthPicker, m(i2(o.internalModelValue));
17801
17812
  }, j = () => {
17802
17813
  const m = o.internalModelValue;
17803
17814
  return l.value.count > 0 ? `${I(m[0])} - ${I(m[1])}` : [I(m[0]), I(m[1])];
@@ -17909,7 +17920,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17909
17920
  ), { hideNavigationButtons: _ } = k3(), h = o1(!1), p = o1(null), k = o1(null), f = o1([]), M = o1(), x = o1(null), L = o1(0), $ = o1(null);
17910
17921
  y6(() => {
17911
17922
  p.value = null;
17912
- }), a2(() => {
17923
+ }), s2(() => {
17913
17924
  M2().then(() => Y()), i.noOverlayFocus || z(), R(!0);
17914
17925
  }), Xe(() => R(!1));
17915
17926
  const R = (O) => {
@@ -17966,7 +17977,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
17966
17977
  }, S = () => {
17967
17978
  var O, P;
17968
17979
  const Q = (O = i.headerRefs) != null && O.length ? [i.headerRefs].concat(f.value) : f.value.concat([i.skipButtonRef ? [] : [x.value]]);
17969
- r(l2(Q), (P = i.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
17980
+ r(i2(Q), (P = i.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
17970
17981
  }, V = (O) => {
17971
17982
  i.arrowNavigation || ce(O, u.value, !0);
17972
17983
  }, U = (O) => {
@@ -18120,7 +18131,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18120
18131
  emits: ["activate", "set-ref"],
18121
18132
  setup(e, { emit: t }) {
18122
18133
  const n = t, o = o1(null);
18123
- return a2(() => n("set-ref", o)), (r, s) => (H(), N("button", {
18134
+ return s2(() => n("set-ref", o)), (r, s) => (H(), N("button", {
18124
18135
  ref_key: "elRef",
18125
18136
  ref: o,
18126
18137
  type: "button",
@@ -18325,7 +18336,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18325
18336
  };
18326
18337
  g2(s, (w, T) => {
18327
18338
  l.isTextInputDate && JSON.stringify(w ?? {}) !== JSON.stringify(T ?? {}) && $();
18328
- }), a2(() => {
18339
+ }), s2(() => {
18329
18340
  $();
18330
18341
  });
18331
18342
  const R = (w, T) => {
@@ -18392,7 +18403,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18392
18403
  props: e,
18393
18404
  emit: t
18394
18405
  });
18395
- a2(() => {
18406
+ s2(() => {
18396
18407
  e.startDate && (h.value && e.focusStartDate || !h.value) && $(k1(n1(e.startDate)), 0);
18397
18408
  });
18398
18409
  const T = (P) => P ? { month: H1(P), year: k1(P) } : { month: null, year: null }, Y = () => h.value ? Array.isArray(h.value) ? h.value.map((P) => T(P)) : T(h.value) : T(), e1 = (P, Q) => {
@@ -18492,7 +18503,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18492
18503
  ],
18493
18504
  setup(e, { expose: t, emit: n }) {
18494
18505
  const o = n, r = Ie(), s = k2(r, "yearMode"), l = e;
18495
- a2(() => {
18506
+ s2(() => {
18496
18507
  l.shadow || o("mount", null);
18497
18508
  });
18498
18509
  const {
@@ -18592,7 +18603,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18592
18603
  const n = () => {
18593
18604
  e.isTextInputDate && (u.value = k1(n1(e.startDate)));
18594
18605
  }, { modelValue: o } = A0(e, t, n), r = o1(null), { defaultedHighlight: s, defaultedMultiDates: l, defaultedFilters: i, defaultedRange: a, propDates: d } = F1(e), u = o1();
18595
- a2(() => {
18606
+ s2(() => {
18596
18607
  e.startDate && (o.value && e.focusStartDate || !o.value) && (u.value = k1(n1(e.startDate)));
18597
18608
  });
18598
18609
  const c = (M) => Array.isArray(o.value) ? o.value.some((x) => k1(x) === M) : o.value ? k1(o.value) === M : !1, _ = (M) => a.value.enabled && Array.isArray(o.value) ? P0(o.value, r.value, f(M)) : !1, h = (M) => d.value.allowedDates instanceof Map ? d.value.allowedDates.size ? d.value.allowedDates.has(`${M}`) : !1 : !0, p = (M) => d.value.disabledDates instanceof Map ? d.value.disabledDates.size ? d.value.disabledDates.has(`${M}`) : !1 : !0, k = X(() => qe(Y9(e.yearRange, e.locale, e.reverseYears), (M) => {
@@ -18613,7 +18624,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18613
18624
  selectYear: (M) => {
18614
18625
  var x;
18615
18626
  if (t("update-month-year", { instance: 0, year: M }), l.value.enabled)
18616
- return o.value ? Array.isArray(o.value) && (((x = o.value) == null ? void 0 : x.map((L) => k1(L))).includes(M) ? o.value = o.value.filter((L) => k1(L) !== M) : o.value.push(E2(i2(n1()), M))) : o.value = [E2(i2(V0(n1())), M)], t("auto-apply", !0);
18627
+ return o.value ? Array.isArray(o.value) && (((x = o.value) == null ? void 0 : x.map((L) => k1(L))).includes(M) ? o.value = o.value.filter((L) => k1(L) !== M) : o.value.push(E2(a2(n1()), M))) : o.value = [E2(a2(V0(n1())), M)], t("auto-apply", !0);
18617
18628
  a.value.enabled ? (o.value = X9(o, f(M), t), M2().then(() => {
18618
18629
  M3(o.value, t, e.autoApply, e.modelAuto);
18619
18630
  })) : (o.value = f(M), t("auto-apply"));
@@ -18717,7 +18728,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
18717
18728
  minutes: !1,
18718
18729
  seconds: !1
18719
18730
  }), f = o1("AM"), M = o1(null), x = o1([]), L = o1(), $ = o1(!1);
18720
- a2(() => {
18731
+ s2(() => {
18721
18732
  o("mounted");
18722
18733
  });
18723
18734
  const R = (b) => R1(/* @__PURE__ */ new Date(), {
@@ -19014,7 +19025,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
19014
19025
  ],
19015
19026
  setup(e, { expose: t, emit: n }) {
19016
19027
  const o = n, r = e, { buildMatrix: s, setTimePicker: l } = _e(), i = Ie(), { defaultedTransitions: a, defaultedAriaLabels: d, defaultedTextInput: u, defaultedConfig: c, defaultedRange: _ } = F1(r), { transitionName: h, showTransition: p } = $0(a), { hideNavigationButtons: k } = k3(), f = o1(null), M = o1(null), x = o1([]), L = o1(null), $ = o1(!1);
19017
- a2(() => {
19028
+ s2(() => {
19018
19029
  o("mount"), !r.timePicker && r.arrowNavigation ? s([t2(f.value)], "time") : l(!0, r.timePicker);
19019
19030
  });
19020
19031
  const R = X(() => _.value.enabled && r.modelAuto ? W4(r.internalModelValue) : !0), z = o1(!1), E = (U) => ({
@@ -19277,7 +19288,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
19277
19288
  [z.seconds, E.seconds]
19278
19289
  ) : L(z.hours, z.minutes, z.seconds);
19279
19290
  };
19280
- a2(() => {
19291
+ s2(() => {
19281
19292
  if (!e.shadow)
19282
19293
  return c(s.value), o.value ? $() : M();
19283
19294
  });
@@ -19312,7 +19323,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
19312
19323
  ],
19313
19324
  setup(e, { expose: t, emit: n }) {
19314
19325
  const o = n, r = e, s = Ie(), l = k2(s, "timePicker"), i = o1(null), { time: a, modelValue: d, disabledTimesConfig: u, updateTime: c, validateTime: _ } = mG(r, o);
19315
- return a2(() => {
19326
+ return s2(() => {
19316
19327
  r.shadow || o("mount", null);
19317
19328
  }), t({ getSidebarProps: () => ({
19318
19329
  modelValue: d,
@@ -19384,7 +19395,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
19384
19395
  propDates: c,
19385
19396
  defaultedUI: _
19386
19397
  } = F1(r), { transitionName: h, showTransition: p } = $0(s), { buildMatrix: k } = _e(), { handleMonthYearChange: f, isDisabled: M, updateMonthYear: x } = qQ(r, o), { showLeftIcon: L, showRightIcon: $ } = k3(), R = o1(!1), z = o1(!1), E = o1(!1), j = o1([null, null, null, null]);
19387
- a2(() => {
19398
+ s2(() => {
19388
19399
  o("mount");
19389
19400
  });
19390
19401
  const I = (O) => ({
@@ -19662,15 +19673,15 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
19662
19673
  left: "",
19663
19674
  transform: ""
19664
19675
  }), k = o1([]), f = o1(null), M = o1(!0), x = o1(""), L = o1({ startX: 0, endX: 0, startY: 0, endY: 0 }), $ = o1([]), R = o1({ left: "50%" }), z = o1(!1), E = X(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), j = X(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : gQ(r.formatLocale, r.locale, +r.weekStart));
19665
- a2(() => {
19676
+ s2(() => {
19666
19677
  o("mount", { cmp: "calendar", refs: k }), i.value.noSwipe || f.value && (f.value.addEventListener("touchstart", G, { passive: !1 }), f.value.addEventListener("touchend", B, { passive: !1 }), f.value.addEventListener("touchmove", r1, { passive: !1 })), r.monthChangeOnScroll && f.value && f.value.addEventListener("wheel", Q, { passive: !1 });
19667
19678
  }), Xe(() => {
19668
19679
  i.value.noSwipe || f.value && (f.value.removeEventListener("touchstart", G), f.value.removeEventListener("touchend", B), f.value.removeEventListener("touchmove", r1)), r.monthChangeOnScroll && f.value && f.value.removeEventListener("wheel", Q);
19669
19680
  });
19670
19681
  const I = (F) => F ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", w = (F, j1) => {
19671
19682
  if (r.transitions) {
19672
- const t1 = i2(ee(n1(), r.month, r.year));
19673
- x.value = K1(i2(ee(n1(), F, j1)), t1) ? l.value[I(!0)] : l.value[I(!1)], M.value = !1, M2(() => {
19683
+ const t1 = a2(ee(n1(), r.month, r.year));
19684
+ x.value = K1(a2(ee(n1(), F, j1)), t1) ? l.value[I(!0)] : l.value[I(!1)], M.value = !1, M2(() => {
19674
19685
  M.value = !0;
19675
19686
  });
19676
19687
  }
@@ -19901,7 +19912,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
19901
19912
  }, V = () => {
19902
19913
  h.value && w(h.value);
19903
19914
  };
19904
- a2(() => {
19915
+ s2(() => {
19905
19916
  e.shadow || (a.value || (j1(), V()), B(!0), e.focusStartDate && e.startDate && j1());
19906
19917
  });
19907
19918
  const U = X(() => {
@@ -20022,7 +20033,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20022
20033
  const f1 = [], O1 = new Date(s1, D), J = new Date(s1, D + 1, 0), v1 = e.weekStart, p1 = T2(O1, { weekStartsOn: v1 }), Q2 = (D2) => {
20023
20034
  const fe = L1(D2, D);
20024
20035
  if (f1.push({ days: fe }), !f1[f1.length - 1].days.some(
20025
- (ne) => I1(i2(ne.value), i2(J))
20036
+ (ne) => I1(a2(ne.value), a2(J))
20026
20037
  )) {
20027
20038
  const ne = j2(D2, 7);
20028
20039
  Q2(ne);
@@ -20059,7 +20070,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20059
20070
  if (Z(), p.value.autoRange) return g1(D, s1);
20060
20071
  if (p.value.fixedStart || p.value.fixedEnd) return o2(D);
20061
20072
  r.value[0] ? z(n1(D.value), a.value) && !G1(D.value) ? q1(n1(D.value), n1(r.value[0])) ? (r.value.unshift(n1(D.value)), t("range-end", r.value[0])) : (r.value[1] = n1(D.value), t("range-end", r.value[1])) : (e.autoApply && t("auto-apply-invalid", D.value), t("invalid-date", D.value)) : (r.value[0] = n1(D.value), t("range-start", r.value[0]));
20062
- }, _1 = (D = !0) => e.enableSeconds ? Array.isArray(u.seconds) ? D ? u.seconds[0] : u.seconds[1] : u.seconds : 0, s2 = (D) => {
20073
+ }, _1 = (D = !0) => e.enableSeconds ? Array.isArray(u.seconds) ? D ? u.seconds[0] : u.seconds[1] : u.seconds : 0, l2 = (D) => {
20063
20074
  r.value[D] = Ce(
20064
20075
  r.value[D],
20065
20076
  u.hours[D],
@@ -20070,7 +20081,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20070
20081
  var D, s1;
20071
20082
  r.value[0] && r.value[1] && +((D = r.value) == null ? void 0 : D[0]) > +((s1 = r.value) == null ? void 0 : s1[1]) && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
20072
20083
  }, y3 = () => {
20073
- r.value.length && (r.value[0] && !r.value[1] ? s2(0) : (s2(0), s2(1), o()), Z2(), a.value = r.value.slice(), M3(r.value, t, e.autoApply, e.modelAuto));
20084
+ r.value.length && (r.value[0] && !r.value[1] ? l2(0) : (l2(0), l2(1), o()), Z2(), a.value = r.value.slice(), M3(r.value, t, e.autoApply, e.modelAuto));
20074
20085
  }, R0 = (D, s1 = !1) => {
20075
20086
  if ($(D.value) || !D.current && e.hideOffsetDates) return t("invalid-date", D.value);
20076
20087
  if (l.value = JSON.parse(JSON.stringify(D)), !p.value.enabled) return z1(D);
@@ -20531,7 +20542,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20531
20542
  }
20532
20543
  }), g6 = (e, t) => {
20533
20544
  const n = o1(0);
20534
- a2(() => {
20545
+ s2(() => {
20535
20546
  o(), window.addEventListener("resize", o, { passive: !0 });
20536
20547
  }), Xe(() => {
20537
20548
  window.removeEventListener("resize", o);
@@ -20610,7 +20621,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20610
20621
  }), { setMenuFocused: i, setShiftKey: a, control: d } = l6(), u = Ie(), { defaultedTextInput: c, defaultedInline: _, defaultedConfig: h, defaultedUI: p, handleEventPropagation: k } = F1(r), { isMobile: f } = g6(h, r.shadow), M = o1(null), x = o1(0), L = o1(null), $ = o1(!1), R = o1(null), z = o1(!1), E = (Z) => {
20611
20622
  z.value = !0, h.value.allowPreventDefault && Z.preventDefault(), ce(Z, h.value, !0);
20612
20623
  };
20613
- a2(() => {
20624
+ s2(() => {
20614
20625
  if (!r.shadow) {
20615
20626
  $.value = !0, j(), window.addEventListener("resize", j);
20616
20627
  const Z = t2(s);
@@ -20765,7 +20776,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20765
20776
  class: h1({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 }),
20766
20777
  "data-dp-mobile": y(f)
20767
20778
  }, [
20768
- (H(!0), N(M1, null, Z1(Z.presetDates, (_1, s2) => (H(), N(M1, { key: s2 }, [
20779
+ (H(!0), N(M1, null, Z1(Z.presetDates, (_1, l2) => (H(), N(M1, { key: l2 }, [
20769
20780
  _1.slot ? c1(Z.$slots, _1.slot, {
20770
20781
  key: 0,
20771
20782
  presetDate: d1,
@@ -20817,7 +20828,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20817
20828
  onOverlayToggle: g1[14] || (g1[14] = (_1) => Z.$emit("overlay-toggle", _1)),
20818
20829
  "onUpdate:internalModelValue": g1[15] || (g1[15] = (_1) => Z.$emit("update:internal-model-value", _1))
20819
20830
  }), u2({ _: 2 }, [
20820
- Z1(P.value, (_1, s2) => ({
20831
+ Z1(P.value, (_1, l2) => ({
20821
20832
  name: _1,
20822
20833
  fn: w1((Z2) => [
20823
20834
  c1(Z.$slots, _1, n2(p2({ ...Z2 })))
@@ -20845,7 +20856,7 @@ const m9 = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), G4 = (e, t) =
20845
20856
  onInvalidSelect: g1[18] || (g1[18] = (_1) => Z.$emit("invalid-select")),
20846
20857
  onSelectNow: i1
20847
20858
  }), u2({ _: 2 }, [
20848
- Z1(y(O), (_1, s2) => ({
20859
+ Z1(y(O), (_1, l2) => ({
20849
20860
  name: _1,
20850
20861
  fn: w1((Z2) => [
20851
20862
  c1(Z.$slots, _1, n2(p2({ ...Z2 })))
@@ -21289,13 +21300,13 @@ const XG = ({
21289
21300
  e.maxTime,
21290
21301
  o.value.maxDate,
21291
21302
  "max",
21292
- l2(v),
21303
+ i2(v),
21293
21304
  g
21294
21305
  )), (e.minTime || o.value.minDate) && (g = g5(
21295
21306
  e.minTime,
21296
21307
  o.value.minDate,
21297
21308
  "min",
21298
- l2(v),
21309
+ i2(v),
21299
21310
  g
21300
21311
  )), I(m, g);
21301
21312
  }, T = (m) => {
@@ -21628,7 +21639,7 @@ const XG = ({
21628
21639
  defaultedRange: T,
21629
21640
  defaultedMultiDates: Y
21630
21641
  } = F1(r), { menuTransition: e1, showTransition: m } = $0(E), { isMobile: g } = g6(w), v = b6();
21631
- a2(() => {
21642
+ s2(() => {
21632
21643
  C(r.modelValue), M2().then(() => {
21633
21644
  if (!I.value.enabled) {
21634
21645
  const J = O(h.value);
@@ -21682,35 +21693,35 @@ const XG = ({
21682
21693
  var J, v1;
21683
21694
  return ((v1 = (J = c.value) == null ? void 0 : J.$el) == null ? void 0 : v1.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
21684
21695
  }, d1 = () => {
21685
- l.value && (w.value.closeOnScroll ? s2() : r1());
21696
+ l.value && (w.value.closeOnScroll ? l2() : r1());
21686
21697
  }, C1 = () => {
21687
21698
  var J;
21688
21699
  l.value && r1();
21689
21700
  const v1 = ((J = u.value) == null ? void 0 : J.$el.getBoundingClientRect().width) ?? 0;
21690
21701
  f.value = document.body.offsetWidth <= v1;
21691
21702
  }, L1 = (J) => {
21692
- J.key === "Tab" && !I.value.enabled && !r.teleport && w.value.tabOutClosesMenu && (h.value.contains(document.activeElement) || s2()), k.value = J.shiftKey;
21703
+ J.key === "Tab" && !I.value.enabled && !r.teleport && w.value.tabOutClosesMenu && (h.value.contains(document.activeElement) || l2()), k.value = J.shiftKey;
21693
21704
  }, S1 = (J) => {
21694
21705
  k.value = J.shiftKey;
21695
21706
  }, z1 = () => {
21696
21707
  !r.disabled && !r.readonly && (P(v, w5, r), r1(!1), l.value = !0, l.value && o("open"), l.value || _1(), C(r.modelValue));
21697
21708
  }, G1 = () => {
21698
21709
  var J, v1;
21699
- Q.value = "", _1(), (J = u.value) == null || J.onValueCleared(), (v1 = c.value) == null || v1.setParsedDate(null), o("update:model-value", null), o("update:model-timezone-value", null), o("cleared"), w.value.closeOnClearValue && s2();
21710
+ Q.value = "", _1(), (J = u.value) == null || J.onValueCleared(), (v1 = c.value) == null || v1.setParsedDate(null), o("update:model-value", null), o("update:model-timezone-value", null), o("cleared"), w.value.closeOnClearValue && l2();
21700
21711
  }, Z = () => {
21701
21712
  const J = K.value;
21702
21713
  return !J || !Array.isArray(J) && R(J) ? !0 : Array.isArray(J) ? Y.value.enabled || J.length === 2 && R(J[0]) && R(J[1]) ? !0 : T.value.partialRange && !r.timePicker ? R(J[0]) : !1 : !1;
21703
21714
  }, g1 = () => {
21704
- y1() && Z() ? (A(), s2()) : o("invalid-select", K.value);
21715
+ y1() && Z() ? (A(), l2()) : o("invalid-select", K.value);
21705
21716
  }, V1 = (J) => {
21706
- o2(), A(), w.value.closeOnAutoApply && !J && s2();
21717
+ o2(), A(), w.value.closeOnAutoApply && !J && l2();
21707
21718
  }, o2 = () => {
21708
21719
  c.value && j.value.enabled && c.value.setParsedDate(K.value);
21709
21720
  }, B2 = (J = !1) => {
21710
21721
  r.autoApply && z(K.value) && Z() && (T.value.enabled && Array.isArray(K.value) ? (T.value.partialRange || K.value.length === 2) && V1(J) : V1(J));
21711
21722
  }, _1 = () => {
21712
21723
  j.value.enabled || (K.value = null);
21713
- }, s2 = (J = !1) => {
21724
+ }, l2 = (J = !1) => {
21714
21725
  var v1, p1;
21715
21726
  J && K.value && w.value.setDateOnMenuClose && g1(), I.value.enabled || (l.value && (l.value = !1, B.value = !1, x(!1), L(!1), $(), o("closed"), Q.value && C(i.value)), _1(), o("blur"), (p1 = (v1 = u.value) == null ? void 0 : v1.$el) == null || p1.remove());
21716
21727
  }, Z2 = (J, v1, p1 = !1) => {
@@ -21724,7 +21735,7 @@ const XG = ({
21724
21735
  })) : o("invalid-date", J);
21725
21736
  }, y3 = () => {
21726
21737
  r.autoApply && z(K.value) && A(), o2();
21727
- }, R0 = () => l.value ? s2() : z1(), j3 = (J) => {
21738
+ }, R0 = () => l.value ? l2() : z1(), j3 = (J) => {
21728
21739
  K.value = J;
21729
21740
  }, x3 = () => {
21730
21741
  j.value.enabled && (_.value = !0, l1()), o("focus");
@@ -21744,7 +21755,7 @@ const XG = ({
21744
21755
  }, D = (J, v1) => {
21745
21756
  var p1;
21746
21757
  (p1 = u.value) == null || p1.switchView(J, v1);
21747
- }, s1 = (J, v1) => w.value.onClickOutside ? w.value.onClickOutside(J, v1) : s2(!0), f1 = (J = 0) => {
21758
+ }, s1 = (J, v1) => w.value.onClickOutside ? w.value.onClickOutside(J, v1) : l2(!0), f1 = (J = 0) => {
21748
21759
  var v1;
21749
21760
  (v1 = u.value) == null || v1.handleFlow(J);
21750
21761
  }, O1 = () => d;
@@ -21753,7 +21764,7 @@ const XG = ({
21753
21764
  c,
21754
21765
  (J) => s1(Z, J)
21755
21766
  ), t({
21756
- closeMenu: s2,
21767
+ closeMenu: l2,
21757
21768
  selectDate: g1,
21758
21769
  clearValue: G1,
21759
21770
  openMenu: z1,
@@ -21788,7 +21799,7 @@ const XG = ({
21788
21799
  onSetEmptyDate: y(A),
21789
21800
  onSelectDate: g1,
21790
21801
  onToggle: R0,
21791
- onClose: s2,
21802
+ onClose: l2,
21792
21803
  onFocus: x3,
21793
21804
  onBlur: S3,
21794
21805
  onRealBlur: v1[1] || (v1[1] = (p1) => _.value = !1),
@@ -21828,7 +21839,7 @@ const XG = ({
21828
21839
  collapse: f.value,
21829
21840
  "get-input-rect": i1,
21830
21841
  "is-text-input-date": M.value,
21831
- onClosePicker: s2,
21842
+ onClosePicker: l2,
21832
21843
  onSelectDate: g1,
21833
21844
  onAutoApply: B2,
21834
21845
  onTimeUpdate: y3,
@@ -22489,7 +22500,7 @@ const bX = /* @__PURE__ */ j5(mX), MX = (e = window.location.href) => {
22489
22500
  }
22490
22501
  n.value = !1;
22491
22502
  };
22492
- a2(() => {
22503
+ s2(() => {
22493
22504
  _();
22494
22505
  });
22495
22506
  const E = t;
@@ -3,10 +3,10 @@
3
3
  * # Setup: Props
4
4
  * ------------------------------------------------
5
5
  */
6
- export type DsgBadgeTheme = 'pill-color' | 'pill-outline' | 'badge-color' | 'badge-modern';
7
- export type DsgBadgeSize = 'sm' | 'md' | 'lg';
8
- export type DsgBadgeType = 'standard' | 'add';
9
- export type DsgBadgeThemeColor = 'gray' | 'brand' | 'error' | 'warning' | 'success' | 'gray-blue' | 'blue-light' | 'blue' | 'indigo' | 'purple' | 'pink' | 'orange';
6
+ export type DsgBadgeTheme = "pill-color" | "pill-outline" | "badge-color" | "badge-modern";
7
+ export type DsgBadgeSize = "sm" | "md" | "lg";
8
+ export type DsgBadgeType = "standard" | "add" | "icon";
9
+ export type DsgBadgeThemeColor = "gray" | "brand" | "error" | "warning" | "success" | "gray-blue" | "blue-light" | "blue" | "indigo" | "purple" | "pink" | "orange";
10
10
  export interface DsgBadgeProps {
11
11
  label?: string;
12
12
  classes?: string;
@@ -15,7 +15,9 @@ export interface DsgBadgeProps {
15
15
  hasClose?: boolean;
16
16
  avatarUri?: string;
17
17
  iconBefore?: string;
18
+ icon?: string;
18
19
  iconAfter?: string;
20
+ iconOnly?: boolean;
19
21
  hasDot?: boolean;
20
22
  theme?: DsgBadgeTheme;
21
23
  themeColor?: DsgBadgeThemeColor;
@@ -37,6 +37,7 @@ export interface DsgDropdownProps {
37
37
  headerType?: DsgDropdownHeaderType;
38
38
  headerTitle?: string;
39
39
  classes?: string;
40
+ strategy?: "absolute" | "fixed" | undefined;
40
41
  skidding?: number;
41
42
  distance?: number;
42
43
  }
@@ -34,6 +34,7 @@ export interface DsgInputProps {
34
34
  hint?: string;
35
35
  placeholder?: string;
36
36
  name?: string;
37
+ step?: string;
37
38
  hasTooltip?: boolean;
38
39
  toolTip?: string | undefined;
39
40
  min?: number | undefined;
@@ -46,6 +47,7 @@ export interface DsgInputProps {
46
47
  websiteHttps?: boolean;
47
48
  websiteWww?: boolean;
48
49
  validateOnInput?: boolean;
50
+ validateOnLoad?: boolean;
49
51
  validationPatterns?: DsgInputValidationPattern[];
50
52
  hideHintOnError?: boolean;
51
53
  minLength?: number;
@@ -5,7 +5,7 @@ import { default as VueMultiselect } from 'vue-multiselect';
5
5
  * ------------------------------------------------
6
6
  */
7
7
  export interface DsgInputSelectOption {
8
- id: string;
8
+ id: string | number;
9
9
  label: string;
10
10
  [key: string]: any;
11
11
  }
@@ -19,10 +19,13 @@ export interface DsgInputSelectProps {
19
19
  disabled?: boolean;
20
20
  closeOnSelect?: boolean;
21
21
  trackBy?: string;
22
+ contentMaxWidth?: string;
22
23
  itemLabel?: string;
23
24
  allowEmpty?: boolean;
25
+ validateOnLoad?: boolean;
24
26
  selectLabel?: string;
25
27
  selectedLabel?: string;
28
+ errors?: string[] | string;
26
29
  size?: "md";
27
30
  }
28
31
  type __VLS_Props = DsgInputSelectProps;