@wikicasa-dev/components 1.2.44 → 1.2.45

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,8 +1,8 @@
1
1
  import './assets/BaseTextarea.css';
2
2
  import f from "./BaseFloatingLabel.js";
3
3
  import { useFloatingLabel as m } from "./useFloatingLabel.js";
4
- import { defineComponent as h, resolveComponent as v, openBlock as l, createElementBlock as s, normalizeClass as t, createElementVNode as a, withModifiers as r, createCommentVNode as b, createVNode as g } from "vue";
5
- import { _ as w } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { defineComponent as h, resolveComponent as v, openBlock as o, createElementBlock as r, normalizeClass as t, createElementVNode as l, withModifiers as s, createCommentVNode as b, createVNode as w } from "vue";
5
+ import { _ as g } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  const y = h({
7
7
  name: "BaseTextarea",
8
8
  components: { BaseFloatingLabel: f },
@@ -16,14 +16,14 @@ const y = h({
16
16
  isDisabled: { type: Boolean, default: !1 },
17
17
  resize: { type: Boolean, default: !1 }
18
18
  },
19
- emits: ["update:modelValue", "focusin", "focusout"],
19
+ emits: ["update:modelValue", "focusin", "focusout", "keydown"],
20
20
  setup(e, i) {
21
- const { labelState: o, setInitialLabelState: u, handleFocusIn: n, handleFocusOut: d } = m(i.emit);
21
+ const { labelState: n, setInitialLabelState: u, handleFocusIn: d, handleFocusOut: k } = m(i.emit);
22
22
  return {
23
- labelState: o,
23
+ labelState: n,
24
24
  setInitialLabelState: u,
25
- handleFocusIn: n,
26
- handleFocusOut: d
25
+ handleFocusIn: d,
26
+ handleFocusOut: k
27
27
  };
28
28
  },
29
29
  data() {
@@ -65,21 +65,21 @@ const y = h({
65
65
  });
66
66
  }
67
67
  }
68
- }), V = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "innerHTML"], c = {
68
+ }), V = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "innerHTML"], $ = {
69
69
  key: 0,
70
70
  class: "uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"
71
- }, $ = ["innerHTML"], T = ["innerHTML"];
72
- function L(e, i, o, u, n, d) {
71
+ }, T = ["innerHTML"], c = ["innerHTML"];
72
+ function L(e, i, n, u, d, k) {
73
73
  const p = v("base-floating-label");
74
- return l(), s("div", {
74
+ return o(), r("div", {
75
75
  class: t(e.$attrs["wrapper-classes"])
76
76
  }, [
77
- a("div", {
77
+ l("div", {
78
78
  class: t(["input-wrapper uikit-relative uikit-mt-15px uikit-rounded-xs uikit-px-0", [
79
79
  e.labelState === "floating-label" ? "floating-state" : "inline-state"
80
80
  ]])
81
81
  }, [
82
- a("textarea", {
82
+ l("textarea", {
83
83
  id: e.$attrs.id,
84
84
  ref: "textarea",
85
85
  "data-cy": e.$attrs["data-cy"],
@@ -92,12 +92,13 @@ function L(e, i, o, u, n, d) {
92
92
  rows: e.$attrs.rows,
93
93
  disabled: e.$attrs.disabled,
94
94
  "aria-labelledby": e.$attrs.id,
95
- onFocusin: i[0] || (i[0] = r(() => e.handleFocusIn(), ["stop"])),
96
- onFocusout: i[1] || (i[1] = r((k) => e.handleFocusOut(`${e.modelValue}`.trim() || e.value), ["stop"])),
97
- onInput: i[2] || (i[2] = r((...k) => e.handleOnChange && e.handleOnChange(...k), ["stop"])),
95
+ onFocusin: i[0] || (i[0] = s(() => e.handleFocusIn(), ["stop"])),
96
+ onFocusout: i[1] || (i[1] = s((a) => e.handleFocusOut(`${e.modelValue}`.trim() || e.value), ["stop"])),
97
+ onInput: i[2] || (i[2] = s((...a) => e.handleOnChange && e.handleOnChange(...a), ["stop"])),
98
+ onKeydown: i[3] || (i[3] = s((a) => e.$emit("keydown", a), ["stop"])),
98
99
  innerHTML: e.modelValue
99
100
  }, null, 42, V),
100
- a("fieldset", {
101
+ l("fieldset", {
101
102
  class: t(["uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-5px uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary", [
102
103
  { "is-invalid": e.isValid === !1, "is-valid": e.isValid },
103
104
  { "uikit-border-w-danger": e.isValid === !1 },
@@ -105,8 +106,8 @@ function L(e, i, o, u, n, d) {
105
106
  { "uikit-border-w-secondary": e.isValid === null }
106
107
  ]])
107
108
  }, [
108
- e.labelText ? (l(), s("legend", c, [
109
- a("span", {
109
+ e.labelText ? (o(), r("legend", $, [
110
+ l("span", {
110
111
  class: t(["uikit-px-5px uikit-opacity-0", [
111
112
  {
112
113
  "uikit-visible uikit-inline-block": e.labelState === "floating-label"
@@ -116,10 +117,10 @@ function L(e, i, o, u, n, d) {
116
117
  }
117
118
  ]]),
118
119
  innerHTML: e.labelText
119
- }, null, 10, $)
120
+ }, null, 10, T)
120
121
  ])) : b("", !0)
121
122
  ], 2),
122
- g(p, {
123
+ w(p, {
123
124
  for: e.$attrs.id,
124
125
  "label-text": e.labelText,
125
126
  "label-state": e.labelState,
@@ -128,16 +129,16 @@ function L(e, i, o, u, n, d) {
128
129
  onClick: e.handleFloatingLabelClick
129
130
  }, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "onClick"])
130
131
  ], 2),
131
- (e.isValid || e.isValid === !1) && e.feedback ? (l(), s("div", {
132
+ (e.isValid || e.isValid === !1) && e.feedback ? (o(), r("div", {
132
133
  key: 0,
133
134
  class: t(
134
135
  e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
135
136
  ),
136
137
  innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
137
- }, null, 10, T)) : b("", !0)
138
+ }, null, 10, c)) : b("", !0)
138
139
  ], 2);
139
140
  }
140
- const x = /* @__PURE__ */ w(y, [["render", L], ["__scopeId", "data-v-244ae276"]]);
141
+ const x = /* @__PURE__ */ g(y, [["render", L], ["__scopeId", "data-v-afed12a6"]]);
141
142
  export {
142
143
  x as default
143
144
  };
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
72
72
  handleClick(e: Event): void;
73
73
  handleClean(): void;
74
74
  handleShowPasswd(): void;
75
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue" | "focusout" | "focusin" | "keydown-enter-pressed" | "keydown")[], "click" | "update:modelValue" | "focusout" | "focusin" | "keydown-enter-pressed" | "keydown", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
75
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue" | "focusout" | "focusin" | "keydown" | "keydown-enter-pressed")[], "click" | "update:modelValue" | "focusout" | "focusin" | "keydown" | "keydown-enter-pressed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
76
76
  inputClass: {
77
77
  type: (ArrayConstructor | StringConstructor)[];
78
78
  required: false;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  disableTextarea(): void;
42
42
  clearTextareaElem(): void;
43
43
  disableAndFocusTextarea(): void;
44
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focusout" | "focusin")[], "update:modelValue" | "focusout" | "focusin", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focusout" | "focusin" | "keydown")[], "update:modelValue" | "focusout" | "focusin" | "keydown", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  labelText: {
46
46
  type: StringConstructor;
47
47
  default: string;
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
71
71
  }>> & {
72
72
  onFocusin?: ((...args: any[]) => any) | undefined;
73
73
  onFocusout?: ((...args: any[]) => any) | undefined;
74
+ onKeydown?: ((...args: any[]) => any) | undefined;
74
75
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
75
76
  }, {
76
77
  resize: boolean;
@@ -1 +1 @@
1
- .invalid-bg[data-v-244ae276]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-244ae276]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-244ae276],.valid-bg[data-v-244ae276]{background-position:top 12px right 12px;background-size:20px}.textarea-scrollbar[data-v-244ae276]::-webkit-scrollbar{width:8px;height:6px}.textarea-scrollbar[data-v-244ae276]::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(244 247 255 / var(--tw-bg-opacity))}.textarea-scrollbar[data-v-244ae276]::-webkit-scrollbar-thumb{border-radius:5px;--tw-bg-opacity: 1;background-color:rgb(180 194 240 / var(--tw-bg-opacity))}.is-valid.textarea-scrollbar[data-v-244ae276]::-webkit-scrollbar-thumb{background-color:#2b5dff!important}.is-invalid.textarea-scrollbar[data-v-244ae276]::-webkit-scrollbar-thumb{background-color:#fa4f64!important}
1
+ .invalid-bg[data-v-afed12a6]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-afed12a6]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-afed12a6],.valid-bg[data-v-afed12a6]{background-position:top 12px right 12px;background-size:20px}.textarea-scrollbar[data-v-afed12a6]::-webkit-scrollbar{width:8px;height:6px}.textarea-scrollbar[data-v-afed12a6]::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(244 247 255 / var(--tw-bg-opacity))}.textarea-scrollbar[data-v-afed12a6]::-webkit-scrollbar-thumb{border-radius:5px;--tw-bg-opacity: 1;background-color:rgb(180 194 240 / var(--tw-bg-opacity))}.is-valid.textarea-scrollbar[data-v-afed12a6]::-webkit-scrollbar-thumb{background-color:#2b5dff!important}.is-invalid.textarea-scrollbar[data-v-afed12a6]::-webkit-scrollbar-thumb{background-color:#fa4f64!important}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",