@topvisor/ui 0.9.2 → 0.9.4
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/.chunks/datepicker-78c2af5a.es.js +275 -0
- package/.chunks/datepicker-78c2af5a.es.js.map +1 -0
- package/.chunks/datepicker-cc0011e1.amd.js +234 -0
- package/.chunks/datepicker-cc0011e1.amd.js.map +1 -0
- package/.chunks/forms-9516aa6c.es.js +1000 -0
- package/.chunks/forms-9516aa6c.es.js.map +1 -0
- package/.chunks/forms-9972aba2.amd.js +3 -0
- package/.chunks/forms-9972aba2.amd.js.map +1 -0
- package/.chunks/{popup-b2fe3094.es.js → popup-70a8c892.es.js} +423 -422
- package/.chunks/popup-70a8c892.es.js.map +1 -0
- package/.chunks/popup-d96418da.amd.js +378 -0
- package/.chunks/popup-d96418da.amd.js.map +1 -0
- package/README.md +80 -80
- package/assets/forms.css +1 -1
- package/assets/tabsView.css +1 -1
- package/core/core.amd.js +1 -1
- package/core/core.js +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +83 -84
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +2945 -2945
- package/icomoon/fonts/Topvisor-2.svg +232 -232
- package/icomoon/style.css +647 -647
- package/package.json +22 -19
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +52 -52
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +3 -2
- package/popup/worker.js.map +1 -1
- package/require/css.amd.js +12 -0
- package/src/components/forms/button/button.stories.d.ts +97 -140
- package/src/components/forms/checkbox/checkbox.stories.d.ts +61 -100
- package/src/components/forms/controlLabel/controlLabel.stories.d.ts +20 -53
- package/src/components/forms/input/input.stories.d.ts +101 -145
- package/src/components/forms/inputRange/inputRange.stories.d.ts +117 -221
- package/src/components/forms/radio/radio.stories.d.ts +57 -95
- package/src/components/forms/switcher/switcher.stories.d.ts +55 -93
- package/src/components/formsExt/editInput/editInput.stories.d.ts +34 -69
- package/src/components/popup/popup/popup.stories.d.ts +242 -363
- package/src/components/tabs/tabs/tabs.stories.d.ts +195 -370
- package/src/components/tabsView/tabsView/_MenuItem.stories.d.ts +110 -216
- package/src/components/tabsView/tabsView/_MenuTitle.stories.d.ts +76 -176
- package/src/components/tabsView/tabsView/tabsView.stories.d.ts +156 -327
- package/src/core/core/page.d.ts +0 -7
- package/src/core/utils/css.d.ts +5 -0
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.js +37 -38
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +94 -90
- package/tabsView/tabsView.js.map +1 -1
- package/utils/css.amd.js +2 -0
- package/utils/css.amd.js.map +1 -0
- package/utils/css.d.ts +1 -0
- package/utils/css.js +35 -0
- package/utils/css.js.map +1 -0
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js +61 -3
- package/utils/dom.js.map +1 -1
- package/.chunks/datepicker-32bc8bd9.es.js +0 -275
- package/.chunks/datepicker-32bc8bd9.es.js.map +0 -1
- package/.chunks/datepicker-8a42d8a6.amd.js +0 -234
- package/.chunks/datepicker-8a42d8a6.amd.js.map +0 -1
- package/.chunks/forms-30d68077.amd.js +0 -3
- package/.chunks/forms-30d68077.amd.js.map +0 -1
- package/.chunks/forms-64632f73.es.js +0 -1091
- package/.chunks/forms-64632f73.es.js.map +0 -1
- package/.chunks/popup-14ca85cf.amd.js +0 -378
- package/.chunks/popup-14ca85cf.amd.js.map +0 -1
- package/.chunks/popup-b2fe3094.es.js.map +0 -1
package/formsExt/formsExt.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const U = {
|
|
1
|
+
import { insertToPage as I } from "../utils/css.js";
|
|
2
|
+
import { defineComponent as G, ref as f, watch as K, toRef as k, computed as C, openBlock as n, createElementBlock as p, normalizeClass as v, toDisplayString as y, createCommentVNode as b, createElementVNode as h, createVNode as A, withKeys as V, withModifiers as _, createBlock as E, withCtx as T, createTextVNode as $, mergeProps as w, renderSlot as H, Fragment as z, renderList as N, withDirectives as P, vModelRadio as S } from "vue";
|
|
3
|
+
import { T as U, B, _ as g, I as R } from "../.chunks/forms-9516aa6c.es.js";
|
|
4
|
+
const M = ["../assets/formsExt.css"].map((u) => import.meta.resolve(u));
|
|
5
|
+
await I(M);
|
|
6
|
+
const X = {
|
|
8
7
|
key: 0,
|
|
9
8
|
class: "top-editArea_title"
|
|
10
|
-
},
|
|
9
|
+
}, D = { class: "top-editArea_footer" }, F = /* @__PURE__ */ G({
|
|
11
10
|
__name: "editArea",
|
|
12
11
|
props: {
|
|
13
12
|
modelValue: {},
|
|
@@ -26,33 +25,33 @@ const U = {
|
|
|
26
25
|
hint: {}
|
|
27
26
|
},
|
|
28
27
|
emits: ["update:modelValue", "cancel"],
|
|
29
|
-
setup(u, { emit:
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
setup(u, { emit: m }) {
|
|
29
|
+
const l = u, r = m, s = f(""), a = f(l.modelValue);
|
|
30
|
+
K(k(l, "modelValue"), () => {
|
|
31
|
+
a.value = l.modelValue;
|
|
33
32
|
});
|
|
34
|
-
const o = C(() =>
|
|
33
|
+
const o = C(() => a.value !== l.modelValue), d = (e) => {
|
|
35
34
|
r("update:modelValue", e);
|
|
36
|
-
},
|
|
37
|
-
r("cancel"),
|
|
35
|
+
}, t = () => {
|
|
36
|
+
r("cancel"), a.value = l.modelValue;
|
|
38
37
|
};
|
|
39
|
-
return (e, i) => (n(),
|
|
38
|
+
return (e, i) => (n(), p("div", {
|
|
40
39
|
class: v({
|
|
41
40
|
"top-editArea": !0,
|
|
42
41
|
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
43
42
|
})
|
|
44
43
|
}, [
|
|
45
|
-
e.title ? (n(),
|
|
44
|
+
e.title ? (n(), p("div", X, y(e.title), 1)) : b("", !0),
|
|
46
45
|
h("div", {
|
|
47
46
|
class: v({
|
|
48
47
|
"top-editArea_form": !0,
|
|
49
48
|
"top-error": e.isError,
|
|
50
|
-
"top-focus":
|
|
49
|
+
"top-focus": s.value == "focus"
|
|
51
50
|
})
|
|
52
51
|
}, [
|
|
53
|
-
A(
|
|
54
|
-
modelValue:
|
|
55
|
-
"onUpdate:modelValue": i[0] || (i[0] = (c) =>
|
|
52
|
+
A(U, {
|
|
53
|
+
modelValue: a.value,
|
|
54
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => a.value = c),
|
|
56
55
|
name: e.name,
|
|
57
56
|
placeholder: e.placeholder,
|
|
58
57
|
rows: e.rows,
|
|
@@ -63,33 +62,33 @@ const U = {
|
|
|
63
62
|
isError: e.isError,
|
|
64
63
|
hint: e.hint,
|
|
65
64
|
class: "top-editArea_element",
|
|
66
|
-
onFocus: i[1] || (i[1] = (c) =>
|
|
67
|
-
onBlur: i[2] || (i[2] = (c) =>
|
|
65
|
+
onFocus: i[1] || (i[1] = (c) => s.value = "focus"),
|
|
66
|
+
onBlur: i[2] || (i[2] = (c) => s.value = ""),
|
|
68
67
|
onKeyup: [
|
|
69
|
-
V(
|
|
70
|
-
i[3] || (i[3] = V(_((c) =>
|
|
68
|
+
V(t, ["esc"]),
|
|
69
|
+
i[3] || (i[3] = V(_((c) => d(a.value), ["ctrl"]), ["enter"]))
|
|
71
70
|
]
|
|
72
|
-
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"
|
|
73
|
-
h("div",
|
|
71
|
+
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
72
|
+
h("div", D, [
|
|
74
73
|
o.value && (!e.attachToKeyboard || e.modelValue) ? (n(), E(B, {
|
|
75
74
|
key: 0,
|
|
76
75
|
class: "top-editArea_button",
|
|
77
76
|
color: "theme",
|
|
78
77
|
icon: e.attachToKeyboard ? "" : "",
|
|
79
|
-
onClick:
|
|
78
|
+
onClick: t
|
|
80
79
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
|
|
80
|
+
default: T(() => [
|
|
81
|
+
$(y(e.attachToKeyboard ? "" : e.cancelText), 1)
|
|
83
82
|
]),
|
|
84
83
|
_: 1
|
|
85
84
|
}, 8, ["icon"])) : b("", !0),
|
|
86
85
|
A(B, {
|
|
87
86
|
class: "top-editArea_button",
|
|
88
87
|
icon: e.attachToKeyboard ? "" : "",
|
|
89
|
-
onClick: i[4] || (i[4] = (c) =>
|
|
88
|
+
onClick: i[4] || (i[4] = (c) => d(a.value))
|
|
90
89
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
|
|
90
|
+
default: T(() => [
|
|
91
|
+
$(y(e.attachToKeyboard ? "" : e.submitText), 1)
|
|
93
92
|
]),
|
|
94
93
|
_: 1
|
|
95
94
|
}, 8, ["icon"])
|
|
@@ -97,7 +96,7 @@ const U = {
|
|
|
97
96
|
], 2)
|
|
98
97
|
], 2));
|
|
99
98
|
}
|
|
100
|
-
}),
|
|
99
|
+
}), L = {
|
|
101
100
|
"top-editArea": "top-editArea",
|
|
102
101
|
"top-editArea_title": "top-editArea_title",
|
|
103
102
|
"top-editArea_form": "top-editArea_form",
|
|
@@ -106,9 +105,9 @@ const U = {
|
|
|
106
105
|
"top-textarea_textarea": "top-textarea_textarea",
|
|
107
106
|
"top-editArea_footer": "top-editArea_footer",
|
|
108
107
|
"top-editArea-attachedToKeyboard": "top-editArea-attachedToKeyboard"
|
|
109
|
-
},
|
|
110
|
-
$style:
|
|
111
|
-
},
|
|
108
|
+
}, j = {
|
|
109
|
+
$style: L
|
|
110
|
+
}, re = /* @__PURE__ */ g(F, [["__cssModules", j]]), q = { class: "top-editInput" }, J = /* @__PURE__ */ G({
|
|
112
111
|
__name: "editInput",
|
|
113
112
|
props: {
|
|
114
113
|
modelValue: {},
|
|
@@ -116,42 +115,42 @@ const U = {
|
|
|
116
115
|
button: {}
|
|
117
116
|
},
|
|
118
117
|
emits: ["update:modelValue"],
|
|
119
|
-
setup(u, { emit:
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
r.value =
|
|
118
|
+
setup(u, { emit: m }) {
|
|
119
|
+
const l = u, r = f(l.modelValue);
|
|
120
|
+
K(k(l.modelValue), () => {
|
|
121
|
+
r.value = l.modelValue;
|
|
123
122
|
});
|
|
124
|
-
const
|
|
125
|
-
|
|
123
|
+
const s = m, a = () => {
|
|
124
|
+
s("update:modelValue", r.value);
|
|
126
125
|
};
|
|
127
|
-
return (o,
|
|
128
|
-
A(R,
|
|
129
|
-
onKeydownCapture:
|
|
130
|
-
onKeydown: V(_(
|
|
126
|
+
return (o, d) => (n(), p("div", q, [
|
|
127
|
+
A(R, w(o.input, {
|
|
128
|
+
onKeydownCapture: d[0] || (d[0] = V(_((t) => r.value = o.modelValue, ["stop"]), ["esc"])),
|
|
129
|
+
onKeydown: V(_(a, ["stop"]), ["enter"]),
|
|
131
130
|
modelValue: r.value,
|
|
132
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": d[1] || (d[1] = (t) => r.value = t)
|
|
133
132
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
134
|
-
r.value !== o.modelValue ? (n(), E(B,
|
|
133
|
+
r.value !== o.modelValue ? (n(), E(B, w({
|
|
135
134
|
key: 0,
|
|
136
135
|
icon: "",
|
|
137
136
|
styling: "soft"
|
|
138
|
-
}, o.button, { onClick:
|
|
139
|
-
default:
|
|
140
|
-
|
|
137
|
+
}, o.button, { onClick: a }), {
|
|
138
|
+
default: T(() => [
|
|
139
|
+
H(o.$slots, "default")
|
|
141
140
|
]),
|
|
142
141
|
_: 3
|
|
143
142
|
}, 16)) : b("", !0)
|
|
144
143
|
]));
|
|
145
144
|
}
|
|
146
|
-
}),
|
|
145
|
+
}), O = {
|
|
147
146
|
"top-editInput": "top-editInput",
|
|
148
147
|
"top-input": "top-input"
|
|
149
|
-
},
|
|
150
|
-
$style:
|
|
151
|
-
},
|
|
148
|
+
}, Q = {
|
|
149
|
+
$style: O
|
|
150
|
+
}, se = /* @__PURE__ */ g(J, [["__cssModules", Q]]), W = ["data-top-icon", "onClick"], Y = {
|
|
152
151
|
key: 0,
|
|
153
152
|
class: "top-radioGroup_circle"
|
|
154
|
-
},
|
|
153
|
+
}, Z = ["value", "disabled"], x = /* @__PURE__ */ G({
|
|
155
154
|
__name: "radioGroup",
|
|
156
155
|
props: {
|
|
157
156
|
modelValue: {},
|
|
@@ -161,16 +160,16 @@ const U = {
|
|
|
161
160
|
isError: { type: Boolean }
|
|
162
161
|
},
|
|
163
162
|
emits: ["update:modelValue"],
|
|
164
|
-
setup(u, { emit:
|
|
165
|
-
const
|
|
163
|
+
setup(u, { emit: m }) {
|
|
164
|
+
const l = u, r = m, s = C({
|
|
166
165
|
get() {
|
|
167
|
-
return
|
|
166
|
+
return l.modelValue;
|
|
168
167
|
},
|
|
169
168
|
set(o) {
|
|
170
169
|
r("update:modelValue", o);
|
|
171
170
|
}
|
|
172
|
-
}),
|
|
173
|
-
return (o,
|
|
171
|
+
}), a = "radioGroup-" + Math.random();
|
|
172
|
+
return (o, d) => (n(), p("div", {
|
|
174
173
|
class: v({
|
|
175
174
|
"top-radioGroup": !0,
|
|
176
175
|
"top-scrollBarXHidding": !0,
|
|
@@ -178,34 +177,34 @@ const U = {
|
|
|
178
177
|
"top-error": o.isError
|
|
179
178
|
})
|
|
180
179
|
}, [
|
|
181
|
-
(n(!0),
|
|
180
|
+
(n(!0), p(z, null, N(o.radiosProps, (t) => (n(), p("label", {
|
|
182
181
|
class: v({
|
|
183
|
-
"top-radioGroup_item-selected":
|
|
182
|
+
"top-radioGroup_item-selected": t.value === s.value,
|
|
184
183
|
"top-radioGroup_item": !0,
|
|
185
184
|
"top-forms-focusable": !0,
|
|
186
|
-
"top-disabled":
|
|
185
|
+
"top-disabled": t.disabled
|
|
187
186
|
}),
|
|
188
|
-
"data-top-icon":
|
|
189
|
-
onClick: (e) =>
|
|
187
|
+
"data-top-icon": t.icon,
|
|
188
|
+
onClick: (e) => s.value = t.value
|
|
190
189
|
}, [
|
|
191
|
-
|
|
192
|
-
o.showIndicator ? (n(),
|
|
193
|
-
|
|
194
|
-
"onUpdate:modelValue":
|
|
195
|
-
name:
|
|
190
|
+
$(y(t.title) + " ", 1),
|
|
191
|
+
o.showIndicator ? (n(), p("span", Y)) : b("", !0),
|
|
192
|
+
P(h("input", {
|
|
193
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => s.value = e),
|
|
194
|
+
name: a,
|
|
196
195
|
type: "radio",
|
|
197
196
|
class: v({
|
|
198
197
|
"top-unvisible": !0
|
|
199
198
|
}),
|
|
200
|
-
value:
|
|
201
|
-
disabled:
|
|
202
|
-
}, null, 8,
|
|
203
|
-
[
|
|
199
|
+
value: t.value,
|
|
200
|
+
disabled: t.disabled
|
|
201
|
+
}, null, 8, Z), [
|
|
202
|
+
[S, s.value]
|
|
204
203
|
])
|
|
205
|
-
], 10,
|
|
204
|
+
], 10, W))), 256))
|
|
206
205
|
], 2));
|
|
207
206
|
}
|
|
208
|
-
}),
|
|
207
|
+
}), ee = {
|
|
209
208
|
"top-scrollBarXHidding": "top-scrollBarXHidding",
|
|
210
209
|
"top-radioGroup": "top-radioGroup",
|
|
211
210
|
"top-radioGroup_item": "top-radioGroup_item",
|
|
@@ -213,12 +212,12 @@ const U = {
|
|
|
213
212
|
"top-radioGroup_circle": "top-radioGroup_circle",
|
|
214
213
|
"top-disabled": "top-disabled",
|
|
215
214
|
"top-error": "top-error"
|
|
216
|
-
},
|
|
217
|
-
$style:
|
|
218
|
-
},
|
|
215
|
+
}, oe = {
|
|
216
|
+
$style: ee
|
|
217
|
+
}, de = /* @__PURE__ */ g(x, [["__cssModules", oe]]);
|
|
219
218
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
re as EditArea,
|
|
220
|
+
se as EditInput,
|
|
221
|
+
de as RadioGroup
|
|
223
222
|
};
|
|
224
223
|
//# sourceMappingURL=formsExt.js.map
|
package/formsExt/formsExt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formsExt.js","sources":["../../src/components/formsExt/editArea/editArea.vue","../../src/components/formsExt/editInput/editInput.vue","../../src/components/formsExt/radioGroup/radioGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref, toRef, watch, computed } from 'vue';\nimport Button from '@/components/forms/button/button.vue';\nimport type { Props, Emits } from './editArea';\nimport Textarea from '@/components/forms/textarea/textarea.vue';\n\n// TODO: добавить переменную top-forms-fixed-height и использовать ее при добавлении отступов у страницы\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcancelText: 'Отмена',\n\tsubmitText: 'Отправить',\n\texpandable: true,\n});\n\nconst emit = defineEmits<Emits>();\n\nconst state = ref('');\n\n/**\n * Локальное значение modelValue, будет проброшено вверх только в случае отправки формы\n */\nconst localValue = ref(props.modelValue);\n\nwatch(toRef(props, 'modelValue'), () => {\n\tlocalValue.value = props.modelValue;\n});\n\nconst isChanged = computed(() => localValue.value !== props.modelValue);\n\nconst submit = (value: string) => {\n\temit('update:modelValue', value);\n};\n\nconst cancel = () => {\n\temit('cancel');\n\n\t// сброс введенного значения\n\tlocalValue.value = props.modelValue;\n};\n</script>\n\n<template>\n\t<div\n\t\t:class=\"{\n\t\t\t'top-editArea': true,\n\t\t\t'top-editArea-attachedToKeyboard': attachToKeyboard,\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tv-if=\"title\"\n\t\t\tclass=\"top-editArea_title\"\n\t\t>\n\t\t\t{{ title }}\n\t\t</div>\n\n\t\t<div\n\t\t\t:class=\"{\n\t\t\t\t'top-editArea_form': true,\n\t\t\t\t'top-error': isError,\n\t\t\t\t'top-focus': state == 'focus',\n\t\t\t}\"\n\t\t>\n\t\t\t<Textarea\n\t\t\t\tv-model=\"localValue\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:rows=\"rows\"\n\t\t\t\t:minHeight=\"minHeight\"\n\t\t\t\t:expandable=\"expandable\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:isError=\"isError\"\n\t\t\t\t:hint=\"hint\"\n\t\t\t\tclass=\"top-editArea_element\"\n\t\t\t\t@focus=\"state = 'focus'\"\n\t\t\t\t@blur=\"state = ''\"\n\t\t\t\t@keyup.esc=\"cancel\"\n\t\t\t\t@keyup.ctrl.enter=\"submit(localValue)\"\n\t\t\t/>\n\n\t\t\t<div class=\"top-editArea_footer\">\n\t\t\t\t<Button\n\t\t\t\t\tv-if=\"isChanged && (!attachToKeyboard || modelValue)\"\n\t\t\t\t\tclass=\"top-editArea_button\"\n\t\t\t\t\tcolor=\"theme\"\n\t\t\t\t\t:icon=\"attachToKeyboard ? '': ''\"\n\t\t\t\t\t@click=\"cancel\"\n\t\t\t\t>\n\t\t\t\t\t{{ attachToKeyboard ? '' : cancelText }}\n\t\t\t\t</Button>\n\n\t\t\t\t<Button\n\t\t\t\t\tclass=\"top-editArea_button\"\n\t\t\t\t\t:icon=\"attachToKeyboard ? '': ''\"\n\t\t\t\t\t@click=\"submit(localValue)\"\n\t\t\t\t>\n\t\t\t\t\t{{ attachToKeyboard ? '' : submitText }}\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<style module>\n.top-editArea {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 6px;\n}\n\n.top-editArea_title {\n\tfont-size: 12px;\n}\n\n.top-editArea_form {\n\tbackground: var(--top-forms-background-color);\n\toutline-color: var(--color-theme-75);\n\toutline-offset: 0;\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.top-editArea_form:hover {\n\tbackground: var(--top-forms-background-color-hover);\n}\n\n/* textarea в EditArea */\n.top-textarea {\n\twidth: 100%;\n}\n\n.top-editArea_element.top-textarea_textarea {\n\tborder: none;\n\toutline: none;\n\tanimation: none;\n}\n\n/* footer */\n.top-editArea_footer {\n\tpadding: var(--top-forms-padding);\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tgap: var(--top-forms-padding);\n}\n\n/* attachedToKeyboard */\n.top-editArea-attachedToKeyboard {\n\tbackground: var(--top-forms-background-color);\n\tmargin-bottom: env(keyboard-inset-height, 0);\n\tposition: fixed;\n\tbottom: 0;\n\tright: 0;\n\tleft: 0;\n\tz-index: 2;\n\tgap: 0;\n}\n\n.top-editArea-attachedToKeyboard .top-editArea_form {\n\tborder-radius: 0;\n\tborder: none;\n\tborder-top: 1px solid var(--top-forms-border-color);\n}\n\n.top-editArea-attachedToKeyboard .top-editArea_title {\n\tborder-top: 1px solid var(--color-line-2-opacity);\n\tpadding: var(--top-forms-padding);\n}\n\n.top-editArea-attachedToKeyboard .top-editArea_footer > [data-top-icon] {\n\tborder-radius: 100%;\n}\n</style>","<script setup lang=\"ts\">\nimport { ref, toRef, watch } from 'vue';\nimport type { Props, Emits } from './editInput';\nimport Input from '@/components/forms/input/input.vue';\nimport Button from '@/components/forms/button/button.vue';\n\nconst props = defineProps<Props>();\n\nconst intermediateValue = ref(props.modelValue);\n\nwatch(toRef(props.modelValue), () => {\n\tintermediateValue.value = props.modelValue;\n});\n\nconst emit = defineEmits<Emits>();\n\nconst submit = () => {\n\temit('update:modelValue', intermediateValue.value);\n};\n</script>\n\n<template>\n\t<div class=\"top-editInput\">\n\t\t<Input\n\t\t\t:=\"input\"\n\t\t\t@keydown.esc.capture.stop=\"intermediateValue = modelValue\"\n\t\t\t@keydown.enter.stop=\"submit\"\n\t\t\tv-model=\"intermediateValue\"\n\t\t/>\n\n\t\t<Button\n\t\t\tv-if=\"intermediateValue !== modelValue\"\n\t\t\ticon=\"\"\n\t\t\tstyling=\"soft\"\n\t\t\t:=\"button\"\n\t\t\t@click=\"submit\"\n\t\t>\n\t\t\t<!-- @slot Слот Button -->\n\t\t\t<slot></slot>\n\t\t</Button>\n\t</div>\n</template>\n\n<style module>\n.top-editInput {\n\twidth: 220px;\n\tflex-grow: 1;\n\tdisplay: flex;\n\talign-items: flex-end;\n\tgap: var(--top-gap-1);\n}\n\n.top-editInput .top-input {\n\twidth: unset;\n\tflex-grow: 1;\n}\n</style>","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { Props, Emits } from './radioGroup';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tsize: 's',\n});\n\nconst emit = defineEmits<Emits>();\n\nconst localValue = computed({\n\tget() {\n\t\treturn props.modelValue;\n\t},\n\n\tset(value) {\n\t\temit('update:modelValue', value);\n\t},\n});\n\nconst uid = 'radioGroup-' + Math.random();\n</script>\n\n<template>\n\t<div\n\t\t:class=\"{\n\t\t\t['top-radioGroup']: true,\n\t\t\t['top-scrollBarXHidding']: true,\n\t\t\t['top-size_' + size]: !!size,\n\t\t\t['top-error']: isError,\n\t\t}\"\n\t>\n\t\t<label\n\t\t\tv-for=\"item of radiosProps\"\n\t\t\t:class=\"{\n\t\t\t\t['top-radioGroup_item-selected']: item.value === localValue,\n\t\t\t\t['top-radioGroup_item']: true,\n\t\t\t\t['top-forms-focusable']: true,\n\t\t\t\t['top-disabled']: item.disabled,\n\t\t\t}\"\n\t\t\t:data-top-icon=\"item.icon\"\n\t\t\t@click=\"localValue = item.value\"\n\t\t>\n\t\t\t{{ item.title }}\n\n\t\t\t<span\n\t\t\t\tv-if=\"showIndicator\"\n\t\t\t\tclass=\"top-radioGroup_circle\"\n\t\t\t></span>\n\n\t\t\t<!-- Для нативной навигации -->\n\t\t\t<input\n\t\t\t\tv-model=\"localValue\"\n\t\t\t\t:name=\"uid\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t['top-unvisible']: true,\n\t\t\t\t}\"\n\t\t\t\t:value=\"item.value\"\n\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t/>\n\t\t</label>\n\t</div>\n</template>\n\n<style module>\n@import \"./styles/top-scrollBar.css\";\n\n.top-radioGroup {\n\tuser-select: none;\n\tbox-sizing: border-box;\n\tborder-radius: 8px;\n\tbackground-color: var(--color-theme-50);\n\theight: var(--top-forms-base-height);\n\tpadding: 2px;\n\tgap: 2px;\n\tdisplay: flex;\n\talign-items: flex-start;\n}\n\n.top-radioGroup_item {\n\tcursor: pointer;\n\tbox-sizing: border-box;\n\tborder-radius: 6px;\n\theight: calc(var(--top-forms-base-height) - 4px);\n\tpadding: 0 16px;\n\tfont-weight: 600;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex-grow: 1;\n\tgap: 4px;\n}\n\n.top-radioGroup_item:hover {\n\tbackground-color: var(--color-theme-25);\n\tbox-shadow: 0px 4px 32px 0px rgba(4, 9, 84, 0.10), 0px 0px 4px 0px rgba(4, 9, 84, 0.08);\n}\n\n/* selected */\n.top-radioGroup_item-selected {\n\tpointer-events: none;\n\tbackground-color: var(--color-bg-3);\n\tbox-shadow: 0px 4px 32px 0px rgba(4, 9, 84, 0.10), 0px 0px 4px 0px rgba(4, 9, 84, 0.08);\n}\n\n/* circle */\n.top-radioGroup_circle {\n\tcontent: \"\";\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--color-line-3-opacity);\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tmargin-left: auto;\n\twidth: calc(var(--top-forms-option-height) - 3px * 2);\n\theight: calc(var(--top-forms-option-height) - 3px * 2);\n}\n\n.top-radioGroup_item:hover .top-radioGroup_circle:before {\n\tborder-color: var(--color-primary);\n}\n\n/* circle selected */\n.top-radioGroup_item-selected .top-radioGroup_circle {\n\tborder-color: var(--color-primary);\n\tborder-width: 5px;\n}\n\n.top-radioGroup_item-selected:hover .top-radioGroup_circle {\n\tborder-color: var(--color-primary-2);\n}\n\n/* top-disabled */\n.top-radioGroup_item.top-disabled {\n\t--top-icon-color: var(--color-text-3);\n\n\tcolor: var(--color-text-3);\n}\n\n.top-radioGroup_item.top-disabled .top-radioGroup_circle {\n\tborder-color: var(--color-theme-400);\n\tbackground-color: var(--color-theme-50);\n}\n\n/* top-error */\n.top-radioGroup.top-error .top-radioGroup_item:not(.top-disabled) .top-radioGroup_circle {\n\tborder-color: var(--color-negative);\n}\n</style>"],"names":["props","__props","emit","__emit","state","ref","localValue","watch","toRef","isChanged","computed","submit","value","cancel","intermediateValue","uid"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,UAAAA,IAAAC,GAMAC,IAAAC,GAEAC,IAAAC,EAAA,EAAA,GAKAC,IAAAD,EAAAL,EAAA,UAAA;AAEA,IAAAO,EAAAC,EAAAR,GAAA,YAAA,GAAA,MAAA;AACC,MAAAM,EAAA,QAAAN,EAAA;AAAA,IAAyB,CAAA;AAG1B,UAAAS,IAAAC,EAAA,MAAAJ,EAAA,UAAAN,EAAA,UAAA,GAEAW,IAAA,CAAAC,MAAA;AACC,MAAAV,EAAA,qBAAAU,CAAA;AAAA,IAA+B,GAGhCC,IAAA,MAAA;AACC,MAAAX,EAAA,QAAA,GAGAI,EAAA,QAAAN,EAAA;AAAA,IAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/B1B,UAAAA,IAAAC,GAEAa,IAAAT,EAAAL,EAAA,UAAA;AAEA,IAAAO,EAAAC,EAAAR,EAAA,UAAA,GAAA,MAAA;AACC,MAAAc,EAAA,QAAAd,EAAA;AAAA,IAAgC,CAAA;AAGjC,UAAAE,IAAAC,GAEAQ,IAAA,MAAA;AACC,MAAAT,EAAA,qBAAAY,EAAA,KAAA;AAAA,IAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACblD,UAAAd,IAAAC,GAIAC,IAAAC,GAEAG,IAAAI,EAAA;AAAA,MAA4B,MAAA;AAE1B,eAAAV,EAAA;AAAA,MAAa;AAAA,MACd,IAAAY,GAAA;AAGC,QAAAV,EAAA,qBAAAU,CAAA;AAAA,MAA+B;AAAA,IAChC,CAAA,GAGDG,IAAA,gBAAA,KAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"formsExt.js","sources":["../../src/components/formsExt/editArea/editArea.vue","../../src/components/formsExt/editInput/editInput.vue","../../src/components/formsExt/radioGroup/radioGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport { ref, toRef, watch, computed } from 'vue';\r\nimport Button from '@/components/forms/button/button.vue';\r\nimport type { Props, Emits } from './editArea';\r\nimport Textarea from '@/components/forms/textarea/textarea.vue';\r\n\r\n// TODO: добавить переменную top-forms-fixed-height и использовать ее при добавлении отступов у страницы\r\n\r\nconst props = withDefaults(defineProps<Props>(), {\r\n\tcancelText: 'Отмена',\r\n\tsubmitText: 'Отправить',\r\n\texpandable: true,\r\n});\r\n\r\nconst emit = defineEmits<Emits>();\r\n\r\nconst state = ref('');\r\n\r\n/**\r\n * Локальное значение modelValue, будет проброшено вверх только в случае отправки формы\r\n */\r\nconst localValue = ref(props.modelValue);\r\n\r\nwatch(toRef(props, 'modelValue'), () => {\r\n\tlocalValue.value = props.modelValue;\r\n});\r\n\r\nconst isChanged = computed(() => localValue.value !== props.modelValue);\r\n\r\nconst submit = (value: string) => {\r\n\temit('update:modelValue', value);\r\n};\r\n\r\nconst cancel = () => {\r\n\temit('cancel');\r\n\r\n\t// сброс введенного значения\r\n\tlocalValue.value = props.modelValue;\r\n};\r\n</script>\r\n\r\n<template>\r\n\t<div\r\n\t\t:class=\"{\r\n\t\t\t'top-editArea': true,\r\n\t\t\t'top-editArea-attachedToKeyboard': attachToKeyboard,\r\n\t\t}\"\r\n\t>\r\n\t\t<div\r\n\t\t\tv-if=\"title\"\r\n\t\t\tclass=\"top-editArea_title\"\r\n\t\t>\r\n\t\t\t{{ title }}\r\n\t\t</div>\r\n\r\n\t\t<div\r\n\t\t\t:class=\"{\r\n\t\t\t\t'top-editArea_form': true,\r\n\t\t\t\t'top-error': isError,\r\n\t\t\t\t'top-focus': state == 'focus',\r\n\t\t\t}\"\r\n\t\t>\r\n\t\t\t<Textarea\r\n\t\t\t\tv-model=\"localValue\"\r\n\t\t\t\t:name=\"name\"\r\n\t\t\t\t:placeholder=\"placeholder\"\r\n\t\t\t\t:rows=\"rows\"\r\n\t\t\t\t:minHeight=\"minHeight\"\r\n\t\t\t\t:expandable=\"expandable\"\r\n\t\t\t\t:disabled=\"disabled\"\r\n\t\t\t\t:readonly=\"readonly\"\r\n\t\t\t\t:isError=\"isError\"\r\n\t\t\t\t:hint=\"hint\"\r\n\t\t\t\tclass=\"top-editArea_element\"\r\n\t\t\t\t@focus=\"state = 'focus'\"\r\n\t\t\t\t@blur=\"state = ''\"\r\n\t\t\t\t@keyup.esc=\"cancel\"\r\n\t\t\t\t@keyup.ctrl.enter=\"submit(localValue)\"\r\n\t\t\t/>\r\n\r\n\t\t\t<div class=\"top-editArea_footer\">\r\n\t\t\t\t<Button\r\n\t\t\t\t\tv-if=\"isChanged && (!attachToKeyboard || modelValue)\"\r\n\t\t\t\t\tclass=\"top-editArea_button\"\r\n\t\t\t\t\tcolor=\"theme\"\r\n\t\t\t\t\t:icon=\"attachToKeyboard ? '': ''\"\r\n\t\t\t\t\t@click=\"cancel\"\r\n\t\t\t\t>\r\n\t\t\t\t\t{{ attachToKeyboard ? '' : cancelText }}\r\n\t\t\t\t</Button>\r\n\r\n\t\t\t\t<Button\r\n\t\t\t\t\tclass=\"top-editArea_button\"\r\n\t\t\t\t\t:icon=\"attachToKeyboard ? '': ''\"\r\n\t\t\t\t\t@click=\"submit(localValue)\"\r\n\t\t\t\t>\r\n\t\t\t\t\t{{ attachToKeyboard ? '' : submitText }}\r\n\t\t\t\t</Button>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</template>\r\n\r\n<style module>\r\n.top-editArea {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tgap: 6px;\r\n}\r\n\r\n.top-editArea_title {\r\n\tfont-size: 12px;\r\n}\r\n\r\n.top-editArea_form {\r\n\tbackground: var(--top-forms-background-color);\r\n\toutline-color: var(--color-theme-75);\r\n\toutline-offset: 0;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.top-editArea_form:hover {\r\n\tbackground: var(--top-forms-background-color-hover);\r\n}\r\n\r\n/* textarea в EditArea */\r\n.top-textarea {\r\n\twidth: 100%;\r\n}\r\n\r\n.top-editArea_element.top-textarea_textarea {\r\n\tborder: none;\r\n\toutline: none;\r\n\tanimation: none;\r\n}\r\n\r\n/* footer */\r\n.top-editArea_footer {\r\n\tpadding: var(--top-forms-padding);\r\n\tdisplay: flex;\r\n\tjustify-content: flex-end;\r\n\tgap: var(--top-forms-padding);\r\n}\r\n\r\n/* attachedToKeyboard */\r\n.top-editArea-attachedToKeyboard {\r\n\tbackground: var(--top-forms-background-color);\r\n\tmargin-bottom: env(keyboard-inset-height, 0);\r\n\tposition: fixed;\r\n\tbottom: 0;\r\n\tright: 0;\r\n\tleft: 0;\r\n\tz-index: 2;\r\n\tgap: 0;\r\n}\r\n\r\n.top-editArea-attachedToKeyboard .top-editArea_form {\r\n\tborder-radius: 0;\r\n\tborder: none;\r\n\tborder-top: 1px solid var(--top-forms-border-color);\r\n}\r\n\r\n.top-editArea-attachedToKeyboard .top-editArea_title {\r\n\tborder-top: 1px solid var(--color-line-2-opacity);\r\n\tpadding: var(--top-forms-padding);\r\n}\r\n\r\n.top-editArea-attachedToKeyboard .top-editArea_footer > [data-top-icon] {\r\n\tborder-radius: 100%;\r\n}\r\n</style>","<script setup lang=\"ts\">\r\nimport { ref, toRef, watch } from 'vue';\r\nimport type { Props, Emits } from './editInput';\r\nimport Input from '@/components/forms/input/input.vue';\r\nimport Button from '@/components/forms/button/button.vue';\r\n\r\nconst props = defineProps<Props>();\r\n\r\nconst intermediateValue = ref(props.modelValue);\r\n\r\nwatch(toRef(props.modelValue), () => {\r\n\tintermediateValue.value = props.modelValue;\r\n});\r\n\r\nconst emit = defineEmits<Emits>();\r\n\r\nconst submit = () => {\r\n\temit('update:modelValue', intermediateValue.value);\r\n};\r\n</script>\r\n\r\n<template>\r\n\t<div class=\"top-editInput\">\r\n\t\t<Input\r\n\t\t\t:=\"input\"\r\n\t\t\t@keydown.esc.capture.stop=\"intermediateValue = modelValue\"\r\n\t\t\t@keydown.enter.stop=\"submit\"\r\n\t\t\tv-model=\"intermediateValue\"\r\n\t\t/>\r\n\r\n\t\t<Button\r\n\t\t\tv-if=\"intermediateValue !== modelValue\"\r\n\t\t\ticon=\"\"\r\n\t\t\tstyling=\"soft\"\r\n\t\t\t:=\"button\"\r\n\t\t\t@click=\"submit\"\r\n\t\t>\r\n\t\t\t<!-- @slot Слот Button -->\r\n\t\t\t<slot></slot>\r\n\t\t</Button>\r\n\t</div>\r\n</template>\r\n\r\n<style module>\r\n.top-editInput {\r\n\twidth: 220px;\r\n\tflex-grow: 1;\r\n\tdisplay: flex;\r\n\talign-items: flex-end;\r\n\tgap: var(--top-gap-1);\r\n}\r\n\r\n.top-editInput .top-input {\r\n\twidth: unset;\r\n\tflex-grow: 1;\r\n}\r\n</style>","<script setup lang=\"ts\">\r\nimport { computed } from 'vue';\r\nimport type { Props, Emits } from './radioGroup';\r\n\r\nconst props = withDefaults(defineProps<Props>(), {\r\n\tsize: 's',\r\n});\r\n\r\nconst emit = defineEmits<Emits>();\r\n\r\nconst localValue = computed({\r\n\tget() {\r\n\t\treturn props.modelValue;\r\n\t},\r\n\r\n\tset(value) {\r\n\t\temit('update:modelValue', value);\r\n\t},\r\n});\r\n\r\nconst uid = 'radioGroup-' + Math.random();\r\n</script>\r\n\r\n<template>\r\n\t<div\r\n\t\t:class=\"{\r\n\t\t\t['top-radioGroup']: true,\r\n\t\t\t['top-scrollBarXHidding']: true,\r\n\t\t\t['top-size_' + size]: !!size,\r\n\t\t\t['top-error']: isError,\r\n\t\t}\"\r\n\t>\r\n\t\t<label\r\n\t\t\tv-for=\"item of radiosProps\"\r\n\t\t\t:class=\"{\r\n\t\t\t\t['top-radioGroup_item-selected']: item.value === localValue,\r\n\t\t\t\t['top-radioGroup_item']: true,\r\n\t\t\t\t['top-forms-focusable']: true,\r\n\t\t\t\t['top-disabled']: item.disabled,\r\n\t\t\t}\"\r\n\t\t\t:data-top-icon=\"item.icon\"\r\n\t\t\t@click=\"localValue = item.value\"\r\n\t\t>\r\n\t\t\t{{ item.title }}\r\n\r\n\t\t\t<span\r\n\t\t\t\tv-if=\"showIndicator\"\r\n\t\t\t\tclass=\"top-radioGroup_circle\"\r\n\t\t\t></span>\r\n\r\n\t\t\t<!-- Для нативной навигации -->\r\n\t\t\t<input\r\n\t\t\t\tv-model=\"localValue\"\r\n\t\t\t\t:name=\"uid\"\r\n\t\t\t\ttype=\"radio\"\r\n\t\t\t\t:class=\"{\r\n\t\t\t\t\t['top-unvisible']: true,\r\n\t\t\t\t}\"\r\n\t\t\t\t:value=\"item.value\"\r\n\t\t\t\t:disabled=\"item.disabled\"\r\n\t\t\t/>\r\n\t\t</label>\r\n\t</div>\r\n</template>\r\n\r\n<style module>\r\n@import \"./styles/top-scrollBar.css\";\r\n\r\n.top-radioGroup {\r\n\tuser-select: none;\r\n\tbox-sizing: border-box;\r\n\tborder-radius: 8px;\r\n\tbackground-color: var(--color-theme-50);\r\n\theight: var(--top-forms-base-height);\r\n\tpadding: 2px;\r\n\tgap: 2px;\r\n\tdisplay: flex;\r\n\talign-items: flex-start;\r\n}\r\n\r\n.top-radioGroup_item {\r\n\tcursor: pointer;\r\n\tbox-sizing: border-box;\r\n\tborder-radius: 6px;\r\n\theight: calc(var(--top-forms-base-height) - 4px);\r\n\tpadding: 0 16px;\r\n\tfont-weight: 600;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tflex-grow: 1;\r\n\tgap: 4px;\r\n}\r\n\r\n.top-radioGroup_item:hover {\r\n\tbackground-color: var(--color-theme-25);\r\n\tbox-shadow: 0px 4px 32px 0px rgba(4, 9, 84, 0.10), 0px 0px 4px 0px rgba(4, 9, 84, 0.08);\r\n}\r\n\r\n/* selected */\r\n.top-radioGroup_item-selected {\r\n\tpointer-events: none;\r\n\tbackground-color: var(--color-bg-3);\r\n\tbox-shadow: 0px 4px 32px 0px rgba(4, 9, 84, 0.10), 0px 0px 4px 0px rgba(4, 9, 84, 0.08);\r\n}\r\n\r\n/* circle */\r\n.top-radioGroup_circle {\r\n\tcontent: \"\";\r\n\tbox-sizing: border-box;\r\n\tborder: 1px solid var(--color-line-3-opacity);\r\n\tborder-radius: 50%;\r\n\tpadding: 3px;\r\n\tmargin-left: auto;\r\n\twidth: calc(var(--top-forms-option-height) - 3px * 2);\r\n\theight: calc(var(--top-forms-option-height) - 3px * 2);\r\n}\r\n\r\n.top-radioGroup_item:hover .top-radioGroup_circle:before {\r\n\tborder-color: var(--color-primary);\r\n}\r\n\r\n/* circle selected */\r\n.top-radioGroup_item-selected .top-radioGroup_circle {\r\n\tborder-color: var(--color-primary);\r\n\tborder-width: 5px;\r\n}\r\n\r\n.top-radioGroup_item-selected:hover .top-radioGroup_circle {\r\n\tborder-color: var(--color-primary-2);\r\n}\r\n\r\n/* top-disabled */\r\n.top-radioGroup_item.top-disabled {\r\n\t--top-icon-color: var(--color-text-3);\r\n\r\n\tcolor: var(--color-text-3);\r\n}\r\n\r\n.top-radioGroup_item.top-disabled .top-radioGroup_circle {\r\n\tborder-color: var(--color-theme-400);\r\n\tbackground-color: var(--color-theme-50);\r\n}\r\n\r\n/* top-error */\r\n.top-radioGroup.top-error .top-radioGroup_item:not(.top-disabled) .top-radioGroup_circle {\r\n\tborder-color: var(--color-negative);\r\n}\r\n</style>"],"names":["props","__props","emit","__emit","state","ref","localValue","watch","toRef","isChanged","computed","submit","value","cancel","intermediateValue","uid"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,UAAAA,IAAAC,GAMAC,IAAAC,GAEAC,IAAAC,EAAA,EAAA,GAKAC,IAAAD,EAAAL,EAAA,UAAA;AAEA,IAAAO,EAAAC,EAAAR,GAAA,YAAA,GAAA,MAAA;AACC,MAAAM,EAAA,QAAAN,EAAA;AAAA,IAAyB,CAAA;AAG1B,UAAAS,IAAAC,EAAA,MAAAJ,EAAA,UAAAN,EAAA,UAAA,GAEAW,IAAA,CAAAC,MAAA;AACC,MAAAV,EAAA,qBAAAU,CAAA;AAAA,IAA+B,GAGhCC,IAAA,MAAA;AACC,MAAAX,EAAA,QAAA,GAGAI,EAAA,QAAAN,EAAA;AAAA,IAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/B1B,UAAAA,IAAAC,GAEAa,IAAAT,EAAAL,EAAA,UAAA;AAEA,IAAAO,EAAAC,EAAAR,EAAA,UAAA,GAAA,MAAA;AACC,MAAAc,EAAA,QAAAd,EAAA;AAAA,IAAgC,CAAA;AAGjC,UAAAE,IAAAC,GAEAQ,IAAA,MAAA;AACC,MAAAT,EAAA,qBAAAY,EAAA,KAAA;AAAA,IAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACblD,UAAAd,IAAAC,GAIAC,IAAAC,GAEAG,IAAAI,EAAA;AAAA,MAA4B,MAAA;AAE1B,eAAAV,EAAA;AAAA,MAAa;AAAA,MACd,IAAAY,GAAA;AAGC,QAAAV,EAAA,qBAAAU,CAAA;AAAA,MAA+B;AAAA,IAChC,CAAA,GAGDG,IAAA,gBAAA,KAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
body {
|
|
2
|
-
padding: 0;
|
|
3
|
-
margin: 0;
|
|
4
|
-
font-family: sans-serif;
|
|
5
|
-
font-size: 1em;
|
|
6
|
-
line-height: 1.5;
|
|
7
|
-
color: #555;
|
|
8
|
-
background: #fff;
|
|
9
|
-
}
|
|
10
|
-
h1 {
|
|
11
|
-
font-size: 1.5em;
|
|
12
|
-
font-weight: normal;
|
|
13
|
-
}
|
|
14
|
-
small {
|
|
15
|
-
font-size: .66666667em;
|
|
16
|
-
}
|
|
17
|
-
a {
|
|
18
|
-
color: #e74c3c;
|
|
19
|
-
text-decoration: none;
|
|
20
|
-
}
|
|
21
|
-
a:hover, a:focus {
|
|
22
|
-
box-shadow: 0 1px #e74c3c;
|
|
23
|
-
}
|
|
24
|
-
.bshadow0, input {
|
|
25
|
-
box-shadow: inset 0 -2px #e7e7e7;
|
|
26
|
-
}
|
|
27
|
-
input:hover {
|
|
28
|
-
box-shadow: inset 0 -2px #ccc;
|
|
29
|
-
}
|
|
30
|
-
input, fieldset {
|
|
31
|
-
font-family: sans-serif;
|
|
32
|
-
font-size: 1em;
|
|
33
|
-
margin: 0;
|
|
34
|
-
padding: 0;
|
|
35
|
-
border: 0;
|
|
36
|
-
}
|
|
37
|
-
input {
|
|
38
|
-
color: inherit;
|
|
39
|
-
line-height: 1.5;
|
|
40
|
-
height: 1.5em;
|
|
41
|
-
padding: .25em 0;
|
|
42
|
-
}
|
|
43
|
-
input:focus {
|
|
44
|
-
outline: none;
|
|
45
|
-
box-shadow: inset 0 -2px #449fdb;
|
|
46
|
-
}
|
|
47
|
-
.glyph {
|
|
48
|
-
font-size: 16px;
|
|
49
|
-
width: 15em;
|
|
50
|
-
padding-bottom: 1em;
|
|
51
|
-
margin-right: 4em;
|
|
52
|
-
margin-bottom: 1em;
|
|
53
|
-
float: left;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
}
|
|
56
|
-
.liga {
|
|
57
|
-
width: 80%;
|
|
58
|
-
width: calc(100% - 2.5em);
|
|
59
|
-
}
|
|
60
|
-
.talign-right {
|
|
61
|
-
text-align: right;
|
|
62
|
-
}
|
|
63
|
-
.talign-center {
|
|
64
|
-
text-align: center;
|
|
65
|
-
}
|
|
66
|
-
.bgc1 {
|
|
67
|
-
background: #f1f1f1;
|
|
68
|
-
}
|
|
69
|
-
.fgc1 {
|
|
70
|
-
color: #999;
|
|
71
|
-
}
|
|
72
|
-
.fgc0 {
|
|
73
|
-
color: #000;
|
|
74
|
-
}
|
|
75
|
-
p {
|
|
76
|
-
margin-top: 1em;
|
|
77
|
-
margin-bottom: 1em;
|
|
78
|
-
}
|
|
79
|
-
.mvm {
|
|
80
|
-
margin-top: .75em;
|
|
81
|
-
margin-bottom: .75em;
|
|
82
|
-
}
|
|
83
|
-
.mtn {
|
|
84
|
-
margin-top: 0;
|
|
85
|
-
}
|
|
86
|
-
.mtl, .mal {
|
|
87
|
-
margin-top: 1.5em;
|
|
88
|
-
}
|
|
89
|
-
.mbl, .mal {
|
|
90
|
-
margin-bottom: 1.5em;
|
|
91
|
-
}
|
|
92
|
-
.mal, .mhl {
|
|
93
|
-
margin-left: 1.5em;
|
|
94
|
-
margin-right: 1.5em;
|
|
95
|
-
}
|
|
96
|
-
.mhmm {
|
|
97
|
-
margin-left: 1em;
|
|
98
|
-
margin-right: 1em;
|
|
99
|
-
}
|
|
100
|
-
.mls {
|
|
101
|
-
margin-left: .25em;
|
|
102
|
-
}
|
|
103
|
-
.ptl {
|
|
104
|
-
padding-top: 1.5em;
|
|
105
|
-
}
|
|
106
|
-
.pbs, .pvs {
|
|
107
|
-
padding-bottom: .25em;
|
|
108
|
-
}
|
|
109
|
-
.pvs, .pts {
|
|
110
|
-
padding-top: .25em;
|
|
111
|
-
}
|
|
112
|
-
.unit {
|
|
113
|
-
float: left;
|
|
114
|
-
}
|
|
115
|
-
.unitRight {
|
|
116
|
-
float: right;
|
|
117
|
-
}
|
|
118
|
-
.size1of2 {
|
|
119
|
-
width: 50%;
|
|
120
|
-
}
|
|
121
|
-
.size1of1 {
|
|
122
|
-
width: 100%;
|
|
123
|
-
}
|
|
124
|
-
.clearfix:before, .clearfix:after {
|
|
125
|
-
content: " ";
|
|
126
|
-
display: table;
|
|
127
|
-
}
|
|
128
|
-
.clearfix:after {
|
|
129
|
-
clear: both;
|
|
130
|
-
}
|
|
131
|
-
.hidden-true {
|
|
132
|
-
display: none;
|
|
133
|
-
}
|
|
134
|
-
.textbox0 {
|
|
135
|
-
width: 3em;
|
|
136
|
-
background: #f1f1f1;
|
|
137
|
-
padding: .25em .5em;
|
|
138
|
-
line-height: 1.5;
|
|
139
|
-
height: 1.5em;
|
|
140
|
-
}
|
|
141
|
-
#testDrive {
|
|
142
|
-
display: block;
|
|
143
|
-
padding-top: 24px;
|
|
144
|
-
line-height: 1.5;
|
|
145
|
-
}
|
|
146
|
-
.fs0 {
|
|
147
|
-
font-size: 16px;
|
|
148
|
-
}
|
|
149
|
-
.fs1 {
|
|
150
|
-
font-size: 32px;
|
|
151
|
-
}
|
|
152
|
-
.fs2 {
|
|
153
|
-
font-size: 14px;
|
|
154
|
-
}
|
|
155
|
-
.fs3 {
|
|
156
|
-
font-size: 14px;
|
|
157
|
-
}
|
|
158
|
-
.fs4 {
|
|
159
|
-
font-size: 8px;
|
|
160
|
-
}
|
|
161
|
-
|
|
1
|
+
body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
margin: 0;
|
|
4
|
+
font-family: sans-serif;
|
|
5
|
+
font-size: 1em;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
color: #555;
|
|
8
|
+
background: #fff;
|
|
9
|
+
}
|
|
10
|
+
h1 {
|
|
11
|
+
font-size: 1.5em;
|
|
12
|
+
font-weight: normal;
|
|
13
|
+
}
|
|
14
|
+
small {
|
|
15
|
+
font-size: .66666667em;
|
|
16
|
+
}
|
|
17
|
+
a {
|
|
18
|
+
color: #e74c3c;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
}
|
|
21
|
+
a:hover, a:focus {
|
|
22
|
+
box-shadow: 0 1px #e74c3c;
|
|
23
|
+
}
|
|
24
|
+
.bshadow0, input {
|
|
25
|
+
box-shadow: inset 0 -2px #e7e7e7;
|
|
26
|
+
}
|
|
27
|
+
input:hover {
|
|
28
|
+
box-shadow: inset 0 -2px #ccc;
|
|
29
|
+
}
|
|
30
|
+
input, fieldset {
|
|
31
|
+
font-family: sans-serif;
|
|
32
|
+
font-size: 1em;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: 0;
|
|
36
|
+
}
|
|
37
|
+
input {
|
|
38
|
+
color: inherit;
|
|
39
|
+
line-height: 1.5;
|
|
40
|
+
height: 1.5em;
|
|
41
|
+
padding: .25em 0;
|
|
42
|
+
}
|
|
43
|
+
input:focus {
|
|
44
|
+
outline: none;
|
|
45
|
+
box-shadow: inset 0 -2px #449fdb;
|
|
46
|
+
}
|
|
47
|
+
.glyph {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
width: 15em;
|
|
50
|
+
padding-bottom: 1em;
|
|
51
|
+
margin-right: 4em;
|
|
52
|
+
margin-bottom: 1em;
|
|
53
|
+
float: left;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
.liga {
|
|
57
|
+
width: 80%;
|
|
58
|
+
width: calc(100% - 2.5em);
|
|
59
|
+
}
|
|
60
|
+
.talign-right {
|
|
61
|
+
text-align: right;
|
|
62
|
+
}
|
|
63
|
+
.talign-center {
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
.bgc1 {
|
|
67
|
+
background: #f1f1f1;
|
|
68
|
+
}
|
|
69
|
+
.fgc1 {
|
|
70
|
+
color: #999;
|
|
71
|
+
}
|
|
72
|
+
.fgc0 {
|
|
73
|
+
color: #000;
|
|
74
|
+
}
|
|
75
|
+
p {
|
|
76
|
+
margin-top: 1em;
|
|
77
|
+
margin-bottom: 1em;
|
|
78
|
+
}
|
|
79
|
+
.mvm {
|
|
80
|
+
margin-top: .75em;
|
|
81
|
+
margin-bottom: .75em;
|
|
82
|
+
}
|
|
83
|
+
.mtn {
|
|
84
|
+
margin-top: 0;
|
|
85
|
+
}
|
|
86
|
+
.mtl, .mal {
|
|
87
|
+
margin-top: 1.5em;
|
|
88
|
+
}
|
|
89
|
+
.mbl, .mal {
|
|
90
|
+
margin-bottom: 1.5em;
|
|
91
|
+
}
|
|
92
|
+
.mal, .mhl {
|
|
93
|
+
margin-left: 1.5em;
|
|
94
|
+
margin-right: 1.5em;
|
|
95
|
+
}
|
|
96
|
+
.mhmm {
|
|
97
|
+
margin-left: 1em;
|
|
98
|
+
margin-right: 1em;
|
|
99
|
+
}
|
|
100
|
+
.mls {
|
|
101
|
+
margin-left: .25em;
|
|
102
|
+
}
|
|
103
|
+
.ptl {
|
|
104
|
+
padding-top: 1.5em;
|
|
105
|
+
}
|
|
106
|
+
.pbs, .pvs {
|
|
107
|
+
padding-bottom: .25em;
|
|
108
|
+
}
|
|
109
|
+
.pvs, .pts {
|
|
110
|
+
padding-top: .25em;
|
|
111
|
+
}
|
|
112
|
+
.unit {
|
|
113
|
+
float: left;
|
|
114
|
+
}
|
|
115
|
+
.unitRight {
|
|
116
|
+
float: right;
|
|
117
|
+
}
|
|
118
|
+
.size1of2 {
|
|
119
|
+
width: 50%;
|
|
120
|
+
}
|
|
121
|
+
.size1of1 {
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
.clearfix:before, .clearfix:after {
|
|
125
|
+
content: " ";
|
|
126
|
+
display: table;
|
|
127
|
+
}
|
|
128
|
+
.clearfix:after {
|
|
129
|
+
clear: both;
|
|
130
|
+
}
|
|
131
|
+
.hidden-true {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
.textbox0 {
|
|
135
|
+
width: 3em;
|
|
136
|
+
background: #f1f1f1;
|
|
137
|
+
padding: .25em .5em;
|
|
138
|
+
line-height: 1.5;
|
|
139
|
+
height: 1.5em;
|
|
140
|
+
}
|
|
141
|
+
#testDrive {
|
|
142
|
+
display: block;
|
|
143
|
+
padding-top: 24px;
|
|
144
|
+
line-height: 1.5;
|
|
145
|
+
}
|
|
146
|
+
.fs0 {
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
}
|
|
149
|
+
.fs1 {
|
|
150
|
+
font-size: 32px;
|
|
151
|
+
}
|
|
152
|
+
.fs2 {
|
|
153
|
+
font-size: 14px;
|
|
154
|
+
}
|
|
155
|
+
.fs3 {
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
}
|
|
158
|
+
.fs4 {
|
|
159
|
+
font-size: 8px;
|
|
160
|
+
}
|
|
161
|
+
|