@topvisor/ui 0.0.34 → 0.0.36

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.
Files changed (57) hide show
  1. package/.chunks/datepicker-1e725859.amd.js +234 -0
  2. package/.chunks/datepicker-1e725859.amd.js.map +1 -0
  3. package/.chunks/datepicker-ad465c48.es.js +275 -0
  4. package/.chunks/datepicker-ad465c48.es.js.map +1 -0
  5. package/.chunks/{forms-02202302.amd.js → forms-2891e074.amd.js} +3 -3
  6. package/.chunks/forms-2891e074.amd.js.map +1 -0
  7. package/.chunks/{forms-eb00d0c1.es.js → forms-db4cb24d.es.js} +27 -27
  8. package/.chunks/forms-db4cb24d.es.js.map +1 -0
  9. package/.chunks/{popup-6f73b4b2.es.js → popup-0f540839.es.js} +383 -383
  10. package/.chunks/popup-0f540839.es.js.map +1 -0
  11. package/.chunks/popup-e49a9bab.amd.js +341 -0
  12. package/.chunks/popup-e49a9bab.amd.js.map +1 -0
  13. package/README.md +62 -62
  14. package/core/core.amd.js +1 -1
  15. package/core/core.js +1 -1
  16. package/core.css +1 -1
  17. package/forms/forms.amd.js +1 -1
  18. package/forms/forms.js +1 -1
  19. package/forms/helpers.amd.js.map +1 -1
  20. package/forms/helpers.js.map +1 -1
  21. package/forms.css +1 -1
  22. package/formsExt/formsExt.amd.js +2 -2
  23. package/formsExt/formsExt.amd.js.map +1 -1
  24. package/formsExt/formsExt.js +107 -52
  25. package/formsExt/formsExt.js.map +1 -1
  26. package/formsExt.css +1 -1
  27. package/icomoon/demo-files/demo.css +161 -161
  28. package/icomoon/demo-files/demo.js +30 -30
  29. package/icomoon/demo.html +2945 -2945
  30. package/icomoon/fonts/Topvisor-2.svg +232 -232
  31. package/icomoon/style.css +647 -647
  32. package/package.json +19 -19
  33. package/popup/popup.amd.js +1 -1
  34. package/popup/popup.amd.js.map +1 -1
  35. package/popup/popup.js +1 -1
  36. package/popup/popup.js.map +1 -1
  37. package/popup/worker.amd.js +1 -1
  38. package/popup/worker.amd.js.map +1 -1
  39. package/popup/worker.js +2 -2
  40. package/popup/worker.js.map +1 -1
  41. package/tabs/tabs.amd.js +1 -1
  42. package/tabs/tabs.js +1 -1
  43. package/utils/date.amd.js +1 -1
  44. package/utils/date.js +1 -1
  45. package/utils/device.amd.js +1 -1
  46. package/utils/device.js +1 -1
  47. package/utils/dom.amd.js.map +1 -1
  48. package/utils/dom.js.map +1 -1
  49. package/.chunks/datepicker-0b648b9f.es.js +0 -275
  50. package/.chunks/datepicker-0b648b9f.es.js.map +0 -1
  51. package/.chunks/datepicker-0e9a0541.amd.js +0 -234
  52. package/.chunks/datepicker-0e9a0541.amd.js.map +0 -1
  53. package/.chunks/forms-02202302.amd.js.map +0 -1
  54. package/.chunks/forms-eb00d0c1.es.js.map +0 -1
  55. package/.chunks/popup-6f73b4b2.es.js.map +0 -1
  56. package/.chunks/popup-e1f34511.amd.js +0 -341
  57. package/.chunks/popup-e1f34511.amd.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { C as f } from "./forms-eb00d0c1.es.js";
2
- import r from "../utils/dom.js";
3
- import n from "../popup/worker.js";
1
+ import { C as f } from "./forms-db4cb24d.es.js";
2
+ import n from "../utils/dom.js";
3
+ import i from "../popup/worker.js";
4
4
  import "vue";
5
5
  class m {
6
6
  static componentName = "Top";
@@ -29,11 +29,11 @@ class m {
29
29
  }
30
30
  // получить инициированный компонент
31
31
  static getComponent(t, p) {
32
- return r.storage(t, "#" + p);
32
+ return n.storage(t, "#" + p);
33
33
  }
34
34
  // устанвоить компонент
35
35
  _setComponent(t) {
36
- r.storage(t, "#" + this.componentName, this);
36
+ n.storage(t, "#" + this.componentName, this);
37
37
  }
38
38
  // функция подключения компонента
39
39
  mount() {
@@ -41,7 +41,7 @@ class m {
41
41
  }
42
42
  // функция отключения компонента
43
43
  unmount() {
44
- r.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
44
+ n.storage(this.el, "#" + this.componentName, null), this.unmountEls.forEach((t) => {
45
45
  t.remove();
46
46
  }), this.unmountEls = [], this.unmountEvents.forEach((t) => {
47
47
  t.el.removeEventListener(t.type, t.listener, t.options);
@@ -57,13 +57,13 @@ class m {
57
57
  }
58
58
  // указание новые события, которые должны будут удалиться после unmount
59
59
  registerEventForUnmount(t, p, o, e) {
60
- const i = {
60
+ const r = {
61
61
  el: t,
62
62
  type: p,
63
63
  listener: o,
64
64
  options: e
65
65
  };
66
- this.unmountEvents.push(i);
66
+ this.unmountEvents.push(r);
67
67
  }
68
68
  // функция перенастройки уже подключенного компонента
69
69
  reInit(t) {
@@ -100,15 +100,15 @@ class b {
100
100
  if (!e || p.matches(".top-popup-noCloser"))
101
101
  return;
102
102
  if (p.getAttribute("href") === "." && t.preventDefault(), t.target.matches("[data-top-popup]")) {
103
- const i = t.target.closest("ul"), l = t.target.closest("a, .a");
104
- i && ((o = i.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), l && l.classList.add("top-active");
103
+ const r = t.target.closest("ul"), l = t.target.closest("a, .a");
104
+ r && ((o = r.querySelector("a.top-active, .a.top-active")) == null || o.classList.remove("top-active")), l && l.classList.add("top-active");
105
105
  return;
106
106
  }
107
- n.close(e);
107
+ i.close(e);
108
108
  }
109
109
  if (t.target.matches(".top-popup-wrapper")) {
110
110
  const e = t.target;
111
- n.close(e);
111
+ i.close(e);
112
112
  }
113
113
  }
114
114
  /**
@@ -126,14 +126,14 @@ class b {
126
126
  break;
127
127
  case "Enter":
128
128
  if (!o) {
129
- if (r.querySelectorVisible(p, ".preloader"))
129
+ if (n.querySelectorVisible(p, ".preloader"))
130
130
  break;
131
131
  const u = p.querySelector(".top-popup_footer .go, .top-popup_footer [data-action]");
132
132
  u && u.click();
133
133
  break;
134
134
  }
135
- const i = r.querySelectorVisible(p, "li > a.top-active");
136
- i && (t.preventDefault(), location.href = i.getAttribute("href"));
135
+ const r = n.querySelectorVisible(p, "li > a.top-active");
136
+ r && (t.preventDefault(), location.href = r.getAttribute("href"));
137
137
  const l = p.querySelector("li > .top-active");
138
138
  l && l.click();
139
139
  break;
@@ -143,363 +143,363 @@ class b {
143
143
  case "ArrowLeft":
144
144
  if (!o)
145
145
  break;
146
- t.key === "ArrowRight" || t.key === "ArrowLeft" ? r.querySelectorVisible(p, "ul.top-popup_content > li:not(.top-popup_listTitle):not(.top-popup_listDelimiter) > .top-active > .top-popup_listMore") && t.preventDefault() : t.preventDefault();
146
+ t.key === "ArrowRight" || t.key === "ArrowLeft" ? n.querySelectorVisible(p, "ul.top-popup_content > li:not(.top-popup_listTitle):not(.top-popup_listDelimiter) > .top-active > .top-popup_listMore") && t.preventDefault() : t.preventDefault();
147
147
  const h = (e = p.querySelector("ul.top-popup_content > li:not(.top-popup_listTitle):not(.top-popup_listDelimiter) > .top-active")) == null ? void 0 : e.parentElement;
148
148
  if (t.key === "ArrowRight" && h) {
149
149
  const u = h.querySelector(".top-active > .top-popup_listMore");
150
150
  if (u)
151
151
  return u.click();
152
152
  }
153
- const a = r.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_listTitle):not(.top-popup_listDelimiter)"), c = a.length;
153
+ const a = n.querySelectorAllVisible(p, "ul.top-popup_content > li:not(.top-popup_listTitle):not(.top-popup_listDelimiter)"), c = a.length;
154
154
  let s = a.indexOf(h);
155
155
  if (t.key === "ArrowUp" || t.key === "ArrowLeft" ? s-- : s++, t.key === "ArrowLeft" && s === -1)
156
- return t.target.matches("input") ? void 0 : n.close(p);
156
+ return t.target.matches("input") ? void 0 : i.close(p);
157
157
  if (t.key === "ArrowRight" && s === c)
158
158
  return;
159
- s < 0 && (s = c - 1), s > c - 1 && (s = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((u) => u.classList.remove("top-active")), a[s].querySelector(":scope > a, :scope > .a").classList.add("top-active"), n.scrollToActive(p);
159
+ s < 0 && (s = c - 1), s > c - 1 && (s = 0), p.querySelectorAll("ul.top-popup_content > li > .top-active").forEach((u) => u.classList.remove("top-active")), a[s].querySelector(":scope > a, :scope > .a").classList.add("top-active"), i.scrollToActive(p);
160
160
  break;
161
161
  }
162
162
  }
163
163
  }
164
- const x = `:root{\r
165
- --top-popup-background-color: var(--color-bg-3);\r
166
- --top-popup-background-color-hover: var(--color-steel-150);\r
167
- --top-popup-background-color-active: var(--color-steel-200);\r
168
- --top-popup-border-color: var(--color-theme-100);\r
169
- --top-popup-title-background-color: var(--color-steel-100);\r
170
- }\r
171
- \r
172
- .top-theme-dark{\r
173
- --top-popup-background-color-hover: var(--color-gray-800);\r
174
- --top-popup-background-color-active: var(--color-gray-750);\r
175
- --top-popup-title-background-color: var(--color-gray-900);\r
176
- }\r
177
- \r
178
- .top-popup-front{ position: relative; }\r
179
- \r
180
- .top-popup-wrapper{\r
181
- --top-popup-padding-h: 8px;\r
182
- --top-popup-padding-v: 8px;\r
183
- \r
184
- /* см. recalcPosition() */\r
185
- --top-popup-height: 0px;\r
186
- --top-popup-right-bounding: 0px;\r
187
- --top-popup-bottom-bounding: 0px;\r
188
- --top-popup-top: 0px;\r
189
- --top-popup-right: calc(100vw - var(--top-popup-right-bounding));\r
190
- --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));\r
191
- --top-popup-left: 0px;\r
192
- \r
193
- text-align: initial; white-space: normal; word-break: normal;\r
194
- position: absolute; z-index: 200000;\r
195
- }\r
196
- .top-popup-wrapper:not(.top-popup-wrapper-shown){ overflow: hidden; }\r
197
- \r
198
- /* top-popupPanel */\r
199
- .top-popupPanel {\r
200
- cursor: default;\r
201
- box-shadow: var(--top-shadow-b);\r
202
- border-radius: 8px;\r
203
- background: var(--top-popup-background-color);\r
204
- position: absolute; overflow: hidden;\r
205
- display: flex; flex-direction: column;\r
206
- }\r
207
- \r
208
- /* position */\r
209
- .top-popup-wrapper > *{ opacity: 0; transition: opacity 100ms linear, transform 100ms linear; }\r
210
- .top-popup-wrapper.p0 > *{ transform: translateY(-8px); }\r
211
- .top-popup-wrapper.p1 > *{ transform: translateY(8px); }\r
212
- .top-popup-wrapper.p2 > *{ transform: translateX(8px); }\r
213
- .top-popup-wrapper.p3 > *{ transform: translateY(8px); }\r
214
- .top-popup-wrapper.p4 > *{ transform: translateX(-8px); }\r
215
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > *{opacity: 1;transform: translate(0, 0) !important;}\r
216
- \r
217
- .top-popup-wrapper.p0 > .top-popup{ top: calc(-16px); left: calc(0px - var(--top-popup-padding-h)); }\r
218
- .top-popup-wrapper.p1 > .top-popup{ bottom: calc(100% + 8px); }\r
219
- .top-popup-wrapper.p2 > .top-popup{ left: calc(100% + 8px); }\r
220
- .top-popup-wrapper.p3 > .top-popup{ top: calc(100% + 8px); }\r
221
- .top-popup-wrapper.p4 > .top-popup{ right: calc(100% + 8px); }\r
222
- .top-popup-wrapper.p2 > .top-popup,\r
223
- .top-popup-wrapper.p4 > .top-popup{ margin-top: -10px; }\r
224
- \r
225
- .top-popup-wrapper.p1.with_notch > .top-popup{ margin-bottom: 5px; }\r
226
- .top-popup-wrapper.p2.with_notch > .top-popup{ margin-left: 5px; }\r
227
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-top: 5px; }\r
228
- .top-popup-wrapper.p4.with_notch > .top-popup{ margin-right: 5px; }\r
229
- \r
230
- .top-popup-wrapper.invert-x > .top-popup{ right: 0; }\r
231
- .top-popup-wrapper.invert-y > .top-popup{ bottom: 0; }\r
232
- \r
233
- /* notch */\r
234
- .top-popup-wrapper > .notch{ border: 7.4px solid transparent; position: absolute; display: block; }\r
235
- \r
236
- .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% }\r
237
- .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%; }\r
238
- .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%; }\r
239
- .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%; }\r
240
- \r
241
- .top-popup-wrapper.p1 > .notch-border{ border-top-color: rgba(0,0,0,0.05); margin-bottom: 6px; }\r
242
- .top-popup-wrapper.p2 > .notch-border{ border-right-color: rgba(0,0,0,0.05); margin-left: 6px; }\r
243
- .top-popup-wrapper.p3 > .notch-border{ border-bottom-color: rgba(0,0,0,0.05); margin-top: 6px; }\r
244
- .top-popup-wrapper.p4 > .notch-border{ border-left-color: rgba(0,0,0,0.05); margin-right: 6px; }\r
245
- \r
246
- /* common */\r
247
- .top-popup_header,\r
248
- .top-popup_content,\r
249
- .top-popup_footer{ padding: var(--top-popup-padding-h) var(--top-popup-padding-h); font-size: 14px; }\r
250
- .top-popup_header,\r
251
- .top-popup_footer{ display: flex; align-items: center; justify-content: space-between; }\r
252
- \r
253
- /* header */\r
254
- .top-popup_header{ border-bottom: 1px solid var(--top-popup-border-color); font-weight: 600; }\r
255
- .top-popup_header > *{ font-weight: 400; }\r
256
- .top-popup_header > .a{ cursor: pointer; color: var(--color-blue-450); }\r
257
- .top-popup_header > .a:hover{ color: var(--color-blue-350); }\r
258
- \r
259
- .top-popup-headerButton{ width: 60px; }\r
260
- \r
261
- /* content */\r
262
- .top-popup .top-popup_content{\r
263
- /* has_scroll */\r
264
- --scroll-padding-top: var(--top-popup-padding-v);\r
265
- --scroll-padding-bottom: var(--top-popup-padding-v);\r
266
- \r
267
- padding-top: var(--top-popup-padding-v); padding-bottom: var(--top-popup-padding-v); margin: 0; line-height:1.3 !important;\r
268
- flex-grow: 1; overflow-y: auto;\r
269
- -webkit-overflow-scrolling: touch;\r
270
- }\r
271
- \r
272
- .top-popup .top-popup_content .top-unwrap{\r
273
- --top-unwrap-x: var(--top-popup-padding-h);\r
274
- }\r
275
- \r
276
- .top-popup div.top-popup_content{ display: flex; flex-direction: column; gap: 4px; }\r
277
- .top-popup div.top-popup_content > *{ flex-shrink: 0; }\r
278
- .top-popup div.top-popup_content > .top-button{ margin: 0; }\r
279
- \r
280
- .top-popup ul.top-popup_content{\r
281
- --scroll-padding-top: 4px;\r
282
- --scroll-padding-bottom: var(--scroll-padding-top);\r
283
- \r
284
- padding: var(--scroll-padding-top) 0;\r
285
- }\r
286
- \r
287
- ul.top-popup_content li{ margin: 0; list-style:none; display: flex; position: relative }\r
288
- ul.top-popup_content li > *{ flex-grow: 1; }\r
289
- ul.top-popup_content li > a:not(.top-button),\r
290
- ul.top-popup_content li > i.a{\r
291
- cursor: pointer;\r
292
- box-sizing: border-box;\r
293
- background: var(--top-popup-background-color); padding:var(--top-popup-padding-v) var(--top-popup-padding-h);\r
294
- color:var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration:none !important; font-style: normal;\r
295
- display:flex; flex: 1 1 100%; align-items: center;\r
296
- transition: background-color 0.1s ease-in-out;\r
297
- }\r
298
- .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),\r
299
- .top-popup-wrapper-no_animate ul.top-popup_content li > i.a{ transition: none; }\r
300
- \r
301
- ul.top-popup_content li > a:not(.top-button):hover,\r
302
- ul.top-popup_content li > i.a:hover{ background: var(--top-popup-background-color-hover); }\r
303
- ul.top-popup_content li > a:not(.top-button).top-active,\r
304
- ul.top-popup_content li > i.a.top-active{ background: var(--top-popup-background-color-active); }\r
305
- \r
306
- /* listTitle */\r
307
- li.top-popup_listTitle{\r
308
- background: var(--top-popup-title-background-color); padding: var(--top-popup-padding-v) var(--top-popup-padding-h);\r
309
- color: var(--color-text-3); font-size: 12px; font-weight: 400;\r
310
- }\r
311
- li.top-popup_listTitle:first-child{\r
312
- padding-top: calc(var(--top-popup-padding-v) + var(--scroll-padding-top));\r
313
- margin-top: calc(0px - var(--scroll-padding-top));\r
314
- }\r
315
- \r
316
- /* listDelimiter */\r
317
- ul.top-popup_content li.top-popup_listDelimiter{\r
318
- border-radius: 3px;\r
319
- background: var(--top-popup-border-color);\r
320
- height: 2px;\r
321
- margin: calc(var(--top-popup-padding-h) / 2) var(--top-popup-padding-h);\r
322
- }\r
323
- \r
324
- /* listMore */\r
325
- ul.top-popup_content li > i.a.top-popup_listMore{\r
326
- height: auto; padding-right: 4px; padding-left: 4px;\r
327
- font-size: 24px; line-height: 17px; text-align: center;\r
328
- flex-basis: 10px;\r
329
- }\r
330
- ul.top-popup_content li > i.a.top-popup_listMore:before{ color: var(--color-gray-500); }\r
331
- ul.top-popup_content li > * > i.top-popup_listMore{\r
332
- padding: 0 var(--top-popup-padding-h); margin: 0 0 0 auto;\r
333
- color: var(--color-gray-500);\r
334
- font-size: 14px;\r
335
- }\r
336
- ul.top-popup_content li > * > i.top-popup_listMore:hover,\r
337
- ul.top-popup_content li > * > i.top-popup_listMore.top-active{ color: var(--color-blue-500); }\r
338
- ul.top-popup_content li > * > i.top-popup_listMore:before{ transform: rotate(90deg); }\r
339
- \r
340
- ul.top-popup_content li a.close{ background: none !important; }\r
341
- \r
342
- /* data-top-icon */\r
343
- .top-popup_content > [data-top-icon]:before{ --top-icon-size: 20px; }\r
344
- \r
345
- ul.top-popup_content li > [data-top-icon]:not(.top-button):before{\r
346
- --top-icon-color: var(--color-text-3);\r
347
- --top-icon-size: 20px;\r
348
- --top-icon-width: 20px;\r
349
- \r
350
- height: 1rem; margin-right: 8px; transition: color 0.1s;\r
351
- }\r
352
- ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,\r
353
- ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before{\r
354
- --top-icon-color: #378DC6;\r
355
- }\r
356
- \r
357
- /* footer */\r
358
- .top-popup_footer{\r
359
- padding: var(--top-popup-padding-h) var(--top-popup-padding-h); display: flex; gap:8px; justify-content: flex-end;\r
360
- }\r
361
- .top-popup_footer > .top-button{ margin: 0; }\r
362
- \r
363
- /* Виджеты */\r
364
- .top-popup > [data-widget]{ padding: 0 var(--top-popup-padding-h); }\r
365
- .top-popup > [data-widget] + hr{ margin: 0 var(--top-popup-padding-h); }\r
366
- \r
367
- .top-popup .placeholder{\r
368
- border:1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background:#F9F9F9 !important; margin: -1px 0; z-index: 1;\r
369
- position: relative;\r
370
- }\r
371
- \r
372
- /* компоненты */\r
373
- .top-popup-wrapper.simple_list > .top-popup{ min-width: 0; white-space: nowrap; }\r
374
- \r
375
- .top-popup_content .top-column{ display: flex; flex-direction: column; gap: 4px; }\r
376
- .top-popup_content li > :not(a):not(.a){ margin:0 var(--top-popup-padding-h); }\r
377
- html .top-popup .top-popup_content li > .top-button{ margin:calc(var(--top-popup-padding-v) / 2) var(--top-popup-padding-h); }\r
378
- \r
379
- .top-popup li .check_all,\r
380
- .top-popup li .clear_all{ cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }\r
381
- .top-popup li .check_all:hover,\r
382
- .top-popup li .clear_all:hover{ text-decoration: underline; }\r
383
- .top-popup li .clear_all{ display: none; }\r
384
- \r
385
- /* table */\r
386
- .top-popup_content table{ margin: -9px 0; }\r
387
- .top-popup_content table td,\r
388
- .top-popup_content table th{ padding: 9px var(--top-popup-padding-h) 9px 0; vertical-align: top; }\r
389
- .top-popup_content table th{ width: 40%; font-weight: 600; white-space: nowrap; }\r
390
- \r
391
- /* формы */\r
392
- ul.top-popup_content .a > [type="checkbox"],\r
393
- ul.top-popup_content .a > [type="radio"]{ margin: -8px 0 -8px auto; }\r
394
- \r
395
- /* deprecated */\r
396
- ul.top-popup_content a > [class*=icon],\r
397
- ul.top-popup_content i.a > [class*=icon]{\r
398
- margin-right: 14px; text-align: center;\r
399
- width: auto; height: 16px; font-size: 16px; vertical-align: top;\r
400
- transition: 0.1s;\r
401
- }\r
402
- \r
403
- .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; }\r
404
- .top-popup_footer [class*=btn]:not(.btn-transparent){ min-width: 100px; padding: 5px 14px; margin-left: 10px; }\r
405
- .top-popup_footer [class*=btn]:first-child{ margin-left: 0; }\r
406
- .top-popup_footer .btn.full_width{ margin: 0; flex-grow: 1; }`, w = `html.with_popup{ background: #808080; }\r
407
- \r
408
- .top-popup-wrapper{\r
409
- --top-popup-padding-h: 19px;\r
410
- --top-popup-padding-v: 16px;\r
411
- --top-popup-footer-offset: 25px;\r
412
- \r
413
- width: auto !important; height: auto !important;\r
414
- position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;\r
415
- transition: background 0.3s;\r
416
- }\r
417
- \r
418
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }\r
419
- .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }\r
420
- \r
421
- .top-popup{\r
422
- border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height) - 12px);\r
423
- top: auto !important; right: 0 !important; bottom: 0 !important; left: 0 !important;\r
424
- display: flex; flex-direction: column;\r
425
- \r
426
- /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */\r
427
- transform: translateY(80%);\r
428
- \r
429
- transition: opacity 0.3s, transform 0.3s;\r
430
- }\r
431
- \r
432
- /* from top */\r
433
- .top-popup-wrapper.p-from-top{\r
434
- --top-popup-footer-offset: 0px;\r
435
- \r
436
- top: var(--header-height) !important;\r
437
- }\r
438
- .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }\r
439
- .top-popup-wrapper.p-from-top > .top-popup{\r
440
- border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;\r
441
- transform: translateY(calc(-100% - 24px));\r
442
- }\r
443
- \r
444
- .top-popup_content:last-child,\r
445
- .top-popup_footer{\r
446
- --scroll-padding-bottom: calc(var(--top-popup-padding-v) + var(--top-popup-footer-offset));\r
447
- \r
448
- padding-bottom: var(--scroll-padding-bottom);\r
449
- }\r
450
- \r
451
- /* content */\r
452
- ul.top-popup_content{\r
453
- --scroll-padding-top: 0px;\r
454
- --scroll-padding-bottom: var(--scroll-padding-top);\r
455
- \r
456
- display: flex; flex-direction: column;\r
457
- }\r
458
- ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }\r
459
- \r
460
- .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }\r
461
- \r
462
- /* footer */\r
463
- .top-popup_footer{ flex-wrap: wrap; }\r
464
- .top-popup_footer > .top-button{\r
465
- --top-forms-base-height: var(--top-forms-base-height_xl);\r
466
- \r
467
- flex-grow: 1;\r
468
- }\r
469
- \r
470
- /* listTitle */\r
471
- ul.top-popup_content li.top-popup_listTitle{\r
472
- --top-popup-padding-v: 12px;\r
473
- }\r
474
- \r
475
- /* listDelimiter */\r
476
- ul.top-popup_content li.top-popup_listDelimiter{ border-radius: 0; border-bottom: none; height: 2px; margin: 0; }`, P = `html:not(.with_dialog){ margin-right: 0 !important; }\r
477
- \r
478
- .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)); }\r
479
- .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }\r
480
- .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }\r
481
- \r
482
- /* position */\r
483
- .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height) - 16px); }\r
484
- .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }\r
485
- .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }\r
486
- .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }\r
487
- \r
488
- /* notch */\r
489
- .top-popup-wrapper.p1.with_notch > .top-popup,\r
490
- .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }\r
491
- .top-popup-wrapper.p1.with_notch > .notch,\r
492
- .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }\r
493
- \r
494
- .top-popup-wrapper.p1.with_notch.invert-x,\r
495
- .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }\r
496
- .top-popup-wrapper.p1.with_notch.invert-x > .notch,\r
497
- .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }\r
498
- \r
499
- /* listMore */\r
500
- ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }\r
501
- ul.top-popup_content li:hover > * > i.top-popup_listMore,\r
502
- ul.top-popup_content li > *.top-active > i.top-popup_listMore,\r
164
+ const x = `:root{
165
+ --top-popup-background-color: var(--color-bg-3);
166
+ --top-popup-background-color-hover: var(--color-steel-150);
167
+ --top-popup-background-color-active: var(--color-steel-200);
168
+ --top-popup-border-color: var(--color-theme-100);
169
+ --top-popup-title-background-color: var(--color-steel-100);
170
+ }
171
+
172
+ .top-theme-dark{
173
+ --top-popup-background-color-hover: var(--color-gray-800);
174
+ --top-popup-background-color-active: var(--color-gray-750);
175
+ --top-popup-title-background-color: var(--color-gray-900);
176
+ }
177
+
178
+ .top-popup-front{ position: relative; }
179
+
180
+ .top-popup-wrapper{
181
+ --top-popup-padding-h: 8px;
182
+ --top-popup-padding-v: 8px;
183
+
184
+ /* см. recalcPosition() */
185
+ --top-popup-height: 0px;
186
+ --top-popup-right-bounding: 0px;
187
+ --top-popup-bottom-bounding: 0px;
188
+ --top-popup-top: 0px;
189
+ --top-popup-right: calc(100vw - var(--top-popup-right-bounding));
190
+ --top-popup-bottom: calc(var(--100vh) - var(--top-popup-bottom-bounding));
191
+ --top-popup-left: 0px;
192
+
193
+ text-align: initial; white-space: normal; word-break: normal;
194
+ position: absolute; z-index: 200000;
195
+ }
196
+ .top-popup-wrapper:not(.top-popup-wrapper-shown){ overflow: hidden; }
197
+
198
+ /* top-popupPanel */
199
+ .top-popupPanel {
200
+ cursor: default;
201
+ box-shadow: var(--top-shadow-b);
202
+ border-radius: 8px;
203
+ background: var(--top-popup-background-color);
204
+ position: absolute; overflow: hidden;
205
+ display: flex; flex-direction: column;
206
+ }
207
+
208
+ /* position */
209
+ .top-popup-wrapper > *{ opacity: 0; transition: opacity 100ms linear, transform 100ms linear; }
210
+ .top-popup-wrapper.p0 > *{ transform: translateY(-8px); }
211
+ .top-popup-wrapper.p1 > *{ transform: translateY(8px); }
212
+ .top-popup-wrapper.p2 > *{ transform: translateX(8px); }
213
+ .top-popup-wrapper.p3 > *{ transform: translateY(8px); }
214
+ .top-popup-wrapper.p4 > *{ transform: translateX(-8px); }
215
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > *{opacity: 1;transform: translate(0, 0) !important;}
216
+
217
+ .top-popup-wrapper.p0 > .top-popup{ top: calc(-16px); left: calc(0px - var(--top-popup-padding-h)); }
218
+ .top-popup-wrapper.p1 > .top-popup{ bottom: calc(100% + 8px); }
219
+ .top-popup-wrapper.p2 > .top-popup{ left: calc(100% + 8px); }
220
+ .top-popup-wrapper.p3 > .top-popup{ top: calc(100% + 8px); }
221
+ .top-popup-wrapper.p4 > .top-popup{ right: calc(100% + 8px); }
222
+ .top-popup-wrapper.p2 > .top-popup,
223
+ .top-popup-wrapper.p4 > .top-popup{ margin-top: -10px; }
224
+
225
+ .top-popup-wrapper.p1.with_notch > .top-popup{ margin-bottom: 5px; }
226
+ .top-popup-wrapper.p2.with_notch > .top-popup{ margin-left: 5px; }
227
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-top: 5px; }
228
+ .top-popup-wrapper.p4.with_notch > .top-popup{ margin-right: 5px; }
229
+
230
+ .top-popup-wrapper.invert-x > .top-popup{ right: 0; }
231
+ .top-popup-wrapper.invert-y > .top-popup{ bottom: 0; }
232
+
233
+ /* notch */
234
+ .top-popup-wrapper > .notch{ border: 7.4px solid transparent; position: absolute; display: block; }
235
+
236
+ .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% }
237
+ .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%; }
238
+ .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%; }
239
+ .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%; }
240
+
241
+ .top-popup-wrapper.p1 > .notch-border{ border-top-color: rgba(0,0,0,0.05); margin-bottom: 6px; }
242
+ .top-popup-wrapper.p2 > .notch-border{ border-right-color: rgba(0,0,0,0.05); margin-left: 6px; }
243
+ .top-popup-wrapper.p3 > .notch-border{ border-bottom-color: rgba(0,0,0,0.05); margin-top: 6px; }
244
+ .top-popup-wrapper.p4 > .notch-border{ border-left-color: rgba(0,0,0,0.05); margin-right: 6px; }
245
+
246
+ /* common */
247
+ .top-popup_header,
248
+ .top-popup_content,
249
+ .top-popup_footer{ padding: var(--top-popup-padding-h) var(--top-popup-padding-h); font-size: 14px; }
250
+ .top-popup_header,
251
+ .top-popup_footer{ display: flex; align-items: center; justify-content: space-between; }
252
+
253
+ /* header */
254
+ .top-popup_header{ border-bottom: 1px solid var(--top-popup-border-color); font-weight: 600; }
255
+ .top-popup_header > *{ font-weight: 400; }
256
+ .top-popup_header > .a{ cursor: pointer; color: var(--color-blue-450); }
257
+ .top-popup_header > .a:hover{ color: var(--color-blue-350); }
258
+
259
+ .top-popup_headerButton{ width: 60px; }
260
+
261
+ /* content */
262
+ .top-popup .top-popup_content{
263
+ /* has_scroll */
264
+ --scroll-padding-top: var(--top-popup-padding-v);
265
+ --scroll-padding-bottom: var(--top-popup-padding-v);
266
+
267
+ padding-top: var(--top-popup-padding-v); padding-bottom: var(--top-popup-padding-v); margin: 0; line-height:1.3 !important;
268
+ flex-grow: 1; overflow-y: auto;
269
+ -webkit-overflow-scrolling: touch;
270
+ }
271
+
272
+ .top-popup .top-popup_content .top-unwrap{
273
+ --top-unwrap-x: var(--top-popup-padding-h);
274
+ }
275
+
276
+ .top-popup div.top-popup_content{ display: flex; flex-direction: column; gap: 4px; }
277
+ .top-popup div.top-popup_content > *{ flex-shrink: 0; }
278
+ .top-popup div.top-popup_content > .top-button{ margin: 0; }
279
+
280
+ .top-popup ul.top-popup_content{
281
+ --scroll-padding-top: 4px;
282
+ --scroll-padding-bottom: var(--scroll-padding-top);
283
+
284
+ padding: var(--scroll-padding-top) 0;
285
+ }
286
+
287
+ ul.top-popup_content li{ margin: 0; list-style:none; display: flex; position: relative }
288
+ ul.top-popup_content li > *{ flex-grow: 1; }
289
+ ul.top-popup_content li > a:not(.top-button),
290
+ ul.top-popup_content li > i.a{
291
+ cursor: pointer;
292
+ box-sizing: border-box;
293
+ background: var(--top-popup-background-color); padding:var(--top-popup-padding-v) var(--top-popup-padding-h);
294
+ color:var(--color-text) !important; font-size: 14px; font-weight: normal !important; text-decoration:none !important; font-style: normal;
295
+ display:flex; flex: 1 1 100%; align-items: center;
296
+ transition: background-color 0.1s ease-in-out;
297
+ }
298
+ .top-popup-wrapper-no_animate ul.top-popup_content li > a:not(.top-button),
299
+ .top-popup-wrapper-no_animate ul.top-popup_content li > i.a{ transition: none; }
300
+
301
+ ul.top-popup_content li > a:not(.top-button):hover,
302
+ ul.top-popup_content li > i.a:hover{ background: var(--top-popup-background-color-hover); }
303
+ ul.top-popup_content li > a:not(.top-button).top-active,
304
+ ul.top-popup_content li > i.a.top-active{ background: var(--top-popup-background-color-active); }
305
+
306
+ /* listTitle */
307
+ li.top-popup_listTitle{
308
+ background: var(--top-popup-title-background-color); padding: var(--top-popup-padding-v) var(--top-popup-padding-h);
309
+ color: var(--color-text-3); font-size: 12px; font-weight: 400;
310
+ }
311
+ li.top-popup_listTitle:first-child{
312
+ padding-top: calc(var(--top-popup-padding-v) + var(--scroll-padding-top));
313
+ margin-top: calc(0px - var(--scroll-padding-top));
314
+ }
315
+
316
+ /* listDelimiter */
317
+ ul.top-popup_content li.top-popup_listDelimiter{
318
+ border-radius: 3px;
319
+ background: var(--top-popup-border-color);
320
+ height: 2px;
321
+ margin: calc(var(--top-popup-padding-h) / 2) var(--top-popup-padding-h);
322
+ }
323
+
324
+ /* listMore */
325
+ ul.top-popup_content li > i.a.top-popup_listMore{
326
+ height: auto; padding-right: 4px; padding-left: 4px;
327
+ font-size: 24px; line-height: 17px; text-align: center;
328
+ flex-basis: 10px;
329
+ }
330
+ ul.top-popup_content li > i.a.top-popup_listMore:before{ color: var(--color-gray-500); }
331
+ ul.top-popup_content li > * > i.top-popup_listMore{
332
+ padding: 0 var(--top-popup-padding-h); margin: 0 0 0 auto;
333
+ color: var(--color-gray-500);
334
+ font-size: 14px;
335
+ }
336
+ ul.top-popup_content li > * > i.top-popup_listMore:hover,
337
+ ul.top-popup_content li > * > i.top-popup_listMore.top-active{ color: var(--color-blue-500); }
338
+ ul.top-popup_content li > * > i.top-popup_listMore:before{ transform: rotate(90deg); }
339
+
340
+ ul.top-popup_content li a.close{ background: none !important; }
341
+
342
+ /* data-top-icon */
343
+ .top-popup_content > [data-top-icon]:before{ --top-icon-size: 20px; }
344
+
345
+ ul.top-popup_content li > [data-top-icon]:not(.top-button):before{
346
+ --top-icon-color: var(--color-text-3);
347
+ --top-icon-size: 20px;
348
+ --top-icon-width: 20px;
349
+
350
+ height: 1rem; margin-right: 8px; transition: color 0.1s;
351
+ }
352
+ ul.top-popup_content li:hover > [data-top-icon]:not(.top-button):before,
353
+ ul.top-popup_content li > [data-top-icon]:not(.top-button).top-active:before{
354
+ --top-icon-color: #378DC6;
355
+ }
356
+
357
+ /* footer */
358
+ .top-popup_footer{
359
+ padding: var(--top-popup-padding-h) var(--top-popup-padding-h); display: flex; gap:8px; justify-content: flex-end;
360
+ }
361
+ .top-popup_footer > .top-button{ margin: 0; }
362
+
363
+ /* Виджеты */
364
+ .top-popup > [data-widget]{ padding: 0 var(--top-popup-padding-h); }
365
+ .top-popup > [data-widget] + hr{ margin: 0 var(--top-popup-padding-h); }
366
+
367
+ .top-popup .placeholder{
368
+ border:1px solid #E0D9D9 !important; border-right: none !important; border-left: none !important; background:#F9F9F9 !important; margin: -1px 0; z-index: 1;
369
+ position: relative;
370
+ }
371
+
372
+ /* компоненты */
373
+ .top-popup-wrapper.simple_list > .top-popup{ min-width: 0; white-space: nowrap; }
374
+
375
+ .top-popup_content .top-column{ display: flex; flex-direction: column; gap: 4px; }
376
+ .top-popup_content li > :not(a):not(.a){ margin:0 var(--top-popup-padding-h); }
377
+ html .top-popup .top-popup_content li > .top-button{ margin:calc(var(--top-popup-padding-v) / 2) var(--top-popup-padding-h); }
378
+
379
+ .top-popup li .check_all,
380
+ .top-popup li .clear_all{ cursor: pointer; color: var(--color-cyan); padding: 8px; display: inline-block; }
381
+ .top-popup li .check_all:hover,
382
+ .top-popup li .clear_all:hover{ text-decoration: underline; }
383
+ .top-popup li .clear_all{ display: none; }
384
+
385
+ /* table */
386
+ .top-popup_content table{ margin: -9px 0; }
387
+ .top-popup_content table td,
388
+ .top-popup_content table th{ padding: 9px var(--top-popup-padding-h) 9px 0; vertical-align: top; }
389
+ .top-popup_content table th{ width: 40%; font-weight: 600; white-space: nowrap; }
390
+
391
+ /* формы */
392
+ ul.top-popup_content .a > [type="checkbox"],
393
+ ul.top-popup_content .a > [type="radio"]{ margin: -8px 0 -8px auto; }
394
+
395
+ /* deprecated */
396
+ ul.top-popup_content a > [class*=icon],
397
+ ul.top-popup_content i.a > [class*=icon]{
398
+ margin-right: 14px; text-align: center;
399
+ width: auto; height: 16px; font-size: 16px; vertical-align: top;
400
+ transition: 0.1s;
401
+ }
402
+
403
+ .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; }
404
+ .top-popup_footer [class*=btn]:not(.btn-transparent){ min-width: 100px; padding: 5px 14px; margin-left: 10px; }
405
+ .top-popup_footer [class*=btn]:first-child{ margin-left: 0; }
406
+ .top-popup_footer .btn.full_width{ margin: 0; flex-grow: 1; }`, w = `html.with_popup{ background: #808080; }
407
+
408
+ .top-popup-wrapper{
409
+ --top-popup-padding-h: 19px;
410
+ --top-popup-padding-v: 16px;
411
+ --top-popup-footer-offset: 25px;
412
+
413
+ width: auto !important; height: auto !important;
414
+ position: fixed; top: 0 !important; right: 0 !important; left: 0 !important; overflow: hidden;
415
+ transition: background 0.3s;
416
+ }
417
+
418
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){ background: rgba(0,0,0,0.5); backdrop-filter: blur(1px); }
419
+ .top-popup-wrapper-shown:not(.top-popup-wrapper-closed) > .top-popup{ opacity: 1 !important; }
420
+
421
+ .top-popup{
422
+ border-radius: 8px 8px 0 0; width: auto !important; max-height: calc(100% - var(--header-height) - 12px);
423
+ top: auto !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
424
+ display: flex; flex-direction: column;
425
+
426
+ /* невозможно опустить элемент вниз за экран на 100%, fix: opacity и translateY(80%) */
427
+ transform: translateY(80%);
428
+
429
+ transition: opacity 0.3s, transform 0.3s;
430
+ }
431
+
432
+ /* from top */
433
+ .top-popup-wrapper.p-from-top{
434
+ --top-popup-footer-offset: 0px;
435
+
436
+ top: var(--header-height) !important;
437
+ }
438
+ .with_dialog .top-popup-wrapper.p-from-top{ top: 50px !important; }
439
+ .top-popup-wrapper.p-from-top > .top-popup{
440
+ border-radius: 0 0 8px 8px; max-height: calc(100% - 24px); top: 0 !important; bottom: auto !important;
441
+ transform: translateY(calc(-100% - 24px));
442
+ }
443
+
444
+ .top-popup_content:last-child,
445
+ .top-popup_footer{
446
+ --scroll-padding-bottom: calc(var(--top-popup-padding-v) + var(--top-popup-footer-offset));
447
+
448
+ padding-bottom: var(--scroll-padding-bottom);
449
+ }
450
+
451
+ /* content */
452
+ ul.top-popup_content{
453
+ --scroll-padding-top: 0px;
454
+ --scroll-padding-bottom: var(--scroll-padding-top);
455
+
456
+ display: flex; flex-direction: column;
457
+ }
458
+ ul.top-popup_content li:not(:last-child){ border-bottom: 1px solid var(--top-popup-border-color); }
459
+
460
+ .top-popup-wrapper.top-style_alt > .top-popup > ul > li{ border-bottom: none; }
461
+
462
+ /* footer */
463
+ .top-popup_footer{ flex-wrap: wrap; }
464
+ .top-popup_footer > .top-button{
465
+ --top-forms-base-height: var(--top-forms-base-height_xl);
466
+
467
+ flex-grow: 1;
468
+ }
469
+
470
+ /* listTitle */
471
+ ul.top-popup_content li.top-popup_listTitle{
472
+ --top-popup-padding-v: 12px;
473
+ }
474
+
475
+ /* listDelimiter */
476
+ ul.top-popup_content li.top-popup_listDelimiter{ border-radius: 0; border-bottom: none; height: 2px; margin: 0; }`, P = `html:not(.with_dialog){ margin-right: 0 !important; }
477
+
478
+ .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)); }
479
+ .top-popup-wrapper.invert-x > .top-popup{ max-width: calc(100vw - var(--top-popup-right) - 16px); }
480
+ .top-popup-wrapper.invert-y > .top-popup{ max-height: calc(100vh - var(--top-popup-bottom) - 16px); }
481
+
482
+ /* position */
483
+ .top-popup-wrapper.p1 > .top-popup{ max-height: calc(var(--top-popup-top) - var(--header-height) - 16px); }
484
+ .top-popup-wrapper.p3 > .top-popup{ max-height: calc(var(--top-popup-bottom) - 16px); }
485
+ .top-popup-wrapper.p2 > .top-popup{ max-width: calc(var(--top-popup-right) - 16px); }
486
+ .top-popup-wrapper.p4 > .top-popup{ max-width: calc(var(--top-popup-left) - 16px); }
487
+
488
+ /* notch */
489
+ .top-popup-wrapper.p1.with_notch > .top-popup,
490
+ .top-popup-wrapper.p3.with_notch > .top-popup{ margin-left: -16px !important; }
491
+ .top-popup-wrapper.p1.with_notch > .notch,
492
+ .top-popup-wrapper.p3.with_notch > .notch{ margin-left: -8px !important; }
493
+
494
+ .top-popup-wrapper.p1.with_notch.invert-x,
495
+ .top-popup-wrapper.p3.with_notch.invert-x{ margin-left: 3px !important; }
496
+ .top-popup-wrapper.p1.with_notch.invert-x > .notch,
497
+ .top-popup-wrapper.p3.with_notch.invert-x > .notch{ margin-left: -9px !important; }
498
+
499
+ /* listMore */
500
+ ul.top-popup_content li > * > i.top-popup_listMore{ visibility: hidden; transition: none; }
501
+ ul.top-popup_content li:hover > * > i.top-popup_listMore,
502
+ ul.top-popup_content li > *.top-active > i.top-popup_listMore,
503
503
  ul.top-popup_content li > * > i.top-popup_listMore.top-active{ visibility: visible; }`;
504
504
  f.appendStyle(x);
505
505
  f.appendStyle(w, "m");
@@ -558,19 +558,19 @@ class g extends m {
558
558
  }
559
559
  async mount() {
560
560
  const t = this.vueGetComponent();
561
- if (this.popupParent = n.getPopup(this.el.closest(".top-popup-wrapper")), await this.mountJQuery(), r.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)
562
- this.type = "vue", this.options.popup = "", this.elPopup = r.genEl("div", {}, this.options.popup);
561
+ 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)
562
+ this.type = "vue", this.options.popup = "", this.elPopup = n.genEl("div", {}, this.options.popup);
563
563
  else if (this.options.popup.match(/^[#.]/))
564
564
  this.type = "selector", this.elPopup = document.querySelector(`${this.options.popup}.template`);
565
565
  else {
566
566
  if (this.type = "html", this.options.useOriginal)
567
567
  throw "Option useOriginal not allowed for text templates";
568
- this.elPopup = r.genEl("div", {}, this.options.popup);
568
+ this.elPopup = n.genEl("div", {}, this.options.popup);
569
569
  }
570
570
  if (!this.elPopup || t != null && t.opened) {
571
571
  if (this.options.useOriginal || t != null && t.opened) {
572
572
  if (t != null && t.opened ? this.elPopup = t.popup.elPopup : this.elPopup = document.querySelector(`${this.options.popup}.top-popup-wrapper-shown`), this.elPopup) {
573
- this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"), n.close(this.elPopup), setTimeout(() => this.mount(), 300);
573
+ this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active"), i.close(this.elPopup), setTimeout(() => this.mount(), 300);
574
574
  return;
575
575
  }
576
576
  throw "Option useOriginal state allowed only elements .template";
@@ -579,7 +579,7 @@ class g extends m {
579
579
  }
580
580
  if (!this.elPopup)
581
581
  return;
582
- for (this.options.useOriginal ? (this.elStartPosition = this.elPopup.closest(".top-popup-el-start-position"), this.elStartPosition || (this.elStartPosition = r.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 = r.wrap(this.elPopup, "div")), this.type === "html" && (this.elPopup.querySelector(":scope > .top-popup_content") || (this.elPopup.classList.add("top-popup_content"), this.elPopup = r.wrap(this.elPopup, "div"))), (this.type === "selector" && !this.elPopup.matches(".template") || this.type === "html" || this.type === "vue") && (r.querySelectorAllArray(this.elPopup, "[data-top-popup]").forEach((e) => e.dataset.topPopupPosBy = "fixed"), r.querySelectorAllArray(this.elPopup, ".top-popup-wrapper").forEach((e) => e.remove()))), n.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; )
582
+ 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; )
583
583
  this.elPopupInner.appendChild(this.elPopup.firstChild);
584
584
  if (this.elPopup.append(this.elPopupInner), this.elPopup.classList.add("top-popup-wrapper"), this.options.class) {
585
585
  const e = this.options.class.split(" ");
@@ -587,9 +587,9 @@ class g extends m {
587
587
  }
588
588
  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");
589
589
  const p = !!this.elPopup.querySelector('[data-widget="search"]');
590
- this.options.isFullScreen && !p && (this.elPopupHeader || (this.elPopupHeader = r.genEl("i", { class: "header" }), this.elPopupInner.prepend(this.elPopupHeader), this.elPopupHeader.prepend(r.genEl("i", { class: "a closer" }, this.options.i18n.Close)), this.elPopupHeader.append(r.genEl("i", { class: "top-popup-headerButton" })))), r.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");
590
+ 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");
591
591
  let o = !!this.el.closest(".modal-header");
592
- 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 = r.offset(this.el).top - this.el.offsetTop - r.offset(this.elFront).top, this.shift.left = r.offset(this.el).left - this.el.offsetLeft - r.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(), n.decoratorAfterOpen(this), this.mountEvents();
592
+ 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();
593
593
  }
594
594
  async mountJQuery() {
595
595
  typeof jQuery == "function" && (this.$ = jQuery(this.el));
@@ -598,8 +598,8 @@ class g extends m {
598
598
  * Выполнить фокусировку на нужный элемент после открытия окна
599
599
  */
600
600
  focus() {
601
- let t = r.querySelectorVisible(this.elPopup, ".top-popup-autofocus");
602
- t || (t = r.querySelectorVisible(this.elPopup, ":read-write, select:not(:disabled)")), t || (t = r.querySelectorVisible(this.elPopup, ".top-popup_footer .top-button")), t || (t = this.elPopup), t.focus();
601
+ let t = n.querySelectorVisible(this.elPopup, ".top-popup-autofocus");
602
+ 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();
603
603
  }
604
604
  mountEvents() {
605
605
  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));
@@ -611,8 +611,8 @@ class g extends m {
611
611
  onMousedown(t) {
612
612
  if (!this.elPopup || !this.isFirstClick || (this.isFirstClick = !1, setTimeout(() => this.isFirstClick = !0), t.button !== 0))
613
613
  return;
614
- let p = r.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
615
- p && p !== this.elPopup || (p = r.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") || n.decoratorIsIgnoreOuterClick(t) || n.close(this.elPopup)));
614
+ let p = n.querySelectorVisibleLast(document.body, ":scope > .top-popup-wrapper");
615
+ 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)));
616
616
  }
617
617
  /**
618
618
  * Закрыть другие Popup при фокусе на элемент формы в текущем
@@ -621,9 +621,9 @@ class g extends m {
621
621
  onFocus(t) {
622
622
  if (t.target.matches("input") || this.isClosed)
623
623
  return;
624
- n.getAllVisible().forEach((o) => {
625
- var e, i, l;
626
- this.elPopup.contains(o) || ((e = this.popupParent) == null ? void 0 : e.elPopup) === o || ((l = (i = this.popupParent) == null ? void 0 : i.popupParent) == null ? void 0 : l.elPopup) === o || n.close(o);
624
+ i.getAllVisible().forEach((o) => {
625
+ var e, r, l;
626
+ 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);
627
627
  });
628
628
  }
629
629
  /**
@@ -632,14 +632,14 @@ class g extends m {
632
632
  */
633
633
  onMouseleave(t) {
634
634
  setTimeout(() => {
635
- this.elPopupInner.matches(":hover") || n.close(this.elPopup);
635
+ this.elPopupInner.matches(":hover") || i.close(this.elPopup);
636
636
  }, 100);
637
637
  }
638
638
  /**
639
639
  * Контроль положения Popup при fixed позиционировании
640
640
  */
641
641
  onResize() {
642
- this.elPopup.parentElement !== document.body && document.body.append(this.elPopup), this.elPopup.style.top = r.offset(this.el).top + "px", this.elPopup.style.left = r.offset(this.el).left + "px";
642
+ 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";
643
643
  }
644
644
  unmount() {
645
645
  super.unmount(), this.el.dataset.topPopupOpened = "", this.elActiveByDefault || this.el.classList.remove("top-active");
@@ -664,20 +664,20 @@ class g extends m {
664
664
  }
665
665
  const o = this.elPopup.getBoundingClientRect();
666
666
  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";
667
- let e = !1, i = !1, l = !1, h = !1, a = o.left > window.innerWidth / 2, c = o.top > window.innerHeight / 2;
667
+ let e = !1, r = !1, l = !1, h = !1, a = o.left > window.innerWidth / 2, c = o.top > window.innerHeight / 2;
668
668
  t === 4 && (a = !a), t === 1 && (c = !c);
669
669
  const s = this.elPopupInner.getBoundingClientRect(), u = window.innerWidth - s.right, v = window.innerHeight - s.bottom, d = 8;
670
- s.top < d && (e = !0), u < d && (i = !0), v < d && (l = !0), s.left < d && (h = !0), e && (t === 0 || t === 1) && c && (t = 3), l && t === 3 && c && (t = 1), i && t === 2 && a && (t = 4), h && t === 4 && a && (t = 2), i && (t === 0 || t === 1 || t === 3) && this.elPopup.classList.add("invert-x"), l && (t === 2 || t === 4) && c && (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 = "", n.scrollToActive(this.elPopup);
670
+ s.top < d && (e = !0), u < d && (r = !0), v < d && (l = !0), s.left < d && (h = !0), e && (t === 0 || t === 1) && c && (t = 3), l && t === 3 && c && (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) && c && (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);
671
671
  }
672
672
  onTouchmove(t) {
673
673
  t.currentTarget.scrollWidth > t.currentTarget.offsetWidth || t.target.parentElement.scrollWidth > t.target.parentElement.offsetWidth || t.currentTarget.matches(".has_scroll") || t.preventDefault();
674
674
  }
675
675
  close() {
676
- this.isClosed || (this.isClosed = !0, this.$ && this.$.trigger("afterclose.top-menu-popup", [jQuery(this.elPopup)]), !n.noClose && (this.unmount(), this.elPopup.classList.add("top-popup-wrapper-closed"), setTimeout(() => {
677
- var o, e, i;
678
- 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(), (i = this.elPopup.querySelector(".notch")) == null || i.remove(), this.elPopupInner.replaceWith(...this.elPopupInner.childNodes), r.storageClear(this.elPopup)) : (r.storageClear(this.elPopup), this.elPopup.remove(), delete this.elPopup);
679
- const t = n.getAllVisible(), p = t.length && t[t.length - 1];
680
- p ? n.getPopup(p).focus() : document.documentElement.classList.remove("with_popup");
676
+ 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(() => {
677
+ var o, e, r;
678
+ 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);
679
+ const t = i.getAllVisible(), p = t.length && t[t.length - 1];
680
+ p ? i.getPopup(p).focus() : document.documentElement.classList.remove("with_popup");
681
681
  }, 300)));
682
682
  }
683
683
  async vueOpen() {
@@ -690,11 +690,11 @@ class g extends m {
690
690
  }
691
691
  // получить vueConnectors компонента Popup
692
692
  vueGetComponent() {
693
- return n.vueConnectors.get(this.el.dataset.topPopupId);
693
+ return i.vueConnectors.get(this.el.dataset.topPopupId);
694
694
  }
695
695
  }
696
696
  b.init();
697
697
  export {
698
698
  g as default
699
699
  };
700
- //# sourceMappingURL=popup-6f73b4b2.es.js.map
700
+ //# sourceMappingURL=popup-0f540839.es.js.map