@retailcrm/embed-ui-v1-components 0.9.11-alpha.1 → 0.9.11-alpha.2
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/host.cjs +266 -1809
- package/dist/host.css +36 -0
- package/dist/host.d.ts +30 -1
- package/dist/host.js +220 -1763
- package/dist/remote.cjs +230 -2702
- package/dist/remote.d.ts +5 -1
- package/dist/remote.js +157 -2629
- package/package.json +3 -2
package/dist/host.js
CHANGED
|
@@ -2,8 +2,9 @@ import { defineComponent, openBlock, createBlock, Transition, withCtx, renderSlo
|
|
|
2
2
|
import { preview } from "@retailcrm/image-preview";
|
|
3
3
|
import isEqual from "lodash.isequal";
|
|
4
4
|
import { format, formatISO } from "date-fns";
|
|
5
|
+
import { ru, es, enGB } from "date-fns/locale";
|
|
5
6
|
import { PerfectScrollbar } from "vue3-perfect-scrollbar";
|
|
6
|
-
import "@remote
|
|
7
|
+
import { createProvider as createProvider$1 } from "@omnicajs/vue-remote/host";
|
|
7
8
|
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
8
9
|
__name: "UiTransition",
|
|
9
10
|
props: {
|
|
@@ -32,13 +33,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
|
-
const _hoisted_1$
|
|
36
|
+
const _hoisted_1$P = {
|
|
36
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
37
38
|
fill: "none",
|
|
38
39
|
viewBox: "0 0 24 24"
|
|
39
40
|
};
|
|
40
41
|
function render$n(_ctx, _cache) {
|
|
41
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
42
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$P, [..._cache[0] || (_cache[0] = [
|
|
42
43
|
createElementVNode("path", {
|
|
43
44
|
fill: "currentColor",
|
|
44
45
|
"fill-rule": "evenodd",
|
|
@@ -48,12 +49,12 @@ function render$n(_ctx, _cache) {
|
|
|
48
49
|
])]);
|
|
49
50
|
}
|
|
50
51
|
const IconCheckmarkCircleOutlined = { render: render$n };
|
|
51
|
-
const _hoisted_1$
|
|
52
|
+
const _hoisted_1$O = {
|
|
52
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
53
54
|
viewBox: "0 0 24 24"
|
|
54
55
|
};
|
|
55
56
|
function render$m(_ctx, _cache) {
|
|
56
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
57
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$O, [..._cache[0] || (_cache[0] = [
|
|
57
58
|
createElementVNode("path", {
|
|
58
59
|
fill: "currentColor",
|
|
59
60
|
d: "M7.113 6.176a.6.6 0 0 1 .848 0L12 10.214l4.038-4.038a.6.6 0 0 1 .849 0l.937.937a.6.6 0 0 1 0 .848L13.785 12l4.04 4.04a.6.6 0 0 1 0 .848l-.937.937a.6.6 0 0 1-.849 0L12 13.784l-4.038 4.04a.6.6 0 0 1-.849 0l-.937-.937a.6.6 0 0 1 0-.848l4.04-4.04-4.039-4.038a.6.6 0 0 1 0-.849z"
|
|
@@ -61,12 +62,12 @@ function render$m(_ctx, _cache) {
|
|
|
61
62
|
])]);
|
|
62
63
|
}
|
|
63
64
|
const IconClear = { render: render$m };
|
|
64
|
-
const _hoisted_1$
|
|
65
|
+
const _hoisted_1$N = {
|
|
65
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
67
|
viewBox: "0 0 24 24"
|
|
67
68
|
};
|
|
68
69
|
function render$l(_ctx, _cache) {
|
|
69
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
70
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$N, [..._cache[0] || (_cache[0] = [
|
|
70
71
|
createElementVNode("path", {
|
|
71
72
|
fill: "currentColor",
|
|
72
73
|
"fill-rule": "evenodd",
|
|
@@ -76,12 +77,12 @@ function render$l(_ctx, _cache) {
|
|
|
76
77
|
])]);
|
|
77
78
|
}
|
|
78
79
|
const IconClearCircleOutlined = { render: render$l };
|
|
79
|
-
const _hoisted_1$
|
|
80
|
+
const _hoisted_1$M = {
|
|
80
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
81
82
|
viewBox: "0 0 24 24"
|
|
82
83
|
};
|
|
83
84
|
function render$k(_ctx, _cache) {
|
|
84
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
85
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$M, [..._cache[0] || (_cache[0] = [
|
|
85
86
|
createElementVNode("path", {
|
|
86
87
|
fill: "currentColor",
|
|
87
88
|
d: "M2 12C2 6.477 6.477 2 12 2A10 10 0 1 1 2 12m2 0a8 8 0 1 0 16 0 8 8 0 0 0-16 0m7.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-.18-6h1.36a.5.5 0 0 1 .5.56l-.4 3.22a.25.25 0 0 1-.25.22h-1.06a.25.25 0 0 1-.25-.22l-.4-3.22a.5.5 0 0 1 .5-.56"
|
|
@@ -89,12 +90,12 @@ function render$k(_ctx, _cache) {
|
|
|
89
90
|
])]);
|
|
90
91
|
}
|
|
91
92
|
const IconErrorOutlined = { render: render$k };
|
|
92
|
-
const _hoisted_1$
|
|
93
|
+
const _hoisted_1$L = {
|
|
93
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
95
|
viewBox: "0 0 24 24"
|
|
95
96
|
};
|
|
96
97
|
function render$j(_ctx, _cache) {
|
|
97
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
98
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$L, [..._cache[0] || (_cache[0] = [
|
|
98
99
|
createElementVNode("path", {
|
|
99
100
|
fill: "currentColor",
|
|
100
101
|
"fill-rule": "evenodd",
|
|
@@ -111,7 +112,7 @@ var VARIANT$1 = /* @__PURE__ */ ((VARIANT2) => {
|
|
|
111
112
|
VARIANT2["DANGER"] = "danger";
|
|
112
113
|
return VARIANT2;
|
|
113
114
|
})(VARIANT$1 || {});
|
|
114
|
-
const _hoisted_1$
|
|
115
|
+
const _hoisted_1$K = ["aria-hidden", "aria-live"];
|
|
115
116
|
const _hoisted_2$k = {
|
|
116
117
|
key: 0,
|
|
117
118
|
class: "ui-v1-alert__icon-outline"
|
|
@@ -275,7 +276,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
275
276
|
}, [
|
|
276
277
|
createVNode(unref(IconClear), { class: "ui-v1-alert__close-icon" })
|
|
277
278
|
])) : createCommentVNode("", true)
|
|
278
|
-
], 16, _hoisted_1$
|
|
279
|
+
], 16, _hoisted_1$K), [
|
|
279
280
|
[vShow, state.shown]
|
|
280
281
|
])
|
|
281
282
|
]),
|
|
@@ -284,12 +285,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
284
285
|
};
|
|
285
286
|
}
|
|
286
287
|
});
|
|
287
|
-
const _hoisted_1$
|
|
288
|
+
const _hoisted_1$J = {
|
|
288
289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
289
290
|
viewBox: "0 0 24 24"
|
|
290
291
|
};
|
|
291
292
|
function render$i(_ctx, _cache) {
|
|
292
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
293
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$J, [..._cache[0] || (_cache[0] = [
|
|
293
294
|
createElementVNode("path", {
|
|
294
295
|
fill: "currentColor",
|
|
295
296
|
"fill-rule": "evenodd",
|
|
@@ -311,7 +312,7 @@ const isNumeric = (value) => !isNaN(Number(value));
|
|
|
311
312
|
const normalizeHeight = (height) => {
|
|
312
313
|
return isNumeric(height) ? `${height}px` : `${height}`;
|
|
313
314
|
};
|
|
314
|
-
const _hoisted_1$
|
|
315
|
+
const _hoisted_1$I = ["type", "disabled"];
|
|
315
316
|
const _hoisted_2$j = { class: "ui-v1-add-button__content" };
|
|
316
317
|
const _hoisted_3$g = { class: "ui-v1-add-button__title" };
|
|
317
318
|
const _hoisted_4$b = {
|
|
@@ -375,16 +376,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
375
376
|
renderSlot(_ctx.$slots, "description")
|
|
376
377
|
])) : createCommentVNode("", true)
|
|
377
378
|
])
|
|
378
|
-
], 16, _hoisted_1$
|
|
379
|
+
], 16, _hoisted_1$I);
|
|
379
380
|
};
|
|
380
381
|
}
|
|
381
382
|
});
|
|
382
|
-
const _hoisted_1$
|
|
383
|
+
const _hoisted_1$H = {
|
|
383
384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
384
385
|
viewBox: "0 0 24 24"
|
|
385
386
|
};
|
|
386
387
|
function render$h(_ctx, _cache) {
|
|
387
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
388
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$H, [..._cache[0] || (_cache[0] = [
|
|
388
389
|
createElementVNode("path", {
|
|
389
390
|
fill: "currentColor",
|
|
390
391
|
"fill-rule": "evenodd",
|
|
@@ -394,24 +395,24 @@ function render$h(_ctx, _cache) {
|
|
|
394
395
|
])]);
|
|
395
396
|
}
|
|
396
397
|
const IconHelpOutlined = { render: render$h };
|
|
397
|
-
const _hoisted_1$
|
|
398
|
+
const _hoisted_1$G = {
|
|
398
399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
399
400
|
viewBox: "0 0 18 8"
|
|
400
401
|
};
|
|
401
402
|
function render$g(_ctx, _cache) {
|
|
402
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
403
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$G, [..._cache[0] || (_cache[0] = [
|
|
403
404
|
createElementVNode("g", { fill: "currentColor" }, [
|
|
404
405
|
createElementVNode("path", { d: "M0 0v8h2.867q1.257-.011 1.935-.604.68-.594.68-1.748 0-.675-.33-1.143a1.54 1.54 0 0 0-.892-.62q.497-.21.775-.654.279-.45.279-1.039 0-1.077-.694-1.632Q3.926 0 2.584 0zm1.52 6.676v-2.16h1.393q1.048.016 1.048 1.116 0 .488-.303.77-.3.273-.836.274zm1.124-3.324H1.52V1.335h1.064q.628 0 .916.242.294.236.294.78 0 .972-1.15.995M7.503 6.352h2.665L10.679 8h1.616l-2.76-8H8.125L5.38 8h1.616zm2.254-1.336H7.913l.917-2.994zM12.362 8V0h2.27q.972 0 1.737.478.77.473 1.2 1.352.432.873.431 1.989v.368q0 1.115-.425 1.983a3.17 3.17 0 0 1-1.191 1.346A3.26 3.26 0 0 1 14.646 8zm1.52-6.665v5.34h.734q.891 0 1.363-.631.47-.632.481-1.808v-.423q0-1.22-.466-1.846-.466-.632-1.363-.632z" })
|
|
405
406
|
], -1)
|
|
406
407
|
])]);
|
|
407
408
|
}
|
|
408
409
|
const SpriteBAD = { render: render$g };
|
|
409
|
-
const _hoisted_1$
|
|
410
|
+
const _hoisted_1$F = {
|
|
410
411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
411
412
|
viewBox: "0 0 16 8"
|
|
412
413
|
};
|
|
413
414
|
function render$f(_ctx, _cache) {
|
|
414
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
415
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$F, [..._cache[0] || (_cache[0] = [
|
|
415
416
|
createElementVNode("g", { fill: "currentColor" }, [
|
|
416
417
|
createElementVNode("path", { d: "M3.373 6.016 5.058 0h1.704L4.175 8H2.577L0 0h1.7zM8.99 8H7.46V0H8.99zM11.84 8V5.181h1.343q1.322 0 2.067-.676.75-.681.75-1.857 0-.774-.342-1.379a2.3 2.3 0 0 0-.98-.94Q14.045 0 13.208 0H10.31v8zm1.368-4.154h-1.367v-2.51h1.403q.567.01.888.373t.322.95q0 .571-.322.88-.316.307-.924.307" })
|
|
417
418
|
], -1)
|
|
@@ -419,7 +420,7 @@ function render$f(_ctx, _cache) {
|
|
|
419
420
|
}
|
|
420
421
|
const SpriteVIP = { render: render$f };
|
|
421
422
|
const ImageWorkersKey = Symbol("$image.workers");
|
|
422
|
-
const _hoisted_1$
|
|
423
|
+
const _hoisted_1$E = ["alt", "src"];
|
|
423
424
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
424
425
|
__name: "UiImage",
|
|
425
426
|
props: {
|
|
@@ -456,7 +457,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
456
457
|
return openBlock(), createElementBlock("img", mergeProps({
|
|
457
458
|
alt: __props.alt,
|
|
458
459
|
src: url.value
|
|
459
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
460
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$E);
|
|
460
461
|
};
|
|
461
462
|
}
|
|
462
463
|
});
|
|
@@ -490,7 +491,7 @@ var STATUS = /* @__PURE__ */ ((STATUS2) => {
|
|
|
490
491
|
return STATUS2;
|
|
491
492
|
})(STATUS || {});
|
|
492
493
|
const AvatarSizeKey = Symbol("UiAvatarSize");
|
|
493
|
-
const _hoisted_1$
|
|
494
|
+
const _hoisted_1$D = {
|
|
494
495
|
key: 1,
|
|
495
496
|
class: "ui-v1-avatar__unresolved"
|
|
496
497
|
};
|
|
@@ -606,7 +607,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
606
607
|
draggable: "false",
|
|
607
608
|
onLoad: _cache[0] || (_cache[0] = ($event) => loaded.value = true),
|
|
608
609
|
onError: _cache[1] || (_cache[1] = ($event) => loaded.value = false)
|
|
609
|
-
}, null, 8, ["src", "resize", "crop"])) : !__props.src && unresolved.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
610
|
+
}, null, 8, ["src", "resize", "crop"])) : !__props.src && unresolved.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
610
611
|
createVNode(unref(IconHelpOutlined))
|
|
611
612
|
])) : createCommentVNode("", true),
|
|
612
613
|
__props.status && !(__props.vip || __props.bad) ? (openBlock(), createElementBlock("span", {
|
|
@@ -816,7 +817,7 @@ const _sfc_main$D = defineComponent({
|
|
|
816
817
|
};
|
|
817
818
|
}
|
|
818
819
|
});
|
|
819
|
-
const _hoisted_1$
|
|
820
|
+
const _hoisted_1$C = { class: "ui-v1-calendar-cell__content" };
|
|
820
821
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
821
822
|
__name: "UiCalendarCell",
|
|
822
823
|
props: {
|
|
@@ -862,19 +863,19 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
862
863
|
"aria-hidden": "true",
|
|
863
864
|
class: "ui-v1-calendar-cell__backdrop"
|
|
864
865
|
}, null, -1)),
|
|
865
|
-
createElementVNode("div", _hoisted_1$
|
|
866
|
+
createElementVNode("div", _hoisted_1$C, [
|
|
866
867
|
renderSlot(_ctx.$slots, "default")
|
|
867
868
|
])
|
|
868
869
|
], 16);
|
|
869
870
|
};
|
|
870
871
|
}
|
|
871
872
|
});
|
|
872
|
-
const _hoisted_1$
|
|
873
|
+
const _hoisted_1$B = {
|
|
873
874
|
xmlns: "http://www.w3.org/2000/svg",
|
|
874
875
|
viewBox: "0 0 24 24"
|
|
875
876
|
};
|
|
876
877
|
function render$e(_ctx, _cache) {
|
|
877
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
878
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$B, [..._cache[0] || (_cache[0] = [
|
|
878
879
|
createElementVNode("path", {
|
|
879
880
|
fill: "currentColor",
|
|
880
881
|
d: "M15.78 11.28c.14.14.22.331.22.53v.38a.77.77 0 0 1-.22.53l-5.14 5.13a.5.5 0 0 1-.71 0l-.71-.71a.49.49 0 0 1 0-.7L13.67 12 9.22 7.56a.5.5 0 0 1 0-.71l.71-.7a.5.5 0 0 1 .71 0z"
|
|
@@ -882,7 +883,7 @@ function render$e(_ctx, _cache) {
|
|
|
882
883
|
])]);
|
|
883
884
|
}
|
|
884
885
|
const IconChevronRight = { render: render$e };
|
|
885
|
-
const _hoisted_1$
|
|
886
|
+
const _hoisted_1$A = {
|
|
886
887
|
key: 1,
|
|
887
888
|
"aria-hidden": "true",
|
|
888
889
|
class: "ui-v1-calendar-navigation__placeholder"
|
|
@@ -924,11 +925,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
924
925
|
}, null, 8, ["class"])
|
|
925
926
|
]),
|
|
926
927
|
_: 1
|
|
927
|
-
}, 8, ["aria-label"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
928
|
+
}, 8, ["aria-label"])) : (openBlock(), createElementBlock("div", _hoisted_1$A));
|
|
928
929
|
};
|
|
929
930
|
}
|
|
930
931
|
});
|
|
931
|
-
const _hoisted_1$
|
|
932
|
+
const _hoisted_1$z = {
|
|
932
933
|
key: 1,
|
|
933
934
|
class: "ui-v1-calendar-navigation__text"
|
|
934
935
|
};
|
|
@@ -953,7 +954,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
953
954
|
renderSlot(_ctx.$slots, "default")
|
|
954
955
|
]),
|
|
955
956
|
_: 3
|
|
956
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
957
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
957
958
|
renderSlot(_ctx.$slots, "default")
|
|
958
959
|
]));
|
|
959
960
|
};
|
|
@@ -1197,7 +1198,7 @@ class I18n {
|
|
|
1197
1198
|
compute(locale, key, values) {
|
|
1198
1199
|
const computed2 = this.computed[key];
|
|
1199
1200
|
if (computed2) {
|
|
1200
|
-
return computed2(localize
|
|
1201
|
+
return computed2(localize(this, locale), values);
|
|
1201
1202
|
}
|
|
1202
1203
|
if (this.parent) {
|
|
1203
1204
|
return this.parent.compute(locale, key, values);
|
|
@@ -1212,7 +1213,7 @@ class I18n {
|
|
|
1212
1213
|
}, this);
|
|
1213
1214
|
}
|
|
1214
1215
|
}
|
|
1215
|
-
const localize
|
|
1216
|
+
const localize = (i18n, locale) => ({
|
|
1216
1217
|
t(path, values = void 0) {
|
|
1217
1218
|
return i18n.t(locale, path, values);
|
|
1218
1219
|
},
|
|
@@ -1232,7 +1233,7 @@ const define = (options = void 0, parent = void 0) => {
|
|
|
1232
1233
|
const extend = (i18n2, options2 = void 0) => options2 ? i18n2.extend(options2) : i18n2;
|
|
1233
1234
|
return {
|
|
1234
1235
|
i18n,
|
|
1235
|
-
init: (locale, options2 = void 0) => localize
|
|
1236
|
+
init: (locale, options2 = void 0) => localize(
|
|
1236
1237
|
extend(i18n, options2),
|
|
1237
1238
|
locale
|
|
1238
1239
|
),
|
|
@@ -1378,7 +1379,7 @@ const _i18n$6 = define({
|
|
|
1378
1379
|
"ru-RU": messages_ru_RU$6
|
|
1379
1380
|
}
|
|
1380
1381
|
});
|
|
1381
|
-
const _hoisted_1$
|
|
1382
|
+
const _hoisted_1$y = { class: "ui-v1-calendar-wrapper" };
|
|
1382
1383
|
const _hoisted_2$h = ["aria-label"];
|
|
1383
1384
|
const _hoisted_3$e = ["id"];
|
|
1384
1385
|
const _hoisted_4$9 = ["aria-labelledby", "aria-multiselectable"];
|
|
@@ -1386,9 +1387,9 @@ const _hoisted_5$7 = {
|
|
|
1386
1387
|
class: "ui-v1-calendar__row",
|
|
1387
1388
|
role: "row"
|
|
1388
1389
|
};
|
|
1389
|
-
const _hoisted_6$
|
|
1390
|
+
const _hoisted_6$6 = ["aria-label"];
|
|
1390
1391
|
const _hoisted_7$4 = ["datetime"];
|
|
1391
|
-
const _hoisted_8$
|
|
1392
|
+
const _hoisted_8$2 = ["aria-label"];
|
|
1392
1393
|
const _hoisted_9$1 = ["id"];
|
|
1393
1394
|
const _hoisted_10$1 = ["aria-labelledby"];
|
|
1394
1395
|
const _hoisted_11 = ["datetime"];
|
|
@@ -2019,7 +2020,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2019
2020
|
));
|
|
2020
2021
|
};
|
|
2021
2022
|
return (_ctx, _cache) => {
|
|
2022
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2023
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
2023
2024
|
(openBlock(true), createElementBlock(Fragment, null, renderList(viewsComputed.value, (view, index) => {
|
|
2024
2025
|
return openBlock(), createElementBlock("div", {
|
|
2025
2026
|
key: "view-" + index + "-" + view.date,
|
|
@@ -2068,7 +2069,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2068
2069
|
class: "ui-v1-calendar__cell-weekday",
|
|
2069
2070
|
role: "columnheader",
|
|
2070
2071
|
"aria-label": weekdaysLongNames.value[i]
|
|
2071
|
-
}, toDisplayString(name), 9, _hoisted_6$
|
|
2072
|
+
}, toDisplayString(name), 9, _hoisted_6$6);
|
|
2072
2073
|
}), 128))
|
|
2073
2074
|
]),
|
|
2074
2075
|
(openBlock(true), createElementBlock(Fragment, null, renderList(view.days, (week, i) => {
|
|
@@ -2146,7 +2147,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2146
2147
|
direction: "next",
|
|
2147
2148
|
onClick: ($event) => showYear(view.date.year + 1, index)
|
|
2148
2149
|
}, null, 8, ["label", "onClick"])
|
|
2149
|
-
], 8, _hoisted_8$
|
|
2150
|
+
], 8, _hoisted_8$2),
|
|
2150
2151
|
createElementVNode("div", {
|
|
2151
2152
|
class: "ui-v1-calendar__table",
|
|
2152
2153
|
role: "grid",
|
|
@@ -2260,12 +2261,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2260
2261
|
};
|
|
2261
2262
|
}
|
|
2262
2263
|
});
|
|
2263
|
-
const _hoisted_1$
|
|
2264
|
+
const _hoisted_1$x = {
|
|
2264
2265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2265
2266
|
viewBox: "0 0 24 24"
|
|
2266
2267
|
};
|
|
2267
2268
|
function render$d(_ctx, _cache) {
|
|
2268
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2269
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$x, [..._cache[0] || (_cache[0] = [
|
|
2269
2270
|
createElementVNode("path", {
|
|
2270
2271
|
fill: "currentColor",
|
|
2271
2272
|
"fill-rule": "evenodd",
|
|
@@ -2302,7 +2303,7 @@ const without = (obj, exclude) => {
|
|
|
2302
2303
|
});
|
|
2303
2304
|
return newObj;
|
|
2304
2305
|
};
|
|
2305
|
-
const _hoisted_1$
|
|
2306
|
+
const _hoisted_1$w = ["id", "value", "name", "disabled", "checked"];
|
|
2306
2307
|
const _hoisted_2$g = { class: "ui-v1-checkbox__checkmark" };
|
|
2307
2308
|
let counter$2 = 0;
|
|
2308
2309
|
const __default__$2 = {};
|
|
@@ -2413,7 +2414,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2413
2414
|
type: "checkbox",
|
|
2414
2415
|
class: "ui-v1-checkbox__input",
|
|
2415
2416
|
onChange
|
|
2416
|
-
}), null, 16, _hoisted_1$
|
|
2417
|
+
}), null, 16, _hoisted_1$w),
|
|
2417
2418
|
createElementVNode("span", _hoisted_2$g, [
|
|
2418
2419
|
checked.value && !__props.indeterminate ? (openBlock(), createBlock(unref(IconDone), {
|
|
2419
2420
|
key: 0,
|
|
@@ -2429,7 +2430,7 @@ var COLLAPSE_BEHAVIOUR = /* @__PURE__ */ ((COLLAPSE_BEHAVIOUR2) => {
|
|
|
2429
2430
|
COLLAPSE_BEHAVIOUR2["HIDE"] = "hide";
|
|
2430
2431
|
return COLLAPSE_BEHAVIOUR2;
|
|
2431
2432
|
})(COLLAPSE_BEHAVIOUR || {});
|
|
2432
|
-
const _hoisted_1$
|
|
2433
|
+
const _hoisted_1$v = {
|
|
2433
2434
|
key: 0,
|
|
2434
2435
|
class: "ui-v1-collapse"
|
|
2435
2436
|
};
|
|
@@ -2555,7 +2556,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2555
2556
|
}, {
|
|
2556
2557
|
default: withCtx(() => [
|
|
2557
2558
|
__props.collapseBehaviour === unref(COLLAPSE_BEHAVIOUR).DISPOSE ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2558
|
-
__props.expanded ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2559
|
+
__props.expanded ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
2559
2560
|
createElementVNode("div", null, [
|
|
2560
2561
|
renderSlot(_ctx.$slots, "default")
|
|
2561
2562
|
])
|
|
@@ -2592,17 +2593,17 @@ const CollapseGroupRegisterKey = Symbol("UiCollapseGroup_register");
|
|
|
2592
2593
|
const CollapseGroupUnregisterKey = Symbol("UiCollapseGroup_unregister");
|
|
2593
2594
|
const CollapseGroupExpandKey = Symbol("UiCollapseGroup_expand");
|
|
2594
2595
|
const CollapseGroupCollapseKey = Symbol("UiCollapseGroup_collapse");
|
|
2595
|
-
const _hoisted_1$
|
|
2596
|
+
const _hoisted_1$u = ["id", "aria-labelledby"];
|
|
2596
2597
|
const _hoisted_2$e = ["id", "disabled", "aria-controls", "aria-expanded", "aria-disabled"];
|
|
2597
2598
|
const _hoisted_3$d = { class: "ui-v1-collapse-box__icon-sprite" };
|
|
2598
2599
|
const _hoisted_4$8 = { class: "ui-v1-collapse-box__header-content" };
|
|
2599
2600
|
const _hoisted_5$6 = ["id"];
|
|
2600
|
-
const _hoisted_6$
|
|
2601
|
+
const _hoisted_6$5 = ["id"];
|
|
2601
2602
|
const _hoisted_7$3 = {
|
|
2602
2603
|
key: 1,
|
|
2603
2604
|
class: "ui-v1-collapse-box__action"
|
|
2604
2605
|
};
|
|
2605
|
-
const _hoisted_8 = { class: "ui-v1-collapse-box__body" };
|
|
2606
|
+
const _hoisted_8$1 = { class: "ui-v1-collapse-box__body" };
|
|
2606
2607
|
const _hoisted_9 = { key: 0 };
|
|
2607
2608
|
const _hoisted_10 = {
|
|
2608
2609
|
key: 0,
|
|
@@ -2848,7 +2849,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2848
2849
|
class: "ui-v1-collapse-box__description"
|
|
2849
2850
|
}, [
|
|
2850
2851
|
renderSlot(_ctx.$slots, "description")
|
|
2851
|
-
], 8, _hoisted_6$
|
|
2852
|
+
], 8, _hoisted_6$5)) : createCommentVNode("", true)
|
|
2852
2853
|
]),
|
|
2853
2854
|
!__props.disabled ? (openBlock(), createElementBlock("span", _hoisted_7$3, [
|
|
2854
2855
|
createVNode(unref(IconChevronRight), { class: "ui-v1-collapse-box__arrow" })
|
|
@@ -2869,7 +2870,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2869
2870
|
}, {
|
|
2870
2871
|
default: withCtx(() => [
|
|
2871
2872
|
renderSlot(_ctx.$slots, "body", {}, () => [
|
|
2872
|
-
createElementVNode("div", _hoisted_8, [
|
|
2873
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
2873
2874
|
createElementVNode("div", {
|
|
2874
2875
|
class: normalizeClass([
|
|
2875
2876
|
"ui-v1-collapse-box__body-content",
|
|
@@ -2890,7 +2891,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2890
2891
|
]),
|
|
2891
2892
|
_: 3
|
|
2892
2893
|
}, 8, ["id", "aria-hidden", "aria-labelledby", "duration", "expanded", "collapse-behaviour"])
|
|
2893
|
-
], 16, _hoisted_1$
|
|
2894
|
+
], 16, _hoisted_1$u);
|
|
2894
2895
|
};
|
|
2895
2896
|
}
|
|
2896
2897
|
});
|
|
@@ -3012,12 +3013,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3012
3013
|
};
|
|
3013
3014
|
}
|
|
3014
3015
|
});
|
|
3015
|
-
const _hoisted_1$
|
|
3016
|
+
const _hoisted_1$t = {
|
|
3016
3017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3017
3018
|
viewBox: "0 0 24 24"
|
|
3018
3019
|
};
|
|
3019
3020
|
function render$c(_ctx, _cache) {
|
|
3020
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3021
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, [..._cache[0] || (_cache[0] = [
|
|
3021
3022
|
createElementVNode("path", {
|
|
3022
3023
|
fill: "currentColor",
|
|
3023
3024
|
d: "M18 16V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M4 4h12v12H4zm16 14V6a2 2 0 0 1 2 2v10a4 4 0 0 1-4 4H8a2 2 0 0 1-2-2h12a2 2 0 0 0 2-2"
|
|
@@ -4691,7 +4692,7 @@ if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
|
4691
4692
|
window.addEventListener("click", onGlobalEvent("click"), true);
|
|
4692
4693
|
}
|
|
4693
4694
|
}
|
|
4694
|
-
const _hoisted_1$
|
|
4695
|
+
const _hoisted_1$s = { class: "ui-v1-popper__content" };
|
|
4695
4696
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
4696
4697
|
__name: "UiPopper",
|
|
4697
4698
|
props: {
|
|
@@ -5038,7 +5039,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
5038
5039
|
ref: arrow2,
|
|
5039
5040
|
class: "ui-v1-popper__arrow"
|
|
5040
5041
|
}, null, 512)) : createCommentVNode("", true),
|
|
5041
|
-
createElementVNode("div", _hoisted_1$
|
|
5042
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
5042
5043
|
renderSlot(_ctx.$slots, "default")
|
|
5043
5044
|
])
|
|
5044
5045
|
], 16)
|
|
@@ -5191,7 +5192,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
5191
5192
|
};
|
|
5192
5193
|
}
|
|
5193
5194
|
});
|
|
5194
|
-
const _hoisted_1$
|
|
5195
|
+
const _hoisted_1$r = { class: "ui-v1-copy-button__tooltip" };
|
|
5195
5196
|
const _hoisted_2$d = { class: "ui-v1-copy-button__icon" };
|
|
5196
5197
|
const _hoisted_3$c = { class: "ui-v1-copy-button__text" };
|
|
5197
5198
|
const _hoisted_4$7 = ["value"];
|
|
@@ -5287,7 +5288,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
5287
5288
|
...__props.tooltipOptions
|
|
5288
5289
|
}), {
|
|
5289
5290
|
default: withCtx(() => [
|
|
5290
|
-
createElementVNode("div", _hoisted_1$
|
|
5291
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
5291
5292
|
copied.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
5292
5293
|
createElementVNode("div", _hoisted_2$d, [
|
|
5293
5294
|
createVNode(unref(IconCheckmarkCircleOutlined))
|
|
@@ -5312,1601 +5313,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
5312
5313
|
};
|
|
5313
5314
|
}
|
|
5314
5315
|
});
|
|
5315
|
-
function buildFormatLongFn(args) {
|
|
5316
|
-
return (options = {}) => {
|
|
5317
|
-
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
5318
|
-
const format2 = args.formats[width] || args.formats[args.defaultWidth];
|
|
5319
|
-
return format2;
|
|
5320
|
-
};
|
|
5321
|
-
}
|
|
5322
|
-
function buildLocalizeFn(args) {
|
|
5323
|
-
return (value, options) => {
|
|
5324
|
-
const context = options?.context ? String(options.context) : "standalone";
|
|
5325
|
-
let valuesArray;
|
|
5326
|
-
if (context === "formatting" && args.formattingValues) {
|
|
5327
|
-
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
5328
|
-
const width = options?.width ? String(options.width) : defaultWidth;
|
|
5329
|
-
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
5330
|
-
} else {
|
|
5331
|
-
const defaultWidth = args.defaultWidth;
|
|
5332
|
-
const width = options?.width ? String(options.width) : args.defaultWidth;
|
|
5333
|
-
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
5334
|
-
}
|
|
5335
|
-
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
5336
|
-
return valuesArray[index];
|
|
5337
|
-
};
|
|
5338
|
-
}
|
|
5339
|
-
function buildMatchFn(args) {
|
|
5340
|
-
return (string, options = {}) => {
|
|
5341
|
-
const width = options.width;
|
|
5342
|
-
const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
5343
|
-
const matchResult = string.match(matchPattern);
|
|
5344
|
-
if (!matchResult) {
|
|
5345
|
-
return null;
|
|
5346
|
-
}
|
|
5347
|
-
const matchedString = matchResult[0];
|
|
5348
|
-
const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
5349
|
-
const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : (
|
|
5350
|
-
// [TODO] -- I challenge you to fix the type
|
|
5351
|
-
findKey(parsePatterns, (pattern) => pattern.test(matchedString))
|
|
5352
|
-
);
|
|
5353
|
-
let value;
|
|
5354
|
-
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
5355
|
-
value = options.valueCallback ? (
|
|
5356
|
-
// [TODO] -- I challenge you to fix the type
|
|
5357
|
-
options.valueCallback(value)
|
|
5358
|
-
) : value;
|
|
5359
|
-
const rest = string.slice(matchedString.length);
|
|
5360
|
-
return { value, rest };
|
|
5361
|
-
};
|
|
5362
|
-
}
|
|
5363
|
-
function findKey(object, predicate) {
|
|
5364
|
-
for (const key in object) {
|
|
5365
|
-
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
|
|
5366
|
-
return key;
|
|
5367
|
-
}
|
|
5368
|
-
}
|
|
5369
|
-
return void 0;
|
|
5370
|
-
}
|
|
5371
|
-
function findIndex(array, predicate) {
|
|
5372
|
-
for (let key = 0; key < array.length; key++) {
|
|
5373
|
-
if (predicate(array[key])) {
|
|
5374
|
-
return key;
|
|
5375
|
-
}
|
|
5376
|
-
}
|
|
5377
|
-
return void 0;
|
|
5378
|
-
}
|
|
5379
|
-
function buildMatchPatternFn(args) {
|
|
5380
|
-
return (string, options = {}) => {
|
|
5381
|
-
const matchResult = string.match(args.matchPattern);
|
|
5382
|
-
if (!matchResult) return null;
|
|
5383
|
-
const matchedString = matchResult[0];
|
|
5384
|
-
const parseResult = string.match(args.parsePattern);
|
|
5385
|
-
if (!parseResult) return null;
|
|
5386
|
-
let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
5387
|
-
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
5388
|
-
const rest = string.slice(matchedString.length);
|
|
5389
|
-
return { value, rest };
|
|
5390
|
-
};
|
|
5391
|
-
}
|
|
5392
|
-
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
5393
|
-
function constructFrom(date, value) {
|
|
5394
|
-
if (typeof date === "function") return date(value);
|
|
5395
|
-
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
5396
|
-
return date[constructFromSymbol](value);
|
|
5397
|
-
if (date instanceof Date) return new date.constructor(value);
|
|
5398
|
-
return new Date(value);
|
|
5399
|
-
}
|
|
5400
|
-
function normalizeDates(context, ...dates) {
|
|
5401
|
-
const normalize2 = constructFrom.bind(
|
|
5402
|
-
null,
|
|
5403
|
-
context || dates.find((date) => typeof date === "object")
|
|
5404
|
-
);
|
|
5405
|
-
return dates.map(normalize2);
|
|
5406
|
-
}
|
|
5407
|
-
let defaultOptions = {};
|
|
5408
|
-
function getDefaultOptions() {
|
|
5409
|
-
return defaultOptions;
|
|
5410
|
-
}
|
|
5411
|
-
function toDate(argument, context) {
|
|
5412
|
-
return constructFrom(context || argument, argument);
|
|
5413
|
-
}
|
|
5414
|
-
function startOfWeek(date, options) {
|
|
5415
|
-
const defaultOptions2 = getDefaultOptions();
|
|
5416
|
-
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
|
|
5417
|
-
const _date = toDate(date, options?.in);
|
|
5418
|
-
const day = _date.getDay();
|
|
5419
|
-
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
5420
|
-
_date.setDate(_date.getDate() - diff);
|
|
5421
|
-
_date.setHours(0, 0, 0, 0);
|
|
5422
|
-
return _date;
|
|
5423
|
-
}
|
|
5424
|
-
function isSameWeek(laterDate, earlierDate, options) {
|
|
5425
|
-
const [laterDate_, earlierDate_] = normalizeDates(
|
|
5426
|
-
options?.in,
|
|
5427
|
-
laterDate,
|
|
5428
|
-
earlierDate
|
|
5429
|
-
);
|
|
5430
|
-
return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options);
|
|
5431
|
-
}
|
|
5432
|
-
const formatDistanceLocale$2 = {
|
|
5433
|
-
lessThanXSeconds: {
|
|
5434
|
-
one: "less than a second",
|
|
5435
|
-
other: "less than {{count}} seconds"
|
|
5436
|
-
},
|
|
5437
|
-
xSeconds: {
|
|
5438
|
-
one: "1 second",
|
|
5439
|
-
other: "{{count}} seconds"
|
|
5440
|
-
},
|
|
5441
|
-
halfAMinute: "half a minute",
|
|
5442
|
-
lessThanXMinutes: {
|
|
5443
|
-
one: "less than a minute",
|
|
5444
|
-
other: "less than {{count}} minutes"
|
|
5445
|
-
},
|
|
5446
|
-
xMinutes: {
|
|
5447
|
-
one: "1 minute",
|
|
5448
|
-
other: "{{count}} minutes"
|
|
5449
|
-
},
|
|
5450
|
-
aboutXHours: {
|
|
5451
|
-
one: "about 1 hour",
|
|
5452
|
-
other: "about {{count}} hours"
|
|
5453
|
-
},
|
|
5454
|
-
xHours: {
|
|
5455
|
-
one: "1 hour",
|
|
5456
|
-
other: "{{count}} hours"
|
|
5457
|
-
},
|
|
5458
|
-
xDays: {
|
|
5459
|
-
one: "1 day",
|
|
5460
|
-
other: "{{count}} days"
|
|
5461
|
-
},
|
|
5462
|
-
aboutXWeeks: {
|
|
5463
|
-
one: "about 1 week",
|
|
5464
|
-
other: "about {{count}} weeks"
|
|
5465
|
-
},
|
|
5466
|
-
xWeeks: {
|
|
5467
|
-
one: "1 week",
|
|
5468
|
-
other: "{{count}} weeks"
|
|
5469
|
-
},
|
|
5470
|
-
aboutXMonths: {
|
|
5471
|
-
one: "about 1 month",
|
|
5472
|
-
other: "about {{count}} months"
|
|
5473
|
-
},
|
|
5474
|
-
xMonths: {
|
|
5475
|
-
one: "1 month",
|
|
5476
|
-
other: "{{count}} months"
|
|
5477
|
-
},
|
|
5478
|
-
aboutXYears: {
|
|
5479
|
-
one: "about 1 year",
|
|
5480
|
-
other: "about {{count}} years"
|
|
5481
|
-
},
|
|
5482
|
-
xYears: {
|
|
5483
|
-
one: "1 year",
|
|
5484
|
-
other: "{{count}} years"
|
|
5485
|
-
},
|
|
5486
|
-
overXYears: {
|
|
5487
|
-
one: "over 1 year",
|
|
5488
|
-
other: "over {{count}} years"
|
|
5489
|
-
},
|
|
5490
|
-
almostXYears: {
|
|
5491
|
-
one: "almost 1 year",
|
|
5492
|
-
other: "almost {{count}} years"
|
|
5493
|
-
}
|
|
5494
|
-
};
|
|
5495
|
-
const formatDistance$2 = (token, count, options) => {
|
|
5496
|
-
let result;
|
|
5497
|
-
const tokenValue = formatDistanceLocale$2[token];
|
|
5498
|
-
if (typeof tokenValue === "string") {
|
|
5499
|
-
result = tokenValue;
|
|
5500
|
-
} else if (count === 1) {
|
|
5501
|
-
result = tokenValue.one;
|
|
5502
|
-
} else {
|
|
5503
|
-
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
5504
|
-
}
|
|
5505
|
-
if (options?.addSuffix) {
|
|
5506
|
-
if (options.comparison && options.comparison > 0) {
|
|
5507
|
-
return "in " + result;
|
|
5508
|
-
} else {
|
|
5509
|
-
return result + " ago";
|
|
5510
|
-
}
|
|
5511
|
-
}
|
|
5512
|
-
return result;
|
|
5513
|
-
};
|
|
5514
|
-
const formatRelativeLocale$2 = {
|
|
5515
|
-
lastWeek: "'last' eeee 'at' p",
|
|
5516
|
-
yesterday: "'yesterday at' p",
|
|
5517
|
-
today: "'today at' p",
|
|
5518
|
-
tomorrow: "'tomorrow at' p",
|
|
5519
|
-
nextWeek: "eeee 'at' p",
|
|
5520
|
-
other: "P"
|
|
5521
|
-
};
|
|
5522
|
-
const formatRelative$2 = (token, _date, _baseDate, _options) => formatRelativeLocale$2[token];
|
|
5523
|
-
const eraValues$2 = {
|
|
5524
|
-
narrow: ["B", "A"],
|
|
5525
|
-
abbreviated: ["BC", "AD"],
|
|
5526
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
5527
|
-
};
|
|
5528
|
-
const quarterValues$2 = {
|
|
5529
|
-
narrow: ["1", "2", "3", "4"],
|
|
5530
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
5531
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
5532
|
-
};
|
|
5533
|
-
const monthValues$2 = {
|
|
5534
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
5535
|
-
abbreviated: [
|
|
5536
|
-
"Jan",
|
|
5537
|
-
"Feb",
|
|
5538
|
-
"Mar",
|
|
5539
|
-
"Apr",
|
|
5540
|
-
"May",
|
|
5541
|
-
"Jun",
|
|
5542
|
-
"Jul",
|
|
5543
|
-
"Aug",
|
|
5544
|
-
"Sep",
|
|
5545
|
-
"Oct",
|
|
5546
|
-
"Nov",
|
|
5547
|
-
"Dec"
|
|
5548
|
-
],
|
|
5549
|
-
wide: [
|
|
5550
|
-
"January",
|
|
5551
|
-
"February",
|
|
5552
|
-
"March",
|
|
5553
|
-
"April",
|
|
5554
|
-
"May",
|
|
5555
|
-
"June",
|
|
5556
|
-
"July",
|
|
5557
|
-
"August",
|
|
5558
|
-
"September",
|
|
5559
|
-
"October",
|
|
5560
|
-
"November",
|
|
5561
|
-
"December"
|
|
5562
|
-
]
|
|
5563
|
-
};
|
|
5564
|
-
const dayValues$2 = {
|
|
5565
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
5566
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
5567
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
5568
|
-
wide: [
|
|
5569
|
-
"Sunday",
|
|
5570
|
-
"Monday",
|
|
5571
|
-
"Tuesday",
|
|
5572
|
-
"Wednesday",
|
|
5573
|
-
"Thursday",
|
|
5574
|
-
"Friday",
|
|
5575
|
-
"Saturday"
|
|
5576
|
-
]
|
|
5577
|
-
};
|
|
5578
|
-
const dayPeriodValues$2 = {
|
|
5579
|
-
narrow: {
|
|
5580
|
-
am: "a",
|
|
5581
|
-
pm: "p",
|
|
5582
|
-
midnight: "mi",
|
|
5583
|
-
noon: "n",
|
|
5584
|
-
morning: "morning",
|
|
5585
|
-
afternoon: "afternoon",
|
|
5586
|
-
evening: "evening",
|
|
5587
|
-
night: "night"
|
|
5588
|
-
},
|
|
5589
|
-
abbreviated: {
|
|
5590
|
-
am: "AM",
|
|
5591
|
-
pm: "PM",
|
|
5592
|
-
midnight: "midnight",
|
|
5593
|
-
noon: "noon",
|
|
5594
|
-
morning: "morning",
|
|
5595
|
-
afternoon: "afternoon",
|
|
5596
|
-
evening: "evening",
|
|
5597
|
-
night: "night"
|
|
5598
|
-
},
|
|
5599
|
-
wide: {
|
|
5600
|
-
am: "a.m.",
|
|
5601
|
-
pm: "p.m.",
|
|
5602
|
-
midnight: "midnight",
|
|
5603
|
-
noon: "noon",
|
|
5604
|
-
morning: "morning",
|
|
5605
|
-
afternoon: "afternoon",
|
|
5606
|
-
evening: "evening",
|
|
5607
|
-
night: "night"
|
|
5608
|
-
}
|
|
5609
|
-
};
|
|
5610
|
-
const formattingDayPeriodValues$2 = {
|
|
5611
|
-
narrow: {
|
|
5612
|
-
am: "a",
|
|
5613
|
-
pm: "p",
|
|
5614
|
-
midnight: "mi",
|
|
5615
|
-
noon: "n",
|
|
5616
|
-
morning: "in the morning",
|
|
5617
|
-
afternoon: "in the afternoon",
|
|
5618
|
-
evening: "in the evening",
|
|
5619
|
-
night: "at night"
|
|
5620
|
-
},
|
|
5621
|
-
abbreviated: {
|
|
5622
|
-
am: "AM",
|
|
5623
|
-
pm: "PM",
|
|
5624
|
-
midnight: "midnight",
|
|
5625
|
-
noon: "noon",
|
|
5626
|
-
morning: "in the morning",
|
|
5627
|
-
afternoon: "in the afternoon",
|
|
5628
|
-
evening: "in the evening",
|
|
5629
|
-
night: "at night"
|
|
5630
|
-
},
|
|
5631
|
-
wide: {
|
|
5632
|
-
am: "a.m.",
|
|
5633
|
-
pm: "p.m.",
|
|
5634
|
-
midnight: "midnight",
|
|
5635
|
-
noon: "noon",
|
|
5636
|
-
morning: "in the morning",
|
|
5637
|
-
afternoon: "in the afternoon",
|
|
5638
|
-
evening: "in the evening",
|
|
5639
|
-
night: "at night"
|
|
5640
|
-
}
|
|
5641
|
-
};
|
|
5642
|
-
const ordinalNumber$2 = (dirtyNumber, _options) => {
|
|
5643
|
-
const number = Number(dirtyNumber);
|
|
5644
|
-
const rem100 = number % 100;
|
|
5645
|
-
if (rem100 > 20 || rem100 < 10) {
|
|
5646
|
-
switch (rem100 % 10) {
|
|
5647
|
-
case 1:
|
|
5648
|
-
return number + "st";
|
|
5649
|
-
case 2:
|
|
5650
|
-
return number + "nd";
|
|
5651
|
-
case 3:
|
|
5652
|
-
return number + "rd";
|
|
5653
|
-
}
|
|
5654
|
-
}
|
|
5655
|
-
return number + "th";
|
|
5656
|
-
};
|
|
5657
|
-
const localize$2 = {
|
|
5658
|
-
ordinalNumber: ordinalNumber$2,
|
|
5659
|
-
era: buildLocalizeFn({
|
|
5660
|
-
values: eraValues$2,
|
|
5661
|
-
defaultWidth: "wide"
|
|
5662
|
-
}),
|
|
5663
|
-
quarter: buildLocalizeFn({
|
|
5664
|
-
values: quarterValues$2,
|
|
5665
|
-
defaultWidth: "wide",
|
|
5666
|
-
argumentCallback: (quarter) => quarter - 1
|
|
5667
|
-
}),
|
|
5668
|
-
month: buildLocalizeFn({
|
|
5669
|
-
values: monthValues$2,
|
|
5670
|
-
defaultWidth: "wide"
|
|
5671
|
-
}),
|
|
5672
|
-
day: buildLocalizeFn({
|
|
5673
|
-
values: dayValues$2,
|
|
5674
|
-
defaultWidth: "wide"
|
|
5675
|
-
}),
|
|
5676
|
-
dayPeriod: buildLocalizeFn({
|
|
5677
|
-
values: dayPeriodValues$2,
|
|
5678
|
-
defaultWidth: "wide",
|
|
5679
|
-
formattingValues: formattingDayPeriodValues$2,
|
|
5680
|
-
defaultFormattingWidth: "wide"
|
|
5681
|
-
})
|
|
5682
|
-
};
|
|
5683
|
-
const matchOrdinalNumberPattern$2 = /^(\d+)(th|st|nd|rd)?/i;
|
|
5684
|
-
const parseOrdinalNumberPattern$2 = /\d+/i;
|
|
5685
|
-
const matchEraPatterns$2 = {
|
|
5686
|
-
narrow: /^(b|a)/i,
|
|
5687
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
5688
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
5689
|
-
};
|
|
5690
|
-
const parseEraPatterns$2 = {
|
|
5691
|
-
any: [/^b/i, /^(a|c)/i]
|
|
5692
|
-
};
|
|
5693
|
-
const matchQuarterPatterns$2 = {
|
|
5694
|
-
narrow: /^[1234]/i,
|
|
5695
|
-
abbreviated: /^q[1234]/i,
|
|
5696
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
5697
|
-
};
|
|
5698
|
-
const parseQuarterPatterns$2 = {
|
|
5699
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
5700
|
-
};
|
|
5701
|
-
const matchMonthPatterns$2 = {
|
|
5702
|
-
narrow: /^[jfmasond]/i,
|
|
5703
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
5704
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
5705
|
-
};
|
|
5706
|
-
const parseMonthPatterns$2 = {
|
|
5707
|
-
narrow: [
|
|
5708
|
-
/^j/i,
|
|
5709
|
-
/^f/i,
|
|
5710
|
-
/^m/i,
|
|
5711
|
-
/^a/i,
|
|
5712
|
-
/^m/i,
|
|
5713
|
-
/^j/i,
|
|
5714
|
-
/^j/i,
|
|
5715
|
-
/^a/i,
|
|
5716
|
-
/^s/i,
|
|
5717
|
-
/^o/i,
|
|
5718
|
-
/^n/i,
|
|
5719
|
-
/^d/i
|
|
5720
|
-
],
|
|
5721
|
-
any: [
|
|
5722
|
-
/^ja/i,
|
|
5723
|
-
/^f/i,
|
|
5724
|
-
/^mar/i,
|
|
5725
|
-
/^ap/i,
|
|
5726
|
-
/^may/i,
|
|
5727
|
-
/^jun/i,
|
|
5728
|
-
/^jul/i,
|
|
5729
|
-
/^au/i,
|
|
5730
|
-
/^s/i,
|
|
5731
|
-
/^o/i,
|
|
5732
|
-
/^n/i,
|
|
5733
|
-
/^d/i
|
|
5734
|
-
]
|
|
5735
|
-
};
|
|
5736
|
-
const matchDayPatterns$2 = {
|
|
5737
|
-
narrow: /^[smtwf]/i,
|
|
5738
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
5739
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
5740
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
5741
|
-
};
|
|
5742
|
-
const parseDayPatterns$2 = {
|
|
5743
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
5744
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
5745
|
-
};
|
|
5746
|
-
const matchDayPeriodPatterns$2 = {
|
|
5747
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
5748
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
5749
|
-
};
|
|
5750
|
-
const parseDayPeriodPatterns$2 = {
|
|
5751
|
-
any: {
|
|
5752
|
-
am: /^a/i,
|
|
5753
|
-
pm: /^p/i,
|
|
5754
|
-
midnight: /^mi/i,
|
|
5755
|
-
noon: /^no/i,
|
|
5756
|
-
morning: /morning/i,
|
|
5757
|
-
afternoon: /afternoon/i,
|
|
5758
|
-
evening: /evening/i,
|
|
5759
|
-
night: /night/i
|
|
5760
|
-
}
|
|
5761
|
-
};
|
|
5762
|
-
const match$2 = {
|
|
5763
|
-
ordinalNumber: buildMatchPatternFn({
|
|
5764
|
-
matchPattern: matchOrdinalNumberPattern$2,
|
|
5765
|
-
parsePattern: parseOrdinalNumberPattern$2,
|
|
5766
|
-
valueCallback: (value) => parseInt(value, 10)
|
|
5767
|
-
}),
|
|
5768
|
-
era: buildMatchFn({
|
|
5769
|
-
matchPatterns: matchEraPatterns$2,
|
|
5770
|
-
defaultMatchWidth: "wide",
|
|
5771
|
-
parsePatterns: parseEraPatterns$2,
|
|
5772
|
-
defaultParseWidth: "any"
|
|
5773
|
-
}),
|
|
5774
|
-
quarter: buildMatchFn({
|
|
5775
|
-
matchPatterns: matchQuarterPatterns$2,
|
|
5776
|
-
defaultMatchWidth: "wide",
|
|
5777
|
-
parsePatterns: parseQuarterPatterns$2,
|
|
5778
|
-
defaultParseWidth: "any",
|
|
5779
|
-
valueCallback: (index) => index + 1
|
|
5780
|
-
}),
|
|
5781
|
-
month: buildMatchFn({
|
|
5782
|
-
matchPatterns: matchMonthPatterns$2,
|
|
5783
|
-
defaultMatchWidth: "wide",
|
|
5784
|
-
parsePatterns: parseMonthPatterns$2,
|
|
5785
|
-
defaultParseWidth: "any"
|
|
5786
|
-
}),
|
|
5787
|
-
day: buildMatchFn({
|
|
5788
|
-
matchPatterns: matchDayPatterns$2,
|
|
5789
|
-
defaultMatchWidth: "wide",
|
|
5790
|
-
parsePatterns: parseDayPatterns$2,
|
|
5791
|
-
defaultParseWidth: "any"
|
|
5792
|
-
}),
|
|
5793
|
-
dayPeriod: buildMatchFn({
|
|
5794
|
-
matchPatterns: matchDayPeriodPatterns$2,
|
|
5795
|
-
defaultMatchWidth: "any",
|
|
5796
|
-
parsePatterns: parseDayPeriodPatterns$2,
|
|
5797
|
-
defaultParseWidth: "any"
|
|
5798
|
-
})
|
|
5799
|
-
};
|
|
5800
|
-
const dateFormats$2 = {
|
|
5801
|
-
full: "EEEE, d MMMM yyyy",
|
|
5802
|
-
long: "d MMMM yyyy",
|
|
5803
|
-
medium: "d MMM yyyy",
|
|
5804
|
-
short: "dd/MM/yyyy"
|
|
5805
|
-
};
|
|
5806
|
-
const timeFormats$2 = {
|
|
5807
|
-
full: "HH:mm:ss zzzz",
|
|
5808
|
-
long: "HH:mm:ss z",
|
|
5809
|
-
medium: "HH:mm:ss",
|
|
5810
|
-
short: "HH:mm"
|
|
5811
|
-
};
|
|
5812
|
-
const dateTimeFormats$2 = {
|
|
5813
|
-
full: "{{date}} 'at' {{time}}",
|
|
5814
|
-
long: "{{date}} 'at' {{time}}",
|
|
5815
|
-
medium: "{{date}}, {{time}}",
|
|
5816
|
-
short: "{{date}}, {{time}}"
|
|
5817
|
-
};
|
|
5818
|
-
const formatLong$2 = {
|
|
5819
|
-
date: buildFormatLongFn({
|
|
5820
|
-
formats: dateFormats$2,
|
|
5821
|
-
defaultWidth: "full"
|
|
5822
|
-
}),
|
|
5823
|
-
time: buildFormatLongFn({
|
|
5824
|
-
formats: timeFormats$2,
|
|
5825
|
-
defaultWidth: "full"
|
|
5826
|
-
}),
|
|
5827
|
-
dateTime: buildFormatLongFn({
|
|
5828
|
-
formats: dateTimeFormats$2,
|
|
5829
|
-
defaultWidth: "full"
|
|
5830
|
-
})
|
|
5831
|
-
};
|
|
5832
|
-
const enGB = {
|
|
5833
|
-
code: "en-GB",
|
|
5834
|
-
formatDistance: formatDistance$2,
|
|
5835
|
-
formatLong: formatLong$2,
|
|
5836
|
-
formatRelative: formatRelative$2,
|
|
5837
|
-
localize: localize$2,
|
|
5838
|
-
match: match$2,
|
|
5839
|
-
options: {
|
|
5840
|
-
weekStartsOn: 1,
|
|
5841
|
-
firstWeekContainsDate: 4
|
|
5842
|
-
}
|
|
5843
|
-
};
|
|
5844
|
-
const formatDistanceLocale$1 = {
|
|
5845
|
-
lessThanXSeconds: {
|
|
5846
|
-
one: "menos de un segundo",
|
|
5847
|
-
other: "menos de {{count}} segundos"
|
|
5848
|
-
},
|
|
5849
|
-
xSeconds: {
|
|
5850
|
-
one: "1 segundo",
|
|
5851
|
-
other: "{{count}} segundos"
|
|
5852
|
-
},
|
|
5853
|
-
halfAMinute: "medio minuto",
|
|
5854
|
-
lessThanXMinutes: {
|
|
5855
|
-
one: "menos de un minuto",
|
|
5856
|
-
other: "menos de {{count}} minutos"
|
|
5857
|
-
},
|
|
5858
|
-
xMinutes: {
|
|
5859
|
-
one: "1 minuto",
|
|
5860
|
-
other: "{{count}} minutos"
|
|
5861
|
-
},
|
|
5862
|
-
aboutXHours: {
|
|
5863
|
-
one: "alrededor de 1 hora",
|
|
5864
|
-
other: "alrededor de {{count}} horas"
|
|
5865
|
-
},
|
|
5866
|
-
xHours: {
|
|
5867
|
-
one: "1 hora",
|
|
5868
|
-
other: "{{count}} horas"
|
|
5869
|
-
},
|
|
5870
|
-
xDays: {
|
|
5871
|
-
one: "1 día",
|
|
5872
|
-
other: "{{count}} días"
|
|
5873
|
-
},
|
|
5874
|
-
aboutXWeeks: {
|
|
5875
|
-
one: "alrededor de 1 semana",
|
|
5876
|
-
other: "alrededor de {{count}} semanas"
|
|
5877
|
-
},
|
|
5878
|
-
xWeeks: {
|
|
5879
|
-
one: "1 semana",
|
|
5880
|
-
other: "{{count}} semanas"
|
|
5881
|
-
},
|
|
5882
|
-
aboutXMonths: {
|
|
5883
|
-
one: "alrededor de 1 mes",
|
|
5884
|
-
other: "alrededor de {{count}} meses"
|
|
5885
|
-
},
|
|
5886
|
-
xMonths: {
|
|
5887
|
-
one: "1 mes",
|
|
5888
|
-
other: "{{count}} meses"
|
|
5889
|
-
},
|
|
5890
|
-
aboutXYears: {
|
|
5891
|
-
one: "alrededor de 1 año",
|
|
5892
|
-
other: "alrededor de {{count}} años"
|
|
5893
|
-
},
|
|
5894
|
-
xYears: {
|
|
5895
|
-
one: "1 año",
|
|
5896
|
-
other: "{{count}} años"
|
|
5897
|
-
},
|
|
5898
|
-
overXYears: {
|
|
5899
|
-
one: "más de 1 año",
|
|
5900
|
-
other: "más de {{count}} años"
|
|
5901
|
-
},
|
|
5902
|
-
almostXYears: {
|
|
5903
|
-
one: "casi 1 año",
|
|
5904
|
-
other: "casi {{count}} años"
|
|
5905
|
-
}
|
|
5906
|
-
};
|
|
5907
|
-
const formatDistance$1 = (token, count, options) => {
|
|
5908
|
-
let result;
|
|
5909
|
-
const tokenValue = formatDistanceLocale$1[token];
|
|
5910
|
-
if (typeof tokenValue === "string") {
|
|
5911
|
-
result = tokenValue;
|
|
5912
|
-
} else if (count === 1) {
|
|
5913
|
-
result = tokenValue.one;
|
|
5914
|
-
} else {
|
|
5915
|
-
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
5916
|
-
}
|
|
5917
|
-
if (options?.addSuffix) {
|
|
5918
|
-
if (options.comparison && options.comparison > 0) {
|
|
5919
|
-
return "en " + result;
|
|
5920
|
-
} else {
|
|
5921
|
-
return "hace " + result;
|
|
5922
|
-
}
|
|
5923
|
-
}
|
|
5924
|
-
return result;
|
|
5925
|
-
};
|
|
5926
|
-
const dateFormats$1 = {
|
|
5927
|
-
full: "EEEE, d 'de' MMMM 'de' y",
|
|
5928
|
-
long: "d 'de' MMMM 'de' y",
|
|
5929
|
-
medium: "d MMM y",
|
|
5930
|
-
short: "dd/MM/y"
|
|
5931
|
-
};
|
|
5932
|
-
const timeFormats$1 = {
|
|
5933
|
-
full: "HH:mm:ss zzzz",
|
|
5934
|
-
long: "HH:mm:ss z",
|
|
5935
|
-
medium: "HH:mm:ss",
|
|
5936
|
-
short: "HH:mm"
|
|
5937
|
-
};
|
|
5938
|
-
const dateTimeFormats$1 = {
|
|
5939
|
-
full: "{{date}} 'a las' {{time}}",
|
|
5940
|
-
long: "{{date}} 'a las' {{time}}",
|
|
5941
|
-
medium: "{{date}}, {{time}}",
|
|
5942
|
-
short: "{{date}}, {{time}}"
|
|
5943
|
-
};
|
|
5944
|
-
const formatLong$1 = {
|
|
5945
|
-
date: buildFormatLongFn({
|
|
5946
|
-
formats: dateFormats$1,
|
|
5947
|
-
defaultWidth: "full"
|
|
5948
|
-
}),
|
|
5949
|
-
time: buildFormatLongFn({
|
|
5950
|
-
formats: timeFormats$1,
|
|
5951
|
-
defaultWidth: "full"
|
|
5952
|
-
}),
|
|
5953
|
-
dateTime: buildFormatLongFn({
|
|
5954
|
-
formats: dateTimeFormats$1,
|
|
5955
|
-
defaultWidth: "full"
|
|
5956
|
-
})
|
|
5957
|
-
};
|
|
5958
|
-
const formatRelativeLocale$1 = {
|
|
5959
|
-
lastWeek: "'el' eeee 'pasado a la' p",
|
|
5960
|
-
yesterday: "'ayer a la' p",
|
|
5961
|
-
today: "'hoy a la' p",
|
|
5962
|
-
tomorrow: "'mañana a la' p",
|
|
5963
|
-
nextWeek: "eeee 'a la' p",
|
|
5964
|
-
other: "P"
|
|
5965
|
-
};
|
|
5966
|
-
const formatRelativeLocalePlural = {
|
|
5967
|
-
lastWeek: "'el' eeee 'pasado a las' p",
|
|
5968
|
-
yesterday: "'ayer a las' p",
|
|
5969
|
-
today: "'hoy a las' p",
|
|
5970
|
-
tomorrow: "'mañana a las' p",
|
|
5971
|
-
nextWeek: "eeee 'a las' p",
|
|
5972
|
-
other: "P"
|
|
5973
|
-
};
|
|
5974
|
-
const formatRelative$1 = (token, date, _baseDate, _options) => {
|
|
5975
|
-
if (date.getHours() !== 1) {
|
|
5976
|
-
return formatRelativeLocalePlural[token];
|
|
5977
|
-
} else {
|
|
5978
|
-
return formatRelativeLocale$1[token];
|
|
5979
|
-
}
|
|
5980
|
-
};
|
|
5981
|
-
const eraValues$1 = {
|
|
5982
|
-
narrow: ["AC", "DC"],
|
|
5983
|
-
abbreviated: ["AC", "DC"],
|
|
5984
|
-
wide: ["antes de cristo", "después de cristo"]
|
|
5985
|
-
};
|
|
5986
|
-
const quarterValues$1 = {
|
|
5987
|
-
narrow: ["1", "2", "3", "4"],
|
|
5988
|
-
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
5989
|
-
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
5990
|
-
};
|
|
5991
|
-
const monthValues$1 = {
|
|
5992
|
-
narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
5993
|
-
abbreviated: [
|
|
5994
|
-
"ene",
|
|
5995
|
-
"feb",
|
|
5996
|
-
"mar",
|
|
5997
|
-
"abr",
|
|
5998
|
-
"may",
|
|
5999
|
-
"jun",
|
|
6000
|
-
"jul",
|
|
6001
|
-
"ago",
|
|
6002
|
-
"sep",
|
|
6003
|
-
"oct",
|
|
6004
|
-
"nov",
|
|
6005
|
-
"dic"
|
|
6006
|
-
],
|
|
6007
|
-
wide: [
|
|
6008
|
-
"enero",
|
|
6009
|
-
"febrero",
|
|
6010
|
-
"marzo",
|
|
6011
|
-
"abril",
|
|
6012
|
-
"mayo",
|
|
6013
|
-
"junio",
|
|
6014
|
-
"julio",
|
|
6015
|
-
"agosto",
|
|
6016
|
-
"septiembre",
|
|
6017
|
-
"octubre",
|
|
6018
|
-
"noviembre",
|
|
6019
|
-
"diciembre"
|
|
6020
|
-
]
|
|
6021
|
-
};
|
|
6022
|
-
const dayValues$1 = {
|
|
6023
|
-
narrow: ["d", "l", "m", "m", "j", "v", "s"],
|
|
6024
|
-
short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"],
|
|
6025
|
-
abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
|
6026
|
-
wide: [
|
|
6027
|
-
"domingo",
|
|
6028
|
-
"lunes",
|
|
6029
|
-
"martes",
|
|
6030
|
-
"miércoles",
|
|
6031
|
-
"jueves",
|
|
6032
|
-
"viernes",
|
|
6033
|
-
"sábado"
|
|
6034
|
-
]
|
|
6035
|
-
};
|
|
6036
|
-
const dayPeriodValues$1 = {
|
|
6037
|
-
narrow: {
|
|
6038
|
-
am: "a",
|
|
6039
|
-
pm: "p",
|
|
6040
|
-
midnight: "mn",
|
|
6041
|
-
noon: "md",
|
|
6042
|
-
morning: "mañana",
|
|
6043
|
-
afternoon: "tarde",
|
|
6044
|
-
evening: "tarde",
|
|
6045
|
-
night: "noche"
|
|
6046
|
-
},
|
|
6047
|
-
abbreviated: {
|
|
6048
|
-
am: "AM",
|
|
6049
|
-
pm: "PM",
|
|
6050
|
-
midnight: "medianoche",
|
|
6051
|
-
noon: "mediodia",
|
|
6052
|
-
morning: "mañana",
|
|
6053
|
-
afternoon: "tarde",
|
|
6054
|
-
evening: "tarde",
|
|
6055
|
-
night: "noche"
|
|
6056
|
-
},
|
|
6057
|
-
wide: {
|
|
6058
|
-
am: "a.m.",
|
|
6059
|
-
pm: "p.m.",
|
|
6060
|
-
midnight: "medianoche",
|
|
6061
|
-
noon: "mediodia",
|
|
6062
|
-
morning: "mañana",
|
|
6063
|
-
afternoon: "tarde",
|
|
6064
|
-
evening: "tarde",
|
|
6065
|
-
night: "noche"
|
|
6066
|
-
}
|
|
6067
|
-
};
|
|
6068
|
-
const formattingDayPeriodValues$1 = {
|
|
6069
|
-
narrow: {
|
|
6070
|
-
am: "a",
|
|
6071
|
-
pm: "p",
|
|
6072
|
-
midnight: "mn",
|
|
6073
|
-
noon: "md",
|
|
6074
|
-
morning: "de la mañana",
|
|
6075
|
-
afternoon: "de la tarde",
|
|
6076
|
-
evening: "de la tarde",
|
|
6077
|
-
night: "de la noche"
|
|
6078
|
-
},
|
|
6079
|
-
abbreviated: {
|
|
6080
|
-
am: "AM",
|
|
6081
|
-
pm: "PM",
|
|
6082
|
-
midnight: "medianoche",
|
|
6083
|
-
noon: "mediodia",
|
|
6084
|
-
morning: "de la mañana",
|
|
6085
|
-
afternoon: "de la tarde",
|
|
6086
|
-
evening: "de la tarde",
|
|
6087
|
-
night: "de la noche"
|
|
6088
|
-
},
|
|
6089
|
-
wide: {
|
|
6090
|
-
am: "a.m.",
|
|
6091
|
-
pm: "p.m.",
|
|
6092
|
-
midnight: "medianoche",
|
|
6093
|
-
noon: "mediodia",
|
|
6094
|
-
morning: "de la mañana",
|
|
6095
|
-
afternoon: "de la tarde",
|
|
6096
|
-
evening: "de la tarde",
|
|
6097
|
-
night: "de la noche"
|
|
6098
|
-
}
|
|
6099
|
-
};
|
|
6100
|
-
const ordinalNumber$1 = (dirtyNumber, _options) => {
|
|
6101
|
-
const number = Number(dirtyNumber);
|
|
6102
|
-
return number + "º";
|
|
6103
|
-
};
|
|
6104
|
-
const localize$1 = {
|
|
6105
|
-
ordinalNumber: ordinalNumber$1,
|
|
6106
|
-
era: buildLocalizeFn({
|
|
6107
|
-
values: eraValues$1,
|
|
6108
|
-
defaultWidth: "wide"
|
|
6109
|
-
}),
|
|
6110
|
-
quarter: buildLocalizeFn({
|
|
6111
|
-
values: quarterValues$1,
|
|
6112
|
-
defaultWidth: "wide",
|
|
6113
|
-
argumentCallback: (quarter) => Number(quarter) - 1
|
|
6114
|
-
}),
|
|
6115
|
-
month: buildLocalizeFn({
|
|
6116
|
-
values: monthValues$1,
|
|
6117
|
-
defaultWidth: "wide"
|
|
6118
|
-
}),
|
|
6119
|
-
day: buildLocalizeFn({
|
|
6120
|
-
values: dayValues$1,
|
|
6121
|
-
defaultWidth: "wide"
|
|
6122
|
-
}),
|
|
6123
|
-
dayPeriod: buildLocalizeFn({
|
|
6124
|
-
values: dayPeriodValues$1,
|
|
6125
|
-
defaultWidth: "wide",
|
|
6126
|
-
formattingValues: formattingDayPeriodValues$1,
|
|
6127
|
-
defaultFormattingWidth: "wide"
|
|
6128
|
-
})
|
|
6129
|
-
};
|
|
6130
|
-
const matchOrdinalNumberPattern$1 = /^(\d+)(º)?/i;
|
|
6131
|
-
const parseOrdinalNumberPattern$1 = /\d+/i;
|
|
6132
|
-
const matchEraPatterns$1 = {
|
|
6133
|
-
narrow: /^(ac|dc|a|d)/i,
|
|
6134
|
-
abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
|
|
6135
|
-
wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i
|
|
6136
|
-
};
|
|
6137
|
-
const parseEraPatterns$1 = {
|
|
6138
|
-
any: [/^ac/i, /^dc/i],
|
|
6139
|
-
wide: [
|
|
6140
|
-
/^(antes de cristo|antes de la era com[uú]n)/i,
|
|
6141
|
-
/^(despu[eé]s de cristo|era com[uú]n)/i
|
|
6142
|
-
]
|
|
6143
|
-
};
|
|
6144
|
-
const matchQuarterPatterns$1 = {
|
|
6145
|
-
narrow: /^[1234]/i,
|
|
6146
|
-
abbreviated: /^T[1234]/i,
|
|
6147
|
-
wide: /^[1234](º)? trimestre/i
|
|
6148
|
-
};
|
|
6149
|
-
const parseQuarterPatterns$1 = {
|
|
6150
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
6151
|
-
};
|
|
6152
|
-
const matchMonthPatterns$1 = {
|
|
6153
|
-
narrow: /^[efmajsond]/i,
|
|
6154
|
-
abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,
|
|
6155
|
-
wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i
|
|
6156
|
-
};
|
|
6157
|
-
const parseMonthPatterns$1 = {
|
|
6158
|
-
narrow: [
|
|
6159
|
-
/^e/i,
|
|
6160
|
-
/^f/i,
|
|
6161
|
-
/^m/i,
|
|
6162
|
-
/^a/i,
|
|
6163
|
-
/^m/i,
|
|
6164
|
-
/^j/i,
|
|
6165
|
-
/^j/i,
|
|
6166
|
-
/^a/i,
|
|
6167
|
-
/^s/i,
|
|
6168
|
-
/^o/i,
|
|
6169
|
-
/^n/i,
|
|
6170
|
-
/^d/i
|
|
6171
|
-
],
|
|
6172
|
-
any: [
|
|
6173
|
-
/^en/i,
|
|
6174
|
-
/^feb/i,
|
|
6175
|
-
/^mar/i,
|
|
6176
|
-
/^abr/i,
|
|
6177
|
-
/^may/i,
|
|
6178
|
-
/^jun/i,
|
|
6179
|
-
/^jul/i,
|
|
6180
|
-
/^ago/i,
|
|
6181
|
-
/^sep/i,
|
|
6182
|
-
/^oct/i,
|
|
6183
|
-
/^nov/i,
|
|
6184
|
-
/^dic/i
|
|
6185
|
-
]
|
|
6186
|
-
};
|
|
6187
|
-
const matchDayPatterns$1 = {
|
|
6188
|
-
narrow: /^[dlmjvs]/i,
|
|
6189
|
-
short: /^(do|lu|ma|mi|ju|vi|s[áa])/i,
|
|
6190
|
-
abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,
|
|
6191
|
-
wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i
|
|
6192
|
-
};
|
|
6193
|
-
const parseDayPatterns$1 = {
|
|
6194
|
-
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
6195
|
-
any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]
|
|
6196
|
-
};
|
|
6197
|
-
const matchDayPeriodPatterns$1 = {
|
|
6198
|
-
narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,
|
|
6199
|
-
any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i
|
|
6200
|
-
};
|
|
6201
|
-
const parseDayPeriodPatterns$1 = {
|
|
6202
|
-
any: {
|
|
6203
|
-
am: /^a/i,
|
|
6204
|
-
pm: /^p/i,
|
|
6205
|
-
midnight: /^mn/i,
|
|
6206
|
-
noon: /^md/i,
|
|
6207
|
-
morning: /mañana/i,
|
|
6208
|
-
afternoon: /tarde/i,
|
|
6209
|
-
evening: /tarde/i,
|
|
6210
|
-
night: /noche/i
|
|
6211
|
-
}
|
|
6212
|
-
};
|
|
6213
|
-
const match$1 = {
|
|
6214
|
-
ordinalNumber: buildMatchPatternFn({
|
|
6215
|
-
matchPattern: matchOrdinalNumberPattern$1,
|
|
6216
|
-
parsePattern: parseOrdinalNumberPattern$1,
|
|
6217
|
-
valueCallback: function(value) {
|
|
6218
|
-
return parseInt(value, 10);
|
|
6219
|
-
}
|
|
6220
|
-
}),
|
|
6221
|
-
era: buildMatchFn({
|
|
6222
|
-
matchPatterns: matchEraPatterns$1,
|
|
6223
|
-
defaultMatchWidth: "wide",
|
|
6224
|
-
parsePatterns: parseEraPatterns$1,
|
|
6225
|
-
defaultParseWidth: "any"
|
|
6226
|
-
}),
|
|
6227
|
-
quarter: buildMatchFn({
|
|
6228
|
-
matchPatterns: matchQuarterPatterns$1,
|
|
6229
|
-
defaultMatchWidth: "wide",
|
|
6230
|
-
parsePatterns: parseQuarterPatterns$1,
|
|
6231
|
-
defaultParseWidth: "any",
|
|
6232
|
-
valueCallback: (index) => index + 1
|
|
6233
|
-
}),
|
|
6234
|
-
month: buildMatchFn({
|
|
6235
|
-
matchPatterns: matchMonthPatterns$1,
|
|
6236
|
-
defaultMatchWidth: "wide",
|
|
6237
|
-
parsePatterns: parseMonthPatterns$1,
|
|
6238
|
-
defaultParseWidth: "any"
|
|
6239
|
-
}),
|
|
6240
|
-
day: buildMatchFn({
|
|
6241
|
-
matchPatterns: matchDayPatterns$1,
|
|
6242
|
-
defaultMatchWidth: "wide",
|
|
6243
|
-
parsePatterns: parseDayPatterns$1,
|
|
6244
|
-
defaultParseWidth: "any"
|
|
6245
|
-
}),
|
|
6246
|
-
dayPeriod: buildMatchFn({
|
|
6247
|
-
matchPatterns: matchDayPeriodPatterns$1,
|
|
6248
|
-
defaultMatchWidth: "any",
|
|
6249
|
-
parsePatterns: parseDayPeriodPatterns$1,
|
|
6250
|
-
defaultParseWidth: "any"
|
|
6251
|
-
})
|
|
6252
|
-
};
|
|
6253
|
-
const es = {
|
|
6254
|
-
code: "es",
|
|
6255
|
-
formatDistance: formatDistance$1,
|
|
6256
|
-
formatLong: formatLong$1,
|
|
6257
|
-
formatRelative: formatRelative$1,
|
|
6258
|
-
localize: localize$1,
|
|
6259
|
-
match: match$1,
|
|
6260
|
-
options: {
|
|
6261
|
-
weekStartsOn: 1,
|
|
6262
|
-
firstWeekContainsDate: 1
|
|
6263
|
-
}
|
|
6264
|
-
};
|
|
6265
|
-
function declension(scheme, count) {
|
|
6266
|
-
if (scheme.one !== void 0 && count === 1) {
|
|
6267
|
-
return scheme.one;
|
|
6268
|
-
}
|
|
6269
|
-
const rem10 = count % 10;
|
|
6270
|
-
const rem100 = count % 100;
|
|
6271
|
-
if (rem10 === 1 && rem100 !== 11) {
|
|
6272
|
-
return scheme.singularNominative.replace("{{count}}", String(count));
|
|
6273
|
-
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
|
|
6274
|
-
return scheme.singularGenitive.replace("{{count}}", String(count));
|
|
6275
|
-
} else {
|
|
6276
|
-
return scheme.pluralGenitive.replace("{{count}}", String(count));
|
|
6277
|
-
}
|
|
6278
|
-
}
|
|
6279
|
-
function buildLocalizeTokenFn(scheme) {
|
|
6280
|
-
return (count, options) => {
|
|
6281
|
-
if (options?.addSuffix) {
|
|
6282
|
-
if (options.comparison && options.comparison > 0) {
|
|
6283
|
-
if (scheme.future) {
|
|
6284
|
-
return declension(scheme.future, count);
|
|
6285
|
-
} else {
|
|
6286
|
-
return "через " + declension(scheme.regular, count);
|
|
6287
|
-
}
|
|
6288
|
-
} else {
|
|
6289
|
-
if (scheme.past) {
|
|
6290
|
-
return declension(scheme.past, count);
|
|
6291
|
-
} else {
|
|
6292
|
-
return declension(scheme.regular, count) + " назад";
|
|
6293
|
-
}
|
|
6294
|
-
}
|
|
6295
|
-
} else {
|
|
6296
|
-
return declension(scheme.regular, count);
|
|
6297
|
-
}
|
|
6298
|
-
};
|
|
6299
|
-
}
|
|
6300
|
-
const formatDistanceLocale = {
|
|
6301
|
-
lessThanXSeconds: buildLocalizeTokenFn({
|
|
6302
|
-
regular: {
|
|
6303
|
-
one: "меньше секунды",
|
|
6304
|
-
singularNominative: "меньше {{count}} секунды",
|
|
6305
|
-
singularGenitive: "меньше {{count}} секунд",
|
|
6306
|
-
pluralGenitive: "меньше {{count}} секунд"
|
|
6307
|
-
},
|
|
6308
|
-
future: {
|
|
6309
|
-
one: "меньше, чем через секунду",
|
|
6310
|
-
singularNominative: "меньше, чем через {{count}} секунду",
|
|
6311
|
-
singularGenitive: "меньше, чем через {{count}} секунды",
|
|
6312
|
-
pluralGenitive: "меньше, чем через {{count}} секунд"
|
|
6313
|
-
}
|
|
6314
|
-
}),
|
|
6315
|
-
xSeconds: buildLocalizeTokenFn({
|
|
6316
|
-
regular: {
|
|
6317
|
-
singularNominative: "{{count}} секунда",
|
|
6318
|
-
singularGenitive: "{{count}} секунды",
|
|
6319
|
-
pluralGenitive: "{{count}} секунд"
|
|
6320
|
-
},
|
|
6321
|
-
past: {
|
|
6322
|
-
singularNominative: "{{count}} секунду назад",
|
|
6323
|
-
singularGenitive: "{{count}} секунды назад",
|
|
6324
|
-
pluralGenitive: "{{count}} секунд назад"
|
|
6325
|
-
},
|
|
6326
|
-
future: {
|
|
6327
|
-
singularNominative: "через {{count}} секунду",
|
|
6328
|
-
singularGenitive: "через {{count}} секунды",
|
|
6329
|
-
pluralGenitive: "через {{count}} секунд"
|
|
6330
|
-
}
|
|
6331
|
-
}),
|
|
6332
|
-
halfAMinute: (_count, options) => {
|
|
6333
|
-
if (options?.addSuffix) {
|
|
6334
|
-
if (options.comparison && options.comparison > 0) {
|
|
6335
|
-
return "через полминуты";
|
|
6336
|
-
} else {
|
|
6337
|
-
return "полминуты назад";
|
|
6338
|
-
}
|
|
6339
|
-
}
|
|
6340
|
-
return "полминуты";
|
|
6341
|
-
},
|
|
6342
|
-
lessThanXMinutes: buildLocalizeTokenFn({
|
|
6343
|
-
regular: {
|
|
6344
|
-
one: "меньше минуты",
|
|
6345
|
-
singularNominative: "меньше {{count}} минуты",
|
|
6346
|
-
singularGenitive: "меньше {{count}} минут",
|
|
6347
|
-
pluralGenitive: "меньше {{count}} минут"
|
|
6348
|
-
},
|
|
6349
|
-
future: {
|
|
6350
|
-
one: "меньше, чем через минуту",
|
|
6351
|
-
singularNominative: "меньше, чем через {{count}} минуту",
|
|
6352
|
-
singularGenitive: "меньше, чем через {{count}} минуты",
|
|
6353
|
-
pluralGenitive: "меньше, чем через {{count}} минут"
|
|
6354
|
-
}
|
|
6355
|
-
}),
|
|
6356
|
-
xMinutes: buildLocalizeTokenFn({
|
|
6357
|
-
regular: {
|
|
6358
|
-
singularNominative: "{{count}} минута",
|
|
6359
|
-
singularGenitive: "{{count}} минуты",
|
|
6360
|
-
pluralGenitive: "{{count}} минут"
|
|
6361
|
-
},
|
|
6362
|
-
past: {
|
|
6363
|
-
singularNominative: "{{count}} минуту назад",
|
|
6364
|
-
singularGenitive: "{{count}} минуты назад",
|
|
6365
|
-
pluralGenitive: "{{count}} минут назад"
|
|
6366
|
-
},
|
|
6367
|
-
future: {
|
|
6368
|
-
singularNominative: "через {{count}} минуту",
|
|
6369
|
-
singularGenitive: "через {{count}} минуты",
|
|
6370
|
-
pluralGenitive: "через {{count}} минут"
|
|
6371
|
-
}
|
|
6372
|
-
}),
|
|
6373
|
-
aboutXHours: buildLocalizeTokenFn({
|
|
6374
|
-
regular: {
|
|
6375
|
-
singularNominative: "около {{count}} часа",
|
|
6376
|
-
singularGenitive: "около {{count}} часов",
|
|
6377
|
-
pluralGenitive: "около {{count}} часов"
|
|
6378
|
-
},
|
|
6379
|
-
future: {
|
|
6380
|
-
singularNominative: "приблизительно через {{count}} час",
|
|
6381
|
-
singularGenitive: "приблизительно через {{count}} часа",
|
|
6382
|
-
pluralGenitive: "приблизительно через {{count}} часов"
|
|
6383
|
-
}
|
|
6384
|
-
}),
|
|
6385
|
-
xHours: buildLocalizeTokenFn({
|
|
6386
|
-
regular: {
|
|
6387
|
-
singularNominative: "{{count}} час",
|
|
6388
|
-
singularGenitive: "{{count}} часа",
|
|
6389
|
-
pluralGenitive: "{{count}} часов"
|
|
6390
|
-
}
|
|
6391
|
-
}),
|
|
6392
|
-
xDays: buildLocalizeTokenFn({
|
|
6393
|
-
regular: {
|
|
6394
|
-
singularNominative: "{{count}} день",
|
|
6395
|
-
singularGenitive: "{{count}} дня",
|
|
6396
|
-
pluralGenitive: "{{count}} дней"
|
|
6397
|
-
}
|
|
6398
|
-
}),
|
|
6399
|
-
aboutXWeeks: buildLocalizeTokenFn({
|
|
6400
|
-
regular: {
|
|
6401
|
-
singularNominative: "около {{count}} недели",
|
|
6402
|
-
singularGenitive: "около {{count}} недель",
|
|
6403
|
-
pluralGenitive: "около {{count}} недель"
|
|
6404
|
-
},
|
|
6405
|
-
future: {
|
|
6406
|
-
singularNominative: "приблизительно через {{count}} неделю",
|
|
6407
|
-
singularGenitive: "приблизительно через {{count}} недели",
|
|
6408
|
-
pluralGenitive: "приблизительно через {{count}} недель"
|
|
6409
|
-
}
|
|
6410
|
-
}),
|
|
6411
|
-
xWeeks: buildLocalizeTokenFn({
|
|
6412
|
-
regular: {
|
|
6413
|
-
singularNominative: "{{count}} неделя",
|
|
6414
|
-
singularGenitive: "{{count}} недели",
|
|
6415
|
-
pluralGenitive: "{{count}} недель"
|
|
6416
|
-
}
|
|
6417
|
-
}),
|
|
6418
|
-
aboutXMonths: buildLocalizeTokenFn({
|
|
6419
|
-
regular: {
|
|
6420
|
-
singularNominative: "около {{count}} месяца",
|
|
6421
|
-
singularGenitive: "около {{count}} месяцев",
|
|
6422
|
-
pluralGenitive: "около {{count}} месяцев"
|
|
6423
|
-
},
|
|
6424
|
-
future: {
|
|
6425
|
-
singularNominative: "приблизительно через {{count}} месяц",
|
|
6426
|
-
singularGenitive: "приблизительно через {{count}} месяца",
|
|
6427
|
-
pluralGenitive: "приблизительно через {{count}} месяцев"
|
|
6428
|
-
}
|
|
6429
|
-
}),
|
|
6430
|
-
xMonths: buildLocalizeTokenFn({
|
|
6431
|
-
regular: {
|
|
6432
|
-
singularNominative: "{{count}} месяц",
|
|
6433
|
-
singularGenitive: "{{count}} месяца",
|
|
6434
|
-
pluralGenitive: "{{count}} месяцев"
|
|
6435
|
-
}
|
|
6436
|
-
}),
|
|
6437
|
-
aboutXYears: buildLocalizeTokenFn({
|
|
6438
|
-
regular: {
|
|
6439
|
-
singularNominative: "около {{count}} года",
|
|
6440
|
-
singularGenitive: "около {{count}} лет",
|
|
6441
|
-
pluralGenitive: "около {{count}} лет"
|
|
6442
|
-
},
|
|
6443
|
-
future: {
|
|
6444
|
-
singularNominative: "приблизительно через {{count}} год",
|
|
6445
|
-
singularGenitive: "приблизительно через {{count}} года",
|
|
6446
|
-
pluralGenitive: "приблизительно через {{count}} лет"
|
|
6447
|
-
}
|
|
6448
|
-
}),
|
|
6449
|
-
xYears: buildLocalizeTokenFn({
|
|
6450
|
-
regular: {
|
|
6451
|
-
singularNominative: "{{count}} год",
|
|
6452
|
-
singularGenitive: "{{count}} года",
|
|
6453
|
-
pluralGenitive: "{{count}} лет"
|
|
6454
|
-
}
|
|
6455
|
-
}),
|
|
6456
|
-
overXYears: buildLocalizeTokenFn({
|
|
6457
|
-
regular: {
|
|
6458
|
-
singularNominative: "больше {{count}} года",
|
|
6459
|
-
singularGenitive: "больше {{count}} лет",
|
|
6460
|
-
pluralGenitive: "больше {{count}} лет"
|
|
6461
|
-
},
|
|
6462
|
-
future: {
|
|
6463
|
-
singularNominative: "больше, чем через {{count}} год",
|
|
6464
|
-
singularGenitive: "больше, чем через {{count}} года",
|
|
6465
|
-
pluralGenitive: "больше, чем через {{count}} лет"
|
|
6466
|
-
}
|
|
6467
|
-
}),
|
|
6468
|
-
almostXYears: buildLocalizeTokenFn({
|
|
6469
|
-
regular: {
|
|
6470
|
-
singularNominative: "почти {{count}} год",
|
|
6471
|
-
singularGenitive: "почти {{count}} года",
|
|
6472
|
-
pluralGenitive: "почти {{count}} лет"
|
|
6473
|
-
},
|
|
6474
|
-
future: {
|
|
6475
|
-
singularNominative: "почти через {{count}} год",
|
|
6476
|
-
singularGenitive: "почти через {{count}} года",
|
|
6477
|
-
pluralGenitive: "почти через {{count}} лет"
|
|
6478
|
-
}
|
|
6479
|
-
})
|
|
6480
|
-
};
|
|
6481
|
-
const formatDistance = (token, count, options) => {
|
|
6482
|
-
return formatDistanceLocale[token](count, options);
|
|
6483
|
-
};
|
|
6484
|
-
const dateFormats = {
|
|
6485
|
-
full: "EEEE, d MMMM y 'г.'",
|
|
6486
|
-
long: "d MMMM y 'г.'",
|
|
6487
|
-
medium: "d MMM y 'г.'",
|
|
6488
|
-
short: "dd.MM.y"
|
|
6489
|
-
};
|
|
6490
|
-
const timeFormats = {
|
|
6491
|
-
full: "H:mm:ss zzzz",
|
|
6492
|
-
long: "H:mm:ss z",
|
|
6493
|
-
medium: "H:mm:ss",
|
|
6494
|
-
short: "H:mm"
|
|
6495
|
-
};
|
|
6496
|
-
const dateTimeFormats = {
|
|
6497
|
-
any: "{{date}}, {{time}}"
|
|
6498
|
-
};
|
|
6499
|
-
const formatLong = {
|
|
6500
|
-
date: buildFormatLongFn({
|
|
6501
|
-
formats: dateFormats,
|
|
6502
|
-
defaultWidth: "full"
|
|
6503
|
-
}),
|
|
6504
|
-
time: buildFormatLongFn({
|
|
6505
|
-
formats: timeFormats,
|
|
6506
|
-
defaultWidth: "full"
|
|
6507
|
-
}),
|
|
6508
|
-
dateTime: buildFormatLongFn({
|
|
6509
|
-
formats: dateTimeFormats,
|
|
6510
|
-
defaultWidth: "any"
|
|
6511
|
-
})
|
|
6512
|
-
};
|
|
6513
|
-
const accusativeWeekdays = [
|
|
6514
|
-
"воскресенье",
|
|
6515
|
-
"понедельник",
|
|
6516
|
-
"вторник",
|
|
6517
|
-
"среду",
|
|
6518
|
-
"четверг",
|
|
6519
|
-
"пятницу",
|
|
6520
|
-
"субботу"
|
|
6521
|
-
];
|
|
6522
|
-
function lastWeek(day) {
|
|
6523
|
-
const weekday = accusativeWeekdays[day];
|
|
6524
|
-
switch (day) {
|
|
6525
|
-
case 0:
|
|
6526
|
-
return "'в прошлое " + weekday + " в' p";
|
|
6527
|
-
case 1:
|
|
6528
|
-
case 2:
|
|
6529
|
-
case 4:
|
|
6530
|
-
return "'в прошлый " + weekday + " в' p";
|
|
6531
|
-
case 3:
|
|
6532
|
-
case 5:
|
|
6533
|
-
case 6:
|
|
6534
|
-
return "'в прошлую " + weekday + " в' p";
|
|
6535
|
-
}
|
|
6536
|
-
}
|
|
6537
|
-
function thisWeek(day) {
|
|
6538
|
-
const weekday = accusativeWeekdays[day];
|
|
6539
|
-
if (day === 2) {
|
|
6540
|
-
return "'во " + weekday + " в' p";
|
|
6541
|
-
} else {
|
|
6542
|
-
return "'в " + weekday + " в' p";
|
|
6543
|
-
}
|
|
6544
|
-
}
|
|
6545
|
-
function nextWeek(day) {
|
|
6546
|
-
const weekday = accusativeWeekdays[day];
|
|
6547
|
-
switch (day) {
|
|
6548
|
-
case 0:
|
|
6549
|
-
return "'в следующее " + weekday + " в' p";
|
|
6550
|
-
case 1:
|
|
6551
|
-
case 2:
|
|
6552
|
-
case 4:
|
|
6553
|
-
return "'в следующий " + weekday + " в' p";
|
|
6554
|
-
case 3:
|
|
6555
|
-
case 5:
|
|
6556
|
-
case 6:
|
|
6557
|
-
return "'в следующую " + weekday + " в' p";
|
|
6558
|
-
}
|
|
6559
|
-
}
|
|
6560
|
-
const formatRelativeLocale = {
|
|
6561
|
-
lastWeek: (date, baseDate, options) => {
|
|
6562
|
-
const day = date.getDay();
|
|
6563
|
-
if (isSameWeek(date, baseDate, options)) {
|
|
6564
|
-
return thisWeek(day);
|
|
6565
|
-
} else {
|
|
6566
|
-
return lastWeek(day);
|
|
6567
|
-
}
|
|
6568
|
-
},
|
|
6569
|
-
yesterday: "'вчера в' p",
|
|
6570
|
-
today: "'сегодня в' p",
|
|
6571
|
-
tomorrow: "'завтра в' p",
|
|
6572
|
-
nextWeek: (date, baseDate, options) => {
|
|
6573
|
-
const day = date.getDay();
|
|
6574
|
-
if (isSameWeek(date, baseDate, options)) {
|
|
6575
|
-
return thisWeek(day);
|
|
6576
|
-
} else {
|
|
6577
|
-
return nextWeek(day);
|
|
6578
|
-
}
|
|
6579
|
-
},
|
|
6580
|
-
other: "P"
|
|
6581
|
-
};
|
|
6582
|
-
const formatRelative = (token, date, baseDate, options) => {
|
|
6583
|
-
const format2 = formatRelativeLocale[token];
|
|
6584
|
-
if (typeof format2 === "function") {
|
|
6585
|
-
return format2(date, baseDate, options);
|
|
6586
|
-
}
|
|
6587
|
-
return format2;
|
|
6588
|
-
};
|
|
6589
|
-
const eraValues = {
|
|
6590
|
-
narrow: ["до н.э.", "н.э."],
|
|
6591
|
-
abbreviated: ["до н. э.", "н. э."],
|
|
6592
|
-
wide: ["до нашей эры", "нашей эры"]
|
|
6593
|
-
};
|
|
6594
|
-
const quarterValues = {
|
|
6595
|
-
narrow: ["1", "2", "3", "4"],
|
|
6596
|
-
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
6597
|
-
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
|
|
6598
|
-
};
|
|
6599
|
-
const monthValues = {
|
|
6600
|
-
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
6601
|
-
abbreviated: [
|
|
6602
|
-
"янв.",
|
|
6603
|
-
"фев.",
|
|
6604
|
-
"март",
|
|
6605
|
-
"апр.",
|
|
6606
|
-
"май",
|
|
6607
|
-
"июнь",
|
|
6608
|
-
"июль",
|
|
6609
|
-
"авг.",
|
|
6610
|
-
"сент.",
|
|
6611
|
-
"окт.",
|
|
6612
|
-
"нояб.",
|
|
6613
|
-
"дек."
|
|
6614
|
-
],
|
|
6615
|
-
wide: [
|
|
6616
|
-
"январь",
|
|
6617
|
-
"февраль",
|
|
6618
|
-
"март",
|
|
6619
|
-
"апрель",
|
|
6620
|
-
"май",
|
|
6621
|
-
"июнь",
|
|
6622
|
-
"июль",
|
|
6623
|
-
"август",
|
|
6624
|
-
"сентябрь",
|
|
6625
|
-
"октябрь",
|
|
6626
|
-
"ноябрь",
|
|
6627
|
-
"декабрь"
|
|
6628
|
-
]
|
|
6629
|
-
};
|
|
6630
|
-
const formattingMonthValues = {
|
|
6631
|
-
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
6632
|
-
abbreviated: [
|
|
6633
|
-
"янв.",
|
|
6634
|
-
"фев.",
|
|
6635
|
-
"мар.",
|
|
6636
|
-
"апр.",
|
|
6637
|
-
"мая",
|
|
6638
|
-
"июн.",
|
|
6639
|
-
"июл.",
|
|
6640
|
-
"авг.",
|
|
6641
|
-
"сент.",
|
|
6642
|
-
"окт.",
|
|
6643
|
-
"нояб.",
|
|
6644
|
-
"дек."
|
|
6645
|
-
],
|
|
6646
|
-
wide: [
|
|
6647
|
-
"января",
|
|
6648
|
-
"февраля",
|
|
6649
|
-
"марта",
|
|
6650
|
-
"апреля",
|
|
6651
|
-
"мая",
|
|
6652
|
-
"июня",
|
|
6653
|
-
"июля",
|
|
6654
|
-
"августа",
|
|
6655
|
-
"сентября",
|
|
6656
|
-
"октября",
|
|
6657
|
-
"ноября",
|
|
6658
|
-
"декабря"
|
|
6659
|
-
]
|
|
6660
|
-
};
|
|
6661
|
-
const dayValues = {
|
|
6662
|
-
narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
|
|
6663
|
-
short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
|
|
6664
|
-
abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
|
|
6665
|
-
wide: [
|
|
6666
|
-
"воскресенье",
|
|
6667
|
-
"понедельник",
|
|
6668
|
-
"вторник",
|
|
6669
|
-
"среда",
|
|
6670
|
-
"четверг",
|
|
6671
|
-
"пятница",
|
|
6672
|
-
"суббота"
|
|
6673
|
-
]
|
|
6674
|
-
};
|
|
6675
|
-
const dayPeriodValues = {
|
|
6676
|
-
narrow: {
|
|
6677
|
-
am: "ДП",
|
|
6678
|
-
pm: "ПП",
|
|
6679
|
-
midnight: "полн.",
|
|
6680
|
-
noon: "полд.",
|
|
6681
|
-
morning: "утро",
|
|
6682
|
-
afternoon: "день",
|
|
6683
|
-
evening: "веч.",
|
|
6684
|
-
night: "ночь"
|
|
6685
|
-
},
|
|
6686
|
-
abbreviated: {
|
|
6687
|
-
am: "ДП",
|
|
6688
|
-
pm: "ПП",
|
|
6689
|
-
midnight: "полн.",
|
|
6690
|
-
noon: "полд.",
|
|
6691
|
-
morning: "утро",
|
|
6692
|
-
afternoon: "день",
|
|
6693
|
-
evening: "веч.",
|
|
6694
|
-
night: "ночь"
|
|
6695
|
-
},
|
|
6696
|
-
wide: {
|
|
6697
|
-
am: "ДП",
|
|
6698
|
-
pm: "ПП",
|
|
6699
|
-
midnight: "полночь",
|
|
6700
|
-
noon: "полдень",
|
|
6701
|
-
morning: "утро",
|
|
6702
|
-
afternoon: "день",
|
|
6703
|
-
evening: "вечер",
|
|
6704
|
-
night: "ночь"
|
|
6705
|
-
}
|
|
6706
|
-
};
|
|
6707
|
-
const formattingDayPeriodValues = {
|
|
6708
|
-
narrow: {
|
|
6709
|
-
am: "ДП",
|
|
6710
|
-
pm: "ПП",
|
|
6711
|
-
midnight: "полн.",
|
|
6712
|
-
noon: "полд.",
|
|
6713
|
-
morning: "утра",
|
|
6714
|
-
afternoon: "дня",
|
|
6715
|
-
evening: "веч.",
|
|
6716
|
-
night: "ночи"
|
|
6717
|
-
},
|
|
6718
|
-
abbreviated: {
|
|
6719
|
-
am: "ДП",
|
|
6720
|
-
pm: "ПП",
|
|
6721
|
-
midnight: "полн.",
|
|
6722
|
-
noon: "полд.",
|
|
6723
|
-
morning: "утра",
|
|
6724
|
-
afternoon: "дня",
|
|
6725
|
-
evening: "веч.",
|
|
6726
|
-
night: "ночи"
|
|
6727
|
-
},
|
|
6728
|
-
wide: {
|
|
6729
|
-
am: "ДП",
|
|
6730
|
-
pm: "ПП",
|
|
6731
|
-
midnight: "полночь",
|
|
6732
|
-
noon: "полдень",
|
|
6733
|
-
morning: "утра",
|
|
6734
|
-
afternoon: "дня",
|
|
6735
|
-
evening: "вечера",
|
|
6736
|
-
night: "ночи"
|
|
6737
|
-
}
|
|
6738
|
-
};
|
|
6739
|
-
const ordinalNumber = (dirtyNumber, options) => {
|
|
6740
|
-
const number = Number(dirtyNumber);
|
|
6741
|
-
const unit = options?.unit;
|
|
6742
|
-
let suffix;
|
|
6743
|
-
if (unit === "date") {
|
|
6744
|
-
suffix = "-е";
|
|
6745
|
-
} else if (unit === "week" || unit === "minute" || unit === "second") {
|
|
6746
|
-
suffix = "-я";
|
|
6747
|
-
} else {
|
|
6748
|
-
suffix = "-й";
|
|
6749
|
-
}
|
|
6750
|
-
return number + suffix;
|
|
6751
|
-
};
|
|
6752
|
-
const localize = {
|
|
6753
|
-
ordinalNumber,
|
|
6754
|
-
era: buildLocalizeFn({
|
|
6755
|
-
values: eraValues,
|
|
6756
|
-
defaultWidth: "wide"
|
|
6757
|
-
}),
|
|
6758
|
-
quarter: buildLocalizeFn({
|
|
6759
|
-
values: quarterValues,
|
|
6760
|
-
defaultWidth: "wide",
|
|
6761
|
-
argumentCallback: (quarter) => quarter - 1
|
|
6762
|
-
}),
|
|
6763
|
-
month: buildLocalizeFn({
|
|
6764
|
-
values: monthValues,
|
|
6765
|
-
defaultWidth: "wide",
|
|
6766
|
-
formattingValues: formattingMonthValues,
|
|
6767
|
-
defaultFormattingWidth: "wide"
|
|
6768
|
-
}),
|
|
6769
|
-
day: buildLocalizeFn({
|
|
6770
|
-
values: dayValues,
|
|
6771
|
-
defaultWidth: "wide"
|
|
6772
|
-
}),
|
|
6773
|
-
dayPeriod: buildLocalizeFn({
|
|
6774
|
-
values: dayPeriodValues,
|
|
6775
|
-
defaultWidth: "any",
|
|
6776
|
-
formattingValues: formattingDayPeriodValues,
|
|
6777
|
-
defaultFormattingWidth: "wide"
|
|
6778
|
-
})
|
|
6779
|
-
};
|
|
6780
|
-
const matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i;
|
|
6781
|
-
const parseOrdinalNumberPattern = /\d+/i;
|
|
6782
|
-
const matchEraPatterns = {
|
|
6783
|
-
narrow: /^((до )?н\.?\s?э\.?)/i,
|
|
6784
|
-
abbreviated: /^((до )?н\.?\s?э\.?)/i,
|
|
6785
|
-
wide: /^(до нашей эры|нашей эры|наша эра)/i
|
|
6786
|
-
};
|
|
6787
|
-
const parseEraPatterns = {
|
|
6788
|
-
any: [/^д/i, /^н/i]
|
|
6789
|
-
};
|
|
6790
|
-
const matchQuarterPatterns = {
|
|
6791
|
-
narrow: /^[1234]/i,
|
|
6792
|
-
abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
|
|
6793
|
-
wide: /^[1234](-?[ыои]?й?)? квартал/i
|
|
6794
|
-
};
|
|
6795
|
-
const parseQuarterPatterns = {
|
|
6796
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
6797
|
-
};
|
|
6798
|
-
const matchMonthPatterns = {
|
|
6799
|
-
narrow: /^[яфмаисонд]/i,
|
|
6800
|
-
abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
|
|
6801
|
-
wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
|
|
6802
|
-
};
|
|
6803
|
-
const parseMonthPatterns = {
|
|
6804
|
-
narrow: [
|
|
6805
|
-
/^я/i,
|
|
6806
|
-
/^ф/i,
|
|
6807
|
-
/^м/i,
|
|
6808
|
-
/^а/i,
|
|
6809
|
-
/^м/i,
|
|
6810
|
-
/^и/i,
|
|
6811
|
-
/^и/i,
|
|
6812
|
-
/^а/i,
|
|
6813
|
-
/^с/i,
|
|
6814
|
-
/^о/i,
|
|
6815
|
-
/^н/i,
|
|
6816
|
-
/^я/i
|
|
6817
|
-
],
|
|
6818
|
-
any: [
|
|
6819
|
-
/^я/i,
|
|
6820
|
-
/^ф/i,
|
|
6821
|
-
/^мар/i,
|
|
6822
|
-
/^ап/i,
|
|
6823
|
-
/^ма[йя]/i,
|
|
6824
|
-
/^июн/i,
|
|
6825
|
-
/^июл/i,
|
|
6826
|
-
/^ав/i,
|
|
6827
|
-
/^с/i,
|
|
6828
|
-
/^о/i,
|
|
6829
|
-
/^н/i,
|
|
6830
|
-
/^д/i
|
|
6831
|
-
]
|
|
6832
|
-
};
|
|
6833
|
-
const matchDayPatterns = {
|
|
6834
|
-
narrow: /^[впсч]/i,
|
|
6835
|
-
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
6836
|
-
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
6837
|
-
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
6838
|
-
};
|
|
6839
|
-
const parseDayPatterns = {
|
|
6840
|
-
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
6841
|
-
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
6842
|
-
};
|
|
6843
|
-
const matchDayPeriodPatterns = {
|
|
6844
|
-
narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
6845
|
-
abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
6846
|
-
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
|
|
6847
|
-
};
|
|
6848
|
-
const parseDayPeriodPatterns = {
|
|
6849
|
-
any: {
|
|
6850
|
-
am: /^дп/i,
|
|
6851
|
-
pm: /^пп/i,
|
|
6852
|
-
midnight: /^полн/i,
|
|
6853
|
-
noon: /^полд/i,
|
|
6854
|
-
morning: /^у/i,
|
|
6855
|
-
afternoon: /^д[ен]/i,
|
|
6856
|
-
evening: /^в/i,
|
|
6857
|
-
night: /^н/i
|
|
6858
|
-
}
|
|
6859
|
-
};
|
|
6860
|
-
const match = {
|
|
6861
|
-
ordinalNumber: buildMatchPatternFn({
|
|
6862
|
-
matchPattern: matchOrdinalNumberPattern,
|
|
6863
|
-
parsePattern: parseOrdinalNumberPattern,
|
|
6864
|
-
valueCallback: (value) => parseInt(value, 10)
|
|
6865
|
-
}),
|
|
6866
|
-
era: buildMatchFn({
|
|
6867
|
-
matchPatterns: matchEraPatterns,
|
|
6868
|
-
defaultMatchWidth: "wide",
|
|
6869
|
-
parsePatterns: parseEraPatterns,
|
|
6870
|
-
defaultParseWidth: "any"
|
|
6871
|
-
}),
|
|
6872
|
-
quarter: buildMatchFn({
|
|
6873
|
-
matchPatterns: matchQuarterPatterns,
|
|
6874
|
-
defaultMatchWidth: "wide",
|
|
6875
|
-
parsePatterns: parseQuarterPatterns,
|
|
6876
|
-
defaultParseWidth: "any",
|
|
6877
|
-
valueCallback: (index) => index + 1
|
|
6878
|
-
}),
|
|
6879
|
-
month: buildMatchFn({
|
|
6880
|
-
matchPatterns: matchMonthPatterns,
|
|
6881
|
-
defaultMatchWidth: "wide",
|
|
6882
|
-
parsePatterns: parseMonthPatterns,
|
|
6883
|
-
defaultParseWidth: "any"
|
|
6884
|
-
}),
|
|
6885
|
-
day: buildMatchFn({
|
|
6886
|
-
matchPatterns: matchDayPatterns,
|
|
6887
|
-
defaultMatchWidth: "wide",
|
|
6888
|
-
parsePatterns: parseDayPatterns,
|
|
6889
|
-
defaultParseWidth: "any"
|
|
6890
|
-
}),
|
|
6891
|
-
dayPeriod: buildMatchFn({
|
|
6892
|
-
matchPatterns: matchDayPeriodPatterns,
|
|
6893
|
-
defaultMatchWidth: "wide",
|
|
6894
|
-
parsePatterns: parseDayPeriodPatterns,
|
|
6895
|
-
defaultParseWidth: "any"
|
|
6896
|
-
})
|
|
6897
|
-
};
|
|
6898
|
-
const ru = {
|
|
6899
|
-
code: "ru",
|
|
6900
|
-
formatDistance,
|
|
6901
|
-
formatLong,
|
|
6902
|
-
formatRelative,
|
|
6903
|
-
localize,
|
|
6904
|
-
match,
|
|
6905
|
-
options: {
|
|
6906
|
-
weekStartsOn: 1,
|
|
6907
|
-
firstWeekContainsDate: 1
|
|
6908
|
-
}
|
|
6909
|
-
};
|
|
6910
5316
|
const formatDateLat = (date) => format(date, "dd/MM/yyyy", { locale: enGB });
|
|
6911
5317
|
const formatDateEs = (date) => format(date, "dd.MM.yyyy", { locale: es });
|
|
6912
5318
|
const formatDateRu = (date) => format(date, "dd.MM.yyyy", { locale: ru });
|
|
@@ -6969,12 +5375,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
6969
5375
|
};
|
|
6970
5376
|
}
|
|
6971
5377
|
});
|
|
6972
|
-
const _hoisted_1$
|
|
5378
|
+
const _hoisted_1$q = {
|
|
6973
5379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6974
5380
|
viewBox: "0 0 24 24"
|
|
6975
5381
|
};
|
|
6976
5382
|
function render$b(_ctx, _cache) {
|
|
6977
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
5383
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$q, [..._cache[0] || (_cache[0] = [
|
|
6978
5384
|
createElementVNode("path", {
|
|
6979
5385
|
fill: "currentColor",
|
|
6980
5386
|
"fill-rule": "evenodd",
|
|
@@ -6984,12 +5390,12 @@ function render$b(_ctx, _cache) {
|
|
|
6984
5390
|
])]);
|
|
6985
5391
|
}
|
|
6986
5392
|
const IconCalendar = { render: render$b };
|
|
6987
|
-
const _hoisted_1$
|
|
5393
|
+
const _hoisted_1$p = {
|
|
6988
5394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6989
5395
|
viewBox: "0 0 24 24"
|
|
6990
5396
|
};
|
|
6991
5397
|
function render$a(_ctx, _cache) {
|
|
6992
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
5398
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$p, [..._cache[0] || (_cache[0] = [
|
|
6993
5399
|
createElementVNode("path", {
|
|
6994
5400
|
fill: "currentColor",
|
|
6995
5401
|
"fill-rule": "evenodd",
|
|
@@ -7098,18 +5504,15 @@ const _i18n$5 = define({
|
|
|
7098
5504
|
"ru-RU": messages_ru_RU$5
|
|
7099
5505
|
}
|
|
7100
5506
|
});
|
|
7101
|
-
const _hoisted_1$
|
|
5507
|
+
const _hoisted_1$o = ["id"];
|
|
7102
5508
|
const _hoisted_2$c = {
|
|
7103
5509
|
key: 0,
|
|
7104
5510
|
class: "ui-v1-textbox__prefix"
|
|
7105
5511
|
};
|
|
7106
5512
|
const _hoisted_3$b = ["id", "type", "value", "max", "min", "step", "aria-invalid", "autocomplete", "inputmode", "maxlength", "placeholder", "readonly", "required", "disabled"];
|
|
7107
5513
|
const _hoisted_4$6 = ["id", "value", "aria-invalid", "autocomplete", "inputmode", "maxlength", "placeholder", "rows", "cols", "readonly", "required", "disabled"];
|
|
7108
|
-
const _hoisted_5$5 =
|
|
7109
|
-
|
|
7110
|
-
class: "ui-v1-textbox__eraser"
|
|
7111
|
-
};
|
|
7112
|
-
const _hoisted_6$3 = {
|
|
5514
|
+
const _hoisted_5$5 = ["disabled", "aria-controls", "aria-label"];
|
|
5515
|
+
const _hoisted_6$4 = {
|
|
7113
5516
|
key: 7,
|
|
7114
5517
|
class: "ui-v1-textbox__suffix"
|
|
7115
5518
|
};
|
|
@@ -7604,14 +6007,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7604
6007
|
ref: placeholderRef,
|
|
7605
6008
|
class: "ui-v1-textbox__placeholder"
|
|
7606
6009
|
}, toDisplayString(__props.placeholder), 513)) : createCommentVNode("", true),
|
|
7607
|
-
__props.clearable && String(__props.value) ? (openBlock(), createElementBlock("
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
6010
|
+
__props.clearable && String(__props.value) ? (openBlock(), createElementBlock("button", {
|
|
6011
|
+
key: 5,
|
|
6012
|
+
type: "button",
|
|
6013
|
+
class: "ui-v1-textbox__eraser",
|
|
6014
|
+
disabled: __props.disabled || __props.readonly,
|
|
6015
|
+
"aria-controls": __props.id ?? unref(uid2),
|
|
6016
|
+
"aria-label": i18n.value.t("clear"),
|
|
6017
|
+
onClick: clear2
|
|
6018
|
+
}, [
|
|
6019
|
+
createVNode(unref(IconClearCircle), { "aria-hidden": "true" })
|
|
6020
|
+
], 8, _hoisted_5$5)) : createCommentVNode("", true),
|
|
7615
6021
|
"trailing-icon" in _ctx.$slots ? (openBlock(), createElementBlock("span", {
|
|
7616
6022
|
key: 6,
|
|
7617
6023
|
class: "ui-v1-textbox__icon ui-v1-textbox__icon_trailing",
|
|
@@ -7619,12 +6025,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7619
6025
|
}, [
|
|
7620
6026
|
renderSlot(_ctx.$slots, "trailing-icon")
|
|
7621
6027
|
])) : createCommentVNode("", true),
|
|
7622
|
-
__props.suffix || "suffix" in _ctx.$slots ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
6028
|
+
__props.suffix || "suffix" in _ctx.$slots ? (openBlock(), createElementBlock("span", _hoisted_6$4, [
|
|
7623
6029
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
7624
6030
|
createTextVNode(toDisplayString(__props.suffix), 1)
|
|
7625
6031
|
])
|
|
7626
6032
|
])) : createCommentVNode("", true)
|
|
7627
|
-
], 16, _hoisted_1$
|
|
6033
|
+
], 16, _hoisted_1$o);
|
|
7628
6034
|
};
|
|
7629
6035
|
}
|
|
7630
6036
|
});
|
|
@@ -7642,7 +6048,7 @@ const deltaTransition$1 = (el) => {
|
|
|
7642
6048
|
animationDuration: `${delta * 15}ms`
|
|
7643
6049
|
} : {};
|
|
7644
6050
|
};
|
|
7645
|
-
const _hoisted_1$
|
|
6051
|
+
const _hoisted_1$n = {
|
|
7646
6052
|
key: 0,
|
|
7647
6053
|
class: "ui-v1-menu-item__avatar"
|
|
7648
6054
|
};
|
|
@@ -7656,7 +6062,7 @@ const _hoisted_5$4 = {
|
|
|
7656
6062
|
key: 0,
|
|
7657
6063
|
class: "ui-v1-menu-item__description"
|
|
7658
6064
|
};
|
|
7659
|
-
const _hoisted_6$
|
|
6065
|
+
const _hoisted_6$3 = {
|
|
7660
6066
|
key: 2,
|
|
7661
6067
|
class: "ui-v1-menu-item__counter"
|
|
7662
6068
|
};
|
|
@@ -7743,7 +6149,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7743
6149
|
}),
|
|
7744
6150
|
onMouseoverOnce: onHover
|
|
7745
6151
|
}, [
|
|
7746
|
-
_ctx.$slots["avatar"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6152
|
+
_ctx.$slots["avatar"] ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
7747
6153
|
renderSlot(_ctx.$slots, "avatar")
|
|
7748
6154
|
])) : _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
7749
6155
|
renderSlot(_ctx.$slots, "leading-icon")
|
|
@@ -7766,7 +6172,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7766
6172
|
])
|
|
7767
6173
|
])) : createCommentVNode("", true)
|
|
7768
6174
|
]),
|
|
7769
|
-
__props.counter !== null ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
6175
|
+
__props.counter !== null ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(__props.counter), 1)) : createCommentVNode("", true),
|
|
7770
6176
|
_ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
7771
6177
|
renderSlot(_ctx.$slots, "trailing-icon")
|
|
7772
6178
|
])) : createCommentVNode("", true)
|
|
@@ -8031,7 +6437,7 @@ const _i18n$4 = define({
|
|
|
8031
6437
|
"ru-RU": messages_ru_RU$4
|
|
8032
6438
|
}
|
|
8033
6439
|
});
|
|
8034
|
-
const _hoisted_1$
|
|
6440
|
+
const _hoisted_1$m = ["id", "aria-controls", "aria-disabled", "aria-expanded", "aria-readonly"];
|
|
8035
6441
|
const _hoisted_2$a = ["id"];
|
|
8036
6442
|
const _hoisted_3$9 = { class: "ui-v1-date-picker__workspace" };
|
|
8037
6443
|
const _hoisted_4$4 = { class: "ui-v1-date-picker__action" };
|
|
@@ -8518,7 +6924,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8518
6924
|
]),
|
|
8519
6925
|
_: 1
|
|
8520
6926
|
}, 16, ["id", "visible", "target", "container", "placement", "aria-hidden", "class", "disabled"])
|
|
8521
|
-
], 16, _hoisted_1$
|
|
6927
|
+
], 16, _hoisted_1$m);
|
|
8522
6928
|
};
|
|
8523
6929
|
}
|
|
8524
6930
|
});
|
|
@@ -8566,12 +6972,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8566
6972
|
};
|
|
8567
6973
|
}
|
|
8568
6974
|
});
|
|
8569
|
-
const _hoisted_1$
|
|
6975
|
+
const _hoisted_1$l = {
|
|
8570
6976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8571
6977
|
viewBox: "0 0 24 24"
|
|
8572
6978
|
};
|
|
8573
6979
|
function render$9(_ctx, _cache) {
|
|
8574
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
6980
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$l, [..._cache[0] || (_cache[0] = [
|
|
8575
6981
|
createElementVNode("path", {
|
|
8576
6982
|
fill: "currentColor",
|
|
8577
6983
|
d: "M12.72 15.78a.75.75 0 0 1-.53.22h-.38a.77.77 0 0 1-.53-.22l-5.13-5.14a.5.5 0 0 1 0-.71l.71-.71a.49.49 0 0 1 .7 0L12 13.67l4.44-4.45a.5.5 0 0 1 .71 0l.7.71a.5.5 0 0 1 0 .71z"
|
|
@@ -8579,12 +6985,12 @@ function render$9(_ctx, _cache) {
|
|
|
8579
6985
|
])]);
|
|
8580
6986
|
}
|
|
8581
6987
|
const IconChevronDown = { render: render$9 };
|
|
8582
|
-
const _hoisted_1$
|
|
6988
|
+
const _hoisted_1$k = {
|
|
8583
6989
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8584
6990
|
viewBox: "0 0 24 24"
|
|
8585
6991
|
};
|
|
8586
6992
|
function render$8(_ctx, _cache) {
|
|
8587
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
6993
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$k, [..._cache[0] || (_cache[0] = [
|
|
8588
6994
|
createElementVNode("path", {
|
|
8589
6995
|
fill: "currentColor",
|
|
8590
6996
|
d: "M11.28 8.22a.75.75 0 0 1 .53-.22h.38a.77.77 0 0 1 .53.22l5.13 5.14a.5.5 0 0 1 0 .71l-.71.71a.49.49 0 0 1-.7 0L12 10.33l-4.44 4.45a.5.5 0 0 1-.71 0l-.7-.71a.5.5 0 0 1 0-.71z"
|
|
@@ -8592,7 +6998,7 @@ function render$8(_ctx, _cache) {
|
|
|
8592
6998
|
])]);
|
|
8593
6999
|
}
|
|
8594
7000
|
const IconChevronUp = { render: render$8 };
|
|
8595
|
-
const _hoisted_1$
|
|
7001
|
+
const _hoisted_1$j = ["id", "aria-expanded", "aria-hidden"];
|
|
8596
7002
|
const _hoisted_2$9 = {
|
|
8597
7003
|
"aria-hidden": "true",
|
|
8598
7004
|
class: "ui-v1-infobox__media"
|
|
@@ -8603,7 +7009,7 @@ const _hoisted_5$3 = {
|
|
|
8603
7009
|
key: 0,
|
|
8604
7010
|
class: "ui-v1-infobox__header"
|
|
8605
7011
|
};
|
|
8606
|
-
const _hoisted_6$
|
|
7012
|
+
const _hoisted_6$2 = ["id"];
|
|
8607
7013
|
const _hoisted_7$1 = ["aria-controls", "aria-expanded"];
|
|
8608
7014
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
8609
7015
|
...{
|
|
@@ -8783,7 +7189,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8783
7189
|
}, () => [
|
|
8784
7190
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
8785
7191
|
])
|
|
8786
|
-
], 8, _hoisted_6$
|
|
7192
|
+
], 8, _hoisted_6$2)) : createCommentVNode("", true),
|
|
8787
7193
|
__props.expandable ? (openBlock(), createElementBlock("button", {
|
|
8788
7194
|
key: 1,
|
|
8789
7195
|
"aria-controls": bodyId.value,
|
|
@@ -8836,7 +7242,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8836
7242
|
}, [
|
|
8837
7243
|
createVNode(unref(IconClear), { class: "ui-v1-infobox__closer-icon" })
|
|
8838
7244
|
])) : createCommentVNode("", true)
|
|
8839
|
-
], 16, _hoisted_1$
|
|
7245
|
+
], 16, _hoisted_1$j), [
|
|
8840
7246
|
[vShow, state.shouldBeShown]
|
|
8841
7247
|
])
|
|
8842
7248
|
]),
|
|
@@ -8845,12 +7251,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8845
7251
|
};
|
|
8846
7252
|
}
|
|
8847
7253
|
});
|
|
8848
|
-
const _hoisted_1$
|
|
7254
|
+
const _hoisted_1$i = {
|
|
8849
7255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8850
7256
|
viewBox: "0 0 24 24"
|
|
8851
7257
|
};
|
|
8852
7258
|
function render$7(_ctx, _cache) {
|
|
8853
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
7259
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, [..._cache[0] || (_cache[0] = [
|
|
8854
7260
|
createElementVNode("path", {
|
|
8855
7261
|
fill: "currentColor",
|
|
8856
7262
|
d: "m6.844 17.854-.7-.703a.5.5 0 0 1 0-.704l8.48-8.456-6.212.007a.49.49 0 0 1-.496-.5l.007-.991a.5.5 0 0 1 .496-.5L16.994 6c.196 0 .385.078.524.218l.265.267c.137.142.215.33.217.528l-.007 8.633a.5.5 0 0 1-.496.5h-.992a.48.48 0 0 1-.49-.493l.007-6.255-8.48 8.456a.49.49 0 0 1-.698 0"
|
|
@@ -8876,7 +7282,7 @@ var SIZE$3 = /* @__PURE__ */ ((SIZE2) => {
|
|
|
8876
7282
|
SIZE2["TITLE02"] = "title-02";
|
|
8877
7283
|
return SIZE2;
|
|
8878
7284
|
})(SIZE$3 || {});
|
|
8879
|
-
const _hoisted_1$
|
|
7285
|
+
const _hoisted_1$h = ["href", "target"];
|
|
8880
7286
|
const _hoisted_2$8 = {
|
|
8881
7287
|
key: 0,
|
|
8882
7288
|
class: "ui-v1-link__inner"
|
|
@@ -8962,7 +7368,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8962
7368
|
createVNode(unref(IconOpenInNew), { class: "ui-v1-link__icon-sprite" })
|
|
8963
7369
|
])
|
|
8964
7370
|
])) : createCommentVNode("", true)
|
|
8965
|
-
], 16, _hoisted_1$
|
|
7371
|
+
], 16, _hoisted_1$h);
|
|
8966
7372
|
};
|
|
8967
7373
|
}
|
|
8968
7374
|
});
|
|
@@ -9033,7 +7439,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
9033
7439
|
return target;
|
|
9034
7440
|
};
|
|
9035
7441
|
const _sfc_main$h = {};
|
|
9036
|
-
const _hoisted_1$
|
|
7442
|
+
const _hoisted_1$g = { class: "ui-v1-menu-item-group" };
|
|
9037
7443
|
const _hoisted_2$7 = { class: "ui-v1-menu-item-group__head" };
|
|
9038
7444
|
const _hoisted_3$6 = {
|
|
9039
7445
|
key: 0,
|
|
@@ -9048,7 +7454,7 @@ const _hoisted_5$2 = {
|
|
|
9048
7454
|
class: "ui-v1-menu-item-group__count"
|
|
9049
7455
|
};
|
|
9050
7456
|
function _sfc_render(_ctx, _cache) {
|
|
9051
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7457
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
9052
7458
|
createElementVNode("div", _hoisted_2$7, [
|
|
9053
7459
|
_ctx.$slots.option ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
9054
7460
|
renderSlot(_ctx.$slots, "option")
|
|
@@ -9165,7 +7571,7 @@ var SIZE$2 = /* @__PURE__ */ ((SIZE2) => {
|
|
|
9165
7571
|
SIZE2["SM"] = "sm";
|
|
9166
7572
|
return SIZE2;
|
|
9167
7573
|
})(SIZE$2 || {});
|
|
9168
|
-
const _hoisted_1$
|
|
7574
|
+
const _hoisted_1$f = ["id", "aria-hidden", "role"];
|
|
9169
7575
|
const _hoisted_2$6 = ["id"];
|
|
9170
7576
|
const _hoisted_3$5 = { class: "ui-v1-modal-sidebar__header" };
|
|
9171
7577
|
const _hoisted_4$1 = { class: "ui-v1-modal-sidebar__header-inner" };
|
|
@@ -9174,11 +7580,12 @@ const _hoisted_5$1 = {
|
|
|
9174
7580
|
class: "ui-v1-modal-sidebar__title",
|
|
9175
7581
|
role: "heading"
|
|
9176
7582
|
};
|
|
9177
|
-
const _hoisted_6 =
|
|
7583
|
+
const _hoisted_6$1 = ["disabled"];
|
|
7584
|
+
const _hoisted_7 = {
|
|
9178
7585
|
key: 0,
|
|
9179
7586
|
class: "ui-v1-modal-sidebar__body-fixed"
|
|
9180
7587
|
};
|
|
9181
|
-
const
|
|
7588
|
+
const _hoisted_8 = {
|
|
9182
7589
|
key: 2,
|
|
9183
7590
|
class: "ui-v1-modal-sidebar__footer"
|
|
9184
7591
|
};
|
|
@@ -9229,6 +7636,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9229
7636
|
size: {
|
|
9230
7637
|
type: String,
|
|
9231
7638
|
default: SIZE$2.SM
|
|
7639
|
+
},
|
|
7640
|
+
/** ARIA-роль модального контейнера */
|
|
7641
|
+
role: {
|
|
7642
|
+
type: String,
|
|
7643
|
+
validator: (role) => ["dialog", "alertdialog"].includes(role),
|
|
7644
|
+
default: "dialog"
|
|
9232
7645
|
}
|
|
9233
7646
|
},
|
|
9234
7647
|
emits: [
|
|
@@ -9420,7 +7833,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9420
7833
|
["ui-v1-modal-sidebar-overlay_fixed"]: __props.fixed,
|
|
9421
7834
|
[`ui-v1-modal-sidebar-overlay_${__props.direction}`]: __props.fixed
|
|
9422
7835
|
}],
|
|
9423
|
-
"aria-modal": "true"
|
|
7836
|
+
"aria-modal": "true",
|
|
7837
|
+
role: __props.role
|
|
9424
7838
|
}, _ctx.$attrs, { onClick: onBackdropClick }), [
|
|
9425
7839
|
createVNode(_sfc_main$J, {
|
|
9426
7840
|
name: `slide-${__props.direction}`,
|
|
@@ -9448,12 +7862,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9448
7862
|
})
|
|
9449
7863
|
])
|
|
9450
7864
|
]),
|
|
9451
|
-
createElementVNode("
|
|
7865
|
+
createElementVNode("button", {
|
|
9452
7866
|
ref_key: "closer",
|
|
9453
7867
|
ref: closer,
|
|
9454
|
-
"aria-
|
|
7868
|
+
"aria-keyshortcuts": "Esc",
|
|
7869
|
+
"aria-label": "Close dialog",
|
|
9455
7870
|
class: "ui-v1-modal-sidebar__close",
|
|
9456
|
-
|
|
7871
|
+
type: "button",
|
|
7872
|
+
disabled: state.overlapped,
|
|
9457
7873
|
onClick: onCloserClick
|
|
9458
7874
|
}, [
|
|
9459
7875
|
createVNode(unref(IconClear), {
|
|
@@ -9469,9 +7885,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9469
7885
|
])]),
|
|
9470
7886
|
_: 1
|
|
9471
7887
|
}, 8, ["target"])
|
|
9472
|
-
],
|
|
7888
|
+
], 8, _hoisted_6$1)
|
|
9473
7889
|
]),
|
|
9474
|
-
__props.scrolling === unref(SCROLLING$1).NONE ? (openBlock(), createElementBlock("div",
|
|
7890
|
+
__props.scrolling === unref(SCROLLING$1).NONE ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
9475
7891
|
renderSlot(_ctx.$slots, "default", {
|
|
9476
7892
|
overlapped: state.overlapped
|
|
9477
7893
|
})
|
|
@@ -9489,7 +7905,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9489
7905
|
]),
|
|
9490
7906
|
_: 3
|
|
9491
7907
|
}, 8, ["native"])),
|
|
9492
|
-
"footer" in _ctx.$slots ? (openBlock(), createElementBlock("footer",
|
|
7908
|
+
"footer" in _ctx.$slots ? (openBlock(), createElementBlock("footer", _hoisted_8, [
|
|
9493
7909
|
renderSlot(_ctx.$slots, "footer", {
|
|
9494
7910
|
overlapped: state.overlapped
|
|
9495
7911
|
})
|
|
@@ -9498,7 +7914,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9498
7914
|
]),
|
|
9499
7915
|
_: 3
|
|
9500
7916
|
}, 8, ["name"])
|
|
9501
|
-
], 16, _hoisted_1$
|
|
7917
|
+
], 16, _hoisted_1$f), [
|
|
9502
7918
|
[vShow, state.shown]
|
|
9503
7919
|
])
|
|
9504
7920
|
]),
|
|
@@ -9569,6 +7985,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
9569
7985
|
type: String,
|
|
9570
7986
|
validator: (scrolling) => Object.values(SCROLLING).includes(scrolling),
|
|
9571
7987
|
default: SCROLLING.NORMAL
|
|
7988
|
+
},
|
|
7989
|
+
/** ARIA-роль модального контейнера */
|
|
7990
|
+
role: {
|
|
7991
|
+
type: String,
|
|
7992
|
+
validator: (role) => ["dialog", "alertdialog"].includes(role),
|
|
7993
|
+
default: "dialog"
|
|
9572
7994
|
}
|
|
9573
7995
|
},
|
|
9574
7996
|
emits: [
|
|
@@ -9770,6 +8192,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
9770
8192
|
id: props.id,
|
|
9771
8193
|
"aria-hidden": visibility.value !== "shown" ? "true" : "false",
|
|
9772
8194
|
"aria-modal": "true",
|
|
8195
|
+
role: props.role,
|
|
9773
8196
|
...attrs,
|
|
9774
8197
|
class: [attrs.class, {
|
|
9775
8198
|
"ui-v1-modal": true,
|
|
@@ -9800,12 +8223,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
9800
8223
|
};
|
|
9801
8224
|
}
|
|
9802
8225
|
});
|
|
9803
|
-
const _hoisted_1$
|
|
8226
|
+
const _hoisted_1$e = {
|
|
9804
8227
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9805
8228
|
viewBox: "0 0 24 24"
|
|
9806
8229
|
};
|
|
9807
8230
|
function render$6(_ctx, _cache) {
|
|
9808
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
8231
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$e, [..._cache[0] || (_cache[0] = [
|
|
9809
8232
|
createElementVNode("path", {
|
|
9810
8233
|
fill: "currentColor",
|
|
9811
8234
|
"fill-rule": "evenodd",
|
|
@@ -9815,20 +8238,21 @@ function render$6(_ctx, _cache) {
|
|
|
9815
8238
|
])]);
|
|
9816
8239
|
}
|
|
9817
8240
|
const IconWarning = { render: render$6 };
|
|
9818
|
-
const _hoisted_1$
|
|
8241
|
+
const _hoisted_1$d = {
|
|
9819
8242
|
key: 0,
|
|
9820
8243
|
class: "ui-v1-modal-window__icon"
|
|
9821
8244
|
};
|
|
9822
8245
|
const _hoisted_2$5 = ["id"];
|
|
9823
|
-
const _hoisted_3$4 =
|
|
8246
|
+
const _hoisted_3$4 = ["disabled"];
|
|
8247
|
+
const _hoisted_4 = {
|
|
9824
8248
|
key: 1,
|
|
9825
8249
|
class: "ui-v1-modal-window__content"
|
|
9826
8250
|
};
|
|
9827
|
-
const
|
|
8251
|
+
const _hoisted_5 = {
|
|
9828
8252
|
key: 2,
|
|
9829
8253
|
class: "ui-v1-modal-window__footer"
|
|
9830
8254
|
};
|
|
9831
|
-
const
|
|
8255
|
+
const _hoisted_6 = {
|
|
9832
8256
|
key: 0,
|
|
9833
8257
|
class: "ui-v1-modal-window__footer-text"
|
|
9834
8258
|
};
|
|
@@ -9881,6 +8305,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
9881
8305
|
type: String,
|
|
9882
8306
|
validator: (scrolling) => Object.values(SCROLLING).includes(scrolling),
|
|
9883
8307
|
default: SCROLLING.NORMAL
|
|
8308
|
+
},
|
|
8309
|
+
/** ARIA-роль модального контейнера */
|
|
8310
|
+
role: {
|
|
8311
|
+
type: String,
|
|
8312
|
+
validator: (role) => ["dialog", "alertdialog"].includes(role),
|
|
8313
|
+
default: "dialog"
|
|
9884
8314
|
}
|
|
9885
8315
|
},
|
|
9886
8316
|
emits: [
|
|
@@ -9954,7 +8384,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
9954
8384
|
fullscreen: __props.fullscreen,
|
|
9955
8385
|
responsive: __props.responsive,
|
|
9956
8386
|
"dispose-timeout": __props.disposeTimeout,
|
|
9957
|
-
scrolling: __props.scrolling
|
|
8387
|
+
scrolling: __props.scrolling,
|
|
8388
|
+
role: __props.role
|
|
9958
8389
|
}, {
|
|
9959
8390
|
..._ctx.$attrs,
|
|
9960
8391
|
..._ctx.$slots.title ? { "aria-labelledby": __props.id + "-title" } : {}
|
|
@@ -9974,7 +8405,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
9974
8405
|
"ui-v1-modal-window__header_pinned": _ctx.$slots.title && state.scrolled && __props.appearance === unref(APPEARANCE).POPUP && !__props.responsive
|
|
9975
8406
|
})
|
|
9976
8407
|
}, [
|
|
9977
|
-
__props.appearance === unref(APPEARANCE).ALERT ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8408
|
+
__props.appearance === unref(APPEARANCE).ALERT ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
9978
8409
|
renderSlot(_ctx.$slots, "icon", {
|
|
9979
8410
|
overlapped: state.overlapped
|
|
9980
8411
|
}, () => [
|
|
@@ -9990,18 +8421,20 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
9990
8421
|
overlapped: state.overlapped
|
|
9991
8422
|
})
|
|
9992
8423
|
], 8, _hoisted_2$5)) : createCommentVNode("", true),
|
|
9993
|
-
__props.appearance !== unref(APPEARANCE).ALERT ? (openBlock(), createElementBlock("
|
|
8424
|
+
__props.appearance !== unref(APPEARANCE).ALERT ? (openBlock(), createElementBlock("button", {
|
|
9994
8425
|
key: 2,
|
|
9995
|
-
"aria-
|
|
8426
|
+
"aria-keyshortcuts": "Esc",
|
|
8427
|
+
"aria-label": "Close dialog",
|
|
9996
8428
|
class: "ui-v1-modal-window__close",
|
|
9997
|
-
|
|
9998
|
-
|
|
8429
|
+
type: "button",
|
|
8430
|
+
disabled: state.overlapped,
|
|
8431
|
+
onClick: _cache[0] || (_cache[0] = ($event) => close())
|
|
9999
8432
|
}, [
|
|
10000
8433
|
createVNode(unref(IconClear), {
|
|
10001
|
-
title: "
|
|
8434
|
+
title: "Close dialog",
|
|
10002
8435
|
style: { "width": "100%" }
|
|
10003
8436
|
})
|
|
10004
|
-
])) : createCommentVNode("", true)
|
|
8437
|
+
], 8, _hoisted_3$4)) : createCommentVNode("", true)
|
|
10005
8438
|
], 2),
|
|
10006
8439
|
__props.responsive ? (openBlock(), createBlock(_sfc_main$o, {
|
|
10007
8440
|
key: 0,
|
|
@@ -10015,13 +8448,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
10015
8448
|
})
|
|
10016
8449
|
]),
|
|
10017
8450
|
_: 3
|
|
10018
|
-
})) : (openBlock(), createElementBlock("div",
|
|
8451
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
10019
8452
|
renderSlot(_ctx.$slots, "default", {
|
|
10020
8453
|
overlapped: state.overlapped
|
|
10021
8454
|
})
|
|
10022
8455
|
])),
|
|
10023
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div",
|
|
10024
|
-
__props.appearance === unref(APPEARANCE).HINT ? (openBlock(), createElementBlock("div",
|
|
8456
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
8457
|
+
__props.appearance === unref(APPEARANCE).HINT ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
10025
8458
|
renderSlot(_ctx.$slots, "footer", {
|
|
10026
8459
|
overlapped: state.overlapped
|
|
10027
8460
|
})
|
|
@@ -10032,16 +8465,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
10032
8465
|
])) : createCommentVNode("", true)
|
|
10033
8466
|
]),
|
|
10034
8467
|
_: 3
|
|
10035
|
-
}, 16, ["id", "opened", "closable", "appearance", "fullscreen", "responsive", "dispose-timeout", "scrolling"]);
|
|
8468
|
+
}, 16, ["id", "opened", "closable", "appearance", "fullscreen", "responsive", "dispose-timeout", "scrolling", "role"]);
|
|
10036
8469
|
};
|
|
10037
8470
|
}
|
|
10038
8471
|
});
|
|
10039
|
-
const _hoisted_1$
|
|
8472
|
+
const _hoisted_1$c = {
|
|
10040
8473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10041
8474
|
viewBox: "0 0 24 24"
|
|
10042
8475
|
};
|
|
10043
8476
|
function render$5(_ctx, _cache) {
|
|
10044
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
8477
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$c, [..._cache[0] || (_cache[0] = [
|
|
10045
8478
|
createElementVNode("path", {
|
|
10046
8479
|
fill: "currentColor",
|
|
10047
8480
|
d: "M19 11.5v1a.5.5 0 0 1-.5.5H13v5.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V13H5.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H11V5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V11h5.5a.5.5 0 0 1 .5.5"
|
|
@@ -10049,12 +8482,12 @@ function render$5(_ctx, _cache) {
|
|
|
10049
8482
|
])]);
|
|
10050
8483
|
}
|
|
10051
8484
|
const IconAdd = { render: render$5 };
|
|
10052
|
-
const _hoisted_1$
|
|
8485
|
+
const _hoisted_1$b = {
|
|
10053
8486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10054
8487
|
viewBox: "0 0 24 24"
|
|
10055
8488
|
};
|
|
10056
8489
|
function render$4(_ctx, _cache) {
|
|
10057
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
8490
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$b, [..._cache[0] || (_cache[0] = [
|
|
10058
8491
|
createElementVNode("path", {
|
|
10059
8492
|
fill: "currentColor",
|
|
10060
8493
|
d: "M8.138 11.06A.52.52 0 0 1 8 10.705c0-.133.05-.261.138-.355l.187-.2A.44.44 0 0 1 8.66 10h6.68a.44.44 0 0 1 .335.15l.187.2a.52.52 0 0 1 .138.355c0 .133-.05.26-.138.355l-3.536 3.788A.43.43 0 0 1 12 15a.43.43 0 0 1-.326-.152z"
|
|
@@ -10062,12 +8495,12 @@ function render$4(_ctx, _cache) {
|
|
|
10062
8495
|
])]);
|
|
10063
8496
|
}
|
|
10064
8497
|
const IconCaret = { render: render$4 };
|
|
10065
|
-
const _hoisted_1$
|
|
8498
|
+
const _hoisted_1$a = {
|
|
10066
8499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10067
8500
|
viewBox: "0 0 24 24"
|
|
10068
8501
|
};
|
|
10069
8502
|
function render$3(_ctx, _cache) {
|
|
10070
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
8503
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$a, [..._cache[0] || (_cache[0] = [
|
|
10071
8504
|
createElementVNode("path", {
|
|
10072
8505
|
fill: "currentColor",
|
|
10073
8506
|
d: "M16.14 12.94a.5.5 0 0 1 0 .71l-.2.2a.5.5 0 0 1-.36.15H8.42a.5.5 0 0 1-.36-.15l-.2-.2a.5.5 0 0 1 0-.71l3.79-3.79a.48.48 0 0 1 .7 0z"
|
|
@@ -10075,12 +8508,12 @@ function render$3(_ctx, _cache) {
|
|
|
10075
8508
|
])]);
|
|
10076
8509
|
}
|
|
10077
8510
|
const IconCaretUp = { render: render$3 };
|
|
10078
|
-
const _hoisted_1$
|
|
8511
|
+
const _hoisted_1$9 = {
|
|
10079
8512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10080
8513
|
viewBox: "0 0 24 24"
|
|
10081
8514
|
};
|
|
10082
8515
|
function render$2(_ctx, _cache) {
|
|
10083
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
8516
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$9, [..._cache[0] || (_cache[0] = [
|
|
10084
8517
|
createElementVNode("path", {
|
|
10085
8518
|
fill: "currentColor",
|
|
10086
8519
|
d: "M5.5 13.25c-.276 0-.5-.28-.5-.625v-1.25c0-.345.224-.625.5-.625h13c.276 0 .5.28.5.625v1.25c0 .345-.224.625-.5.625z"
|
|
@@ -10190,7 +8623,7 @@ const _i18n$3 = define({
|
|
|
10190
8623
|
"ru-RU": messages_ru_RU$3
|
|
10191
8624
|
}
|
|
10192
8625
|
});
|
|
10193
|
-
const _hoisted_1$
|
|
8626
|
+
const _hoisted_1$8 = ["id", "aria-disabled", "aria-readonly"];
|
|
10194
8627
|
const _hoisted_2$4 = ["id", "aria-controls", "aria-label", "disabled"];
|
|
10195
8628
|
const _hoisted_3$3 = ["id", "aria-controls", "aria-label", "disabled"];
|
|
10196
8629
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
@@ -10585,7 +9018,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
10585
9018
|
class: "ui-v1-number-stepper__icon"
|
|
10586
9019
|
}))
|
|
10587
9020
|
], 8, _hoisted_3$3)
|
|
10588
|
-
], 16, _hoisted_1$
|
|
9021
|
+
], 16, _hoisted_1$8);
|
|
10589
9022
|
};
|
|
10590
9023
|
}
|
|
10591
9024
|
});
|
|
@@ -10623,7 +9056,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
10623
9056
|
};
|
|
10624
9057
|
}
|
|
10625
9058
|
});
|
|
10626
|
-
const _hoisted_1$
|
|
9059
|
+
const _hoisted_1$7 = ["id", "name", "value", "checked", "required", "disabled"];
|
|
10627
9060
|
let nameCounter = 0;
|
|
10628
9061
|
let idCounter = 0;
|
|
10629
9062
|
const __default__$1 = {};
|
|
@@ -10716,7 +9149,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10716
9149
|
type: "radio",
|
|
10717
9150
|
class: "ui-v1-radio__input",
|
|
10718
9151
|
onChange
|
|
10719
|
-
}), null, 16, _hoisted_1$
|
|
9152
|
+
}), null, 16, _hoisted_1$7),
|
|
10720
9153
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "ui-v1-radio__checkmark" }, null, -1))
|
|
10721
9154
|
], 16);
|
|
10722
9155
|
};
|
|
@@ -10822,7 +9255,7 @@ const createManipulator = (options) => {
|
|
|
10822
9255
|
onDragEnd
|
|
10823
9256
|
};
|
|
10824
9257
|
};
|
|
10825
|
-
const _hoisted_1$
|
|
9258
|
+
const _hoisted_1$6 = {
|
|
10826
9259
|
key: 0,
|
|
10827
9260
|
class: "ui-v1-slider__label"
|
|
10828
9261
|
};
|
|
@@ -10994,7 +9427,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
10994
9427
|
onClick: _cache[2] || (_cache[2] = ($event) => unref(onClick)($event)),
|
|
10995
9428
|
onKeydown: _cache[3] || (_cache[3] = ($event) => onRootKeydown($event))
|
|
10996
9429
|
}), [
|
|
10997
|
-
props.labelled ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9430
|
+
props.labelled ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
10998
9431
|
renderSlot(_ctx.$slots, "label", {
|
|
10999
9432
|
boundary: props.min
|
|
11000
9433
|
})
|
|
@@ -11247,7 +9680,6 @@ const _i18n$2 = define({
|
|
|
11247
9680
|
"ru-RU": messages_ru_RU$2
|
|
11248
9681
|
}
|
|
11249
9682
|
});
|
|
11250
|
-
const _hoisted_1$6 = ["aria-controls", "aria-expanded", "aria-invalid"];
|
|
11251
9683
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
11252
9684
|
__name: "UiSelectTrigger",
|
|
11253
9685
|
props: {
|
|
@@ -11317,6 +9749,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11317
9749
|
type: Boolean,
|
|
11318
9750
|
default: false
|
|
11319
9751
|
},
|
|
9752
|
+
/** Идентификатор активной опции для aria-activedescendant */
|
|
9753
|
+
activeDescendant: {
|
|
9754
|
+
type: null,
|
|
9755
|
+
default: null
|
|
9756
|
+
},
|
|
11320
9757
|
/** Выбранные элементы из выпадающего списка. Должен содержать значение или массив значений, соответствующих атрибуту value опций из выпадающего списка */
|
|
11321
9758
|
selection: {
|
|
11322
9759
|
type: Array,
|
|
@@ -11335,7 +9772,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11335
9772
|
/** Изменение значения */
|
|
11336
9773
|
"update:value",
|
|
11337
9774
|
/** Открытие выпадающего списка */
|
|
11338
|
-
"update:expanded"
|
|
9775
|
+
"update:expanded",
|
|
9776
|
+
/** Нажатие клавиши в поле ввода */
|
|
9777
|
+
"keydown"
|
|
11339
9778
|
],
|
|
11340
9779
|
setup(__props, { emit: __emit }) {
|
|
11341
9780
|
const props = __props;
|
|
@@ -11357,6 +9796,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11357
9796
|
return selectionLabels.value;
|
|
11358
9797
|
});
|
|
11359
9798
|
const selectionWidth = ref(0);
|
|
9799
|
+
const textboxAttributes = computed(() => ({
|
|
9800
|
+
role: "combobox",
|
|
9801
|
+
"aria-controls": props.id ? `${props.id}-popper` : void 0,
|
|
9802
|
+
"aria-expanded": props.expanded ? "true" : "false",
|
|
9803
|
+
"aria-haspopup": "listbox",
|
|
9804
|
+
"aria-activedescendant": props.activeDescendant ?? void 0,
|
|
9805
|
+
...!inputReadonly.value && {
|
|
9806
|
+
"aria-autocomplete": "list"
|
|
9807
|
+
}
|
|
9808
|
+
}));
|
|
11360
9809
|
const updateSelectionWidth = () => {
|
|
11361
9810
|
if (touchstone.value && !props.placeholderOnly) {
|
|
11362
9811
|
nextTick().then(() => {
|
|
@@ -11385,6 +9834,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11385
9834
|
if (props.disabled || props.readonly) return;
|
|
11386
9835
|
return props.expanded ? close() : open();
|
|
11387
9836
|
};
|
|
9837
|
+
const onKeyDown = (event) => {
|
|
9838
|
+
if (props.disabled || props.readonly) return;
|
|
9839
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
9840
|
+
event.preventDefault();
|
|
9841
|
+
open();
|
|
9842
|
+
}
|
|
9843
|
+
if (event.key === "Escape") {
|
|
9844
|
+
event.preventDefault();
|
|
9845
|
+
close();
|
|
9846
|
+
}
|
|
9847
|
+
if (event.key === "Enter") {
|
|
9848
|
+
event.preventDefault();
|
|
9849
|
+
if (!props.expanded) {
|
|
9850
|
+
open();
|
|
9851
|
+
}
|
|
9852
|
+
}
|
|
9853
|
+
if (event.key === " " && inputReadonly.value) {
|
|
9854
|
+
event.preventDefault();
|
|
9855
|
+
onClick();
|
|
9856
|
+
}
|
|
9857
|
+
emit("keydown", event);
|
|
9858
|
+
};
|
|
11388
9859
|
const onInput = (event) => {
|
|
11389
9860
|
const target = event.target;
|
|
11390
9861
|
emit("input", target?.value ?? "");
|
|
@@ -11410,11 +9881,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11410
9881
|
return openBlock(), createElementBlock("div", {
|
|
11411
9882
|
ref_key: "trigger",
|
|
11412
9883
|
ref: trigger,
|
|
11413
|
-
"aria-controls": __props.id + "-popper",
|
|
11414
|
-
"aria-expanded": __props.expanded ? "true" : "false",
|
|
11415
|
-
"aria-invalid": __props.invalid ? "true" : "false",
|
|
11416
|
-
role: "combobox",
|
|
11417
|
-
"aria-haspopup": "listbox",
|
|
11418
9884
|
class: normalizeClass({
|
|
11419
9885
|
"ui-v1-select": true,
|
|
11420
9886
|
"ui-v1-select_active": __props.expanded,
|
|
@@ -11440,11 +9906,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11440
9906
|
readonly: inputReadonly.value,
|
|
11441
9907
|
size: __props.textboxSize,
|
|
11442
9908
|
disabled: __props.disabled,
|
|
9909
|
+
"input-attributes": textboxAttributes.value,
|
|
11443
9910
|
class: "ui-v1-select__trigger",
|
|
11444
9911
|
onInput,
|
|
11445
9912
|
onFocus,
|
|
11446
9913
|
onBlur,
|
|
11447
|
-
onClear
|
|
9914
|
+
onClear,
|
|
9915
|
+
onKeydown: onKeyDown
|
|
11448
9916
|
}, createSlots({
|
|
11449
9917
|
"trailing-icon": withCtx(() => [
|
|
11450
9918
|
renderSlot(_ctx.$slots, "trailing-icon", {}, () => [
|
|
@@ -11463,9 +9931,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11463
9931
|
]),
|
|
11464
9932
|
key: "0"
|
|
11465
9933
|
} : void 0
|
|
11466
|
-
]), 1032, ["id", "value", "placeholder", "active", "clearable", "invalid", "readonly", "size", "disabled"])
|
|
9934
|
+
]), 1032, ["id", "value", "placeholder", "active", "clearable", "invalid", "readonly", "size", "disabled", "input-attributes"])
|
|
11467
9935
|
])
|
|
11468
|
-
],
|
|
9936
|
+
], 2);
|
|
11469
9937
|
};
|
|
11470
9938
|
}
|
|
11471
9939
|
});
|
|
@@ -11687,8 +10155,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
11687
10155
|
renderSlot(_ctx.$slots, "default")
|
|
11688
10156
|
])
|
|
11689
10157
|
], 4),
|
|
11690
|
-
__props.removable || _ctx.$slots["remove-icon"] ? (openBlock(), createElementBlock("
|
|
10158
|
+
__props.removable || _ctx.$slots["remove-icon"] ? (openBlock(), createElementBlock("button", {
|
|
11691
10159
|
key: 1,
|
|
10160
|
+
type: "button",
|
|
11692
10161
|
class: "ui-v1-tag__remove-icon",
|
|
11693
10162
|
"aria-label": i18n.value.t("delete"),
|
|
11694
10163
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("remove"), ["stop"]))
|
|
@@ -12636,18 +11105,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
12636
11105
|
UiTransition: _sfc_main$J,
|
|
12637
11106
|
UiYandexMap: _sfc_main
|
|
12638
11107
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12639
|
-
const createProvider$1 = (components2 = {}) => {
|
|
12640
|
-
const registry = new Map(Object.entries(components2));
|
|
12641
|
-
return {
|
|
12642
|
-
get(type) {
|
|
12643
|
-
const value = registry.get(type);
|
|
12644
|
-
if (value == null) {
|
|
12645
|
-
throw new Error(`Unknown component: ${type}`);
|
|
12646
|
-
}
|
|
12647
|
-
return value;
|
|
12648
|
-
}
|
|
12649
|
-
};
|
|
12650
|
-
};
|
|
12651
11108
|
const createProvider = () => createProvider$1(components);
|
|
12652
11109
|
const provider = createProvider();
|
|
12653
11110
|
export {
|