@topvisor/ui 1.0.10 → 1.0.11-fix-genDate
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-BLzgmRwE.amd.js +248 -0
- package/.chunks/datepicker-BLzgmRwE.amd.js.map +1 -0
- package/.chunks/datepicker-C0DMEWk5.es.js +290 -0
- package/.chunks/datepicker-C0DMEWk5.es.js.map +1 -0
- package/.chunks/{forms-B6DA2YGV.es.js → forms-6Z3p_rjQ.es.js} +178 -177
- package/.chunks/forms-6Z3p_rjQ.es.js.map +1 -0
- package/.chunks/{forms-BOqxOjGU.amd.js → forms-VHBOI0dh.amd.js} +3 -3
- package/.chunks/forms-VHBOI0dh.amd.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CILdtVxX.es.js → listItem.vue_vue_type_script_setup_true_lang-D5L98ivn.es.js} +2 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-D5L98ivn.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DNqgt-07.amd.js → listItem.vue_vue_type_script_setup_true_lang-vJr-aboH.amd.js} +2 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-vJr-aboH.amd.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-teY0us7_.amd.js → menu.vue_vue_type_style_index_0_lang-CIdtKoU3.amd.js} +2 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-CIdtKoU3.amd.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DNejp6r9.es.js → menu.vue_vue_type_style_index_0_lang-KS0ds5K9.es.js} +2 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-KS0ds5K9.es.js.map +1 -0
- package/.chunks/{notice-CEj6I4uX.es.js → notice-CPsMulgd.es.js} +65 -62
- package/.chunks/notice-CPsMulgd.es.js.map +1 -0
- package/.chunks/notice-CbblAkRb.amd.js +4 -0
- package/.chunks/notice-CbblAkRb.amd.js.map +1 -0
- package/.chunks/{popup-DBBa2Ki8.amd.js → popup-DiC5JWsJ.amd.js} +448 -448
- package/.chunks/popup-DiC5JWsJ.amd.js.map +1 -0
- package/.chunks/{popup-JjVFt_2L.es.js → popup-Wzy_7sXf.es.js} +491 -491
- package/.chunks/popup-Wzy_7sXf.es.js.map +1 -0
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
- package/.chunks/store-esTid5oI.amd.js.map +1 -1
- package/README.md +86 -86
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/notice.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/charts/charts.js.map +1 -1
- package/components/project/selectorRegion/utils/utils.d.ts +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +3 -3
- package/core/app.js.map +1 -1
- package/core/utils/date.d.ts +8 -3
- 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 +2 -2
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Read Me.txt +7 -7
- package/icomoon/Topvisor icons.json +5845 -5845
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +3379 -3379
- package/icomoon/fonts/Topvisor-2.svg +263 -263
- package/icomoon/style.css +740 -740
- package/package.json +33 -33
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +2 -2
- 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 +2 -2
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +3 -3
- package/project/project.js.map +1 -1
- package/require/css.amd.js +12 -12
- package/tabs/tabs.amd.js.map +1 -1
- 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 +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.js +6 -6
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.js.map +1 -1
- 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.map +1 -1
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js.map +1 -1
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/number.amd.js.map +1 -1
- package/utils/number.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js +1 -1
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js.map +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +1 -1
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js.map +1 -1
- package/web-types.json +89 -89
- package/.chunks/datepicker-ByWpmP7C.amd.js +0 -248
- package/.chunks/datepicker-ByWpmP7C.amd.js.map +0 -1
- package/.chunks/datepicker-CqM_Jrot.es.js +0 -290
- package/.chunks/datepicker-CqM_Jrot.es.js.map +0 -1
- package/.chunks/forms-B6DA2YGV.es.js.map +0 -1
- package/.chunks/forms-BOqxOjGU.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CILdtVxX.es.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DNqgt-07.amd.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DNejp6r9.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-teY0us7_.amd.js.map +0 -1
- package/.chunks/notice-CEj6I4uX.es.js.map +0 -1
- package/.chunks/notice-DTreV5av.amd.js +0 -4
- package/.chunks/notice-DTreV5av.amd.js.map +0 -1
- package/.chunks/popup-DBBa2Ki8.amd.js.map +0 -1
- package/.chunks/popup-JjVFt_2L.es.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as f, e as P } from "./forms-
|
|
2
|
-
import
|
|
1
|
+
import { C as f, e as P } from "./forms-6Z3p_rjQ.es.js";
|
|
2
|
+
import n from "../utils/dom.js";
|
|
3
3
|
import { TopPopupWorker as s } from "../popup/worker.js";
|
|
4
4
|
class x {
|
|
5
5
|
static componentName = "Top";
|
|
@@ -28,11 +28,11 @@ class x {
|
|
|
28
28
|
}
|
|
29
29
|
// получить инициированный компонент
|
|
30
30
|
static getComponent(t, p) {
|
|
31
|
-
return
|
|
31
|
+
return n.storage(t, "#" + p);
|
|
32
32
|
}
|
|
33
33
|
// устанвоить компонент
|
|
34
34
|
_setComponent(t) {
|
|
35
|
-
|
|
35
|
+
n.storage(t, "#" + this.componentName, this);
|
|
36
36
|
}
|
|
37
37
|
// функция подключения компонента
|
|
38
38
|
mount() {
|
|
@@ -40,7 +40,7 @@ class x {
|
|
|
40
40
|
}
|
|
41
41
|
// функция отключения компонента
|
|
42
42
|
unmount() {
|
|
43
|
-
|
|
43
|
+
n.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
|
|
44
44
|
t.remove();
|
|
45
45
|
}), this.unmountEls = [], this.unmountEvents.forEach((t) => {
|
|
46
46
|
t.el.removeEventListener(t.type, t.listener, t.options);
|
|
@@ -56,13 +56,13 @@ class x {
|
|
|
56
56
|
}
|
|
57
57
|
// указание новые события, которые должны будут удалиться после unmount
|
|
58
58
|
registerEventForUnmount(t, p, o, e) {
|
|
59
|
-
const
|
|
59
|
+
const r = {
|
|
60
60
|
el: t,
|
|
61
61
|
type: p,
|
|
62
62
|
listener: o,
|
|
63
63
|
options: e
|
|
64
64
|
};
|
|
65
|
-
this.unmountEvents.push(
|
|
65
|
+
this.unmountEvents.push(r);
|
|
66
66
|
}
|
|
67
67
|
// функция перенастройки уже подключенного компонента
|
|
68
68
|
reInit(t) {
|
|
@@ -106,8 +106,8 @@ class w {
|
|
|
106
106
|
if (!e || p.matches(".top-popup-noCloser"))
|
|
107
107
|
return;
|
|
108
108
|
if (p.getAttribute("href") === "." && t.preventDefault(), t.target.matches("[data-top-popup]")) {
|
|
109
|
-
const
|
|
110
|
-
|
|
109
|
+
const r = t.target.closest("ul"), i = t.target.closest("a, .a");
|
|
110
|
+
r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), i && i.classList.add("top-active");
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
s.close(e);
|
|
@@ -121,7 +121,7 @@ class w {
|
|
|
121
121
|
* Глобальный обработчик нажатия кнопки на клавиатуре
|
|
122
122
|
*/
|
|
123
123
|
static onkeydown(t) {
|
|
124
|
-
var e,
|
|
124
|
+
var e, r;
|
|
125
125
|
if (!(t.target instanceof HTMLElement)) return;
|
|
126
126
|
const p = t.target.closest(".top-popup-wrapper");
|
|
127
127
|
if (!p)
|
|
@@ -133,19 +133,19 @@ class w {
|
|
|
133
133
|
break;
|
|
134
134
|
case "Enter":
|
|
135
135
|
if (!o) {
|
|
136
|
-
if (
|
|
136
|
+
if (n.querySelectorVisible(p, ".preloader"))
|
|
137
137
|
break;
|
|
138
|
-
const c =
|
|
138
|
+
const c = n.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
|
|
139
139
|
if (c instanceof HTMLElement) {
|
|
140
140
|
c.click();
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
|
-
const m =
|
|
143
|
+
const m = n.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
|
|
144
144
|
m instanceof HTMLElement && m.click();
|
|
145
145
|
break;
|
|
146
146
|
}
|
|
147
|
-
const
|
|
148
|
-
|
|
147
|
+
const i = n.querySelectorVisible(p, "li > a.top-active");
|
|
148
|
+
i && i.getAttribute("href") && (t.preventDefault(), location.href = i.getAttribute("href"));
|
|
149
149
|
const u = p.querySelector("li > .top-active");
|
|
150
150
|
u instanceof HTMLElement && u.click();
|
|
151
151
|
break;
|
|
@@ -155,7 +155,7 @@ class w {
|
|
|
155
155
|
case "ArrowLeft":
|
|
156
156
|
if (!o)
|
|
157
157
|
break;
|
|
158
|
-
t.key === "ArrowRight" || t.key === "ArrowLeft" ?
|
|
158
|
+
t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(
|
|
159
159
|
p,
|
|
160
160
|
"ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore"
|
|
161
161
|
) && t.preventDefault() : t.preventDefault();
|
|
@@ -165,7 +165,7 @@ class w {
|
|
|
165
165
|
if (c instanceof HTMLElement)
|
|
166
166
|
return c.click();
|
|
167
167
|
}
|
|
168
|
-
const d =
|
|
168
|
+
const d = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), h = d.length;
|
|
169
169
|
if (!h)
|
|
170
170
|
return;
|
|
171
171
|
let a = -1;
|
|
@@ -173,457 +173,457 @@ class w {
|
|
|
173
173
|
return t.target.matches("input") ? void 0 : s.close(p);
|
|
174
174
|
if (t.key === "ArrowRight" && a === h)
|
|
175
175
|
return;
|
|
176
|
-
a < 0 && (a = h - 1), a > h - 1 && (a = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), (
|
|
176
|
+
a < 0 && (a = h - 1), a > h - 1 && (a = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), (r = d[a].querySelector(":scope > a, :scope > .a")) == null || r.classList.add("top-active"), s.scrollToActive(p);
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
const y = `:root {
|
|
182
|
-
--top-popup-z-index: 200000
|
|
183
|
-
--top-popup-transition-delay: 100ms
|
|
184
|
-
|
|
185
|
-
--top-popup-background-color: var(--color-layout-front-1)
|
|
186
|
-
--top-popup-background-color-hover: var(--color-layout-front-3)
|
|
187
|
-
--top-popup-background-color-active: var(--color-layout-front-4)
|
|
188
|
-
|
|
189
|
-
--top-popup-border-color: var(--color-line-2-opacity)
|
|
190
|
-
--top-popup-title-background-color: var(--color-layer-1)
|
|
191
|
-
|
|
192
|
-
/* суммарный отсуп от каря popup до элемента
|
|
193
|
-
--top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding))
|
|
194
|
-
|
|
195
|
-
/* списки
|
|
196
|
-
--top-popup-list-padding: var(--top-padding-2)
|
|
197
|
-
|
|
198
|
-
--top-popup-listItem-radius: var(--top-radius-2)
|
|
199
|
-
--top-popup-listItem-padding: var(--top-padding-2)
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.top-popup-front { position: relative; }
|
|
203
|
-
|
|
204
|
-
.top-popup-wrapper {
|
|
205
|
-
/* см. recalcPosition()
|
|
206
|
-
--top-popup-height: 0px
|
|
207
|
-
--top-popup-right-bounding: 0px
|
|
208
|
-
--top-popup-bottom-bounding: 0px
|
|
209
|
-
--top-popup-top: 0px
|
|
210
|
-
--top-popup-right: calc(100vw - var(--top-popup-right-bounding))
|
|
211
|
-
--top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding))
|
|
212
|
-
--top-popup-left: 0px
|
|
213
|
-
|
|
214
|
-
text-align: initial; white-space: normal; word-break: normal
|
|
215
|
-
position: absolute; z-index: 200000
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }
|
|
219
|
-
|
|
220
|
-
/* top-popupPanel
|
|
221
|
-
.top-popupPanel {
|
|
222
|
-
cursor: default
|
|
223
|
-
box-shadow: var(--top-shadow-b)
|
|
224
|
-
border-radius: 14px
|
|
225
|
-
background: var(--top-popup-background-color)
|
|
226
|
-
position: absolute; overflow: hidden
|
|
227
|
-
display: flex; flex-direction: column
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/* position
|
|
231
|
-
.top-popup-wrapper > * {
|
|
232
|
-
opacity: 0
|
|
233
|
-
transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.top-popup-wrapper.p0 > * { transform: translateY(-8px); }
|
|
237
|
-
|
|
238
|
-
.top-popup-wrapper.p1 > * { transform: translateY(8px); }
|
|
239
|
-
|
|
240
|
-
.top-popup-wrapper.p2 > * { transform: translateX(8px); }
|
|
241
|
-
|
|
242
|
-
.top-popup-wrapper.p3 > * { transform: translateY(8px); }
|
|
243
|
-
|
|
244
|
-
.top-popup-wrapper.p4 > * { transform: translateX(-8px); }
|
|
245
|
-
|
|
246
|
-
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}
|
|
247
|
-
|
|
248
|
-
.top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }
|
|
249
|
-
|
|
250
|
-
.top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }
|
|
251
|
-
|
|
252
|
-
.top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }
|
|
253
|
-
|
|
254
|
-
.top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }
|
|
255
|
-
|
|
256
|
-
.top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }
|
|
257
|
-
|
|
258
|
-
.top-popup-wrapper.p2 > .top-popup
|
|
259
|
-
.top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }
|
|
260
|
-
|
|
261
|
-
.top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }
|
|
262
|
-
|
|
263
|
-
.top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }
|
|
264
|
-
|
|
265
|
-
.top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }
|
|
266
|
-
|
|
267
|
-
.top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }
|
|
268
|
-
|
|
269
|
-
.top-popup-wrapper.invert-x > .top-popup { right: 0; }
|
|
270
|
-
|
|
271
|
-
.top-popup-wrapper.invert-y > .top-popup { bottom: 0; }
|
|
272
|
-
|
|
273
|
-
/* notch
|
|
274
|
-
.top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }
|
|
275
|
-
|
|
276
|
-
.top-popup-wrapper.p1 > .notch { border-bottom: 0; border-top: 7.4px solid var(--color-layout-front-1); margin: 0 0 7.4px -7.4px; bottom: 100%; left: 50% }
|
|
277
|
-
|
|
278
|
-
.top-popup-wrapper.p2 > .notch { border-left: 0; border-right: 7.4px solid var(--color-layout-front-1); margin: 0 0 -7.4px 7.4px; bottom: 50%; left: 100%; }
|
|
279
|
-
|
|
280
|
-
.top-popup-wrapper.p3 > .notch { border-top: 0; border-bottom: 7.4px solid var(--color-layout-front-1); margin: 7.4px 0 0 -7.4px; top: 100%; left: 50%; }
|
|
281
|
-
|
|
282
|
-
.top-popup-wrapper.p4 > .notch { border-right: 0; border-left: 7.4px solid var(--color-layout-front-1); margin: 0 7.4px -7.4px 0; bottom: 50%; right: 100%; }
|
|
283
|
-
|
|
284
|
-
.top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }
|
|
285
|
-
|
|
286
|
-
.top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }
|
|
287
|
-
|
|
288
|
-
.top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }
|
|
289
|
-
|
|
290
|
-
.top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }
|
|
291
|
-
|
|
292
|
-
/* common
|
|
293
|
-
.top-popup_header
|
|
294
|
-
.top-popup_content
|
|
295
|
-
.top-popup_footer { font-size: 14px; }
|
|
296
|
-
|
|
297
|
-
.top-popup_header
|
|
298
|
-
.top-popup_footer { display: flex; align-items: center; justify-content: space-between; }
|
|
299
|
-
|
|
300
|
-
/* header
|
|
301
|
-
.top-popup_header {
|
|
302
|
-
color: var(--color-text-1)
|
|
303
|
-
border-bottom: 1px solid var(--top-popup-border-color)
|
|
304
|
-
padding: var(--top-padding-3)
|
|
305
|
-
font-weight: 600
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.top-popup_header > * { font-weight: 400; }
|
|
309
|
-
|
|
310
|
-
.top-popup_header > .a { cursor: pointer;}
|
|
311
|
-
|
|
312
|
-
.top-popup_header > .a:hover { color: var(--color-text-primary); }
|
|
313
|
-
|
|
314
|
-
.top-popup_headerButton { width: 60px; }
|
|
315
|
-
|
|
316
|
-
/* widget
|
|
317
|
-
.top-popup_widget {
|
|
318
|
-
padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2)
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/* content
|
|
322
|
-
.top-popup_content {
|
|
323
|
-
margin: 0
|
|
324
|
-
flex-grow: 1
|
|
325
|
-
overflow-y: auto
|
|
326
|
-
display: flex
|
|
327
|
-
flex-direction: column
|
|
328
|
-
gap: var(--top-gap-4)
|
|
329
|
-
|
|
330
|
-
-webkit-overflow-scrolling: touch
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
div.top-popup_content {
|
|
334
|
-
color: var(--color-text-1)
|
|
335
|
-
padding: var(--top-popup-content-padding)
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
div.top-popup_content > * { flex-shrink: 0; }
|
|
339
|
-
|
|
340
|
-
div.top-popup_content > .top-button { margin: 0; }
|
|
341
|
-
|
|
342
|
-
div.top-popup_content .top-unwrap {
|
|
343
|
-
--top-unwrap-x: var(--top-popup-content-padding)
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
ul.top-popup_content {
|
|
347
|
-
color: var(--color-text-1)
|
|
348
|
-
padding: var(--top-popup-list-padding)
|
|
349
|
-
gap: 2px
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
ul.top-popup_content .top-unwrap {
|
|
353
|
-
--top-unwrap-x: var(--top-popup-list-padding)
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.top-popup_listItem {
|
|
357
|
-
border-radius: var(--top-popup-listItem-radius)
|
|
358
|
-
padding: var(--top-popup-listItem-padding)
|
|
359
|
-
line-height: 1 !important
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }
|
|
363
|
-
|
|
364
|
-
ul.top-popup_content li > * { flex-grow: 1; }
|
|
365
|
-
|
|
366
|
-
ul.top-popup_content li > a:not(.top-button)
|
|
367
|
-
ul.top-popup_content li > .a {
|
|
368
|
-
cursor: pointer
|
|
369
|
-
box-sizing: border-box
|
|
370
|
-
border-radius: var(--top-popup-listItem-radius)
|
|
371
|
-
background: var(--top-popup-background-color)
|
|
372
|
-
padding: var(--top-popup-listItem-padding)
|
|
373
|
-
color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal
|
|
374
|
-
line-height: 1 !important
|
|
375
|
-
display: flex; flex: 1 1 100%; align-items: center
|
|
376
|
-
transition: background-color 0.1s ease-in-out
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button)
|
|
380
|
-
.top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }
|
|
381
|
-
|
|
382
|
-
ul.top-popup_content li > a:not(.top-button):hover
|
|
383
|
-
ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }
|
|
384
|
-
|
|
385
|
-
ul.top-popup_content li > a:not(.top-button).top-active
|
|
386
|
-
ul.top-popup_content li > .a.top-active {
|
|
387
|
-
--top-icon-color: var(--color-text-primary) !important
|
|
388
|
-
|
|
389
|
-
background: var(--top-popup-background-color-active)
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.top-popup_content + .top-popup_content { padding-top: 0; }
|
|
393
|
-
|
|
394
|
-
/* listTitle
|
|
395
|
-
.top-popup_listItem-title {
|
|
396
|
-
background: var(--color-layer-1)
|
|
397
|
-
color: var(--color-text-1); font-size: 12px
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/* listDelimiter
|
|
401
|
-
.top-popup_listItem-delimiter {
|
|
402
|
-
border-radius: 3px
|
|
403
|
-
background: var(--top-popup-border-color)
|
|
404
|
-
height: 1px
|
|
405
|
-
padding: 0
|
|
406
|
-
margin: 4px
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/* listMore
|
|
410
|
-
.top-popup_listMore {
|
|
411
|
-
font-size: 20px
|
|
412
|
-
margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.top-popup_listMore.top-button { margin: 0; }
|
|
416
|
-
|
|
417
|
-
ul.top-popup_content li > .a.top-popup_listMore {
|
|
418
|
-
text-align: center
|
|
419
|
-
flex-basis: 10px
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-text-2); }
|
|
423
|
-
|
|
424
|
-
ul.top-popup_content li > * > .top-popup_listMore {
|
|
425
|
-
margin-left: auto
|
|
426
|
-
color: var(--color-layer-4)
|
|
427
|
-
font-size: 14px
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
ul.top-popup_content li > * > i.top-popup_listMore:hover
|
|
431
|
-
ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary); }
|
|
432
|
-
|
|
433
|
-
ul.top-popup_content li > * > i.top-popup_listMore:before {
|
|
434
|
-
transform: rotate(90deg)
|
|
435
|
-
display: block
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
ul.top-popup_content li a.close { background: none !important; }
|
|
439
|
-
|
|
440
|
-
/* data-top-icon
|
|
441
|
-
.top-popup_content > [data-top-icon]:before {
|
|
442
|
-
--top-icon-size: 20px
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
ul.top-popup_content li > [data-top-icon]:not(.top-button) {
|
|
446
|
-
--top-icon-color: var(--color-text-3)
|
|
447
|
-
--top-icon-size: 20px
|
|
448
|
-
--top-icon-width: 20px
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
ul.top-popup_content li > [data-top-icon]:not(.top-button):before {
|
|
452
|
-
height: 1rem; margin-right: 8px; transition: color 0.1s
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
ul.top-popup_content li:hover > [data-top-icon]:not(.top-button) {
|
|
456
|
-
--top-icon-color: var(--color-text-2)
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/* footer
|
|
460
|
-
.top-popup_footer {
|
|
461
|
-
/*padding: var(--top-popup-list-padding)
|
|
462
|
-
padding: var(--top-padding-3)
|
|
463
|
-
border-top: 1px solid var(--top-popup-border-color)
|
|
464
|
-
display: flex
|
|
465
|
-
gap: var(--top-gap-2)
|
|
466
|
-
justify-content: flex-end
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/* footerSupportLink
|
|
470
|
-
.top-popup_footerSupportLink {
|
|
471
|
-
margin-right: auto
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/* Виджеты
|
|
475
|
-
.top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }
|
|
476
|
-
|
|
477
|
-
.top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }
|
|
478
|
-
|
|
479
|
-
.top-popup .placeholder {
|
|
480
|
-
border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1
|
|
481
|
-
position: relative
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/* компоненты
|
|
485
|
-
.top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }
|
|
486
|
-
|
|
487
|
-
.top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }
|
|
488
|
-
|
|
489
|
-
html .top-popup .top-popup_content li > .top-button {
|
|
490
|
-
margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding)
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.top-popup li .check_all
|
|
494
|
-
.top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary); padding: 8px; display: inline-block; }
|
|
495
|
-
|
|
496
|
-
.top-popup li .check_all:hover
|
|
497
|
-
.top-popup li .clear_all:hover { text-decoration: underline; }
|
|
498
|
-
|
|
499
|
-
.top-popup li .clear_all { display: none; }
|
|
500
|
-
|
|
501
|
-
/* table
|
|
502
|
-
.top-popup_content table { margin: -9px 0; }
|
|
503
|
-
|
|
504
|
-
.top-popup_content table td
|
|
505
|
-
.top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
|
|
506
|
-
|
|
507
|
-
.top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }
|
|
508
|
-
|
|
509
|
-
/* формы
|
|
510
|
-
ul.top-popup_content .a > [type="checkbox"]
|
|
511
|
-
ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }
|
|
512
|
-
|
|
513
|
-
/* deprecated
|
|
514
|
-
ul.top-popup_content a > [class*=icon]
|
|
515
|
-
ul.top-popup_content i.a > [class*=icon] {
|
|
516
|
-
transition: 0.1s
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
.top-popup .buttons { border-radius: 0 0 4px 4px; border-top: 1px solid #BDC3C7; background: #ECF0F1; padding: 10px 15px; margin: 10px -15px -10px -15px; white-space: nowrap; }
|
|
520
|
-
|
|
521
|
-
.top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }
|
|
522
|
-
|
|
523
|
-
.top-popup_footer [class*=btn]:first-child { margin-left: 0; }
|
|
524
|
-
|
|
525
|
-
.top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }
|
|
526
|
-
`, _ = `:root {
|
|
527
|
-
--top-popup-list-padding: 0px
|
|
528
|
-
|
|
529
|
-
--top-popup-listItem-radius: 0px
|
|
530
|
-
--top-popup-listItem-padding: var(--top-padding-4)
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
html.with_popup { background: #808080; }
|
|
534
|
-
|
|
535
|
-
.top-popup-wrapper {
|
|
536
|
-
--top-popup-footer-offset: 25px
|
|
537
|
-
|
|
538
|
-
width: auto !important; height: auto !important
|
|
539
|
-
position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden
|
|
540
|
-
transition: background 0.3s
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(1px); }
|
|
544
|
-
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup { opacity: 1 !important; }
|
|
545
|
-
|
|
546
|
-
.top-popup {
|
|
547
|
-
border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height, 0px) - var(--toolbar-height, 0px) - 12px); margin: 0 !important
|
|
548
|
-
top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important
|
|
549
|
-
display: flex; flex-direction: column
|
|
550
|
-
|
|
551
|
-
/* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%)
|
|
552
|
-
transform: translateY(80%)
|
|
553
|
-
|
|
554
|
-
transition: opacity 0.3s, transform 0.3s
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/* from top
|
|
558
|
-
.top-popup-wrapper.p-from-top {
|
|
559
|
-
--top-popup-footer-offset: 0px
|
|
560
|
-
|
|
561
|
-
top: var(--header-height, 0px) !important
|
|
562
|
-
}
|
|
563
|
-
.with_dialog .top-popup-wrapper.p-from-top { top: 50px !important; }
|
|
564
|
-
.top-popup-wrapper.p-from-top > .top-popup {
|
|
565
|
-
border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important
|
|
566
|
-
transform: translateY(calc(-100% - 24px))
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/* widget
|
|
570
|
-
.top-popup_widget { padding: var(--top-padding-2);}
|
|
571
|
-
.top-popup_widget:not(.p-from-top) { order: 10; }
|
|
572
|
-
|
|
573
|
-
/* content
|
|
574
|
-
ul.top-popup_content {
|
|
575
|
-
gap: 0
|
|
576
|
-
}
|
|
577
|
-
ul.top-popup_content li:not(:last-child) { border-bottom: 1px solid var(--top-popup-border-color); }
|
|
578
|
-
|
|
579
|
-
.top-popup-wrapper.top-style_alt > .top-popup > ul > li { border-bottom: none; }
|
|
580
|
-
|
|
581
|
-
/* footer
|
|
582
|
-
.top-popup_footer {
|
|
583
|
-
flex-direction: column-reverse
|
|
584
|
-
}
|
|
585
|
-
.top-popup_footer > .top-button {
|
|
586
|
-
--top-forms-base-height: var(--top-forms-base-height_l)
|
|
587
|
-
|
|
588
|
-
width: 100
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
/* listTitle
|
|
592
|
-
ul.top-popup_content .top-popup_listItem-title {
|
|
593
|
-
--top-popup-padding-v: 12px
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/* listDelimiter
|
|
597
|
-
ul.top-popup_content .top-popup_listItem-delimiter { background: var(--color-line-1-opacity); height: 4px; margin: 0; }
|
|
598
|
-
ul.top-popup_content li:first-child > .top-popup_listItem-delimiter { border-top: 1px solid var(--top-popup-border-color); }
|
|
599
|
-
`, L = `html:not(.with_dialog) { margin-right: 0 !important; }
|
|
600
|
-
|
|
601
|
-
.top-popup { min-width: 250px; max-width: calc(100vw - var(--top-popup-left) - 16px); max-height: calc(var(--top-popup-bottom) + var(--top-popup-height)); }
|
|
602
|
-
.top-popup-wrapper.invert-x > .top-popup { max-width: calc(100vw - var(--top-popup-right) - 16px); }
|
|
603
|
-
.top-popup-wrapper.invert-y > .top-popup { max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
|
|
604
|
-
|
|
605
|
-
/* position
|
|
606
|
-
.top-popup-wrapper.p1 > .top-popup { max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }
|
|
607
|
-
.top-popup-wrapper.p3 > .top-popup { max-height: calc(var(--top-popup-bottom) - 16px); }
|
|
608
|
-
.top-popup-wrapper.p2 > .top-popup { max-width: calc(var(--top-popup-right) - 16px); }
|
|
609
|
-
.top-popup-wrapper.p4 > .top-popup { max-width: calc(var(--top-popup-left) - 16px); }
|
|
610
|
-
|
|
611
|
-
/* notch
|
|
612
|
-
.top-popup-wrapper.p1.with_notch > .top-popup
|
|
613
|
-
.top-popup-wrapper.p3.with_notch > .top-popup { margin-left: -16px !important; }
|
|
614
|
-
.top-popup-wrapper.p1.with_notch > .notch
|
|
615
|
-
.top-popup-wrapper.p3.with_notch > .notch { margin-left: -8px !important; }
|
|
616
|
-
|
|
617
|
-
.top-popup-wrapper.p1.with_notch.invert-x
|
|
618
|
-
.top-popup-wrapper.p3.with_notch.invert-x { margin-left: 3px !important; }
|
|
619
|
-
.top-popup-wrapper.p1.with_notch.invert-x > .notch
|
|
620
|
-
.top-popup-wrapper.p3.with_notch.invert-x > .notch { margin-left: -9px !important; }
|
|
621
|
-
|
|
622
|
-
/* listMore
|
|
623
|
-
ul.top-popup_content li > * > i.top-popup_listMore { visibility: hidden; transition: none; }
|
|
624
|
-
ul.top-popup_content li:hover > * > i.top-popup_listMore
|
|
625
|
-
ul.top-popup_content li > *.top-active > i.top-popup_listMore
|
|
626
|
-
ul.top-popup_content li > * > i.top-popup_listMore.top-active { visibility: visible; }
|
|
181
|
+
const y = `:root {
|
|
182
|
+
--top-popup-z-index: 200000;
|
|
183
|
+
--top-popup-transition-delay: 100ms;
|
|
184
|
+
|
|
185
|
+
--top-popup-background-color: var(--color-layout-front-1);
|
|
186
|
+
--top-popup-background-color-hover: var(--color-layout-front-3);
|
|
187
|
+
--top-popup-background-color-active: var(--color-layout-front-4);
|
|
188
|
+
|
|
189
|
+
--top-popup-border-color: var(--color-line-2-opacity);
|
|
190
|
+
--top-popup-title-background-color: var(--color-layer-1);
|
|
191
|
+
|
|
192
|
+
/* суммарный отсуп от каря popup до элемента */
|
|
193
|
+
--top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));
|
|
194
|
+
|
|
195
|
+
/* списки */
|
|
196
|
+
--top-popup-list-padding: var(--top-padding-2);
|
|
197
|
+
|
|
198
|
+
--top-popup-listItem-radius: var(--top-radius-2);
|
|
199
|
+
--top-popup-listItem-padding: var(--top-padding-2);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.top-popup-front { position: relative; }
|
|
203
|
+
|
|
204
|
+
.top-popup-wrapper {
|
|
205
|
+
/* см. recalcPosition() */
|
|
206
|
+
--top-popup-height: 0px;
|
|
207
|
+
--top-popup-right-bounding: 0px;
|
|
208
|
+
--top-popup-bottom-bounding: 0px;
|
|
209
|
+
--top-popup-top: 0px;
|
|
210
|
+
--top-popup-right: calc(100vw - var(--top-popup-right-bounding));
|
|
211
|
+
--top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
|
|
212
|
+
--top-popup-left: 0px;
|
|
213
|
+
|
|
214
|
+
text-align: initial; white-space: normal; word-break: normal;
|
|
215
|
+
position: absolute; z-index: 200000;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.top-popup-wrapper:not(.top-popup-wrapper-shown) { overflow: hidden; }
|
|
219
|
+
|
|
220
|
+
/* top-popupPanel */
|
|
221
|
+
.top-popupPanel {
|
|
222
|
+
cursor: default;
|
|
223
|
+
box-shadow: var(--top-shadow-b);
|
|
224
|
+
border-radius: 14px;
|
|
225
|
+
background: var(--top-popup-background-color);
|
|
226
|
+
position: absolute; overflow: hidden;
|
|
227
|
+
display: flex; flex-direction: column;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* position */
|
|
231
|
+
.top-popup-wrapper > * {
|
|
232
|
+
opacity: 0;
|
|
233
|
+
transition: opacity var(--top-popup-transition-delay) linear, transform var(--top-popup-transition-delay) linear;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.top-popup-wrapper.p0 > * { transform: translateY(-8px); }
|
|
237
|
+
|
|
238
|
+
.top-popup-wrapper.p1 > * { transform: translateY(8px); }
|
|
239
|
+
|
|
240
|
+
.top-popup-wrapper.p2 > * { transform: translateX(8px); }
|
|
241
|
+
|
|
242
|
+
.top-popup-wrapper.p3 > * { transform: translateY(8px); }
|
|
243
|
+
|
|
244
|
+
.top-popup-wrapper.p4 > * { transform: translateX(-8px); }
|
|
245
|
+
|
|
246
|
+
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > * {opacity: 1;transform: translate(0, 0) !important;}
|
|
247
|
+
|
|
248
|
+
.top-popup-wrapper.p0 > .top-popup { top: calc(-16px); left: calc(0px - 8px); }
|
|
249
|
+
|
|
250
|
+
.top-popup-wrapper.p1 > .top-popup { bottom: calc(100% + 8px); }
|
|
251
|
+
|
|
252
|
+
.top-popup-wrapper.p2 > .top-popup { left: calc(100% + 8px); }
|
|
253
|
+
|
|
254
|
+
.top-popup-wrapper.p3 > .top-popup { top: calc(100% + 8px); }
|
|
255
|
+
|
|
256
|
+
.top-popup-wrapper.p4 > .top-popup { right: calc(100% + 8px); }
|
|
257
|
+
|
|
258
|
+
.top-popup-wrapper.p2 > .top-popup,
|
|
259
|
+
.top-popup-wrapper.p4 > .top-popup { margin-top: -10px; }
|
|
260
|
+
|
|
261
|
+
.top-popup-wrapper.p1.with_notch > .top-popup { margin-bottom: 5px; }
|
|
262
|
+
|
|
263
|
+
.top-popup-wrapper.p2.with_notch > .top-popup { margin-left: 5px; }
|
|
264
|
+
|
|
265
|
+
.top-popup-wrapper.p3.with_notch > .top-popup { margin-top: 5px; }
|
|
266
|
+
|
|
267
|
+
.top-popup-wrapper.p4.with_notch > .top-popup { margin-right: 5px; }
|
|
268
|
+
|
|
269
|
+
.top-popup-wrapper.invert-x > .top-popup { right: 0; }
|
|
270
|
+
|
|
271
|
+
.top-popup-wrapper.invert-y > .top-popup { bottom: 0; }
|
|
272
|
+
|
|
273
|
+
/* notch */
|
|
274
|
+
.top-popup-wrapper > .notch { border: 7.4px solid transparent; position: absolute; display: block; }
|
|
275
|
+
|
|
276
|
+
.top-popup-wrapper.p1 > .notch { border-bottom: 0; border-top: 7.4px solid var(--color-layout-front-1); margin: 0 0 7.4px -7.4px; bottom: 100%; left: 50% }
|
|
277
|
+
|
|
278
|
+
.top-popup-wrapper.p2 > .notch { border-left: 0; border-right: 7.4px solid var(--color-layout-front-1); margin: 0 0 -7.4px 7.4px; bottom: 50%; left: 100%; }
|
|
279
|
+
|
|
280
|
+
.top-popup-wrapper.p3 > .notch { border-top: 0; border-bottom: 7.4px solid var(--color-layout-front-1); margin: 7.4px 0 0 -7.4px; top: 100%; left: 50%; }
|
|
281
|
+
|
|
282
|
+
.top-popup-wrapper.p4 > .notch { border-right: 0; border-left: 7.4px solid var(--color-layout-front-1); margin: 0 7.4px -7.4px 0; bottom: 50%; right: 100%; }
|
|
283
|
+
|
|
284
|
+
.top-popup-wrapper.p1 > .notch-border { border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 6px; }
|
|
285
|
+
|
|
286
|
+
.top-popup-wrapper.p2 > .notch-border { border-right-color: rgba(0, 0, 0, 0.05); margin-left: 6px; }
|
|
287
|
+
|
|
288
|
+
.top-popup-wrapper.p3 > .notch-border { border-bottom-color: rgba(0, 0, 0, 0.05); margin-top: 6px; }
|
|
289
|
+
|
|
290
|
+
.top-popup-wrapper.p4 > .notch-border { border-left-color: rgba(0, 0, 0, 0.05); margin-right: 6px; }
|
|
291
|
+
|
|
292
|
+
/* common */
|
|
293
|
+
.top-popup_header,
|
|
294
|
+
.top-popup_content,
|
|
295
|
+
.top-popup_footer { font-size: 14px; }
|
|
296
|
+
|
|
297
|
+
.top-popup_header,
|
|
298
|
+
.top-popup_footer { display: flex; align-items: center; justify-content: space-between; }
|
|
299
|
+
|
|
300
|
+
/* header */
|
|
301
|
+
.top-popup_header {
|
|
302
|
+
color: var(--color-text-1);
|
|
303
|
+
border-bottom: 1px solid var(--top-popup-border-color);
|
|
304
|
+
padding: var(--top-padding-3);
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.top-popup_header > * { font-weight: 400; }
|
|
309
|
+
|
|
310
|
+
.top-popup_header > .a { cursor: pointer;}
|
|
311
|
+
|
|
312
|
+
.top-popup_header > .a:hover { color: var(--color-text-primary); }
|
|
313
|
+
|
|
314
|
+
.top-popup_headerButton { width: 60px; }
|
|
315
|
+
|
|
316
|
+
/* widget */
|
|
317
|
+
.top-popup_widget {
|
|
318
|
+
padding: var(--top-padding-2) var(--top-padding-2) 0 var(--top-padding-2);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* content */
|
|
322
|
+
.top-popup_content {
|
|
323
|
+
margin: 0;
|
|
324
|
+
flex-grow: 1;
|
|
325
|
+
overflow-y: auto;
|
|
326
|
+
display: flex;
|
|
327
|
+
flex-direction: column;
|
|
328
|
+
gap: var(--top-gap-4);
|
|
329
|
+
|
|
330
|
+
-webkit-overflow-scrolling: touch;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
div.top-popup_content {
|
|
334
|
+
color: var(--color-text-1);
|
|
335
|
+
padding: var(--top-popup-content-padding);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
div.top-popup_content > * { flex-shrink: 0; }
|
|
339
|
+
|
|
340
|
+
div.top-popup_content > .top-button { margin: 0; }
|
|
341
|
+
|
|
342
|
+
div.top-popup_content .top-unwrap {
|
|
343
|
+
--top-unwrap-x: var(--top-popup-content-padding);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
ul.top-popup_content {
|
|
347
|
+
color: var(--color-text-1);
|
|
348
|
+
padding: var(--top-popup-list-padding);
|
|
349
|
+
gap: 2px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
ul.top-popup_content .top-unwrap {
|
|
353
|
+
--top-unwrap-x: var(--top-popup-list-padding);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.top-popup_listItem {
|
|
357
|
+
border-radius: var(--top-popup-listItem-radius);
|
|
358
|
+
padding: var(--top-popup-listItem-padding);
|
|
359
|
+
line-height: 1 !important;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
ul.top-popup_content li { margin: 0; list-style: none; display: flex; position: relative }
|
|
363
|
+
|
|
364
|
+
ul.top-popup_content li > * { flex-grow: 1; }
|
|
365
|
+
|
|
366
|
+
ul.top-popup_content li > a:not(.top-button),
|
|
367
|
+
ul.top-popup_content li > .a {
|
|
368
|
+
cursor: pointer;
|
|
369
|
+
box-sizing: border-box;
|
|
370
|
+
border-radius: var(--top-popup-listItem-radius);
|
|
371
|
+
background: var(--top-popup-background-color);
|
|
372
|
+
padding: var(--top-popup-listItem-padding);
|
|
373
|
+
color: var(--color-text-1) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
|
|
374
|
+
line-height: 1 !important;
|
|
375
|
+
display: flex; flex: 1 1 100%; align-items: center;
|
|
376
|
+
transition: background-color 0.1s ease-in-out;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
|
|
380
|
+
.top-popup-wrapper-no_animate ul.top-popup_content li > .a { transition: none; }
|
|
381
|
+
|
|
382
|
+
ul.top-popup_content li > a:not(.top-button):hover,
|
|
383
|
+
ul.top-popup_content li > .a:hover { background: var(--top-popup-background-color-hover); }
|
|
384
|
+
|
|
385
|
+
ul.top-popup_content li > a:not(.top-button).top-active,
|
|
386
|
+
ul.top-popup_content li > .a.top-active {
|
|
387
|
+
--top-icon-color: var(--color-text-primary) !important;
|
|
388
|
+
|
|
389
|
+
background: var(--top-popup-background-color-active);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.top-popup_content + .top-popup_content { padding-top: 0; }
|
|
393
|
+
|
|
394
|
+
/* listTitle */
|
|
395
|
+
.top-popup_listItem-title {
|
|
396
|
+
background: var(--color-layer-1);
|
|
397
|
+
color: var(--color-text-1); font-size: 12px;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* listDelimiter */
|
|
401
|
+
.top-popup_listItem-delimiter {
|
|
402
|
+
border-radius: 3px;
|
|
403
|
+
background: var(--top-popup-border-color);
|
|
404
|
+
height: 1px;
|
|
405
|
+
padding: 0;
|
|
406
|
+
margin: 4px;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* listMore */
|
|
410
|
+
.top-popup_listMore {
|
|
411
|
+
font-size: 20px;
|
|
412
|
+
margin: calc(0px - var(--top-popup-listItem-padding)) calc(0px - var(--top-popup-listItem-padding) / 2) calc(0px - var(--top-popup-listItem-padding)) 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.top-popup_listMore.top-button { margin: 0; }
|
|
416
|
+
|
|
417
|
+
ul.top-popup_content li > .a.top-popup_listMore {
|
|
418
|
+
text-align: center;
|
|
419
|
+
flex-basis: 10px;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
ul.top-popup_content li > .a.top-popup_listMore:before { color: var(--color-text-2); }
|
|
423
|
+
|
|
424
|
+
ul.top-popup_content li > * > .top-popup_listMore {
|
|
425
|
+
margin-left: auto;
|
|
426
|
+
color: var(--color-layer-4);
|
|
427
|
+
font-size: 14px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
ul.top-popup_content li > * > i.top-popup_listMore:hover,
|
|
431
|
+
ul.top-popup_content li > * > i.top-popup_listMore.top-active { color: var(--color-text-primary); }
|
|
432
|
+
|
|
433
|
+
ul.top-popup_content li > * > i.top-popup_listMore:before {
|
|
434
|
+
transform: rotate(90deg);
|
|
435
|
+
display: block;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
ul.top-popup_content li a.close { background: none !important; }
|
|
439
|
+
|
|
440
|
+
/* data-top-icon */
|
|
441
|
+
.top-popup_content > [data-top-icon]:before {
|
|
442
|
+
--top-icon-size: 20px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
ul.top-popup_content li > [data-top-icon]:not(.top-button) {
|
|
446
|
+
--top-icon-color: var(--color-text-3);
|
|
447
|
+
--top-icon-size: 20px;
|
|
448
|
+
--top-icon-width: 20px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
ul.top-popup_content li > [data-top-icon]:not(.top-button):before {
|
|
452
|
+
height: 1rem; margin-right: 8px; transition: color 0.1s;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
ul.top-popup_content li:hover > [data-top-icon]:not(.top-button) {
|
|
456
|
+
--top-icon-color: var(--color-text-2);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* footer */
|
|
460
|
+
.top-popup_footer {
|
|
461
|
+
/*padding: var(--top-popup-list-padding);*/
|
|
462
|
+
padding: var(--top-padding-3);
|
|
463
|
+
border-top: 1px solid var(--top-popup-border-color);
|
|
464
|
+
display: flex;
|
|
465
|
+
gap: var(--top-gap-2);
|
|
466
|
+
justify-content: flex-end;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* footerSupportLink */
|
|
470
|
+
.top-popup_footerSupportLink {
|
|
471
|
+
margin-right: auto;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/* Виджеты */
|
|
475
|
+
.top-popup > [data-widget] { padding: 0 var(--top-popup-list-padding); }
|
|
476
|
+
|
|
477
|
+
.top-popup > [data-widget] + hr { margin: 0 var(--top-popup-list-padding); }
|
|
478
|
+
|
|
479
|
+
.top-popup .placeholder {
|
|
480
|
+
border: 1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background: #F9F9F9 !important; margin: -1px 0; z-index: 1;
|
|
481
|
+
position: relative;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* компоненты */
|
|
485
|
+
.top-popup-wrapper.simple_list > .top-popup { min-width: 0; white-space: nowrap; }
|
|
486
|
+
|
|
487
|
+
.top-popup_content .top-column { display: flex; flex-direction: column; gap: 4px; }
|
|
488
|
+
|
|
489
|
+
html .top-popup .top-popup_content li > .top-button {
|
|
490
|
+
margin: calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.top-popup li .check_all,
|
|
494
|
+
.top-popup li .clear_all { cursor: pointer; color: var(--color-text-primary); padding: 8px; display: inline-block; }
|
|
495
|
+
|
|
496
|
+
.top-popup li .check_all:hover,
|
|
497
|
+
.top-popup li .clear_all:hover { text-decoration: underline; }
|
|
498
|
+
|
|
499
|
+
.top-popup li .clear_all { display: none; }
|
|
500
|
+
|
|
501
|
+
/* table */
|
|
502
|
+
.top-popup_content table { margin: -9px 0; }
|
|
503
|
+
|
|
504
|
+
.top-popup_content table td,
|
|
505
|
+
.top-popup_content table th { padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
|
|
506
|
+
|
|
507
|
+
.top-popup_content table th { width: 40%; font-weight: 600; white-space: nowrap; }
|
|
508
|
+
|
|
509
|
+
/* формы */
|
|
510
|
+
ul.top-popup_content .a > [type="checkbox"],
|
|
511
|
+
ul.top-popup_content .a > [type="radio"] { margin: -8px 0 -8px auto; }
|
|
512
|
+
|
|
513
|
+
/* deprecated */
|
|
514
|
+
ul.top-popup_content a > [class*=icon],
|
|
515
|
+
ul.top-popup_content i.a > [class*=icon] {
|
|
516
|
+
transition: 0.1s;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.top-popup .buttons { border-radius: 0 0 4px 4px; border-top: 1px solid #BDC3C7; background: #ECF0F1; padding: 10px 15px; margin: 10px -15px -10px -15px; white-space: nowrap; }
|
|
520
|
+
|
|
521
|
+
.top-popup_footer [class*=btn]:not(.btn-transparent) { min-width: 100px; padding: 5px 14px; margin-left: 10px; }
|
|
522
|
+
|
|
523
|
+
.top-popup_footer [class*=btn]:first-child { margin-left: 0; }
|
|
524
|
+
|
|
525
|
+
.top-popup_footer .btn.full_width { margin: 0; flex-grow: 1; }
|
|
526
|
+
`, _ = `:root {
|
|
527
|
+
--top-popup-list-padding: 0px;
|
|
528
|
+
|
|
529
|
+
--top-popup-listItem-radius: 0px;
|
|
530
|
+
--top-popup-listItem-padding: var(--top-padding-4);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
html.with_popup { background: #808080; }
|
|
534
|
+
|
|
535
|
+
.top-popup-wrapper {
|
|
536
|
+
--top-popup-footer-offset: 25px;
|
|
537
|
+
|
|
538
|
+
width: auto !important; height: auto !important;
|
|
539
|
+
position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
|
|
540
|
+
transition: background 0.3s;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(1px); }
|
|
544
|
+
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup { opacity: 1 !important; }
|
|
545
|
+
|
|
546
|
+
.top-popup {
|
|
547
|
+
border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height, 0px) - var(--toolbar-height, 0px) - 12px); margin: 0 !important;
|
|
548
|
+
top: auto !important; right: 0 !important; bottom: var(--toolbar-height, 0px) !important; left: 0 !important;
|
|
549
|
+
display: flex; flex-direction: column;
|
|
550
|
+
|
|
551
|
+
/* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
|
|
552
|
+
transform: translateY(80%);
|
|
553
|
+
|
|
554
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/* from top */
|
|
558
|
+
.top-popup-wrapper.p-from-top {
|
|
559
|
+
--top-popup-footer-offset: 0px;
|
|
560
|
+
|
|
561
|
+
top: var(--header-height, 0px) !important;
|
|
562
|
+
}
|
|
563
|
+
.with_dialog .top-popup-wrapper.p-from-top { top: 50px !important; }
|
|
564
|
+
.top-popup-wrapper.p-from-top > .top-popup {
|
|
565
|
+
border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
|
|
566
|
+
transform: translateY(calc(-100% - 24px));
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* widget */
|
|
570
|
+
.top-popup_widget { padding: var(--top-padding-2);}
|
|
571
|
+
.top-popup_widget:not(.p-from-top) { order: 10; }
|
|
572
|
+
|
|
573
|
+
/* content */
|
|
574
|
+
ul.top-popup_content {
|
|
575
|
+
gap: 0;
|
|
576
|
+
}
|
|
577
|
+
ul.top-popup_content li:not(:last-child) { border-bottom: 1px solid var(--top-popup-border-color); }
|
|
578
|
+
|
|
579
|
+
.top-popup-wrapper.top-style_alt > .top-popup > ul > li { border-bottom: none; }
|
|
580
|
+
|
|
581
|
+
/* footer */
|
|
582
|
+
.top-popup_footer {
|
|
583
|
+
flex-direction: column-reverse;
|
|
584
|
+
}
|
|
585
|
+
.top-popup_footer > .top-button {
|
|
586
|
+
--top-forms-base-height: var(--top-forms-base-height_l);
|
|
587
|
+
|
|
588
|
+
width: 100%;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/* listTitle */
|
|
592
|
+
ul.top-popup_content .top-popup_listItem-title {
|
|
593
|
+
--top-popup-padding-v: 12px;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/* listDelimiter */
|
|
597
|
+
ul.top-popup_content .top-popup_listItem-delimiter { background: var(--color-line-1-opacity); height: 4px; margin: 0; }
|
|
598
|
+
ul.top-popup_content li:first-child > .top-popup_listItem-delimiter { border-top: 1px solid var(--top-popup-border-color); }
|
|
599
|
+
`, L = `html:not(.with_dialog) { margin-right: 0 !important; }
|
|
600
|
+
|
|
601
|
+
.top-popup { min-width: 250px; max-width: calc(100vw - var(--top-popup-left) - 16px); max-height: calc(var(--top-popup-bottom) + var(--top-popup-height)); }
|
|
602
|
+
.top-popup-wrapper.invert-x > .top-popup { max-width: calc(100vw - var(--top-popup-right) - 16px); }
|
|
603
|
+
.top-popup-wrapper.invert-y > .top-popup { max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
|
|
604
|
+
|
|
605
|
+
/* position */
|
|
606
|
+
.top-popup-wrapper.p1 > .top-popup { max-height: calc(var(--top-popup-top) - var(--header-height, 0px) - 16px); }
|
|
607
|
+
.top-popup-wrapper.p3 > .top-popup { max-height: calc(var(--top-popup-bottom) - 16px); }
|
|
608
|
+
.top-popup-wrapper.p2 > .top-popup { max-width: calc(var(--top-popup-right) - 16px); }
|
|
609
|
+
.top-popup-wrapper.p4 > .top-popup { max-width: calc(var(--top-popup-left) - 16px); }
|
|
610
|
+
|
|
611
|
+
/* notch */
|
|
612
|
+
.top-popup-wrapper.p1.with_notch > .top-popup,
|
|
613
|
+
.top-popup-wrapper.p3.with_notch > .top-popup { margin-left: -16px !important; }
|
|
614
|
+
.top-popup-wrapper.p1.with_notch > .notch,
|
|
615
|
+
.top-popup-wrapper.p3.with_notch > .notch { margin-left: -8px !important; }
|
|
616
|
+
|
|
617
|
+
.top-popup-wrapper.p1.with_notch.invert-x,
|
|
618
|
+
.top-popup-wrapper.p3.with_notch.invert-x { margin-left: 3px !important; }
|
|
619
|
+
.top-popup-wrapper.p1.with_notch.invert-x > .notch,
|
|
620
|
+
.top-popup-wrapper.p3.with_notch.invert-x > .notch { margin-left: -9px !important; }
|
|
621
|
+
|
|
622
|
+
/* listMore */
|
|
623
|
+
ul.top-popup_content li > * > i.top-popup_listMore { visibility: hidden; transition: none; }
|
|
624
|
+
ul.top-popup_content li:hover > * > i.top-popup_listMore,
|
|
625
|
+
ul.top-popup_content li > *.top-active > i.top-popup_listMore,
|
|
626
|
+
ul.top-popup_content li > * > i.top-popup_listMore.top-active { visibility: visible; }
|
|
627
627
|
`;
|
|
628
628
|
f.insertStyleToPage(y);
|
|
629
629
|
f.insertStyleToPage(_, "m");
|
|
@@ -688,17 +688,17 @@ class v extends x {
|
|
|
688
688
|
super(), this.init(v.componentName, t, p);
|
|
689
689
|
}
|
|
690
690
|
async mount() {
|
|
691
|
-
var e,
|
|
691
|
+
var e, r;
|
|
692
692
|
if (!(this.el instanceof HTMLElement)) return;
|
|
693
693
|
const t = this.vueGetComponent();
|
|
694
|
-
if (this.el.closest(".top-popup-wrapper") && (this.popupParent = s.getPopup(this.el.closest(".top-popup-wrapper"))), await this.mountJQuery(),
|
|
695
|
-
this.type = "vue", this.options.popup = "", this.elPopup =
|
|
694
|
+
if (this.el.closest(".top-popup-wrapper") && (this.popupParent = s.getPopup(this.el.closest(".top-popup-wrapper"))), await this.mountJQuery(), n.css(this.el, "position") !== "absolute" && (this.el.style.position = "relative"), this.el.dataset.topPopupOpened = "opened", this.elActiveByDefault = this.el.classList.contains("top-active"), this.el.classList.add("top-active"), t)
|
|
695
|
+
this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
|
|
696
696
|
else if ((e = this.options.popup) != null && e.match(/^[#.]/))
|
|
697
697
|
this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`) || void 0;
|
|
698
698
|
else {
|
|
699
699
|
if (this.type = "html", this.options.useOriginal)
|
|
700
700
|
throw "Option useOriginal not allowed for text templates";
|
|
701
|
-
this.elPopup =
|
|
701
|
+
this.elPopup = n.genEl("div", {}, this.options.popup ?? "");
|
|
702
702
|
}
|
|
703
703
|
if (!this.elPopup || t != null && t.opened) {
|
|
704
704
|
if (this.options.useOriginal || t != null && t.opened) {
|
|
@@ -712,29 +712,29 @@ class v extends x {
|
|
|
712
712
|
}
|
|
713
713
|
if (!this.elPopup)
|
|
714
714
|
return;
|
|
715
|
-
for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition =
|
|
716
|
-
|
|
717
|
-
}),
|
|
715
|
+
for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition = n.wrap(this.elPopup, "i"), this.elStartPosition.classList.add("top-popup-el-start-position", "hidden"))) : (this.elPopup = this.elPopup.cloneNode(!0), this.type === "selector" && !this.elPopup.matches(".template") && (this.elPopup.classList.remove("hidden"), this.elPopup.querySelector(":scope > .top-popup_content") || this.elPopup.classList.add("top-popup_content"), this.elPopup = n.wrap(this.elPopup, "div")), this.type === "html" && (this.elPopup.querySelector(":scope > .top-popup_content") || (this.elPopup.classList.add("top-popup_content"), this.elPopup = n.wrap(this.elPopup, "div"))), (this.type === "selector" && !this.elPopup.matches(".template") || this.type === "html" || this.type === "vue") && (n.querySelectorAllArray(this.elPopup, "[data-top-popup]").forEach((i) => {
|
|
716
|
+
i instanceof HTMLElement && (i.dataset.topPopupPosBy = "fixed");
|
|
717
|
+
}), n.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((i) => i.remove()))), s.decoratorBeforeOpen(this), t && (this.options.class = t.classRef.value, t.transitionDurationRef.value !== void 0 && (this.options.transitionDuration = t.transitionDurationRef.value, this.elPopup instanceof HTMLElement && this.elPopup.style.setProperty(
|
|
718
718
|
"--top-popup-transition-delay",
|
|
719
719
|
this.options.transitionDuration + "ms"
|
|
720
720
|
))), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
|
|
721
721
|
this.elPopupInner.appendChild(this.elPopup.firstChild);
|
|
722
722
|
if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
|
|
723
|
-
const
|
|
724
|
-
this.elPopup.classList.add(...
|
|
723
|
+
const i = this.options.class.split(" ");
|
|
724
|
+
this.elPopup.classList.add(...i);
|
|
725
725
|
}
|
|
726
726
|
this.options.notch && (this.elPopup.classList.add("with_notch"), this.elPopup.insertAdjacentHTML("beforeend", '<i class="notch notch-border"></i><i class="notch"></i>')), await this.vueOpen(), this.elPopupHeader = this.elPopupInner.querySelector(".top-popup_header"), this.elPopupWidget = this.elPopupInner.querySelector(".top-popup_widget"), this.elPopupBody = this.elPopupInner.querySelector(".top-popup_content"), this.elPopupFooter = this.elPopupInner.querySelector(".top-popup_footer");
|
|
727
727
|
const p = !!this.elPopup.querySelector('[data-widget="search"]');
|
|
728
728
|
if (this.options.isFullScreen && !p) {
|
|
729
|
-
const
|
|
730
|
-
!this.elPopupHeader &&
|
|
729
|
+
const i = P();
|
|
730
|
+
!this.elPopupHeader && i.Common.Close && (this.elPopupHeader = n.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(n.genEl("i", { class: "a closer" }, i.Common.Close)), this.elPopupHeader.append(n.genEl("i", { class: "top-popup_headerButton" })));
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
n.storage(this.elPopup, v.componentName, this), this.options.frontSelector && (this.elFront = document.querySelector(this.options.frontSelector)), this.elFront || (this.elFront = this.el.closest(".top-popup-front")), this.elFront || (this.elFront = document.body), this.elPopup instanceof HTMLElement && (this.elPopup.style.width = this.el.offsetWidth + "px", this.elPopup.style.height = this.el.offsetHeight + "px", this.elPopup.style.top = this.el.offsetTop + "px", this.elPopup.style.right = parseInt(this.el.style.right || "0") + "px", this.elPopup.style.bottom = parseInt(this.el.style.bottom || "0") + "px"), (r = this.el.parentElement) == null || r.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
|
|
733
733
|
let o = !!this.el.closest(".modal-header");
|
|
734
734
|
o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => {
|
|
735
|
-
var
|
|
736
|
-
return (
|
|
737
|
-
}), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top =
|
|
735
|
+
var i;
|
|
736
|
+
return (i = this.elPopup) == null ? void 0 : i.classList.add("top-popup-wrapper-shown");
|
|
737
|
+
}), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top = n.offset(this.el).top - this.el.offsetTop - n.offset(this.elFront).top, this.shift.left = n.offset(this.el).left - this.el.offsetLeft - n.offset(this.elFront).left, this.shift.top -= parseInt(this.el.style["margin-top"] || 0), this.shift.left -= parseInt(this.el.style["margin-left"] || 0), this.elPopup instanceof HTMLElement && (this.elPopup.style.top = parseInt(this.elPopup.style.top || "0") + this.shift.top + "px", this.elPopup.style.left = parseInt(this.elPopup.style.left || "0") + this.shift.left + "px")), this.$ && f.$ && this.$.trigger("aftershow.top-menu-popup", [f.$(this.elPopup)]), this.recalcPosition(), this.elPopup.setAttribute("tabindex", "0"), this.focus(), s.decoratorAfterOpen(this), this.mountEvents();
|
|
738
738
|
}
|
|
739
739
|
async mountJQuery() {
|
|
740
740
|
f.$ && (this.$ = f.$(this.el));
|
|
@@ -744,7 +744,7 @@ class v extends x {
|
|
|
744
744
|
*/
|
|
745
745
|
focus() {
|
|
746
746
|
let t;
|
|
747
|
-
this.elPopup && (t =
|
|
747
|
+
this.elPopup && (t = n.querySelectorVisible(this.elPopup, ".top-popup-autofocus"), t || (t = n.querySelectorVisible(this.elPopup, ":read-write, select:not(:disabled)")), t || (t = n.querySelectorVisible(this.elPopup, ".top-popup_footer .top-button")), t || (t = this.elPopup), t instanceof HTMLElement && t.focus(), setTimeout(() => {
|
|
748
748
|
t instanceof HTMLElement && t.focus();
|
|
749
749
|
}, this.options.transitionDuration));
|
|
750
750
|
}
|
|
@@ -757,8 +757,8 @@ class v extends x {
|
|
|
757
757
|
onMousedown(t) {
|
|
758
758
|
if (!this.elPopup || !(t.target instanceof Element) || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t instanceof MouseEvent && t.button !== 0))
|
|
759
759
|
return;
|
|
760
|
-
let p =
|
|
761
|
-
p && p !== this.elPopup || t.target.closest(".top-popup-front") && (p =
|
|
760
|
+
let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
|
|
761
|
+
p && p !== this.elPopup || t.target.closest(".top-popup-front") && (p = n.querySelectorVisibleLast(t.target.closest(".top-popup-front"), ":scope > .top-popup-wrapper"), p && p !== this.elPopup) || this.elPopup.contains(t.target) || this.elPopup.closest(".ui-dialog") && !t.target.closest(".ui-dialog") || s.decoratorIsIgnoreOuterClick(t) || s.close(this.elPopup);
|
|
762
762
|
}
|
|
763
763
|
/**
|
|
764
764
|
* Закрыть другие Popup при фокусе на элемент формы в текущем
|
|
@@ -767,8 +767,8 @@ class v extends x {
|
|
|
767
767
|
if (t.target instanceof Element && t.target.matches("input") || this.isClosed)
|
|
768
768
|
return;
|
|
769
769
|
s.getAllVisible().forEach((o) => {
|
|
770
|
-
var e,
|
|
771
|
-
(e = this.elPopup) != null && e.contains(o) || ((
|
|
770
|
+
var e, r, i, u;
|
|
771
|
+
(e = this.elPopup) != null && e.contains(o) || ((r = this.popupParent) == null ? void 0 : r.elPopup) === o || ((u = (i = this.popupParent) == null ? void 0 : i.popupParent) == null ? void 0 : u.elPopup) === o || s.close(o);
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
/**
|
|
@@ -783,7 +783,7 @@ class v extends x {
|
|
|
783
783
|
* Контроль положения Popup при fixed позиционировании
|
|
784
784
|
*/
|
|
785
785
|
onResize() {
|
|
786
|
-
this.elPopup && this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup instanceof HTMLElement && (this.elPopup.style.top =
|
|
786
|
+
this.elPopup && this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup instanceof HTMLElement && (this.elPopup.style.top = n.offset(this.el).top + "px", this.elPopup.style.left = n.offset(this.el).left + "px");
|
|
787
787
|
}
|
|
788
788
|
unmount() {
|
|
789
789
|
super.unmount(), this.el instanceof HTMLElement && (this.el.dataset.topPopupOpened = ""), this.elActiveByDefault || this.el.classList.remove("top-active");
|
|
@@ -812,16 +812,16 @@ class v extends x {
|
|
|
812
812
|
}
|
|
813
813
|
const o = this.elPopup.getBoundingClientRect();
|
|
814
814
|
this.elPopup.style.setProperty("--top-popup-height", this.elPopup.offsetHeight + "px"), this.elPopup.style.setProperty("--top-popup-right-bounding", o.right + "px"), this.elPopup.style.setProperty("--top-popup-bottom-bounding", o.bottom + "px"), this.elPopup.style.setProperty("--top-popup-top", o.top + "px"), this.elPopup.style.setProperty("--top-popup-left", o.left + "px"), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "unset", this.elPopupInner.style.maxHeight = "unset");
|
|
815
|
-
let e = !1,
|
|
815
|
+
let e = !1, r = !1, i = !1, u = !1, l = o.left > window.innerWidth / 2, d = o.top > window.innerHeight / 2;
|
|
816
816
|
t === 4 && (l = !l), t === 1 && (d = !d);
|
|
817
817
|
const h = (b = this.elPopupInner) == null ? void 0 : b.getBoundingClientRect();
|
|
818
818
|
let a, c;
|
|
819
819
|
if (h) {
|
|
820
820
|
a = window.innerWidth - h.right, c = window.innerHeight - h.bottom;
|
|
821
821
|
const g = 8;
|
|
822
|
-
h.top < g && (e = !0), a < g && (
|
|
822
|
+
h.top < g && (e = !0), a < g && (r = !0), c < g && (i = !0), h.left < g && (u = !0);
|
|
823
823
|
}
|
|
824
|
-
e && (t === 0 || t === 1) && d && (t = 3),
|
|
824
|
+
e && (t === 0 || t === 1) && d && (t = 3), i && t === 3 && d && (t = 1), r && t === 2 && l && (t = 4), u && t === 4 && l && (t = 2), r && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), i && (t === 2 || t === 4) && d && (t === 2 && !l && this.elPopup.classList.add("invert-y"), t === 4 && !l && this.elPopup.classList.add("invert-x"), this.elPopup.matches(".invert-y") || (t = 1)), this.elPopup.classList.remove("p0", "p1", "p2", "p3", "p4"), this.elPopup.classList.add("p" + t), this.elPopupInner instanceof HTMLElement && (this.elPopupInner.style.maxWidth = "", this.elPopupInner.style.maxHeight = ""), s.scrollToActive(this.elPopup);
|
|
825
825
|
}
|
|
826
826
|
onTouchmove(t) {
|
|
827
827
|
var p, o, e;
|
|
@@ -834,9 +834,9 @@ class v extends x {
|
|
|
834
834
|
close() {
|
|
835
835
|
var t;
|
|
836
836
|
this.isClosed || (this.isClosed = !0, this.$ && f.$ && this.elPopup && this.$.trigger("afterclose.top-menu-popup", [f.$(this.elPopup)]), !s.noClose && (this.unmount(), (t = this.elPopup) == null || t.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
|
|
837
|
-
var e,
|
|
837
|
+
var e, r, i, u, l;
|
|
838
838
|
if (this.vueClose(), !this.elPopup) return;
|
|
839
|
-
this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), (e = this.elStartPosition) == null || e.append(this.elPopup), (
|
|
839
|
+
this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), (e = this.elStartPosition) == null || e.append(this.elPopup), (r = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || r.classList.remove("top-column"), (i = this.elPopup.querySelector(".notch-border")) == null || i.remove(), (u = this.elPopup.querySelector(".notch")) == null || u.remove(), (l = this.elPopupInner) == null || l.replaceWith(...this.elPopupInner.childNodes), n.storageClear(this.elPopup)) : (n.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
|
|
840
840
|
const p = s.getAllVisible(), o = p.length && p[p.length - 1];
|
|
841
841
|
o ? s.getPopup(o).focus() : document.documentElement.classList.remove("with_popup");
|
|
842
842
|
}, this.options.transitionDuration)));
|
|
@@ -859,4 +859,4 @@ export {
|
|
|
859
859
|
v as Popup,
|
|
860
860
|
v as default
|
|
861
861
|
};
|
|
862
|
-
//# sourceMappingURL=popup-
|
|
862
|
+
//# sourceMappingURL=popup-Wzy_7sXf.es.js.map
|