@hotelinking/ui 14.47.8 → 14.47.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/ui.cjs +1 -1
- package/dist/ui.d.ts +2 -2
- package/dist/ui.es.js +42 -47
- package/package.json +1 -1
package/dist/ui.d.ts
CHANGED
|
@@ -870,8 +870,8 @@ onAddOnClicked?: (() => any) | undefined;
|
|
|
870
870
|
}>, {
|
|
871
871
|
loading: boolean;
|
|
872
872
|
type: "number" | "text" | "email" | "password" | "date" | "datetime-local";
|
|
873
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
874
873
|
placeholder: string;
|
|
874
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
875
875
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
876
876
|
|
|
877
877
|
export declare interface UiInputEventsInterface {
|
|
@@ -1864,8 +1864,8 @@ value?: string | undefined;
|
|
|
1864
1864
|
}>, {
|
|
1865
1865
|
disabled: boolean;
|
|
1866
1866
|
loading: boolean;
|
|
1867
|
-
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
1868
1867
|
placeholder: string;
|
|
1868
|
+
color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
|
|
1869
1869
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1870
1870
|
|
|
1871
1871
|
export declare interface UiTextAreaEventsInterface {
|
package/dist/ui.es.js
CHANGED
|
@@ -1957,10 +1957,10 @@ function Vs(p) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
var de = { exports: {} }, Ys = de.exports, Fe;
|
|
1959
1959
|
function qs() {
|
|
1960
|
-
return Fe || (Fe = 1, function(p, u) {
|
|
1960
|
+
return Fe || (Fe = 1, (function(p, u) {
|
|
1961
1961
|
(function(r, i) {
|
|
1962
1962
|
p.exports = i(V);
|
|
1963
|
-
})(Ys, function(r) {
|
|
1963
|
+
})(Ys, (function(r) {
|
|
1964
1964
|
function i(t) {
|
|
1965
1965
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
1966
1966
|
}
|
|
@@ -1968,16 +1968,16 @@ function qs() {
|
|
|
1968
1968
|
return t + "º";
|
|
1969
1969
|
} };
|
|
1970
1970
|
return s.default.locale(o, null, !0), o;
|
|
1971
|
-
});
|
|
1972
|
-
}(de)), de.exports;
|
|
1971
|
+
}));
|
|
1972
|
+
})(de)), de.exports;
|
|
1973
1973
|
}
|
|
1974
1974
|
qs();
|
|
1975
1975
|
var ue = { exports: {} }, Rs = ue.exports, Ie;
|
|
1976
1976
|
function Es() {
|
|
1977
|
-
return Ie || (Ie = 1, function(p, u) {
|
|
1977
|
+
return Ie || (Ie = 1, (function(p, u) {
|
|
1978
1978
|
(function(r, i) {
|
|
1979
1979
|
p.exports = i(V);
|
|
1980
|
-
})(Rs, function(r) {
|
|
1980
|
+
})(Rs, (function(r) {
|
|
1981
1981
|
function i(d) {
|
|
1982
1982
|
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
1983
1983
|
}
|
|
@@ -1990,30 +1990,30 @@ function Es() {
|
|
|
1990
1990
|
return d + ".";
|
|
1991
1991
|
}, weekStart: 1, yearStart: 4, formats: { LTS: "HH:mm:ss", LT: "HH:mm", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, relativeTime: { future: "in %s", past: "vor %s", s: t, m: t, mm: t, h: t, hh: t, d: t, dd: t, M: t, MM: t, y: t, yy: t } };
|
|
1992
1992
|
return s.default.locale(a, null, !0), a;
|
|
1993
|
-
});
|
|
1994
|
-
}(ue)), ue.exports;
|
|
1993
|
+
}));
|
|
1994
|
+
})(ue)), ue.exports;
|
|
1995
1995
|
}
|
|
1996
1996
|
Es();
|
|
1997
1997
|
var ce = { exports: {} }, Us = ce.exports, Ne;
|
|
1998
1998
|
function Hs() {
|
|
1999
|
-
return Ne || (Ne = 1, function(p, u) {
|
|
1999
|
+
return Ne || (Ne = 1, (function(p, u) {
|
|
2000
2000
|
(function(r, i) {
|
|
2001
2001
|
p.exports = i();
|
|
2002
|
-
})(Us, function() {
|
|
2002
|
+
})(Us, (function() {
|
|
2003
2003
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
|
|
2004
2004
|
var i = ["th", "st", "nd", "rd"], s = r % 100;
|
|
2005
2005
|
return "[" + r + (i[(s - 20) % 10] || i[s] || i[0]) + "]";
|
|
2006
2006
|
} };
|
|
2007
|
-
});
|
|
2008
|
-
}(ce)), ce.exports;
|
|
2007
|
+
}));
|
|
2008
|
+
})(ce)), ce.exports;
|
|
2009
2009
|
}
|
|
2010
2010
|
Hs();
|
|
2011
2011
|
var ge = { exports: {} }, Zs = ge.exports, Pe;
|
|
2012
2012
|
function Js() {
|
|
2013
|
-
return Pe || (Pe = 1, function(p, u) {
|
|
2013
|
+
return Pe || (Pe = 1, (function(p, u) {
|
|
2014
2014
|
(function(r, i) {
|
|
2015
2015
|
p.exports = i(V);
|
|
2016
|
-
})(Zs, function(r) {
|
|
2016
|
+
})(Zs, (function(r) {
|
|
2017
2017
|
function i(t) {
|
|
2018
2018
|
return t && typeof t == "object" && "default" in t ? t : { default: t };
|
|
2019
2019
|
}
|
|
@@ -2021,8 +2021,8 @@ function Js() {
|
|
|
2021
2021
|
return "" + t + (t === 1 ? "er" : "");
|
|
2022
2022
|
} };
|
|
2023
2023
|
return s.default.locale(o, null, !0), o;
|
|
2024
|
-
});
|
|
2025
|
-
}(ge)), ge.exports;
|
|
2024
|
+
}));
|
|
2025
|
+
})(ge)), ge.exports;
|
|
2026
2026
|
}
|
|
2027
2027
|
Js();
|
|
2028
2028
|
const le = (p, u) => {
|
|
@@ -2206,18 +2206,18 @@ function co(p, u, r, i, s, o) {
|
|
|
2206
2206
|
const nt = /* @__PURE__ */ le(lo, [["render", co]]);
|
|
2207
2207
|
var me = { exports: {} }, go = me.exports, Ve;
|
|
2208
2208
|
function mo() {
|
|
2209
|
-
return Ve || (Ve = 1, function(p, u) {
|
|
2209
|
+
return Ve || (Ve = 1, (function(p, u) {
|
|
2210
2210
|
(function(r, i) {
|
|
2211
2211
|
p.exports = i();
|
|
2212
|
-
})(go, function() {
|
|
2212
|
+
})(go, (function() {
|
|
2213
2213
|
return function(r, i, s) {
|
|
2214
2214
|
i.prototype.isToday = function() {
|
|
2215
2215
|
var o = "YYYY-MM-DD", t = s();
|
|
2216
2216
|
return this.format(o) === t.format(o);
|
|
2217
2217
|
};
|
|
2218
2218
|
};
|
|
2219
|
-
});
|
|
2220
|
-
}(me)), me.exports;
|
|
2219
|
+
}));
|
|
2220
|
+
})(me)), me.exports;
|
|
2221
2221
|
}
|
|
2222
2222
|
var po = mo();
|
|
2223
2223
|
const fo = /* @__PURE__ */ Vs(po), ho = {
|
|
@@ -4557,7 +4557,7 @@ const hr = /* @__PURE__ */ le(mr, [["render", fr]]), yr = /* @__PURE__ */ M({
|
|
|
4557
4557
|
}),
|
|
4558
4558
|
m(U, { loading: !0 }, {
|
|
4559
4559
|
default: h(() => d[2] || (d[2] = [
|
|
4560
|
-
L("Search")
|
|
4560
|
+
L("Search", -1)
|
|
4561
4561
|
])),
|
|
4562
4562
|
_: 1,
|
|
4563
4563
|
__: [2]
|
|
@@ -5376,13 +5376,8 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5376
5376
|
},
|
|
5377
5377
|
emits: ["smartFiltersSent"],
|
|
5378
5378
|
setup(p, { emit: u }) {
|
|
5379
|
-
const r = p, i = u, s = I({ id: "1", name: r.literals.and }), o = I({
|
|
5380
|
-
id: "1",
|
|
5381
|
-
name: "Nombre",
|
|
5382
|
-
componentType: "uiInput",
|
|
5383
|
-
defaultProps: { name: "nombre", value: "" }
|
|
5384
|
-
}), t = ae([]), a = (_) => _ ? _ === "uiInput" ? r.literals.contains : r.literals.is : "", d = (_) => {
|
|
5385
|
-
t.splice(0, t.length), _.logicOperator === "and" || _.logicOperator === r.literals.and ? s.value = { id: "1", name: r.literals.and } : (_.logicOperator === "or" || _.logicOperator === r.literals.or) && (s.value = { id: "2", name: r.literals.or }), _.filters.forEach((P) => {
|
|
5379
|
+
const r = p, i = u, s = I({ id: "1", name: r.literals.and }), o = ae([]), t = I(r.availableCategories[0]), a = (_) => _ ? _ === "uiInput" ? r.literals.contains : r.literals.is : "", d = (_) => {
|
|
5380
|
+
o.splice(0, o.length), _.logicOperator === "and" || _.logicOperator === r.literals.and ? s.value = { id: "1", name: r.literals.and } : (_.logicOperator === "or" || _.logicOperator === r.literals.or) && (s.value = { id: "2", name: r.literals.or }), _.filters.forEach((P) => {
|
|
5386
5381
|
const z = r.availableCategories.find((R) => R.name === P.category);
|
|
5387
5382
|
if (z) {
|
|
5388
5383
|
const R = {
|
|
@@ -5397,14 +5392,14 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5397
5392
|
const G = z.defaultProps.items?.find((ut) => ut.name === P.value);
|
|
5398
5393
|
G ? R.props.select = G : z.defaultProps.items && z.defaultProps.items.length > 0 && (R.props.select = z.defaultProps.items[0]);
|
|
5399
5394
|
}
|
|
5400
|
-
|
|
5395
|
+
o.push(R);
|
|
5401
5396
|
}
|
|
5402
5397
|
});
|
|
5403
5398
|
};
|
|
5404
5399
|
H(() => r.literals, (_) => {
|
|
5405
5400
|
s.value.id === "1" ? s.value.name = _.and : s.value.id === "2" && (s.value.name = _.or);
|
|
5406
5401
|
}, { deep: !0 }), H(() => r.availableCategories, (_) => {
|
|
5407
|
-
_.length > 0 && (_.some((z) => z.id ===
|
|
5402
|
+
_.length > 0 && (_.some((z) => z.id === t.value.id) || (t.value = _[0]));
|
|
5408
5403
|
}, { deep: !0 }), H(() => r.filters, (_) => {
|
|
5409
5404
|
_ && d(_);
|
|
5410
5405
|
}, { deep: !0, immediate: !0 });
|
|
@@ -5415,9 +5410,9 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5415
5410
|
id: _.id,
|
|
5416
5411
|
name: _.name
|
|
5417
5412
|
}))), j = Y(() => ({
|
|
5418
|
-
id:
|
|
5419
|
-
name:
|
|
5420
|
-
})), w = Y(() =>
|
|
5413
|
+
id: t.value.id,
|
|
5414
|
+
name: t.value.name
|
|
5415
|
+
})), w = Y(() => o.map((_) => _.type === "uiInput" ? {
|
|
5421
5416
|
name: _.name,
|
|
5422
5417
|
operator: r.literals.contains,
|
|
5423
5418
|
value: _.props.value || ""
|
|
@@ -5433,28 +5428,28 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5433
5428
|
s.value = Array.isArray(_) ? _[0] || { id: "1", name: r.literals.and } : _;
|
|
5434
5429
|
}, x = (_) => {
|
|
5435
5430
|
const P = Array.isArray(_) ? _[0] : _, z = r.availableCategories.find((R) => R.id === P.id);
|
|
5436
|
-
z && (
|
|
5431
|
+
z && (t.value = z);
|
|
5437
5432
|
}, F = () => {
|
|
5438
|
-
if (!
|
|
5433
|
+
if (!t.value) return;
|
|
5439
5434
|
const _ = {
|
|
5440
5435
|
id: Date.now().toString(),
|
|
5441
|
-
name:
|
|
5442
|
-
type:
|
|
5443
|
-
props: { ...
|
|
5436
|
+
name: t.value.name,
|
|
5437
|
+
type: t.value.componentType,
|
|
5438
|
+
props: { ...t.value.defaultProps }
|
|
5444
5439
|
};
|
|
5445
|
-
|
|
5440
|
+
o.push(_);
|
|
5446
5441
|
}, O = (_, P) => {
|
|
5447
|
-
if (_ < 0 || _ >=
|
|
5448
|
-
const z =
|
|
5442
|
+
if (_ < 0 || _ >= o.length) return;
|
|
5443
|
+
const z = o[_];
|
|
5449
5444
|
z.type === "uiInput" ? typeof P == "string" && (z.props.value = P) : z.type === "uiSelect" && (Array.isArray(P) ? z.props.select = P[0] : typeof P == "object" && P !== null && (z.props.select = P));
|
|
5450
5445
|
}, C = (_) => {
|
|
5451
|
-
_ >= 0 && _ <
|
|
5446
|
+
_ >= 0 && _ < o.length && o.splice(_, 1);
|
|
5452
5447
|
}, q = () => {
|
|
5453
|
-
|
|
5448
|
+
o.splice(0, o.length);
|
|
5454
5449
|
}, N = () => {
|
|
5455
5450
|
const P = {
|
|
5456
5451
|
logicOperator: s.value.id === "1" ? "and" : "or",
|
|
5457
|
-
filters:
|
|
5452
|
+
filters: o.map((z) => ({
|
|
5458
5453
|
category: z.name,
|
|
5459
5454
|
type: z.type,
|
|
5460
5455
|
value: z.type === "uiInput" ? z.props.value : z.props.select?.name
|
|
@@ -5502,16 +5497,16 @@ const Ye = /* @__PURE__ */ le(Rd, [["render", Ud]]), Hd = { class: "flex flex-co
|
|
|
5502
5497
|
m(U, {
|
|
5503
5498
|
loading: !1,
|
|
5504
5499
|
onClick: F,
|
|
5505
|
-
disabled: !
|
|
5500
|
+
disabled: !t.value
|
|
5506
5501
|
}, {
|
|
5507
5502
|
default: h(() => P[0] || (P[0] = [
|
|
5508
|
-
L(" Agregar Filtro ")
|
|
5503
|
+
L(" Agregar Filtro ", -1)
|
|
5509
5504
|
])),
|
|
5510
5505
|
_: 1,
|
|
5511
5506
|
__: [0]
|
|
5512
5507
|
}, 8, ["disabled"])
|
|
5513
5508
|
]),
|
|
5514
|
-
(l(!0), n($, null, S(
|
|
5509
|
+
(l(!0), n($, null, S(o, (z, R) => (l(), n("div", {
|
|
5515
5510
|
class: "flex items-center gap-x-2 w-full",
|
|
5516
5511
|
key: z.id
|
|
5517
5512
|
}, [
|