@wikicasa-dev/components 2.0.7 → 2.0.9

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 { _ as f } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.YIp2u7gd.js";
1
+ import { _ as f } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.CfwgKf93.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.m5rScY4N.js";
1
+ import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.i1drmEOH.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,39 +1,41 @@
1
- import { defineComponent as s, openBlock as l, createElementBlock as a, normalizeClass as t, withModifiers as o, createElementVNode as n, createCommentVNode as r } from "vue";
2
- import { _ as d } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
- import './assets/BaseFloatingLabel.css';const u = ["for"], k = ["innerHTML"], m = /* @__PURE__ */ s({
1
+ import { defineComponent as n, openBlock as l, createElementBlock as s, normalizeClass as t, withModifiers as r, createElementVNode as d, createCommentVNode as u } from "vue";
2
+ import { _ as k } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import './assets/BaseFloatingLabel.css';const b = ["for"], m = ["innerHTML"], p = /* @__PURE__ */ n({
4
4
  __name: "BaseFloatingLabel",
5
5
  props: {
6
6
  labelState: { default: "inline-label" },
7
7
  isValid: { default: null },
8
8
  labelText: {},
9
- disabled: { type: [String, Boolean], default: !1 }
9
+ disabled: { type: [String, Boolean], default: !1 },
10
+ labelClasses: {},
11
+ labelTextClasses: {}
10
12
  },
11
13
  emits: ["click"],
12
- setup(p, { emit: b }) {
13
- return (e, i) => (l(), a("label", {
14
+ setup(f, { emit: a }) {
15
+ const o = a;
16
+ return (e, i) => (l(), s("label", {
14
17
  for: e.$attrs.for,
15
- class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [
16
- e.labelState,
17
- { "uikit-text-w-secondary": e.disabled },
18
- e.$attrs["label-classes"]
19
- ]]),
20
- onClick: i[0] || (i[0] = o((f) => e.$emit("click"), ["stop"]))
18
+ class: t(["uikit-pointer-events-none uikit-absolute uikit-left-15px uikit-h-5 uikit-text-sm", [e.labelState, { "uikit-text-w-secondary": e.disabled }, e.labelClasses]]),
19
+ onClick: i[0] || (i[0] = r((c) => o("click"), ["stop"]))
21
20
  }, [
22
- n("span", {
23
- class: t(["uikit-text uikit-font-medium uikit-text-w-black", { "!uikit-text-w-secondary": e.disabled }]),
21
+ d("span", {
22
+ class: t(["uikit-text uikit-font-medium", [
23
+ e.disabled ? "uikit-text-w-secondary" : "uikit-text-w-black",
24
+ e.labelTextClasses
25
+ ]]),
24
26
  innerHTML: e.labelText
25
- }, null, 10, k),
26
- e.$attrs.required ? (l(), a("sup", {
27
+ }, null, 10, m),
28
+ e.$attrs.required ? (l(), s("sup", {
27
29
  key: 0,
28
30
  class: t(["uikit-absolute -uikit-top-[0.3rem] uikit-text", [
29
31
  { "uikit-text-w-secondary": e.disabled },
30
32
  { "uikit-text-w-danger": e.isValid === !1 },
31
33
  { "uikit-text-w-primary": (e.isValid || e.isValid === null) && !e.disabled }
32
34
  ]])
33
- }, " *", 2)) : r("", !0)
34
- ], 10, u));
35
+ }, " *", 2)) : u("", !0)
36
+ ], 10, b));
35
37
  }
36
- }), y = /* @__PURE__ */ d(m, [["__scopeId", "data-v-9f97558b"]]);
38
+ }), y = /* @__PURE__ */ k(p, [["__scopeId", "data-v-2b36371e"]]);
37
39
  export {
38
40
  y as default
39
41
  };
package/dist/BaseInput.js CHANGED
@@ -1,126 +1,131 @@
1
- import { defineComponent as N, mergeModels as M, useModel as O, ref as b, watch as h, useAttrs as j, openBlock as s, createElementBlock as d, normalizeClass as m, unref as o, renderSlot as v, createElementVNode as c, withModifiers as g, withKeys as D, createBlock as G, createCommentVNode as w, Fragment as C, renderList as B } from "vue";
2
- import J from "./BaseFloatingLabel.js";
3
- import { useFloatingLabel as Q } from "./useFloatingLabel.js";
4
- import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
- import './assets/BaseInput.css';const W = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], X = { class: "uikit-invisible uikit-float-none uikit-mb-2 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-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, Y = ["innerHTML"], Z = ["innerHTML"], U = ["innerHTML"], x = {
1
+ import { defineComponent as z, mergeModels as C, useModel as A, ref as m, watch as g, useAttrs as N, openBlock as u, createElementBlock as r, normalizeClass as v, unref as s, renderSlot as p, createElementVNode as h, withModifiers as w, withKeys as O, createBlock as j, createCommentVNode as y, Fragment as T, renderList as B } from "vue";
2
+ import D from "./BaseFloatingLabel.js";
3
+ import { useFloatingLabel as G } from "./useFloatingLabel.js";
4
+ import { _ as J } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
+ import './assets/BaseInput.css';const Q = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder", "value"], W = { class: "uikit-invisible uikit-float-none uikit-mb-2 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-transition-[max-width] uikit-duration-[50ms] uikit-ease-out" }, X = ["innerHTML"], Y = ["innerHTML"], Z = ["innerHTML"], U = {
6
6
  key: 1,
7
7
  class: "under-label uikit-absolute uikit-text-12"
8
- }, _ = /* @__PURE__ */ N({
8
+ }, x = /* @__PURE__ */ z({
9
9
  inheritAttrs: !1,
10
10
  __name: "BaseInput",
11
- props: /* @__PURE__ */ M({
12
- inputClass: { default: "" },
11
+ props: /* @__PURE__ */ C({
12
+ inputClass: {},
13
13
  labelText: { default: "" },
14
14
  feedback: {},
15
15
  isValid: { default: null },
16
16
  keepFloatingLabel: { type: Boolean, default: !1 },
17
- formatter: { default: null }
17
+ formatter: { default: null },
18
+ labelClasses: {},
19
+ fieldsetClasses: {},
20
+ labelTextClasses: {},
21
+ withLeftIcon: { type: Boolean, default: () => {
22
+ } },
23
+ withRightIcon: { type: Boolean, default: () => {
24
+ } },
25
+ dataCy: {}
18
26
  }, {
19
27
  modelValue: { default: "" },
20
28
  modelModifiers: {}
21
29
  }),
22
- emits: /* @__PURE__ */ M(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
23
- setup(y, { expose: E, emit: H }) {
24
- const a = y, u = O(y, "modelValue"), l = b(""), k = H, {
25
- labelState: r,
26
- handleFocusIn: P,
27
- handleFocusOut: V,
28
- setInlineLabel: F,
29
- setFloatingLabel: L
30
- } = Q(k), n = b("text"), f = b({}), p = b(null), q = () => {
31
- a.feedback && (f.value = a.feedback, a.feedback.valid && typeof a.feedback.valid == "string" && (f.value.valid = [a.feedback.valid]), a.feedback.invalid && typeof a.feedback.invalid == "string" && (f.value.invalid = [a.feedback.invalid]));
32
- }, I = (e, i) => {
33
- if (!a.formatter || !a.formatter.formatFn)
34
- return l.value = e, "";
35
- const t = e.length ? a.formatter.formatFn(e) : e;
36
- return i && (i.value = t), l.value = t, t;
37
- }, T = (e, i = !0) => {
38
- if (i && (!a.formatter || !a.formatter.unFormatFn))
39
- return u.value = e, "";
40
- if (!i || !a.formatter || !a.formatter.unFormatFn)
41
- return;
42
- const t = a.formatter.unFormatFn(e);
43
- return u.value = t ?? "", t;
44
- }, K = ({ target: e }) => {
45
- const i = e, t = T(i.value);
46
- I(
30
+ emits: /* @__PURE__ */ C(["click", "keydownEnterPressed", "focusin", "focusout", "keydown", "keyup"], ["update:modelValue"]),
31
+ setup(l, { expose: M, emit: E }) {
32
+ const o = A(l, "modelValue"), a = m(""), k = E, {
33
+ labelState: d,
34
+ handleFocusIn: H,
35
+ handleFocusOut: $,
36
+ setInlineLabel: I,
37
+ setFloatingLabel: V
38
+ } = G(k), n = m("text"), f = m({}), b = m(null), R = () => {
39
+ l.feedback && (f.value = l.feedback, l.feedback.valid && typeof l.feedback.valid == "string" && (f.value.valid = [l.feedback.valid]), l.feedback.invalid && typeof l.feedback.invalid == "string" && (f.value.invalid = [l.feedback.invalid]));
40
+ }, L = (e, i) => {
41
+ if (!l.formatter || !l.formatter.formatFn)
42
+ return a.value = e, "";
43
+ const t = e.length ? l.formatter.formatFn(e) : e;
44
+ return i && (i.value = t), a.value = t, t;
45
+ }, F = (e, i = !0) => {
46
+ if (i && (!l.formatter || !l.formatter.unFormatFn))
47
+ return o.value = e, "";
48
+ if (!i || !l.formatter || !l.formatter.unFormatFn) return;
49
+ const t = l.formatter.unFormatFn(e);
50
+ return o.value = t ?? "", t;
51
+ }, P = ({ target: e }) => {
52
+ const i = e, t = F(i.value);
53
+ L(
47
54
  `${t}`,
48
- t === u.value ? i : void 0
55
+ t === o.value ? i : void 0
49
56
  );
50
- }, S = () => {
51
- u.value = "", F();
52
- }, z = () => {
57
+ }, q = () => {
58
+ o.value = "", I();
59
+ }, K = () => {
53
60
  n.value === "password" ? n.value = "text" : n.value === "text" && (n.value = "password");
54
61
  };
55
- h(
56
- () => a.feedback,
62
+ g(
63
+ () => l.feedback,
57
64
  () => {
58
- q();
65
+ R();
59
66
  },
60
67
  {
61
68
  immediate: !0
62
69
  }
63
- ), h(
64
- u,
70
+ ), g(
71
+ o,
65
72
  (e) => {
66
- I(
73
+ L(
67
74
  `${e}`,
68
- T(`${e}`, !1) === e ? p.value : void 0
69
- ), l.value != null && l.value.length > 0 && r.value !== "floating-label" ? L() : !l.value && document && document.activeElement !== p.value && F();
75
+ F(`${e}`, !1) === e ? b.value : void 0
76
+ ), a.value != null && a.value.length > 0 && d.value !== "floating-label" ? V() : !a.value && document && document.activeElement !== b.value && I();
70
77
  },
71
78
  {
72
79
  immediate: !0
73
80
  }
74
- ), h(
75
- () => a.keepFloatingLabel,
81
+ ), g(
82
+ () => l.keepFloatingLabel,
76
83
  (e) => {
77
- e ? L() : V(u.value);
84
+ e ? V() : $(o.value);
78
85
  }
79
86
  );
80
- const A = j();
81
- return n.value = A.type || "text", E({
87
+ const S = N();
88
+ return n.value = S.type || "text", M({
82
89
  select: () => {
83
- p.value?.select();
90
+ b.value?.select();
84
91
  }
85
- }), (e, i) => (s(), d("div", {
86
- class: m(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
92
+ }), (e, i) => (u(), r("div", {
93
+ class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
87
94
  e.$attrs.class,
88
95
  { "floating-label": e.labelText },
89
- o(r) === "floating-label" ? "floating-state" : "inline-state",
96
+ s(d) === "floating-label" ? "floating-state" : "inline-state",
90
97
  {
91
- "has-right-icon": e.$attrs["with-right-icon"] !== void 0 ? e.$attrs["with-right-icon"] : !!e.$slots.righticon
98
+ "has-right-icon": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
92
99
  },
93
100
  {
94
- "has-left-icon": e.$attrs["with-left-icon"] !== void 0 ? e.$attrs["with-left-icon"] : !!e.$slots.leftIcon
101
+ "has-left-icon": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
95
102
  },
96
103
  { "is-invalid": e.isValid === !1, "is-valid": e.isValid }
97
104
  ]])
98
105
  }, [
99
- v(e.$slots, "leftIcon", {}, void 0, !0),
100
- v(e.$slots, "righticon", {
101
- handleClean: S,
102
- handleShowPasswd: z,
106
+ p(e.$slots, "leftIcon", {}, void 0, !0),
107
+ p(e.$slots, "righticon", {
108
+ handleClean: q,
109
+ handleShowPasswd: K,
103
110
  curType: n.value
104
111
  }, void 0, !0),
105
- c("input", {
112
+ h("input", {
106
113
  id: e.$attrs.id,
107
114
  ref_key: "baseInputEl",
108
- ref: p,
109
- "data-cy": e.$attrs["data-cy"],
115
+ ref: b,
116
+ "data-cy": e.dataCy,
110
117
  name: e.$attrs.name,
111
- class: m(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none", [
112
- { "uikit-text-w-secondary": e.$attrs.disabled },
118
+ class: v(["input-element uikit-peer uikit-relative uikit-ml-[1px] uikit-mt-[6px] uikit-box-border uikit-block uikit-h-[42px] uikit-w-[calc(100%-2px)] uikit-appearance-none uikit-truncate uikit-rounded-[11px] !uikit-border-none uikit-bg-white uikit-bg-no-repeat uikit-px-4 uikit-outline-0 focus:uikit-shadow-none focus:uikit-outline-none disabled:uikit-bg-w-cultured disabled:uikit-text-w-secondary", [
113
119
  {
114
120
  "is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
115
121
  "is-valid valid-bg !uikit-pr-9": e.isValid
116
122
  },
117
123
  {
118
- "uikit-pr-[42px]": e.$attrs["with-right-icon"] !== void 0 ? e.$attrs["with-right-icon"] : !!e.$slots.righticon
124
+ "uikit-pr-[42px]": e.withRightIcon !== void 0 ? e.withRightIcon : !!e.$slots.righticon
119
125
  },
120
126
  {
121
- "uikit-pl-[42px]": e.$attrs["with-left-icon"] !== void 0 ? e.$attrs["with-left-icon"] : !!e.$slots.leftIcon
127
+ "uikit-pl-[42px]": e.withLeftIcon !== void 0 ? e.withLeftIcon : !!e.$slots.leftIcon
122
128
  },
123
- e.$attrs.disabled ? "uikit-bg-w-cultured" : "uikit-bg-white",
124
129
  e.inputClass
125
130
  ]]),
126
131
  autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
@@ -134,73 +139,74 @@ import './assets/BaseInput.css';const W = ["id", "data-cy", "name", "autocomplet
134
139
  maxlength: e.$attrs.maxlength,
135
140
  inputmode: e.$attrs.inputmode,
136
141
  placeholder: e.$attrs.placeholder,
142
+ value: a.value,
137
143
  onClick: i[0] || (i[0] = (t) => k("click", t)),
138
- onFocusin: i[1] || (i[1] = g(() => e.labelText && o(P)(), ["stop"])),
139
- onFocusout: i[2] || (i[2] = g((t) => e.labelText && !e.keepFloatingLabel && o(V)(l.value), ["stop"])),
140
- onInput: g(K, ["stop"]),
141
- value: l.value,
144
+ onFocusin: i[1] || (i[1] = w(() => e.labelText && s(H)(), ["stop"])),
145
+ onFocusout: i[2] || (i[2] = w((t) => e.labelText && !e.keepFloatingLabel && s($)(a.value), ["stop"])),
146
+ onInput: w(P, ["stop"]),
142
147
  onKeydown: [
143
- i[3] || (i[3] = D(() => k("keydownEnterPressed"), ["enter"])),
148
+ i[3] || (i[3] = O(() => k("keydownEnterPressed"), ["enter"])),
144
149
  i[4] || (i[4] = (t) => k("keydown", t))
145
150
  ],
146
151
  onKeyup: i[5] || (i[5] = (t) => k("keyup", t))
147
- }, null, 42, W),
148
- c("fieldset", {
149
- class: m(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
152
+ }, null, 42, Q),
153
+ h("fieldset", {
154
+ class: v(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-py-0 uikit-text-left uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger", [
150
155
  {
151
156
  "is-invalid uikit-border-w-danger": e.isValid === !1,
152
157
  "is-valid uikit-border-w-primary": e.isValid,
153
158
  "uikit-border-w-secondary": e.isValid === null
154
159
  },
155
160
  { "uikit-top-0": !e.labelText },
156
- e.$attrs["fieldset-classes"]
161
+ e.fieldsetClasses
157
162
  ]])
158
163
  }, [
159
- c("legend", X, [
160
- c("span", {
161
- class: m(["visible-label uikit-opacity-0", [
164
+ h("legend", W, [
165
+ h("span", {
166
+ class: v(["visible-label uikit-opacity-0", [
162
167
  { "uikit-mx-5px": e.labelText },
163
168
  {
164
- "uikit-visible uikit-inline-block": o(r) === "floating-label"
169
+ "uikit-visible uikit-inline-block": s(d) === "floating-label"
165
170
  },
166
171
  {
167
- "uikit-invisible uikit-hidden": o(r) === "inline-label"
172
+ "uikit-invisible uikit-hidden": s(d) === "inline-label"
168
173
  }
169
174
  ]]),
170
175
  innerHTML: e.labelText
171
- }, null, 10, Y)
176
+ }, null, 10, X)
172
177
  ])
173
178
  ], 2),
174
- e.labelText ? (s(), G(J, {
179
+ e.labelText ? (u(), j(D, {
175
180
  key: 0,
176
181
  for: e.$attrs.id,
177
182
  "label-text": e.labelText,
178
- "label-state": o(r),
183
+ "label-state": s(d),
179
184
  "is-valid": e.isValid,
180
185
  required: e.$attrs.required,
181
186
  disabled: e.$attrs.disabled,
182
187
  "label-classes": [
183
- o(r) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
184
- e.$attrs["label-classes"]
185
- ]
186
- }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes"])) : w("", !0),
187
- v(e.$slots, "feedback", {}, () => [
188
- e.isValid === !1 ? (s(!0), d(C, { key: 0 }, B(f.value.invalid, (t, $) => (s(), d("div", {
189
- key: `${e.$attrs.id}_invalid_${$}`,
188
+ s(d) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
189
+ e.labelClasses
190
+ ],
191
+ "label-text-classes": e.labelTextClasses
192
+ }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "label-text-classes"])) : y("", !0),
193
+ p(e.$slots, "feedback", {}, () => [
194
+ e.isValid === !1 ? (u(!0), r(T, { key: 0 }, B(f.value.invalid, (t, c) => (u(), r("div", {
195
+ key: `${e.$attrs.id}_invalid_${c}`,
190
196
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
191
197
  innerHTML: t
192
- }, null, 8, Z))), 128)) : e.isValid === !0 ? (s(!0), d(C, { key: 1 }, B(f.value.valid, (t, $) => (s(), d("div", {
193
- key: `${e.$attrs.id}_valid_${$}`,
198
+ }, null, 8, Y))), 128)) : e.isValid === !0 ? (u(!0), r(T, { key: 1 }, B(f.value.valid, (t, c) => (u(), r("div", {
199
+ key: `${e.$attrs.id}_valid_${c}`,
194
200
  class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
195
201
  innerHTML: t
196
- }, null, 8, U))), 128)) : w("", !0)
202
+ }, null, 8, Z))), 128)) : y("", !0)
197
203
  ], !0),
198
- e.$slots["under-label"] ? (s(), d("div", x, [
199
- v(e.$slots, "under-label", {}, void 0, !0)
200
- ])) : w("", !0)
204
+ e.$slots["under-label"] ? (u(), r("div", U, [
205
+ p(e.$slots, "under-label", {}, void 0, !0)
206
+ ])) : y("", !0)
201
207
  ], 2));
202
208
  }
203
- }), ne = /* @__PURE__ */ R(_, [["__scopeId", "data-v-cd1cc0a8"]]);
209
+ }), ae = /* @__PURE__ */ J(x, [["__scopeId", "data-v-f62de9f5"]]);
204
210
  export {
205
- ne as default
211
+ ae as default
206
212
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.DxPb8OYe.js";
1
+ import { _ as f } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.C_KW3jtP.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,31 +1,32 @@
1
- import { defineComponent as $, mergeModels as f, useModel as h, ref as x, watch as L, openBlock as k, createElementBlock as b, normalizeClass as s, createElementVNode as o, unref as l, withModifiers as d, createCommentVNode as p, createVNode as M, nextTick as F } from "vue";
2
- import B from "./BaseFloatingLabel.js";
3
- import { useFloatingLabel as z } from "./useFloatingLabel.js";
4
- import { _ as C } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
1
+ import { defineComponent as h, mergeModels as f, useModel as x, ref as $, watch as L, openBlock as k, createElementBlock as b, normalizeClass as s, createElementVNode as o, unref as l, withModifiers as d, createCommentVNode as p, createVNode as M, nextTick as C } from "vue";
2
+ import F from "./BaseFloatingLabel.js";
3
+ import { useFloatingLabel as B } from "./useFloatingLabel.js";
4
+ import { _ as z } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
5
  import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "readonly", "value"], H = {
6
6
  key: 0,
7
7
  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"
8
- }, I = ["innerHTML"], q = ["innerHTML"], A = /* @__PURE__ */ $({
8
+ }, I = ["innerHTML"], q = ["innerHTML"], A = /* @__PURE__ */ h({
9
9
  inheritAttrs: !1,
10
10
  __name: "BaseTextarea",
11
11
  props: /* @__PURE__ */ f({
12
12
  labelText: { default: "" },
13
13
  feedback: {},
14
14
  isValid: { default: null },
15
- resize: { type: Boolean, default: !1 }
15
+ resize: { type: Boolean, default: !1 },
16
+ labelClasses: {}
16
17
  }, {
17
18
  modelValue: { default: "" },
18
19
  modelModifiers: {}
19
20
  }),
20
21
  emits: /* @__PURE__ */ f(["focusin", "focusout", "click", "keydown"], ["update:modelValue"]),
21
22
  setup(v, { expose: m, emit: c }) {
22
- const r = h(v, "modelValue"), n = c, {
23
+ const r = x(v, "modelValue"), n = c, {
23
24
  labelState: a,
24
25
  handleFocusIn: w,
25
26
  handleFocusOut: g,
26
27
  setFloatingLabel: y,
27
28
  setInlineLabel: V
28
- } = z(n), i = x(null);
29
+ } = B(n), i = $(null);
29
30
  L(
30
31
  r,
31
32
  (e) => {
@@ -44,7 +45,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
44
45
  i.value && (i.value.value = "");
45
46
  },
46
47
  focusDisabledTextarea: () => {
47
- i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), F(() => {
48
+ i.value && (i.value.removeAttribute("readonly"), i.value.classList.remove("disabled"), C(() => {
48
49
  i.value && i.value.focus();
49
50
  }));
50
51
  }
@@ -100,7 +101,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
100
101
  }, null, 10, I)
101
102
  ])) : p("", !0)
102
103
  ], 2),
103
- M(B, {
104
+ M(F, {
104
105
  for: e.$attrs.id,
105
106
  "label-text": e.labelText,
106
107
  "label-state": l(a),
@@ -108,7 +109,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
108
109
  "is-valid": e.isValid,
109
110
  "label-classes": [
110
111
  l(a) === "floating-label" ? "!-uikit-top-1" : "!uikit-top-4",
111
- e.$attrs["label-classes"]
112
+ e.labelClasses
112
113
  ]
113
114
  }, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "label-classes"])
114
115
  ], 2),
@@ -121,7 +122,7 @@ import './assets/BaseTextarea.css';const E = ["id", "data-cy", "rows", "disabled
121
122
  }, null, 10, q)) : p("", !0)
122
123
  ], 2));
123
124
  }
124
- }), J = /* @__PURE__ */ C(A, [["__scopeId", "data-v-9e55a6e9"]]);
125
+ }), J = /* @__PURE__ */ z(A, [["__scopeId", "data-v-4c1a3e1d"]]);
125
126
  export {
126
127
  J as default
127
128
  };
@@ -1,53 +1,10 @@
1
1
  import { AccessibleSelectOptions } from './types';
2
- import { ClassType } from '@wikicasa-dev/types';
3
- declare function __VLS_template(): {
4
- slots: {
5
- lefticon?(_: {}): any;
6
- };
7
- refs: {
8
- btnEl: HTMLButtonElement;
9
- };
10
- attrs: Partial<{}>;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<{
14
- label?: string;
15
- dropdownPosition?: "top" | "bottom";
16
- namespace: string;
17
- options: AccessibleSelectOptions[];
18
- modelValue?: AccessibleSelectOptions;
19
- isValid?: boolean | null;
20
- feedback?: Partial<{
21
- valid: string;
22
- invalid: string;
23
- }>;
24
- /**
25
- * If true, we will close the dropdown when we touch the body of the document
26
- */
27
- closeOnBodyPressed?: boolean;
28
- border?: boolean;
29
- fieldsetClasses?: ClassType;
30
- legendClasses?: ClassType;
31
- dropdownClasses?: ClassType;
32
- labelClasses?: ClassType;
33
- btnClasses?: ClassType;
34
- dropdownItemClasses?: ClassType;
35
- btnTextClasses?: ClassType;
36
- arrowIcon?: Partial<{
37
- width: number;
38
- height: number;
39
- strokeColor: `#${string}`;
40
- classes: ClassType;
41
- }>;
42
- dataCy?: string;
43
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
- "update:modelValue": (args_0: AccessibleSelectOptions) => any;
45
- }, string, import('vue').PublicProps, Readonly<{
2
+ import { ClassType, Optional } from '@wikicasa-dev/types';
3
+ declare let __VLS_typeProps: {
46
4
  label?: string;
47
5
  dropdownPosition?: "top" | "bottom";
48
- namespace: string;
6
+ namespace?: string;
49
7
  options: AccessibleSelectOptions[];
50
- modelValue?: AccessibleSelectOptions;
51
8
  isValid?: boolean | null;
52
9
  feedback?: Partial<{
53
10
  valid: string;
@@ -72,34 +29,25 @@ declare const __VLS_component: import('vue').DefineComponent<{
72
29
  classes: ClassType;
73
30
  }>;
74
31
  dataCy?: string;
75
- }> & Readonly<{
76
- "onUpdate:modelValue"?: ((args_0: AccessibleSelectOptions) => any) | undefined;
77
- }>, {
78
- label: string;
79
- arrowIcon: Partial<{
80
- width: number;
81
- height: number;
82
- strokeColor: `#${string}`;
83
- classes: ClassType;
84
- }>;
85
- dataCy: string;
86
- btnClasses: ClassType;
87
- isValid: boolean | null;
88
- modelValue: AccessibleSelectOptions;
89
- labelClasses: ClassType;
90
- dropdownPosition: "top" | "bottom";
91
- feedback: Partial<{
92
- valid: string;
93
- invalid: string;
94
- }>;
95
- closeOnBodyPressed: boolean;
96
- border: boolean;
97
- fieldsetClasses: ClassType;
98
- legendClasses: ClassType;
99
- dropdownClasses: ClassType;
100
- dropdownItemClasses: ClassType;
101
- btnTextClasses: ClassType;
102
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ };
33
+ type __VLS_PublicProps = {
34
+ modelValue?: Optional<AccessibleSelectOptions>;
35
+ } & typeof __VLS_typeProps;
36
+ declare function __VLS_template(): {
37
+ slots: {
38
+ lefticon?(_: {}): any;
39
+ };
40
+ refs: {
41
+ btnEl: HTMLButtonElement;
42
+ };
43
+ attrs: Partial<{}>;
44
+ };
45
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
46
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ "update:modelValue": (modelValue: Optional<AccessibleSelectOptions>) => any;
48
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
49
+ "onUpdate:modelValue"?: ((modelValue: Optional<AccessibleSelectOptions>) => any) | undefined;
50
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
103
51
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
104
52
  export default _default;
105
53
  type __VLS_WithTemplateSlots<T, S> = T & {