@enos5/enos-vue-default 1.0.0 → 1.0.1

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.
@@ -17,6 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
17
17
  type: StringConstructor;
18
18
  default: string;
19
19
  };
20
+ name: {
21
+ type: StringConstructor;
22
+ default: undefined;
23
+ };
20
24
  disabled: {
21
25
  type: BooleanConstructor;
22
26
  default: boolean;
@@ -40,6 +44,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
40
44
  type: StringConstructor;
41
45
  default: string;
42
46
  };
47
+ name: {
48
+ type: StringConstructor;
49
+ default: undefined;
50
+ };
43
51
  disabled: {
44
52
  type: BooleanConstructor;
45
53
  default: boolean;
@@ -48,6 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
48
56
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
57
  }>, {
50
58
  label: string;
59
+ name: string;
51
60
  disabled: boolean;
52
61
  value: string | number | boolean;
53
62
  modelValue: string | number | boolean | null;
@@ -9,6 +9,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
9
9
  type: ArrayConstructor;
10
10
  default: () => never[];
11
11
  };
12
+ name: {
13
+ type: StringConstructor;
14
+ default: undefined;
15
+ };
12
16
  disabled: {
13
17
  type: BooleanConstructor;
14
18
  default: boolean;
@@ -24,6 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
24
28
  type: ArrayConstructor;
25
29
  default: () => never[];
26
30
  };
31
+ name: {
32
+ type: StringConstructor;
33
+ default: undefined;
34
+ };
27
35
  disabled: {
28
36
  type: BooleanConstructor;
29
37
  default: boolean;
@@ -31,6 +39,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
31
39
  }>> & Readonly<{
32
40
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
33
41
  }>, {
42
+ name: string;
34
43
  disabled: boolean;
35
44
  modelValue: unknown[];
36
45
  options: unknown[];
package/dist/index.js CHANGED
@@ -685,7 +685,7 @@ const _sfc_main$A = {
685
685
  };
686
686
  }
687
687
  };
688
- const _hoisted_1$x = ["checked", "disabled"];
688
+ const _hoisted_1$x = ["name", "checked", "disabled"];
689
689
  const _sfc_main$z = {
690
690
  __name: "CheckboxInput",
691
691
  props: {
@@ -705,6 +705,10 @@ const _sfc_main$z = {
705
705
  type: String,
706
706
  default: ""
707
707
  },
708
+ name: {
709
+ type: String,
710
+ default: void 0
711
+ },
708
712
  disabled: {
709
713
  type: Boolean,
710
714
  default: false
@@ -736,6 +740,7 @@ const _sfc_main$z = {
736
740
  createElementVNode("input", {
737
741
  type: "checkbox",
738
742
  class: "sr-only",
743
+ name: __props.name,
739
744
  checked: isChecked.value,
740
745
  disabled: __props.disabled,
741
746
  onChange,
@@ -1999,6 +2004,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
1999
2004
  ...attrs,
2000
2005
  class: [defaultFieldClass, attrs.class],
2001
2006
  type: props.type,
2007
+ name: props.name,
2002
2008
  modelValue: props.modelValue,
2003
2009
  disabled: props.disabled,
2004
2010
  disabledClass: props.disabledClass
@@ -2006,6 +2012,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2006
2012
  const textAreaBindings = computed(() => ({
2007
2013
  ...attrs,
2008
2014
  class: [defaultFieldClass, attrs.class],
2015
+ name: props.name,
2009
2016
  modelValue: props.modelValue,
2010
2017
  disabled: props.disabled,
2011
2018
  disabledClass: props.disabledClass
@@ -2013,6 +2020,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2013
2020
  const dateBindings = computed(() => ({
2014
2021
  ...attrs,
2015
2022
  class: [defaultFieldClass, attrs.class],
2023
+ name: props.name,
2016
2024
  modelValue: props.modelValue,
2017
2025
  withTimestamp: props.type === "datetime-local" || props.withTimestamp,
2018
2026
  disabled: props.disabled,
@@ -2022,6 +2030,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2022
2030
  const inputProps = {
2023
2031
  ...attrs,
2024
2032
  class: [defaultFieldClass, attrs.class],
2033
+ name: props.name,
2025
2034
  modelValue: props.modelValue,
2026
2035
  modelModifiers: props.modelModifiers,
2027
2036
  options: props.options,
@@ -2044,12 +2053,14 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2044
2053
  });
2045
2054
  const notationBindings = computed(() => ({
2046
2055
  ...attrs,
2056
+ name: props.name,
2047
2057
  modelValue: props.modelValue,
2048
2058
  options: props.options,
2049
2059
  disabled: props.disabled
2050
2060
  }));
2051
2061
  const checkboxBindings = computed(() => ({
2052
2062
  ...attrs,
2063
+ name: props.name,
2053
2064
  modelValue: props.modelValue,
2054
2065
  options: props.options,
2055
2066
  disabled: props.disabled
@@ -2063,6 +2074,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
2063
2074
  }));
2064
2075
  const checkboxSingleBindings = computed(() => ({
2065
2076
  ...attrs,
2077
+ name: props.name,
2066
2078
  modelValue: props.modelValue,
2067
2079
  label: props.label || attrs.label || "",
2068
2080
  disabled: props.disabled
@@ -2173,6 +2185,10 @@ const _sfc_main$n = {
2173
2185
  type: Array,
2174
2186
  default: () => []
2175
2187
  },
2188
+ name: {
2189
+ type: String,
2190
+ default: void 0
2191
+ },
2176
2192
  disabled: {
2177
2193
  type: Boolean,
2178
2194
  default: false
@@ -2204,13 +2220,14 @@ const _sfc_main$n = {
2204
2220
  return openBlock(), createBlock(_sfc_main$o, {
2205
2221
  key: `checkbox-${option}`,
2206
2222
  type: "checkbox-input",
2223
+ name: __props.name,
2207
2224
  "model-value": isChecked(option),
2208
2225
  value: true,
2209
2226
  "unchecked-value": false,
2210
2227
  label: option,
2211
2228
  disabled: __props.disabled,
2212
2229
  "onUpdate:modelValue": (checked) => updateSelection(option, checked)
2213
- }, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"]);
2230
+ }, null, 8, ["name", "model-value", "label", "disabled", "onUpdate:modelValue"]);
2214
2231
  }), 128))
2215
2232
  ]);
2216
2233
  };