@vue-interface/input-field 2.0.18 → 2.0.20

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 S, mergeModels as w, useModel as D, useTemplateRef as d, createElementBlock as m, openBlock as a, normalizeClass as T, unref as t, renderSlot as l, createElementVNode as s, createCommentVNode as c, toDisplayString as f, normalizeProps as v, guardReactiveProps as y, withDirectives as E, mergeProps as I, vModelDynamic as P, createVNode as z, Transition as x, withCtx as p, createBlock as g, createTextVNode as R } from "vue";
1
+ import { defineComponent as S, useModel as D, useTemplateRef as d, openBlock as a, createElementBlock as m, normalizeClass as w, unref as t, renderSlot as l, toDisplayString as f, createCommentVNode as c, createElementVNode as s, normalizeProps as v, guardReactiveProps as y, withDirectives as E, mergeProps as I, vModelDynamic as P, createVNode as T, Transition as x, withCtx as p, createBlock as z, createTextVNode as R, mergeModels as g } from "vue";
2
2
  import { ActivityIndicator as G } from "@vue-interface/activity-indicator";
3
3
  import { useFormControl as U, FormControlErrors as j, FormControlFeedback as q } from "@vue-interface/form-control";
4
4
  const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-control-activity-indicator" }, L = {
@@ -10,7 +10,7 @@ const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-contr
10
10
  }, Y = /* @__PURE__ */ S({
11
11
  inheritAttrs: !1,
12
12
  __name: "InputField",
13
- props: /* @__PURE__ */ w({
13
+ props: /* @__PURE__ */ g({
14
14
  activity: { type: Boolean },
15
15
  disabled: { type: Boolean },
16
16
  error: {},
@@ -36,7 +36,7 @@ const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-contr
36
36
  modelValue: {},
37
37
  modelModifiers: {}
38
38
  }),
39
- emits: /* @__PURE__ */ w(["blur", "focus", "focusin", "focusout", "click", "doubleclick", "contextmenu", "mousedown", "mouseup", "mouseover", "mouseout", "mouseenter", "mouseleave", "mousemove", "keydown", "keyup", "keypress", "select", "selectionchange", "invalid", "submit", "reset", "scroll", "wheel", "copy", "cut", "paste", "touchstart", "touchend", "touchmove", "touchcancel", "change", "input", "beforeinput"], ["update:modelValue"]),
39
+ emits: /* @__PURE__ */ g(["blur", "focus", "focusin", "focusout", "click", "doubleclick", "contextmenu", "mousedown", "mouseup", "mouseover", "mouseout", "mouseenter", "mouseleave", "mousemove", "keydown", "keyup", "keypress", "select", "selectionchange", "invalid", "submit", "reset", "scroll", "wheel", "copy", "cut", "paste", "touchstart", "touchend", "touchmove", "touchcancel", "change", "input", "beforeinput"], ["update:modelValue"]),
40
40
  setup(e, { expose: F, emit: A }) {
41
41
  const u = e, b = D(e, "modelValue"), M = A, {
42
42
  controlAttributes: k,
@@ -54,14 +54,14 @@ const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-contr
54
54
  }), (o, r) => (a(), m("div", {
55
55
  ref_key: "wrapper",
56
56
  ref: V,
57
- class: T(["input-field", t(N)])
57
+ class: w(["input-field", t(N)])
58
58
  }, [
59
59
  l(o.$slots, "label", {}, () => [
60
60
  u.label ? (a(), m("label", {
61
61
  key: 0,
62
62
  ref_key: "label",
63
63
  ref: B,
64
- class: T(e.labelClass),
64
+ class: w(e.labelClass),
65
65
  for: t(k).id
66
66
  }, f(u.label), 11, H)) : c("", !0)
67
67
  ]),
@@ -84,9 +84,9 @@ const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-contr
84
84
  ]),
85
85
  s("div", K, [
86
86
  l(o.$slots, "activity", {}, () => [
87
- z(x, { name: "input-field-fade" }, {
87
+ T(x, { name: "input-field-fade" }, {
88
88
  default: p(() => [
89
- u.activity && e.indicator ? (a(), g(t(G), {
89
+ u.activity && e.indicator ? (a(), z(t(G), {
90
90
  key: "activity",
91
91
  ref_key: "activity",
92
92
  ref: C,
@@ -100,7 +100,7 @@ const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-contr
100
100
  ])
101
101
  ]),
102
102
  l(o.$slots, "errors", v(y({ error: e.error, errors: e.errors, id: o.$attrs.id, name: o.$attrs.name })), () => [
103
- e.error || e.errors ? (a(), g(t(j), {
103
+ e.error || e.errors ? (a(), z(t(j), {
104
104
  key: 0,
105
105
  id: e.id,
106
106
  name: e.name,
@@ -117,7 +117,7 @@ const H = ["for"], J = { class: "form-control-inner" }, K = { class: "form-contr
117
117
  }, 8, ["id", "name", "error", "errors"])) : c("", !0)
118
118
  ]),
119
119
  l(o.$slots, "feedback", v(y({ feedback: e.feedback })), () => [
120
- z(t(q), { feedback: e.feedback }, {
120
+ T(t(q), { feedback: e.feedback }, {
121
121
  default: p(({ feedback: i }) => [
122
122
  s("div", O, f(i), 1)
123
123
  ]),
@@ -66,10 +66,10 @@ declare const _default: <ModelValue, Value>(__VLS_props: NonNullable<Awaited<typ
66
66
  } & Omit<InputHTMLAttributes, "size">) & Partial<{}>> & import('vue').PublicProps;
67
67
  expose(exposed: import('vue').ShallowUnwrapRef<{
68
68
  activity: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
69
- size?: import('@vue-interface/sizeable').ComponentSize<import('@vue-interface/activity-indicator').ActivityIndicatorSizePrefix>;
69
+ size?: import('@vue-interface/activity-indicator').ActivityIndicatorSize;
70
70
  type: import('vue').Component;
71
71
  }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
72
- size: import('@vue-interface/sizeable').ComponentSize<import('@vue-interface/activity-indicator').ActivityIndicatorSizePrefix>;
72
+ size: import('@vue-interface/activity-indicator').ActivityIndicatorSize;
73
73
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
74
74
  P: {};
75
75
  B: {};
@@ -78,10 +78,10 @@ declare const _default: <ModelValue, Value>(__VLS_props: NonNullable<Awaited<typ
78
78
  M: {};
79
79
  Defaults: {};
80
80
  }, Readonly<{
81
- size?: import('@vue-interface/sizeable').ComponentSize<import('@vue-interface/activity-indicator').ActivityIndicatorSizePrefix>;
81
+ size?: import('@vue-interface/activity-indicator').ActivityIndicatorSize;
82
82
  type: import('vue').Component;
83
83
  }> & Readonly<{}>, {}, {}, {}, {}, {
84
- size: import('@vue-interface/sizeable').ComponentSize<import('@vue-interface/activity-indicator').ActivityIndicatorSizePrefix>;
84
+ size: import('@vue-interface/activity-indicator').ActivityIndicatorSize;
85
85
  }> | null>>;
86
86
  help: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
87
87
  field: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-interface/input-field",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "A Vue input field component.",
5
5
  "type": "module",
6
6
  "main": "./dist/input-field.umd.cjs",
@@ -45,8 +45,8 @@
45
45
  ],
46
46
  "peerDependencies": {
47
47
  "vue": "^3.3.4",
48
- "@vue-interface/activity-indicator": "3.0.7",
49
- "@vue-interface/form-control": "2.0.17"
48
+ "@vue-interface/activity-indicator": "3.0.8",
49
+ "@vue-interface/form-control": "2.0.19"
50
50
  },
51
51
  "scripts": {
52
52
  "dev": "vite",