@vue-interface/select-field 2.0.18 → 2.0.19

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 N, mergeModels as V, useModel as x, useTemplateRef as d, onMounted as E, useSlots as P, createElementBlock as m, openBlock as s, normalizeClass as g, unref as t, renderSlot as r, createElementVNode as n, createCommentVNode as c, toDisplayString as v, normalizeProps as y, guardReactiveProps as b, withDirectives as D, mergeProps as R, vModelSelect as G, createVNode as w, Transition as I, withCtx as h, createBlock as T, createTextVNode as U } from "vue";
1
+ import { defineComponent as N, useModel as x, useTemplateRef as d, onMounted as E, useSlots as P, openBlock as s, createElementBlock as m, normalizeClass as V, unref as t, renderSlot as r, toDisplayString as v, createCommentVNode as c, createElementVNode as n, normalizeProps as y, guardReactiveProps as b, withDirectives as D, mergeProps as R, vModelSelect as G, createVNode as g, Transition as I, withCtx as h, createBlock as w, createTextVNode as U, mergeModels as T } from "vue";
2
2
  import { ActivityIndicator as j } from "@vue-interface/activity-indicator";
3
3
  import { useFormControl as q, FormControlErrors as H, FormControlFeedback as J } from "@vue-interface/form-control";
4
4
  const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-control-activity-indicator" }, Q = {
@@ -10,7 +10,7 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
10
10
  }, _ = /* @__PURE__ */ N({
11
11
  inheritAttrs: !1,
12
12
  __name: "SelectField",
13
- props: /* @__PURE__ */ V({
13
+ props: /* @__PURE__ */ T({
14
14
  activity: { type: Boolean },
15
15
  disabled: { type: Boolean },
16
16
  error: {},
@@ -36,7 +36,7 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
36
36
  modelValue: {},
37
37
  modelModifiers: {}
38
38
  }),
39
- emits: /* @__PURE__ */ V(["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__ */ T(["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: z, emit: F }) {
41
41
  const u = e, f = x(e, "modelValue"), M = F, {
42
42
  controlAttributes: k,
@@ -62,7 +62,7 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
62
62
  }), (o, l) => (s(), m("div", {
63
63
  ref_key: "wrapper",
64
64
  ref: B,
65
- class: g(["select-field", t(A)])
65
+ class: V(["select-field", t(A)])
66
66
  }, [
67
67
  r(o.$slots, "label", {}, () => [
68
68
  u.label ? (s(), m("label", {
@@ -70,7 +70,7 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
70
70
  ref_key: "label",
71
71
  ref: S,
72
72
  for: t(k).id,
73
- class: g(e.labelClass),
73
+ class: V(e.labelClass),
74
74
  onClick: l[0] || (l[0] = (i) => a.value?.click())
75
75
  }, v(u.label), 11, K)) : c("", !0)
76
76
  ]),
@@ -95,9 +95,9 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
95
95
  ]),
96
96
  n("div", O, [
97
97
  r(o.$slots, "activity", {}, () => [
98
- w(I, { name: "select-field-fade" }, {
98
+ g(I, { name: "select-field-fade" }, {
99
99
  default: h(() => [
100
- u.activity && e.indicator ? (s(), T(t(j), {
100
+ u.activity && e.indicator ? (s(), w(t(j), {
101
101
  key: "activity",
102
102
  ref_key: "activity",
103
103
  ref: C,
@@ -111,7 +111,7 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
111
111
  ])
112
112
  ]),
113
113
  r(o.$slots, "errors", y(b({ error: e.error, errors: e.errors, id: e.id, name: e.name })), () => [
114
- e.error || e.errors ? (s(), T(t(H), {
114
+ e.error || e.errors ? (s(), w(t(H), {
115
115
  key: 0,
116
116
  id: e.id && String(e.id),
117
117
  name: e.name && String(e.name),
@@ -128,7 +128,7 @@ const K = ["for"], L = { class: "form-control-inner" }, O = { class: "form-contr
128
128
  }, 8, ["id", "name", "error", "errors"])) : c("", !0)
129
129
  ]),
130
130
  r(o.$slots, "feedback", y(b({ feedback: e.feedback })), () => [
131
- w(t(J), { feedback: e.feedback }, {
131
+ g(t(J), { feedback: e.feedback }, {
132
132
  default: h(({ feedback: i }) => [
133
133
  n("div", W, v(i), 1)
134
134
  ]),
@@ -66,10 +66,10 @@ declare const _default: <ModelValue, Value>(__VLS_props: NonNullable<Awaited<typ
66
66
  } & Omit<SelectHTMLAttributes, "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<HTMLSelectElement | null>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-interface/select-field",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "A Vue select field component.",
5
5
  "type": "module",
6
6
  "main": "./dist/select-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.18"
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",