@topvisor/ui 1.3.3-piniaTPAPluginClearHash.0 → 1.3.3

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 (68) hide show
  1. package/.chunks/{core-BrkcXLtM.es.js → core-PgN-H_aP.es.js} +4 -4
  2. package/.chunks/{core-BrkcXLtM.es.js.map → core-PgN-H_aP.es.js.map} +1 -1
  3. package/.chunks/{datepicker-Dfl91fRZ.es.js → datepicker-lHzfJ7vE.es.js} +2 -2
  4. package/.chunks/{datepicker-Dfl91fRZ.es.js.map → datepicker-lHzfJ7vE.es.js.map} +1 -1
  5. package/.chunks/{dialog_selectorRegions-QbGG0L91.es.js → dialog_selectorRegions-Ccsrpo2C.es.js} +55 -53
  6. package/.chunks/{dialog_selectorRegions-QbGG0L91.es.js.map → dialog_selectorRegions-Ccsrpo2C.es.js.map} +1 -1
  7. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8LLCo4IK.es.js → dialogs.vue_vue_type_script_setup_true_lang-Bei7eCOi.es.js} +2 -2
  8. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-8LLCo4IK.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-Bei7eCOi.es.js.map} +1 -1
  9. package/.chunks/{forms-BWoAyEVH.es.js → forms-CuEEAPvm.es.js} +5 -5
  10. package/.chunks/{forms-BWoAyEVH.es.js.map → forms-CuEEAPvm.es.js.map} +1 -1
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-_3WmLmPV.es.js +186 -0
  12. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Dljef_xa.es.js.map → listItem.vue_vue_type_script_setup_true_lang-_3WmLmPV.es.js.map} +1 -1
  13. package/.chunks/{menu.vue_vue_type_style_index_0_lang-HDPVVgzy.es.js → menu.vue_vue_type_style_index_0_lang-Ct0tivnh.es.js} +35 -33
  14. package/.chunks/{menu.vue_vue_type_style_index_0_lang-HDPVVgzy.es.js.map → menu.vue_vue_type_style_index_0_lang-Ct0tivnh.es.js.map} +1 -1
  15. package/.chunks/notice-Aw2dLsyE.es.js +194 -0
  16. package/.chunks/{notice-DYd206Yd.es.js.map → notice-Aw2dLsyE.es.js.map} +1 -1
  17. package/.chunks/{page.vue_vue_type_script_setup_true_lang-B26E2LsY.es.js → page.vue_vue_type_script_setup_true_lang-x02Y0eiE.es.js} +4 -4
  18. package/.chunks/{page.vue_vue_type_script_setup_true_lang-B26E2LsY.es.js.map → page.vue_vue_type_script_setup_true_lang-x02Y0eiE.es.js.map} +1 -1
  19. package/.chunks/{popup-1pqtx_O5.es.js → popup-axQQEyIk.es.js} +2 -2
  20. package/.chunks/{popup-1pqtx_O5.es.js.map → popup-axQQEyIk.es.js.map} +1 -1
  21. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
  22. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
  23. package/.chunks/{utils-Dk7uXZsi.es.js → utils-BHW-ownM.es.js} +2 -2
  24. package/.chunks/{utils-Dk7uXZsi.es.js.map → utils-BHW-ownM.es.js.map} +1 -1
  25. package/.chunks/{utils-C_yz4vdX.es.js → utils-D1fvioEG.es.js} +3 -3
  26. package/.chunks/{utils-C_yz4vdX.es.js.map → utils-D1fvioEG.es.js.map} +1 -1
  27. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Cr_jgOW4.es.js → widgetInput.vue_vue_type_script_setup_true_lang-IWJIVl4_.es.js} +2 -2
  28. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Cr_jgOW4.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-IWJIVl4_.es.js.map} +1 -1
  29. package/charts/charts.js +62 -60
  30. package/charts/charts.js.map +1 -1
  31. package/core/app.amd.js +1 -1
  32. package/core/app.amd.js.map +1 -1
  33. package/core/app.js +26 -26
  34. package/core/app.js.map +1 -1
  35. package/dialog/dialog.js +2 -2
  36. package/extra/extra.js +22 -20
  37. package/extra/extra.js.map +1 -1
  38. package/forms/forms.js +1 -1
  39. package/formsExt/formsExt.amd.js +1 -1
  40. package/formsExt/formsExt.amd.js.map +1 -1
  41. package/formsExt/formsExt.js +115 -113
  42. package/formsExt/formsExt.js.map +1 -1
  43. package/layout/layout.js +37 -35
  44. package/layout/layout.js.map +1 -1
  45. package/package.json +1 -1
  46. package/popup/popup.amd.js +1 -1
  47. package/popup/popup.amd.js.map +1 -1
  48. package/popup/popup.js +9 -4
  49. package/popup/worker.js +2 -2
  50. package/project/project.js +245 -243
  51. package/project/project.js.map +1 -1
  52. package/tabs/tabs.js +28 -26
  53. package/tabs/tabs.js.map +1 -1
  54. package/tabsView/tabsView.amd.js +1 -1
  55. package/tabsView/tabsView.amd.js.map +1 -1
  56. package/tabsView/tabsView.js +67 -65
  57. package/tabsView/tabsView.js.map +1 -1
  58. package/utils/clipboard.js +1 -1
  59. package/utils/date.js +1 -1
  60. package/utils/device.js +1 -1
  61. package/utils/lodash.js +1 -1
  62. package/utils/price.js +1 -1
  63. package/utils/searchers.js +3 -3
  64. package/utils/string.js +1 -1
  65. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Dljef_xa.es.js +0 -184
  66. package/.chunks/notice-DYd206Yd.es.js +0 -192
  67. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-BCpRWeKK.amd.js +0 -2
  68. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-BCpRWeKK.amd.js.map +0 -1
@@ -1,184 +0,0 @@
1
- import { Core as T } from "../core/app.js";
2
- import { defineComponent as C, onUpdated as H, createElementBlock as n, openBlock as s, Fragment as b, createElementVNode as M, renderSlot as l, ref as h, toRef as B, watch as N, onUnmounted as w, resolveDirective as R, createBlock as _, createCommentVNode as r, unref as O, withCtx as L, Teleport as E, withDirectives as k, toDisplayString as U, createVNode as A, normalizeClass as W, resolveDynamicComponent as z, mergeProps as F } from "vue";
3
- import { f as j } from "./forms-BWoAyEVH.es.js";
4
- import { TopPopupWorker as S } from "../popup/worker.js";
5
- const D = ["../assets/listItem.css"].map((i) => import.meta.resolve(i));
6
- T.insertCSSLinkToPage(D, !0);
7
- const q = /* @__PURE__ */ C({
8
- __name: "opener",
9
- props: {
10
- id: {},
11
- pos: { default: "3" },
12
- notch: { type: Boolean, default: !0 },
13
- openByHover: { type: Boolean },
14
- posBy: { default: "fixed" },
15
- data: {}
16
- },
17
- setup(i) {
18
- const o = i, a = o.id || Math.random() + "";
19
- let p;
20
- function y(t) {
21
- setTimeout(() => {
22
- p = t.nextElementSibling, p && u(p);
23
- });
24
- }
25
- H(() => {
26
- p && u(p);
27
- });
28
- function u(t) {
29
- t.dataset.topPopup = "#" + a, t.dataset.topPopupId = a, t.dataset.topPopupPos = o.pos, t.dataset.topPopupPosBy = o.posBy, t.dataset.topPopupNotch = o.notch ? "true" : "", t.dataset.topPopupOpenByHover = o.openByHover ? "true" : "", t.__TopPopupOpenerProps = o;
30
- }
31
- return (t, f) => (s(), n(b, null, [
32
- M("template", { ref: y }),
33
- l(t.$slots, "default")
34
- ], 64));
35
- }
36
- }), G = {
37
- key: 0,
38
- class: "top-popup_header"
39
- }, J = {
40
- key: 0,
41
- class: "top-as-a closer"
42
- }, K = {
43
- key: 1,
44
- class: "top-popup_widget"
45
- }, Q = {
46
- key: 2,
47
- class: "top-popup_content"
48
- }, X = {
49
- key: 4,
50
- class: "top-popup_footer"
51
- }, Y = ["href"], se = /* @__PURE__ */ C({
52
- __name: "popup",
53
- props: {
54
- id: { default: "" },
55
- class: {},
56
- transitionDuration: {},
57
- footerSupportLink: {},
58
- pos: { default: "3" },
59
- notch: { type: Boolean, default: !0 },
60
- openByHover: { type: Boolean },
61
- posBy: { default: "fixed" },
62
- data: {}
63
- },
64
- emits: ["open", "close", "scrollContentList"],
65
- setup(i, { expose: o, emit: a }) {
66
- const p = i, y = a, u = p.id || "top-popup-id-" + Math.random(), t = {
67
- id: u,
68
- popup: void 0
69
- };
70
- o(t);
71
- const f = h(null), P = h(null), d = h(), m = {
72
- onOpen: async (e) => {
73
- e.elPopup && (f.value = e.elPopup), e.elPopupInner && (e.elPopupInner.innerText = "", P.value = e.elPopupInner), m.opened = !0, m.popup = e, t.popup = e, d.value = e.el.__TopPopupOpenerProps.data, y("open", { elPopup: e.elPopup, elPopupOpener: e.el, data: d.value });
74
- },
75
- onClose: (e) => {
76
- P.value = null, m.opened = !1, m.popup = void 0, d.value = void 0, y("close", { elPopup: e.elPopup, elPopupOpener: e.el, data: e.el.__TopPopupOpenerProps.data });
77
- },
78
- classRef: B(p, "class"),
79
- opened: !1,
80
- popup: void 0,
81
- transitionDurationRef: B(p, "transitionDuration")
82
- };
83
- return N(() => p.class, (e, c) => {
84
- if (!f.value) return;
85
- const v = (e == null ? void 0 : e.split(" ")) ?? [], g = ((c == null ? void 0 : c.split(" ")) ?? []).filter((I) => !v.includes(I));
86
- f.value.classList.remove(...g), f.value.classList.add(...v);
87
- }), S.regVueComponent(u, m), w(() => {
88
- S.unregVueComponent(u);
89
- }), (e, c) => {
90
- const v = R("top-scroll-shadow");
91
- return s(), n(b, null, [
92
- e.$slots.opener ? (s(), _(q, {
93
- key: 0,
94
- id: O(u),
95
- pos: e.pos,
96
- posBy: e.posBy,
97
- notch: e.notch,
98
- openByHover: e.$core.state.isMobile || e.$core.state.isMobileUA ? !1 : e.openByHover
99
- }, {
100
- default: L(() => [
101
- l(e.$slots, "opener")
102
- ]),
103
- _: 3
104
- }, 8, ["id", "pos", "posBy", "notch", "openByHover"])) : r("", !0),
105
- P.value ? (s(), _(E, {
106
- key: 1,
107
- to: P.value
108
- }, [
109
- e.$slots.header || e.$core.state.isMobile ? (s(), n("div", G, [
110
- e.$core.state.isMobile ? (s(), n("span", J, U(e.$i18n.Common.Close), 1)) : r("", !0),
111
- l(e.$slots, "header", { data: d.value })
112
- ])) : r("", !0),
113
- e.$slots.widget ? (s(), n("div", K, [
114
- l(e.$slots, "widget")
115
- ])) : r("", !0),
116
- e.$slots.content ? k((s(), n("div", Q, [
117
- l(e.$slots, "content", { data: d.value })
118
- ])), [
119
- [v]
120
- ]) : r("", !0),
121
- e.$slots.contentList ? k((s(), n("ul", {
122
- key: 3,
123
- class: "top-popup_content",
124
- onScroll: c[0] || (c[0] = ($) => e.$emit("scrollContentList", $))
125
- }, [
126
- l(e.$slots, "contentList", { data: d.value })
127
- ], 32)), [
128
- [v]
129
- ]) : r("", !0),
130
- e.$slots.footer || e.footerSupportLink ? (s(), n("div", X, [
131
- e.footerSupportLink ? (s(), n("a", {
132
- key: 0,
133
- class: "top-popup_footerSupportLink",
134
- href: e.footerSupportLink,
135
- target: "_blank"
136
- }, [
137
- A(j, { hint: "" })
138
- ], 8, Y)) : r("", !0),
139
- l(e.$slots, "footer", { data: d.value })
140
- ])) : r("", !0)
141
- ], 8, ["to"])) : r("", !0)
142
- ], 64);
143
- };
144
- }
145
- }), pe = /* @__PURE__ */ C({
146
- inheritAttrs: !1,
147
- __name: "listItem",
148
- props: {
149
- type: { default: "button" },
150
- closeByClick: { type: Boolean, default: !0 }
151
- },
152
- setup(i) {
153
- const o = i;
154
- return (a, p) => (s(), n("li", {
155
- class: W({
156
- "top-popup_liNoSelectable": o.type !== "button"
157
- })
158
- }, [
159
- (s(), _(z(a.$attrs.href ? "a" : "div"), F({
160
- class: {
161
- "top-popup_listItem": !0,
162
- "top-popup_listItem-button": o.type === "button",
163
- // оформления кнопки
164
- a: o.type === "button",
165
- // оформления кнопки, deprecated
166
- "top-popup_listItem-title": o.type === "title",
167
- "top-popup_listItem-delimiter": o.type === "delimiter",
168
- "top-popup-noCloser": !a.closeByClick
169
- }
170
- }, a.$attrs), {
171
- default: L(() => [
172
- l(a.$slots, "default")
173
- ]),
174
- _: 3
175
- }, 16, ["class"]))
176
- ], 2));
177
- }
178
- });
179
- export {
180
- se as _,
181
- q as a,
182
- pe as b
183
- };
184
- //# sourceMappingURL=listItem.vue_vue_type_script_setup_true_lang-Dljef_xa.es.js.map
@@ -1,192 +0,0 @@
1
- import { Core as z } from "../core/app.js";
2
- import { reactive as E, defineComponent as k, ref as b, computed as y, resolveComponent as j, withDirectives as O, createElementBlock as d, openBlock as r, normalizeClass as V, createElementVNode as M, createBlock as C, createCommentVNode as T, mergeProps as H, Fragment as B, renderList as w, Teleport as A, unref as F, normalizeStyle as J } from "vue";
3
- import { C as h } from "./forms-BWoAyEVH.es.js";
4
- import { genIntHash as U, nl2br as W } from "../utils/string.js";
5
- const D = ["../assets/notice.css"].map((t) => import.meta.resolve(t));
6
- z.insertCSSLinkToPage(D, !0);
7
- const L = 300, f = E(/* @__PURE__ */ new Map()), q = (t, l, e) => "top-notice_" + U(t + l + JSON.stringify(e)), re = (t, l = "info", e) => {
8
- let i = "";
9
- t = String(t);
10
- const g = q(t, l, e);
11
- if (e != null && e.title)
12
- i = e.title;
13
- else {
14
- const c = t.split(`
15
- `);
16
- c.length && (i = String(c.shift()), t = c.join(`
17
- `));
18
- }
19
- const s = f.get(g);
20
- if (s) {
21
- x(s);
22
- return;
23
- }
24
- const a = {
25
- id: g,
26
- title: i,
27
- text: t,
28
- style: l,
29
- buttonProps: e == null ? void 0 : e.buttonProps,
30
- buttonsProps: e == null ? void 0 : e.buttonsProps,
31
- metaText: e == null ? void 0 : e.metaText,
32
- isSafeHTML: e == null ? void 0 : e.isSafeHTML,
33
- selectToClose: e == null ? void 0 : e.selectToClose,
34
- onClose: e == null ? void 0 : e.onClose
35
- };
36
- if (f.set(a.id, a), f.size > 5) {
37
- const [c, p] = [...f].at(0) || [];
38
- p && P(p);
39
- }
40
- h.state.isMobile && $("input").one("click", () => P(a));
41
- }, x = (t) => {
42
- t.hightlight = !0, setTimeout(() => t.hightlight = !1, L);
43
- }, P = (t) => {
44
- t.forceClosed = !0, setTimeout(() => {
45
- var l;
46
- (l = t.onClose) == null || l.call(t), f.delete(t.id);
47
- }, L);
48
- }, S = (t) => {
49
- const l = "hacking was detected";
50
- return t = t.replace(/<script/g, l), t = t.replace(/<img/g, l), t = t.replace(/<iframe/g, l), t = t.replace(/javascript:/g, l), t = t.replace(/<[^>]+ (@|on)\w+=[^>]+>?/g, l), t;
51
- }, G = { class: "top-notice_itemTextWrapper" }, K = ["innerHTML"], Q = ["innerHTML"], R = {
52
- key: 1,
53
- class: "top-notice_itemButtons"
54
- }, X = ["innerHTML"], Y = ["title"], Z = /* @__PURE__ */ k({
55
- __name: "item",
56
- props: {
57
- id: {},
58
- title: {},
59
- text: {},
60
- style: {},
61
- metaText: {},
62
- buttonProps: {},
63
- buttonsProps: {},
64
- isSafeHTML: { type: Boolean },
65
- hightlight: { type: Boolean },
66
- selectToClose: { type: Boolean, default: !0 },
67
- forceClosed: { type: Boolean }
68
- },
69
- emits: ["close"],
70
- setup(t, { emit: l }) {
71
- const e = t, i = l, g = b(!1);
72
- setTimeout(() => g.value = !0, 10);
73
- const s = b(!1), a = b("right"), c = y(() => {
74
- let o = e.title.replace(/ {2}/g, "&nbsp;");
75
- return e.isSafeHTML || (o = S(o)), o;
76
- }), p = y(() => {
77
- let o = W(e.text);
78
- return o = o.replace(/ {2}/g, "&nbsp;"), e.isSafeHTML || (o = S(o)), o;
79
- }), m = (o) => {
80
- s.value = !0, o && (a.value = o), setTimeout(() => i("close"), L);
81
- }, I = (o) => {
82
- if (!e.selectToClose) return;
83
- const { tagName: n } = o.target;
84
- n === "A" && m(), n === "BUTTON" && m();
85
- }, N = {
86
- mounted: (o) => {
87
- if (!h.state.isMobile || !h.$ || !h.$.ui.draggable) return;
88
- let n = "right";
89
- h.$(o).draggable({
90
- revert: !1,
91
- axis: "x",
92
- drag: (_, u) => {
93
- n = u.position.left > 0 ? "right" : "left";
94
- },
95
- stop: (_, u) => {
96
- m(n);
97
- }
98
- });
99
- }
100
- };
101
- return (o, n) => {
102
- var _;
103
- const v = j("TopButton");
104
- return O((r(), d("div", {
105
- class: V(["top-notice_item", {
106
- ["top-notice_item-" + o.style]: !0,
107
- "top-notice_item-hightlight": o.hightlight,
108
- "top-notice_item-showed": g.value,
109
- "top-notice_item-closed": s.value || o.forceClosed,
110
- ["top-notice_item-closed_" + a.value]: s.value
111
- }]),
112
- onClick: I
113
- }, [
114
- M("div", G, [
115
- c.value ? (r(), d("div", {
116
- key: 0,
117
- class: "top-notice_itemTitle",
118
- innerHTML: c.value
119
- }, null, 8, K)) : T("", !0),
120
- p.value ? (r(), d("div", {
121
- key: 1,
122
- class: "top-notice_itemText",
123
- innerHTML: p.value
124
- }, null, 8, Q)) : T("", !0)
125
- ]),
126
- o.buttonProps ? (r(), C(v, H({
127
- key: 0,
128
- class: "top-notice_itemButton",
129
- size: "s"
130
- }, o.buttonProps, {
131
- title: o.buttonProps.title,
132
- innerHTML: o.buttonProps.default,
133
- onClick: n[0] || (n[0] = (u) => m())
134
- }), null, 16, ["title", "innerHTML"])) : T("", !0),
135
- (_ = o.buttonsProps) != null && _.length ? (r(), d("div", R, [
136
- (r(!0), d(B, null, w(o.buttonsProps, (u) => (r(), C(v, H({
137
- class: "top-notice_itemButton",
138
- size: "s"
139
- }, { ref_for: !0 }, u, {
140
- title: u.title,
141
- innerHTML: u.default,
142
- onClick: n[1] || (n[1] = (te) => m())
143
- }), null, 16, ["title", "innerHTML"]))), 256))
144
- ])) : T("", !0),
145
- o.metaText ? (r(), d("div", {
146
- key: 2,
147
- class: "top-notice_itemMetaText",
148
- innerHTML: o.metaText
149
- }, null, 8, X)) : T("", !0),
150
- M("div", {
151
- class: "top-notice_itemClose",
152
- "data-top-icon": "",
153
- title: o.$i18n.Common.Close,
154
- onClick: n[2] || (n[2] = () => m())
155
- }, null, 8, Y)
156
- ], 2)), [
157
- [N]
158
- ]);
159
- };
160
- }
161
- }), ee = { class: "top-notice" }, ie = /* @__PURE__ */ k({
162
- __name: "notice",
163
- setup(t) {
164
- const l = (e) => {
165
- var i;
166
- (i = e.onClose) == null || i.call(e), f.delete(e.id);
167
- };
168
- return (e, i) => (r(), C(A, { to: "body" }, [
169
- M("div", ee, [
170
- (r(!0), d(B, null, w(F(f), ([g, s]) => (r(), C(Z, {
171
- key: s.id,
172
- id: s.id,
173
- title: s.title,
174
- text: s.text,
175
- style: J(s.style),
176
- buttonProps: s.buttonProps,
177
- buttonsProps: s.buttonsProps,
178
- metaText: s.metaText,
179
- isSafeHTML: s.isSafeHTML,
180
- forceClosed: s.forceClosed,
181
- hightlight: s.hightlight,
182
- onClose: (a) => l(s)
183
- }, null, 8, ["id", "title", "text", "style", "buttonProps", "buttonsProps", "metaText", "isSafeHTML", "forceClosed", "hightlight", "onClose"]))), 128))
184
- ])
185
- ]));
186
- }
187
- });
188
- export {
189
- ie as default,
190
- re as show
191
- };
192
- //# sourceMappingURL=notice-DYd206Yd.es.js.map
@@ -1,2 +0,0 @@
1
- define(["../require/css.amd!../assets/popupHint.css"],(function(){"use strict";if(typeof e>"u")var e=window.Vue}));
2
- //# sourceMappingURL=popupHint.vue_vue_type_style_index_0_lang-BCpRWeKK.amd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popupHint.vue_vue_type_style_index_0_lang-BCpRWeKK.amd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}