@muenchen/muc-patternlab-vue 8.2.0-beta.4 → 9.0.0-beta.2

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.
@@ -16,11 +16,12 @@ declare const _default: {
16
16
  autocomplete?: string;
17
17
  name?: string;
18
18
  }> & Readonly<{
19
+ onBlur?: (() => any) | undefined;
19
20
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
21
  onSuffixClick?: (() => any) | undefined;
21
22
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ blur: () => any;
22
24
  "update:modelValue": (value: string) => any;
23
- } & {
24
25
  suffixClick: () => any;
25
26
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
26
27
  P: {};
@@ -45,6 +46,7 @@ declare const _default: {
45
46
  autocomplete?: string;
46
47
  name?: string;
47
48
  }> & Readonly<{
49
+ onBlur?: (() => any) | undefined;
48
50
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
49
51
  onSuffixClick?: (() => any) | undefined;
50
52
  }>, {}, {}, {}, {}, {}>;
@@ -67,11 +69,12 @@ declare const _default: {
67
69
  autocomplete?: string;
68
70
  name?: string;
69
71
  }> & Readonly<{
72
+ onBlur?: (() => any) | undefined;
70
73
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
71
74
  onSuffixClick?: (() => any) | undefined;
72
75
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
+ blur: () => any;
73
77
  "update:modelValue": (value: string) => any;
74
- } & {
75
78
  suffixClick: () => any;
76
79
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
77
80
  $slots: Readonly<{
@@ -73,10 +73,11 @@ declare function __VLS_template(): {
73
73
  };
74
74
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
75
75
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
+ blur: () => any;
76
77
  "update:modelValue": (value: string) => any;
77
- } & {
78
78
  suffixClick: () => any;
79
79
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
80
+ onBlur?: (() => any) | undefined;
80
81
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
81
82
  onSuffixClick?: (() => any) | undefined;
82
83
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -11,6 +11,7 @@ declare const _default: {
11
11
  required?: boolean;
12
12
  maxlength?: number;
13
13
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ blur: () => any;
14
15
  "update:modelValue": (value: string) => any;
15
16
  }, string, import('vue').PublicProps, Readonly<{
16
17
  modelValue?: string;
@@ -24,6 +25,7 @@ declare const _default: {
24
25
  required?: boolean;
25
26
  maxlength?: number;
26
27
  }> & Readonly<{
28
+ onBlur?: (() => any) | undefined;
27
29
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
28
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
31
  title: string;
@@ -36,8 +36,10 @@ type __VLS_PublicProps = {
36
36
  modelValue?: string;
37
37
  } & __VLS_Props;
38
38
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
+ blur: () => any;
39
40
  "update:modelValue": (value: string) => any;
40
41
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
42
+ onBlur?: (() => any) | undefined;
41
43
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
44
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
43
45
  export default _default;
@@ -627,7 +627,7 @@ var ae = Object.defineProperty, oe = (e, t) => {
627
627
  setup(e) {
628
628
  let t = n(() => {
629
629
  switch (e.type) {
630
- case "error":
630
+ case "error": return "warning";
631
631
  case "warning": return "warning";
632
632
  case "success": return "check";
633
633
  default: return "information";
@@ -776,7 +776,7 @@ var mt = /* @__PURE__ */ I(dt, [["render", pt], ["__scopeId", "data-v-a337b11f"]
776
776
  setup(e) {
777
777
  return (e, t) => (y(), a("p", Ut, [
778
778
  u(O(L), {
779
- class: "icon--before",
779
+ class: "icon icon--before",
780
780
  icon: "warning--filled"
781
781
  }),
782
782
  t[0] ||= o("span", { class: "visually-hidden" }, "Fehler:", -1),
@@ -1130,13 +1130,13 @@ var Jt = /* @__PURE__ */ I(Gt, [["render", qt]]), Yt = {
1130
1130
  modelValue: { default: "" },
1131
1131
  modelModifiers: {}
1132
1132
  }),
1133
- emits: /* @__PURE__ */ p(["suffixClick"], ["update:modelValue"]),
1133
+ emits: /* @__PURE__ */ p(["suffixClick", "blur"], ["update:modelValue"]),
1134
1134
  setup(t, { emit: s }) {
1135
1135
  let c = A(t, "modelValue"), u = te(), d = s, f = n(() => t.type === "search"), p = n(() => {
1136
1136
  if (c.value === "") return [];
1137
1137
  let e = c.value.toLowerCase();
1138
1138
  return t.dataList.filter((t) => t.toLowerCase().startsWith(e) && t.toLowerCase() !== e);
1139
- }), h = (e) => c.value = e, g = () => d("suffixClick");
1139
+ }), h = (e) => c.value = e, g = () => d("suffixClick"), _ = () => d("blur");
1140
1140
  return (n, s) => (y(), a("div", { class: m(["m-form-group", { "has-error": t.errorMsg }]) }, [
1141
1141
  t.label ? (y(), a("label", {
1142
1142
  key: 0,
@@ -1161,8 +1161,9 @@ var Jt = /* @__PURE__ */ I(Gt, [["render", qt]]), Yt = {
1161
1161
  "aria-required": t.required,
1162
1162
  maxlength: t.max,
1163
1163
  autocomplete: t.autocomplete,
1164
- name: t.name
1165
- }, null, 8, Mn), [[M, c.value]]),
1164
+ name: t.name,
1165
+ onBlur: _
1166
+ }, null, 40, Mn), [[M, c.value]]),
1166
1167
  f.value && p.value.length !== 0 ? (y(), a("ul", Nn, [(y(!0), a(e, null, C(p.value, (e) => (y(), a("li", {
1167
1168
  class: "autocomplete-result",
1168
1169
  key: e,
@@ -3981,10 +3982,12 @@ var xa = function(e) {
3981
3982
  modelValue: { default: "" },
3982
3983
  modelModifiers: {}
3983
3984
  }),
3984
- emits: ["update:modelValue"],
3985
- setup(e) {
3986
- let t = A(e, "modelValue"), n = S(t.value.length);
3987
- return (s, c) => (y(), a("div", { class: m(["m-form-group", { "has-error": e.errorMsg }]) }, [
3985
+ emits: /* @__PURE__ */ p(["blur"], ["update:modelValue"]),
3986
+ setup(e, { emit: t }) {
3987
+ let n = A(e, "modelValue"), s = S(n.value.length), c = t, u = () => {
3988
+ s.value = n.value.length, c("blur");
3989
+ };
3990
+ return (t, c) => (y(), a("div", { class: m(["m-form-group", { "has-error": e.errorMsg }]) }, [
3988
3991
  e.label ? (y(), a("label", {
3989
3992
  key: 0,
3990
3993
  for: "textarea-" + e.id,
@@ -4002,17 +4005,17 @@ var xa = function(e) {
4002
4005
  rows: e.rows,
4003
4006
  placeholder: e.placeholder,
4004
4007
  maxlength: e.maxlength,
4005
- "onUpdate:modelValue": c[0] ||= (e) => t.value = e,
4008
+ "onUpdate:modelValue": c[0] ||= (e) => n.value = e,
4006
4009
  required: e.required,
4007
4010
  "aria-required": e.required,
4008
- onBlur: c[1] ||= (e) => n.value = t.value.length
4009
- }, null, 40, La), [[ne, t.value]]), e.maxlength ? (y(), a("div", Ra, [
4011
+ onBlur: u
4012
+ }, null, 40, La), [[ne, n.value]]), e.maxlength ? (y(), a("div", Ra, [
4010
4013
  o("span", {
4011
4014
  id: "textarea-count-" + e.id,
4012
4015
  class: "m-character-count__message visually-hidden"
4013
4016
  }, "Sie können bis zu " + D(e.maxlength) + " Zeichen eingeben.", 9, za),
4014
- o("span", Ba, D(t.value.length) + "/" + D(e.maxlength), 1),
4015
- o("div", Va, D(n.value) + "/" + D(e.maxlength), 1)
4017
+ o("span", Ba, D(n.value.length) + "/" + D(e.maxlength), 1),
4018
+ o("div", Va, D(s.value) + "/" + D(e.maxlength), 1)
4016
4019
  ])) : i("", !0)], 2),
4017
4020
  e.errorMsg ? (y(), r(Wt, { key: 2 }, {
4018
4021
  default: P(() => [l(D(e.errorMsg), 1)]),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "FabianWilms",
4
4
  "description": "A vue component library of some of the components available from https://patternlab.muenchen.space",
5
5
  "license": "MIT",
6
- "version": "8.2.0-beta.4",
6
+ "version": "9.0.0-beta.2",
7
7
  "private": false,
8
8
  "module": "./dist/muc-patternlab-vue.es.js",
9
9
  "main": "./dist/index.d.ts",