@topvisor/ui 0.0.17 → 0.0.33
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-48f2fa8d.es.js +275 -0
- package/.chunks/datepicker-48f2fa8d.es.js.map +1 -0
- package/.chunks/datepicker-f94ba423.amd.js +234 -0
- package/.chunks/datepicker-f94ba423.amd.js.map +1 -0
- package/.chunks/forms-6c397f5a.es.js +935 -0
- package/.chunks/forms-6c397f5a.es.js.map +1 -0
- package/.chunks/forms-cab135c7.amd.js +3 -0
- package/.chunks/forms-cab135c7.amd.js.map +1 -0
- package/.chunks/popup-04c385e0.es.js +701 -0
- package/.chunks/popup-04c385e0.es.js.map +1 -0
- package/.chunks/popup-33f53a1c.amd.js +342 -0
- package/.chunks/popup-33f53a1c.amd.js.map +1 -0
- package/README.md +62 -62
- package/common/common.amd.js +1 -21
- package/common/common.amd.js.map +1 -1
- package/common/common.js +1 -20
- package/common/common.js.map +1 -1
- package/core/core.amd.js +1 -4
- package/core/core.amd.js.map +1 -1
- package/core/core.js +2 -3
- package/core/core.js.map +1 -1
- package/core.css +1 -648
- package/dark.css +1 -136
- package/forms/forms.amd.js +1 -12
- package/forms/forms.amd.js.map +1 -1
- package/forms/forms.js +11 -9
- package/forms/helpers.amd.js +1 -5
- package/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.js +6 -3
- package/forms/helpers.js.map +1 -1
- package/forms.css +1 -505
- package/formsExt/formsExt.amd.js +3 -0
- package/formsExt/formsExt.amd.js.map +1 -0
- package/formsExt/formsExt.js +152 -0
- package/formsExt/formsExt.js.map +1 -0
- package/formsExt.css +1 -0
- 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/light.css +1 -136
- package/package.json +19 -19
- package/popup/popup.amd.js +2 -197
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +104 -158
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -233
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +60 -143
- package/popup/worker.js.map +1 -1
- package/popup.css +1 -19
- package/tabs/tabs.amd.js +2 -122
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.js +63 -86
- package/tabs/tabs.js.map +1 -1
- package/tabs.css +1 -60
- package/utils/date.amd.js +2 -0
- package/utils/date.amd.js.map +1 -0
- package/utils/date.js +6 -0
- package/utils/date.js.map +1 -0
- package/utils/device.amd.js +1 -41
- package/utils/device.amd.js.map +1 -1
- package/utils/device.js +3 -38
- package/utils/device.js.map +1 -1
- package/utils/dom.amd.js +1 -94
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js +47 -77
- package/utils/dom.js.map +1 -1
- package/.chunks/core-0b2c7817.es.js +0 -152
- package/.chunks/core-0b2c7817.es.js.map +0 -1
- package/.chunks/core-51f7b679.amd.js +0 -151
- package/.chunks/core-51f7b679.amd.js.map +0 -1
- package/.chunks/forms-245e3bc0.es.js +0 -565
- package/.chunks/forms-245e3bc0.es.js.map +0 -1
- package/.chunks/forms-f7b7b259.amd.js +0 -568
- package/.chunks/forms-f7b7b259.amd.js.map +0 -1
- package/.chunks/popup-8f650530.amd.js +0 -728
- package/.chunks/popup-8f650530.amd.js.map +0 -1
- package/.chunks/popup-d240ed19.es.js +0 -731
- package/.chunks/popup-d240ed19.es.js.map +0 -1
- package/editArea/editArea.amd.js +0 -126
- package/editArea/editArea.amd.js.map +0 -1
- package/editArea/editArea.js +0 -123
- package/editArea/editArea.js.map +0 -1
- package/editArea.css +0 -61
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { defineComponent as B, ref as y, watch as k, toRef as C, computed as I, openBlock as u, createElementBlock as V, normalizeClass as T, toDisplayString as c, createCommentVNode as v, createElementVNode as K, createVNode as b, withKeys as p, withModifiers as f, createBlock as E, withCtx as A, createTextVNode as $, mergeProps as w, renderSlot as M } from "vue";
|
|
2
|
+
import { T as H, B as h, _ as g, I as N } from "../.chunks/forms-6c397f5a.es.js";
|
|
3
|
+
const _ = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "top-editArea_title"
|
|
6
|
+
}, S = { class: "top-editArea_footer" }, U = /* @__PURE__ */ B({
|
|
7
|
+
__name: "editArea",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {},
|
|
10
|
+
title: {},
|
|
11
|
+
cancelText: { default: "Отмена" },
|
|
12
|
+
submitText: { default: "Отправить" },
|
|
13
|
+
attachToKeyboard: { type: Boolean },
|
|
14
|
+
name: {},
|
|
15
|
+
placeholder: {},
|
|
16
|
+
rows: {},
|
|
17
|
+
minHeight: {},
|
|
18
|
+
expandable: { type: Boolean, default: !0 },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
readonly: { type: Boolean },
|
|
21
|
+
isError: { type: Boolean },
|
|
22
|
+
hint: {}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:modelValue", "cancel"],
|
|
25
|
+
setup(m, { emit: i }) {
|
|
26
|
+
const l = m, t = y(""), o = y(l.modelValue);
|
|
27
|
+
k(C(l, "modelValue"), () => {
|
|
28
|
+
o.value = l.modelValue;
|
|
29
|
+
});
|
|
30
|
+
const d = I(() => o.value !== l.modelValue), r = (e) => {
|
|
31
|
+
i("update:modelValue", e);
|
|
32
|
+
}, n = () => {
|
|
33
|
+
i("cancel"), o.value = l.modelValue;
|
|
34
|
+
};
|
|
35
|
+
return (e, a) => (u(), V("div", {
|
|
36
|
+
class: T({
|
|
37
|
+
"top-editArea": !0,
|
|
38
|
+
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
39
|
+
})
|
|
40
|
+
}, [
|
|
41
|
+
e.title ? (u(), V("div", _, c(e.title), 1)) : v("", !0),
|
|
42
|
+
K("div", {
|
|
43
|
+
class: T({
|
|
44
|
+
"top-editArea_form": !0,
|
|
45
|
+
"top-error": e.isError,
|
|
46
|
+
"top-focus": t.value == "focus"
|
|
47
|
+
})
|
|
48
|
+
}, [
|
|
49
|
+
b(H, {
|
|
50
|
+
modelValue: o.value,
|
|
51
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s),
|
|
52
|
+
name: e.name,
|
|
53
|
+
placeholder: e.placeholder,
|
|
54
|
+
rows: e.rows,
|
|
55
|
+
minHeight: e.minHeight,
|
|
56
|
+
expandable: e.expandable,
|
|
57
|
+
disabled: e.disabled,
|
|
58
|
+
readonly: e.readonly,
|
|
59
|
+
isError: e.isError,
|
|
60
|
+
hint: e.hint,
|
|
61
|
+
class: "top-editArea_element",
|
|
62
|
+
onFocus: a[1] || (a[1] = (s) => t.value = "focus"),
|
|
63
|
+
onBlur: a[2] || (a[2] = (s) => t.value = ""),
|
|
64
|
+
onKeyup: [
|
|
65
|
+
p(n, ["esc"]),
|
|
66
|
+
a[3] || (a[3] = p(f((s) => r(o.value), ["ctrl"]), ["enter"]))
|
|
67
|
+
]
|
|
68
|
+
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint", "onKeyup"]),
|
|
69
|
+
K("div", S, [
|
|
70
|
+
d.value && (!e.attachToKeyboard || e.modelValue) ? (u(), E(h, {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: "top-editArea_button",
|
|
73
|
+
color: "theme",
|
|
74
|
+
icon: e.attachToKeyboard ? "" : "",
|
|
75
|
+
onClick: n
|
|
76
|
+
}, {
|
|
77
|
+
default: A(() => [
|
|
78
|
+
$(c(e.attachToKeyboard ? "" : e.cancelText), 1)
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["icon"])) : v("", !0),
|
|
82
|
+
b(h, {
|
|
83
|
+
class: "top-editArea_button",
|
|
84
|
+
icon: e.attachToKeyboard ? "" : "",
|
|
85
|
+
onClick: a[4] || (a[4] = (s) => r(o.value))
|
|
86
|
+
}, {
|
|
87
|
+
default: A(() => [
|
|
88
|
+
$(c(e.attachToKeyboard ? "" : e.submitText), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["icon"])
|
|
92
|
+
])
|
|
93
|
+
], 2)
|
|
94
|
+
], 2));
|
|
95
|
+
}
|
|
96
|
+
}), z = {
|
|
97
|
+
"top-editArea": "top-editArea",
|
|
98
|
+
"top-editArea_title": "top-editArea_title",
|
|
99
|
+
"top-editArea_form": "top-editArea_form",
|
|
100
|
+
"top-textarea": "top-textarea",
|
|
101
|
+
"top-editArea_element": "top-editArea_element",
|
|
102
|
+
"top-textarea_textarea": "top-textarea_textarea",
|
|
103
|
+
"top-editArea_footer": "top-editArea_footer",
|
|
104
|
+
"top-editArea-attachedToKeyboard": "top-editArea-attachedToKeyboard"
|
|
105
|
+
}, D = {
|
|
106
|
+
$style: z
|
|
107
|
+
}, J = /* @__PURE__ */ g(U, [["__cssModules", D]]), F = { class: "top-editInput" }, P = /* @__PURE__ */ B({
|
|
108
|
+
__name: "editInput",
|
|
109
|
+
props: {
|
|
110
|
+
modelValue: {},
|
|
111
|
+
input: {},
|
|
112
|
+
button: {}
|
|
113
|
+
},
|
|
114
|
+
emits: ["update:modelValue"],
|
|
115
|
+
setup(m, { emit: i }) {
|
|
116
|
+
const l = m, t = y(l.modelValue);
|
|
117
|
+
k(C(l.modelValue), () => {
|
|
118
|
+
t.value = l.modelValue;
|
|
119
|
+
});
|
|
120
|
+
const o = () => {
|
|
121
|
+
i("update:modelValue", t.value);
|
|
122
|
+
};
|
|
123
|
+
return (d, r) => (u(), V("div", F, [
|
|
124
|
+
b(N, w(d.input, {
|
|
125
|
+
onKeydownCapture: r[0] || (r[0] = p(f((n) => t.value = d.modelValue, ["stop"]), ["esc"])),
|
|
126
|
+
onKeydown: p(f(o, ["stop"]), ["enter"]),
|
|
127
|
+
modelValue: t.value,
|
|
128
|
+
"onUpdate:modelValue": r[1] || (r[1] = (n) => t.value = n)
|
|
129
|
+
}), null, 16, ["onKeydown", "modelValue"]),
|
|
130
|
+
t.value !== d.modelValue ? (u(), E(h, w({
|
|
131
|
+
key: 0,
|
|
132
|
+
icon: "",
|
|
133
|
+
styling: "soft"
|
|
134
|
+
}, d.button, { onClick: o }), {
|
|
135
|
+
default: A(() => [
|
|
136
|
+
M(d.$slots, "default")
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 16)) : v("", !0)
|
|
140
|
+
]));
|
|
141
|
+
}
|
|
142
|
+
}), R = {
|
|
143
|
+
"top-editInput": "top-editInput",
|
|
144
|
+
"top-input": "top-input"
|
|
145
|
+
}, j = {
|
|
146
|
+
$style: R
|
|
147
|
+
}, L = /* @__PURE__ */ g(P, [["__cssModules", j]]);
|
|
148
|
+
export {
|
|
149
|
+
J as EditArea,
|
|
150
|
+
L as EditInput
|
|
151
|
+
};
|
|
152
|
+
//# sourceMappingURL=formsExt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formsExt.js","sources":["../../src/components/formsExt/editArea/editArea.vue","../../src/components/formsExt/editInput/editInput.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>"],"names":["state","ref","localValue","props","watch","toRef","isChanged","computed","submit","value","emit","cancel","intermediateValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;iBAgBMA,IAAQC,EAAI,EAAE,GAKdC,IAAaD,EAAIE,EAAM,UAAU;AAEvC,IAAAC,EAAMC,EAAMF,GAAO,YAAY,GAAG,MAAM;AACvC,MAAAD,EAAW,QAAQC,EAAM;AAAA,IAAA,CACzB;AAED,UAAMG,IAAYC,EAAS,MAAML,EAAW,UAAUC,EAAM,UAAU,GAEhEK,IAAS,CAACC,MAAkB;AACjC,MAAAC,EAAK,qBAAqBD,CAAK;AAAA,IAAA,GAG1BE,IAAS,MAAM;AACpB,MAAAD,EAAK,QAAQ,GAGbR,EAAW,QAAQC,EAAM;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBC7BpBS,IAAoBX,EAAIE,EAAM,UAAU;AAE9C,IAAAC,EAAMC,EAAMF,EAAM,UAAU,GAAG,MAAM;AACpC,MAAAS,EAAkB,QAAQT,EAAM;AAAA,IAAA,CAChC;AAID,UAAMK,IAAS,MAAM;AACf,MAAAE,EAAA,qBAAqBE,EAAkB,KAAK;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/formsExt.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.top-editArea{display:flex;flex-direction:column;gap:6px}.top-editArea_title{font-size:12px}.top-editArea_form{background:var(--top-forms-background-color);outline-color:var(--color-theme-75);outline-offset:0;display:flex;flex-direction:column}.top-editArea_form:hover{background:var(--top-forms-background-color-hover)}.top-textarea{width:100%}.top-editArea_element.top-textarea_textarea{border:none;outline:none;animation:none}.top-editArea_footer{padding:var(--top-forms-padding);display:flex;justify-content:flex-end;gap:var(--top-forms-padding)}.top-editArea-attachedToKeyboard{background:var(--top-forms-background-color);margin-bottom:env(keyboard-inset-height,0);position:fixed;bottom:0;right:0;left:0;z-index:2;gap:0}.top-editArea-attachedToKeyboard .top-editArea_form{border-radius:0;border:none;border-top:1px solid var(--top-forms-border-color)}.top-editArea-attachedToKeyboard .top-editArea_title{border-top:1px solid var(--color-line-2-opacity);padding:var(--top-forms-padding)}.top-editArea-attachedToKeyboard .top-editArea_footer>[data-top-icon]{border-radius:100%}.top-editInput{width:220px;flex-grow:1;display:flex;align-items:flex-end;gap:var(--top-gap-1)}.top-editInput .top-input{width:unset;flex-grow:1}
|
|
@@ -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
|
+
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
if (!('boxShadow' in document.body.style)) {
|
|
2
|
-
document.body.setAttribute('class', 'noBoxShadow');
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
document.body.addEventListener("click", function(e) {
|
|
6
|
-
var target = e.target;
|
|
7
|
-
if (target.tagName === "INPUT" &&
|
|
8
|
-
target.getAttribute('class').indexOf('liga') === -1) {
|
|
9
|
-
target.select();
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
(function() {
|
|
14
|
-
var fontSize = document.getElementById('fontSize'),
|
|
15
|
-
testDrive = document.getElementById('testDrive'),
|
|
16
|
-
testText = document.getElementById('testText');
|
|
17
|
-
function updateTest() {
|
|
18
|
-
testDrive.innerHTML = testText.value || String.fromCharCode(160);
|
|
19
|
-
if (window.icomoonLiga) {
|
|
20
|
-
window.icomoonLiga(testDrive);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function updateSize() {
|
|
24
|
-
testDrive.style.fontSize = fontSize.value + 'px';
|
|
25
|
-
}
|
|
26
|
-
fontSize.addEventListener('change', updateSize, false);
|
|
27
|
-
testText.addEventListener('input', updateTest, false);
|
|
28
|
-
testText.addEventListener('change', updateTest, false);
|
|
29
|
-
updateSize();
|
|
30
|
-
}());
|
|
1
|
+
if (!('boxShadow' in document.body.style)) {
|
|
2
|
+
document.body.setAttribute('class', 'noBoxShadow');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
document.body.addEventListener("click", function(e) {
|
|
6
|
+
var target = e.target;
|
|
7
|
+
if (target.tagName === "INPUT" &&
|
|
8
|
+
target.getAttribute('class').indexOf('liga') === -1) {
|
|
9
|
+
target.select();
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
(function() {
|
|
14
|
+
var fontSize = document.getElementById('fontSize'),
|
|
15
|
+
testDrive = document.getElementById('testDrive'),
|
|
16
|
+
testText = document.getElementById('testText');
|
|
17
|
+
function updateTest() {
|
|
18
|
+
testDrive.innerHTML = testText.value || String.fromCharCode(160);
|
|
19
|
+
if (window.icomoonLiga) {
|
|
20
|
+
window.icomoonLiga(testDrive);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function updateSize() {
|
|
24
|
+
testDrive.style.fontSize = fontSize.value + 'px';
|
|
25
|
+
}
|
|
26
|
+
fontSize.addEventListener('change', updateSize, false);
|
|
27
|
+
testText.addEventListener('input', updateTest, false);
|
|
28
|
+
testText.addEventListener('change', updateTest, false);
|
|
29
|
+
updateSize();
|
|
30
|
+
}());
|