@wikicasa-dev/components 1.6.10 → 1.6.11

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.
package/dist/BaseInput.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import './assets/BaseInput.css';
2
- import { defineComponent as N, mergeModels as L, useModel as O, ref as f, watch as g, useAttrs as j, openBlock as n, createElementBlock as u, normalizeClass as b, unref as s, renderSlot as p, createElementVNode as m, withModifiers as c, withKeys as D, createBlock as G, createCommentVNode as w, Fragment as I, renderList as M } from "vue";
2
+ import { defineComponent as N, mergeModels as L, useModel as O, ref as f, watch as c, useAttrs as j, openBlock as n, createElementBlock as u, normalizeClass as b, unref as s, renderSlot as p, createElementVNode as m, withModifiers as g, withKeys as D, createBlock as G, createCommentVNode as w, Fragment as I, renderList as M } from "vue";
3
3
  import J from "./BaseFloatingLabel.js";
4
4
  import { useFloatingLabel as Q } from "./useFloatingLabel.js";
5
5
  import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
@@ -21,14 +21,14 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
21
21
  modelModifiers: {}
22
22
  }),
23
23
  emits: /* @__PURE__ */ L(["click", "keydownEnterPressed", "focusin", "focusout", "keydown"], ["update:modelValue"]),
24
- setup(y, { expose: C, emit: E }) {
25
- const t = y, o = O(y, "modelValue"), v = f(""), k = E, {
24
+ setup(y, { expose: E, emit: C }) {
25
+ const t = y, o = O(y, "modelValue"), v = f(""), k = C, {
26
26
  labelState: r,
27
27
  handleFocusIn: B,
28
28
  handleFocusOut: V,
29
29
  setInlineLabel: F,
30
30
  setFloatingLabel: T
31
- } = Q(k), a = f("text"), d = f({}), h = f(null), H = () => {
31
+ } = Q(k), l = f("text"), d = f({}), h = f(null), H = () => {
32
32
  t.feedback && (d.value = t.feedback, t.feedback.valid && typeof t.feedback.valid == "string" && (d.value.valid = [t.feedback.valid]), t.feedback.invalid && typeof t.feedback.invalid == "string" && (d.value.invalid = [t.feedback.invalid]));
33
33
  }, P = (e) => {
34
34
  if (!t.formatter || !t.formatter.formatFn)
@@ -46,9 +46,9 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
46
46
  }, S = () => {
47
47
  o.value = "", F();
48
48
  }, A = () => {
49
- a.value === "password" ? a.value = "text" : a.value === "text" && (a.value = "password");
49
+ l.value === "password" ? l.value = "text" : l.value === "text" && (l.value = "password");
50
50
  };
51
- g(
51
+ c(
52
52
  () => t.feedback,
53
53
  () => {
54
54
  H();
@@ -56,22 +56,22 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
56
56
  {
57
57
  immediate: !0
58
58
  }
59
- ), g(
59
+ ), c(
60
60
  o,
61
61
  (e) => {
62
- P(`${e}`) || (v.value = `${e}`), e != null && `${e}`.length > 0 && r.value !== "floating-label" ? T() : !`${e}`.length && document.activeElement != h.value && F();
62
+ P(`${e}`) || (v.value = `${e}`), e != null && `${e}`.length > 0 && r.value !== "floating-label" ? T() : !`${e}`.length && document.activeElement && document.activeElement != h.value && F();
63
63
  },
64
64
  {
65
65
  immediate: !0
66
66
  }
67
- ), g(
67
+ ), c(
68
68
  () => t.keepFloatingLabel,
69
69
  (e) => {
70
70
  e ? T() : V(o.value);
71
71
  }
72
72
  );
73
73
  const K = j();
74
- return a.value = K.type || "text", C({
74
+ return l.value = K.type || "text", E({
75
75
  select: () => {
76
76
  h.value?.select();
77
77
  }
@@ -94,7 +94,7 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
94
94
  p(e.$slots, "righticon", {
95
95
  handleClean: S,
96
96
  handleShowPasswd: A,
97
- curType: a.value
97
+ curType: l.value
98
98
  }, void 0, !0),
99
99
  m("input", {
100
100
  id: e.$attrs.id,
@@ -120,21 +120,21 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
120
120
  disabled: e.$attrs.disabled,
121
121
  "aria-labelledby": e.$attrs.id,
122
122
  readonly: e.$attrs.readonly,
123
- type: a.value,
123
+ type: l.value,
124
124
  pattern: e.$attrs.pattern,
125
125
  min: e.$attrs.min,
126
126
  max: e.$attrs.max,
127
127
  maxlength: e.$attrs.maxlength,
128
128
  inputmode: e.$attrs.inputmode,
129
129
  placeholder: e.$attrs.placeholder,
130
- onClick: i[0] || (i[0] = (l) => k("click", l)),
131
- onFocusin: i[1] || (i[1] = c(() => e.labelText && s(B)(), ["stop"])),
132
- onFocusout: i[2] || (i[2] = c((l) => e.labelText && !e.keepFloatingLabel && s(V)(o.value), ["stop"])),
133
- onInput: c(z, ["stop"]),
130
+ onClick: i[0] || (i[0] = (a) => k("click", a)),
131
+ onFocusin: i[1] || (i[1] = g(() => e.labelText && s(B)(), ["stop"])),
132
+ onFocusout: i[2] || (i[2] = g((a) => e.labelText && !e.keepFloatingLabel && s(V)(o.value), ["stop"])),
133
+ onInput: g(z, ["stop"]),
134
134
  value: v.value,
135
135
  onKeydown: [
136
136
  i[3] || (i[3] = D(() => k("keydownEnterPressed"), ["enter"])),
137
- i[4] || (i[4] = (l) => k("keydown", l))
137
+ i[4] || (i[4] = (a) => k("keydown", a))
138
138
  ]
139
139
  }, null, 42, U),
140
140
  m("fieldset", {
@@ -178,14 +178,14 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
178
178
  ]
179
179
  }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes"])) : w("", !0),
180
180
  p(e.$slots, "feedback", {}, () => [
181
- e.isValid === !1 ? (n(!0), u(I, { key: 0 }, M(d.value.invalid, (l, $) => (n(), u("div", {
181
+ e.isValid === !1 ? (n(!0), u(I, { key: 0 }, M(d.value.invalid, (a, $) => (n(), u("div", {
182
182
  key: `${e.$attrs.id}_invalid_${$}`,
183
183
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
184
- innerHTML: l
185
- }, null, 8, Y))), 128)) : e.isValid === !0 ? (n(!0), u(I, { key: 1 }, M(d.value.valid, (l, $) => (n(), u("div", {
184
+ innerHTML: a
185
+ }, null, 8, Y))), 128)) : e.isValid === !0 ? (n(!0), u(I, { key: 1 }, M(d.value.valid, (a, $) => (n(), u("div", {
186
186
  key: `${e.$attrs.id}_valid_${$}`,
187
187
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
188
- innerHTML: l
188
+ innerHTML: a
189
189
  }, null, 8, Z))), 128)) : w("", !0)
190
190
  ], !0),
191
191
  e.$slots["under-label"] ? (n(), u("div", x, [
@@ -193,7 +193,7 @@ const U = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby
193
193
  ])) : w("", !0)
194
194
  ], 2));
195
195
  }
196
- }), ne = /* @__PURE__ */ R(_, [["__scopeId", "data-v-0fe30442"]]);
196
+ }), ne = /* @__PURE__ */ R(_, [["__scopeId", "data-v-80baca22"]]);
197
197
  export {
198
198
  ne as default
199
199
  };
@@ -1 +1 @@
1
- .input-wrapper[data-v-0fe30442]{--icon-default-size: 44px}.invalid-bg[data-v-0fe30442]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-0fe30442]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-0fe30442],.valid-bg[data-v-0fe30442]{background-position:top 17px right 12px;background-size:20px}.has-right-icon[data-v-0fe30442]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-0fe30442]>label.inline-label{left:var(--icon-default-size)}[data-v-0fe30442] .text-input-icon{position:absolute;z-index:20;box-sizing:border-box;--icon-size-sm: 16px;--icon-size-md: 20px;--icon-size-lg: 25px}[data-v-0fe30442] .text-input-icon.left{left:5px}[data-v-0fe30442] .text-input-icon.right{right:5px}[data-v-0fe30442] .text-input-icon{--icon-top: 5px;--icon-size: var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-0fe30442] .text-input-icon.md{--icon-size: var(--icon-size-md)}[data-v-0fe30442] .text-input-icon.lg{--icon-top: 0;--icon-size: var(--icon-size-lg)}.under-label[data-v-0fe30442]{left:4px;font-style:italic}
1
+ .input-wrapper[data-v-80baca22]{--icon-default-size: 44px}.invalid-bg[data-v-80baca22]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-80baca22]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-80baca22],.valid-bg[data-v-80baca22]{background-position:top 17px right 12px;background-size:20px}.has-right-icon[data-v-80baca22]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-80baca22]>label.inline-label{left:var(--icon-default-size)}[data-v-80baca22] .text-input-icon{position:absolute;z-index:20;box-sizing:border-box;--icon-size-sm: 16px;--icon-size-md: 20px;--icon-size-lg: 25px}[data-v-80baca22] .text-input-icon.left{left:5px}[data-v-80baca22] .text-input-icon.right{right:5px}[data-v-80baca22] .text-input-icon{--icon-top: 5px;--icon-size: var(--icon-size-sm);width:var(--icon-default-size);height:var(--icon-default-size);padding:calc((var(--icon-default-size) - var(--icon-size)) / 2);top:var(--icon-top)}[data-v-80baca22] .text-input-icon.md{--icon-size: var(--icon-size-md)}[data-v-80baca22] .text-input-icon.lg{--icon-top: 0;--icon-size: var(--icon-size-lg)}.under-label[data-v-80baca22]{left:4px;font-style:italic}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.6.10",
3
+ "version": "1.6.11",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",