@topvisor/ui 0.0.43 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/datepicker-32bc8bd9.es.js +275 -0
- package/.chunks/datepicker-32bc8bd9.es.js.map +1 -0
- package/.chunks/datepicker-8a42d8a6.amd.js +234 -0
- package/.chunks/datepicker-8a42d8a6.amd.js.map +1 -0
- package/.chunks/forms-30d68077.amd.js +3 -0
- package/.chunks/forms-30d68077.amd.js.map +1 -0
- package/.chunks/forms-64632f73.es.js +1091 -0
- package/.chunks/forms-64632f73.es.js.map +1 -0
- package/.chunks/{popup-de28e508.amd.js → popup-14ca85cf.amd.js} +378 -377
- package/.chunks/popup-14ca85cf.amd.js.map +1 -0
- package/.chunks/{popup-a622fe31.es.js → popup-b2fe3094.es.js} +439 -429
- package/.chunks/popup-b2fe3094.es.js.map +1 -0
- package/README.md +80 -80
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/tabsView.css +1 -0
- package/core/core.amd.js +1 -1
- package/core/core.d.ts +2 -2
- package/core/core.js +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +8 -8
- 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 +1 -1
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +2945 -2945
- package/icomoon/fonts/Topvisor-2.svg +232 -232
- package/icomoon/style.css +647 -647
- package/package.json +19 -19
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +1 -1
- 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 +13 -10
- package/popup/worker.js.map +1 -1
- package/src/components/tabsView/tabsView/_MenuItem.stories.d.ts +361 -0
- package/src/components/tabsView/tabsView/_MenuTitle.stories.d.ts +280 -0
- package/src/components/tabsView/tabsView/content.vue.d.ts +19 -0
- package/src/components/tabsView/tabsView/menu.vue.d.ts +19 -0
- package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +2 -0
- package/src/components/tabsView/tabsView/menuItem.vue.d.ts +19 -0
- package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +19 -0
- package/src/components/tabsView/tabsView/state.d.ts +14 -0
- package/src/components/tabsView/tabsView/tabsView.d.ts +69 -0
- package/src/components/tabsView/tabsView/tabsView.stories.d.ts +529 -0
- package/src/components/tabsView/tabsView/tabsView.vue.d.ts +38 -0
- package/src/components/tabsView/tabsView.d.ts +4 -0
- package/src/core/utils/date.d.ts +25 -27
- package/src/core/utils/device.d.ts +10 -13
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.js +1 -1
- package/tabsView/tabsView.amd.js +2 -0
- package/tabsView/tabsView.amd.js.map +1 -0
- package/tabsView/tabsView.d.ts +1 -0
- package/tabsView/tabsView.js +271 -0
- package/tabsView/tabsView.js.map +1 -0
- package/utils/date.amd.js +1 -1
- package/utils/date.d.ts +0 -2
- package/utils/date.js +5 -2
- package/utils/device.amd.js +1 -1
- package/utils/device.d.ts +0 -2
- package/utils/device.js +7 -2
- package/utils/dom.amd.js +1 -1
- package/utils/dom.d.ts +2 -2
- package/utils/dom.js +1 -1
- package/.chunks/datepicker-92744062.es.js +0 -275
- package/.chunks/datepicker-92744062.es.js.map +0 -1
- package/.chunks/datepicker-a9226b0f.amd.js +0 -234
- package/.chunks/datepicker-a9226b0f.amd.js.map +0 -1
- package/.chunks/forms-727cc6aa.es.js +0 -1112
- package/.chunks/forms-727cc6aa.es.js.map +0 -1
- package/.chunks/forms-771091d4.amd.js +0 -3
- package/.chunks/forms-771091d4.amd.js.map +0 -1
- package/.chunks/popup-a622fe31.es.js.map +0 -1
- package/.chunks/popup-de28e508.amd.js.map +0 -1
- package/build/cssModules.d.ts +0 -13
- package/build/plugin/amdFix.d.ts +0 -8
- package/build/plugin/autoloadCSS.d.ts +0 -19
- package/build/rollup.config.d.ts +0 -15
- package/src/components/component.d.ts +0 -25
- package/src/components/helpersStories.d.ts +0 -28
- package/src/core/base/Colors.stories.d.ts +0 -19
- package/src/core/base/Layout.stories.d.ts +0 -19
- package/src/core/base/Properties.stories.d.ts +0 -19
- package/src/core/directives/tooltip.d.ts +0 -7
- package/src/core/theme/Colors.stories.d.ts +0 -19
- package/src/core/theme/Properties.stories.d.ts +0 -19
- package/src/core//320/235/320/260/320/261/320/276/321/200 /320/270/320/272/320/276/320/275/320/276/320/272//320/235/320/260/320/261/320/276/321/200 /320/270/320/272/320/276/320/275/320/276/320/272.stories.d.ts" +0 -6
- package/src/d.d.ts +0 -4
- package/src/resources/styles/core/core.d.ts +0 -0
- package/src/resources/styles/themes/dark.d.ts +0 -0
- package/src/resources/styles/themes/light.d.ts +0 -0
- package/src/storybook/components/icomoon.d.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { PopupWorker as
|
|
1
|
+
import { D as n, C as m } from "./forms-64632f73.es.js";
|
|
2
|
+
import { PopupWorker as i } from "../popup/worker.js";
|
|
3
3
|
import "vue";
|
|
4
|
-
class
|
|
4
|
+
class g {
|
|
5
5
|
static componentName = "Top";
|
|
6
6
|
componentName;
|
|
7
7
|
// имя класса компонента
|
|
@@ -21,18 +21,18 @@ class m {
|
|
|
21
21
|
init(t, p, o) {
|
|
22
22
|
if (!p)
|
|
23
23
|
throw t + ": el is undefined";
|
|
24
|
-
const e =
|
|
24
|
+
const e = g.getComponent(p, t);
|
|
25
25
|
if (e)
|
|
26
26
|
return e.reInit(o), e;
|
|
27
27
|
this.componentName = t, this.className = "top" + t[0].toUpperCase() + t.substring(1), this.uid = this.componentName + (Math.random() + "").replace(".", ""), this._setComponent(p), this.el = p, this.el.classList.add(this.className), this.options = Object.assign(this.options, o), this.mount();
|
|
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 m {
|
|
|
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 m {
|
|
|
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) {
|
|
@@ -99,15 +99,15 @@ class b {
|
|
|
99
99
|
if (!e || p.matches(".top-popup-noCloser"))
|
|
100
100
|
return;
|
|
101
101
|
if (p.getAttribute("href") === "." && t.preventDefault(), t.target.matches("[data-top-popup]")) {
|
|
102
|
-
const
|
|
103
|
-
|
|
102
|
+
const r = t.target.closest("ul"), l = t.target.closest("a, .a");
|
|
103
|
+
r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), l && l.classList.add("top-active");
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
i.close(e);
|
|
107
107
|
}
|
|
108
108
|
if (t.target.matches(".top-popup-wrapper")) {
|
|
109
109
|
const e = t.target;
|
|
110
|
-
|
|
110
|
+
i.close(e);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
@@ -122,17 +122,23 @@ class b {
|
|
|
122
122
|
const o = p.querySelector("ul.top-popup_content");
|
|
123
123
|
switch (t.key) {
|
|
124
124
|
case "Escape":
|
|
125
|
+
i.close(p);
|
|
125
126
|
break;
|
|
126
127
|
case "Enter":
|
|
127
128
|
if (!o) {
|
|
128
|
-
if (
|
|
129
|
+
if (n.querySelectorVisible(p, ".preloader"))
|
|
129
130
|
break;
|
|
130
|
-
const c =
|
|
131
|
-
|
|
131
|
+
const c = n.querySelectorVisible(p, ".top-popup_footer .go, .top-popup_footer [data-action]");
|
|
132
|
+
if (c) {
|
|
133
|
+
c.click();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
const d = n.querySelectorVisibleLast(p, ".top-popup_footer .top-button");
|
|
137
|
+
d && d.click();
|
|
132
138
|
break;
|
|
133
139
|
}
|
|
134
|
-
const
|
|
135
|
-
|
|
140
|
+
const r = n.querySelectorVisible(p, "li > a.top-active");
|
|
141
|
+
r && (t.preventDefault(), location.href = r.getAttribute("href"));
|
|
136
142
|
const l = p.querySelector("li > .top-active");
|
|
137
143
|
l && l.click();
|
|
138
144
|
break;
|
|
@@ -142,406 +148,410 @@ class b {
|
|
|
142
148
|
case "ArrowLeft":
|
|
143
149
|
if (!o)
|
|
144
150
|
break;
|
|
145
|
-
t.key === "ArrowRight" || t.key === "ArrowLeft" ?
|
|
151
|
+
t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(
|
|
152
|
+
p,
|
|
153
|
+
"ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active > .top-popup_listMore"
|
|
154
|
+
) && t.preventDefault() : t.preventDefault();
|
|
146
155
|
const h = (e = p.querySelector("ul.top-popup_content > li:not(.top-popup_liNoSelectable) > .top-active")) == null ? void 0 : e.parentElement;
|
|
147
156
|
if (t.key === "ArrowRight" && h) {
|
|
148
157
|
const c = h.querySelector(".top-active > .top-popup_listMore");
|
|
149
158
|
if (c)
|
|
150
159
|
return c.click();
|
|
151
160
|
}
|
|
152
|
-
const a =
|
|
161
|
+
const a = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_liNoSelectable)"), u = a.length;
|
|
153
162
|
if (!u)
|
|
154
163
|
return;
|
|
155
164
|
let s = a.indexOf(h);
|
|
156
165
|
if (t.key === "ArrowUp" || t.key === "ArrowLeft" ? s-- : s++, t.key === "ArrowLeft" && s === -1)
|
|
157
|
-
return t.target.matches("input") ? void 0 :
|
|
166
|
+
return t.target.matches("input") ? void 0 : i.close(p);
|
|
158
167
|
if (t.key === "ArrowRight" && s === u)
|
|
159
168
|
return;
|
|
160
|
-
s < 0 && (s = u - 1), s > u - 1 && (s = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), a[s].querySelector(":scope > a, :scope > .a").classList.add("top-active"),
|
|
169
|
+
s < 0 && (s = u - 1), s > u - 1 && (s = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((c) => c.classList.remove("top-active")), a[s].querySelector(":scope > a, :scope > .a").classList.add("top-active"), i.scrollToActive(p);
|
|
161
170
|
break;
|
|
162
171
|
}
|
|
163
172
|
}
|
|
164
173
|
}
|
|
165
|
-
const x = `:root{
|
|
166
|
-
--top-popup-background-color: var(--color-bg-3)
|
|
167
|
-
--top-popup-background-color-hover: var(--color-theme-75)
|
|
168
|
-
--top-popup-background-color-active: var(--color-theme-100)
|
|
169
|
-
|
|
170
|
-
--top-popup-border-color: var(--color-line-2-opacity)
|
|
171
|
-
--top-popup-title-background-color: var(--color-theme-50)
|
|
172
|
-
|
|
173
|
-
/* суммарный отсуп от каря popup до элемента
|
|
174
|
-
--top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding))
|
|
175
|
-
|
|
176
|
-
/* списки
|
|
177
|
-
--top-popup-list-padding: var(--top-padding-2)
|
|
178
|
-
|
|
179
|
-
--top-popup-listItem-radius: var(--top-radius-2)
|
|
180
|
-
--top-popup-listItem-padding: var(--top-padding-2)
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.top-popup-front{ position: relative; }
|
|
184
|
-
|
|
185
|
-
.top-popup-wrapper{
|
|
186
|
-
/* см. recalcPosition()
|
|
187
|
-
--top-popup-height: 0px
|
|
188
|
-
--top-popup-right-bounding: 0px
|
|
189
|
-
--top-popup-bottom-bounding: 0px
|
|
190
|
-
--top-popup-top: 0px
|
|
191
|
-
--top-popup-right: calc(100vw - var(--top-popup-right-bounding))
|
|
192
|
-
--top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding))
|
|
193
|
-
--top-popup-left: 0px
|
|
194
|
-
|
|
195
|
-
text-align: initial; white-space: normal; word-break: normal
|
|
196
|
-
position: absolute; z-index: 200000
|
|
197
|
-
}
|
|
198
|
-
.top-popup-wrapper:not(.top-popup-wrapper-shown){ overflow: hidden; }
|
|
199
|
-
|
|
200
|
-
/* top-popupPanel
|
|
201
|
-
.top-popupPanel {
|
|
202
|
-
cursor: default
|
|
203
|
-
box-shadow: var(--top-shadow-b)
|
|
204
|
-
border-radius: 8px
|
|
205
|
-
background: var(--top-popup-background-color)
|
|
206
|
-
position: absolute; overflow: hidden
|
|
207
|
-
display: flex; flex-direction: column
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/* position
|
|
211
|
-
.top-popup-wrapper > *{ opacity: 0; transition: opacity 100ms linear, transform 100ms linear; }
|
|
212
|
-
.top-popup-wrapper.p0 > *{ transform: translateY(-8px); }
|
|
213
|
-
.top-popup-wrapper.p1 > *{ transform: translateY(8px); }
|
|
214
|
-
.top-popup-wrapper.p2 > *{ transform: translateX(8px); }
|
|
215
|
-
.top-popup-wrapper.p3 > *{ transform: translateY(8px); }
|
|
216
|
-
.top-popup-wrapper.p4 > *{ transform: translateX(-8px); }
|
|
217
|
-
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > *{opacity: 1;transform: translate(0, 0) !important;}
|
|
218
|
-
|
|
219
|
-
.top-popup-wrapper.p0 > .top-popup{ top: calc(-16px); left: calc(0px - 8px); }
|
|
220
|
-
.top-popup-wrapper.p1 > .top-popup{ bottom: calc(100% + 8px); }
|
|
221
|
-
.top-popup-wrapper.p2 > .top-popup{ left: calc(100% + 8px); }
|
|
222
|
-
.top-popup-wrapper.p3 > .top-popup{ top: calc(100% + 8px); }
|
|
223
|
-
.top-popup-wrapper.p4 > .top-popup{ right: calc(100% + 8px); }
|
|
224
|
-
.top-popup-wrapper.p2 > .top-popup
|
|
225
|
-
.top-popup-wrapper.p4 > .top-popup{ margin-top: -10px; }
|
|
226
|
-
|
|
227
|
-
.top-popup-wrapper.p1.with_notch > .top-popup{ margin-bottom: 5px; }
|
|
228
|
-
.top-popup-wrapper.p2.with_notch > .top-popup{ margin-left: 5px; }
|
|
229
|
-
.top-popup-wrapper.p3.with_notch > .top-popup{ margin-top: 5px; }
|
|
230
|
-
.top-popup-wrapper.p4.with_notch > .top-popup{ margin-right: 5px; }
|
|
231
|
-
|
|
232
|
-
.top-popup-wrapper.invert-x > .top-popup{ right: 0; }
|
|
233
|
-
.top-popup-wrapper.invert-y > .top-popup{ bottom: 0; }
|
|
234
|
-
|
|
235
|
-
/* notch
|
|
236
|
-
.top-popup-wrapper > .notch{ border: 7.4px solid transparent; position: absolute; display: block; }
|
|
237
|
-
|
|
238
|
-
.top-popup-wrapper.p1 > .notch{ border-bottom: 0; border-top: 7.4px solid var(--content-background-color); margin: 0 0 7.4px -7.4px; bottom: 100%; left: 50% }
|
|
239
|
-
.top-popup-wrapper.p2 > .notch{ border-left: 0; border-right: 7.4px solid var(--content-background-color); margin: 0 0 -7.4px 7.4px; bottom: 50%; left: 100%; }
|
|
240
|
-
.top-popup-wrapper.p3 > .notch{ border-top: 0; border-bottom: 7.4px solid var(--content-background-color); margin: 7.4px 0 0 -7.4px; top: 100%; left: 50%; }
|
|
241
|
-
.top-popup-wrapper.p4 > .notch{ border-right: 0; border-left: 7.4px solid var(--content-background-color); margin: 0 7.4px -7.4px 0; bottom: 50%; right: 100%; }
|
|
242
|
-
|
|
243
|
-
.top-popup-wrapper.p1 > .notch-border{ border-top-color: rgba(0,0,0,0.05); margin-bottom: 6px; }
|
|
244
|
-
.top-popup-wrapper.p2 > .notch-border{ border-right-color: rgba(0,0,0,0.05); margin-left: 6px; }
|
|
245
|
-
.top-popup-wrapper.p3 > .notch-border{ border-bottom-color: rgba(0,0,0,0.05); margin-top: 6px; }
|
|
246
|
-
.top-popup-wrapper.p4 > .notch-border{ border-left-color: rgba(0,0,0,0.05); margin-right: 6px; }
|
|
247
|
-
|
|
248
|
-
/* common
|
|
249
|
-
.top-popup_header
|
|
250
|
-
.top-popup_content
|
|
251
|
-
.top-popup_footer{ font-size: 14px; }
|
|
252
|
-
.top-popup_header
|
|
253
|
-
.top-popup_footer{ display: flex; align-items: center; justify-content: space-between; }
|
|
254
|
-
|
|
255
|
-
/* header
|
|
256
|
-
.top-popup_header{
|
|
257
|
-
border-bottom: 1px solid var(--top-popup-border-color)
|
|
258
|
-
padding: var(--top-padding-3)
|
|
259
|
-
font-weight: 600
|
|
260
|
-
}
|
|
261
|
-
.top-popup_header > *{ font-weight: 400; }
|
|
262
|
-
.top-popup_header > .a{ cursor: pointer; color: var(--color-blue-450); }
|
|
263
|
-
.top-popup_header > .a:hover{ color: var(--color-blue-350); }
|
|
264
|
-
|
|
265
|
-
.top-popup_headerButton{ width: 60px; }
|
|
266
|
-
|
|
267
|
-
/* content
|
|
268
|
-
.top-popup_content{
|
|
269
|
-
margin: 0
|
|
270
|
-
flex-grow: 1
|
|
271
|
-
overflow-y: auto
|
|
272
|
-
display: flex
|
|
273
|
-
flex-direction: column
|
|
274
|
-
gap: var(--top-gap-4)
|
|
275
|
-
|
|
276
|
-
-webkit-overflow-scrolling: touch
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
div.top-popup_content{
|
|
280
|
-
/* has_scroll
|
|
281
|
-
--scroll-padding-top: var(--top-popup-content-padding)
|
|
282
|
-
--scroll-padding-bottom: var(--top-popup-content-padding)
|
|
283
|
-
|
|
284
|
-
padding: var(--top-popup-content-padding)
|
|
285
|
-
}
|
|
286
|
-
div.top-popup_content > *{ flex-shrink: 0; }
|
|
287
|
-
div.top-popup_content > .top-button{ margin: 0; }
|
|
288
|
-
|
|
289
|
-
div.top-popup_content .top-unwrap{
|
|
290
|
-
--top-unwrap-x: var(--top-popup-content-padding)
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
ul.top-popup_content{
|
|
294
|
-
--scroll-padding-top: var(--top-popup-list-padding)
|
|
295
|
-
--scroll-padding-bottom: var(--top-popup-list-padding)
|
|
296
|
-
|
|
297
|
-
padding: var(--top-popup-list-padding)
|
|
298
|
-
gap: 2px
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
ul.top-popup_content .top-unwrap{
|
|
302
|
-
--top-unwrap-x: var(--top-popup-list-padding)
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.top-popup_listItem {
|
|
306
|
-
border-radius: var(--top-popup-listItem-radius)
|
|
307
|
-
padding: var(--top-popup-listItem-padding)
|
|
308
|
-
line-height: 1 !important
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
ul.top-popup_content li{ margin: 0; list-style:none; display: flex; position: relative }
|
|
312
|
-
ul.top-popup_content li > *{ flex-grow: 1; }
|
|
313
|
-
ul.top-popup_content li > a:not(.top-button)
|
|
314
|
-
ul.top-popup_content li > .a{
|
|
315
|
-
cursor: pointer
|
|
316
|
-
box-sizing: border-box
|
|
317
|
-
border-radius: var(--top-popup-listItem-radius)
|
|
318
|
-
background: var(--top-popup-background-color)
|
|
319
|
-
padding: var(--top-popup-listItem-padding)
|
|
320
|
-
color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal
|
|
321
|
-
line-height: 1 !important
|
|
322
|
-
display: flex; flex: 1 1 100%; align-items: center
|
|
323
|
-
transition: background-color 0.1s ease-in-out
|
|
324
|
-
}
|
|
325
|
-
.top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button)
|
|
326
|
-
.top-popup-wrapper-no_animate ul.top-popup_content li > .a{ transition: none; }
|
|
327
|
-
|
|
328
|
-
ul.top-popup_content li > a:not(.top-button):hover
|
|
329
|
-
ul.top-popup_content li > .a:hover{ background: var(--top-popup-background-color-hover); }
|
|
330
|
-
ul.top-popup_content li > a:not(.top-button).top-active
|
|
331
|
-
ul.top-popup_content li > .a.top-active{ background: var(--top-popup-background-color-active); }
|
|
332
|
-
|
|
333
|
-
.top-popup_content + .top-popup_content{ padding-top: 0; }
|
|
334
|
-
|
|
335
|
-
/* listTitle
|
|
336
|
-
.top-popup_listItem-title{
|
|
337
|
-
background: var(--top-popup-title-background-color)
|
|
338
|
-
color: var(--color-text-2); font-size: 12px
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/* listDelimiter
|
|
342
|
-
.top-popup_listItem-delimiter{
|
|
343
|
-
border-radius: 3px
|
|
344
|
-
background: var(--top-popup-border-color)
|
|
345
|
-
height: 1px
|
|
346
|
-
padding: 0
|
|
347
|
-
margin: 4px
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/* listMore
|
|
351
|
-
.top-popup_listMore{
|
|
352
|
-
font-size: 20px
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
ul.top-popup_content li >
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
ul.top-popup_content li > * > i.top-popup_listMore
|
|
367
|
-
ul.top-popup_content li > * > i.top-popup_listMore:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
--top-icon-
|
|
382
|
-
--top-icon-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
ul.top-popup_content li > [data-top-icon]:not(.top-button)
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
.top-popup > [data-widget]
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
.top-popup li .
|
|
419
|
-
.top-popup li .
|
|
420
|
-
.top-popup li .
|
|
421
|
-
.top-popup li .clear_all{
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
.top-popup_content table
|
|
426
|
-
.top-popup_content table
|
|
427
|
-
.top-popup_content table th{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
ul.top-popup_content .a > [type="
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
ul.top-popup_content
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
.top-
|
|
441
|
-
.top-popup_footer [class*=btn]:
|
|
442
|
-
.top-popup_footer
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
--top-popup-listItem-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed)
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
.top-popup-wrapper.p-from-top
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
--scroll-padding-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
ul.top-popup_content
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
.top-popup-
|
|
517
|
-
.top-popup-wrapper.invert-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
.top-popup-wrapper.
|
|
522
|
-
.top-popup-wrapper.
|
|
523
|
-
.top-popup-wrapper.
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
.top-popup-wrapper.
|
|
528
|
-
.top-popup-wrapper.
|
|
529
|
-
.top-popup-wrapper.
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
.top-popup-wrapper.
|
|
533
|
-
.top-popup-wrapper.
|
|
534
|
-
.top-popup-wrapper.
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
ul.top-popup_content li
|
|
539
|
-
ul.top-popup_content li >
|
|
174
|
+
const x = `:root{
|
|
175
|
+
--top-popup-background-color: var(--color-bg-3);
|
|
176
|
+
--top-popup-background-color-hover: var(--color-theme-75);
|
|
177
|
+
--top-popup-background-color-active: var(--color-theme-100);
|
|
178
|
+
|
|
179
|
+
--top-popup-border-color: var(--color-line-2-opacity);
|
|
180
|
+
--top-popup-title-background-color: var(--color-theme-50);
|
|
181
|
+
|
|
182
|
+
/* суммарный отсуп от каря popup до элемента */
|
|
183
|
+
--top-popup-content-padding: calc(var(--top-popup-list-padding) + var(--top-popup-listItem-padding));
|
|
184
|
+
|
|
185
|
+
/* списки */
|
|
186
|
+
--top-popup-list-padding: var(--top-padding-2);
|
|
187
|
+
|
|
188
|
+
--top-popup-listItem-radius: var(--top-radius-2);
|
|
189
|
+
--top-popup-listItem-padding: var(--top-padding-2);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.top-popup-front{ position: relative; }
|
|
193
|
+
|
|
194
|
+
.top-popup-wrapper{
|
|
195
|
+
/* см. recalcPosition() */
|
|
196
|
+
--top-popup-height: 0px;
|
|
197
|
+
--top-popup-right-bounding: 0px;
|
|
198
|
+
--top-popup-bottom-bounding: 0px;
|
|
199
|
+
--top-popup-top: 0px;
|
|
200
|
+
--top-popup-right: calc(100vw - var(--top-popup-right-bounding));
|
|
201
|
+
--top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
|
|
202
|
+
--top-popup-left: 0px;
|
|
203
|
+
|
|
204
|
+
text-align: initial; white-space: normal; word-break: normal;
|
|
205
|
+
position: absolute; z-index: 200000;
|
|
206
|
+
}
|
|
207
|
+
.top-popup-wrapper:not(.top-popup-wrapper-shown){ overflow: hidden; }
|
|
208
|
+
|
|
209
|
+
/* top-popupPanel */
|
|
210
|
+
.top-popupPanel {
|
|
211
|
+
cursor: default;
|
|
212
|
+
box-shadow: var(--top-shadow-b);
|
|
213
|
+
border-radius: 8px;
|
|
214
|
+
background: var(--top-popup-background-color);
|
|
215
|
+
position: absolute; overflow: hidden;
|
|
216
|
+
display: flex; flex-direction: column;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* position */
|
|
220
|
+
.top-popup-wrapper > *{ opacity: 0; transition: opacity 100ms linear, transform 100ms linear; }
|
|
221
|
+
.top-popup-wrapper.p0 > *{ transform: translateY(-8px); }
|
|
222
|
+
.top-popup-wrapper.p1 > *{ transform: translateY(8px); }
|
|
223
|
+
.top-popup-wrapper.p2 > *{ transform: translateX(8px); }
|
|
224
|
+
.top-popup-wrapper.p3 > *{ transform: translateY(8px); }
|
|
225
|
+
.top-popup-wrapper.p4 > *{ transform: translateX(-8px); }
|
|
226
|
+
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > *{opacity: 1;transform: translate(0, 0) !important;}
|
|
227
|
+
|
|
228
|
+
.top-popup-wrapper.p0 > .top-popup{ top: calc(-16px); left: calc(0px - 8px); }
|
|
229
|
+
.top-popup-wrapper.p1 > .top-popup{ bottom: calc(100% + 8px); }
|
|
230
|
+
.top-popup-wrapper.p2 > .top-popup{ left: calc(100% + 8px); }
|
|
231
|
+
.top-popup-wrapper.p3 > .top-popup{ top: calc(100% + 8px); }
|
|
232
|
+
.top-popup-wrapper.p4 > .top-popup{ right: calc(100% + 8px); }
|
|
233
|
+
.top-popup-wrapper.p2 > .top-popup,
|
|
234
|
+
.top-popup-wrapper.p4 > .top-popup{ margin-top: -10px; }
|
|
235
|
+
|
|
236
|
+
.top-popup-wrapper.p1.with_notch > .top-popup{ margin-bottom: 5px; }
|
|
237
|
+
.top-popup-wrapper.p2.with_notch > .top-popup{ margin-left: 5px; }
|
|
238
|
+
.top-popup-wrapper.p3.with_notch > .top-popup{ margin-top: 5px; }
|
|
239
|
+
.top-popup-wrapper.p4.with_notch > .top-popup{ margin-right: 5px; }
|
|
240
|
+
|
|
241
|
+
.top-popup-wrapper.invert-x > .top-popup{ right: 0; }
|
|
242
|
+
.top-popup-wrapper.invert-y > .top-popup{ bottom: 0; }
|
|
243
|
+
|
|
244
|
+
/* notch */
|
|
245
|
+
.top-popup-wrapper > .notch{ border: 7.4px solid transparent; position: absolute; display: block; }
|
|
246
|
+
|
|
247
|
+
.top-popup-wrapper.p1 > .notch{ border-bottom: 0; border-top: 7.4px solid var(--content-background-color); margin: 0 0 7.4px -7.4px; bottom: 100%; left: 50% }
|
|
248
|
+
.top-popup-wrapper.p2 > .notch{ border-left: 0; border-right: 7.4px solid var(--content-background-color); margin: 0 0 -7.4px 7.4px; bottom: 50%; left: 100%; }
|
|
249
|
+
.top-popup-wrapper.p3 > .notch{ border-top: 0; border-bottom: 7.4px solid var(--content-background-color); margin: 7.4px 0 0 -7.4px; top: 100%; left: 50%; }
|
|
250
|
+
.top-popup-wrapper.p4 > .notch{ border-right: 0; border-left: 7.4px solid var(--content-background-color); margin: 0 7.4px -7.4px 0; bottom: 50%; right: 100%; }
|
|
251
|
+
|
|
252
|
+
.top-popup-wrapper.p1 > .notch-border{ border-top-color: rgba(0,0,0,0.05); margin-bottom: 6px; }
|
|
253
|
+
.top-popup-wrapper.p2 > .notch-border{ border-right-color: rgba(0,0,0,0.05); margin-left: 6px; }
|
|
254
|
+
.top-popup-wrapper.p3 > .notch-border{ border-bottom-color: rgba(0,0,0,0.05); margin-top: 6px; }
|
|
255
|
+
.top-popup-wrapper.p4 > .notch-border{ border-left-color: rgba(0,0,0,0.05); margin-right: 6px; }
|
|
256
|
+
|
|
257
|
+
/* common */
|
|
258
|
+
.top-popup_header,
|
|
259
|
+
.top-popup_content,
|
|
260
|
+
.top-popup_footer{ font-size: 14px; }
|
|
261
|
+
.top-popup_header,
|
|
262
|
+
.top-popup_footer{ display: flex; align-items: center; justify-content: space-between; }
|
|
263
|
+
|
|
264
|
+
/* header */
|
|
265
|
+
.top-popup_header{
|
|
266
|
+
border-bottom: 1px solid var(--top-popup-border-color);
|
|
267
|
+
padding: var(--top-padding-3);
|
|
268
|
+
font-weight: 600;
|
|
269
|
+
}
|
|
270
|
+
.top-popup_header > *{ font-weight: 400; }
|
|
271
|
+
.top-popup_header > .a{ cursor: pointer; color: var(--color-blue-450); }
|
|
272
|
+
.top-popup_header > .a:hover{ color: var(--color-blue-350); }
|
|
273
|
+
|
|
274
|
+
.top-popup_headerButton{ width: 60px; }
|
|
275
|
+
|
|
276
|
+
/* content */
|
|
277
|
+
.top-popup_content{
|
|
278
|
+
margin: 0;
|
|
279
|
+
flex-grow: 1;
|
|
280
|
+
overflow-y: auto;
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
gap: var(--top-gap-4);
|
|
284
|
+
|
|
285
|
+
-webkit-overflow-scrolling: touch;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
div.top-popup_content{
|
|
289
|
+
/* has_scroll */
|
|
290
|
+
--scroll-padding-top: var(--top-popup-content-padding);
|
|
291
|
+
--scroll-padding-bottom: var(--top-popup-content-padding);
|
|
292
|
+
|
|
293
|
+
padding: var(--top-popup-content-padding);
|
|
294
|
+
}
|
|
295
|
+
div.top-popup_content > *{ flex-shrink: 0; }
|
|
296
|
+
div.top-popup_content > .top-button{ margin: 0; }
|
|
297
|
+
|
|
298
|
+
div.top-popup_content .top-unwrap{
|
|
299
|
+
--top-unwrap-x: var(--top-popup-content-padding);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
ul.top-popup_content{
|
|
303
|
+
--scroll-padding-top: var(--top-popup-list-padding);
|
|
304
|
+
--scroll-padding-bottom: var(--top-popup-list-padding);
|
|
305
|
+
|
|
306
|
+
padding: var(--top-popup-list-padding);
|
|
307
|
+
gap: 2px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
ul.top-popup_content .top-unwrap{
|
|
311
|
+
--top-unwrap-x: var(--top-popup-list-padding);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.top-popup_listItem {
|
|
315
|
+
border-radius: var(--top-popup-listItem-radius);
|
|
316
|
+
padding: var(--top-popup-listItem-padding);
|
|
317
|
+
line-height: 1 !important;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
ul.top-popup_content li{ margin: 0; list-style:none; display: flex; position: relative }
|
|
321
|
+
ul.top-popup_content li > *{ flex-grow: 1; }
|
|
322
|
+
ul.top-popup_content li > a:not(.top-button),
|
|
323
|
+
ul.top-popup_content li > .a{
|
|
324
|
+
cursor: pointer;
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
border-radius: var(--top-popup-listItem-radius);
|
|
327
|
+
background: var(--top-popup-background-color);
|
|
328
|
+
padding: var(--top-popup-listItem-padding);
|
|
329
|
+
color: var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration: none !important; font-style: normal;
|
|
330
|
+
line-height: 1 !important;
|
|
331
|
+
display: flex; flex: 1 1 100%; align-items: center;
|
|
332
|
+
transition: background-color 0.1s ease-in-out;
|
|
333
|
+
}
|
|
334
|
+
.top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
|
|
335
|
+
.top-popup-wrapper-no_animate ul.top-popup_content li > .a{ transition: none; }
|
|
336
|
+
|
|
337
|
+
ul.top-popup_content li > a:not(.top-button):hover,
|
|
338
|
+
ul.top-popup_content li > .a:hover{ background: var(--top-popup-background-color-hover); }
|
|
339
|
+
ul.top-popup_content li > a:not(.top-button).top-active,
|
|
340
|
+
ul.top-popup_content li > .a.top-active{ background: var(--top-popup-background-color-active); }
|
|
341
|
+
|
|
342
|
+
.top-popup_content + .top-popup_content{ padding-top: 0; }
|
|
343
|
+
|
|
344
|
+
/* listTitle */
|
|
345
|
+
.top-popup_listItem-title{
|
|
346
|
+
background: var(--top-popup-title-background-color);
|
|
347
|
+
color: var(--color-text-2); font-size: 12px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* listDelimiter */
|
|
351
|
+
.top-popup_listItem-delimiter{
|
|
352
|
+
border-radius: 3px;
|
|
353
|
+
background: var(--top-popup-border-color);
|
|
354
|
+
height: 1px;
|
|
355
|
+
padding: 0;
|
|
356
|
+
margin: 4px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* listMore */
|
|
360
|
+
.top-popup_listMore{
|
|
361
|
+
font-size: 20px;
|
|
362
|
+
margin: calc(0px - var(--top-popup-listItem-padding)) 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
ul.top-popup_content li > .a.top-popup_listMore{
|
|
366
|
+
text-align: center;
|
|
367
|
+
flex-basis: 10px;
|
|
368
|
+
}
|
|
369
|
+
ul.top-popup_content li > .a.top-popup_listMore:before{ color: var(--color-gray-500); }
|
|
370
|
+
ul.top-popup_content li > * > .top-popup_listMore{
|
|
371
|
+
margin-left: auto;
|
|
372
|
+
color: var(--color-gray-500);
|
|
373
|
+
font-size: 14px;
|
|
374
|
+
}
|
|
375
|
+
ul.top-popup_content li > * > i.top-popup_listMore:hover,
|
|
376
|
+
ul.top-popup_content li > * > i.top-popup_listMore.top-active{ color: var(--color-blue-500); }
|
|
377
|
+
ul.top-popup_content li > * > i.top-popup_listMore:before{
|
|
378
|
+
transform: rotate(90deg);
|
|
379
|
+
display: block;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
ul.top-popup_content li a.close{ background: none !important; }
|
|
383
|
+
|
|
384
|
+
/* data-top-icon */
|
|
385
|
+
.top-popup_content > [data-top-icon]:before{
|
|
386
|
+
--top-icon-size: 20px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
ul.top-popup_content li > [data-top-icon]:not(.top-button):before{
|
|
390
|
+
--top-icon-color: var(--color-text-3);
|
|
391
|
+
--top-icon-size: 20px;
|
|
392
|
+
--top-icon-width: 20px;
|
|
393
|
+
|
|
394
|
+
height: 1rem; margin-right: 8px; transition: color 0.1s;
|
|
395
|
+
}
|
|
396
|
+
ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,
|
|
397
|
+
ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before{
|
|
398
|
+
--top-icon-color: var(--color-text-2);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* footer */
|
|
402
|
+
.top-popup_footer{
|
|
403
|
+
padding: var(--top-popup-list-padding);
|
|
404
|
+
border-top: 1px solid var(--top-popup-border-color);
|
|
405
|
+
display: flex;
|
|
406
|
+
gap:var(--top-gap-2);
|
|
407
|
+
justify-content: flex-end;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* Виджеты */
|
|
411
|
+
.top-popup > [data-widget]{ padding: 0 var(--top-popup-list-padding); }
|
|
412
|
+
.top-popup > [data-widget] + hr{ margin: 0 var(--top-popup-list-padding); }
|
|
413
|
+
|
|
414
|
+
.top-popup .placeholder{
|
|
415
|
+
border:1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background:#F9F9F9 !important; margin: -1px 0; z-index: 1;
|
|
416
|
+
position: relative;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* компоненты */
|
|
420
|
+
.top-popup-wrapper.simple_list > .top-popup{ min-width: 0; white-space: nowrap; }
|
|
421
|
+
|
|
422
|
+
.top-popup_content .top-column{ display: flex; flex-direction: column; gap: 4px; }
|
|
423
|
+
html .top-popup .top-popup_content li > .top-button{
|
|
424
|
+
margin:calc(var(--top-popup-listItem-padding) / 2) var(--top-popup-listItem-padding);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.top-popup li .check_all,
|
|
428
|
+
.top-popup li .clear_all{ cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }
|
|
429
|
+
.top-popup li .check_all:hover,
|
|
430
|
+
.top-popup li .clear_all:hover{ text-decoration: underline; }
|
|
431
|
+
.top-popup li .clear_all{ display: none; }
|
|
432
|
+
|
|
433
|
+
/* table */
|
|
434
|
+
.top-popup_content table{ margin: -9px 0; }
|
|
435
|
+
.top-popup_content table td,
|
|
436
|
+
.top-popup_content table th{ padding: 9px var(--top-popup-listItem-padding) 9px 0; vertical-align: top; }
|
|
437
|
+
.top-popup_content table th{ width: 40%; font-weight: 600; white-space: nowrap; }
|
|
438
|
+
|
|
439
|
+
/* формы */
|
|
440
|
+
ul.top-popup_content .a > [type="checkbox"],
|
|
441
|
+
ul.top-popup_content .a > [type="radio"]{ margin: -8px 0 -8px auto; }
|
|
442
|
+
|
|
443
|
+
/* deprecated */
|
|
444
|
+
ul.top-popup_content a > [class*=icon],
|
|
445
|
+
ul.top-popup_content i.a > [class*=icon]{
|
|
446
|
+
transition: 0.1s;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.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; }
|
|
450
|
+
.top-popup_footer [class*=btn]:not(.btn-transparent){ min-width: 100px; padding: 5px 14px; margin-left: 10px; }
|
|
451
|
+
.top-popup_footer [class*=btn]:first-child{ margin-left: 0; }
|
|
452
|
+
.top-popup_footer .btn.full_width{ margin: 0; flex-grow: 1; }`, w = `:root{
|
|
453
|
+
--top-popup-list-padding: 0px;
|
|
454
|
+
|
|
455
|
+
--top-popup-listItem-radius: 0px;
|
|
456
|
+
--top-popup-listItem-padding: var(--top-padding-4);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
html.with_popup{ background: #808080; }
|
|
460
|
+
|
|
461
|
+
.top-popup-wrapper{
|
|
462
|
+
--top-popup-footer-offset: 25px;
|
|
463
|
+
|
|
464
|
+
width: auto !important; height: auto !important;
|
|
465
|
+
position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
|
|
466
|
+
transition: background 0.3s;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }
|
|
470
|
+
.top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }
|
|
471
|
+
|
|
472
|
+
.top-popup{
|
|
473
|
+
border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height) - 12px); margin: 0 !important;
|
|
474
|
+
top: auto !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
|
|
475
|
+
display: flex; flex-direction: column;
|
|
476
|
+
|
|
477
|
+
/* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
|
|
478
|
+
transform: translateY(80%);
|
|
479
|
+
|
|
480
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* from top */
|
|
484
|
+
.top-popup-wrapper.p-from-top{
|
|
485
|
+
--top-popup-footer-offset: 0px;
|
|
486
|
+
|
|
487
|
+
top: var(--header-height) !important;
|
|
488
|
+
}
|
|
489
|
+
.with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }
|
|
490
|
+
.top-popup-wrapper.p-from-top > .top-popup{
|
|
491
|
+
border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
|
|
492
|
+
transform: translateY(calc(-100% - 24px));
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* content */
|
|
496
|
+
ul.top-popup_content{
|
|
497
|
+
--scroll-padding-top: 0px;
|
|
498
|
+
--scroll-padding-bottom: var(--scroll-padding-top);
|
|
499
|
+
|
|
500
|
+
gap: 0;
|
|
501
|
+
}
|
|
502
|
+
ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }
|
|
503
|
+
|
|
504
|
+
.top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }
|
|
505
|
+
|
|
506
|
+
/* footer */
|
|
507
|
+
.top-popup_footer{
|
|
508
|
+
flex-direction: column-reverse;
|
|
509
|
+
}
|
|
510
|
+
.top-popup_footer > .top-button{
|
|
511
|
+
--top-forms-base-height: var(--top-forms-base-height_xl);
|
|
512
|
+
|
|
513
|
+
width: 100%;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* listTitle */
|
|
517
|
+
ul.top-popup_content .top-popup_listItem-title{
|
|
518
|
+
--top-popup-padding-v: 12px;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* listDelimiter */
|
|
522
|
+
ul.top-popup_content .top-popup_listItem-delimiter{ background: var(--color-line-1-opacity); height: 4px; margin: 0; }
|
|
523
|
+
ul.top-popup_content li:first-child > .top-popup_listItem-delimiter{ border-top: 1px solid var(--top-popup-border-color); }`, P = `html:not(.with_dialog){ margin-right: 0 !important; }
|
|
524
|
+
|
|
525
|
+
.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)); }
|
|
526
|
+
.top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }
|
|
527
|
+
.top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
|
|
528
|
+
|
|
529
|
+
/* position */
|
|
530
|
+
.top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height) - 16px); }
|
|
531
|
+
.top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }
|
|
532
|
+
.top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }
|
|
533
|
+
.top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }
|
|
534
|
+
|
|
535
|
+
/* notch */
|
|
536
|
+
.top-popup-wrapper.p1.with_notch > .top-popup,
|
|
537
|
+
.top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }
|
|
538
|
+
.top-popup-wrapper.p1.with_notch > .notch,
|
|
539
|
+
.top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }
|
|
540
|
+
|
|
541
|
+
.top-popup-wrapper.p1.with_notch.invert-x,
|
|
542
|
+
.top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }
|
|
543
|
+
.top-popup-wrapper.p1.with_notch.invert-x > .notch,
|
|
544
|
+
.top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }
|
|
545
|
+
|
|
546
|
+
/* listMore */
|
|
547
|
+
ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }
|
|
548
|
+
ul.top-popup_content li:hover > * > i.top-popup_listMore,
|
|
549
|
+
ul.top-popup_content li > *.top-active > i.top-popup_listMore,
|
|
540
550
|
ul.top-popup_content li > * > i.top-popup_listMore.top-active{ visibility: visible; }`;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
class
|
|
551
|
+
m.appendStyle(x);
|
|
552
|
+
m.appendStyle(w, "m");
|
|
553
|
+
m.appendStyle(P, "pc");
|
|
554
|
+
class v extends g {
|
|
545
555
|
static componentName = "Popup";
|
|
546
556
|
el;
|
|
547
557
|
// элемент, вызвавший открытие Popup
|
|
@@ -591,23 +601,23 @@ class g extends m {
|
|
|
591
601
|
events = {};
|
|
592
602
|
// el - элемент, открывающий меню
|
|
593
603
|
constructor(t, p) {
|
|
594
|
-
return super(), this.init(
|
|
604
|
+
return super(), this.init(v.componentName, t, p);
|
|
595
605
|
}
|
|
596
606
|
async mount() {
|
|
597
607
|
const t = this.vueGetComponent();
|
|
598
|
-
if (this.popupParent =
|
|
599
|
-
this.type = "vue", this.options.popup = "", this.elPopup =
|
|
608
|
+
if (this.popupParent = i.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)
|
|
609
|
+
this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
|
|
600
610
|
else if (this.options.popup.match(/^[#.]/))
|
|
601
611
|
this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`);
|
|
602
612
|
else {
|
|
603
613
|
if (this.type = "html", this.options.useOriginal)
|
|
604
614
|
throw "Option useOriginal not allowed for text templates";
|
|
605
|
-
this.elPopup =
|
|
615
|
+
this.elPopup = n.genEl("div", {}, this.options.popup);
|
|
606
616
|
}
|
|
607
617
|
if (!this.elPopup || t != null && t.opened) {
|
|
608
618
|
if (this.options.useOriginal || t != null && t.opened) {
|
|
609
619
|
if (t != null && t.opened ? this.elPopup = t.popup.elPopup : this.elPopup = document.querySelector(`${this.options.popup}.top-popup-wrapper-shown`), this.elPopup) {
|
|
610
|
-
this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"),
|
|
620
|
+
this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"), i.close(this.elPopup), setTimeout(() => this.mount(), 300);
|
|
611
621
|
return;
|
|
612
622
|
}
|
|
613
623
|
throw "Option useOriginal state allowed only elements .template";
|
|
@@ -616,7 +626,7 @@ class g extends m {
|
|
|
616
626
|
}
|
|
617
627
|
if (!this.elPopup)
|
|
618
628
|
return;
|
|
619
|
-
for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition =
|
|
629
|
+
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((e) => e.dataset.topPopupPosBy = "fixed"), n.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((e) => e.remove()))), i.decoratorBeforeOpen(this), t && (this.options.class = t.classRef.value), this.elPopupInner = document.createElement("div"), this.elPopupInner.classList.add("top-popupPanel", "top-popup"); this.elPopup.firstChild; )
|
|
620
630
|
this.elPopupInner.appendChild(this.elPopup.firstChild);
|
|
621
631
|
if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
|
|
622
632
|
const e = this.options.class.split(" ");
|
|
@@ -624,9 +634,9 @@ class g extends m {
|
|
|
624
634
|
}
|
|
625
635
|
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.elPopupBody = this.elPopupInner.querySelector(".top-popup_content"), this.elPopupFooter = this.elPopupInner.querySelector(".top-popup_footer");
|
|
626
636
|
const p = !!this.elPopup.querySelector('[data-widget="search"]');
|
|
627
|
-
this.options.isFullScreen && !p && (this.elPopupHeader || (this.elPopupHeader =
|
|
637
|
+
this.options.isFullScreen && !p && (this.elPopupHeader || (this.elPopupHeader = n.genEl("i", { class: "top-popup_header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(n.genEl("i", { class: "a closer" }, this.options.i18n.Close)), this.elPopupHeader.append(n.genEl("i", { class: "top-popup_headerButton" })))), n.storage(this.elPopup, "Popup", 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.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", this.el.parentElement.insertBefore(this.elPopup, this.el), this.elPopup.classList.remove("template"), this.options.invertX && this.elPopup.classList.add("invert-x");
|
|
628
638
|
let o = !!this.el.closest(".modal-header");
|
|
629
|
-
o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => this.elPopup.classList.add("top-popup-wrapper-shown")), this.elFront && !this.elFront.matches("body") && (this.elFront.append(this.elPopup), this.shift.top =
|
|
639
|
+
o || (o = !!this.el.closest("#top_panel")), o || (o = !!this.el.closest("#secondmenu")), o && this.elPopup.classList.add("p-from-top"), setTimeout(() => this.elPopup.classList.add("top-popup-wrapper-shown")), 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.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.$ && this.$.trigger("aftershow.top-menu-popup", [jQuery(this.elPopup)]), this.recalcPosition(), this.elPopup.setAttribute("tabindex", 0), this.focus(), i.decoratorAfterOpen(this), this.mountEvents();
|
|
630
640
|
}
|
|
631
641
|
async mountJQuery() {
|
|
632
642
|
typeof jQuery == "function" && (this.$ = jQuery(this.el));
|
|
@@ -635,8 +645,8 @@ class g extends m {
|
|
|
635
645
|
* Выполнить фокусировку на нужный элемент после открытия окна
|
|
636
646
|
*/
|
|
637
647
|
focus() {
|
|
638
|
-
let t =
|
|
639
|
-
t || (t =
|
|
648
|
+
let t = n.querySelectorVisible(this.elPopup, ".top-popup-autofocus");
|
|
649
|
+
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.focus();
|
|
640
650
|
}
|
|
641
651
|
mountEvents() {
|
|
642
652
|
this.addEventListenerWithUnmount(document, "mousedown", (t) => this.onMousedown(t)), this.addEventListenerWithUnmount(this.elPopup, "focus", (t) => this.onFocus(t)), this.options.openByHover && (this.addEventListenerWithUnmount(this.elPopup, "mouseleave", (t) => this.onMouseleave(t)), this.addEventListenerWithUnmount(this.elPopupInner, "mouseleave", (t) => this.onMouseleave(t))), this.options.isFullScreen && this.addEventListenerWithUnmount(this.elPopupBody, "touchmove", (t) => this.onTouchmove(t));
|
|
@@ -648,8 +658,8 @@ class g extends m {
|
|
|
648
658
|
onMousedown(t) {
|
|
649
659
|
if (!this.elPopup || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t.button !== 0))
|
|
650
660
|
return;
|
|
651
|
-
let p =
|
|
652
|
-
p && p !== this.elPopup || (p =
|
|
661
|
+
let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
|
|
662
|
+
p && p !== this.elPopup || (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") || i.decoratorIsIgnoreOuterClick(t) || i.close(this.elPopup)));
|
|
653
663
|
}
|
|
654
664
|
/**
|
|
655
665
|
* Закрыть другие Popup при фокусе на элемент формы в текущем
|
|
@@ -658,9 +668,9 @@ class g extends m {
|
|
|
658
668
|
onFocus(t) {
|
|
659
669
|
if (t.target.matches("input") || this.isClosed)
|
|
660
670
|
return;
|
|
661
|
-
|
|
662
|
-
var e,
|
|
663
|
-
this.elPopup.contains(o) || ((e = this.popupParent) == null ? void 0 : e.elPopup) === o || ((l = (
|
|
671
|
+
i.getAllVisible().forEach((o) => {
|
|
672
|
+
var e, r, l;
|
|
673
|
+
this.elPopup.contains(o) || ((e = this.popupParent) == null ? void 0 : e.elPopup) === o || ((l = (r = this.popupParent) == null ? void 0 : r.popupParent) == null ? void 0 : l.elPopup) === o || i.close(o);
|
|
664
674
|
});
|
|
665
675
|
}
|
|
666
676
|
/**
|
|
@@ -669,14 +679,14 @@ class g extends m {
|
|
|
669
679
|
*/
|
|
670
680
|
onMouseleave(t) {
|
|
671
681
|
setTimeout(() => {
|
|
672
|
-
this.elPopupInner.matches(":hover") ||
|
|
682
|
+
this.elPopupInner.matches(":hover") || i.close(this.elPopup);
|
|
673
683
|
}, 100);
|
|
674
684
|
}
|
|
675
685
|
/**
|
|
676
686
|
* Контроль положения Popup при fixed позиционировании
|
|
677
687
|
*/
|
|
678
688
|
onResize() {
|
|
679
|
-
this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup.style.top =
|
|
689
|
+
this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup.style.top = n.offset(this.el).top + "px", this.elPopup.style.left = n.offset(this.el).left + "px";
|
|
680
690
|
}
|
|
681
691
|
unmount() {
|
|
682
692
|
super.unmount(), this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active");
|
|
@@ -701,20 +711,20 @@ class g extends m {
|
|
|
701
711
|
}
|
|
702
712
|
const o = this.elPopup.getBoundingClientRect();
|
|
703
713
|
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.style.maxWidth = "unset", this.elPopupInner.style.maxHeight = "unset";
|
|
704
|
-
let e = !1,
|
|
714
|
+
let e = !1, r = !1, l = !1, h = !1, a = o.left > window.innerWidth / 2, u = o.top > window.innerHeight / 2;
|
|
705
715
|
t === 4 && (a = !a), t === 1 && (u = !u);
|
|
706
|
-
const s = this.elPopupInner.getBoundingClientRect(), c = window.innerWidth - s.right,
|
|
707
|
-
s.top <
|
|
716
|
+
const s = this.elPopupInner.getBoundingClientRect(), c = window.innerWidth - s.right, d = window.innerHeight - s.bottom, f = 8;
|
|
717
|
+
s.top < f && (e = !0), c < f && (r = !0), d < f && (l = !0), s.left < f && (h = !0), e && (t === 0 || t === 1) && u && (t = 3), l && t === 3 && u && (t = 1), r && t === 2 && a && (t = 4), h && t === 4 && a && (t = 2), r && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), l && (t === 2 || t === 4) && u && (t === 2 && !a && this.elPopup.classList.add("invert-y"), t === 4 && !a && 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.style.maxWidth = "", this.elPopupInner.style.maxHeight = "", i.scrollToActive(this.elPopup);
|
|
708
718
|
}
|
|
709
719
|
onTouchmove(t) {
|
|
710
720
|
t.currentTarget.scrollWidth > t.currentTarget.offsetWidth || t.target.parentElement.scrollWidth > t.target.parentElement.offsetWidth || t.currentTarget.matches(".has_scroll") || t.preventDefault();
|
|
711
721
|
}
|
|
712
722
|
close() {
|
|
713
|
-
this.isClosed || (this.isClosed = !0, this.$ && this.$.trigger("afterclose.top-menu-popup", [jQuery(this.elPopup)]), !
|
|
714
|
-
var o, e,
|
|
715
|
-
this.vueClose(), this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), this.elStartPosition.append(this.elPopup), (o = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || o.classList.remove("top-column"), (e = this.elPopup.querySelector(".notch-border")) == null || e.remove(), (
|
|
716
|
-
const t =
|
|
717
|
-
p ?
|
|
723
|
+
this.isClosed || (this.isClosed = !0, this.$ && this.$.trigger("afterclose.top-menu-popup", [jQuery(this.elPopup)]), !i.noClose && (this.unmount(), this.elPopup.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
|
|
724
|
+
var o, e, r;
|
|
725
|
+
this.vueClose(), this.options.useOriginal ? (this.elPopup.removeAttribute("style"), this.elPopup.classList.remove("top-popup-wrapper-shown", "top-popup-wrapper-closed"), this.elPopup.classList.add("template"), this.elStartPosition.append(this.elPopup), (o = this.elPopup.querySelector("div.top-popup_content.top-column")) == null || o.classList.remove("top-column"), (e = this.elPopup.querySelector(".notch-border")) == null || e.remove(), (r = this.elPopup.querySelector(".notch")) == null || r.remove(), this.elPopupInner.replaceWith(...this.elPopupInner.childNodes), n.storageClear(this.elPopup)) : (n.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
|
|
726
|
+
const t = i.getAllVisible(), p = t.length && t[t.length - 1];
|
|
727
|
+
p ? i.getPopup(p).focus() : document.documentElement.classList.remove("with_popup");
|
|
718
728
|
}, 300)));
|
|
719
729
|
}
|
|
720
730
|
async vueOpen() {
|
|
@@ -727,11 +737,11 @@ class g extends m {
|
|
|
727
737
|
}
|
|
728
738
|
// получить vueConnectors компонента Popup
|
|
729
739
|
vueGetComponent() {
|
|
730
|
-
return
|
|
740
|
+
return i.vueConnectors.get(this.el.dataset.topPopupId);
|
|
731
741
|
}
|
|
732
742
|
}
|
|
733
743
|
b.init();
|
|
734
744
|
export {
|
|
735
|
-
|
|
745
|
+
v as default
|
|
736
746
|
};
|
|
737
|
-
//# sourceMappingURL=popup-
|
|
747
|
+
//# sourceMappingURL=popup-b2fe3094.es.js.map
|