@wikicasa-dev/components 1.5.8 → 1.5.10

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,7 +1,7 @@
1
1
  import './assets/BaseInput.css';
2
2
  import v from "./BaseFloatingLabel.js";
3
3
  import { useFloatingLabel as y } from "./useFloatingLabel.js";
4
- import { defineComponent as w, resolveComponent as g, openBlock as l, createElementBlock as s, normalizeClass as n, renderSlot as d, createElementVNode as o, withModifiers as p, withKeys as V, createCommentVNode as b, createBlock as c, Fragment as m, renderList as $ } from "vue";
4
+ import { defineComponent as w, resolveComponent as g, openBlock as l, createElementBlock as s, normalizeClass as n, renderSlot as o, createElementVNode as p, withModifiers as b, withKeys as V, createCommentVNode as r, createBlock as c, Fragment as m, renderList as $ } from "vue";
5
5
  import { _ as I } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  const F = w({
7
7
  name: "BaseInput",
@@ -40,7 +40,7 @@ const F = w({
40
40
  setInitialLabelState: k,
41
41
  handleFocusIn: h,
42
42
  handleFocusOut: f,
43
- setInlineLabel: r,
43
+ setInlineLabel: u,
44
44
  setFloatingLabel: i
45
45
  } = y(t.emit);
46
46
  return {
@@ -48,7 +48,7 @@ const F = w({
48
48
  setInitialLabelState: k,
49
49
  handleFocusIn: h,
50
50
  handleFocusOut: f,
51
- setInlineLabel: r,
51
+ setInlineLabel: u,
52
52
  setFloatingLabel: i
53
53
  };
54
54
  },
@@ -151,9 +151,12 @@ const F = w({
151
151
  }), L = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder"], C = {
152
152
  key: 0,
153
153
  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"
154
- }, S = ["innerHTML"], T = ["innerHTML"], O = ["innerHTML"], B = { class: "under-label uikit-absolute uikit-text-12" };
154
+ }, S = ["innerHTML"], T = ["innerHTML"], O = ["innerHTML"], B = {
155
+ key: 1,
156
+ class: "under-label uikit-absolute uikit-text-12"
157
+ };
155
158
  function j(e, t, a, k, h, f) {
156
- const r = g("base-floating-label");
159
+ const u = g("base-floating-label");
157
160
  return l(), s("div", {
158
161
  class: n(["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", [
159
162
  e.$attrs.class,
@@ -169,13 +172,13 @@ function j(e, t, a, k, h, f) {
169
172
  { "is-invalid": e.isValid === !1, "is-valid": e.isValid }
170
173
  ]])
171
174
  }, [
172
- d(e.$slots, "leftIcon", {}, void 0, !0),
173
- d(e.$slots, "righticon", {
175
+ o(e.$slots, "leftIcon", {}, void 0, !0),
176
+ o(e.$slots, "righticon", {
174
177
  handleClean: e.handleClean,
175
178
  handleShowPasswd: e.handleShowPasswd,
176
179
  curType: e.type
177
180
  }, void 0, !0),
178
- o("input", {
181
+ p("input", {
179
182
  id: e.$attrs.id,
180
183
  ref: "baseInput",
181
184
  "data-cy": e.$attrs["data-cy"],
@@ -210,15 +213,15 @@ function j(e, t, a, k, h, f) {
210
213
  inputmode: e.$attrs.inputmode,
211
214
  placeholder: e.$attrs.placeholder,
212
215
  onClick: t[0] || (t[0] = (...i) => e.handleClick && e.handleClick(...i)),
213
- onFocusin: t[1] || (t[1] = p(() => e.handleFocusIn(), ["stop"])),
214
- onFocusout: t[2] || (t[2] = p((i) => !e.keepFloatingLabel && e.handleFocusOut(e.modelValue, !1, e.auto), ["stop"])),
215
- onInput: t[3] || (t[3] = p((...i) => e.handleInputChange && e.handleInputChange(...i), ["stop"])),
216
+ onFocusin: t[1] || (t[1] = b(() => e.handleFocusIn(), ["stop"])),
217
+ onFocusout: t[2] || (t[2] = b((i) => !e.keepFloatingLabel && e.handleFocusOut(e.modelValue, !1, e.auto), ["stop"])),
218
+ onInput: t[3] || (t[3] = b((...i) => e.handleInputChange && e.handleInputChange(...i), ["stop"])),
216
219
  onKeydown: [
217
220
  t[4] || (t[4] = V((i) => e.$emit("keydown-enter-pressed"), ["enter"])),
218
221
  t[5] || (t[5] = (i) => e.$emit("keydown", i))
219
222
  ]
220
223
  }, null, 42, L),
221
- o("fieldset", {
224
+ p("fieldset", {
222
225
  class: n(["uikit-pointer-events-none uikit-absolute -uikit-top-[6px] uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-[50px] uikit-overflow-hidden uikit-px-2 uikit-py-0 uikit-text-left", [
223
226
  { "uikit-border-0": !e.border },
224
227
  {
@@ -233,7 +236,7 @@ function j(e, t, a, k, h, f) {
233
236
  ]])
234
237
  }, [
235
238
  e.labelText ? (l(), s("legend", C, [
236
- o("span", {
239
+ p("span", {
237
240
  class: n(["visible-label uikit-opacity-0", [
238
241
  { "uikit-mx-5px": e.labelText },
239
242
  {
@@ -245,9 +248,9 @@ function j(e, t, a, k, h, f) {
245
248
  ]]),
246
249
  innerHTML: e.labelText
247
250
  }, null, 10, S)
248
- ])) : b("", !0)
251
+ ])) : r("", !0)
249
252
  ], 2),
250
- e.labelText ? (l(), c(r, {
253
+ e.labelText ? (l(), c(u, {
251
254
  key: 0,
252
255
  for: e.$attrs.id,
253
256
  "label-text": e.labelText,
@@ -257,22 +260,24 @@ function j(e, t, a, k, h, f) {
257
260
  disabled: e.$attrs.disabled,
258
261
  "label-classes": e.$attrs["label-classes"],
259
262
  onClick: e.handleFloatingLabelClick
260
- }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "onClick"])) : b("", !0),
261
- e.isValid === !1 ? (l(!0), s(m, { key: 1 }, $(e.feedbackObj.invalid, (i, u) => (l(), s("div", {
262
- key: `${e.$attrs.id}_invalid_${u}`,
263
- class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
264
- innerHTML: i
265
- }, null, 8, T))), 128)) : e.isValid === !0 ? (l(!0), s(m, { key: 2 }, $(e.feedbackObj.valid, (i, u) => (l(), s("div", {
266
- key: `${e.$attrs.id}_valid_${u}`,
267
- class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
268
- innerHTML: i
269
- }, null, 8, O))), 128)) : b("", !0),
270
- o("div", B, [
271
- d(e.$slots, "under-label", {}, void 0, !0)
272
- ])
263
+ }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "onClick"])) : r("", !0),
264
+ o(e.$slots, "feedback", {}, () => [
265
+ e.isValid === !1 ? (l(!0), s(m, { key: 0 }, $(e.feedbackObj.invalid, (i, d) => (l(), s("div", {
266
+ key: `${e.$attrs.id}_invalid_${d}`,
267
+ class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
268
+ innerHTML: i
269
+ }, null, 8, T))), 128)) : e.isValid === !0 ? (l(!0), s(m, { key: 1 }, $(e.feedbackObj.valid, (i, d) => (l(), s("div", {
270
+ key: `${e.$attrs.id}_valid_${d}`,
271
+ class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
272
+ innerHTML: i
273
+ }, null, 8, O))), 128)) : r("", !0)
274
+ ], !0),
275
+ e.$slots["under-label"] ? (l(), s("div", B, [
276
+ o(e.$slots, "under-label", {}, void 0, !0)
277
+ ])) : r("", !0)
273
278
  ], 2);
274
279
  }
275
- const z = /* @__PURE__ */ I(F, [["render", j], ["__scopeId", "data-v-5382c1b6"]]);
280
+ const z = /* @__PURE__ */ I(F, [["render", j], ["__scopeId", "data-v-2742880d"]]);
276
281
  export {
277
282
  z as default
278
283
  };
@@ -1 +1 @@
1
- .input-wrapper[data-v-5382c1b6]{--icon-default-size: 44px}.invalid-bg[data-v-5382c1b6]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-5382c1b6]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-5382c1b6],.valid-bg[data-v-5382c1b6]{background-position:top 12px right 12px;background-size:20px}.has-right-icon[data-v-5382c1b6]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-5382c1b6]>label.inline-label{left:var(--icon-default-size)}[data-v-5382c1b6] .text-input-icon{position:absolute;box-sizing:border-box;--icon-size-sm: 16px;--icon-size-md: 20px;--icon-size-lg: 25px}[data-v-5382c1b6] .text-input-icon.left{left:5px}[data-v-5382c1b6] .text-input-icon.right{right:5px}[data-v-5382c1b6] .text-input-icon{--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:0}[data-v-5382c1b6] .text-input-icon.md{--icon-size: var(--icon-size-md)}[data-v-5382c1b6] .text-input-icon.lg{--icon-size: var(--icon-size-lg)}.no-floating-label[data-v-5382c1b6]{height:42px}.under-label[data-v-5382c1b6]{left:4px;font-style:italic}
1
+ .input-wrapper[data-v-2742880d]{--icon-default-size: 44px}.invalid-bg[data-v-2742880d]{--invalid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMicgaGVpZ2h0PScxMicgZmlsbD0nbm9uZScgc3Ryb2tlPScjRkE0RjY0Jz48Y2lyY2xlIGN4PSc2JyBjeT0nNicgcj0nNC41Jy8+PHBhdGggc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcgZD0nTTUuOCAzLjZoLjRMNiA2LjV6Jy8+PGNpcmNsZSBjeD0nNicgY3k9JzguMicgcj0nLjYnIGZpbGw9JyNGQTRGNjQnIHN0cm9rZT0nbm9uZScvPjwvc3ZnPg==);background-image:var(--invalid-img)}.valid-bg[data-v-2742880d]{--valid-img: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDgnPjxwYXRoIGZpbGw9JyMyQjVERkYnIGQ9J00yLjMgNi43My42IDQuNTNjLS40LTEuMDQuNDYtMS40IDEuMS0uOGwxLjEgMS40IDMuNC0zLjhjLjYtLjYzIDEuNi0uMjcgMS4yLjdsLTQgNC42Yy0uNDMuNS0uOC40LTEuMS4xeicvPjwvc3ZnPg==);background-image:var(--valid-img)}.invalid-bg[data-v-2742880d],.valid-bg[data-v-2742880d]{background-position:top 12px right 12px;background-size:20px}.has-right-icon[data-v-2742880d]>label.inline-label{right:var(--icon-default-size)}.has-left-icon[data-v-2742880d]>label.inline-label{left:var(--icon-default-size)}[data-v-2742880d] .text-input-icon{position:absolute;box-sizing:border-box;--icon-size-sm: 16px;--icon-size-md: 20px;--icon-size-lg: 25px}[data-v-2742880d] .text-input-icon.left{left:5px}[data-v-2742880d] .text-input-icon.right{right:5px}[data-v-2742880d] .text-input-icon{--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:0}[data-v-2742880d] .text-input-icon.md{--icon-size: var(--icon-size-md)}[data-v-2742880d] .text-input-icon.lg{--icon-size: var(--icon-size-lg)}.no-floating-label[data-v-2742880d]{height:42px}.under-label[data-v-2742880d]{left:4px;font-style:italic}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  "@storybook/vue3-vite": "^8.0.2",
49
49
  "@types/node": "^20.5.0",
50
50
  "@vitejs/plugin-vue": "^5.0.4",
51
- "@wikicasa-dev/types": "^1.0.8",
51
+ "@wikicasa-dev/types": "^1.0.9",
52
52
  "@wikicasa-dev/utilities": "^0.2.1",
53
53
  "@wikicasa-dev/svg-icons": "^0.0.1",
54
54
  "@wikicasa-dev/vue-composables": "^0.0.3",