@point-hub/papp 0.0.40 → 0.0.41
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/index.js +43 -31
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9175,65 +9175,77 @@ const Ah = ["autofocus", "required", "disabled"], yh = /* @__PURE__ */ R({
|
|
|
9175
9175
|
},
|
|
9176
9176
|
emits: ["isoValue", "update:modelValue"],
|
|
9177
9177
|
setup(e, { expose: t, emit: n }) {
|
|
9178
|
-
const r = e, a = n, i = E({
|
|
9179
|
-
set: (
|
|
9178
|
+
const r = e, a = n, i = P(r.errors), o = E({
|
|
9179
|
+
set: (c) => {
|
|
9180
9180
|
if (!r.disabled) {
|
|
9181
|
-
|
|
9182
|
-
|
|
9181
|
+
i.value = [];
|
|
9182
|
+
const p = c.split("-");
|
|
9183
|
+
if (!c) {
|
|
9184
|
+
i.value = ["Invalid date format"];
|
|
9185
|
+
return;
|
|
9186
|
+
}
|
|
9187
|
+
if (p.length !== 3 || Number(p[2]) < 1e3) {
|
|
9188
|
+
i.value = ["Invalid date format"], d.value = "", a("update:modelValue", "");
|
|
9189
|
+
return;
|
|
9190
|
+
}
|
|
9191
|
+
const h = /* @__PURE__ */ new Date();
|
|
9192
|
+
h.setDate(Number(p[0])), h.setMonth(Number(p[1])), h.setFullYear(Number(p[2])), d.value = `${p[2]}-${p[1]}-${p[0]}`, a("isoValue", bh(h)), a("update:modelValue", c);
|
|
9183
9193
|
}
|
|
9184
9194
|
},
|
|
9185
9195
|
get: () => r.modelValue
|
|
9186
|
-
}),
|
|
9187
|
-
r.disabled || (
|
|
9188
|
-
},
|
|
9189
|
-
le(
|
|
9190
|
-
|
|
9196
|
+
}), l = P(), s = () => {
|
|
9197
|
+
r.disabled || (l.value.focus(), l.value.showPicker());
|
|
9198
|
+
}, d = P();
|
|
9199
|
+
le(d, (c) => {
|
|
9200
|
+
c ? o.value = hh(new Date(c), "dd-MM-yyyy") : a("update:modelValue", ""), l.value.blur();
|
|
9191
9201
|
});
|
|
9192
|
-
const
|
|
9202
|
+
const u = P();
|
|
9193
9203
|
return t({
|
|
9194
|
-
inputRef:
|
|
9195
|
-
dateRef:
|
|
9196
|
-
}), (
|
|
9197
|
-
const
|
|
9204
|
+
inputRef: u,
|
|
9205
|
+
dateRef: l
|
|
9206
|
+
}), (c, p) => {
|
|
9207
|
+
const h = Re("base-icon"), v = jo("input-mask");
|
|
9198
9208
|
return k(), V(re(je), {
|
|
9199
9209
|
label: r.label,
|
|
9200
9210
|
layout: r.layout,
|
|
9201
9211
|
description: r.description,
|
|
9202
9212
|
required: r.required,
|
|
9203
9213
|
helpers: r.helpers,
|
|
9204
|
-
errors:
|
|
9214
|
+
errors: i.value
|
|
9205
9215
|
}, {
|
|
9206
9216
|
default: N(() => [
|
|
9207
9217
|
tt(C("input", {
|
|
9208
9218
|
ref_key: "dateRef",
|
|
9209
|
-
ref:
|
|
9210
|
-
"onUpdate:modelValue":
|
|
9219
|
+
ref: l,
|
|
9220
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => d.value = m),
|
|
9211
9221
|
type: "date",
|
|
9212
|
-
class: "form-input absolute -z-50 text-transparent bg-transparent"
|
|
9213
|
-
|
|
9214
|
-
|
|
9222
|
+
class: q(["form-input absolute! -z-50 text-transparent bg-transparent", {
|
|
9223
|
+
"pl-0!": c.border === "simple" || c.border === "none"
|
|
9224
|
+
}])
|
|
9225
|
+
}, null, 2), [
|
|
9226
|
+
[rn, d.value]
|
|
9215
9227
|
]),
|
|
9216
9228
|
(k(), V(re(Pe), {
|
|
9217
9229
|
variant: "text",
|
|
9218
9230
|
type: "button",
|
|
9219
9231
|
class: "absolute right-0 px-4 py-2",
|
|
9220
|
-
onClick:
|
|
9232
|
+
onClick: p[1] || (p[1] = (m) => s())
|
|
9221
9233
|
}, {
|
|
9222
9234
|
default: N(() => [
|
|
9223
|
-
Q(
|
|
9235
|
+
Q(h, { icon: "i-far-calendar" })
|
|
9224
9236
|
]),
|
|
9225
9237
|
_: 1
|
|
9226
9238
|
})),
|
|
9227
9239
|
tt(C("input", {
|
|
9228
9240
|
ref_key: "inputRef",
|
|
9229
|
-
ref:
|
|
9230
|
-
"onUpdate:modelValue":
|
|
9241
|
+
ref: u,
|
|
9242
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => o.value = m),
|
|
9231
9243
|
type: "text",
|
|
9232
9244
|
class: q(["form-input bg-inherit", {
|
|
9233
|
-
"border-simple pl-0!":
|
|
9234
|
-
"border-full":
|
|
9235
|
-
"border-none pl-0!":
|
|
9236
|
-
"input-disabled":
|
|
9245
|
+
"border-simple pl-0!": c.border === "simple",
|
|
9246
|
+
"border-full": c.border === "full",
|
|
9247
|
+
"border-none pl-0!": c.border === "none",
|
|
9248
|
+
"input-disabled": c.disabled
|
|
9237
9249
|
}]),
|
|
9238
9250
|
placeholder: "DD-MM-YYYY",
|
|
9239
9251
|
autofocus: r.autofocus,
|
|
@@ -9242,18 +9254,18 @@ const Ah = ["autofocus", "required", "disabled"], yh = /* @__PURE__ */ R({
|
|
|
9242
9254
|
}, null, 10, Ah), [
|
|
9243
9255
|
[
|
|
9244
9256
|
rn,
|
|
9245
|
-
|
|
9257
|
+
o.value,
|
|
9246
9258
|
void 0,
|
|
9247
9259
|
{ lazy: !0 }
|
|
9248
9260
|
],
|
|
9249
|
-
[
|
|
9261
|
+
[v, { date: !0, delimiter: "-", datePattern: ["d", "m", "Y"] }]
|
|
9250
9262
|
])
|
|
9251
9263
|
]),
|
|
9252
9264
|
_: 1
|
|
9253
9265
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
|
|
9254
9266
|
};
|
|
9255
9267
|
}
|
|
9256
|
-
}), wh = /* @__PURE__ */ se(yh, [["__scopeId", "data-v-
|
|
9268
|
+
}), wh = /* @__PURE__ */ se(yh, [["__scopeId", "data-v-08800660"]]), xh = ["multiple", "autofocus", "required", "disabled"], Sh = ["multiple", "required", "disabled"], Oh = /* @__PURE__ */ R({
|
|
9257
9269
|
__name: "base-file-upload",
|
|
9258
9270
|
props: {
|
|
9259
9271
|
id: {},
|