@retailcrm/embed-ui-v1-components 0.9.13 → 0.9.15
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/AGENTS.md +126 -0
- package/README.md +24 -0
- package/assets/stylesheets/palette.less +11 -6
- package/bin/embed-ui-v1-components.mjs +209 -0
- package/bin/postinstall.mjs +37 -0
- package/dist/host.cjs +1900 -590
- package/dist/host.css +659 -6
- package/dist/host.d.ts +2374 -50
- package/dist/host.js +1901 -591
- package/dist/remote.cjs +610 -33
- package/dist/remote.d.ts +729 -48
- package/dist/remote.js +612 -35
- package/docs/AI.md +106 -0
- package/docs/COMPONENTS.md +96 -0
- package/docs/FORMAT.md +248 -0
- package/docs/PROFILES.md +64 -0
- package/docs/README.md +65 -0
- package/docs/STYLING.md +156 -0
- package/docs/profiles/UiAddButton.yml +45 -0
- package/docs/profiles/UiAlert.yml +36 -0
- package/docs/profiles/UiAvatar.yml +36 -0
- package/docs/profiles/UiAvatarList.yml +30 -0
- package/docs/profiles/UiButton.yml +221 -0
- package/docs/profiles/UiCalendar.yml +36 -0
- package/docs/profiles/UiCheckbox.yml +41 -0
- package/docs/profiles/UiCollapse.yml +28 -0
- package/docs/profiles/UiCollapseBox.yml +39 -0
- package/docs/profiles/UiCollapseGroup.yml +27 -0
- package/docs/profiles/UiCopyButton.yml +40 -0
- package/docs/profiles/UiDate.yml +26 -0
- package/docs/profiles/UiDatePicker.yml +47 -0
- package/docs/profiles/UiError.yml +20 -0
- package/docs/profiles/UiField.yml +229 -0
- package/docs/profiles/UiImage.yml +27 -0
- package/docs/profiles/UiInfobox.yml +33 -0
- package/docs/profiles/UiLink.yml +39 -0
- package/docs/profiles/UiLoader.yml +26 -0
- package/docs/profiles/UiMenuItem.yml +45 -0
- package/docs/profiles/UiMenuItemGroup.yml +38 -0
- package/docs/profiles/UiModalSidebar.yml +34 -0
- package/docs/profiles/UiModalWindow.yml +32 -0
- package/docs/profiles/UiModalWindowSurface.yml +29 -0
- package/docs/profiles/UiNumberStepper.yml +40 -0
- package/docs/profiles/UiPageHeader.yml +240 -0
- package/docs/profiles/UiPopper.yml +197 -0
- package/docs/profiles/UiPopperConnector.yml +109 -0
- package/docs/profiles/UiPopperTarget.yml +112 -0
- package/docs/profiles/UiRadio.yml +26 -0
- package/docs/profiles/UiRadioSwitch.yml +224 -0
- package/docs/profiles/UiRadioSwitchOption.yml +113 -0
- package/docs/profiles/UiScrollBox.yml +19 -0
- package/docs/profiles/UiSelect.yml +318 -0
- package/docs/profiles/UiSelectOption.yml +32 -0
- package/docs/profiles/UiSelectOptionGroup.yml +26 -0
- package/docs/profiles/UiSlider.yml +26 -0
- package/docs/profiles/UiSwitch.yml +25 -0
- package/docs/profiles/UiTab.yml +114 -0
- package/docs/profiles/UiTabGroup.yml +233 -0
- package/docs/profiles/UiTable.yml +148 -0
- package/docs/profiles/UiTableBodyCell.yml +35 -0
- package/docs/profiles/UiTableColumn.yml +38 -0
- package/docs/profiles/UiTableFooterButton.yml +32 -0
- package/docs/profiles/UiTableFooterSection.yml +26 -0
- package/docs/profiles/UiTableHeadCell.yml +32 -0
- package/docs/profiles/UiTableSorter.yml +33 -0
- package/docs/profiles/UiTag.yml +29 -0
- package/docs/profiles/UiTextbox.yml +388 -0
- package/docs/profiles/UiTimePicker.yml +34 -0
- package/docs/profiles/UiToolbarButton.yml +25 -0
- package/docs/profiles/UiToolbarLink.yml +20 -0
- package/docs/profiles/UiTooltip.yml +31 -0
- package/docs/profiles/UiTransition.yml +15 -0
- package/docs/profiles/UiYandexMap.yml +17 -0
- package/package.json +11 -2
package/dist/host.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const dateFns = require("date-fns");
|
|
|
7
7
|
const locale = require("date-fns/locale");
|
|
8
8
|
const vue3PerfectScrollbar = require("vue3-perfect-scrollbar");
|
|
9
9
|
const host = require("@omnicajs/vue-remote/host");
|
|
10
|
-
const _sfc_main$
|
|
10
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
__name: "UiTransition",
|
|
12
12
|
props: {
|
|
13
13
|
/** Наименование анимации перехода */
|
|
@@ -35,13 +35,13 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const _hoisted_1$
|
|
38
|
+
const _hoisted_1$V = {
|
|
39
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
40
|
fill: "none",
|
|
41
41
|
viewBox: "0 0 24 24"
|
|
42
42
|
};
|
|
43
|
-
function render$
|
|
44
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
43
|
+
function render$o(_ctx, _cache) {
|
|
44
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$V, [..._cache[0] || (_cache[0] = [
|
|
45
45
|
vue.createElementVNode("path", {
|
|
46
46
|
fill: "currentColor",
|
|
47
47
|
"fill-rule": "evenodd",
|
|
@@ -50,26 +50,26 @@ function render$n(_ctx, _cache) {
|
|
|
50
50
|
}, null, -1)
|
|
51
51
|
])]);
|
|
52
52
|
}
|
|
53
|
-
const IconCheckmarkCircleOutlined = { render: render$
|
|
54
|
-
const _hoisted_1$
|
|
53
|
+
const IconCheckmarkCircleOutlined = { render: render$o };
|
|
54
|
+
const _hoisted_1$U = {
|
|
55
55
|
xmlns: "http://www.w3.org/2000/svg",
|
|
56
56
|
viewBox: "0 0 24 24"
|
|
57
57
|
};
|
|
58
|
-
function render$
|
|
59
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
58
|
+
function render$n(_ctx, _cache) {
|
|
59
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$U, [..._cache[0] || (_cache[0] = [
|
|
60
60
|
vue.createElementVNode("path", {
|
|
61
61
|
fill: "currentColor",
|
|
62
62
|
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"
|
|
63
63
|
}, null, -1)
|
|
64
64
|
])]);
|
|
65
65
|
}
|
|
66
|
-
const IconClear = { render: render$
|
|
67
|
-
const _hoisted_1$
|
|
66
|
+
const IconClear = { render: render$n };
|
|
67
|
+
const _hoisted_1$T = {
|
|
68
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
69
69
|
viewBox: "0 0 24 24"
|
|
70
70
|
};
|
|
71
|
-
function render$
|
|
72
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
71
|
+
function render$m(_ctx, _cache) {
|
|
72
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$T, [..._cache[0] || (_cache[0] = [
|
|
73
73
|
vue.createElementVNode("path", {
|
|
74
74
|
fill: "currentColor",
|
|
75
75
|
"fill-rule": "evenodd",
|
|
@@ -78,26 +78,26 @@ function render$l(_ctx, _cache) {
|
|
|
78
78
|
}, null, -1)
|
|
79
79
|
])]);
|
|
80
80
|
}
|
|
81
|
-
const IconClearCircleOutlined = { render: render$
|
|
82
|
-
const _hoisted_1$
|
|
81
|
+
const IconClearCircleOutlined = { render: render$m };
|
|
82
|
+
const _hoisted_1$S = {
|
|
83
83
|
xmlns: "http://www.w3.org/2000/svg",
|
|
84
84
|
viewBox: "0 0 24 24"
|
|
85
85
|
};
|
|
86
|
-
function render$
|
|
87
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
86
|
+
function render$l(_ctx, _cache) {
|
|
87
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$S, [..._cache[0] || (_cache[0] = [
|
|
88
88
|
vue.createElementVNode("path", {
|
|
89
89
|
fill: "currentColor",
|
|
90
90
|
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"
|
|
91
91
|
}, null, -1)
|
|
92
92
|
])]);
|
|
93
93
|
}
|
|
94
|
-
const IconErrorOutlined = { render: render$
|
|
95
|
-
const _hoisted_1$
|
|
94
|
+
const IconErrorOutlined = { render: render$l };
|
|
95
|
+
const _hoisted_1$R = {
|
|
96
96
|
xmlns: "http://www.w3.org/2000/svg",
|
|
97
97
|
viewBox: "0 0 24 24"
|
|
98
98
|
};
|
|
99
|
-
function render$
|
|
100
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
99
|
+
function render$k(_ctx, _cache) {
|
|
100
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$R, [..._cache[0] || (_cache[0] = [
|
|
101
101
|
vue.createElementVNode("path", {
|
|
102
102
|
fill: "currentColor",
|
|
103
103
|
"fill-rule": "evenodd",
|
|
@@ -106,7 +106,7 @@ function render$j(_ctx, _cache) {
|
|
|
106
106
|
}, null, -1)
|
|
107
107
|
])]);
|
|
108
108
|
}
|
|
109
|
-
const IconInfoOutlined = { render: render$
|
|
109
|
+
const IconInfoOutlined = { render: render$k };
|
|
110
110
|
var VARIANT$1 = /* @__PURE__ */ ((VARIANT2) => {
|
|
111
111
|
VARIANT2["PRIMARY"] = "primary";
|
|
112
112
|
VARIANT2["WARNING"] = "warning";
|
|
@@ -114,13 +114,13 @@ var VARIANT$1 = /* @__PURE__ */ ((VARIANT2) => {
|
|
|
114
114
|
VARIANT2["DANGER"] = "danger";
|
|
115
115
|
return VARIANT2;
|
|
116
116
|
})(VARIANT$1 || {});
|
|
117
|
-
const _hoisted_1$
|
|
118
|
-
const _hoisted_2$
|
|
117
|
+
const _hoisted_1$Q = ["aria-hidden", "aria-live"];
|
|
118
|
+
const _hoisted_2$o = {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "ui-v1-alert__icon-outline"
|
|
121
121
|
};
|
|
122
|
-
const _hoisted_3$
|
|
123
|
-
const _sfc_main
|
|
122
|
+
const _hoisted_3$i = { class: "ui-v1-alert__icon" };
|
|
123
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
124
124
|
...{
|
|
125
125
|
inheritAttrs: false
|
|
126
126
|
},
|
|
@@ -229,7 +229,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
return (_ctx, _cache) => {
|
|
232
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
232
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$10, {
|
|
233
233
|
name: "fade",
|
|
234
234
|
onBeforeEnter,
|
|
235
235
|
onBeforeLeave,
|
|
@@ -252,8 +252,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
252
252
|
role: "alert"
|
|
253
253
|
}, _ctx.$attrs), [
|
|
254
254
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
255
|
-
__props.variant ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
256
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
255
|
+
__props.variant ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$o, [
|
|
256
|
+
vue.createElementVNode("div", _hoisted_3$i, [
|
|
257
257
|
__props.variant === vue.unref(VARIANT$1).PRIMARY ? (vue.openBlock(), vue.createBlock(vue.unref(IconInfoOutlined), { key: 0 })) : __props.variant === vue.unref(VARIANT$1).WARNING ? (vue.openBlock(), vue.createBlock(vue.unref(IconErrorOutlined), { key: 1 })) : __props.variant === vue.unref(VARIANT$1).DANGER ? (vue.openBlock(), vue.createBlock(vue.unref(IconClearCircleOutlined), { key: 2 })) : __props.variant === vue.unref(VARIANT$1).SUCCESS ? (vue.openBlock(), vue.createBlock(vue.unref(IconCheckmarkCircleOutlined), { key: 3 })) : vue.createCommentVNode("", true)
|
|
258
258
|
])
|
|
259
259
|
])) : vue.createCommentVNode("", true)
|
|
@@ -278,7 +278,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
278
278
|
}, [
|
|
279
279
|
vue.createVNode(vue.unref(IconClear), { class: "ui-v1-alert__close-icon" })
|
|
280
280
|
])) : vue.createCommentVNode("", true)
|
|
281
|
-
], 16, _hoisted_1$
|
|
281
|
+
], 16, _hoisted_1$Q), [
|
|
282
282
|
[vue.vShow, state.shown]
|
|
283
283
|
])
|
|
284
284
|
]),
|
|
@@ -287,12 +287,12 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
|
-
const _hoisted_1$
|
|
290
|
+
const _hoisted_1$P = {
|
|
291
291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
292
292
|
viewBox: "0 0 24 24"
|
|
293
293
|
};
|
|
294
|
-
function render$
|
|
295
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
294
|
+
function render$j(_ctx, _cache) {
|
|
295
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$P, [..._cache[0] || (_cache[0] = [
|
|
296
296
|
vue.createElementVNode("path", {
|
|
297
297
|
fill: "currentColor",
|
|
298
298
|
"fill-rule": "evenodd",
|
|
@@ -301,7 +301,7 @@ function render$i(_ctx, _cache) {
|
|
|
301
301
|
}, null, -1)
|
|
302
302
|
])]);
|
|
303
303
|
}
|
|
304
|
-
const IconAddCircle = { render: render$
|
|
304
|
+
const IconAddCircle = { render: render$j };
|
|
305
305
|
var COLOR$1 = /* @__PURE__ */ ((COLOR2) => {
|
|
306
306
|
COLOR2["GREEN"] = "green";
|
|
307
307
|
COLOR2["BLUE"] = "blue";
|
|
@@ -314,14 +314,14 @@ const isNumeric = (value) => !isNaN(Number(value));
|
|
|
314
314
|
const normalizeHeight = (height) => {
|
|
315
315
|
return isNumeric(height) ? `${height}px` : `${height}`;
|
|
316
316
|
};
|
|
317
|
-
const _hoisted_1$
|
|
318
|
-
const _hoisted_2$
|
|
319
|
-
const _hoisted_3$
|
|
320
|
-
const _hoisted_4$
|
|
317
|
+
const _hoisted_1$O = ["type", "disabled"];
|
|
318
|
+
const _hoisted_2$n = { class: "ui-v1-add-button__content" };
|
|
319
|
+
const _hoisted_3$h = { class: "ui-v1-add-button__title" };
|
|
320
|
+
const _hoisted_4$c = {
|
|
321
321
|
key: 0,
|
|
322
322
|
class: "ui-v1-add-button__description"
|
|
323
323
|
};
|
|
324
|
-
const _sfc_main$
|
|
324
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
325
325
|
...{
|
|
326
326
|
inheritAttrs: false
|
|
327
327
|
},
|
|
@@ -364,8 +364,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
364
364
|
height: vue.unref(normalizeHeight)(__props.height)
|
|
365
365
|
}
|
|
366
366
|
}, _ctx.$attrs), [
|
|
367
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
368
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
367
|
+
vue.createElementVNode("span", _hoisted_2$n, [
|
|
368
|
+
vue.createElementVNode("span", _hoisted_3$h, [
|
|
369
369
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
370
370
|
vue.createVNode(vue.unref(IconAddCircle), {
|
|
371
371
|
"aria-hidden": "true",
|
|
@@ -374,20 +374,20 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
374
374
|
]),
|
|
375
375
|
vue.renderSlot(_ctx.$slots, "default")
|
|
376
376
|
]),
|
|
377
|
-
!__props.small && _ctx.$slots.description ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
377
|
+
!__props.small && _ctx.$slots.description ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$c, [
|
|
378
378
|
vue.renderSlot(_ctx.$slots, "description")
|
|
379
379
|
])) : vue.createCommentVNode("", true)
|
|
380
380
|
])
|
|
381
|
-
], 16, _hoisted_1$
|
|
381
|
+
], 16, _hoisted_1$O);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
|
-
const _hoisted_1$
|
|
385
|
+
const _hoisted_1$N = {
|
|
386
386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
387
387
|
viewBox: "0 0 24 24"
|
|
388
388
|
};
|
|
389
|
-
function render$
|
|
390
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
389
|
+
function render$i(_ctx, _cache) {
|
|
390
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$N, [..._cache[0] || (_cache[0] = [
|
|
391
391
|
vue.createElementVNode("path", {
|
|
392
392
|
fill: "currentColor",
|
|
393
393
|
"fill-rule": "evenodd",
|
|
@@ -396,34 +396,34 @@ function render$h(_ctx, _cache) {
|
|
|
396
396
|
}, null, -1)
|
|
397
397
|
])]);
|
|
398
398
|
}
|
|
399
|
-
const IconHelpOutlined = { render: render$
|
|
400
|
-
const _hoisted_1$
|
|
399
|
+
const IconHelpOutlined = { render: render$i };
|
|
400
|
+
const _hoisted_1$M = {
|
|
401
401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
402
402
|
viewBox: "0 0 18 8"
|
|
403
403
|
};
|
|
404
|
-
function render$
|
|
405
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
404
|
+
function render$h(_ctx, _cache) {
|
|
405
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$M, [..._cache[0] || (_cache[0] = [
|
|
406
406
|
vue.createElementVNode("g", { fill: "currentColor" }, [
|
|
407
407
|
vue.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" })
|
|
408
408
|
], -1)
|
|
409
409
|
])]);
|
|
410
410
|
}
|
|
411
|
-
const SpriteBAD = { render: render$
|
|
412
|
-
const _hoisted_1$
|
|
411
|
+
const SpriteBAD = { render: render$h };
|
|
412
|
+
const _hoisted_1$L = {
|
|
413
413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
414
414
|
viewBox: "0 0 16 8"
|
|
415
415
|
};
|
|
416
|
-
function render$
|
|
417
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
416
|
+
function render$g(_ctx, _cache) {
|
|
417
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$L, [..._cache[0] || (_cache[0] = [
|
|
418
418
|
vue.createElementVNode("g", { fill: "currentColor" }, [
|
|
419
419
|
vue.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" })
|
|
420
420
|
], -1)
|
|
421
421
|
])]);
|
|
422
422
|
}
|
|
423
|
-
const SpriteVIP = { render: render$
|
|
423
|
+
const SpriteVIP = { render: render$g };
|
|
424
424
|
const ImageWorkersKey = Symbol("$image.workers");
|
|
425
|
-
const _hoisted_1$
|
|
426
|
-
const _sfc_main$
|
|
425
|
+
const _hoisted_1$K = ["alt", "src"];
|
|
426
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
427
427
|
__name: "UiImage",
|
|
428
428
|
props: {
|
|
429
429
|
alt: {
|
|
@@ -459,7 +459,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
459
459
|
return vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
460
460
|
alt: __props.alt,
|
|
461
461
|
src: url.value
|
|
462
|
-
}, _ctx.$attrs), null, 16, _hoisted_1$
|
|
462
|
+
}, _ctx.$attrs), null, 16, _hoisted_1$K);
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
});
|
|
@@ -478,12 +478,12 @@ const isURL = (href, loose = true) => {
|
|
|
478
478
|
return false;
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
var SIZE$
|
|
481
|
+
var SIZE$a = /* @__PURE__ */ ((SIZE2) => {
|
|
482
482
|
SIZE2["XS"] = "xs";
|
|
483
483
|
SIZE2["SM"] = "sm";
|
|
484
484
|
SIZE2["LG"] = "lg";
|
|
485
485
|
return SIZE2;
|
|
486
|
-
})(SIZE$
|
|
486
|
+
})(SIZE$a || {});
|
|
487
487
|
var STATUS = /* @__PURE__ */ ((STATUS2) => {
|
|
488
488
|
STATUS2["NONE"] = "";
|
|
489
489
|
STATUS2["BUSY"] = "busy";
|
|
@@ -493,27 +493,27 @@ var STATUS = /* @__PURE__ */ ((STATUS2) => {
|
|
|
493
493
|
return STATUS2;
|
|
494
494
|
})(STATUS || {});
|
|
495
495
|
const AvatarSizeKey = Symbol("UiAvatarSize");
|
|
496
|
-
const _hoisted_1$
|
|
496
|
+
const _hoisted_1$J = {
|
|
497
497
|
key: 1,
|
|
498
498
|
class: "ui-v1-avatar__unresolved"
|
|
499
499
|
};
|
|
500
|
-
const _hoisted_2$
|
|
500
|
+
const _hoisted_2$m = {
|
|
501
501
|
key: 3,
|
|
502
502
|
class: "ui-v1-avatar__initials"
|
|
503
503
|
};
|
|
504
|
-
const _hoisted_3$
|
|
504
|
+
const _hoisted_3$g = {
|
|
505
505
|
key: 4,
|
|
506
506
|
class: "ui-v1-avatar__labels"
|
|
507
507
|
};
|
|
508
|
-
const _hoisted_4$
|
|
508
|
+
const _hoisted_4$b = {
|
|
509
509
|
key: 0,
|
|
510
510
|
class: "ui-v1-avatar__label ui-v1-avatar__label_vip"
|
|
511
511
|
};
|
|
512
|
-
const _hoisted_5$
|
|
512
|
+
const _hoisted_5$9 = {
|
|
513
513
|
key: 1,
|
|
514
514
|
class: "ui-v1-avatar__label ui-v1-avatar__label_bad"
|
|
515
515
|
};
|
|
516
|
-
const _sfc_main$
|
|
516
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
517
517
|
__name: "UiAvatar",
|
|
518
518
|
props: {
|
|
519
519
|
/** Путь к изображению */
|
|
@@ -552,8 +552,8 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
552
552
|
/** Размер изображения */
|
|
553
553
|
size: {
|
|
554
554
|
type: String,
|
|
555
|
-
validator: (size) => Object.values(SIZE$
|
|
556
|
-
default: SIZE$
|
|
555
|
+
validator: (size) => Object.values(SIZE$a).includes(size),
|
|
556
|
+
default: SIZE$a.SM
|
|
557
557
|
},
|
|
558
558
|
optimize: {
|
|
559
559
|
type: [Boolean, Object],
|
|
@@ -581,9 +581,9 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
581
581
|
const processing = typeof props.optimize === "object" ? props.optimize : {};
|
|
582
582
|
return {
|
|
583
583
|
resize: processing.resize ?? {
|
|
584
|
-
[SIZE$
|
|
585
|
-
[SIZE$
|
|
586
|
-
[SIZE$
|
|
584
|
+
[SIZE$a.XS]: "48x-",
|
|
585
|
+
[SIZE$a.SM]: "72x-",
|
|
586
|
+
[SIZE$a.LG]: "104x-"
|
|
587
587
|
}[size.value],
|
|
588
588
|
crop: processing.crop
|
|
589
589
|
};
|
|
@@ -600,7 +600,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
600
600
|
}
|
|
601
601
|
}, _ctx.$attrs), {
|
|
602
602
|
default: vue.withCtx(() => [
|
|
603
|
-
__props.src ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
603
|
+
__props.src ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, {
|
|
604
604
|
key: 0,
|
|
605
605
|
src: __props.src,
|
|
606
606
|
resize: optimization.value.resize,
|
|
@@ -609,7 +609,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
609
609
|
draggable: "false",
|
|
610
610
|
onLoad: _cache[0] || (_cache[0] = ($event) => loaded.value = true),
|
|
611
611
|
onError: _cache[1] || (_cache[1] = ($event) => loaded.value = false)
|
|
612
|
-
}, null, 8, ["src", "resize", "crop"])) : !__props.src && unresolved.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
612
|
+
}, null, 8, ["src", "resize", "crop"])) : !__props.src && unresolved.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
613
613
|
vue.createVNode(vue.unref(IconHelpOutlined))
|
|
614
614
|
])) : vue.createCommentVNode("", true),
|
|
615
615
|
__props.status && !(__props.vip || __props.bad) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -620,16 +620,16 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
620
620
|
[`ui-v1-avatar__status_${__props.status}`]: __props.status
|
|
621
621
|
})
|
|
622
622
|
}, null, 2)) : vue.createCommentVNode("", true),
|
|
623
|
-
!(unresolved.value || loaded.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
623
|
+
!(unresolved.value || loaded.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$m, [
|
|
624
624
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
625
625
|
vue.createTextVNode(vue.toDisplayString(initials.value), 1)
|
|
626
626
|
])
|
|
627
627
|
])) : vue.createCommentVNode("", true),
|
|
628
|
-
__props.vip || __props.bad ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
629
|
-
__props.vip ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
628
|
+
__props.vip || __props.bad ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g, [
|
|
629
|
+
__props.vip ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$b, [
|
|
630
630
|
vue.createVNode(vue.unref(SpriteVIP), { class: "ui-v1-avatar__vip" })
|
|
631
631
|
])) : vue.createCommentVNode("", true),
|
|
632
|
-
__props.bad ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$
|
|
632
|
+
__props.bad ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, [
|
|
633
633
|
vue.createVNode(vue.unref(SpriteBAD), { class: "ui-v1-avatar__bad" })
|
|
634
634
|
])) : vue.createCommentVNode("", true)
|
|
635
635
|
])) : vue.createCommentVNode("", true)
|
|
@@ -639,7 +639,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
|
-
const _sfc_main$
|
|
642
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
643
643
|
__name: "UiAvatarList",
|
|
644
644
|
props: {
|
|
645
645
|
/** Список аватарок пользователей */
|
|
@@ -650,8 +650,8 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
650
650
|
/** Размер аватарок */
|
|
651
651
|
size: {
|
|
652
652
|
type: String,
|
|
653
|
-
validator: (size) => Object.values(SIZE$
|
|
654
|
-
default: SIZE$
|
|
653
|
+
validator: (size) => Object.values(SIZE$a).includes(size),
|
|
654
|
+
default: SIZE$a.SM
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
setup(__props) {
|
|
@@ -666,7 +666,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
666
666
|
key: index,
|
|
667
667
|
class: "ui-v1-avatar-list__item"
|
|
668
668
|
}, [
|
|
669
|
-
vue.createVNode(_sfc_main$
|
|
669
|
+
vue.createVNode(_sfc_main$Y, {
|
|
670
670
|
src: avatar.src,
|
|
671
671
|
name: avatar.name
|
|
672
672
|
}, null, 8, ["src", "name"])
|
|
@@ -713,27 +713,27 @@ const useElementRef = () => {
|
|
|
713
713
|
vue.provide(ElementRefKey, vue.ref(null));
|
|
714
714
|
return el;
|
|
715
715
|
};
|
|
716
|
-
var APPEARANCE$
|
|
716
|
+
var APPEARANCE$5 = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
717
717
|
APPEARANCE2["OUTLINED"] = "outlined";
|
|
718
718
|
APPEARANCE2["PRIMARY"] = "primary";
|
|
719
719
|
APPEARANCE2["SECONDARY"] = "secondary";
|
|
720
720
|
APPEARANCE2["TERTIARY"] = "tertiary";
|
|
721
721
|
return APPEARANCE2;
|
|
722
|
-
})(APPEARANCE$
|
|
723
|
-
var SIZE$
|
|
722
|
+
})(APPEARANCE$5 || {});
|
|
723
|
+
var SIZE$9 = /* @__PURE__ */ ((SIZE2) => {
|
|
724
724
|
SIZE2["LG"] = "lg";
|
|
725
725
|
SIZE2["MD"] = "md";
|
|
726
726
|
SIZE2["SM"] = "sm";
|
|
727
727
|
SIZE2["XS"] = "xs";
|
|
728
728
|
return SIZE2;
|
|
729
|
-
})(SIZE$
|
|
729
|
+
})(SIZE$9 || {});
|
|
730
730
|
var VARIANT = /* @__PURE__ */ ((VARIANT2) => {
|
|
731
731
|
VARIANT2["DEFAULT"] = "default";
|
|
732
732
|
VARIANT2["SUCCESS"] = "success";
|
|
733
733
|
VARIANT2["DANGER"] = "danger";
|
|
734
734
|
return VARIANT2;
|
|
735
735
|
})(VARIANT || {});
|
|
736
|
-
const _sfc_main$
|
|
736
|
+
const _sfc_main$W = vue.defineComponent({
|
|
737
737
|
props: {
|
|
738
738
|
/** Устанавливает тип кнопки */
|
|
739
739
|
type: {
|
|
@@ -749,7 +749,7 @@ const _sfc_main$M = vue.defineComponent({
|
|
|
749
749
|
/** Регулирует внешний вид кнопки: primary, secondary, tertiary or outlined */
|
|
750
750
|
appearance: {
|
|
751
751
|
type: String,
|
|
752
|
-
default: APPEARANCE$
|
|
752
|
+
default: APPEARANCE$5.PRIMARY
|
|
753
753
|
},
|
|
754
754
|
/** Регулирует цветовую схему кнопки: default, success or danger */
|
|
755
755
|
variant: {
|
|
@@ -759,7 +759,7 @@ const _sfc_main$M = vue.defineComponent({
|
|
|
759
759
|
/** Размер */
|
|
760
760
|
size: {
|
|
761
761
|
type: String,
|
|
762
|
-
default: SIZE$
|
|
762
|
+
default: SIZE$9.SM
|
|
763
763
|
},
|
|
764
764
|
/** Если кнопка активна */
|
|
765
765
|
active: {
|
|
@@ -819,8 +819,8 @@ const _sfc_main$M = vue.defineComponent({
|
|
|
819
819
|
};
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
|
-
const _hoisted_1$
|
|
823
|
-
const _sfc_main$
|
|
822
|
+
const _hoisted_1$I = { class: "ui-v1-calendar-cell__content" };
|
|
823
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
824
824
|
__name: "UiCalendarCell",
|
|
825
825
|
props: {
|
|
826
826
|
current: {
|
|
@@ -865,32 +865,32 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
865
865
|
"aria-hidden": "true",
|
|
866
866
|
class: "ui-v1-calendar-cell__backdrop"
|
|
867
867
|
}, null, -1)),
|
|
868
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
868
|
+
vue.createElementVNode("div", _hoisted_1$I, [
|
|
869
869
|
vue.renderSlot(_ctx.$slots, "default")
|
|
870
870
|
])
|
|
871
871
|
], 16);
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
|
-
const _hoisted_1$
|
|
875
|
+
const _hoisted_1$H = {
|
|
876
876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
877
877
|
viewBox: "0 0 24 24"
|
|
878
878
|
};
|
|
879
|
-
function render$
|
|
880
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
879
|
+
function render$f(_ctx, _cache) {
|
|
880
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$H, [..._cache[0] || (_cache[0] = [
|
|
881
881
|
vue.createElementVNode("path", {
|
|
882
882
|
fill: "currentColor",
|
|
883
883
|
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"
|
|
884
884
|
}, null, -1)
|
|
885
885
|
])]);
|
|
886
886
|
}
|
|
887
|
-
const IconChevronRight = { render: render$
|
|
888
|
-
const _hoisted_1$
|
|
887
|
+
const IconChevronRight = { render: render$f };
|
|
888
|
+
const _hoisted_1$G = {
|
|
889
889
|
key: 1,
|
|
890
890
|
"aria-hidden": "true",
|
|
891
891
|
class: "ui-v1-calendar-navigation__placeholder"
|
|
892
892
|
};
|
|
893
|
-
const _sfc_main$
|
|
893
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
894
894
|
__name: "UiCalendarDirectionButton",
|
|
895
895
|
props: {
|
|
896
896
|
label: {
|
|
@@ -910,7 +910,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
910
910
|
emits: ["click"],
|
|
911
911
|
setup(__props) {
|
|
912
912
|
return (_ctx, _cache) => {
|
|
913
|
-
return !__props.absent ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
913
|
+
return !__props.absent ? (vue.openBlock(), vue.createBlock(_sfc_main$W, {
|
|
914
914
|
key: 0,
|
|
915
915
|
"aria-label": __props.label,
|
|
916
916
|
appearance: "tertiary",
|
|
@@ -927,15 +927,15 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
927
927
|
}, null, 8, ["class"])
|
|
928
928
|
]),
|
|
929
929
|
_: 1
|
|
930
|
-
}, 8, ["aria-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
930
|
+
}, 8, ["aria-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G));
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
|
-
const _hoisted_1$
|
|
934
|
+
const _hoisted_1$F = {
|
|
935
935
|
key: 1,
|
|
936
936
|
class: "ui-v1-calendar-navigation__text"
|
|
937
937
|
};
|
|
938
|
-
const _sfc_main$
|
|
938
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
939
939
|
__name: "UiCalendarSwitchButton",
|
|
940
940
|
props: {
|
|
941
941
|
locked: {
|
|
@@ -946,7 +946,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
946
946
|
emits: ["click"],
|
|
947
947
|
setup(__props) {
|
|
948
948
|
return (_ctx, _cache) => {
|
|
949
|
-
return !__props.locked ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
949
|
+
return !__props.locked ? (vue.openBlock(), vue.createBlock(_sfc_main$W, {
|
|
950
950
|
key: 0,
|
|
951
951
|
appearance: "tertiary",
|
|
952
952
|
class: "ui-v1-calendar-navigation__switch-button",
|
|
@@ -956,17 +956,17 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
956
956
|
vue.renderSlot(_ctx.$slots, "default")
|
|
957
957
|
]),
|
|
958
958
|
_: 3
|
|
959
|
-
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
959
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
960
960
|
vue.renderSlot(_ctx.$slots, "default")
|
|
961
961
|
]));
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
|
-
var APPEARANCE$
|
|
965
|
+
var APPEARANCE$4 = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
966
966
|
APPEARANCE2["SINGLE"] = "single";
|
|
967
967
|
APPEARANCE2["DOUBLE"] = "double";
|
|
968
968
|
return APPEARANCE2;
|
|
969
|
-
})(APPEARANCE$
|
|
969
|
+
})(APPEARANCE$4 || {});
|
|
970
970
|
var TYPE$2 = /* @__PURE__ */ ((TYPE2) => {
|
|
971
971
|
TYPE2["SINGLE"] = "single";
|
|
972
972
|
TYPE2["RANGE"] = "range";
|
|
@@ -1381,11 +1381,11 @@ const _i18n$6 = define({
|
|
|
1381
1381
|
"ru-RU": messages_ru_RU$6
|
|
1382
1382
|
}
|
|
1383
1383
|
});
|
|
1384
|
-
const _hoisted_1$
|
|
1385
|
-
const _hoisted_2$
|
|
1386
|
-
const _hoisted_3$
|
|
1387
|
-
const _hoisted_4$
|
|
1388
|
-
const _hoisted_5$
|
|
1384
|
+
const _hoisted_1$E = { class: "ui-v1-calendar-wrapper" };
|
|
1385
|
+
const _hoisted_2$l = ["aria-label"];
|
|
1386
|
+
const _hoisted_3$f = ["id"];
|
|
1387
|
+
const _hoisted_4$a = ["aria-labelledby", "aria-multiselectable"];
|
|
1388
|
+
const _hoisted_5$8 = {
|
|
1389
1389
|
class: "ui-v1-calendar__row",
|
|
1390
1390
|
role: "row"
|
|
1391
1391
|
};
|
|
@@ -1404,7 +1404,7 @@ const _hoisted_16 = {
|
|
|
1404
1404
|
"aria-atomic": "true",
|
|
1405
1405
|
"aria-live": "polite"
|
|
1406
1406
|
};
|
|
1407
|
-
const _sfc_main$
|
|
1407
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
1408
1408
|
__name: "UiCalendar",
|
|
1409
1409
|
props: {
|
|
1410
1410
|
/** Текущая дата */
|
|
@@ -1422,8 +1422,8 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
1422
1422
|
/** Одиночный или двойной вид */
|
|
1423
1423
|
appearance: {
|
|
1424
1424
|
type: String,
|
|
1425
|
-
validator: (appearance) => Object.values(APPEARANCE$
|
|
1426
|
-
default: APPEARANCE$
|
|
1425
|
+
validator: (appearance) => Object.values(APPEARANCE$4).includes(appearance),
|
|
1426
|
+
default: APPEARANCE$4.SINGLE
|
|
1427
1427
|
},
|
|
1428
1428
|
/** Первый день недели */
|
|
1429
1429
|
firstDayOfWeek: {
|
|
@@ -1563,7 +1563,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
1563
1563
|
});
|
|
1564
1564
|
const viewsComputed = vue.computed(() => {
|
|
1565
1565
|
const view = [views[0]];
|
|
1566
|
-
if (props.appearance === APPEARANCE$
|
|
1566
|
+
if (props.appearance === APPEARANCE$4.DOUBLE) {
|
|
1567
1567
|
view.push(views[1]);
|
|
1568
1568
|
}
|
|
1569
1569
|
return view.map(({ date, decade, mode }) => ({
|
|
@@ -1575,7 +1575,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
1575
1575
|
});
|
|
1576
1576
|
const viewsIsSynchronized = vue.computed(() => {
|
|
1577
1577
|
const [first, last] = views;
|
|
1578
|
-
return props.appearance === APPEARANCE$
|
|
1578
|
+
return props.appearance === APPEARANCE$4.DOUBLE && first.mode === last.mode && first.date.inSameMonth(new CalendarDay(last.date.year, last.date.month - 1));
|
|
1579
1579
|
});
|
|
1580
1580
|
const range = vue.computed(() => {
|
|
1581
1581
|
const [first, last] = valueComputed.value;
|
|
@@ -1999,7 +1999,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
1999
1999
|
return date.inSameMonth(views[viewIndex].date);
|
|
2000
2000
|
};
|
|
2001
2001
|
const inSelectedView = (date) => {
|
|
2002
|
-
return inSelectedMonth(date, 0) || inSelectedMonth(date, 1) && props.appearance === APPEARANCE$
|
|
2002
|
+
return inSelectedMonth(date, 0) || inSelectedMonth(date, 1) && props.appearance === APPEARANCE$4.DOUBLE;
|
|
2003
2003
|
};
|
|
2004
2004
|
const inRangeDate = (date) => {
|
|
2005
2005
|
const [min2, max2] = range.value;
|
|
@@ -2022,7 +2022,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2022
2022
|
));
|
|
2023
2023
|
};
|
|
2024
2024
|
return (_ctx, _cache) => {
|
|
2025
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2025
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
|
|
2026
2026
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(viewsComputed.value, (view, index) => {
|
|
2027
2027
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2028
2028
|
key: "view-" + index + "-" + view.date,
|
|
@@ -2033,12 +2033,12 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2033
2033
|
class: "ui-v1-calendar-navigation",
|
|
2034
2034
|
"aria-label": i18n.value.t("monthNavigation")
|
|
2035
2035
|
}, [
|
|
2036
|
-
vue.createVNode(_sfc_main$
|
|
2036
|
+
vue.createVNode(_sfc_main$U, {
|
|
2037
2037
|
absent: index === 1 && viewsIsSynchronized.value && views[0].mode === vue.unref(VIEW_MODE).DAYS,
|
|
2038
2038
|
label: i18n.value.t("prevMonth"),
|
|
2039
2039
|
onClick: ($event) => showPrevMonth(index)
|
|
2040
2040
|
}, null, 8, ["absent", "label", "onClick"]),
|
|
2041
|
-
vue.createVNode(_sfc_main$
|
|
2041
|
+
vue.createVNode(_sfc_main$T, {
|
|
2042
2042
|
onClick: ($event) => views[index].mode = vue.unref(VIEW_MODE).MONTHS
|
|
2043
2043
|
}, {
|
|
2044
2044
|
default: vue.withCtx(() => [
|
|
@@ -2046,17 +2046,17 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2046
2046
|
id: getGridLabelId(index, vue.unref(VIEW_MODE).DAYS),
|
|
2047
2047
|
"aria-atomic": "true",
|
|
2048
2048
|
"aria-live": "polite"
|
|
2049
|
-
}, vue.toDisplayString(i18n.value.t(`months.${view.date.month - 1}`)) + " " + vue.toDisplayString(view.date.year), 9, _hoisted_3$
|
|
2049
|
+
}, vue.toDisplayString(i18n.value.t(`months.${view.date.month - 1}`)) + " " + vue.toDisplayString(view.date.year), 9, _hoisted_3$f)
|
|
2050
2050
|
]),
|
|
2051
2051
|
_: 2
|
|
2052
2052
|
}, 1032, ["onClick"]),
|
|
2053
|
-
vue.createVNode(_sfc_main$
|
|
2053
|
+
vue.createVNode(_sfc_main$U, {
|
|
2054
2054
|
absent: index === 0 && viewsIsSynchronized.value && views[1].mode === vue.unref(VIEW_MODE).DAYS,
|
|
2055
2055
|
label: i18n.value.t("nextMonth"),
|
|
2056
2056
|
direction: "next",
|
|
2057
2057
|
onClick: ($event) => showNextMonth(index)
|
|
2058
2058
|
}, null, 8, ["absent", "label", "onClick"])
|
|
2059
|
-
], 8, _hoisted_2$
|
|
2059
|
+
], 8, _hoisted_2$l),
|
|
2060
2060
|
vue.createElementVNode("div", {
|
|
2061
2061
|
class: "ui-v1-calendar__table",
|
|
2062
2062
|
role: "grid",
|
|
@@ -2064,7 +2064,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2064
2064
|
"aria-describedby": dayGridHintId,
|
|
2065
2065
|
"aria-multiselectable": props.type === vue.unref(TYPE$2).RANGE ? "true" : void 0
|
|
2066
2066
|
}, [
|
|
2067
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
2067
|
+
vue.createElementVNode("div", _hoisted_5$8, [
|
|
2068
2068
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(weekdaysNames.value, (name, i) => {
|
|
2069
2069
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2070
2070
|
key: "weekday-" + i,
|
|
@@ -2084,7 +2084,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2084
2084
|
role: "row"
|
|
2085
2085
|
}, [
|
|
2086
2086
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(week, (day) => {
|
|
2087
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2087
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$V, {
|
|
2088
2088
|
key: "day-" + index + "-" + day,
|
|
2089
2089
|
class: vue.normalizeClass({
|
|
2090
2090
|
"ui-v1-calendar__cell-day": true,
|
|
@@ -2121,18 +2121,18 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2121
2121
|
}), 128))
|
|
2122
2122
|
], 2);
|
|
2123
2123
|
}), 128))
|
|
2124
|
-
], 8, _hoisted_4$
|
|
2124
|
+
], 8, _hoisted_4$a)
|
|
2125
2125
|
], 64)) : vue.createCommentVNode("", true),
|
|
2126
2126
|
view.mode === vue.unref(VIEW_MODE).MONTHS ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
2127
2127
|
vue.createElementVNode("nav", {
|
|
2128
2128
|
class: "ui-v1-calendar-navigation",
|
|
2129
2129
|
"aria-label": i18n.value.t("yearNavigation")
|
|
2130
2130
|
}, [
|
|
2131
|
-
vue.createVNode(_sfc_main$
|
|
2131
|
+
vue.createVNode(_sfc_main$U, {
|
|
2132
2132
|
label: i18n.value.t("prevYear"),
|
|
2133
2133
|
onClick: ($event) => showYear(view.date.year - 1, index)
|
|
2134
2134
|
}, null, 8, ["label", "onClick"]),
|
|
2135
|
-
vue.createVNode(_sfc_main$
|
|
2135
|
+
vue.createVNode(_sfc_main$T, {
|
|
2136
2136
|
onClick: ($event) => views[index].mode = vue.unref(VIEW_MODE).YEARS
|
|
2137
2137
|
}, {
|
|
2138
2138
|
default: vue.withCtx(() => [
|
|
@@ -2144,7 +2144,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2144
2144
|
]),
|
|
2145
2145
|
_: 2
|
|
2146
2146
|
}, 1032, ["onClick"]),
|
|
2147
|
-
vue.createVNode(_sfc_main$
|
|
2147
|
+
vue.createVNode(_sfc_main$U, {
|
|
2148
2148
|
label: i18n.value.t("nextYear"),
|
|
2149
2149
|
direction: "next",
|
|
2150
2150
|
onClick: ($event) => showYear(view.date.year + 1, index)
|
|
@@ -2162,7 +2162,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2162
2162
|
role: "row"
|
|
2163
2163
|
}, [
|
|
2164
2164
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(months2, (month) => {
|
|
2165
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2165
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$V, {
|
|
2166
2166
|
key: "month-" + month.month,
|
|
2167
2167
|
class: vue.normalizeClass({ "ui-v1-calendar__cell-month": true }),
|
|
2168
2168
|
current: isCurrentMonth(month.month, index),
|
|
@@ -2193,11 +2193,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2193
2193
|
class: "ui-v1-calendar-navigation",
|
|
2194
2194
|
"aria-label": i18n.value.t("decadeNavigation")
|
|
2195
2195
|
}, [
|
|
2196
|
-
vue.createVNode(_sfc_main$
|
|
2196
|
+
vue.createVNode(_sfc_main$U, {
|
|
2197
2197
|
label: i18n.value.t("prevDecade"),
|
|
2198
2198
|
onClick: ($event) => showPrevDecade(index)
|
|
2199
2199
|
}, null, 8, ["label", "onClick"]),
|
|
2200
|
-
vue.createVNode(_sfc_main$
|
|
2200
|
+
vue.createVNode(_sfc_main$T, {
|
|
2201
2201
|
locked: "",
|
|
2202
2202
|
onClick: ($event) => views[index].mode = vue.unref(VIEW_MODE).MONTHS
|
|
2203
2203
|
}, {
|
|
@@ -2210,7 +2210,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2210
2210
|
]),
|
|
2211
2211
|
_: 2
|
|
2212
2212
|
}, 1032, ["onClick"]),
|
|
2213
|
-
vue.createVNode(_sfc_main$
|
|
2213
|
+
vue.createVNode(_sfc_main$U, {
|
|
2214
2214
|
label: i18n.value.t("nextDecade"),
|
|
2215
2215
|
direction: "next",
|
|
2216
2216
|
onClick: ($event) => showNextDecade(index)
|
|
@@ -2228,7 +2228,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2228
2228
|
role: "row"
|
|
2229
2229
|
}, [
|
|
2230
2230
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(years, (year) => {
|
|
2231
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2231
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$V, {
|
|
2232
2232
|
key: "year-" + year,
|
|
2233
2233
|
class: vue.normalizeClass({ "ui-v1-calendar__cell-year": true }),
|
|
2234
2234
|
current: isCurrentYear(year),
|
|
@@ -2263,12 +2263,12 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
2263
2263
|
};
|
|
2264
2264
|
}
|
|
2265
2265
|
});
|
|
2266
|
-
const _hoisted_1$
|
|
2266
|
+
const _hoisted_1$D = {
|
|
2267
2267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2268
2268
|
viewBox: "0 0 24 24"
|
|
2269
2269
|
};
|
|
2270
|
-
function render$
|
|
2271
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
2270
|
+
function render$e(_ctx, _cache) {
|
|
2271
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$D, [..._cache[0] || (_cache[0] = [
|
|
2272
2272
|
vue.createElementVNode("path", {
|
|
2273
2273
|
fill: "currentColor",
|
|
2274
2274
|
"fill-rule": "evenodd",
|
|
@@ -2277,7 +2277,7 @@ function render$d(_ctx, _cache) {
|
|
|
2277
2277
|
}, null, -1)
|
|
2278
2278
|
])]);
|
|
2279
2279
|
}
|
|
2280
|
-
const IconDone = { render: render$
|
|
2280
|
+
const IconDone = { render: render$e };
|
|
2281
2281
|
const expect = (value) => ({
|
|
2282
2282
|
toBeOneOf(variants) {
|
|
2283
2283
|
return Object.values(variants).includes(value);
|
|
@@ -2305,11 +2305,11 @@ const without = (obj, exclude) => {
|
|
|
2305
2305
|
});
|
|
2306
2306
|
return newObj;
|
|
2307
2307
|
};
|
|
2308
|
-
const _hoisted_1$
|
|
2309
|
-
const _hoisted_2$
|
|
2310
|
-
let counter$
|
|
2308
|
+
const _hoisted_1$C = ["id", "value", "name", "disabled", "checked"];
|
|
2309
|
+
const _hoisted_2$k = { class: "ui-v1-checkbox__checkmark" };
|
|
2310
|
+
let counter$3 = 0;
|
|
2311
2311
|
const __default__$2 = {};
|
|
2312
|
-
const _sfc_main$
|
|
2312
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
2313
2313
|
...__default__$2,
|
|
2314
2314
|
__name: "UiCheckbox",
|
|
2315
2315
|
props: {
|
|
@@ -2321,7 +2321,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
2321
2321
|
/** Атрибут name нативного поля ввода */
|
|
2322
2322
|
name: {
|
|
2323
2323
|
type: String,
|
|
2324
|
-
default: () => "ui-v1-checkbox-" + ++counter$
|
|
2324
|
+
default: () => "ui-v1-checkbox-" + ++counter$3
|
|
2325
2325
|
},
|
|
2326
2326
|
/** Значение модели используемое с директивой v-model */
|
|
2327
2327
|
model: {
|
|
@@ -2416,8 +2416,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
2416
2416
|
type: "checkbox",
|
|
2417
2417
|
class: "ui-v1-checkbox__input",
|
|
2418
2418
|
onChange
|
|
2419
|
-
}), null, 16, _hoisted_1$
|
|
2420
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
2419
|
+
}), null, 16, _hoisted_1$C),
|
|
2420
|
+
vue.createElementVNode("span", _hoisted_2$k, [
|
|
2421
2421
|
checked.value && !__props.indeterminate ? (vue.openBlock(), vue.createBlock(vue.unref(IconDone), {
|
|
2422
2422
|
key: 0,
|
|
2423
2423
|
class: "ui-v1-checkbox__checkmark-icon"
|
|
@@ -2432,15 +2432,15 @@ var COLLAPSE_BEHAVIOUR = /* @__PURE__ */ ((COLLAPSE_BEHAVIOUR2) => {
|
|
|
2432
2432
|
COLLAPSE_BEHAVIOUR2["HIDE"] = "hide";
|
|
2433
2433
|
return COLLAPSE_BEHAVIOUR2;
|
|
2434
2434
|
})(COLLAPSE_BEHAVIOUR || {});
|
|
2435
|
-
const _hoisted_1$
|
|
2435
|
+
const _hoisted_1$B = {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
class: "ui-v1-collapse"
|
|
2438
2438
|
};
|
|
2439
|
-
const _hoisted_2$
|
|
2439
|
+
const _hoisted_2$j = {
|
|
2440
2440
|
key: 1,
|
|
2441
2441
|
class: "ui-v1-collapse"
|
|
2442
2442
|
};
|
|
2443
|
-
const _sfc_main$
|
|
2443
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
2444
2444
|
__name: "UiCollapse",
|
|
2445
2445
|
props: {
|
|
2446
2446
|
/** Свёрнут/Развёрнут */
|
|
@@ -2558,12 +2558,12 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
2558
2558
|
}, {
|
|
2559
2559
|
default: vue.withCtx(() => [
|
|
2560
2560
|
__props.collapseBehaviour === vue.unref(COLLAPSE_BEHAVIOUR).DISPOSE ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
2561
|
-
__props.expanded ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2561
|
+
__props.expanded ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
|
|
2562
2562
|
vue.createElementVNode("div", null, [
|
|
2563
2563
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2564
2564
|
])
|
|
2565
2565
|
])) : vue.createCommentVNode("", true)
|
|
2566
|
-
], 64)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
2566
|
+
], 64)) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_2$j, [
|
|
2567
2567
|
vue.createElementVNode("div", null, [
|
|
2568
2568
|
vue.renderSlot(_ctx.$slots, "default")
|
|
2569
2569
|
])
|
|
@@ -2586,20 +2586,20 @@ var COLOR = /* @__PURE__ */ ((COLOR2) => {
|
|
|
2586
2586
|
COLOR2["YELLOW"] = "yellow";
|
|
2587
2587
|
return COLOR2;
|
|
2588
2588
|
})(COLOR || {});
|
|
2589
|
-
var SIZE$
|
|
2589
|
+
var SIZE$8 = /* @__PURE__ */ ((SIZE2) => {
|
|
2590
2590
|
SIZE2["SM"] = "sm";
|
|
2591
2591
|
SIZE2["MD"] = "md";
|
|
2592
2592
|
return SIZE2;
|
|
2593
|
-
})(SIZE$
|
|
2593
|
+
})(SIZE$8 || {});
|
|
2594
2594
|
const CollapseGroupRegisterKey = Symbol("UiCollapseGroup_register");
|
|
2595
2595
|
const CollapseGroupUnregisterKey = Symbol("UiCollapseGroup_unregister");
|
|
2596
2596
|
const CollapseGroupExpandKey = Symbol("UiCollapseGroup_expand");
|
|
2597
2597
|
const CollapseGroupCollapseKey = Symbol("UiCollapseGroup_collapse");
|
|
2598
|
-
const _hoisted_1$
|
|
2599
|
-
const _hoisted_2$
|
|
2600
|
-
const _hoisted_3$
|
|
2601
|
-
const _hoisted_4$
|
|
2602
|
-
const _hoisted_5$
|
|
2598
|
+
const _hoisted_1$A = ["id", "aria-labelledby"];
|
|
2599
|
+
const _hoisted_2$i = ["id", "disabled", "aria-controls", "aria-expanded", "aria-disabled"];
|
|
2600
|
+
const _hoisted_3$e = { class: "ui-v1-collapse-box__icon-sprite" };
|
|
2601
|
+
const _hoisted_4$9 = { class: "ui-v1-collapse-box__header-content" };
|
|
2602
|
+
const _hoisted_5$7 = ["id"];
|
|
2603
2603
|
const _hoisted_6$5 = ["id"];
|
|
2604
2604
|
const _hoisted_7$3 = {
|
|
2605
2605
|
key: 1,
|
|
@@ -2611,7 +2611,7 @@ const _hoisted_10 = {
|
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
class: "ui-v1-collapse-box__footer"
|
|
2613
2613
|
};
|
|
2614
|
-
const _sfc_main$
|
|
2614
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
2615
2615
|
...{
|
|
2616
2616
|
inheritAttrs: false
|
|
2617
2617
|
},
|
|
@@ -2667,8 +2667,8 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
2667
2667
|
/** Размер иконки */
|
|
2668
2668
|
iconSize: {
|
|
2669
2669
|
type: String,
|
|
2670
|
-
default: SIZE$
|
|
2671
|
-
validator: (value) => Object.values(SIZE$
|
|
2670
|
+
default: SIZE$8.SM,
|
|
2671
|
+
validator: (value) => Object.values(SIZE$8).includes(value)
|
|
2672
2672
|
},
|
|
2673
2673
|
/** Рамка вместо тени */
|
|
2674
2674
|
bordered: {
|
|
@@ -2834,17 +2834,17 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
2834
2834
|
[`ui-v1-collapse-box__icon_${__props.iconSize}`]: __props.iconSize
|
|
2835
2835
|
})
|
|
2836
2836
|
}, [
|
|
2837
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
2837
|
+
vue.createElementVNode("span", _hoisted_3$e, [
|
|
2838
2838
|
vue.renderSlot(_ctx.$slots, "icon")
|
|
2839
2839
|
])
|
|
2840
2840
|
], 2)) : vue.createCommentVNode("", true),
|
|
2841
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
2841
|
+
vue.createElementVNode("span", _hoisted_4$9, [
|
|
2842
2842
|
vue.createElementVNode("span", {
|
|
2843
2843
|
id: boxId.value + "-title",
|
|
2844
2844
|
class: "ui-v1-collapse-box__title"
|
|
2845
2845
|
}, [
|
|
2846
2846
|
vue.renderSlot(_ctx.$slots, "title")
|
|
2847
|
-
], 8, _hoisted_5$
|
|
2847
|
+
], 8, _hoisted_5$7),
|
|
2848
2848
|
_ctx.$slots["description"] ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
2849
2849
|
key: 0,
|
|
2850
2850
|
id: boxId.value + "-description",
|
|
@@ -2856,9 +2856,9 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
2856
2856
|
!__props.disabled ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$3, [
|
|
2857
2857
|
vue.createVNode(vue.unref(IconChevronRight), { class: "ui-v1-collapse-box__arrow" })
|
|
2858
2858
|
])) : vue.createCommentVNode("", true)
|
|
2859
|
-
], 8, _hoisted_2$
|
|
2859
|
+
], 8, _hoisted_2$i)
|
|
2860
2860
|
], 2),
|
|
2861
|
-
vue.createVNode(_sfc_main$
|
|
2861
|
+
vue.createVNode(_sfc_main$Q, {
|
|
2862
2862
|
id: boxId.value + "-collapse",
|
|
2863
2863
|
"aria-hidden": !state.expanded ? "true" : "false",
|
|
2864
2864
|
"aria-labelledby": boxId.value + "-button",
|
|
@@ -2893,11 +2893,11 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
2893
2893
|
]),
|
|
2894
2894
|
_: 3
|
|
2895
2895
|
}, 8, ["id", "aria-hidden", "aria-labelledby", "duration", "expanded", "collapse-behaviour"])
|
|
2896
|
-
], 16, _hoisted_1$
|
|
2896
|
+
], 16, _hoisted_1$A);
|
|
2897
2897
|
};
|
|
2898
2898
|
}
|
|
2899
2899
|
});
|
|
2900
|
-
const _sfc_main$
|
|
2900
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
2901
2901
|
__name: "UiCollapseGroup",
|
|
2902
2902
|
props: {
|
|
2903
2903
|
/**
|
|
@@ -3015,19 +3015,19 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
3015
3015
|
};
|
|
3016
3016
|
}
|
|
3017
3017
|
});
|
|
3018
|
-
const _hoisted_1$
|
|
3018
|
+
const _hoisted_1$z = {
|
|
3019
3019
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3020
3020
|
viewBox: "0 0 24 24"
|
|
3021
3021
|
};
|
|
3022
|
-
function render$
|
|
3023
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
3022
|
+
function render$d(_ctx, _cache) {
|
|
3023
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$z, [..._cache[0] || (_cache[0] = [
|
|
3024
3024
|
vue.createElementVNode("path", {
|
|
3025
3025
|
fill: "currentColor",
|
|
3026
3026
|
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"
|
|
3027
3027
|
}, null, -1)
|
|
3028
3028
|
])]);
|
|
3029
3029
|
}
|
|
3030
|
-
const IconCopy = { render: render$
|
|
3030
|
+
const IconCopy = { render: render$d };
|
|
3031
3031
|
const sides$1 = ["top", "right", "bottom", "left"];
|
|
3032
3032
|
const min = Math.min;
|
|
3033
3033
|
const max = Math.max;
|
|
@@ -4694,8 +4694,8 @@ if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
|
4694
4694
|
window.addEventListener("click", onGlobalEvent("click"), true);
|
|
4695
4695
|
}
|
|
4696
4696
|
}
|
|
4697
|
-
const _hoisted_1$
|
|
4698
|
-
const _sfc_main$
|
|
4697
|
+
const _hoisted_1$y = { class: "ui-v1-popper__content" };
|
|
4698
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
4699
4699
|
__name: "UiPopper",
|
|
4700
4700
|
props: {
|
|
4701
4701
|
/** Флаг для ручного переключения видимости */
|
|
@@ -5041,7 +5041,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
5041
5041
|
ref: arrow2,
|
|
5042
5042
|
class: "ui-v1-popper__arrow"
|
|
5043
5043
|
}, null, 512)) : vue.createCommentVNode("", true),
|
|
5044
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
5044
|
+
vue.createElementVNode("div", _hoisted_1$y, [
|
|
5045
5045
|
vue.renderSlot(_ctx.$slots, "default")
|
|
5046
5046
|
])
|
|
5047
5047
|
], 16)
|
|
@@ -5049,7 +5049,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
5049
5049
|
};
|
|
5050
5050
|
}
|
|
5051
5051
|
});
|
|
5052
|
-
const _sfc_main$
|
|
5052
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
5053
5053
|
__name: "UiTooltip",
|
|
5054
5054
|
props: {
|
|
5055
5055
|
/** Флаг для ручного переключения видимости */
|
|
@@ -5160,7 +5160,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
5160
5160
|
hide: () => popper.value?.hide()
|
|
5161
5161
|
});
|
|
5162
5162
|
return (_ctx, _cache) => {
|
|
5163
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
5163
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$N, vue.mergeProps({
|
|
5164
5164
|
ref_key: "popper",
|
|
5165
5165
|
ref: popper,
|
|
5166
5166
|
visible: __props.visible,
|
|
@@ -5194,11 +5194,11 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
5194
5194
|
};
|
|
5195
5195
|
}
|
|
5196
5196
|
});
|
|
5197
|
-
const _hoisted_1$
|
|
5198
|
-
const _hoisted_2$
|
|
5199
|
-
const _hoisted_3$
|
|
5200
|
-
const _hoisted_4$
|
|
5201
|
-
const _sfc_main$
|
|
5197
|
+
const _hoisted_1$x = { class: "ui-v1-copy-button__tooltip" };
|
|
5198
|
+
const _hoisted_2$h = { class: "ui-v1-copy-button__icon" };
|
|
5199
|
+
const _hoisted_3$d = { class: "ui-v1-copy-button__text" };
|
|
5200
|
+
const _hoisted_4$8 = ["value"];
|
|
5201
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
5202
5202
|
__name: "UiCopyButton",
|
|
5203
5203
|
props: {
|
|
5204
5204
|
/** Текст для копирования в буфер обмена */
|
|
@@ -5209,7 +5209,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5209
5209
|
/** Размер кнопки */
|
|
5210
5210
|
size: {
|
|
5211
5211
|
type: String,
|
|
5212
|
-
default: SIZE$
|
|
5212
|
+
default: SIZE$9.XS
|
|
5213
5213
|
},
|
|
5214
5214
|
/** Объект, содержащий параметры настройки Tooltip */
|
|
5215
5215
|
tooltipOptions: {
|
|
@@ -5270,7 +5270,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5270
5270
|
onClick: copy
|
|
5271
5271
|
}, [
|
|
5272
5272
|
vue.renderSlot(_ctx.$slots, "trigger", {}, () => [
|
|
5273
|
-
vue.createVNode(_sfc_main$
|
|
5273
|
+
vue.createVNode(_sfc_main$W, {
|
|
5274
5274
|
size: __props.size,
|
|
5275
5275
|
appearance: "tertiary"
|
|
5276
5276
|
}, {
|
|
@@ -5280,7 +5280,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5280
5280
|
_: 1
|
|
5281
5281
|
}, 8, ["size"])
|
|
5282
5282
|
]),
|
|
5283
|
-
vue.createVNode(_sfc_main$
|
|
5283
|
+
vue.createVNode(_sfc_main$M, vue.mergeProps({
|
|
5284
5284
|
visible: visible.value,
|
|
5285
5285
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
5286
5286
|
target: rootTarget.value,
|
|
@@ -5290,12 +5290,12 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5290
5290
|
...__props.tooltipOptions
|
|
5291
5291
|
}), {
|
|
5292
5292
|
default: vue.withCtx(() => [
|
|
5293
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
5293
|
+
vue.createElementVNode("div", _hoisted_1$x, [
|
|
5294
5294
|
copied.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
5295
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
5295
|
+
vue.createElementVNode("div", _hoisted_2$h, [
|
|
5296
5296
|
vue.createVNode(vue.unref(IconCheckmarkCircleOutlined))
|
|
5297
5297
|
]),
|
|
5298
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
5298
|
+
vue.createElementVNode("div", _hoisted_3$d, [
|
|
5299
5299
|
vue.renderSlot(_ctx.$slots, "hint-copied")
|
|
5300
5300
|
])
|
|
5301
5301
|
], 64)) : vue.renderSlot(_ctx.$slots, "hint", { key: 1 })
|
|
@@ -5310,7 +5310,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
5310
5310
|
value: __props.text,
|
|
5311
5311
|
class: "ui-v1-copy-button__area",
|
|
5312
5312
|
type: "text"
|
|
5313
|
-
}, null, 8, _hoisted_4$
|
|
5313
|
+
}, null, 8, _hoisted_4$8)) : vue.createCommentVNode("", true)
|
|
5314
5314
|
], 544);
|
|
5315
5315
|
};
|
|
5316
5316
|
}
|
|
@@ -5350,7 +5350,7 @@ function detectLocale() {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
return "en-GB";
|
|
5352
5352
|
}
|
|
5353
|
-
const _sfc_main$
|
|
5353
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
5354
5354
|
__name: "UiDate",
|
|
5355
5355
|
props: {
|
|
5356
5356
|
date: {
|
|
@@ -5377,12 +5377,12 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
5377
5377
|
};
|
|
5378
5378
|
}
|
|
5379
5379
|
});
|
|
5380
|
-
const _hoisted_1$
|
|
5380
|
+
const _hoisted_1$w = {
|
|
5381
5381
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5382
5382
|
viewBox: "0 0 24 24"
|
|
5383
5383
|
};
|
|
5384
|
-
function render$
|
|
5385
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
5384
|
+
function render$c(_ctx, _cache) {
|
|
5385
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$w, [..._cache[0] || (_cache[0] = [
|
|
5386
5386
|
vue.createElementVNode("path", {
|
|
5387
5387
|
fill: "currentColor",
|
|
5388
5388
|
"fill-rule": "evenodd",
|
|
@@ -5391,13 +5391,13 @@ function render$b(_ctx, _cache) {
|
|
|
5391
5391
|
}, null, -1)
|
|
5392
5392
|
])]);
|
|
5393
5393
|
}
|
|
5394
|
-
const IconCalendar = { render: render$
|
|
5395
|
-
const _hoisted_1$
|
|
5394
|
+
const IconCalendar = { render: render$c };
|
|
5395
|
+
const _hoisted_1$v = {
|
|
5396
5396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5397
5397
|
viewBox: "0 0 24 24"
|
|
5398
5398
|
};
|
|
5399
|
-
function render$
|
|
5400
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
5399
|
+
function render$b(_ctx, _cache) {
|
|
5400
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$v, [..._cache[0] || (_cache[0] = [
|
|
5401
5401
|
vue.createElementVNode("path", {
|
|
5402
5402
|
fill: "currentColor",
|
|
5403
5403
|
"fill-rule": "evenodd",
|
|
@@ -5406,7 +5406,7 @@ function render$a(_ctx, _cache) {
|
|
|
5406
5406
|
}, null, -1)
|
|
5407
5407
|
])]);
|
|
5408
5408
|
}
|
|
5409
|
-
const IconClearCircle = { render: render$
|
|
5409
|
+
const IconClearCircle = { render: render$b };
|
|
5410
5410
|
var TYPE$1 = /* @__PURE__ */ ((TYPE2) => {
|
|
5411
5411
|
TYPE2["EMAIL"] = "email";
|
|
5412
5412
|
TYPE2["PASSWORD"] = "password";
|
|
@@ -5427,14 +5427,14 @@ var INPUTMODE = /* @__PURE__ */ ((INPUTMODE2) => {
|
|
|
5427
5427
|
INPUTMODE2["URL"] = "url";
|
|
5428
5428
|
return INPUTMODE2;
|
|
5429
5429
|
})(INPUTMODE || {});
|
|
5430
|
-
var SIZE$
|
|
5430
|
+
var SIZE$7 = /* @__PURE__ */ ((SIZE2) => {
|
|
5431
5431
|
SIZE2["XS"] = "xs";
|
|
5432
5432
|
SIZE2["SM"] = "sm";
|
|
5433
5433
|
SIZE2["MD"] = "md";
|
|
5434
5434
|
SIZE2["LG"] = "lg";
|
|
5435
5435
|
SIZE2["XL"] = "xl";
|
|
5436
5436
|
return SIZE2;
|
|
5437
|
-
})(SIZE$
|
|
5437
|
+
})(SIZE$7 || {});
|
|
5438
5438
|
const decimalsOf = (value) => {
|
|
5439
5439
|
const [, fraction] = String(value).replace(",", ".").split(".");
|
|
5440
5440
|
return fraction ? fraction.length : 0;
|
|
@@ -5506,19 +5506,19 @@ const _i18n$5 = define({
|
|
|
5506
5506
|
"ru-RU": messages_ru_RU$5
|
|
5507
5507
|
}
|
|
5508
5508
|
});
|
|
5509
|
-
const _hoisted_1$
|
|
5510
|
-
const _hoisted_2$
|
|
5509
|
+
const _hoisted_1$u = ["id"];
|
|
5510
|
+
const _hoisted_2$g = {
|
|
5511
5511
|
key: 0,
|
|
5512
5512
|
class: "ui-v1-textbox__prefix"
|
|
5513
5513
|
};
|
|
5514
|
-
const _hoisted_3$
|
|
5515
|
-
const _hoisted_4$
|
|
5516
|
-
const _hoisted_5$
|
|
5514
|
+
const _hoisted_3$c = ["id", "type", "value", "max", "min", "step", "aria-invalid", "autocomplete", "inputmode", "maxlength", "placeholder", "readonly", "required", "disabled"];
|
|
5515
|
+
const _hoisted_4$7 = ["id", "value", "aria-invalid", "autocomplete", "inputmode", "maxlength", "placeholder", "rows", "cols", "readonly", "required", "disabled"];
|
|
5516
|
+
const _hoisted_5$6 = ["disabled", "aria-controls", "aria-label"];
|
|
5517
5517
|
const _hoisted_6$4 = {
|
|
5518
5518
|
key: 7,
|
|
5519
5519
|
class: "ui-v1-textbox__suffix"
|
|
5520
5520
|
};
|
|
5521
|
-
const _sfc_main$
|
|
5521
|
+
const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
5522
5522
|
__name: "UiTextbox",
|
|
5523
5523
|
props: {
|
|
5524
5524
|
/** Уникальный идентификатор поля */
|
|
@@ -5581,7 +5581,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5581
5581
|
/** Размер поля ввода */
|
|
5582
5582
|
size: {
|
|
5583
5583
|
type: String,
|
|
5584
|
-
default: SIZE$
|
|
5584
|
+
default: SIZE$7.SM
|
|
5585
5585
|
},
|
|
5586
5586
|
/** Нативный атрибут input|textarea */
|
|
5587
5587
|
placeholder: {
|
|
@@ -5936,13 +5936,13 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5936
5936
|
"ui-v1-textbox_autofit": __props.autofit,
|
|
5937
5937
|
"ui-v1-textbox_invalid": __props.invalid,
|
|
5938
5938
|
"ui-v1-textbox_outlined": __props.outlined,
|
|
5939
|
-
"ui-v1-textbox_xs": __props.size === vue.unref(SIZE$
|
|
5940
|
-
"ui-v1-textbox_md": __props.size === vue.unref(SIZE$
|
|
5941
|
-
"ui-v1-textbox_lg": __props.size === vue.unref(SIZE$
|
|
5942
|
-
"ui-v1-textbox_xl": __props.size === vue.unref(SIZE$
|
|
5939
|
+
"ui-v1-textbox_xs": __props.size === vue.unref(SIZE$7).XS,
|
|
5940
|
+
"ui-v1-textbox_md": __props.size === vue.unref(SIZE$7).MD,
|
|
5941
|
+
"ui-v1-textbox_lg": __props.size === vue.unref(SIZE$7).LG,
|
|
5942
|
+
"ui-v1-textbox_xl": __props.size === vue.unref(SIZE$7).XL
|
|
5943
5943
|
}
|
|
5944
5944
|
}, _ctx.$attrs), [
|
|
5945
|
-
__props.prefix || "prefix" in _ctx.$slots ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
5945
|
+
__props.prefix || "prefix" in _ctx.$slots ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$g, [
|
|
5946
5946
|
vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
5947
5947
|
vue.createTextVNode(vue.toDisplayString(__props.prefix), 1)
|
|
5948
5948
|
])
|
|
@@ -5979,7 +5979,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5979
5979
|
onChange,
|
|
5980
5980
|
onFocus,
|
|
5981
5981
|
onBlur
|
|
5982
|
-
}), null, 16, _hoisted_3$
|
|
5982
|
+
}), null, 16, _hoisted_3$c)) : (vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
|
|
5983
5983
|
key: 3,
|
|
5984
5984
|
id: __props.id ?? vue.unref(uid2),
|
|
5985
5985
|
ref_key: "textbox",
|
|
@@ -6002,7 +6002,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
6002
6002
|
onChange,
|
|
6003
6003
|
onFocus,
|
|
6004
6004
|
onBlur
|
|
6005
|
-
}), null, 16, _hoisted_4$
|
|
6005
|
+
}), null, 16, _hoisted_4$7)),
|
|
6006
6006
|
__props.autofit ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
6007
6007
|
key: 4,
|
|
6008
6008
|
ref_key: "placeholderRef",
|
|
@@ -6019,7 +6019,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
6019
6019
|
onClick: clear2
|
|
6020
6020
|
}, [
|
|
6021
6021
|
vue.createVNode(vue.unref(IconClearCircle), { "aria-hidden": "true" })
|
|
6022
|
-
], 8, _hoisted_5$
|
|
6022
|
+
], 8, _hoisted_5$6)) : vue.createCommentVNode("", true),
|
|
6023
6023
|
"trailing-icon" in _ctx.$slots ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
6024
6024
|
key: 6,
|
|
6025
6025
|
class: "ui-v1-textbox__icon ui-v1-textbox__icon_trailing",
|
|
@@ -6032,17 +6032,17 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
6032
6032
|
vue.createTextVNode(vue.toDisplayString(__props.suffix), 1)
|
|
6033
6033
|
])
|
|
6034
6034
|
])) : vue.createCommentVNode("", true)
|
|
6035
|
-
], 16, _hoisted_1$
|
|
6035
|
+
], 16, _hoisted_1$u);
|
|
6036
6036
|
};
|
|
6037
6037
|
}
|
|
6038
6038
|
});
|
|
6039
|
-
var SIZE$
|
|
6039
|
+
var SIZE$6 = /* @__PURE__ */ ((SIZE2) => {
|
|
6040
6040
|
SIZE2["XS"] = "xs";
|
|
6041
6041
|
SIZE2["SM"] = "sm";
|
|
6042
6042
|
SIZE2["MD"] = "md";
|
|
6043
6043
|
SIZE2["LG"] = "lg";
|
|
6044
6044
|
return SIZE2;
|
|
6045
|
-
})(SIZE$
|
|
6045
|
+
})(SIZE$6 || {});
|
|
6046
6046
|
const deltaTransition$1 = (el) => {
|
|
6047
6047
|
const delta = el.scrollWidth - el.clientWidth;
|
|
6048
6048
|
return delta !== 0 ? {
|
|
@@ -6050,17 +6050,17 @@ const deltaTransition$1 = (el) => {
|
|
|
6050
6050
|
animationDuration: `${delta * 15}ms`
|
|
6051
6051
|
} : {};
|
|
6052
6052
|
};
|
|
6053
|
-
const _hoisted_1$
|
|
6053
|
+
const _hoisted_1$t = {
|
|
6054
6054
|
key: 0,
|
|
6055
6055
|
class: "ui-v1-menu-item__avatar"
|
|
6056
6056
|
};
|
|
6057
|
-
const _hoisted_2$
|
|
6057
|
+
const _hoisted_2$f = {
|
|
6058
6058
|
key: 1,
|
|
6059
6059
|
class: "ui-v1-menu-item__icon ui-v1-menu-item__icon_leading"
|
|
6060
6060
|
};
|
|
6061
|
-
const _hoisted_3$
|
|
6062
|
-
const _hoisted_4$
|
|
6063
|
-
const _hoisted_5$
|
|
6061
|
+
const _hoisted_3$b = { class: "ui-v1-menu-item__content" };
|
|
6062
|
+
const _hoisted_4$6 = { class: "ui-v1-menu-item__text" };
|
|
6063
|
+
const _hoisted_5$5 = {
|
|
6064
6064
|
key: 0,
|
|
6065
6065
|
class: "ui-v1-menu-item__description"
|
|
6066
6066
|
};
|
|
@@ -6072,13 +6072,13 @@ const _hoisted_7$2 = {
|
|
|
6072
6072
|
key: 3,
|
|
6073
6073
|
class: "ui-v1-menu-item__icon ui-v1-menu-item__icon_trailing"
|
|
6074
6074
|
};
|
|
6075
|
-
const _sfc_main$
|
|
6075
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
6076
6076
|
__name: "UiMenuItem",
|
|
6077
6077
|
props: {
|
|
6078
6078
|
/** Размер */
|
|
6079
6079
|
size: {
|
|
6080
6080
|
type: String,
|
|
6081
|
-
default: SIZE$
|
|
6081
|
+
default: SIZE$6.MD
|
|
6082
6082
|
},
|
|
6083
6083
|
/** Описание */
|
|
6084
6084
|
description: {
|
|
@@ -6151,13 +6151,13 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
6151
6151
|
}),
|
|
6152
6152
|
onMouseoverOnce: onHover
|
|
6153
6153
|
}, [
|
|
6154
|
-
_ctx.$slots["avatar"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6154
|
+
_ctx.$slots["avatar"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
|
|
6155
6155
|
vue.renderSlot(_ctx.$slots, "avatar")
|
|
6156
|
-
])) : _ctx.$slots["leading-icon"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
6156
|
+
])) : _ctx.$slots["leading-icon"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
|
|
6157
6157
|
vue.renderSlot(_ctx.$slots, "leading-icon")
|
|
6158
6158
|
])) : vue.createCommentVNode("", true),
|
|
6159
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
6160
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
6159
|
+
vue.createElementVNode("div", _hoisted_3$b, [
|
|
6160
|
+
vue.createElementVNode("div", _hoisted_4$6, [
|
|
6161
6161
|
__props.ticker ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
6162
6162
|
key: 0,
|
|
6163
6163
|
ref_key: "textRef",
|
|
@@ -6168,7 +6168,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
6168
6168
|
vue.renderSlot(_ctx.$slots, "default")
|
|
6169
6169
|
], 4)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
6170
6170
|
]),
|
|
6171
|
-
_ctx.$slots["description"] || __props.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
6171
|
+
_ctx.$slots["description"] || __props.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$5, [
|
|
6172
6172
|
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
6173
6173
|
vue.createTextVNode(vue.toDisplayString(__props.description), 1)
|
|
6174
6174
|
])
|
|
@@ -6183,7 +6183,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
6183
6183
|
};
|
|
6184
6184
|
}
|
|
6185
6185
|
});
|
|
6186
|
-
const _sfc_main$
|
|
6186
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
6187
6187
|
__name: "UiScrollBox",
|
|
6188
6188
|
props: {
|
|
6189
6189
|
/** Наименование тэга-обёртки для нативного скролла */
|
|
@@ -6361,7 +6361,7 @@ const isQuickDateEqual = (first, second) => {
|
|
|
6361
6361
|
}
|
|
6362
6362
|
return false;
|
|
6363
6363
|
};
|
|
6364
|
-
const _sfc_main$
|
|
6364
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
6365
6365
|
__name: "UiDatePickerQuickMenu",
|
|
6366
6366
|
props: {
|
|
6367
6367
|
value: {
|
|
@@ -6387,18 +6387,18 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
6387
6387
|
emit("change", props.nullable && isActive(date) ? null : date);
|
|
6388
6388
|
};
|
|
6389
6389
|
return (_ctx, _cache) => {
|
|
6390
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6390
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$H, {
|
|
6391
6391
|
class: "ui-v1-date-picker__quick-menu",
|
|
6392
6392
|
role: "menu",
|
|
6393
6393
|
native: ""
|
|
6394
6394
|
}, {
|
|
6395
6395
|
default: vue.withCtx(() => [
|
|
6396
6396
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, (item, index) => {
|
|
6397
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6397
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
6398
6398
|
key: "quick-item-" + index,
|
|
6399
6399
|
active: isActive(item.value),
|
|
6400
6400
|
"aria-current": isActive(item.value) ? "true" : "false",
|
|
6401
|
-
size: vue.unref(SIZE$
|
|
6401
|
+
size: vue.unref(SIZE$6).SM,
|
|
6402
6402
|
role: "menuitem",
|
|
6403
6403
|
onClick: ($event) => onClick(item.value)
|
|
6404
6404
|
}, {
|
|
@@ -6439,11 +6439,11 @@ const _i18n$4 = define({
|
|
|
6439
6439
|
"ru-RU": messages_ru_RU$4
|
|
6440
6440
|
}
|
|
6441
6441
|
});
|
|
6442
|
-
const _hoisted_1$
|
|
6443
|
-
const _hoisted_2$
|
|
6444
|
-
const _hoisted_3$
|
|
6445
|
-
const _hoisted_4$
|
|
6446
|
-
const _sfc_main$
|
|
6442
|
+
const _hoisted_1$s = ["id", "aria-controls", "aria-disabled", "aria-expanded", "aria-readonly"];
|
|
6443
|
+
const _hoisted_2$e = ["id"];
|
|
6444
|
+
const _hoisted_3$a = { class: "ui-v1-date-picker__workspace" };
|
|
6445
|
+
const _hoisted_4$5 = { class: "ui-v1-date-picker__action" };
|
|
6446
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
6447
6447
|
...{
|
|
6448
6448
|
inheritAttrs: false
|
|
6449
6449
|
},
|
|
@@ -6488,8 +6488,8 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6488
6488
|
},
|
|
6489
6489
|
appearance: {
|
|
6490
6490
|
type: String,
|
|
6491
|
-
validator: (appearance) => Object.values(APPEARANCE$
|
|
6492
|
-
default: APPEARANCE$
|
|
6491
|
+
validator: (appearance) => Object.values(APPEARANCE$4).includes(appearance),
|
|
6492
|
+
default: APPEARANCE$4.SINGLE
|
|
6493
6493
|
},
|
|
6494
6494
|
synchronization: {
|
|
6495
6495
|
type: String,
|
|
@@ -6810,7 +6810,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6810
6810
|
onClick: toggle
|
|
6811
6811
|
}, [
|
|
6812
6812
|
vue.renderSlot(_ctx.$slots, "trigger")
|
|
6813
|
-
])) : (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6813
|
+
])) : (vue.openBlock(), vue.createBlock(_sfc_main$J, vue.mergeProps({
|
|
6814
6814
|
key: 1,
|
|
6815
6815
|
id: inputId.value,
|
|
6816
6816
|
ref_key: "textbox",
|
|
@@ -6845,7 +6845,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6845
6845
|
key: "0"
|
|
6846
6846
|
} : void 0
|
|
6847
6847
|
]), 1040, ["id", "clearable", "value", "placeholder", "active", "disabled", "readonly"])),
|
|
6848
|
-
vue.createVNode(_sfc_main$
|
|
6848
|
+
vue.createVNode(_sfc_main$N, vue.mergeProps({
|
|
6849
6849
|
id: `${inputId.value}-popper`,
|
|
6850
6850
|
visible: showCalendar.value,
|
|
6851
6851
|
target: triggerTarget.value,
|
|
@@ -6868,15 +6868,15 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6868
6868
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
6869
6869
|
}, ["stop"]))
|
|
6870
6870
|
}, [
|
|
6871
|
-
__props.quickOptions.length > 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
6871
|
+
__props.quickOptions.length > 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
|
|
6872
6872
|
key: 0,
|
|
6873
6873
|
value: view.value,
|
|
6874
6874
|
items: __props.quickOptions,
|
|
6875
6875
|
nullable: __props.nullable,
|
|
6876
6876
|
onChange: onQuickChange
|
|
6877
6877
|
}, null, 8, ["value", "items", "nullable"])) : vue.createCommentVNode("", true),
|
|
6878
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
6879
|
-
vue.createVNode(_sfc_main$
|
|
6878
|
+
vue.createElementVNode("div", _hoisted_3$a, [
|
|
6879
|
+
vue.createVNode(_sfc_main$S, {
|
|
6880
6880
|
ref_key: "calendar",
|
|
6881
6881
|
ref: calendar,
|
|
6882
6882
|
value: view.value,
|
|
@@ -6893,11 +6893,11 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6893
6893
|
key: 0,
|
|
6894
6894
|
class: vue.normalizeClass({
|
|
6895
6895
|
"ui-v1-date-picker__footer": true,
|
|
6896
|
-
"ui-v1-date-picker__footer_horizontal": __props.appearance === vue.unref(APPEARANCE$
|
|
6896
|
+
"ui-v1-date-picker__footer_horizontal": __props.appearance === vue.unref(APPEARANCE$4).DOUBLE
|
|
6897
6897
|
})
|
|
6898
6898
|
}, [
|
|
6899
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
6900
|
-
vue.createVNode(_sfc_main$
|
|
6899
|
+
vue.createElementVNode("div", _hoisted_4$5, [
|
|
6900
|
+
vue.createVNode(_sfc_main$W, {
|
|
6901
6901
|
appearance: "tertiary",
|
|
6902
6902
|
class: "ui-v1-date-picker__button",
|
|
6903
6903
|
onClick: reset
|
|
@@ -6907,7 +6907,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6907
6907
|
]),
|
|
6908
6908
|
_: 1
|
|
6909
6909
|
}),
|
|
6910
|
-
vue.createVNode(_sfc_main$
|
|
6910
|
+
vue.createVNode(_sfc_main$W, {
|
|
6911
6911
|
class: "ui-v1-date-picker__button",
|
|
6912
6912
|
onClick: apply2
|
|
6913
6913
|
}, {
|
|
@@ -6919,11 +6919,11 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
6919
6919
|
])
|
|
6920
6920
|
], 2)) : vue.createCommentVNode("", true)
|
|
6921
6921
|
])
|
|
6922
|
-
], 8, _hoisted_2$
|
|
6922
|
+
], 8, _hoisted_2$e)
|
|
6923
6923
|
]),
|
|
6924
6924
|
_: 1
|
|
6925
6925
|
}, 16, ["id", "visible", "target", "container", "placement", "aria-hidden", "class", "disabled"])
|
|
6926
|
-
], 16, _hoisted_1$
|
|
6926
|
+
], 16, _hoisted_1$s);
|
|
6927
6927
|
};
|
|
6928
6928
|
}
|
|
6929
6929
|
});
|
|
@@ -6932,7 +6932,7 @@ var ALIGN$1 = /* @__PURE__ */ ((ALIGN2) => {
|
|
|
6932
6932
|
ALIGN2["RIGHT"] = "right";
|
|
6933
6933
|
return ALIGN2;
|
|
6934
6934
|
})(ALIGN$1 || {});
|
|
6935
|
-
const _sfc_main$
|
|
6935
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
6936
6936
|
__name: "UiError",
|
|
6937
6937
|
props: {
|
|
6938
6938
|
/** Тест, разметка ошибки */
|
|
@@ -6971,46 +6971,46 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
6971
6971
|
};
|
|
6972
6972
|
}
|
|
6973
6973
|
});
|
|
6974
|
-
const _hoisted_1$
|
|
6974
|
+
const _hoisted_1$r = {
|
|
6975
6975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6976
6976
|
viewBox: "0 0 24 24"
|
|
6977
6977
|
};
|
|
6978
|
-
function render$
|
|
6979
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
6978
|
+
function render$a(_ctx, _cache) {
|
|
6979
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$r, [..._cache[0] || (_cache[0] = [
|
|
6980
6980
|
vue.createElementVNode("path", {
|
|
6981
6981
|
fill: "currentColor",
|
|
6982
6982
|
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"
|
|
6983
6983
|
}, null, -1)
|
|
6984
6984
|
])]);
|
|
6985
6985
|
}
|
|
6986
|
-
const IconChevronDown = { render: render$
|
|
6987
|
-
const _hoisted_1$
|
|
6986
|
+
const IconChevronDown = { render: render$a };
|
|
6987
|
+
const _hoisted_1$q = {
|
|
6988
6988
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6989
6989
|
viewBox: "0 0 24 24"
|
|
6990
6990
|
};
|
|
6991
|
-
function render$
|
|
6992
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
6991
|
+
function render$9(_ctx, _cache) {
|
|
6992
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$q, [..._cache[0] || (_cache[0] = [
|
|
6993
6993
|
vue.createElementVNode("path", {
|
|
6994
6994
|
fill: "currentColor",
|
|
6995
6995
|
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"
|
|
6996
6996
|
}, null, -1)
|
|
6997
6997
|
])]);
|
|
6998
6998
|
}
|
|
6999
|
-
const IconChevronUp = { render: render$
|
|
7000
|
-
const _hoisted_1$
|
|
7001
|
-
const _hoisted_2$
|
|
6999
|
+
const IconChevronUp = { render: render$9 };
|
|
7000
|
+
const _hoisted_1$p = ["id", "aria-expanded", "aria-hidden"];
|
|
7001
|
+
const _hoisted_2$d = {
|
|
7002
7002
|
"aria-hidden": "true",
|
|
7003
7003
|
class: "ui-v1-infobox__media"
|
|
7004
7004
|
};
|
|
7005
|
-
const _hoisted_3$
|
|
7006
|
-
const _hoisted_4$
|
|
7007
|
-
const _hoisted_5$
|
|
7005
|
+
const _hoisted_3$9 = { class: "ui-v1-infobox__icon" };
|
|
7006
|
+
const _hoisted_4$4 = { class: "ui-v1-infobox__content" };
|
|
7007
|
+
const _hoisted_5$4 = {
|
|
7008
7008
|
key: 0,
|
|
7009
7009
|
class: "ui-v1-infobox__header"
|
|
7010
7010
|
};
|
|
7011
7011
|
const _hoisted_6$2 = ["id"];
|
|
7012
7012
|
const _hoisted_7$1 = ["aria-controls", "aria-expanded"];
|
|
7013
|
-
const _sfc_main$
|
|
7013
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
7014
7014
|
...{
|
|
7015
7015
|
inheritAttrs: false
|
|
7016
7016
|
},
|
|
@@ -7147,7 +7147,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7147
7147
|
syncExpandedFromProps();
|
|
7148
7148
|
});
|
|
7149
7149
|
return (_ctx, _cache) => {
|
|
7150
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7150
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$10, {
|
|
7151
7151
|
name: "fade",
|
|
7152
7152
|
onAfterEnter,
|
|
7153
7153
|
onAfterLeave,
|
|
@@ -7167,8 +7167,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7167
7167
|
},
|
|
7168
7168
|
role: "alert"
|
|
7169
7169
|
}, rootAttrs.value), [
|
|
7170
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
7171
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
7170
|
+
vue.createElementVNode("div", _hoisted_2$d, [
|
|
7171
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
7172
7172
|
vue.renderSlot(_ctx.$slots, "icon", {
|
|
7173
7173
|
expanded: state.shouldBeExpanded
|
|
7174
7174
|
}, () => [
|
|
@@ -7176,8 +7176,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7176
7176
|
])
|
|
7177
7177
|
])
|
|
7178
7178
|
]),
|
|
7179
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
7180
|
-
hasHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
7179
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
7180
|
+
hasHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$4, [
|
|
7181
7181
|
hasTitle.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
7182
7182
|
key: 0,
|
|
7183
7183
|
id: titleId.value,
|
|
@@ -7213,7 +7213,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7213
7213
|
}))
|
|
7214
7214
|
], 8, _hoisted_7$1)) : vue.createCommentVNode("", true)
|
|
7215
7215
|
])) : vue.createCommentVNode("", true),
|
|
7216
|
-
vue.createVNode(_sfc_main$
|
|
7216
|
+
vue.createVNode(_sfc_main$Q, {
|
|
7217
7217
|
id: bodyId.value,
|
|
7218
7218
|
"aria-labelledby": hasTitle.value ? titleId.value : void 0,
|
|
7219
7219
|
expanded: bodyExpanded.value,
|
|
@@ -7241,7 +7241,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7241
7241
|
}, [
|
|
7242
7242
|
vue.createVNode(vue.unref(IconClear), { class: "ui-v1-infobox__closer-icon" })
|
|
7243
7243
|
])) : vue.createCommentVNode("", true)
|
|
7244
|
-
], 16, _hoisted_1$
|
|
7244
|
+
], 16, _hoisted_1$p), [
|
|
7245
7245
|
[vue.vShow, state.shouldBeShown]
|
|
7246
7246
|
])
|
|
7247
7247
|
]),
|
|
@@ -7250,28 +7250,28 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
7250
7250
|
};
|
|
7251
7251
|
}
|
|
7252
7252
|
});
|
|
7253
|
-
const _hoisted_1$
|
|
7253
|
+
const _hoisted_1$o = {
|
|
7254
7254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7255
7255
|
viewBox: "0 0 24 24"
|
|
7256
7256
|
};
|
|
7257
|
-
function render$
|
|
7258
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
7257
|
+
function render$8(_ctx, _cache) {
|
|
7258
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$o, [..._cache[0] || (_cache[0] = [
|
|
7259
7259
|
vue.createElementVNode("path", {
|
|
7260
7260
|
fill: "currentColor",
|
|
7261
7261
|
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"
|
|
7262
7262
|
}, null, -1)
|
|
7263
7263
|
])]);
|
|
7264
7264
|
}
|
|
7265
|
-
const IconOpenInNew = { render: render$
|
|
7266
|
-
var APPEARANCE$
|
|
7265
|
+
const IconOpenInNew = { render: render$8 };
|
|
7266
|
+
var APPEARANCE$3 = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
7267
7267
|
APPEARANCE2["BREADCRUMBS"] = "breadcrumbs";
|
|
7268
7268
|
APPEARANCE2["DEFAULT"] = "default";
|
|
7269
7269
|
APPEARANCE2["NAVIGATION"] = "navigation";
|
|
7270
7270
|
APPEARANCE2["NAVIGATION_ANCHOR"] = "navigation-anchor";
|
|
7271
7271
|
APPEARANCE2["TITLE"] = "title";
|
|
7272
7272
|
return APPEARANCE2;
|
|
7273
|
-
})(APPEARANCE$
|
|
7274
|
-
var SIZE$
|
|
7273
|
+
})(APPEARANCE$3 || {});
|
|
7274
|
+
var SIZE$5 = /* @__PURE__ */ ((SIZE2) => {
|
|
7275
7275
|
SIZE2["ARTICLE"] = "article";
|
|
7276
7276
|
SIZE2["BODY"] = "body";
|
|
7277
7277
|
SIZE2["PARAGRAPH"] = "paragraph";
|
|
@@ -7280,17 +7280,17 @@ var SIZE$3 = /* @__PURE__ */ ((SIZE2) => {
|
|
|
7280
7280
|
SIZE2["TITLE01"] = "title-01";
|
|
7281
7281
|
SIZE2["TITLE02"] = "title-02";
|
|
7282
7282
|
return SIZE2;
|
|
7283
|
-
})(SIZE$
|
|
7284
|
-
const _hoisted_1$
|
|
7285
|
-
const _hoisted_2$
|
|
7283
|
+
})(SIZE$5 || {});
|
|
7284
|
+
const _hoisted_1$n = ["href", "target"];
|
|
7285
|
+
const _hoisted_2$c = {
|
|
7286
7286
|
key: 0,
|
|
7287
7287
|
class: "ui-v1-link__inner"
|
|
7288
7288
|
};
|
|
7289
|
-
const _hoisted_3$
|
|
7289
|
+
const _hoisted_3$8 = {
|
|
7290
7290
|
key: 2,
|
|
7291
7291
|
class: "ui-v1-link__icon"
|
|
7292
7292
|
};
|
|
7293
|
-
const _sfc_main$
|
|
7293
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
7294
7294
|
__name: "UiLink",
|
|
7295
7295
|
props: {
|
|
7296
7296
|
/** Атрибут ссылки */
|
|
@@ -7310,14 +7310,14 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
7310
7310
|
/** Тип ссылок */
|
|
7311
7311
|
appearance: {
|
|
7312
7312
|
type: String,
|
|
7313
|
-
validator: (appearance) => Object.values(APPEARANCE$
|
|
7314
|
-
default: APPEARANCE$
|
|
7313
|
+
validator: (appearance) => Object.values(APPEARANCE$3).includes(appearance),
|
|
7314
|
+
default: APPEARANCE$3.DEFAULT
|
|
7315
7315
|
},
|
|
7316
7316
|
/** Размер текста */
|
|
7317
7317
|
size: {
|
|
7318
7318
|
type: String,
|
|
7319
|
-
validator: (size) => Object.values(SIZE$
|
|
7320
|
-
default: SIZE$
|
|
7319
|
+
validator: (size) => Object.values(SIZE$5).includes(size),
|
|
7320
|
+
default: SIZE$5.BODY
|
|
7321
7321
|
},
|
|
7322
7322
|
/** Инвертированный цвет ссылок для тёмного фона */
|
|
7323
7323
|
light: {
|
|
@@ -7359,19 +7359,19 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
7359
7359
|
},
|
|
7360
7360
|
target: __props.external ? "_blank" : "_self"
|
|
7361
7361
|
}, _ctx.$attrs), [
|
|
7362
|
-
__props.dotted ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
7362
|
+
__props.dotted ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$c, [
|
|
7363
7363
|
vue.renderSlot(_ctx.$slots, "default")
|
|
7364
7364
|
])) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }),
|
|
7365
|
-
_ctx.$slots.icon || __props.external ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
7365
|
+
_ctx.$slots.icon || __props.external ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$8, [
|
|
7366
7366
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
7367
7367
|
vue.createVNode(vue.unref(IconOpenInNew), { class: "ui-v1-link__icon-sprite" })
|
|
7368
7368
|
])
|
|
7369
7369
|
])) : vue.createCommentVNode("", true)
|
|
7370
|
-
], 16, _hoisted_1$
|
|
7370
|
+
], 16, _hoisted_1$n);
|
|
7371
7371
|
};
|
|
7372
7372
|
}
|
|
7373
7373
|
});
|
|
7374
|
-
const _sfc_main$
|
|
7374
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
7375
7375
|
__name: "UiLoader",
|
|
7376
7376
|
props: {
|
|
7377
7377
|
/** Диаметр (размер) окружности индикатора */
|
|
@@ -7403,7 +7403,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
7403
7403
|
},
|
|
7404
7404
|
setup(__props) {
|
|
7405
7405
|
return (_ctx, _cache) => {
|
|
7406
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.transition ? _sfc_main$
|
|
7406
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.transition ? _sfc_main$10 : "div"), vue.normalizeProps(vue.guardReactiveProps(__props.transition ? {
|
|
7407
7407
|
appear: true,
|
|
7408
7408
|
class: "ui-v1-loader-wrapper",
|
|
7409
7409
|
name: __props.transition
|
|
@@ -7437,27 +7437,27 @@ const _export_sfc = (sfc, props) => {
|
|
|
7437
7437
|
}
|
|
7438
7438
|
return target;
|
|
7439
7439
|
};
|
|
7440
|
-
const _sfc_main$
|
|
7441
|
-
const _hoisted_1$
|
|
7442
|
-
const _hoisted_2$
|
|
7443
|
-
const _hoisted_3$
|
|
7440
|
+
const _sfc_main$A = {};
|
|
7441
|
+
const _hoisted_1$m = { class: "ui-v1-menu-item-group" };
|
|
7442
|
+
const _hoisted_2$b = { class: "ui-v1-menu-item-group__head" };
|
|
7443
|
+
const _hoisted_3$7 = {
|
|
7444
7444
|
key: 0,
|
|
7445
7445
|
class: "ui-v1-menu-item-group__head-option"
|
|
7446
7446
|
};
|
|
7447
|
-
const _hoisted_4$
|
|
7447
|
+
const _hoisted_4$3 = {
|
|
7448
7448
|
key: 1,
|
|
7449
7449
|
class: "ui-v1-menu-item-group__head-inner"
|
|
7450
7450
|
};
|
|
7451
|
-
const _hoisted_5$
|
|
7451
|
+
const _hoisted_5$3 = {
|
|
7452
7452
|
key: 0,
|
|
7453
7453
|
class: "ui-v1-menu-item-group__count"
|
|
7454
7454
|
};
|
|
7455
7455
|
function _sfc_render(_ctx, _cache) {
|
|
7456
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7457
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
7458
|
-
_ctx.$slots.option ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
7456
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
|
|
7457
|
+
vue.createElementVNode("div", _hoisted_2$b, [
|
|
7458
|
+
_ctx.$slots.option ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
|
|
7459
7459
|
vue.renderSlot(_ctx.$slots, "option")
|
|
7460
|
-
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
7460
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
|
|
7461
7461
|
vue.createElementVNode("div", {
|
|
7462
7462
|
class: vue.normalizeClass({
|
|
7463
7463
|
"ui-v1-menu-item-group__title": true,
|
|
@@ -7466,7 +7466,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
7466
7466
|
}, [
|
|
7467
7467
|
vue.renderSlot(_ctx.$slots, "label")
|
|
7468
7468
|
], 2),
|
|
7469
|
-
_ctx.$slots.quantity ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
7469
|
+
_ctx.$slots.quantity ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$3, [
|
|
7470
7470
|
vue.renderSlot(_ctx.$slots, "quantity")
|
|
7471
7471
|
])) : vue.createCommentVNode("", true)
|
|
7472
7472
|
]))
|
|
@@ -7474,7 +7474,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
7474
7474
|
vue.renderSlot(_ctx.$slots, "default")
|
|
7475
7475
|
]);
|
|
7476
7476
|
}
|
|
7477
|
-
const UiMenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7477
|
+
const UiMenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render]]);
|
|
7478
7478
|
class LayerRegistry {
|
|
7479
7479
|
registry;
|
|
7480
7480
|
started = false;
|
|
@@ -7546,8 +7546,8 @@ const plugin = {
|
|
|
7546
7546
|
}
|
|
7547
7547
|
};
|
|
7548
7548
|
const nextAnimationFrame = async () => new Promise((resolve) => requestAnimationFrame(resolve));
|
|
7549
|
-
let counter$
|
|
7550
|
-
const uid = (prefix) => `${prefix}-${++counter$
|
|
7549
|
+
let counter$2 = 0;
|
|
7550
|
+
const uid = (prefix) => `${prefix}-${++counter$2}`;
|
|
7551
7551
|
var CLOSE_METHOD = /* @__PURE__ */ ((CLOSE_METHOD2) => {
|
|
7552
7552
|
CLOSE_METHOD2["CLICK_CROSS"] = "Cross";
|
|
7553
7553
|
CLOSE_METHOD2["CLICK_OUTSIDE"] = "Outside";
|
|
@@ -7565,16 +7565,16 @@ var SCROLLING$1 = /* @__PURE__ */ ((SCROLLING2) => {
|
|
|
7565
7565
|
SCROLLING2["NONE"] = "none";
|
|
7566
7566
|
return SCROLLING2;
|
|
7567
7567
|
})(SCROLLING$1 || {});
|
|
7568
|
-
var SIZE$
|
|
7568
|
+
var SIZE$4 = /* @__PURE__ */ ((SIZE2) => {
|
|
7569
7569
|
SIZE2["LG"] = "lg";
|
|
7570
7570
|
SIZE2["SM"] = "sm";
|
|
7571
7571
|
return SIZE2;
|
|
7572
|
-
})(SIZE$
|
|
7573
|
-
const _hoisted_1$
|
|
7574
|
-
const _hoisted_2$
|
|
7575
|
-
const _hoisted_3$
|
|
7576
|
-
const _hoisted_4$
|
|
7577
|
-
const _hoisted_5$
|
|
7572
|
+
})(SIZE$4 || {});
|
|
7573
|
+
const _hoisted_1$l = ["id", "aria-hidden", "role"];
|
|
7574
|
+
const _hoisted_2$a = ["id"];
|
|
7575
|
+
const _hoisted_3$6 = { class: "ui-v1-modal-sidebar__header" };
|
|
7576
|
+
const _hoisted_4$2 = { class: "ui-v1-modal-sidebar__header-inner" };
|
|
7577
|
+
const _hoisted_5$2 = {
|
|
7578
7578
|
"aria-level": "1",
|
|
7579
7579
|
class: "ui-v1-modal-sidebar__title",
|
|
7580
7580
|
role: "heading"
|
|
@@ -7588,7 +7588,7 @@ const _hoisted_8 = {
|
|
|
7588
7588
|
key: 2,
|
|
7589
7589
|
class: "ui-v1-modal-sidebar__footer"
|
|
7590
7590
|
};
|
|
7591
|
-
const _sfc_main$
|
|
7591
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
7592
7592
|
...{
|
|
7593
7593
|
inheritAttrs: false
|
|
7594
7594
|
},
|
|
@@ -7634,7 +7634,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7634
7634
|
/** Размер панели */
|
|
7635
7635
|
size: {
|
|
7636
7636
|
type: String,
|
|
7637
|
-
default: SIZE$
|
|
7637
|
+
default: SIZE$4.SM
|
|
7638
7638
|
},
|
|
7639
7639
|
/** ARIA-роль модального контейнера */
|
|
7640
7640
|
role: {
|
|
@@ -7814,7 +7814,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7814
7814
|
key: 0,
|
|
7815
7815
|
to: vue.unref(globals)?.container || "body"
|
|
7816
7816
|
}, [
|
|
7817
|
-
vue.createVNode(_sfc_main$
|
|
7817
|
+
vue.createVNode(_sfc_main$10, {
|
|
7818
7818
|
name: "fade-2",
|
|
7819
7819
|
onBeforeEnter: _cache[5] || (_cache[5] = ($event) => visibilityOfOverlay.value = "showing"),
|
|
7820
7820
|
onAfterEnter: _cache[6] || (_cache[6] = ($event) => visibilityOfOverlay.value = "shown"),
|
|
@@ -7835,7 +7835,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7835
7835
|
"aria-modal": "true",
|
|
7836
7836
|
role: __props.role
|
|
7837
7837
|
}, _ctx.$attrs, { onClick: onBackdropClick }), [
|
|
7838
|
-
vue.createVNode(_sfc_main$
|
|
7838
|
+
vue.createVNode(_sfc_main$10, {
|
|
7839
7839
|
name: `slide-${__props.direction}`,
|
|
7840
7840
|
onBeforeEnter: _cache[1] || (_cache[1] = ($event) => visibilityOfSidebar.value = "showing"),
|
|
7841
7841
|
onAfterEnter: _cache[2] || (_cache[2] = ($event) => visibilityOfSidebar.value = "shown"),
|
|
@@ -7850,13 +7850,13 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7850
7850
|
"ui-v1-modal-sidebar": true,
|
|
7851
7851
|
"ui-v1-modal-sidebar_fixed": __props.fixed,
|
|
7852
7852
|
"ui-v1-modal-sidebar_left": __props.direction === vue.unref(DIRECTION$2).LEFT,
|
|
7853
|
-
"ui-v1-modal-sidebar_size_sm": __props.size === vue.unref(SIZE$
|
|
7854
|
-
"ui-v1-modal-sidebar_size_lg": __props.size === vue.unref(SIZE$
|
|
7853
|
+
"ui-v1-modal-sidebar_size_sm": __props.size === vue.unref(SIZE$4).SM,
|
|
7854
|
+
"ui-v1-modal-sidebar_size_lg": __props.size === vue.unref(SIZE$4).LG
|
|
7855
7855
|
})
|
|
7856
7856
|
}, [
|
|
7857
|
-
vue.createElementVNode("header", _hoisted_3$
|
|
7858
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
7859
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
7857
|
+
vue.createElementVNode("header", _hoisted_3$6, [
|
|
7858
|
+
vue.createElementVNode("div", _hoisted_4$2, [
|
|
7859
|
+
vue.createElementVNode("div", _hoisted_5$2, [
|
|
7860
7860
|
vue.renderSlot(_ctx.$slots, "title", {
|
|
7861
7861
|
overlapped: state.overlapped
|
|
7862
7862
|
})
|
|
@@ -7876,7 +7876,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7876
7876
|
"aria-hidden": "true",
|
|
7877
7877
|
width: "32"
|
|
7878
7878
|
}),
|
|
7879
|
-
vue.createVNode(_sfc_main$
|
|
7879
|
+
vue.createVNode(_sfc_main$M, {
|
|
7880
7880
|
target: closerTarget.value,
|
|
7881
7881
|
"offset-main-axis": 0
|
|
7882
7882
|
}, {
|
|
@@ -7891,7 +7891,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7891
7891
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
7892
7892
|
overlapped: state.overlapped
|
|
7893
7893
|
})
|
|
7894
|
-
])) : (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
7894
|
+
])) : (vue.openBlock(), vue.createBlock(_sfc_main$H, {
|
|
7895
7895
|
key: 1,
|
|
7896
7896
|
native: __props.scrolling === vue.unref(SCROLLING$1).NATIVE,
|
|
7897
7897
|
class: "ui-v1-modal-sidebar__body",
|
|
@@ -7910,11 +7910,11 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7910
7910
|
overlapped: state.overlapped
|
|
7911
7911
|
})
|
|
7912
7912
|
])) : vue.createCommentVNode("", true)
|
|
7913
|
-
], 10, _hoisted_2$
|
|
7913
|
+
], 10, _hoisted_2$a)) : vue.createCommentVNode("", true)
|
|
7914
7914
|
]),
|
|
7915
7915
|
_: 3
|
|
7916
7916
|
}, 8, ["name"])
|
|
7917
|
-
], 16, _hoisted_1$
|
|
7917
|
+
], 16, _hoisted_1$l), [
|
|
7918
7918
|
[vue.vShow, state.shown]
|
|
7919
7919
|
])
|
|
7920
7920
|
]),
|
|
@@ -7924,19 +7924,19 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7924
7924
|
};
|
|
7925
7925
|
}
|
|
7926
7926
|
});
|
|
7927
|
-
var APPEARANCE = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
7927
|
+
var APPEARANCE$2 = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
7928
7928
|
APPEARANCE2["ALERT"] = "alert";
|
|
7929
7929
|
APPEARANCE2["DIALOG"] = "dialog";
|
|
7930
7930
|
APPEARANCE2["POPUP"] = "popup";
|
|
7931
7931
|
APPEARANCE2["HINT"] = "hint";
|
|
7932
7932
|
return APPEARANCE2;
|
|
7933
|
-
})(APPEARANCE || {});
|
|
7933
|
+
})(APPEARANCE$2 || {});
|
|
7934
7934
|
var SCROLLING = /* @__PURE__ */ ((SCROLLING2) => {
|
|
7935
7935
|
SCROLLING2["NORMAL"] = "normal";
|
|
7936
7936
|
SCROLLING2["NATIVE"] = "native";
|
|
7937
7937
|
return SCROLLING2;
|
|
7938
7938
|
})(SCROLLING || {});
|
|
7939
|
-
const _sfc_main$
|
|
7939
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
7940
7940
|
__name: "UiModalWindowSurface",
|
|
7941
7941
|
props: {
|
|
7942
7942
|
/** Атрибут id корневого элемента модального окна. Должен быть уникальным на странице */
|
|
@@ -7957,8 +7957,8 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
7957
7957
|
/** Внешний вид */
|
|
7958
7958
|
appearance: {
|
|
7959
7959
|
type: String,
|
|
7960
|
-
validator: (appearance) => expect(appearance).toBeOneOf(APPEARANCE),
|
|
7961
|
-
default: APPEARANCE.POPUP
|
|
7960
|
+
validator: (appearance) => expect(appearance).toBeOneOf(APPEARANCE$2),
|
|
7961
|
+
default: APPEARANCE$2.POPUP
|
|
7962
7962
|
},
|
|
7963
7963
|
/** Вывод на весь экран */
|
|
7964
7964
|
fullscreen: {
|
|
@@ -8156,7 +8156,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8156
8156
|
const slots = vue.useSlots();
|
|
8157
8157
|
const renderBody = () => {
|
|
8158
8158
|
const appearance = props.appearance;
|
|
8159
|
-
return vue.h(_sfc_main$
|
|
8159
|
+
return vue.h(_sfc_main$10, {
|
|
8160
8160
|
name: "zoom",
|
|
8161
8161
|
onBeforeEnter: () => visibilityOfBody.value = "showing",
|
|
8162
8162
|
onAfterEnter: () => visibilityOfBody.value = "shown",
|
|
@@ -8166,10 +8166,10 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8166
8166
|
ref: body,
|
|
8167
8167
|
class: {
|
|
8168
8168
|
"ui-v1-modal-window": true,
|
|
8169
|
-
"ui-v1-modal-window_alert": appearance === APPEARANCE.ALERT,
|
|
8170
|
-
"ui-v1-modal-window_dialog": appearance === APPEARANCE.DIALOG,
|
|
8171
|
-
"ui-v1-modal-window_popup": appearance === APPEARANCE.POPUP,
|
|
8172
|
-
"ui-v1-modal-window_hint": appearance === APPEARANCE.HINT,
|
|
8169
|
+
"ui-v1-modal-window_alert": appearance === APPEARANCE$2.ALERT,
|
|
8170
|
+
"ui-v1-modal-window_dialog": appearance === APPEARANCE$2.DIALOG,
|
|
8171
|
+
"ui-v1-modal-window_popup": appearance === APPEARANCE$2.POPUP,
|
|
8172
|
+
"ui-v1-modal-window_hint": appearance === APPEARANCE$2.HINT,
|
|
8173
8173
|
"ui-v1-popper-container": true
|
|
8174
8174
|
}
|
|
8175
8175
|
}, slots) : []);
|
|
@@ -8181,7 +8181,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8181
8181
|
};
|
|
8182
8182
|
const EmbedModalWindowSurface = () => !state.attached ? void 0 : vue.h(vue.Teleport, {
|
|
8183
8183
|
to: globals?.container ?? document.body
|
|
8184
|
-
}, vue.h(_sfc_main$
|
|
8184
|
+
}, vue.h(_sfc_main$10, {
|
|
8185
8185
|
name: "fade-2",
|
|
8186
8186
|
onBeforeEnter: () => visibilityOfOverlay.value = "showing",
|
|
8187
8187
|
onAfterEnter: () => visibilityOfOverlay.value = "shown",
|
|
@@ -8199,11 +8199,11 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8199
8199
|
"ui-v1-modal_overlapped": state.overlapped
|
|
8200
8200
|
}],
|
|
8201
8201
|
onClick: onOverlayClick
|
|
8202
|
-
}, vue.h(_sfc_main$
|
|
8202
|
+
}, vue.h(_sfc_main$H, {
|
|
8203
8203
|
class: {
|
|
8204
8204
|
"ui-v1-modal-window-container": true,
|
|
8205
8205
|
"ui-v1-modal-window-container_fullscreen": props.fullscreen,
|
|
8206
|
-
"ui-v1-modal-window-container_responsive": props.responsive && props.appearance === APPEARANCE.POPUP
|
|
8206
|
+
"ui-v1-modal-window-container_responsive": props.responsive && props.appearance === APPEARANCE$2.POPUP
|
|
8207
8207
|
},
|
|
8208
8208
|
showOnMac: true,
|
|
8209
8209
|
native: props.scrolling === SCROLLING.NATIVE,
|
|
@@ -8223,12 +8223,12 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
8223
8223
|
};
|
|
8224
8224
|
}
|
|
8225
8225
|
});
|
|
8226
|
-
const _hoisted_1$
|
|
8226
|
+
const _hoisted_1$k = {
|
|
8227
8227
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8228
8228
|
viewBox: "0 0 24 24"
|
|
8229
8229
|
};
|
|
8230
|
-
function render$
|
|
8231
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
8230
|
+
function render$7(_ctx, _cache) {
|
|
8231
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$k, [..._cache[0] || (_cache[0] = [
|
|
8232
8232
|
vue.createElementVNode("path", {
|
|
8233
8233
|
fill: "currentColor",
|
|
8234
8234
|
"fill-rule": "evenodd",
|
|
@@ -8237,18 +8237,18 @@ function render$6(_ctx, _cache) {
|
|
|
8237
8237
|
}, null, -1)
|
|
8238
8238
|
])]);
|
|
8239
8239
|
}
|
|
8240
|
-
const IconWarning = { render: render$
|
|
8241
|
-
const _hoisted_1$
|
|
8240
|
+
const IconWarning = { render: render$7 };
|
|
8241
|
+
const _hoisted_1$j = {
|
|
8242
8242
|
key: 0,
|
|
8243
8243
|
class: "ui-v1-modal-window__icon"
|
|
8244
8244
|
};
|
|
8245
|
-
const _hoisted_2$
|
|
8246
|
-
const _hoisted_3$
|
|
8247
|
-
const _hoisted_4 = {
|
|
8245
|
+
const _hoisted_2$9 = ["id"];
|
|
8246
|
+
const _hoisted_3$5 = ["disabled"];
|
|
8247
|
+
const _hoisted_4$1 = {
|
|
8248
8248
|
key: 1,
|
|
8249
8249
|
class: "ui-v1-modal-window__content"
|
|
8250
8250
|
};
|
|
8251
|
-
const _hoisted_5 = {
|
|
8251
|
+
const _hoisted_5$1 = {
|
|
8252
8252
|
key: 2,
|
|
8253
8253
|
class: "ui-v1-modal-window__footer"
|
|
8254
8254
|
};
|
|
@@ -8256,7 +8256,7 @@ const _hoisted_6 = {
|
|
|
8256
8256
|
key: 0,
|
|
8257
8257
|
class: "ui-v1-modal-window__footer-text"
|
|
8258
8258
|
};
|
|
8259
|
-
const _sfc_main$
|
|
8259
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
8260
8260
|
__name: "UiModalWindow",
|
|
8261
8261
|
props: {
|
|
8262
8262
|
/** Атрибут id корневого элемента модального окна. Должен быть уникальным на странице */
|
|
@@ -8277,8 +8277,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8277
8277
|
/** Внешний вид: алерт, диалог, popup, hint */
|
|
8278
8278
|
appearance: {
|
|
8279
8279
|
type: String,
|
|
8280
|
-
validator: (value) => expect(value).toBeOneOf(APPEARANCE),
|
|
8281
|
-
default: APPEARANCE.POPUP
|
|
8280
|
+
validator: (value) => expect(value).toBeOneOf(APPEARANCE$2),
|
|
8281
|
+
default: APPEARANCE$2.POPUP
|
|
8282
8282
|
},
|
|
8283
8283
|
/** Время, через которое плавающий элемент удаляется со страницы, если был скрыт */
|
|
8284
8284
|
disposeTimeout: {
|
|
@@ -8376,7 +8376,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8376
8376
|
});
|
|
8377
8377
|
vue.watch(() => props.opened, toggle);
|
|
8378
8378
|
return (_ctx, _cache) => {
|
|
8379
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8379
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$y, vue.mergeProps({
|
|
8380
8380
|
id: __props.id,
|
|
8381
8381
|
opened: state.opened,
|
|
8382
8382
|
closable: __props.closable,
|
|
@@ -8402,10 +8402,10 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8402
8402
|
vue.createElementVNode("div", {
|
|
8403
8403
|
class: vue.normalizeClass({
|
|
8404
8404
|
"ui-v1-modal-window__header": true,
|
|
8405
|
-
"ui-v1-modal-window__header_pinned": _ctx.$slots.title && state.scrolled && __props.appearance === vue.unref(APPEARANCE).POPUP && !__props.responsive
|
|
8405
|
+
"ui-v1-modal-window__header_pinned": _ctx.$slots.title && state.scrolled && __props.appearance === vue.unref(APPEARANCE$2).POPUP && !__props.responsive
|
|
8406
8406
|
})
|
|
8407
8407
|
}, [
|
|
8408
|
-
__props.appearance === vue.unref(APPEARANCE).ALERT ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
8408
|
+
__props.appearance === vue.unref(APPEARANCE$2).ALERT ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
|
|
8409
8409
|
vue.renderSlot(_ctx.$slots, "icon", {
|
|
8410
8410
|
overlapped: state.overlapped
|
|
8411
8411
|
}, () => [
|
|
@@ -8420,8 +8420,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8420
8420
|
vue.renderSlot(_ctx.$slots, "title", {
|
|
8421
8421
|
overlapped: state.overlapped
|
|
8422
8422
|
})
|
|
8423
|
-
], 8, _hoisted_2$
|
|
8424
|
-
__props.appearance !== vue.unref(APPEARANCE).ALERT ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
8423
|
+
], 8, _hoisted_2$9)) : vue.createCommentVNode("", true),
|
|
8424
|
+
__props.appearance !== vue.unref(APPEARANCE$2).ALERT ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
8425
8425
|
key: 2,
|
|
8426
8426
|
"aria-keyshortcuts": "Esc",
|
|
8427
8427
|
"aria-label": "Close dialog",
|
|
@@ -8434,9 +8434,9 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8434
8434
|
title: "Close dialog",
|
|
8435
8435
|
style: { "width": "100%" }
|
|
8436
8436
|
})
|
|
8437
|
-
], 8, _hoisted_3$
|
|
8437
|
+
], 8, _hoisted_3$5)) : vue.createCommentVNode("", true)
|
|
8438
8438
|
], 2),
|
|
8439
|
-
__props.responsive ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
8439
|
+
__props.responsive ? (vue.openBlock(), vue.createBlock(_sfc_main$H, {
|
|
8440
8440
|
key: 0,
|
|
8441
8441
|
class: "ui-v1-modal-window__content",
|
|
8442
8442
|
"show-on-mac": "",
|
|
@@ -8448,13 +8448,13 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8448
8448
|
})
|
|
8449
8449
|
]),
|
|
8450
8450
|
_: 3
|
|
8451
|
-
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
8451
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [
|
|
8452
8452
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
8453
8453
|
overlapped: state.overlapped
|
|
8454
8454
|
})
|
|
8455
8455
|
])),
|
|
8456
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
8457
|
-
__props.appearance === vue.unref(APPEARANCE).HINT ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
8456
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
|
|
8457
|
+
__props.appearance === vue.unref(APPEARANCE$2).HINT ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
8458
8458
|
vue.renderSlot(_ctx.$slots, "footer", {
|
|
8459
8459
|
overlapped: state.overlapped
|
|
8460
8460
|
})
|
|
@@ -8469,58 +8469,58 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
8469
8469
|
};
|
|
8470
8470
|
}
|
|
8471
8471
|
});
|
|
8472
|
-
const _hoisted_1$
|
|
8472
|
+
const _hoisted_1$i = {
|
|
8473
8473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8474
8474
|
viewBox: "0 0 24 24"
|
|
8475
8475
|
};
|
|
8476
|
-
function render$
|
|
8477
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
8476
|
+
function render$6(_ctx, _cache) {
|
|
8477
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$i, [..._cache[0] || (_cache[0] = [
|
|
8478
8478
|
vue.createElementVNode("path", {
|
|
8479
8479
|
fill: "currentColor",
|
|
8480
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"
|
|
8481
8481
|
}, null, -1)
|
|
8482
8482
|
])]);
|
|
8483
8483
|
}
|
|
8484
|
-
const IconAdd = { render: render$
|
|
8485
|
-
const _hoisted_1$
|
|
8484
|
+
const IconAdd = { render: render$6 };
|
|
8485
|
+
const _hoisted_1$h = {
|
|
8486
8486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8487
8487
|
viewBox: "0 0 24 24"
|
|
8488
8488
|
};
|
|
8489
|
-
function render$
|
|
8490
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
8489
|
+
function render$5(_ctx, _cache) {
|
|
8490
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$h, [..._cache[0] || (_cache[0] = [
|
|
8491
8491
|
vue.createElementVNode("path", {
|
|
8492
8492
|
fill: "currentColor",
|
|
8493
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"
|
|
8494
8494
|
}, null, -1)
|
|
8495
8495
|
])]);
|
|
8496
8496
|
}
|
|
8497
|
-
const IconCaret = { render: render$
|
|
8498
|
-
const _hoisted_1$
|
|
8497
|
+
const IconCaret = { render: render$5 };
|
|
8498
|
+
const _hoisted_1$g = {
|
|
8499
8499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8500
8500
|
viewBox: "0 0 24 24"
|
|
8501
8501
|
};
|
|
8502
|
-
function render$
|
|
8503
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
8502
|
+
function render$4(_ctx, _cache) {
|
|
8503
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$g, [..._cache[0] || (_cache[0] = [
|
|
8504
8504
|
vue.createElementVNode("path", {
|
|
8505
8505
|
fill: "currentColor",
|
|
8506
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"
|
|
8507
8507
|
}, null, -1)
|
|
8508
8508
|
])]);
|
|
8509
8509
|
}
|
|
8510
|
-
const IconCaretUp = { render: render$
|
|
8511
|
-
const _hoisted_1$
|
|
8510
|
+
const IconCaretUp = { render: render$4 };
|
|
8511
|
+
const _hoisted_1$f = {
|
|
8512
8512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8513
8513
|
viewBox: "0 0 24 24"
|
|
8514
8514
|
};
|
|
8515
|
-
function render$
|
|
8516
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
8515
|
+
function render$3(_ctx, _cache) {
|
|
8516
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$f, [..._cache[0] || (_cache[0] = [
|
|
8517
8517
|
vue.createElementVNode("path", {
|
|
8518
8518
|
fill: "currentColor",
|
|
8519
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"
|
|
8520
8520
|
}, null, -1)
|
|
8521
8521
|
])]);
|
|
8522
8522
|
}
|
|
8523
|
-
const IconRemove = { render: render$
|
|
8523
|
+
const IconRemove = { render: render$3 };
|
|
8524
8524
|
var DIRECTION$1 = /* @__PURE__ */ ((DIRECTION2) => {
|
|
8525
8525
|
DIRECTION2["HORIZONTAL"] = "horizontal";
|
|
8526
8526
|
DIRECTION2["VERTICAL"] = "vertical";
|
|
@@ -8623,10 +8623,10 @@ const _i18n$3 = define({
|
|
|
8623
8623
|
"ru-RU": messages_ru_RU$3
|
|
8624
8624
|
}
|
|
8625
8625
|
});
|
|
8626
|
-
const _hoisted_1$
|
|
8627
|
-
const _hoisted_2$
|
|
8628
|
-
const _hoisted_3$
|
|
8629
|
-
const _sfc_main$
|
|
8626
|
+
const _hoisted_1$e = ["id", "aria-disabled", "aria-readonly"];
|
|
8627
|
+
const _hoisted_2$8 = ["id", "aria-controls", "aria-label", "disabled"];
|
|
8628
|
+
const _hoisted_3$4 = ["id", "aria-controls", "aria-label", "disabled"];
|
|
8629
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
8630
8630
|
...{
|
|
8631
8631
|
inheritAttrs: false
|
|
8632
8632
|
},
|
|
@@ -8688,8 +8688,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
8688
8688
|
},
|
|
8689
8689
|
size: {
|
|
8690
8690
|
type: String,
|
|
8691
|
-
validator: (value) => Object.values(SIZE$
|
|
8692
|
-
default: SIZE$
|
|
8691
|
+
validator: (value) => Object.values(SIZE$7).includes(value),
|
|
8692
|
+
default: SIZE$7.SM
|
|
8693
8693
|
},
|
|
8694
8694
|
outlined: {
|
|
8695
8695
|
type: Boolean,
|
|
@@ -8974,8 +8974,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
8974
8974
|
"aria-hidden": "true",
|
|
8975
8975
|
class: "ui-v1-number-stepper__icon"
|
|
8976
8976
|
}))
|
|
8977
|
-
], 8, _hoisted_2$
|
|
8978
|
-
vue.createVNode(_sfc_main$
|
|
8977
|
+
], 8, _hoisted_2$8),
|
|
8978
|
+
vue.createVNode(_sfc_main$J, vue.mergeProps(resolvedTextboxOptions.value, {
|
|
8979
8979
|
id: stepperId.value,
|
|
8980
8980
|
ref_key: "textbox",
|
|
8981
8981
|
ref: textbox,
|
|
@@ -9014,63 +9014,446 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
9014
9014
|
"aria-hidden": "true",
|
|
9015
9015
|
class: "ui-v1-number-stepper__icon"
|
|
9016
9016
|
}))
|
|
9017
|
-
], 8, _hoisted_3$
|
|
9018
|
-
], 16, _hoisted_1$
|
|
9019
|
-
};
|
|
9020
|
-
}
|
|
9021
|
-
});
|
|
9022
|
-
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
9023
|
-
__name: "UiPopperConnector",
|
|
9024
|
-
setup(__props) {
|
|
9025
|
-
const target = vue.ref(null);
|
|
9026
|
-
vue.provide(ElementRefKey, target);
|
|
9027
|
-
vue.provide(PopperTargetKey, vue.computed(() => target.value));
|
|
9028
|
-
return (_ctx, _cache) => {
|
|
9029
|
-
return vue.renderSlot(_ctx.$slots, "default");
|
|
9030
|
-
};
|
|
9031
|
-
}
|
|
9032
|
-
});
|
|
9033
|
-
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
9034
|
-
__name: "UiPopperTarget",
|
|
9035
|
-
props: {
|
|
9036
|
-
tag: {
|
|
9037
|
-
type: String,
|
|
9038
|
-
default: "div"
|
|
9039
|
-
}
|
|
9040
|
-
},
|
|
9041
|
-
setup(__props) {
|
|
9042
|
-
const root = useElementRef();
|
|
9043
|
-
return (_ctx, _cache) => {
|
|
9044
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.tag), vue.mergeProps({
|
|
9045
|
-
ref_key: "root",
|
|
9046
|
-
ref: root
|
|
9047
|
-
}, _ctx.$attrs), {
|
|
9048
|
-
default: vue.withCtx(() => [
|
|
9049
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
9050
|
-
]),
|
|
9051
|
-
_: 3
|
|
9052
|
-
}, 16);
|
|
9017
|
+
], 8, _hoisted_3$4)
|
|
9018
|
+
], 16, _hoisted_1$e);
|
|
9053
9019
|
};
|
|
9054
9020
|
}
|
|
9055
9021
|
});
|
|
9056
|
-
const _hoisted_1$
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
const __default__$1 = {};
|
|
9060
|
-
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
9061
|
-
...__default__$1,
|
|
9062
|
-
...{
|
|
9063
|
-
inheritAttrs: false
|
|
9064
|
-
},
|
|
9065
|
-
__name: "UiRadio",
|
|
9022
|
+
const _hoisted_1$d = ["id", "aria-label", "role", "tabindex", "onKeydown"];
|
|
9023
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
9024
|
+
__name: "UiPageHeaderTitle",
|
|
9066
9025
|
props: {
|
|
9026
|
+
/** Уникальный идентификатор корневого элемента */
|
|
9067
9027
|
id: {
|
|
9068
9028
|
type: null,
|
|
9069
9029
|
validator: (id) => id === void 0 || typeof id === "string" && id.length > 0 && /^[A-Za-z]/.test(id),
|
|
9070
|
-
default:
|
|
9030
|
+
default: void 0
|
|
9071
9031
|
},
|
|
9072
|
-
/**
|
|
9073
|
-
|
|
9032
|
+
/** Текст заголовка */
|
|
9033
|
+
value: {
|
|
9034
|
+
type: null,
|
|
9035
|
+
default: ""
|
|
9036
|
+
},
|
|
9037
|
+
/** Плейсхолдер, отображаемый при отсутствии текста */
|
|
9038
|
+
placeholder: {
|
|
9039
|
+
type: String,
|
|
9040
|
+
default: ""
|
|
9041
|
+
},
|
|
9042
|
+
/** Текст ошибки для tooltip при пустом невалидном заголовке */
|
|
9043
|
+
error: {
|
|
9044
|
+
type: String,
|
|
9045
|
+
default: ""
|
|
9046
|
+
},
|
|
9047
|
+
/** Разрешает перейти в режим редактирования по клику */
|
|
9048
|
+
editable: {
|
|
9049
|
+
type: Boolean,
|
|
9050
|
+
default: false
|
|
9051
|
+
},
|
|
9052
|
+
/** Автоматически переводит фокус во встроенный UiTextbox при монтировании */
|
|
9053
|
+
autofocus: {
|
|
9054
|
+
type: Boolean,
|
|
9055
|
+
default: false
|
|
9056
|
+
},
|
|
9057
|
+
/** Автоматически выделяет текст заголовка при фокусе на встроенном поле */
|
|
9058
|
+
autoselect: {
|
|
9059
|
+
type: Boolean,
|
|
9060
|
+
default: true
|
|
9061
|
+
},
|
|
9062
|
+
/** Делает встроенное поле только для чтения */
|
|
9063
|
+
readonly: {
|
|
9064
|
+
type: Boolean,
|
|
9065
|
+
default: false
|
|
9066
|
+
},
|
|
9067
|
+
/** Полностью отключает заголовок */
|
|
9068
|
+
disabled: {
|
|
9069
|
+
type: Boolean,
|
|
9070
|
+
default: false
|
|
9071
|
+
},
|
|
9072
|
+
/** Помечает встроенное поле как невалидное */
|
|
9073
|
+
invalid: {
|
|
9074
|
+
type: Boolean,
|
|
9075
|
+
default: false
|
|
9076
|
+
}
|
|
9077
|
+
},
|
|
9078
|
+
emits: ["blur", "change", "focus", "keydown", "update:value"],
|
|
9079
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
9080
|
+
const props = __props;
|
|
9081
|
+
const emit = __emit;
|
|
9082
|
+
const uid2 = vue.useId();
|
|
9083
|
+
const textbox = vue.ref(null);
|
|
9084
|
+
const isEditing = vue.ref(false);
|
|
9085
|
+
const currentValue = vue.ref(props.value === null ? "" : String(props.value));
|
|
9086
|
+
const textboxId = vue.computed(() => `${props.id ?? uid2}-input`);
|
|
9087
|
+
const canEdit = vue.computed(() => props.editable && !props.readonly && !props.disabled);
|
|
9088
|
+
const displayPlaceholder = vue.computed(() => currentValue.value ? "" : props.placeholder);
|
|
9089
|
+
const displayInvalid = vue.computed(() => props.invalid && currentValue.value === "");
|
|
9090
|
+
const displayError = vue.computed(() => displayInvalid.value && props.error !== "");
|
|
9091
|
+
vue.watch(() => props.value, (nextValue) => {
|
|
9092
|
+
currentValue.value = nextValue === null ? "" : String(nextValue);
|
|
9093
|
+
});
|
|
9094
|
+
vue.watch(canEdit, (nextCanEdit) => {
|
|
9095
|
+
if (!nextCanEdit) {
|
|
9096
|
+
isEditing.value = false;
|
|
9097
|
+
}
|
|
9098
|
+
});
|
|
9099
|
+
vue.watch(displayError, async (nextDisplayError) => {
|
|
9100
|
+
if (!nextDisplayError || !canEdit.value) {
|
|
9101
|
+
return;
|
|
9102
|
+
}
|
|
9103
|
+
isEditing.value = true;
|
|
9104
|
+
await vue.nextTick();
|
|
9105
|
+
textbox.value?.focus();
|
|
9106
|
+
}, {
|
|
9107
|
+
immediate: true
|
|
9108
|
+
});
|
|
9109
|
+
const startEditing = async () => {
|
|
9110
|
+
if (!canEdit.value || isEditing.value) {
|
|
9111
|
+
return;
|
|
9112
|
+
}
|
|
9113
|
+
isEditing.value = true;
|
|
9114
|
+
await vue.nextTick();
|
|
9115
|
+
textbox.value?.focus();
|
|
9116
|
+
};
|
|
9117
|
+
const onMouseDown = (event) => {
|
|
9118
|
+
if (!canEdit.value || isEditing.value) {
|
|
9119
|
+
return;
|
|
9120
|
+
}
|
|
9121
|
+
event.preventDefault();
|
|
9122
|
+
void startEditing();
|
|
9123
|
+
};
|
|
9124
|
+
const onBlur = (event) => {
|
|
9125
|
+
if (displayError.value && canEdit.value) {
|
|
9126
|
+
isEditing.value = true;
|
|
9127
|
+
emit("blur", event);
|
|
9128
|
+
void vue.nextTick().then(() => {
|
|
9129
|
+
textbox.value?.focus();
|
|
9130
|
+
});
|
|
9131
|
+
return;
|
|
9132
|
+
}
|
|
9133
|
+
isEditing.value = false;
|
|
9134
|
+
emit("blur", event);
|
|
9135
|
+
};
|
|
9136
|
+
const onUpdateValue = (value) => {
|
|
9137
|
+
currentValue.value = String(value);
|
|
9138
|
+
emit("update:value", value);
|
|
9139
|
+
};
|
|
9140
|
+
const onKeyDown = (event) => {
|
|
9141
|
+
if (event.key === "Enter" && !event.shiftKey && !event.isComposing) {
|
|
9142
|
+
event.preventDefault();
|
|
9143
|
+
if (!displayError.value) {
|
|
9144
|
+
textbox.value?.blur();
|
|
9145
|
+
isEditing.value = false;
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
emit("keydown", event);
|
|
9149
|
+
};
|
|
9150
|
+
__expose({
|
|
9151
|
+
focus: () => {
|
|
9152
|
+
void startEditing();
|
|
9153
|
+
},
|
|
9154
|
+
blur: () => {
|
|
9155
|
+
if (displayError.value && canEdit.value) {
|
|
9156
|
+
void vue.nextTick().then(() => {
|
|
9157
|
+
textbox.value?.focus();
|
|
9158
|
+
});
|
|
9159
|
+
return;
|
|
9160
|
+
}
|
|
9161
|
+
textbox.value?.blur();
|
|
9162
|
+
isEditing.value = false;
|
|
9163
|
+
}
|
|
9164
|
+
});
|
|
9165
|
+
return (_ctx, _cache) => {
|
|
9166
|
+
return !isEditing.value && !displayError.value ? (vue.openBlock(), vue.createElementBlock("h1", {
|
|
9167
|
+
key: 0,
|
|
9168
|
+
id: textboxId.value,
|
|
9169
|
+
"aria-label": __props.placeholder || currentValue.value || "Page title",
|
|
9170
|
+
class: vue.normalizeClass({
|
|
9171
|
+
"ui-v1-page-header__trigger": true,
|
|
9172
|
+
"ui-v1-page-header__trigger_editable": canEdit.value,
|
|
9173
|
+
"ui-v1-page-header__trigger_empty": !!displayPlaceholder.value
|
|
9174
|
+
}),
|
|
9175
|
+
role: canEdit.value ? "button" : void 0,
|
|
9176
|
+
tabindex: canEdit.value ? 0 : void 0,
|
|
9177
|
+
onMousedown: onMouseDown,
|
|
9178
|
+
onClick: startEditing,
|
|
9179
|
+
onKeydown: [
|
|
9180
|
+
vue.withKeys(vue.withModifiers(startEditing, ["prevent"]), ["enter"]),
|
|
9181
|
+
vue.withKeys(vue.withModifiers(startEditing, ["prevent"]), ["space"])
|
|
9182
|
+
]
|
|
9183
|
+
}, vue.toDisplayString(currentValue.value || displayPlaceholder.value), 43, _hoisted_1$d)) : (vue.openBlock(), vue.createBlock(_sfc_main$J, {
|
|
9184
|
+
key: 1,
|
|
9185
|
+
id: textboxId.value,
|
|
9186
|
+
ref_key: "textbox",
|
|
9187
|
+
ref: textbox,
|
|
9188
|
+
value: currentValue.value,
|
|
9189
|
+
autofocus: __props.autofocus,
|
|
9190
|
+
autoselect: __props.autoselect,
|
|
9191
|
+
disabled: __props.disabled,
|
|
9192
|
+
"input-attributes": { "aria-label": __props.placeholder || "Page title" },
|
|
9193
|
+
invalid: displayInvalid.value,
|
|
9194
|
+
outlined: false,
|
|
9195
|
+
placeholder: displayPlaceholder.value,
|
|
9196
|
+
readonly: __props.readonly,
|
|
9197
|
+
size: "xl",
|
|
9198
|
+
autofit: "",
|
|
9199
|
+
class: "ui-v1-page-header__textbox",
|
|
9200
|
+
onBlur,
|
|
9201
|
+
onChange: _cache[0] || (_cache[0] = ($event) => emit("change", $event)),
|
|
9202
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => emit("focus", $event)),
|
|
9203
|
+
onKeydown: onKeyDown,
|
|
9204
|
+
"onUpdate:value": onUpdateValue
|
|
9205
|
+
}, null, 8, ["id", "value", "autofocus", "autoselect", "disabled", "input-attributes", "invalid", "placeholder", "readonly"]));
|
|
9206
|
+
};
|
|
9207
|
+
}
|
|
9208
|
+
});
|
|
9209
|
+
const _hoisted_1$c = ["id"];
|
|
9210
|
+
const _hoisted_2$7 = { class: "ui-v1-page-header__main" };
|
|
9211
|
+
const _hoisted_3$3 = { class: "ui-v1-page-header__title" };
|
|
9212
|
+
const _hoisted_4 = {
|
|
9213
|
+
key: 0,
|
|
9214
|
+
class: "ui-v1-page-header__addon"
|
|
9215
|
+
};
|
|
9216
|
+
const _hoisted_5 = {
|
|
9217
|
+
key: 0,
|
|
9218
|
+
class: "ui-v1-page-header__actions"
|
|
9219
|
+
};
|
|
9220
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
9221
|
+
...{
|
|
9222
|
+
inheritAttrs: false
|
|
9223
|
+
},
|
|
9224
|
+
__name: "UiPageHeaderLayout",
|
|
9225
|
+
props: {
|
|
9226
|
+
/** Уникальный идентификатор корневого элемента */
|
|
9227
|
+
id: {
|
|
9228
|
+
type: null,
|
|
9229
|
+
validator: (id) => id === void 0 || typeof id === "string" && id.length > 0 && /^[A-Za-z]/.test(id),
|
|
9230
|
+
default: void 0
|
|
9231
|
+
},
|
|
9232
|
+
/** Текст заголовка */
|
|
9233
|
+
value: {
|
|
9234
|
+
type: null,
|
|
9235
|
+
default: ""
|
|
9236
|
+
},
|
|
9237
|
+
/** Плейсхолдер, отображаемый при отсутствии текста */
|
|
9238
|
+
placeholder: {
|
|
9239
|
+
type: String,
|
|
9240
|
+
default: ""
|
|
9241
|
+
},
|
|
9242
|
+
/** Текст ошибки для tooltip при пустом невалидном заголовке */
|
|
9243
|
+
error: {
|
|
9244
|
+
type: String,
|
|
9245
|
+
default: ""
|
|
9246
|
+
},
|
|
9247
|
+
/** Разрешает перейти в режим редактирования по клику */
|
|
9248
|
+
editable: {
|
|
9249
|
+
type: Boolean,
|
|
9250
|
+
default: false
|
|
9251
|
+
},
|
|
9252
|
+
/** Автоматически переводит фокус во встроенный UiTextbox при монтировании */
|
|
9253
|
+
autofocus: {
|
|
9254
|
+
type: Boolean,
|
|
9255
|
+
default: false
|
|
9256
|
+
},
|
|
9257
|
+
/** Автоматически выделяет текст заголовка при фокусе на встроенном поле */
|
|
9258
|
+
autoselect: {
|
|
9259
|
+
type: Boolean,
|
|
9260
|
+
default: true
|
|
9261
|
+
},
|
|
9262
|
+
/** Делает встроенное поле только для чтения */
|
|
9263
|
+
readonly: {
|
|
9264
|
+
type: Boolean,
|
|
9265
|
+
default: false
|
|
9266
|
+
},
|
|
9267
|
+
/** Полностью отключает заголовок */
|
|
9268
|
+
disabled: {
|
|
9269
|
+
type: Boolean,
|
|
9270
|
+
default: false
|
|
9271
|
+
},
|
|
9272
|
+
/** Помечает встроенное поле как невалидное */
|
|
9273
|
+
invalid: {
|
|
9274
|
+
type: Boolean,
|
|
9275
|
+
default: false
|
|
9276
|
+
}
|
|
9277
|
+
},
|
|
9278
|
+
emits: ["blur", "change", "focus", "keydown", "update:value"],
|
|
9279
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
9280
|
+
const emit = __emit;
|
|
9281
|
+
const uid2 = vue.useId();
|
|
9282
|
+
const main = vue.ref(null);
|
|
9283
|
+
const displayInvalid = vue.computed(() => {
|
|
9284
|
+
const currentValue = __props.value === null ? "" : String(__props.value);
|
|
9285
|
+
return __props.invalid && currentValue === "";
|
|
9286
|
+
});
|
|
9287
|
+
__expose({
|
|
9288
|
+
focus: () => main.value?.focus(),
|
|
9289
|
+
blur: () => main.value?.blur()
|
|
9290
|
+
});
|
|
9291
|
+
return (_ctx, _cache) => {
|
|
9292
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
9293
|
+
id: __props.id ?? vue.unref(uid2),
|
|
9294
|
+
class: {
|
|
9295
|
+
"ui-v1-page-header": true,
|
|
9296
|
+
"ui-v1-page-header_disabled": __props.disabled,
|
|
9297
|
+
"ui-v1-page-header_invalid": displayInvalid.value,
|
|
9298
|
+
"ui-v1-page-header_readonly": __props.readonly
|
|
9299
|
+
}
|
|
9300
|
+
}, _ctx.$attrs), [
|
|
9301
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
9302
|
+
vue.createElementVNode("div", _hoisted_3$3, [
|
|
9303
|
+
vue.createVNode(_sfc_main$v, {
|
|
9304
|
+
id: __props.id,
|
|
9305
|
+
ref_key: "main",
|
|
9306
|
+
ref: main,
|
|
9307
|
+
value: __props.value,
|
|
9308
|
+
placeholder: __props.placeholder,
|
|
9309
|
+
error: __props.error,
|
|
9310
|
+
editable: __props.editable,
|
|
9311
|
+
autofocus: __props.autofocus,
|
|
9312
|
+
autoselect: __props.autoselect,
|
|
9313
|
+
readonly: __props.readonly,
|
|
9314
|
+
disabled: __props.disabled,
|
|
9315
|
+
invalid: __props.invalid,
|
|
9316
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => emit("blur", $event)),
|
|
9317
|
+
onChange: _cache[1] || (_cache[1] = ($event) => emit("change", $event)),
|
|
9318
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => emit("focus", $event)),
|
|
9319
|
+
onKeydown: _cache[3] || (_cache[3] = ($event) => emit("keydown", $event)),
|
|
9320
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => emit("update:value", $event))
|
|
9321
|
+
}, null, 8, ["id", "value", "placeholder", "error", "editable", "autofocus", "autoselect", "readonly", "disabled", "invalid"])
|
|
9322
|
+
]),
|
|
9323
|
+
"addon" in _ctx.$slots ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
9324
|
+
vue.renderSlot(_ctx.$slots, "addon")
|
|
9325
|
+
])) : vue.createCommentVNode("", true)
|
|
9326
|
+
]),
|
|
9327
|
+
"actions" in _ctx.$slots ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
9328
|
+
vue.renderSlot(_ctx.$slots, "actions")
|
|
9329
|
+
])) : vue.createCommentVNode("", true)
|
|
9330
|
+
], 16, _hoisted_1$c);
|
|
9331
|
+
};
|
|
9332
|
+
}
|
|
9333
|
+
});
|
|
9334
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
9335
|
+
...{
|
|
9336
|
+
inheritAttrs: false
|
|
9337
|
+
},
|
|
9338
|
+
__name: "UiPageHeader",
|
|
9339
|
+
props: {
|
|
9340
|
+
id: {},
|
|
9341
|
+
value: { default: "" },
|
|
9342
|
+
placeholder: { default: "" },
|
|
9343
|
+
error: { default: "" },
|
|
9344
|
+
editable: { type: Boolean, default: false },
|
|
9345
|
+
autofocus: { type: Boolean, default: false },
|
|
9346
|
+
autoselect: { type: Boolean, default: true },
|
|
9347
|
+
readonly: { type: Boolean, default: false },
|
|
9348
|
+
disabled: { type: Boolean, default: false },
|
|
9349
|
+
invalid: { type: Boolean, default: false }
|
|
9350
|
+
},
|
|
9351
|
+
emits: ["blur", "change", "focus", "keydown", "update:value"],
|
|
9352
|
+
setup(__props, { expose: __expose }) {
|
|
9353
|
+
const props = __props;
|
|
9354
|
+
const attrs = vue.useAttrs();
|
|
9355
|
+
const baseProps = vue.computed(() => ({
|
|
9356
|
+
...attrs,
|
|
9357
|
+
id: props.id,
|
|
9358
|
+
value: props.value,
|
|
9359
|
+
placeholder: props.placeholder,
|
|
9360
|
+
error: props.error,
|
|
9361
|
+
editable: props.editable,
|
|
9362
|
+
autofocus: props.autofocus,
|
|
9363
|
+
autoselect: props.autoselect,
|
|
9364
|
+
readonly: props.readonly,
|
|
9365
|
+
disabled: props.disabled,
|
|
9366
|
+
invalid: props.invalid
|
|
9367
|
+
}));
|
|
9368
|
+
const base = vue.ref(null);
|
|
9369
|
+
__expose({
|
|
9370
|
+
focus: () => base.value?.focus(),
|
|
9371
|
+
blur: () => base.value?.blur()
|
|
9372
|
+
});
|
|
9373
|
+
return (_ctx, _cache) => {
|
|
9374
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
|
|
9375
|
+
ref_key: "base",
|
|
9376
|
+
ref: base
|
|
9377
|
+
}, baseProps.value, {
|
|
9378
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("blur", $event)),
|
|
9379
|
+
onChange: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("change", $event)),
|
|
9380
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("focus", $event)),
|
|
9381
|
+
onKeydown: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("keydown", $event)),
|
|
9382
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:value", $event))
|
|
9383
|
+
}), vue.createSlots({ _: 2 }, [
|
|
9384
|
+
_ctx.$slots.addon ? {
|
|
9385
|
+
name: "addon",
|
|
9386
|
+
fn: vue.withCtx(() => [
|
|
9387
|
+
vue.renderSlot(_ctx.$slots, "addon")
|
|
9388
|
+
]),
|
|
9389
|
+
key: "0"
|
|
9390
|
+
} : void 0,
|
|
9391
|
+
_ctx.$slots.actions ? {
|
|
9392
|
+
name: "actions",
|
|
9393
|
+
fn: vue.withCtx(() => [
|
|
9394
|
+
vue.renderSlot(_ctx.$slots, "actions")
|
|
9395
|
+
]),
|
|
9396
|
+
key: "1"
|
|
9397
|
+
} : void 0
|
|
9398
|
+
]), 1040);
|
|
9399
|
+
};
|
|
9400
|
+
}
|
|
9401
|
+
});
|
|
9402
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
9403
|
+
__name: "UiPopperConnector",
|
|
9404
|
+
setup(__props) {
|
|
9405
|
+
const target = vue.ref(null);
|
|
9406
|
+
vue.provide(ElementRefKey, target);
|
|
9407
|
+
vue.provide(PopperTargetKey, vue.computed(() => target.value));
|
|
9408
|
+
return (_ctx, _cache) => {
|
|
9409
|
+
return vue.renderSlot(_ctx.$slots, "default");
|
|
9410
|
+
};
|
|
9411
|
+
}
|
|
9412
|
+
});
|
|
9413
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
9414
|
+
...{
|
|
9415
|
+
inheritAttrs: false
|
|
9416
|
+
},
|
|
9417
|
+
__name: "UiPopperTarget",
|
|
9418
|
+
props: {
|
|
9419
|
+
tag: {
|
|
9420
|
+
type: String,
|
|
9421
|
+
default: "div"
|
|
9422
|
+
}
|
|
9423
|
+
},
|
|
9424
|
+
setup(__props) {
|
|
9425
|
+
const root = useElementRef();
|
|
9426
|
+
return (_ctx, _cache) => {
|
|
9427
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.tag), vue.mergeProps({
|
|
9428
|
+
ref_key: "root",
|
|
9429
|
+
ref: root
|
|
9430
|
+
}, _ctx.$attrs), {
|
|
9431
|
+
default: vue.withCtx(() => [
|
|
9432
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
9433
|
+
]),
|
|
9434
|
+
_: 3
|
|
9435
|
+
}, 16);
|
|
9436
|
+
};
|
|
9437
|
+
}
|
|
9438
|
+
});
|
|
9439
|
+
const _hoisted_1$b = ["id", "name", "value", "checked", "required", "disabled"];
|
|
9440
|
+
let nameCounter = 0;
|
|
9441
|
+
let idCounter = 0;
|
|
9442
|
+
const __default__$1 = {};
|
|
9443
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
9444
|
+
...__default__$1,
|
|
9445
|
+
...{
|
|
9446
|
+
inheritAttrs: false
|
|
9447
|
+
},
|
|
9448
|
+
__name: "UiRadio",
|
|
9449
|
+
props: {
|
|
9450
|
+
id: {
|
|
9451
|
+
type: null,
|
|
9452
|
+
validator: (id) => id === void 0 || typeof id === "string" && id.length > 0 && /^[A-Za-z]/.test(id),
|
|
9453
|
+
default: () => "ui-v1-radio-" + ++idCounter
|
|
9454
|
+
},
|
|
9455
|
+
/** Атрибут name нативного поля ввода */
|
|
9456
|
+
name: {
|
|
9074
9457
|
type: String,
|
|
9075
9458
|
default: () => "ui-v1-radio-" + ++nameCounter
|
|
9076
9459
|
},
|
|
@@ -9146,32 +9529,125 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
9146
9529
|
type: "radio",
|
|
9147
9530
|
class: "ui-v1-radio__input",
|
|
9148
9531
|
onChange
|
|
9149
|
-
}), null, 16, _hoisted_1$
|
|
9532
|
+
}), null, 16, _hoisted_1$b),
|
|
9150
9533
|
_cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "ui-v1-radio__checkmark" }, null, -1))
|
|
9151
9534
|
], 16);
|
|
9152
9535
|
};
|
|
9153
9536
|
}
|
|
9154
9537
|
});
|
|
9155
|
-
var
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
return
|
|
9159
|
-
})(
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
return
|
|
9165
|
-
};
|
|
9166
|
-
const
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9538
|
+
var APPEARANCE$1 = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
9539
|
+
APPEARANCE2["DEFAULT"] = "default";
|
|
9540
|
+
APPEARANCE2["SECTION"] = "section";
|
|
9541
|
+
return APPEARANCE2;
|
|
9542
|
+
})(APPEARANCE$1 || {});
|
|
9543
|
+
var SIZE$3 = /* @__PURE__ */ ((SIZE2) => {
|
|
9544
|
+
SIZE2["SM"] = "sm";
|
|
9545
|
+
SIZE2["MD"] = "md";
|
|
9546
|
+
SIZE2["LG"] = "lg";
|
|
9547
|
+
return SIZE2;
|
|
9548
|
+
})(SIZE$3 || {});
|
|
9549
|
+
const _sfc_main$p = vue.defineComponent({
|
|
9550
|
+
name: "UiRadioSwitchOptionShell",
|
|
9551
|
+
inheritAttrs: false,
|
|
9552
|
+
props: {
|
|
9553
|
+
id: {
|
|
9554
|
+
type: String,
|
|
9555
|
+
default: void 0
|
|
9556
|
+
},
|
|
9557
|
+
appearance: {
|
|
9558
|
+
type: String,
|
|
9559
|
+
default: APPEARANCE$1.DEFAULT,
|
|
9560
|
+
validator: (appearance) => Object.values(APPEARANCE$1).includes(appearance)
|
|
9561
|
+
},
|
|
9562
|
+
size: {
|
|
9563
|
+
type: String,
|
|
9564
|
+
default: SIZE$3.MD,
|
|
9565
|
+
validator: (size) => Object.values(SIZE$3).includes(size)
|
|
9566
|
+
},
|
|
9567
|
+
checked: {
|
|
9568
|
+
type: Boolean,
|
|
9569
|
+
default: false
|
|
9570
|
+
},
|
|
9571
|
+
disabled: {
|
|
9572
|
+
type: Boolean,
|
|
9573
|
+
default: false
|
|
9574
|
+
}
|
|
9575
|
+
},
|
|
9576
|
+
setup(props, { attrs, expose, slots }) {
|
|
9577
|
+
const root = vue.ref(null);
|
|
9578
|
+
expose({
|
|
9579
|
+
focus: () => root.value?.focus(),
|
|
9580
|
+
blur: () => root.value?.blur()
|
|
9581
|
+
});
|
|
9582
|
+
return () => vue.h("div", {
|
|
9583
|
+
ref: root,
|
|
9584
|
+
...attrs,
|
|
9585
|
+
id: props.id,
|
|
9586
|
+
role: attrs.role ?? "radio",
|
|
9587
|
+
"aria-checked": `${props.checked}`,
|
|
9588
|
+
"aria-disabled": `${props.disabled}`,
|
|
9589
|
+
class: [attrs.class, {
|
|
9590
|
+
"ui-v1-radio-switch-option": true,
|
|
9591
|
+
"ui-v1-radio-switch-option_standalone": props.appearance === APPEARANCE$1.SECTION,
|
|
9592
|
+
"ui-v1-radio-switch-option_default": props.appearance === APPEARANCE$1.DEFAULT,
|
|
9593
|
+
[`ui-v1-radio-switch-option_${props.size}`]: props.appearance === APPEARANCE$1.DEFAULT,
|
|
9594
|
+
"ui-v1-radio-switch-option_active": props.checked,
|
|
9595
|
+
"ui-v1-radio-switch-option_disabled": props.disabled
|
|
9596
|
+
}]
|
|
9597
|
+
}, slots.default?.());
|
|
9598
|
+
}
|
|
9599
|
+
});
|
|
9600
|
+
const _sfc_main$o = vue.defineComponent({
|
|
9601
|
+
name: "UiRadioSwitchRoot",
|
|
9602
|
+
props: {
|
|
9603
|
+
appearance: {
|
|
9604
|
+
type: String,
|
|
9605
|
+
default: APPEARANCE$1.DEFAULT,
|
|
9606
|
+
validator: (appearance) => Object.values(APPEARANCE$1).includes(appearance)
|
|
9607
|
+
},
|
|
9608
|
+
size: {
|
|
9609
|
+
type: String,
|
|
9610
|
+
default: SIZE$3.MD,
|
|
9611
|
+
validator: (size) => Object.values(SIZE$3).includes(size)
|
|
9612
|
+
},
|
|
9613
|
+
rubber: {
|
|
9614
|
+
type: Boolean,
|
|
9615
|
+
default: false
|
|
9616
|
+
}
|
|
9617
|
+
},
|
|
9618
|
+
setup(props, { attrs, slots }) {
|
|
9619
|
+
return () => vue.h("div", {
|
|
9620
|
+
...attrs,
|
|
9621
|
+
role: attrs.role ?? "radiogroup",
|
|
9622
|
+
class: [attrs.class, {
|
|
9623
|
+
"ui-v1-radio-switch": true,
|
|
9624
|
+
[`ui-v1-radio-switch_${props.size}`]: props.appearance === APPEARANCE$1.DEFAULT,
|
|
9625
|
+
"ui-v1-radio-switch_borderless": props.appearance === APPEARANCE$1.SECTION,
|
|
9626
|
+
"ui-v1-radio-switch_rubber": props.rubber
|
|
9627
|
+
}]
|
|
9628
|
+
}, slots.default?.());
|
|
9629
|
+
}
|
|
9630
|
+
});
|
|
9631
|
+
var TYPE = /* @__PURE__ */ ((TYPE2) => {
|
|
9632
|
+
TYPE2["SINGLE"] = "single";
|
|
9633
|
+
TYPE2["RANGE"] = "range";
|
|
9634
|
+
return TYPE2;
|
|
9635
|
+
})(TYPE || {});
|
|
9636
|
+
const MIN = 0;
|
|
9637
|
+
const MAX = 100;
|
|
9638
|
+
const clamp = (value, min2 = MIN, max2 = MAX) => value < min2 ? min2 : value > max2 ? max2 : value;
|
|
9639
|
+
const normalize$1 = (value, min2 = MIN, max2 = MAX) => {
|
|
9640
|
+
return min2 !== max2 ? 100 * (clamp(value, min2, max2) - min2) / (max2 - min2) : 0;
|
|
9641
|
+
};
|
|
9642
|
+
const getValue = (values, reverse) => {
|
|
9643
|
+
const value = [...values];
|
|
9644
|
+
return reverse ? value.reverse() : value;
|
|
9645
|
+
};
|
|
9646
|
+
const createManipulator = (options) => {
|
|
9647
|
+
let trackLeft = 0;
|
|
9648
|
+
let trackWidth = 0;
|
|
9649
|
+
const actualizeTrack = () => {
|
|
9650
|
+
const rect = options.getTrack()?.getBoundingClientRect() ?? null;
|
|
9175
9651
|
trackLeft = rect?.left ?? 0;
|
|
9176
9652
|
trackWidth = rect?.width ?? 0;
|
|
9177
9653
|
};
|
|
@@ -9252,16 +9728,16 @@ const createManipulator = (options) => {
|
|
|
9252
9728
|
onDragEnd
|
|
9253
9729
|
};
|
|
9254
9730
|
};
|
|
9255
|
-
const _hoisted_1$
|
|
9731
|
+
const _hoisted_1$a = {
|
|
9256
9732
|
key: 0,
|
|
9257
9733
|
class: "ui-v1-slider__label"
|
|
9258
9734
|
};
|
|
9259
|
-
const _hoisted_2$
|
|
9735
|
+
const _hoisted_2$6 = ["onMousedown", "onKeydown", "onFocus"];
|
|
9260
9736
|
const _hoisted_3$2 = {
|
|
9261
9737
|
key: 1,
|
|
9262
9738
|
class: "ui-v1-slider__label"
|
|
9263
9739
|
};
|
|
9264
|
-
const _sfc_main$
|
|
9740
|
+
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
9265
9741
|
__name: "UiSlider",
|
|
9266
9742
|
props: {
|
|
9267
9743
|
type: {
|
|
@@ -9424,7 +9900,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
9424
9900
|
onClick: _cache[2] || (_cache[2] = ($event) => vue.unref(onClick)($event)),
|
|
9425
9901
|
onKeydown: _cache[3] || (_cache[3] = ($event) => onRootKeydown($event))
|
|
9426
9902
|
}), [
|
|
9427
|
-
props.labelled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
9903
|
+
props.labelled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
9428
9904
|
vue.renderSlot(_ctx.$slots, "label", {
|
|
9429
9905
|
boundary: props.min
|
|
9430
9906
|
})
|
|
@@ -9465,7 +9941,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
9465
9941
|
key: 0,
|
|
9466
9942
|
boundary: handle.value
|
|
9467
9943
|
}) : vue.createCommentVNode("", true)
|
|
9468
|
-
], 16, _hoisted_2$
|
|
9944
|
+
], 16, _hoisted_2$6);
|
|
9469
9945
|
}), 128))
|
|
9470
9946
|
], 512),
|
|
9471
9947
|
props.labelled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [
|
|
@@ -9488,7 +9964,7 @@ var PLACEMENT = /* @__PURE__ */ ((PLACEMENT2) => {
|
|
|
9488
9964
|
PLACEMENT2["LEFT_START"] = "left-start";
|
|
9489
9965
|
return PLACEMENT2;
|
|
9490
9966
|
})(PLACEMENT || {});
|
|
9491
|
-
const _sfc_main$
|
|
9967
|
+
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
9492
9968
|
__name: "UiSelectPopper",
|
|
9493
9969
|
props: {
|
|
9494
9970
|
/** Атрибут id корневого элемента выпадающего списка. Должен быть уникальным на странице */
|
|
@@ -9611,7 +10087,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
9611
10087
|
vue.onMounted(() => {
|
|
9612
10088
|
});
|
|
9613
10089
|
return (_ctx, _cache) => {
|
|
9614
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
10090
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$N, vue.mergeProps({
|
|
9615
10091
|
id: __props.id + "-popper",
|
|
9616
10092
|
ref_key: "popper",
|
|
9617
10093
|
ref: popper,
|
|
@@ -9679,7 +10155,7 @@ const _i18n$2 = define({
|
|
|
9679
10155
|
"ru-RU": messages_ru_RU$2
|
|
9680
10156
|
}
|
|
9681
10157
|
});
|
|
9682
|
-
const _sfc_main$
|
|
10158
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
9683
10159
|
__name: "UiSelectTrigger",
|
|
9684
10160
|
props: {
|
|
9685
10161
|
/** Атрибут id корневого элемента выпадающего списка. Должен быть уникальным на странице */
|
|
@@ -9740,8 +10216,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
9740
10216
|
/** Размер поля ввода */
|
|
9741
10217
|
textboxSize: {
|
|
9742
10218
|
type: String,
|
|
9743
|
-
validator: (size) => Object.values(SIZE$
|
|
9744
|
-
default: SIZE$
|
|
10219
|
+
validator: (size) => Object.values(SIZE$7).includes(size),
|
|
10220
|
+
default: SIZE$7.SM
|
|
9745
10221
|
},
|
|
9746
10222
|
/** Состояние открытия выпадающего списка */
|
|
9747
10223
|
expanded: {
|
|
@@ -9905,7 +10381,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
9905
10381
|
class: "ui-v1-select__touchstone"
|
|
9906
10382
|
}, vue.toDisplayString(selectionLabels.value), 513)) : vue.createCommentVNode("", true),
|
|
9907
10383
|
vue.renderSlot(_ctx.$slots, "trigger", {}, () => [
|
|
9908
|
-
vue.createVNode(_sfc_main$
|
|
10384
|
+
vue.createVNode(_sfc_main$J, {
|
|
9909
10385
|
id: __props.id,
|
|
9910
10386
|
value: inputValue.value,
|
|
9911
10387
|
placeholder: !inputReadonly.value && __props.expanded ? i18n.value.t("search.placeholder") : __props.placeholder,
|
|
@@ -9946,19 +10422,19 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
9946
10422
|
};
|
|
9947
10423
|
}
|
|
9948
10424
|
});
|
|
9949
|
-
const _hoisted_1$
|
|
9950
|
-
const _hoisted_2$
|
|
10425
|
+
const _hoisted_1$9 = ["id", "checked", "disabled", "aria-checked", "aria-disabled"];
|
|
10426
|
+
const _hoisted_2$5 = { class: "ui-v1-switch__track" };
|
|
9951
10427
|
const _hoisted_3$1 = { class: "ui-v1-switch__handle" };
|
|
9952
|
-
let counter = 0;
|
|
10428
|
+
let counter$1 = 0;
|
|
9953
10429
|
const __default__ = {};
|
|
9954
|
-
const _sfc_main$
|
|
10430
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
9955
10431
|
...__default__,
|
|
9956
10432
|
__name: "UiSwitch",
|
|
9957
10433
|
props: {
|
|
9958
10434
|
id: {
|
|
9959
10435
|
type: null,
|
|
9960
10436
|
validator: (id) => id === void 0 || typeof id === "string" && id.length > 0 && /^[A-Za-z]/.test(id),
|
|
9961
|
-
default: () => "ui-v1-switch-" + ++counter
|
|
10437
|
+
default: () => "ui-v1-switch-" + ++counter$1
|
|
9962
10438
|
},
|
|
9963
10439
|
/** Включен/выключен */
|
|
9964
10440
|
value: {
|
|
@@ -10024,8 +10500,8 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
10024
10500
|
role: "switch",
|
|
10025
10501
|
class: "ui-v1-switch__input",
|
|
10026
10502
|
onChange
|
|
10027
|
-
}), null, 16, _hoisted_1$
|
|
10028
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
10503
|
+
}), null, 16, _hoisted_1$9),
|
|
10504
|
+
vue.createElementVNode("span", _hoisted_2$5, [
|
|
10029
10505
|
vue.createElementVNode("span", _hoisted_3$1, [
|
|
10030
10506
|
!__props.square ? (vue.openBlock(), vue.createBlock(vue.unref(IconDone), {
|
|
10031
10507
|
key: 0,
|
|
@@ -10059,7 +10535,7 @@ const byRowKey = (key) => {
|
|
|
10059
10535
|
};
|
|
10060
10536
|
const asRowClass = (value) => value;
|
|
10061
10537
|
const asRowAttrs = (value) => value;
|
|
10062
|
-
const _sfc_main$
|
|
10538
|
+
const _sfc_main$j = vue.defineComponent({
|
|
10063
10539
|
name: "UiTableBodyCell",
|
|
10064
10540
|
props: {
|
|
10065
10541
|
align: {
|
|
@@ -10111,7 +10587,7 @@ const toCssSize = (value) => {
|
|
|
10111
10587
|
}
|
|
10112
10588
|
return value;
|
|
10113
10589
|
};
|
|
10114
|
-
const _sfc_main$
|
|
10590
|
+
const _sfc_main$i = vue.defineComponent({
|
|
10115
10591
|
name: "UiTableCol",
|
|
10116
10592
|
props: {
|
|
10117
10593
|
width: {
|
|
@@ -10130,6 +10606,7 @@ const _sfc_main$d = vue.defineComponent({
|
|
|
10130
10606
|
setup(props, { attrs }) {
|
|
10131
10607
|
return () => vue.h("col", {
|
|
10132
10608
|
...attrs,
|
|
10609
|
+
width: props.width,
|
|
10133
10610
|
style: [
|
|
10134
10611
|
attrs.style ?? null,
|
|
10135
10612
|
{
|
|
@@ -10141,9 +10618,9 @@ const _sfc_main$d = vue.defineComponent({
|
|
|
10141
10618
|
});
|
|
10142
10619
|
}
|
|
10143
10620
|
});
|
|
10144
|
-
const _hoisted_1$
|
|
10145
|
-
const _hoisted_2$
|
|
10146
|
-
const _sfc_main$
|
|
10621
|
+
const _hoisted_1$8 = ["type"];
|
|
10622
|
+
const _hoisted_2$4 = { class: "ui-v1-table__footer-button-content" };
|
|
10623
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
10147
10624
|
...{
|
|
10148
10625
|
inheritAttrs: false
|
|
10149
10626
|
},
|
|
@@ -10161,14 +10638,14 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10161
10638
|
type: __props.type,
|
|
10162
10639
|
class: "ui-v1-table__footer-button"
|
|
10163
10640
|
}, _ctx.$attrs), [
|
|
10164
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
10641
|
+
vue.createElementVNode("span", _hoisted_2$4, [
|
|
10165
10642
|
vue.renderSlot(_ctx.$slots, "default")
|
|
10166
10643
|
])
|
|
10167
|
-
], 16, _hoisted_1$
|
|
10644
|
+
], 16, _hoisted_1$8);
|
|
10168
10645
|
};
|
|
10169
10646
|
}
|
|
10170
10647
|
});
|
|
10171
|
-
const _sfc_main$
|
|
10648
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
10172
10649
|
...{
|
|
10173
10650
|
inheritAttrs: false
|
|
10174
10651
|
},
|
|
@@ -10181,7 +10658,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
10181
10658
|
};
|
|
10182
10659
|
}
|
|
10183
10660
|
});
|
|
10184
|
-
const _sfc_main$
|
|
10661
|
+
const _sfc_main$f = vue.defineComponent({
|
|
10185
10662
|
name: "UiTableHeadCell",
|
|
10186
10663
|
props: {
|
|
10187
10664
|
align: {
|
|
@@ -10206,7 +10683,7 @@ const _sfc_main$a = vue.defineComponent({
|
|
|
10206
10683
|
}, slots.default?.());
|
|
10207
10684
|
}
|
|
10208
10685
|
});
|
|
10209
|
-
const _sfc_main$
|
|
10686
|
+
const _sfc_main$e = vue.defineComponent({
|
|
10210
10687
|
name: "UiTableRoot",
|
|
10211
10688
|
props: {
|
|
10212
10689
|
bordered: {
|
|
@@ -10229,7 +10706,7 @@ const _sfc_main$9 = vue.defineComponent({
|
|
|
10229
10706
|
}, slots.default?.());
|
|
10230
10707
|
}
|
|
10231
10708
|
});
|
|
10232
|
-
const _sfc_main$
|
|
10709
|
+
const _sfc_main$d = vue.defineComponent({
|
|
10233
10710
|
name: "UiTableRow",
|
|
10234
10711
|
props: {
|
|
10235
10712
|
interactive: {
|
|
@@ -10257,7 +10734,7 @@ const sectionTagByKind = {
|
|
|
10257
10734
|
body: "tbody",
|
|
10258
10735
|
foot: "tfoot"
|
|
10259
10736
|
};
|
|
10260
|
-
const _sfc_main$
|
|
10737
|
+
const _sfc_main$c = vue.defineComponent({
|
|
10261
10738
|
name: "UiTableSection",
|
|
10262
10739
|
props: {
|
|
10263
10740
|
kind: {
|
|
@@ -10276,14 +10753,14 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
10276
10753
|
}, slots.default?.());
|
|
10277
10754
|
}
|
|
10278
10755
|
});
|
|
10279
|
-
const _hoisted_1$
|
|
10756
|
+
const _hoisted_1$7 = {
|
|
10280
10757
|
"aria-hidden": "true",
|
|
10281
10758
|
class: "ui-v1-table__sorter-icon",
|
|
10282
10759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10283
10760
|
viewBox: "0 0 24 24"
|
|
10284
10761
|
};
|
|
10285
|
-
const _hoisted_2$
|
|
10286
|
-
const _sfc_main$
|
|
10762
|
+
const _hoisted_2$3 = { class: "ui-v1-table__sorter-label" };
|
|
10763
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
10287
10764
|
...{
|
|
10288
10765
|
inheritAttrs: false
|
|
10289
10766
|
},
|
|
@@ -10301,7 +10778,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10301
10778
|
type: "button",
|
|
10302
10779
|
class: "ui-v1-table__sorter"
|
|
10303
10780
|
}, _ctx.$attrs), [
|
|
10304
|
-
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$
|
|
10781
|
+
(vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$7, [
|
|
10305
10782
|
vue.createElementVNode("path", {
|
|
10306
10783
|
class: vue.normalizeClass({
|
|
10307
10784
|
"ui-v1-table__sorter-path": true,
|
|
@@ -10317,13 +10794,832 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10317
10794
|
d: "M7.7,15.7c0,0.1,0.1,0.3,0.1,0.4l3.8,3.8c0.2,0.2,0.5,0.2,0.7,0c0,0,0,0,0,0l3.8-3.8c0.2-0.2,0.2-0.5,0-0.7c0,0,0,0,0,0l-0.2-0.2c-0.1-0.1-0.2-0.2-0.4-0.1H8.4c-0.1,0-0.3,0.1-0.4,0.1l-0.2,0.2C7.8,15.4,7.7,15.6,7.7,15.7z"
|
|
10318
10795
|
}, null, 2)
|
|
10319
10796
|
])),
|
|
10320
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
10797
|
+
vue.createElementVNode("span", _hoisted_2$3, [
|
|
10321
10798
|
vue.renderSlot(_ctx.$slots, "default")
|
|
10322
10799
|
])
|
|
10323
10800
|
], 16);
|
|
10324
10801
|
};
|
|
10325
10802
|
}
|
|
10326
10803
|
});
|
|
10804
|
+
const _sfc_main$a = vue.defineComponent({
|
|
10805
|
+
name: "UiTab",
|
|
10806
|
+
inheritAttrs: false,
|
|
10807
|
+
props: {
|
|
10808
|
+
id: {
|
|
10809
|
+
type: String,
|
|
10810
|
+
required: true
|
|
10811
|
+
},
|
|
10812
|
+
label: {
|
|
10813
|
+
type: String,
|
|
10814
|
+
default: ""
|
|
10815
|
+
},
|
|
10816
|
+
counter: {
|
|
10817
|
+
type: [String, Number],
|
|
10818
|
+
default: null
|
|
10819
|
+
},
|
|
10820
|
+
disabled: {
|
|
10821
|
+
type: Boolean,
|
|
10822
|
+
default: false
|
|
10823
|
+
}
|
|
10824
|
+
},
|
|
10825
|
+
setup() {
|
|
10826
|
+
return () => null;
|
|
10827
|
+
}
|
|
10828
|
+
});
|
|
10829
|
+
const _hoisted_1$6 = {
|
|
10830
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10831
|
+
viewBox: "0 0 24 24"
|
|
10832
|
+
};
|
|
10833
|
+
function render$2(_ctx, _cache) {
|
|
10834
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$6, [..._cache[0] || (_cache[0] = [
|
|
10835
|
+
vue.createElementVNode("path", {
|
|
10836
|
+
fill: "currentColor",
|
|
10837
|
+
"fill-rule": "evenodd",
|
|
10838
|
+
d: "M6 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4m8 2a2 2 0 1 0-4 0 2 2 0 0 0 4 0m4-2a2 2 0 1 1 0 4 2 2 0 0 1 0-4",
|
|
10839
|
+
"clip-rule": "evenodd"
|
|
10840
|
+
}, null, -1)
|
|
10841
|
+
])]);
|
|
10842
|
+
}
|
|
10843
|
+
const IconMoreHorizontal = { render: render$2 };
|
|
10844
|
+
var SIZE$2 = /* @__PURE__ */ ((SIZE2) => {
|
|
10845
|
+
SIZE2["SM"] = "sm";
|
|
10846
|
+
SIZE2["MD"] = "md";
|
|
10847
|
+
SIZE2["LG"] = "lg";
|
|
10848
|
+
return SIZE2;
|
|
10849
|
+
})(SIZE$2 || {});
|
|
10850
|
+
var APPEARANCE = /* @__PURE__ */ ((APPEARANCE2) => {
|
|
10851
|
+
APPEARANCE2["TEXT"] = "text";
|
|
10852
|
+
APPEARANCE2["FILLED"] = "filled";
|
|
10853
|
+
return APPEARANCE2;
|
|
10854
|
+
})(APPEARANCE || {});
|
|
10855
|
+
const hasCounter = (value) => {
|
|
10856
|
+
return value !== null && typeof value !== "undefined";
|
|
10857
|
+
};
|
|
10858
|
+
const _sfc_main$9 = vue.defineComponent({
|
|
10859
|
+
name: "UiTabButton",
|
|
10860
|
+
inheritAttrs: false,
|
|
10861
|
+
props: {
|
|
10862
|
+
item: {
|
|
10863
|
+
type: Object,
|
|
10864
|
+
required: true
|
|
10865
|
+
},
|
|
10866
|
+
active: {
|
|
10867
|
+
type: Boolean,
|
|
10868
|
+
default: false
|
|
10869
|
+
},
|
|
10870
|
+
size: {
|
|
10871
|
+
type: String,
|
|
10872
|
+
default: SIZE$2.MD,
|
|
10873
|
+
validator: (size) => Object.values(SIZE$2).includes(size)
|
|
10874
|
+
},
|
|
10875
|
+
appearance: {
|
|
10876
|
+
type: String,
|
|
10877
|
+
default: APPEARANCE.TEXT,
|
|
10878
|
+
validator: (appearance) => Object.values(APPEARANCE).includes(appearance)
|
|
10879
|
+
}
|
|
10880
|
+
},
|
|
10881
|
+
setup(props, { attrs, expose }) {
|
|
10882
|
+
const root = vue.ref(null);
|
|
10883
|
+
const isIconOnly = vue.computed(() => {
|
|
10884
|
+
return Boolean(props.item.iconOnly);
|
|
10885
|
+
});
|
|
10886
|
+
const focus = () => {
|
|
10887
|
+
root.value?.focus();
|
|
10888
|
+
};
|
|
10889
|
+
const getWidth = () => {
|
|
10890
|
+
return Math.ceil(root.value?.offsetWidth ?? 0);
|
|
10891
|
+
};
|
|
10892
|
+
expose({
|
|
10893
|
+
focus,
|
|
10894
|
+
getWidth
|
|
10895
|
+
});
|
|
10896
|
+
return () => vue.h("button", {
|
|
10897
|
+
...attrs,
|
|
10898
|
+
ref: root,
|
|
10899
|
+
class: [attrs.class, {
|
|
10900
|
+
"ui-v1-tab": true,
|
|
10901
|
+
[`ui-v1-tab_${props.appearance}`]: true,
|
|
10902
|
+
[`ui-v1-tab_${props.size}`]: true,
|
|
10903
|
+
"ui-v1-tab_active": props.active,
|
|
10904
|
+
"ui-v1-tab_disabled": Boolean(props.item.disabled),
|
|
10905
|
+
"ui-v1-tab_icon-without-text": isIconOnly.value
|
|
10906
|
+
}],
|
|
10907
|
+
disabled: props.item.disabled,
|
|
10908
|
+
type: "button"
|
|
10909
|
+
}, [
|
|
10910
|
+
props.item.iconSlot ? vue.h("span", { class: "ui-v1-tab__icon" }, props.item.iconSlot()) : null,
|
|
10911
|
+
props.item.labelSlot || props.item.label ? vue.h("span", { class: "ui-v1-tab__label" }, props.item.labelSlot?.() ?? [props.item.label]) : null,
|
|
10912
|
+
props.item.counterSlot || hasCounter(props.item.counter) ? vue.h("span", { class: "ui-v1-tab__counter" }, props.item.counterSlot?.() ?? [String(props.item.counter ?? "")]) : null
|
|
10913
|
+
]);
|
|
10914
|
+
}
|
|
10915
|
+
});
|
|
10916
|
+
const _hoisted_1$5 = {
|
|
10917
|
+
"aria-hidden": "true",
|
|
10918
|
+
class: "ui-v1-tab-group__measure"
|
|
10919
|
+
};
|
|
10920
|
+
const _hoisted_2$2 = { class: "ui-v1-tab-group__content" };
|
|
10921
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
10922
|
+
__name: "UiTabGroupHead",
|
|
10923
|
+
props: {
|
|
10924
|
+
groupId: {
|
|
10925
|
+
type: String,
|
|
10926
|
+
required: true
|
|
10927
|
+
},
|
|
10928
|
+
items: {
|
|
10929
|
+
type: Array,
|
|
10930
|
+
default: () => []
|
|
10931
|
+
},
|
|
10932
|
+
headItems: {
|
|
10933
|
+
type: Array,
|
|
10934
|
+
default: () => []
|
|
10935
|
+
},
|
|
10936
|
+
activeId: {
|
|
10937
|
+
type: String,
|
|
10938
|
+
default: null
|
|
10939
|
+
},
|
|
10940
|
+
focusableId: {
|
|
10941
|
+
type: String,
|
|
10942
|
+
default: null
|
|
10943
|
+
},
|
|
10944
|
+
menuExpanded: {
|
|
10945
|
+
type: Boolean,
|
|
10946
|
+
default: false
|
|
10947
|
+
},
|
|
10948
|
+
hasMenuItems: {
|
|
10949
|
+
type: Boolean,
|
|
10950
|
+
default: false
|
|
10951
|
+
},
|
|
10952
|
+
size: {
|
|
10953
|
+
type: String,
|
|
10954
|
+
default: SIZE$2.MD,
|
|
10955
|
+
validator: (size) => Object.values(SIZE$2).includes(size)
|
|
10956
|
+
},
|
|
10957
|
+
appearance: {
|
|
10958
|
+
type: String,
|
|
10959
|
+
default: APPEARANCE.TEXT,
|
|
10960
|
+
validator: (appearance) => Object.values(APPEARANCE).includes(appearance)
|
|
10961
|
+
}
|
|
10962
|
+
},
|
|
10963
|
+
emits: ["focus-tab", "move-focus", "select"],
|
|
10964
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
10965
|
+
const props = __props;
|
|
10966
|
+
const emit = __emit;
|
|
10967
|
+
const head = vue.ref(null);
|
|
10968
|
+
const headRefs = /* @__PURE__ */ new Map();
|
|
10969
|
+
const measureRefs = /* @__PURE__ */ new Map();
|
|
10970
|
+
const createIntent = (id, direction) => {
|
|
10971
|
+
return { id, direction };
|
|
10972
|
+
};
|
|
10973
|
+
const onTabKeydown = (id, event) => {
|
|
10974
|
+
switch (event.key) {
|
|
10975
|
+
case " ":
|
|
10976
|
+
case "Enter":
|
|
10977
|
+
event.preventDefault();
|
|
10978
|
+
emit("select", id);
|
|
10979
|
+
return;
|
|
10980
|
+
case "ArrowDown":
|
|
10981
|
+
case "ArrowRight":
|
|
10982
|
+
event.preventDefault();
|
|
10983
|
+
emit("move-focus", createIntent(id, "next"));
|
|
10984
|
+
return;
|
|
10985
|
+
case "ArrowUp":
|
|
10986
|
+
case "ArrowLeft":
|
|
10987
|
+
event.preventDefault();
|
|
10988
|
+
emit("move-focus", createIntent(id, "prev"));
|
|
10989
|
+
return;
|
|
10990
|
+
case "Home":
|
|
10991
|
+
event.preventDefault();
|
|
10992
|
+
emit("move-focus", createIntent(id, "first"));
|
|
10993
|
+
return;
|
|
10994
|
+
case "End":
|
|
10995
|
+
event.preventDefault();
|
|
10996
|
+
emit("move-focus", createIntent(id, "last"));
|
|
10997
|
+
}
|
|
10998
|
+
};
|
|
10999
|
+
const setHeadRef = (id, element) => {
|
|
11000
|
+
if (element) {
|
|
11001
|
+
headRefs.set(id, element);
|
|
11002
|
+
return;
|
|
11003
|
+
}
|
|
11004
|
+
headRefs.delete(id);
|
|
11005
|
+
};
|
|
11006
|
+
const setMeasureRef = (id, element) => {
|
|
11007
|
+
if (element) {
|
|
11008
|
+
measureRefs.set(id, element);
|
|
11009
|
+
return;
|
|
11010
|
+
}
|
|
11011
|
+
measureRefs.delete(id);
|
|
11012
|
+
};
|
|
11013
|
+
const focusTab = (id) => {
|
|
11014
|
+
headRefs.get(id)?.focus();
|
|
11015
|
+
};
|
|
11016
|
+
const measure = () => {
|
|
11017
|
+
const widths = /* @__PURE__ */ new Map();
|
|
11018
|
+
props.items.forEach((item) => {
|
|
11019
|
+
widths.set(item.id, measureRefs.get(item.id)?.getWidth() ?? 0);
|
|
11020
|
+
});
|
|
11021
|
+
return {
|
|
11022
|
+
availableWidth: Math.ceil(head.value?.clientWidth ?? 0),
|
|
11023
|
+
widths
|
|
11024
|
+
};
|
|
11025
|
+
};
|
|
11026
|
+
__expose({
|
|
11027
|
+
focusTab,
|
|
11028
|
+
measure
|
|
11029
|
+
});
|
|
11030
|
+
return (_ctx, _cache) => {
|
|
11031
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
11032
|
+
vue.createElementVNode("div", _hoisted_1$5, [
|
|
11033
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, (item) => {
|
|
11034
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$9, {
|
|
11035
|
+
id: `${item.id}-measure`,
|
|
11036
|
+
key: `measure-${item.id}`,
|
|
11037
|
+
ref_for: true,
|
|
11038
|
+
ref: (element) => setMeasureRef(item.id, element),
|
|
11039
|
+
active: __props.activeId === item.id,
|
|
11040
|
+
appearance: __props.appearance,
|
|
11041
|
+
class: "ui-v1-tab-group__measure-button",
|
|
11042
|
+
item,
|
|
11043
|
+
size: __props.size,
|
|
11044
|
+
tabindex: "-1"
|
|
11045
|
+
}, null, 8, ["id", "active", "appearance", "item", "size"]);
|
|
11046
|
+
}), 128))
|
|
11047
|
+
]),
|
|
11048
|
+
vue.createElementVNode("div", {
|
|
11049
|
+
ref_key: "head",
|
|
11050
|
+
ref: head,
|
|
11051
|
+
class: "ui-v1-tab-group__head",
|
|
11052
|
+
role: "tablist"
|
|
11053
|
+
}, [
|
|
11054
|
+
vue.createElementVNode("div", _hoisted_2$2, [
|
|
11055
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.headItems, (item) => {
|
|
11056
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$9, {
|
|
11057
|
+
id: `${props.groupId}-tab-${item.id}`,
|
|
11058
|
+
key: `head-${item.id}`,
|
|
11059
|
+
ref_for: true,
|
|
11060
|
+
ref: (element) => setHeadRef(item.id, element),
|
|
11061
|
+
active: __props.activeId === item.id,
|
|
11062
|
+
"aria-disabled": item.disabled ? "true" : "false",
|
|
11063
|
+
"aria-selected": __props.activeId === item.id ? "true" : "false",
|
|
11064
|
+
"aria-controls": item.contentSlot ? `${props.groupId}-panel-${item.id}` : void 0,
|
|
11065
|
+
appearance: __props.appearance,
|
|
11066
|
+
item,
|
|
11067
|
+
size: __props.size,
|
|
11068
|
+
tabindex: !item.disabled && __props.focusableId === item.id ? 0 : -1,
|
|
11069
|
+
role: "tab",
|
|
11070
|
+
onClick: ($event) => _ctx.$emit("select", item.id),
|
|
11071
|
+
onFocus: ($event) => _ctx.$emit("focus-tab", item.id),
|
|
11072
|
+
onKeydown: ($event) => onTabKeydown(item.id, $event)
|
|
11073
|
+
}, null, 8, ["id", "active", "aria-disabled", "aria-selected", "aria-controls", "appearance", "item", "size", "tabindex", "onClick", "onFocus", "onKeydown"]);
|
|
11074
|
+
}), 128))
|
|
11075
|
+
]),
|
|
11076
|
+
__props.hasMenuItems ? (vue.openBlock(), vue.createBlock(_sfc_main$W, {
|
|
11077
|
+
key: 0,
|
|
11078
|
+
active: __props.menuExpanded,
|
|
11079
|
+
"aria-expanded": __props.menuExpanded ? "true" : "false",
|
|
11080
|
+
"aria-label": "More tabs",
|
|
11081
|
+
"aria-haspopup": "menu",
|
|
11082
|
+
appearance: "tertiary",
|
|
11083
|
+
class: "ui-v1-tab-group__trigger",
|
|
11084
|
+
size: "sm",
|
|
11085
|
+
type: "button"
|
|
11086
|
+
}, {
|
|
11087
|
+
default: vue.withCtx(() => [
|
|
11088
|
+
vue.createVNode(vue.unref(IconMoreHorizontal), {
|
|
11089
|
+
"aria-hidden": "true",
|
|
11090
|
+
class: "ui-v1-tab-group__trigger-icon"
|
|
11091
|
+
})
|
|
11092
|
+
]),
|
|
11093
|
+
_: 1
|
|
11094
|
+
}, 8, ["active", "aria-expanded"])) : vue.createCommentVNode("", true)
|
|
11095
|
+
], 512)
|
|
11096
|
+
], 64);
|
|
11097
|
+
};
|
|
11098
|
+
}
|
|
11099
|
+
});
|
|
11100
|
+
const _sfc_main$7 = vue.defineComponent({
|
|
11101
|
+
name: "UiTabGroupMenu",
|
|
11102
|
+
props: {
|
|
11103
|
+
items: {
|
|
11104
|
+
type: Array,
|
|
11105
|
+
default: () => []
|
|
11106
|
+
},
|
|
11107
|
+
activeId: {
|
|
11108
|
+
type: String,
|
|
11109
|
+
default: null
|
|
11110
|
+
},
|
|
11111
|
+
menuExpanded: {
|
|
11112
|
+
type: Boolean,
|
|
11113
|
+
default: false
|
|
11114
|
+
},
|
|
11115
|
+
size: {
|
|
11116
|
+
type: String,
|
|
11117
|
+
default: SIZE$2.MD,
|
|
11118
|
+
validator: (size) => Object.values(SIZE$2).includes(size)
|
|
11119
|
+
}
|
|
11120
|
+
},
|
|
11121
|
+
emits: {
|
|
11122
|
+
"select": (id) => {
|
|
11123
|
+
return true;
|
|
11124
|
+
},
|
|
11125
|
+
"update:menuExpanded": (expanded) => {
|
|
11126
|
+
return true;
|
|
11127
|
+
}
|
|
11128
|
+
},
|
|
11129
|
+
setup(props, { emit }) {
|
|
11130
|
+
const resolvedMenuItemSize = vue.computed(() => {
|
|
11131
|
+
return props.size === SIZE$2.SM ? SIZE$6.SM : SIZE$6.MD;
|
|
11132
|
+
});
|
|
11133
|
+
const onMenuItemKeydown = (id, event) => {
|
|
11134
|
+
switch (event.key) {
|
|
11135
|
+
case " ":
|
|
11136
|
+
case "Enter":
|
|
11137
|
+
event.preventDefault();
|
|
11138
|
+
emit("select", id);
|
|
11139
|
+
}
|
|
11140
|
+
};
|
|
11141
|
+
const onUpdateVisible = (expanded) => {
|
|
11142
|
+
if (expanded !== props.menuExpanded) {
|
|
11143
|
+
emit("update:menuExpanded", expanded);
|
|
11144
|
+
}
|
|
11145
|
+
};
|
|
11146
|
+
return () => {
|
|
11147
|
+
if (!props.items.length) {
|
|
11148
|
+
return null;
|
|
11149
|
+
}
|
|
11150
|
+
return vue.h(_sfc_main$N, {
|
|
11151
|
+
visible: props.menuExpanded,
|
|
11152
|
+
targetTriggers: {
|
|
11153
|
+
hide: ["click"],
|
|
11154
|
+
show: ["click"]
|
|
11155
|
+
},
|
|
11156
|
+
globalTriggers: ["miss-click", "reference-hidden"],
|
|
11157
|
+
class: "ui-v1-tab-group__popper",
|
|
11158
|
+
placement: "bottom-end",
|
|
11159
|
+
"onUpdate:visible": onUpdateVisible
|
|
11160
|
+
}, {
|
|
11161
|
+
default: () => vue.h("div", {
|
|
11162
|
+
class: "ui-v1-tab-group__menu",
|
|
11163
|
+
role: "menu"
|
|
11164
|
+
}, props.items.map((item) => vue.h(_sfc_main$I, {
|
|
11165
|
+
key: `menu-${item.id}`,
|
|
11166
|
+
active: props.activeId === item.id,
|
|
11167
|
+
"aria-checked": props.activeId === item.id ? "true" : "false",
|
|
11168
|
+
"aria-disabled": item.disabled ? "true" : "false",
|
|
11169
|
+
class: "ui-v1-tab-group__menu-item",
|
|
11170
|
+
counter: item.counter ?? null,
|
|
11171
|
+
disabled: item.disabled,
|
|
11172
|
+
role: "menuitemradio",
|
|
11173
|
+
size: resolvedMenuItemSize.value,
|
|
11174
|
+
tabindex: item.disabled ? -1 : 0,
|
|
11175
|
+
onClick: () => emit("select", item.id),
|
|
11176
|
+
onKeydown: (event) => {
|
|
11177
|
+
onMenuItemKeydown(item.id, event);
|
|
11178
|
+
}
|
|
11179
|
+
}, {
|
|
11180
|
+
default: () => item.labelSlot?.() ?? [item.label ?? item.id],
|
|
11181
|
+
"leading-icon": item.iconSlot ? () => item.iconSlot?.() ?? null : void 0
|
|
11182
|
+
})))
|
|
11183
|
+
});
|
|
11184
|
+
};
|
|
11185
|
+
}
|
|
11186
|
+
});
|
|
11187
|
+
const isNamedComponent = (node, name) => {
|
|
11188
|
+
if (typeof node.type !== "object" || node.type === null) {
|
|
11189
|
+
return false;
|
|
11190
|
+
}
|
|
11191
|
+
return "name" in node.type && node.type.name === name;
|
|
11192
|
+
};
|
|
11193
|
+
const hasTabLikeProps = (node) => {
|
|
11194
|
+
const props = node.props ?? {};
|
|
11195
|
+
const childrenRecord = node.children && !Array.isArray(node.children) && typeof node.children !== "string" ? node.children : {};
|
|
11196
|
+
if (typeof props.id !== "string" || !props.id.length) {
|
|
11197
|
+
return false;
|
|
11198
|
+
}
|
|
11199
|
+
return [
|
|
11200
|
+
"label",
|
|
11201
|
+
"counter",
|
|
11202
|
+
"disabled"
|
|
11203
|
+
].some((key) => key in props) || [
|
|
11204
|
+
"default",
|
|
11205
|
+
"icon",
|
|
11206
|
+
"label",
|
|
11207
|
+
"counter",
|
|
11208
|
+
"content"
|
|
11209
|
+
].some((key) => key in childrenRecord);
|
|
11210
|
+
};
|
|
11211
|
+
const isTabVNode = (node) => {
|
|
11212
|
+
return isNamedComponent(node, "UiTab") || hasTabLikeProps(node);
|
|
11213
|
+
};
|
|
11214
|
+
const isWhitespaceText = (value) => value.trim().length === 0;
|
|
11215
|
+
const normalizeNodes = (children) => {
|
|
11216
|
+
const normalized = [];
|
|
11217
|
+
children.forEach((child) => {
|
|
11218
|
+
if (Array.isArray(child)) {
|
|
11219
|
+
normalized.push(...normalizeNodes(child));
|
|
11220
|
+
return;
|
|
11221
|
+
}
|
|
11222
|
+
if (!vue.isVNode(child)) {
|
|
11223
|
+
return;
|
|
11224
|
+
}
|
|
11225
|
+
if (child.type === vue.Comment) {
|
|
11226
|
+
return;
|
|
11227
|
+
}
|
|
11228
|
+
if (child.type === vue.Text) {
|
|
11229
|
+
const text = typeof child.children === "string" ? child.children : "";
|
|
11230
|
+
if (!isWhitespaceText(text)) {
|
|
11231
|
+
normalized.push(child);
|
|
11232
|
+
}
|
|
11233
|
+
return;
|
|
11234
|
+
}
|
|
11235
|
+
if (child.type === vue.Fragment && Array.isArray(child.children)) {
|
|
11236
|
+
normalized.push(...normalizeNodes(child.children));
|
|
11237
|
+
return;
|
|
11238
|
+
}
|
|
11239
|
+
normalized.push(child);
|
|
11240
|
+
});
|
|
11241
|
+
return normalized;
|
|
11242
|
+
};
|
|
11243
|
+
const normalizeString = (value) => {
|
|
11244
|
+
return typeof value === "string" ? value : "";
|
|
11245
|
+
};
|
|
11246
|
+
const normalizeCounter = (value) => {
|
|
11247
|
+
return typeof value === "string" || typeof value === "number" ? value : null;
|
|
11248
|
+
};
|
|
11249
|
+
const normalizeBoolean = (value) => value === "" || value === true;
|
|
11250
|
+
const createTabDefinitions = (items) => {
|
|
11251
|
+
return items.map((item) => ({
|
|
11252
|
+
id: item.id,
|
|
11253
|
+
label: item.label ?? "",
|
|
11254
|
+
counter: item.counter ?? null,
|
|
11255
|
+
disabled: Boolean(item.disabled),
|
|
11256
|
+
iconOnly: Boolean(item.iconOnly)
|
|
11257
|
+
}));
|
|
11258
|
+
};
|
|
11259
|
+
const collectTabs = (children) => {
|
|
11260
|
+
return normalizeNodes(children).filter(isTabVNode).map((node, index) => {
|
|
11261
|
+
const props = node.props ?? {};
|
|
11262
|
+
const childrenRecord = node.children && !Array.isArray(node.children) && typeof node.children !== "string" ? node.children : {};
|
|
11263
|
+
const label2 = normalizeString(props.label);
|
|
11264
|
+
const counter2 = normalizeCounter(props.counter);
|
|
11265
|
+
const hasIcon = Boolean(childrenRecord.icon);
|
|
11266
|
+
const hasLabel = Boolean(childrenRecord.label) || Boolean(label2);
|
|
11267
|
+
const hasCounter2 = typeof childrenRecord.counter !== "undefined" || counter2 !== null;
|
|
11268
|
+
return {
|
|
11269
|
+
id: normalizeString(props.id) || String(node.key ?? `ui-v1-tab-${index}`),
|
|
11270
|
+
label: label2,
|
|
11271
|
+
counter: counter2,
|
|
11272
|
+
disabled: normalizeBoolean(props.disabled),
|
|
11273
|
+
iconOnly: hasIcon && !hasLabel && !hasCounter2,
|
|
11274
|
+
iconSlot: childrenRecord.icon,
|
|
11275
|
+
labelSlot: childrenRecord.label,
|
|
11276
|
+
counterSlot: childrenRecord.counter,
|
|
11277
|
+
contentSlot: childrenRecord.content
|
|
11278
|
+
};
|
|
11279
|
+
});
|
|
11280
|
+
};
|
|
11281
|
+
const resolveActiveId = (tabs, activeId) => {
|
|
11282
|
+
if (!activeId) {
|
|
11283
|
+
return null;
|
|
11284
|
+
}
|
|
11285
|
+
return tabs.some((tab) => tab.id === activeId) ? activeId : null;
|
|
11286
|
+
};
|
|
11287
|
+
const HEAD_GAP = {
|
|
11288
|
+
[SIZE$2.SM]: 20,
|
|
11289
|
+
[SIZE$2.MD]: 24,
|
|
11290
|
+
[SIZE$2.LG]: 24
|
|
11291
|
+
};
|
|
11292
|
+
const FILLED_TRIGGER_GAP = {
|
|
11293
|
+
[SIZE$2.SM]: 10,
|
|
11294
|
+
[SIZE$2.MD]: 12,
|
|
11295
|
+
[SIZE$2.LG]: 32
|
|
11296
|
+
};
|
|
11297
|
+
const MENU_TRIGGER_WIDTH = 36;
|
|
11298
|
+
const widthOf = (id, widths) => {
|
|
11299
|
+
return Math.max(0, Math.ceil(widths.get(id) ?? 0));
|
|
11300
|
+
};
|
|
11301
|
+
const sumWidths = (ids, widths, gap) => ids.reduce((total, id, index) => {
|
|
11302
|
+
return total + widthOf(id, widths) + (index > 0 ? gap : 0);
|
|
11303
|
+
}, 0);
|
|
11304
|
+
const moveActiveToHead = (ids, headIds, widths, limit, gap, activeId) => {
|
|
11305
|
+
if (headIds.includes(activeId)) {
|
|
11306
|
+
return headIds;
|
|
11307
|
+
}
|
|
11308
|
+
const next = [...headIds, activeId].sort((a, b) => ids.indexOf(a) - ids.indexOf(b));
|
|
11309
|
+
while (next.length > 1 && sumWidths(next, widths, gap) > limit) {
|
|
11310
|
+
const removable = [...next].reverse().find((id) => id !== activeId);
|
|
11311
|
+
if (!removable) {
|
|
11312
|
+
break;
|
|
11313
|
+
}
|
|
11314
|
+
next.splice(next.indexOf(removable), 1);
|
|
11315
|
+
}
|
|
11316
|
+
return next;
|
|
11317
|
+
};
|
|
11318
|
+
const resolveTabLayout = (options) => {
|
|
11319
|
+
const ids = options.items.map((item) => item.id);
|
|
11320
|
+
if (!ids.length) {
|
|
11321
|
+
return {
|
|
11322
|
+
headIds: [],
|
|
11323
|
+
menuIds: []
|
|
11324
|
+
};
|
|
11325
|
+
}
|
|
11326
|
+
if (!options.overflowing || options.availableWidth <= 0) {
|
|
11327
|
+
return {
|
|
11328
|
+
headIds: ids,
|
|
11329
|
+
menuIds: []
|
|
11330
|
+
};
|
|
11331
|
+
}
|
|
11332
|
+
if (ids.some((id) => widthOf(id, options.widths) === 0)) {
|
|
11333
|
+
return {
|
|
11334
|
+
headIds: ids,
|
|
11335
|
+
menuIds: []
|
|
11336
|
+
};
|
|
11337
|
+
}
|
|
11338
|
+
const size = options.size;
|
|
11339
|
+
const appearance = options.appearance;
|
|
11340
|
+
const gap = appearance === APPEARANCE.FILLED ? 0 : HEAD_GAP[size] ?? HEAD_GAP[SIZE$2.MD];
|
|
11341
|
+
const totalWidth = sumWidths(ids, options.widths, gap);
|
|
11342
|
+
if (totalWidth <= options.availableWidth) {
|
|
11343
|
+
return {
|
|
11344
|
+
headIds: ids,
|
|
11345
|
+
menuIds: []
|
|
11346
|
+
};
|
|
11347
|
+
}
|
|
11348
|
+
const triggerGap = appearance === APPEARANCE.FILLED ? FILLED_TRIGGER_GAP[size] ?? FILLED_TRIGGER_GAP[SIZE$2.MD] : gap;
|
|
11349
|
+
const limit = Math.max(options.availableWidth - MENU_TRIGGER_WIDTH - triggerGap, 0);
|
|
11350
|
+
const headIds = [];
|
|
11351
|
+
let occupied = 0;
|
|
11352
|
+
options.items.forEach((item) => {
|
|
11353
|
+
const nextWidth = occupied + widthOf(item.id, options.widths) + (headIds.length > 0 ? gap : 0);
|
|
11354
|
+
if (nextWidth <= limit || headIds.length === 0) {
|
|
11355
|
+
headIds.push(item.id);
|
|
11356
|
+
occupied = nextWidth;
|
|
11357
|
+
}
|
|
11358
|
+
});
|
|
11359
|
+
const resolvedHeadIds = options.activeId ? moveActiveToHead(ids, headIds, options.widths, limit, gap, options.activeId) : headIds;
|
|
11360
|
+
const headSet = new Set(resolvedHeadIds);
|
|
11361
|
+
return {
|
|
11362
|
+
headIds: ids.filter((id) => headSet.has(id)),
|
|
11363
|
+
menuIds: ids.filter((id) => !headSet.has(id))
|
|
11364
|
+
};
|
|
11365
|
+
};
|
|
11366
|
+
let counter = 0;
|
|
11367
|
+
const _sfc_main$6 = vue.defineComponent({
|
|
11368
|
+
name: "UiTabGroup",
|
|
11369
|
+
inheritAttrs: false,
|
|
11370
|
+
props: {
|
|
11371
|
+
items: {
|
|
11372
|
+
type: Array,
|
|
11373
|
+
default: () => []
|
|
11374
|
+
},
|
|
11375
|
+
activeId: {
|
|
11376
|
+
type: String,
|
|
11377
|
+
default: null
|
|
11378
|
+
},
|
|
11379
|
+
focusableId: {
|
|
11380
|
+
type: String,
|
|
11381
|
+
default: void 0
|
|
11382
|
+
},
|
|
11383
|
+
menuExpanded: {
|
|
11384
|
+
type: Boolean,
|
|
11385
|
+
default: void 0
|
|
11386
|
+
},
|
|
11387
|
+
overflowing: {
|
|
11388
|
+
type: Boolean,
|
|
11389
|
+
default: false
|
|
11390
|
+
},
|
|
11391
|
+
size: {
|
|
11392
|
+
type: String,
|
|
11393
|
+
default: SIZE$2.MD,
|
|
11394
|
+
validator: (size) => Object.values(SIZE$2).includes(size)
|
|
11395
|
+
},
|
|
11396
|
+
appearance: {
|
|
11397
|
+
type: String,
|
|
11398
|
+
default: APPEARANCE.TEXT,
|
|
11399
|
+
validator: (appearance) => Object.values(APPEARANCE).includes(appearance)
|
|
11400
|
+
}
|
|
11401
|
+
},
|
|
11402
|
+
emits: {
|
|
11403
|
+
"layout": (layout) => {
|
|
11404
|
+
return true;
|
|
11405
|
+
},
|
|
11406
|
+
"change": (id) => {
|
|
11407
|
+
return true;
|
|
11408
|
+
},
|
|
11409
|
+
"update:activeId": (id) => {
|
|
11410
|
+
return true;
|
|
11411
|
+
},
|
|
11412
|
+
"update:focusableId": (id) => {
|
|
11413
|
+
return true;
|
|
11414
|
+
},
|
|
11415
|
+
"update:menuExpanded": (expanded) => {
|
|
11416
|
+
return true;
|
|
11417
|
+
}
|
|
11418
|
+
},
|
|
11419
|
+
setup(props, { attrs, emit, slots }) {
|
|
11420
|
+
const groupId = `ui-v1-tab-group-${++counter}`;
|
|
11421
|
+
const root = vue.ref(null);
|
|
11422
|
+
const headView = vue.ref(null);
|
|
11423
|
+
const widths = vue.ref(/* @__PURE__ */ new Map());
|
|
11424
|
+
const availableWidth = vue.ref(0);
|
|
11425
|
+
const localFocusableId = vue.ref(null);
|
|
11426
|
+
const localMenuExpanded = vue.ref(false);
|
|
11427
|
+
const resolvedMenuExpanded = vue.computed(() => {
|
|
11428
|
+
return typeof props.menuExpanded === "undefined" ? localMenuExpanded.value : props.menuExpanded;
|
|
11429
|
+
});
|
|
11430
|
+
let currentLayout = {
|
|
11431
|
+
headIds: [],
|
|
11432
|
+
menuIds: []
|
|
11433
|
+
};
|
|
11434
|
+
let currentResolvedFocusableId = null;
|
|
11435
|
+
let currentTabs = props.items.length ? createTabDefinitions(props.items) : [];
|
|
11436
|
+
let lastEmittedLayoutKey = "";
|
|
11437
|
+
let lastFocusedId = null;
|
|
11438
|
+
let observer = null;
|
|
11439
|
+
const updateMetrics = () => {
|
|
11440
|
+
const metrics = headView.value?.measure();
|
|
11441
|
+
availableWidth.value = metrics?.availableWidth ?? 0;
|
|
11442
|
+
widths.value = metrics?.widths ?? /* @__PURE__ */ new Map();
|
|
11443
|
+
};
|
|
11444
|
+
const setFocusableId = (id) => {
|
|
11445
|
+
if (typeof props.focusableId === "undefined") {
|
|
11446
|
+
localFocusableId.value = id;
|
|
11447
|
+
}
|
|
11448
|
+
emit("update:focusableId", id);
|
|
11449
|
+
};
|
|
11450
|
+
const setMenuExpanded = (expanded) => {
|
|
11451
|
+
if (typeof props.menuExpanded === "undefined") {
|
|
11452
|
+
localMenuExpanded.value = expanded;
|
|
11453
|
+
}
|
|
11454
|
+
emit("update:menuExpanded", expanded);
|
|
11455
|
+
};
|
|
11456
|
+
const resolveFocusableId = (enabledHeadItems) => {
|
|
11457
|
+
const enabledIds = new Set(enabledHeadItems.map((item) => item.id));
|
|
11458
|
+
const candidateFocusableId = typeof props.focusableId === "undefined" ? localFocusableId.value : props.focusableId;
|
|
11459
|
+
if (candidateFocusableId && enabledIds.has(candidateFocusableId)) {
|
|
11460
|
+
return candidateFocusableId;
|
|
11461
|
+
}
|
|
11462
|
+
const resolvedActiveId = resolveActiveId(currentTabs, props.activeId);
|
|
11463
|
+
if (resolvedActiveId && enabledIds.has(resolvedActiveId)) {
|
|
11464
|
+
return resolvedActiveId;
|
|
11465
|
+
}
|
|
11466
|
+
return enabledHeadItems[0]?.id ?? null;
|
|
11467
|
+
};
|
|
11468
|
+
const moveFocus = (intent) => {
|
|
11469
|
+
const headIds = new Set(currentLayout.headIds);
|
|
11470
|
+
const enabledHeadItems = currentTabs.filter((item) => {
|
|
11471
|
+
return headIds.has(item.id) && !item.disabled;
|
|
11472
|
+
});
|
|
11473
|
+
if (!enabledHeadItems.length) {
|
|
11474
|
+
setFocusableId(null);
|
|
11475
|
+
return;
|
|
11476
|
+
}
|
|
11477
|
+
let target = enabledHeadItems[0];
|
|
11478
|
+
if (intent.direction === "first") {
|
|
11479
|
+
target = enabledHeadItems[0];
|
|
11480
|
+
} else if (intent.direction === "last") {
|
|
11481
|
+
target = enabledHeadItems.at(-1) ?? enabledHeadItems[0];
|
|
11482
|
+
} else {
|
|
11483
|
+
const currentIndex = enabledHeadItems.findIndex((tab) => tab.id === intent.id);
|
|
11484
|
+
const fallbackIndex = currentResolvedFocusableId ? enabledHeadItems.findIndex((tab) => tab.id === currentResolvedFocusableId) : -1;
|
|
11485
|
+
const baseIndex = currentIndex === -1 ? Math.max(fallbackIndex, 0) : currentIndex;
|
|
11486
|
+
const offset2 = intent.direction === "next" ? 1 : -1;
|
|
11487
|
+
const nextIndex = (baseIndex + offset2 + enabledHeadItems.length) % enabledHeadItems.length;
|
|
11488
|
+
target = enabledHeadItems[nextIndex] ?? enabledHeadItems[0];
|
|
11489
|
+
}
|
|
11490
|
+
if (!target) {
|
|
11491
|
+
return;
|
|
11492
|
+
}
|
|
11493
|
+
setFocusableId(target.id);
|
|
11494
|
+
emit("change", target.id);
|
|
11495
|
+
emit("update:activeId", target.id);
|
|
11496
|
+
};
|
|
11497
|
+
const selectTab = (id) => {
|
|
11498
|
+
const tab = currentTabs.find((item) => item.id === id);
|
|
11499
|
+
if (!tab || tab.disabled) {
|
|
11500
|
+
return;
|
|
11501
|
+
}
|
|
11502
|
+
setFocusableId(id);
|
|
11503
|
+
setMenuExpanded(false);
|
|
11504
|
+
emit("change", id);
|
|
11505
|
+
emit("update:activeId", id);
|
|
11506
|
+
};
|
|
11507
|
+
const shouldMoveDomFocus = () => {
|
|
11508
|
+
const activeElement = document.activeElement;
|
|
11509
|
+
return Boolean(activeElement && root.value?.contains(activeElement));
|
|
11510
|
+
};
|
|
11511
|
+
const syncAfterRender = () => {
|
|
11512
|
+
const layoutKey = `${currentLayout.headIds.join("|")}::${currentLayout.menuIds.join("|")}`;
|
|
11513
|
+
if (layoutKey !== lastEmittedLayoutKey) {
|
|
11514
|
+
lastEmittedLayoutKey = layoutKey;
|
|
11515
|
+
emit("layout", currentLayout);
|
|
11516
|
+
}
|
|
11517
|
+
if (!currentResolvedFocusableId || currentResolvedFocusableId === lastFocusedId || !shouldMoveDomFocus()) {
|
|
11518
|
+
return;
|
|
11519
|
+
}
|
|
11520
|
+
lastFocusedId = currentResolvedFocusableId;
|
|
11521
|
+
void vue.nextTick(() => {
|
|
11522
|
+
headView.value?.focusTab(currentResolvedFocusableId);
|
|
11523
|
+
});
|
|
11524
|
+
};
|
|
11525
|
+
vue.onMounted(() => {
|
|
11526
|
+
updateMetrics();
|
|
11527
|
+
syncAfterRender();
|
|
11528
|
+
if (typeof window !== "undefined" && typeof window.ResizeObserver === "function" && root.value) {
|
|
11529
|
+
observer = new window.ResizeObserver(() => {
|
|
11530
|
+
requestAnimationFrame(updateMetrics);
|
|
11531
|
+
});
|
|
11532
|
+
observer.observe(root.value);
|
|
11533
|
+
}
|
|
11534
|
+
});
|
|
11535
|
+
vue.onUpdated(syncAfterRender);
|
|
11536
|
+
vue.onBeforeUnmount(() => {
|
|
11537
|
+
observer?.disconnect();
|
|
11538
|
+
observer = null;
|
|
11539
|
+
});
|
|
11540
|
+
vue.watch(() => props.items, () => {
|
|
11541
|
+
void vue.nextTick(updateMetrics);
|
|
11542
|
+
}, { deep: true });
|
|
11543
|
+
vue.watch(() => [props.appearance, props.size], () => {
|
|
11544
|
+
void vue.nextTick(updateMetrics);
|
|
11545
|
+
});
|
|
11546
|
+
return () => {
|
|
11547
|
+
const tabs = props.items.length ? createTabDefinitions(props.items) : collectTabs(slots.default?.() ?? []);
|
|
11548
|
+
const resolvedActiveId = resolveActiveId(tabs, props.activeId);
|
|
11549
|
+
const layout = resolveTabLayout({
|
|
11550
|
+
items: tabs,
|
|
11551
|
+
widths: widths.value,
|
|
11552
|
+
availableWidth: availableWidth.value,
|
|
11553
|
+
size: props.size ?? SIZE$2.MD,
|
|
11554
|
+
appearance: props.appearance ?? APPEARANCE.TEXT,
|
|
11555
|
+
overflowing: props.overflowing,
|
|
11556
|
+
activeId: resolvedActiveId
|
|
11557
|
+
});
|
|
11558
|
+
const headIds = new Set(layout.headIds);
|
|
11559
|
+
const menuIds = new Set(layout.menuIds);
|
|
11560
|
+
const headItems = tabs.filter((item) => headIds.has(item.id));
|
|
11561
|
+
const menuItems = tabs.filter((item) => menuIds.has(item.id));
|
|
11562
|
+
const enabledHeadItems = headItems.filter((item) => !item.disabled);
|
|
11563
|
+
const activeItem = resolvedActiveId ? tabs.find((item) => item.id === resolvedActiveId) ?? null : null;
|
|
11564
|
+
currentTabs = tabs;
|
|
11565
|
+
currentLayout = layout;
|
|
11566
|
+
currentResolvedFocusableId = resolveFocusableId(enabledHeadItems);
|
|
11567
|
+
return vue.h("div", {
|
|
11568
|
+
...attrs,
|
|
11569
|
+
ref: root,
|
|
11570
|
+
class: [attrs.class, {
|
|
11571
|
+
"ui-v1-tab-group": true,
|
|
11572
|
+
[`ui-v1-tab-group_${props.appearance}`]: true,
|
|
11573
|
+
[`ui-v1-tab-group_${props.size}`]: true
|
|
11574
|
+
}]
|
|
11575
|
+
}, [
|
|
11576
|
+
vue.h(_sfc_main$s, null, {
|
|
11577
|
+
default: () => [
|
|
11578
|
+
vue.h(_sfc_main$8, {
|
|
11579
|
+
ref: headView,
|
|
11580
|
+
activeId: resolvedActiveId,
|
|
11581
|
+
appearance: props.appearance,
|
|
11582
|
+
focusableId: currentResolvedFocusableId,
|
|
11583
|
+
groupId,
|
|
11584
|
+
hasMenuItems: menuItems.length > 0,
|
|
11585
|
+
headItems,
|
|
11586
|
+
items: tabs,
|
|
11587
|
+
menuExpanded: resolvedMenuExpanded.value,
|
|
11588
|
+
size: props.size,
|
|
11589
|
+
onFocusTab: (id) => {
|
|
11590
|
+
setFocusableId(id);
|
|
11591
|
+
},
|
|
11592
|
+
onMoveFocus: (intent) => {
|
|
11593
|
+
moveFocus(intent);
|
|
11594
|
+
},
|
|
11595
|
+
onSelect: (id) => {
|
|
11596
|
+
selectTab(id);
|
|
11597
|
+
}
|
|
11598
|
+
}),
|
|
11599
|
+
vue.h(_sfc_main$7, {
|
|
11600
|
+
activeId: resolvedActiveId,
|
|
11601
|
+
items: menuItems,
|
|
11602
|
+
menuExpanded: resolvedMenuExpanded.value,
|
|
11603
|
+
size: props.size,
|
|
11604
|
+
onSelect: (id) => {
|
|
11605
|
+
selectTab(id);
|
|
11606
|
+
},
|
|
11607
|
+
"onUpdate:menuExpanded": (expanded) => {
|
|
11608
|
+
setMenuExpanded(expanded);
|
|
11609
|
+
}
|
|
11610
|
+
})
|
|
11611
|
+
]
|
|
11612
|
+
}),
|
|
11613
|
+
activeItem?.contentSlot ? vue.h("div", {
|
|
11614
|
+
id: `${groupId}-panel-${activeItem.id}`,
|
|
11615
|
+
class: "ui-v1-tab-group__panel",
|
|
11616
|
+
role: "tabpanel",
|
|
11617
|
+
"aria-labelledby": `${groupId}-tab-${activeItem.id}`
|
|
11618
|
+
}, activeItem.contentSlot()) : null
|
|
11619
|
+
]);
|
|
11620
|
+
};
|
|
11621
|
+
}
|
|
11622
|
+
});
|
|
10327
11623
|
const _hoisted_1$4 = {
|
|
10328
11624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10329
11625
|
viewBox: "0 0 24 24"
|
|
@@ -10935,7 +12231,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10935
12231
|
},
|
|
10936
12232
|
role: "combobox"
|
|
10937
12233
|
}, _ctx.$attrs, { onMousedown: onRootMouseDown }), [
|
|
10938
|
-
vue.createVNode(_sfc_main$
|
|
12234
|
+
vue.createVNode(_sfc_main$J, vue.mergeProps({
|
|
10939
12235
|
id: inputId.value,
|
|
10940
12236
|
ref_key: "textbox",
|
|
10941
12237
|
ref: textbox,
|
|
@@ -10962,7 +12258,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10962
12258
|
]),
|
|
10963
12259
|
_: 3
|
|
10964
12260
|
}, 16, ["id", "value", "placeholder", "clearable", "disabled", "readonly"]),
|
|
10965
|
-
vue.createVNode(_sfc_main$
|
|
12261
|
+
vue.createVNode(_sfc_main$N, {
|
|
10966
12262
|
id: `${inputId.value}-listbox`,
|
|
10967
12263
|
visible: expanded.value,
|
|
10968
12264
|
target: rootTarget.value,
|
|
@@ -10977,14 +12273,14 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10977
12273
|
onAttached: onPopperAttached
|
|
10978
12274
|
}, {
|
|
10979
12275
|
default: vue.withCtx(() => [
|
|
10980
|
-
vue.createVNode(_sfc_main$
|
|
12276
|
+
vue.createVNode(_sfc_main$H, {
|
|
10981
12277
|
ref_key: "scrollable",
|
|
10982
12278
|
ref: scrollable,
|
|
10983
12279
|
class: "ui-v1-time-picker__list"
|
|
10984
12280
|
}, {
|
|
10985
12281
|
default: vue.withCtx(() => [
|
|
10986
12282
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(variants.value, (time2, index) => {
|
|
10987
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
12283
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$I, {
|
|
10988
12284
|
id: optionId(index),
|
|
10989
12285
|
key: `${time2}-${index}`,
|
|
10990
12286
|
ref_for: true,
|
|
@@ -11091,12 +12387,12 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11091
12387
|
const toolbarSize = useToolbarSize();
|
|
11092
12388
|
const size = vue.computed(() => {
|
|
11093
12389
|
if (toolbarSize.value === SIZE.SM) {
|
|
11094
|
-
return SIZE$
|
|
12390
|
+
return SIZE$9.XS;
|
|
11095
12391
|
}
|
|
11096
|
-
return SIZE$
|
|
12392
|
+
return SIZE$9.SM;
|
|
11097
12393
|
});
|
|
11098
12394
|
return (_ctx, _cache) => {
|
|
11099
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
12395
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$W, vue.mergeProps({
|
|
11100
12396
|
ref_key: "root",
|
|
11101
12397
|
ref: root,
|
|
11102
12398
|
href: __props.href,
|
|
@@ -11143,8 +12439,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11143
12439
|
/** Тип ссылок */
|
|
11144
12440
|
appearance: {
|
|
11145
12441
|
type: String,
|
|
11146
|
-
validator: (appearance) => Object.values(APPEARANCE$
|
|
11147
|
-
default: APPEARANCE$
|
|
12442
|
+
validator: (appearance) => Object.values(APPEARANCE$3).includes(appearance),
|
|
12443
|
+
default: APPEARANCE$3.DEFAULT
|
|
11148
12444
|
},
|
|
11149
12445
|
/** Инвертированный цвет ссылок для тёмного фона */
|
|
11150
12446
|
light: {
|
|
@@ -11169,7 +12465,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11169
12465
|
},
|
|
11170
12466
|
setup(__props) {
|
|
11171
12467
|
return (_ctx, _cache) => {
|
|
11172
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
12468
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$C, vue.mergeProps({
|
|
11173
12469
|
href: __props.href,
|
|
11174
12470
|
external: __props.external,
|
|
11175
12471
|
appearance: __props.appearance,
|
|
@@ -11342,7 +12638,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
11342
12638
|
});
|
|
11343
12639
|
return (_ctx, _cache) => {
|
|
11344
12640
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
11345
|
-
!ready.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
12641
|
+
!ready.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, { key: 0 })) : vue.createCommentVNode("", true),
|
|
11346
12642
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("iframe", {
|
|
11347
12643
|
ref_key: "iframe",
|
|
11348
12644
|
ref: iframe,
|
|
@@ -11357,56 +12653,63 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
11357
12653
|
});
|
|
11358
12654
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11359
12655
|
__proto__: null,
|
|
11360
|
-
UiAddButton: _sfc_main$
|
|
11361
|
-
UiAlert: _sfc_main
|
|
11362
|
-
UiAvatar: _sfc_main$
|
|
11363
|
-
UiAvatarList: _sfc_main$
|
|
11364
|
-
UiButton: _sfc_main$
|
|
11365
|
-
UiCalendar: _sfc_main$
|
|
11366
|
-
UiCheckbox: _sfc_main$
|
|
11367
|
-
UiCollapse: _sfc_main$
|
|
11368
|
-
UiCollapseBox: _sfc_main$
|
|
11369
|
-
UiCollapseGroup: _sfc_main$
|
|
11370
|
-
UiCopyButton: _sfc_main$
|
|
11371
|
-
UiDate: _sfc_main$
|
|
11372
|
-
UiDatePicker: _sfc_main$
|
|
11373
|
-
UiError: _sfc_main$
|
|
11374
|
-
UiImage: _sfc_main$
|
|
11375
|
-
UiInfobox: _sfc_main$
|
|
11376
|
-
UiLink: _sfc_main$
|
|
11377
|
-
UiLoader: _sfc_main$
|
|
11378
|
-
UiMenuItem: _sfc_main$
|
|
12656
|
+
UiAddButton: _sfc_main$_,
|
|
12657
|
+
UiAlert: _sfc_main$$,
|
|
12658
|
+
UiAvatar: _sfc_main$Y,
|
|
12659
|
+
UiAvatarList: _sfc_main$X,
|
|
12660
|
+
UiButton: _sfc_main$W,
|
|
12661
|
+
UiCalendar: _sfc_main$S,
|
|
12662
|
+
UiCheckbox: _sfc_main$R,
|
|
12663
|
+
UiCollapse: _sfc_main$Q,
|
|
12664
|
+
UiCollapseBox: _sfc_main$P,
|
|
12665
|
+
UiCollapseGroup: _sfc_main$O,
|
|
12666
|
+
UiCopyButton: _sfc_main$L,
|
|
12667
|
+
UiDate: _sfc_main$K,
|
|
12668
|
+
UiDatePicker: _sfc_main$F,
|
|
12669
|
+
UiError: _sfc_main$E,
|
|
12670
|
+
UiImage: _sfc_main$Z,
|
|
12671
|
+
UiInfobox: _sfc_main$D,
|
|
12672
|
+
UiLink: _sfc_main$C,
|
|
12673
|
+
UiLoader: _sfc_main$B,
|
|
12674
|
+
UiMenuItem: _sfc_main$I,
|
|
11379
12675
|
UiMenuItemGroup,
|
|
11380
|
-
UiModalSidebar: _sfc_main$
|
|
11381
|
-
UiModalWindow: _sfc_main$
|
|
11382
|
-
UiModalWindowSurface: _sfc_main$
|
|
11383
|
-
UiNumberStepper: _sfc_main$
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
12676
|
+
UiModalSidebar: _sfc_main$z,
|
|
12677
|
+
UiModalWindow: _sfc_main$x,
|
|
12678
|
+
UiModalWindowSurface: _sfc_main$y,
|
|
12679
|
+
UiNumberStepper: _sfc_main$w,
|
|
12680
|
+
UiPageHeader: _sfc_main$t,
|
|
12681
|
+
UiPageHeaderLayout: _sfc_main$u,
|
|
12682
|
+
UiPageHeaderTitle: _sfc_main$v,
|
|
12683
|
+
UiPopper: _sfc_main$N,
|
|
12684
|
+
UiPopperConnector: _sfc_main$s,
|
|
12685
|
+
UiPopperTarget: _sfc_main$r,
|
|
12686
|
+
UiRadio: _sfc_main$q,
|
|
12687
|
+
UiRadioSwitchOptionShell: _sfc_main$p,
|
|
12688
|
+
UiRadioSwitchRoot: _sfc_main$o,
|
|
12689
|
+
UiScrollBox: _sfc_main$H,
|
|
12690
|
+
UiSelectPopper: _sfc_main$m,
|
|
12691
|
+
UiSelectTrigger: _sfc_main$l,
|
|
12692
|
+
UiSlider: _sfc_main$n,
|
|
12693
|
+
UiSwitch: _sfc_main$k,
|
|
12694
|
+
UiTab: _sfc_main$a,
|
|
12695
|
+
UiTabGroup: _sfc_main$6,
|
|
12696
|
+
UiTableBodyCell: _sfc_main$j,
|
|
12697
|
+
UiTableCol: _sfc_main$i,
|
|
12698
|
+
UiTableFooterButton: _sfc_main$h,
|
|
12699
|
+
UiTableFooterSection: _sfc_main$g,
|
|
12700
|
+
UiTableHeadCell: _sfc_main$f,
|
|
12701
|
+
UiTableRoot: _sfc_main$e,
|
|
12702
|
+
UiTableRow: _sfc_main$d,
|
|
12703
|
+
UiTableSection: _sfc_main$c,
|
|
12704
|
+
UiTableSorter: _sfc_main$b,
|
|
11402
12705
|
UiTag: _sfc_main$5,
|
|
11403
|
-
UiTextbox: _sfc_main$
|
|
12706
|
+
UiTextbox: _sfc_main$J,
|
|
11404
12707
|
UiTimePicker: _sfc_main$4,
|
|
11405
12708
|
UiToolbar: _sfc_main$3,
|
|
11406
12709
|
UiToolbarButton: _sfc_main$2,
|
|
11407
12710
|
UiToolbarLink: _sfc_main$1,
|
|
11408
|
-
UiTooltip: _sfc_main$
|
|
11409
|
-
UiTransition: _sfc_main$
|
|
12711
|
+
UiTooltip: _sfc_main$M,
|
|
12712
|
+
UiTransition: _sfc_main$10,
|
|
11410
12713
|
UiYandexMap: _sfc_main
|
|
11411
12714
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11412
12715
|
const createProvider = () => host.createProvider(components);
|
|
@@ -11416,56 +12719,63 @@ exports.DIRECTION = DIRECTION;
|
|
|
11416
12719
|
exports.I18nPlugin = plugin$1;
|
|
11417
12720
|
exports.ImageWorkersKey = ImageWorkersKey;
|
|
11418
12721
|
exports.ModalPlugin = plugin;
|
|
11419
|
-
exports.UiAddButton = _sfc_main$
|
|
11420
|
-
exports.UiAlert = _sfc_main
|
|
11421
|
-
exports.UiAvatar = _sfc_main$
|
|
11422
|
-
exports.UiAvatarList = _sfc_main$
|
|
11423
|
-
exports.UiButton = _sfc_main$
|
|
11424
|
-
exports.UiCalendar = _sfc_main$
|
|
11425
|
-
exports.UiCheckbox = _sfc_main$
|
|
11426
|
-
exports.UiCollapse = _sfc_main$
|
|
11427
|
-
exports.UiCollapseBox = _sfc_main$
|
|
11428
|
-
exports.UiCollapseGroup = _sfc_main$
|
|
11429
|
-
exports.UiCopyButton = _sfc_main$
|
|
11430
|
-
exports.UiDate = _sfc_main$
|
|
11431
|
-
exports.UiDatePicker = _sfc_main$
|
|
11432
|
-
exports.UiError = _sfc_main$
|
|
11433
|
-
exports.UiImage = _sfc_main$
|
|
11434
|
-
exports.UiInfobox = _sfc_main$
|
|
11435
|
-
exports.UiLink = _sfc_main$
|
|
11436
|
-
exports.UiLoader = _sfc_main$
|
|
11437
|
-
exports.UiMenuItem = _sfc_main$
|
|
12722
|
+
exports.UiAddButton = _sfc_main$_;
|
|
12723
|
+
exports.UiAlert = _sfc_main$$;
|
|
12724
|
+
exports.UiAvatar = _sfc_main$Y;
|
|
12725
|
+
exports.UiAvatarList = _sfc_main$X;
|
|
12726
|
+
exports.UiButton = _sfc_main$W;
|
|
12727
|
+
exports.UiCalendar = _sfc_main$S;
|
|
12728
|
+
exports.UiCheckbox = _sfc_main$R;
|
|
12729
|
+
exports.UiCollapse = _sfc_main$Q;
|
|
12730
|
+
exports.UiCollapseBox = _sfc_main$P;
|
|
12731
|
+
exports.UiCollapseGroup = _sfc_main$O;
|
|
12732
|
+
exports.UiCopyButton = _sfc_main$L;
|
|
12733
|
+
exports.UiDate = _sfc_main$K;
|
|
12734
|
+
exports.UiDatePicker = _sfc_main$F;
|
|
12735
|
+
exports.UiError = _sfc_main$E;
|
|
12736
|
+
exports.UiImage = _sfc_main$Z;
|
|
12737
|
+
exports.UiInfobox = _sfc_main$D;
|
|
12738
|
+
exports.UiLink = _sfc_main$C;
|
|
12739
|
+
exports.UiLoader = _sfc_main$B;
|
|
12740
|
+
exports.UiMenuItem = _sfc_main$I;
|
|
11438
12741
|
exports.UiMenuItemGroup = UiMenuItemGroup;
|
|
11439
|
-
exports.UiModalSidebar = _sfc_main$
|
|
11440
|
-
exports.UiModalWindow = _sfc_main$
|
|
11441
|
-
exports.UiModalWindowSurface = _sfc_main$
|
|
11442
|
-
exports.UiNumberStepper = _sfc_main$
|
|
11443
|
-
exports.
|
|
11444
|
-
exports.
|
|
11445
|
-
exports.
|
|
11446
|
-
exports.
|
|
11447
|
-
exports.
|
|
11448
|
-
exports.
|
|
11449
|
-
exports.
|
|
11450
|
-
exports.
|
|
11451
|
-
exports.
|
|
11452
|
-
exports.
|
|
11453
|
-
exports.
|
|
11454
|
-
exports.
|
|
11455
|
-
exports.
|
|
11456
|
-
exports.
|
|
11457
|
-
exports.
|
|
11458
|
-
exports.
|
|
11459
|
-
exports.
|
|
11460
|
-
exports.
|
|
12742
|
+
exports.UiModalSidebar = _sfc_main$z;
|
|
12743
|
+
exports.UiModalWindow = _sfc_main$x;
|
|
12744
|
+
exports.UiModalWindowSurface = _sfc_main$y;
|
|
12745
|
+
exports.UiNumberStepper = _sfc_main$w;
|
|
12746
|
+
exports.UiPageHeader = _sfc_main$t;
|
|
12747
|
+
exports.UiPageHeaderLayout = _sfc_main$u;
|
|
12748
|
+
exports.UiPageHeaderTitle = _sfc_main$v;
|
|
12749
|
+
exports.UiPopper = _sfc_main$N;
|
|
12750
|
+
exports.UiPopperConnector = _sfc_main$s;
|
|
12751
|
+
exports.UiPopperTarget = _sfc_main$r;
|
|
12752
|
+
exports.UiRadio = _sfc_main$q;
|
|
12753
|
+
exports.UiRadioSwitchOptionShell = _sfc_main$p;
|
|
12754
|
+
exports.UiRadioSwitchRoot = _sfc_main$o;
|
|
12755
|
+
exports.UiScrollBox = _sfc_main$H;
|
|
12756
|
+
exports.UiSelectPopper = _sfc_main$m;
|
|
12757
|
+
exports.UiSelectTrigger = _sfc_main$l;
|
|
12758
|
+
exports.UiSlider = _sfc_main$n;
|
|
12759
|
+
exports.UiSwitch = _sfc_main$k;
|
|
12760
|
+
exports.UiTab = _sfc_main$a;
|
|
12761
|
+
exports.UiTabGroup = _sfc_main$6;
|
|
12762
|
+
exports.UiTableBodyCell = _sfc_main$j;
|
|
12763
|
+
exports.UiTableCol = _sfc_main$i;
|
|
12764
|
+
exports.UiTableFooterButton = _sfc_main$h;
|
|
12765
|
+
exports.UiTableFooterSection = _sfc_main$g;
|
|
12766
|
+
exports.UiTableHeadCell = _sfc_main$f;
|
|
12767
|
+
exports.UiTableRoot = _sfc_main$e;
|
|
12768
|
+
exports.UiTableRow = _sfc_main$d;
|
|
12769
|
+
exports.UiTableSection = _sfc_main$c;
|
|
12770
|
+
exports.UiTableSorter = _sfc_main$b;
|
|
11461
12771
|
exports.UiTag = _sfc_main$5;
|
|
11462
|
-
exports.UiTextbox = _sfc_main$
|
|
12772
|
+
exports.UiTextbox = _sfc_main$J;
|
|
11463
12773
|
exports.UiTimePicker = _sfc_main$4;
|
|
11464
12774
|
exports.UiToolbar = _sfc_main$3;
|
|
11465
12775
|
exports.UiToolbarButton = _sfc_main$2;
|
|
11466
12776
|
exports.UiToolbarLink = _sfc_main$1;
|
|
11467
|
-
exports.UiTooltip = _sfc_main$
|
|
11468
|
-
exports.UiTransition = _sfc_main$
|
|
12777
|
+
exports.UiTooltip = _sfc_main$M;
|
|
12778
|
+
exports.UiTransition = _sfc_main$10;
|
|
11469
12779
|
exports.UiYandexMap = _sfc_main;
|
|
11470
12780
|
exports.VALIGN = VALIGN;
|
|
11471
12781
|
exports.VueI18n = VueI18n;
|