@jeecg/online 3.5.3-vite4 → 3.6.2-beta
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/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -0,0 +1,1496 @@
|
|
|
1
|
+
import { ref as J, onMounted as $t, defineComponent as Ft, resolveComponent as A, openBlock as tt, createElementBlock as ut, Fragment as Gt, createElementVNode as ft, normalizeClass as R, createVNode as _, mergeProps as Vt, withCtx as E, createTextVNode as $, createBlock as zt, createCommentVNode as pt } from "vue";
|
|
2
|
+
import { BasicTable as Wt, TableAction as Yt } from "/@/components/Table";
|
|
3
|
+
import { C as Kt } from "./CgformModal-eccfc38e.mjs";
|
|
4
|
+
import Xt from "./DbToOnlineModal-9f13956f.mjs";
|
|
5
|
+
import Qt from "./CodeGeneratorModal-f08a89cd.mjs";
|
|
6
|
+
import Ut from "./CustomButtonList-02e3d897.mjs";
|
|
7
|
+
import Zt from "./EnhanceJsModal-05c73a59.mjs";
|
|
8
|
+
import te from "./EnhanceJavaModal-f63aa2d3.mjs";
|
|
9
|
+
import ee from "./EnhanceSqlModal-5e4ae84f.mjs";
|
|
10
|
+
import ne from "./AuthManagerDrawer-300dd4e4.mjs";
|
|
11
|
+
import oe from "./AuthSetterModal-a414fb35.mjs";
|
|
12
|
+
import { u as ie, C as re } from "./useCgformList-423282b7.mjs";
|
|
13
|
+
import { c as se, s as ae } from "./cgform.data-cbdd88c3.mjs";
|
|
14
|
+
import { useDesign as le } from "/@/hooks/web/useDesign";
|
|
15
|
+
import { _ as ce } from "./index-0e3ab3af.mjs";
|
|
16
|
+
import "/@/components/Icon";
|
|
17
|
+
import "/@/components/Modal";
|
|
18
|
+
import "/@/components/Form/index";
|
|
19
|
+
import "/@/hooks/web/useMessage";
|
|
20
|
+
import "./useSchemas-0433a403.mjs";
|
|
21
|
+
import "ant-design-vue";
|
|
22
|
+
import "@ant-design/icons-vue";
|
|
23
|
+
import "/@/utils/common/compUtils";
|
|
24
|
+
import "/@/hooks/web/usePermission";
|
|
25
|
+
import "/@/utils/helper/validator";
|
|
26
|
+
import "./DBAttributeTable-370de07b.mjs";
|
|
27
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
28
|
+
import "./useTableSync-774c3774.mjs";
|
|
29
|
+
import "lodash-es";
|
|
30
|
+
import "/@/utils/dict";
|
|
31
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
32
|
+
import "/@/utils/uuid";
|
|
33
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
34
|
+
import "vue-router";
|
|
35
|
+
import "./PageAttributeTable-965dc58e.mjs";
|
|
36
|
+
import "./LinkTableConfigModal-d4fbdef2.mjs";
|
|
37
|
+
import "/@/utils/http/axios";
|
|
38
|
+
import "./LinkTableFieldConfigModal-787bc55c.mjs";
|
|
39
|
+
import "./FieldExtendJsonModal-a70a9ccd.mjs";
|
|
40
|
+
import "./constant-754f1a9d.mjs";
|
|
41
|
+
import "./CheckDictTable-134cbb83.mjs";
|
|
42
|
+
import "/@/components/jeecg/JPrompt";
|
|
43
|
+
import "./ForeignKeyTable-6a843c4b.mjs";
|
|
44
|
+
import "./IndexTable-f8af9d44.mjs";
|
|
45
|
+
import "./QueryTable-eb9a5b21.mjs";
|
|
46
|
+
import "./ExtendConfigModal-1dde390a.mjs";
|
|
47
|
+
import "/@/components/Form";
|
|
48
|
+
import "./useOnlineTest-e4bd8be3.mjs";
|
|
49
|
+
import "/@/utils";
|
|
50
|
+
import "./useExtendComponent-325fe3f1.mjs";
|
|
51
|
+
import "/@/components/Form/src/componentMap";
|
|
52
|
+
import "/@/utils/propTypes";
|
|
53
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
54
|
+
import "/@/views/system/user/user.api";
|
|
55
|
+
import "/@/store/modules/user";
|
|
56
|
+
import "/@/utils/desform/customExpression";
|
|
57
|
+
import "/@/store/modules/permission";
|
|
58
|
+
import "/@/hooks/system/useListPage";
|
|
59
|
+
import "/@/components/Form/src/utils/Area";
|
|
60
|
+
import "/@/components/Preview/index";
|
|
61
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
62
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
63
|
+
import "/@/components/Loading";
|
|
64
|
+
import "/@/utils/auth";
|
|
65
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
66
|
+
import "/@/hooks/web/useAppInject";
|
|
67
|
+
import "@vueuse/core";
|
|
68
|
+
import "./CodeFileListModal-a6d3290d.mjs";
|
|
69
|
+
import "./CodeFileViewModal-373e8058.mjs";
|
|
70
|
+
import "/@/utils/file/download";
|
|
71
|
+
import "./FileSelectModal-9a02560b.mjs";
|
|
72
|
+
import "./EnhanceJsHistory-352b46b1.mjs";
|
|
73
|
+
import "/@/utils/dateUtil";
|
|
74
|
+
import "/@/store";
|
|
75
|
+
import "pinia";
|
|
76
|
+
import "/@/utils/cache";
|
|
77
|
+
import "./enhance.api-138e6826.mjs";
|
|
78
|
+
import "/@/utils/is";
|
|
79
|
+
import "./enhance.data-efc7e155.mjs";
|
|
80
|
+
import "/@/components/Drawer";
|
|
81
|
+
import "./AuthFieldConfig-6b21915c.mjs";
|
|
82
|
+
import "./auth.api-d3a6c4b3.mjs";
|
|
83
|
+
import "./auth.data-8be5c9e3.mjs";
|
|
84
|
+
import "./AuthButtonConfig-244ec09f.mjs";
|
|
85
|
+
import "./AuthDataConfig-83891eea.mjs";
|
|
86
|
+
import "./LeftRole-8b8dfe21.mjs";
|
|
87
|
+
import "./LeftDepart-fa85523d.mjs";
|
|
88
|
+
import "/@/api/common/api";
|
|
89
|
+
import "./LeftUser-dc24ef2f.mjs";
|
|
90
|
+
import "./AuthFieldTree-69864163.mjs";
|
|
91
|
+
import "./AuthButtonTree-3aa0ed49.mjs";
|
|
92
|
+
import "./AuthDataTree-94e026e3.mjs";
|
|
93
|
+
import "clipboard";
|
|
94
|
+
import "./cgformState-d9f8ec42.mjs";
|
|
95
|
+
/*!
|
|
96
|
+
* Intro.js v7.2.0
|
|
97
|
+
* https://introjs.com
|
|
98
|
+
*
|
|
99
|
+
* Copyright (C) 2012-2023 Afshin Mehrabani (@afshinmeh).
|
|
100
|
+
* https://introjs.com
|
|
101
|
+
*
|
|
102
|
+
* Date: Mon, 14 Aug 2023 19:47:14 GMT
|
|
103
|
+
*/
|
|
104
|
+
function it(t) {
|
|
105
|
+
return it = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
106
|
+
return typeof e;
|
|
107
|
+
} : function(e) {
|
|
108
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
109
|
+
}, it(t);
|
|
110
|
+
}
|
|
111
|
+
function f(t, e, n, o) {
|
|
112
|
+
return new (n || (n = Promise))(function(i, r) {
|
|
113
|
+
function s(u) {
|
|
114
|
+
try {
|
|
115
|
+
c(o.next(u));
|
|
116
|
+
} catch (l) {
|
|
117
|
+
r(l);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function a(u) {
|
|
121
|
+
try {
|
|
122
|
+
c(o.throw(u));
|
|
123
|
+
} catch (l) {
|
|
124
|
+
r(l);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function c(u) {
|
|
128
|
+
var l;
|
|
129
|
+
u.done ? i(u.value) : (l = u.value, l instanceof n ? l : new n(function(p) {
|
|
130
|
+
p(l);
|
|
131
|
+
})).then(s, a);
|
|
132
|
+
}
|
|
133
|
+
c((o = o.apply(t, e || [])).next());
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function g(t, e) {
|
|
137
|
+
var n, o, i, r, s = { label: 0, sent: function() {
|
|
138
|
+
if (1 & i[0])
|
|
139
|
+
throw i[1];
|
|
140
|
+
return i[1];
|
|
141
|
+
}, trys: [], ops: [] };
|
|
142
|
+
return r = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (r[Symbol.iterator] = function() {
|
|
143
|
+
return this;
|
|
144
|
+
}), r;
|
|
145
|
+
function a(c) {
|
|
146
|
+
return function(u) {
|
|
147
|
+
return function(l) {
|
|
148
|
+
if (n)
|
|
149
|
+
throw new TypeError("Generator is already executing.");
|
|
150
|
+
for (; r && (r = 0, l[0] && (s = 0)), s; )
|
|
151
|
+
try {
|
|
152
|
+
if (n = 1, o && (i = 2 & l[0] ? o.return : l[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, l[1])).done)
|
|
153
|
+
return i;
|
|
154
|
+
switch (o = 0, i && (l = [2 & l[0], i.value]), l[0]) {
|
|
155
|
+
case 0:
|
|
156
|
+
case 1:
|
|
157
|
+
i = l;
|
|
158
|
+
break;
|
|
159
|
+
case 4:
|
|
160
|
+
return s.label++, { value: l[1], done: !1 };
|
|
161
|
+
case 5:
|
|
162
|
+
s.label++, o = l[1], l = [0];
|
|
163
|
+
continue;
|
|
164
|
+
case 7:
|
|
165
|
+
l = s.ops.pop(), s.trys.pop();
|
|
166
|
+
continue;
|
|
167
|
+
default:
|
|
168
|
+
if (i = s.trys, !((i = i.length > 0 && i[i.length - 1]) || l[0] !== 6 && l[0] !== 2)) {
|
|
169
|
+
s = 0;
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
|
|
173
|
+
s.label = l[1];
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
if (l[0] === 6 && s.label < i[1]) {
|
|
177
|
+
s.label = i[1], i = l;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
if (i && s.label < i[2]) {
|
|
181
|
+
s.label = i[2], s.ops.push(l);
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
i[2] && s.ops.pop(), s.trys.pop();
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
l = e.call(t, s);
|
|
188
|
+
} catch (p) {
|
|
189
|
+
l = [6, p], o = 0;
|
|
190
|
+
} finally {
|
|
191
|
+
n = i = 0;
|
|
192
|
+
}
|
|
193
|
+
if (5 & l[0])
|
|
194
|
+
throw l[1];
|
|
195
|
+
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
196
|
+
}([c, u]);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function wt(t, e, n) {
|
|
201
|
+
var o, i = ((o = {})[t] = e, o.path = "/", o.expires = void 0, o);
|
|
202
|
+
if (n) {
|
|
203
|
+
var r = /* @__PURE__ */ new Date();
|
|
204
|
+
r.setTime(r.getTime() + 24 * n * 60 * 60 * 1e3), i.expires = r.toUTCString();
|
|
205
|
+
}
|
|
206
|
+
var s = [];
|
|
207
|
+
for (var a in i)
|
|
208
|
+
s.push("".concat(a, "=").concat(i[a]));
|
|
209
|
+
return document.cookie = s.join("; "), Et(t);
|
|
210
|
+
}
|
|
211
|
+
function Et(t) {
|
|
212
|
+
return (e = {}, document.cookie.split(";").forEach(function(n) {
|
|
213
|
+
var o = n.split("="), i = o[0], r = o[1];
|
|
214
|
+
e[i.trim()] = r;
|
|
215
|
+
}), e)[t];
|
|
216
|
+
var e;
|
|
217
|
+
}
|
|
218
|
+
function ue(t, e) {
|
|
219
|
+
e ? wt(t._options.dontShowAgainCookie, "true", t._options.dontShowAgainCookieDays) : wt(t._options.dontShowAgainCookie, "", -1);
|
|
220
|
+
}
|
|
221
|
+
var et, ht = (et = {}, function(t, e) {
|
|
222
|
+
return e === void 0 && (e = "introjs-stamp"), et[e] = et[e] || 0, t[e] === void 0 && (t[e] = et[e]++), t[e];
|
|
223
|
+
}), L = new (function() {
|
|
224
|
+
function t() {
|
|
225
|
+
this.events_key = "introjs_event";
|
|
226
|
+
}
|
|
227
|
+
return t.prototype._id = function(e, n, o) {
|
|
228
|
+
return e + ht(n) + (o ? "_".concat(ht(o)) : "");
|
|
229
|
+
}, t.prototype.on = function(e, n, o, i, r) {
|
|
230
|
+
var s = this._id(n, o, i), a = function(c) {
|
|
231
|
+
return o(i || e, c || window.event);
|
|
232
|
+
};
|
|
233
|
+
"addEventListener" in e ? e.addEventListener(n, a, r) : "attachEvent" in e && e.attachEvent("on".concat(n), a), e[this.events_key] = e[this.events_key] || {}, e[this.events_key][s] = a;
|
|
234
|
+
}, t.prototype.off = function(e, n, o, i, r) {
|
|
235
|
+
var s = this._id(n, o, i), a = e[this.events_key] && e[this.events_key][s];
|
|
236
|
+
a && ("removeEventListener" in e ? e.removeEventListener(n, a, r) : "detachEvent" in e && e.detachEvent("on".concat(n), a), e[this.events_key][s] = null);
|
|
237
|
+
}, t;
|
|
238
|
+
}())(), y = function(t) {
|
|
239
|
+
return typeof t == "function";
|
|
240
|
+
};
|
|
241
|
+
function I(t, e) {
|
|
242
|
+
if (t instanceof SVGElement) {
|
|
243
|
+
var n = t.getAttribute("class") || "";
|
|
244
|
+
n.match(e) || t.setAttribute("class", "".concat(n, " ").concat(e));
|
|
245
|
+
} else if (t.classList !== void 0)
|
|
246
|
+
for (var o = 0, i = e.split(" "); o < i.length; o++) {
|
|
247
|
+
var r = i[o];
|
|
248
|
+
t.classList.add(r);
|
|
249
|
+
}
|
|
250
|
+
else
|
|
251
|
+
t.className.match(e) || (t.className += " ".concat(e));
|
|
252
|
+
}
|
|
253
|
+
function gt(t, e) {
|
|
254
|
+
var n = "";
|
|
255
|
+
return "currentStyle" in t ? n = t.currentStyle[e] : document.defaultView && document.defaultView.getComputedStyle && (n = document.defaultView.getComputedStyle(t, null).getPropertyValue(e)), n && n.toLowerCase ? n.toLowerCase() : n;
|
|
256
|
+
}
|
|
257
|
+
function Ct(t, e) {
|
|
258
|
+
if (t) {
|
|
259
|
+
var n = function(o) {
|
|
260
|
+
var i = window.getComputedStyle(o), r = i.position === "absolute", s = /(auto|scroll)/;
|
|
261
|
+
if (i.position === "fixed")
|
|
262
|
+
return document.body;
|
|
263
|
+
for (var a = o; a = a.parentElement; )
|
|
264
|
+
if (i = window.getComputedStyle(a), (!r || i.position !== "static") && s.test(i.overflow + i.overflowY + i.overflowX))
|
|
265
|
+
return a;
|
|
266
|
+
return document.body;
|
|
267
|
+
}(e);
|
|
268
|
+
n !== document.body && (n.scrollTop = e.offsetTop - n.offsetTop);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
function bt() {
|
|
272
|
+
if (window.innerWidth !== void 0)
|
|
273
|
+
return { width: window.innerWidth, height: window.innerHeight };
|
|
274
|
+
var t = document.documentElement;
|
|
275
|
+
return { width: t.clientWidth, height: t.clientHeight };
|
|
276
|
+
}
|
|
277
|
+
function St(t, e, n, o, i) {
|
|
278
|
+
var r;
|
|
279
|
+
if (e !== "off" && t && (r = e === "tooltip" ? i.getBoundingClientRect() : o.getBoundingClientRect(), !function(a) {
|
|
280
|
+
var c = a.getBoundingClientRect();
|
|
281
|
+
return c.top >= 0 && c.left >= 0 && c.bottom + 80 <= window.innerHeight && c.right <= window.innerWidth;
|
|
282
|
+
}(o))) {
|
|
283
|
+
var s = bt().height;
|
|
284
|
+
r.bottom - (r.bottom - r.top) < 0 || o.clientHeight > s ? window.scrollBy(0, r.top - (s / 2 - r.height / 2) - n) : window.scrollBy(0, r.top - (s / 2 - r.height / 2) + n);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function Q(t) {
|
|
288
|
+
t.setAttribute("role", "button"), t.tabIndex = 0;
|
|
289
|
+
}
|
|
290
|
+
function at(t) {
|
|
291
|
+
var e = t.parentElement;
|
|
292
|
+
return !(!e || e.nodeName === "HTML") && (gt(t, "position") === "fixed" || at(e));
|
|
293
|
+
}
|
|
294
|
+
function W(t, e) {
|
|
295
|
+
var n = document.body, o = document.documentElement, i = window.pageYOffset || o.scrollTop || n.scrollTop, r = window.pageXOffset || o.scrollLeft || n.scrollLeft;
|
|
296
|
+
e = e || n;
|
|
297
|
+
var s = t.getBoundingClientRect(), a = e.getBoundingClientRect(), c = gt(e, "position"), u = { width: s.width, height: s.height };
|
|
298
|
+
return e.tagName.toLowerCase() !== "body" && c === "relative" || c === "sticky" ? Object.assign(u, { top: s.top - a.top, left: s.left - a.left }) : at(t) ? Object.assign(u, { top: s.top, left: s.left }) : Object.assign(u, { top: s.top + i, left: s.left + r });
|
|
299
|
+
}
|
|
300
|
+
function vt(t, e) {
|
|
301
|
+
if (t instanceof SVGElement) {
|
|
302
|
+
var n = t.getAttribute("class") || "";
|
|
303
|
+
t.setAttribute("class", n.replace(e, "").replace(/^\s+|\s+$/g, ""));
|
|
304
|
+
} else
|
|
305
|
+
t.className = t.className.replace(e, "").replace(/^\s+|\s+$/g, "");
|
|
306
|
+
}
|
|
307
|
+
function D(t, e) {
|
|
308
|
+
var n = "";
|
|
309
|
+
if (t.style.cssText && (n += t.style.cssText), typeof e == "string")
|
|
310
|
+
n += e;
|
|
311
|
+
else
|
|
312
|
+
for (var o in e)
|
|
313
|
+
n += "".concat(o, ":").concat(e[o], ";");
|
|
314
|
+
t.style.cssText = n;
|
|
315
|
+
}
|
|
316
|
+
function q(t, e, n) {
|
|
317
|
+
if (n && e) {
|
|
318
|
+
var o = W(e.element, t._targetElement), i = t._options.helperElementPadding;
|
|
319
|
+
e.element instanceof Element && at(e.element) ? I(n, "introjs-fixedTooltip") : vt(n, "introjs-fixedTooltip"), e.position === "floating" && (i = 0), D(n, { width: "".concat(o.width + i, "px"), height: "".concat(o.height + i, "px"), top: "".concat(o.top - i / 2, "px"), left: "".concat(o.left - i / 2, "px") });
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function nt(t, e, n, o, i) {
|
|
323
|
+
return t.left + e + n.width > o.width ? (i.style.left = "".concat(o.width - n.width - t.left, "px"), !1) : (i.style.left = "".concat(e, "px"), !0);
|
|
324
|
+
}
|
|
325
|
+
function ot(t, e, n, o) {
|
|
326
|
+
return t.left + t.width - e - n.width < 0 ? (o.style.left = "".concat(-t.left, "px"), !1) : (o.style.right = "".concat(e, "px"), !0);
|
|
327
|
+
}
|
|
328
|
+
function B(t, e) {
|
|
329
|
+
t.includes(e) && t.splice(t.indexOf(e), 1);
|
|
330
|
+
}
|
|
331
|
+
function pe(t, e, n, o) {
|
|
332
|
+
var i = t.slice(), r = bt(), s = W(n).height + 10, a = W(n).width + 20, c = e.getBoundingClientRect(), u = "floating";
|
|
333
|
+
if (c.bottom + s > r.height && B(i, "bottom"), c.top - s < 0 && B(i, "top"), c.right + a > r.width && B(i, "right"), c.left - a < 0 && B(i, "left"), o && (o = o.split("-")[0]), i.length && (u = i[0], i.includes(o) && (u = o)), u === "top" || u === "bottom") {
|
|
334
|
+
var l = void 0, p = [];
|
|
335
|
+
u === "top" ? (l = "top-middle-aligned", p = ["top-left-aligned", "top-middle-aligned", "top-right-aligned"]) : (l = "bottom-middle-aligned", p = ["bottom-left-aligned", "bottom-middle-aligned", "bottom-right-aligned"]), u = function(m, b, v, C) {
|
|
336
|
+
var w = b / 2, j = Math.min(v, window.screen.width);
|
|
337
|
+
return j - m < b && (B(C, "top-left-aligned"), B(C, "bottom-left-aligned")), (m < w || j - m < w) && (B(C, "top-middle-aligned"), B(C, "bottom-middle-aligned")), m < b && (B(C, "top-right-aligned"), B(C, "bottom-right-aligned")), C.length ? C[0] : null;
|
|
338
|
+
}(c.left, a, r.width, p) || l;
|
|
339
|
+
}
|
|
340
|
+
return u;
|
|
341
|
+
}
|
|
342
|
+
function rt(t, e, n, o, i) {
|
|
343
|
+
if (i === void 0 && (i = !1), e) {
|
|
344
|
+
var r, s, a, c, u = "";
|
|
345
|
+
n.style.top = "", n.style.right = "", n.style.bottom = "", n.style.left = "", n.style.marginLeft = "", n.style.marginTop = "", o.style.display = "inherit", u = typeof e.tooltipClass == "string" ? e.tooltipClass : t._options.tooltipClass, n.className = ["introjs-tooltip", u].filter(Boolean).join(" "), n.setAttribute("role", "dialog"), (c = e.position) !== "floating" && t._options.autoPosition && (c = pe(t._options.positionPrecedence, e.element, n, c)), s = W(e.element), r = W(n), a = bt(), I(n, "introjs-".concat(c));
|
|
346
|
+
var l = s.width / 2 - r.width / 2;
|
|
347
|
+
switch (c) {
|
|
348
|
+
case "top-right-aligned":
|
|
349
|
+
o.className = "introjs-arrow bottom-right";
|
|
350
|
+
var p = 0;
|
|
351
|
+
ot(s, p, r, n), n.style.bottom = "".concat(s.height + 20, "px");
|
|
352
|
+
break;
|
|
353
|
+
case "top-middle-aligned":
|
|
354
|
+
o.className = "introjs-arrow bottom-middle", i && (l += 5), ot(s, l, r, n) && (n.style.right = "", nt(s, l, r, a, n)), n.style.bottom = "".concat(s.height + 20, "px");
|
|
355
|
+
break;
|
|
356
|
+
case "top-left-aligned":
|
|
357
|
+
case "top":
|
|
358
|
+
o.className = "introjs-arrow bottom", nt(s, i ? 0 : 15, r, a, n), n.style.bottom = "".concat(s.height + 20, "px");
|
|
359
|
+
break;
|
|
360
|
+
case "right":
|
|
361
|
+
n.style.left = "".concat(s.width + 20, "px"), s.top + r.height > a.height ? (o.className = "introjs-arrow left-bottom", n.style.top = "-".concat(r.height - s.height - 20, "px")) : o.className = "introjs-arrow left";
|
|
362
|
+
break;
|
|
363
|
+
case "left":
|
|
364
|
+
i || t._options.showStepNumbers !== !0 || (n.style.top = "15px"), s.top + r.height > a.height ? (n.style.top = "-".concat(r.height - s.height - 20, "px"), o.className = "introjs-arrow right-bottom") : o.className = "introjs-arrow right", n.style.right = "".concat(s.width + 20, "px");
|
|
365
|
+
break;
|
|
366
|
+
case "floating":
|
|
367
|
+
o.style.display = "none", n.style.left = "50%", n.style.top = "50%", n.style.marginLeft = "-".concat(r.width / 2, "px"), n.style.marginTop = "-".concat(r.height / 2, "px");
|
|
368
|
+
break;
|
|
369
|
+
case "bottom-right-aligned":
|
|
370
|
+
o.className = "introjs-arrow top-right", ot(s, p = 0, r, n), n.style.top = "".concat(s.height + 20, "px");
|
|
371
|
+
break;
|
|
372
|
+
case "bottom-middle-aligned":
|
|
373
|
+
o.className = "introjs-arrow top-middle", i && (l += 5), ot(s, l, r, n) && (n.style.right = "", nt(s, l, r, a, n)), n.style.top = "".concat(s.height + 20, "px");
|
|
374
|
+
break;
|
|
375
|
+
default:
|
|
376
|
+
o.className = "introjs-arrow top", nt(s, 0, r, a, n), n.style.top = "".concat(s.height + 20, "px");
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
function Nt() {
|
|
381
|
+
for (var t = 0, e = Array.from(document.querySelectorAll(".introjs-showElement")); t < e.length; t++)
|
|
382
|
+
vt(e[t], /introjs-[a-zA-Z]+/g);
|
|
383
|
+
}
|
|
384
|
+
function h(t, e) {
|
|
385
|
+
var n = document.createElement(t);
|
|
386
|
+
e = e || {};
|
|
387
|
+
var o = /^(?:role|data-|aria-)/;
|
|
388
|
+
for (var i in e) {
|
|
389
|
+
var r = e[i];
|
|
390
|
+
i === "style" && typeof r != "function" ? D(n, r) : typeof r == "string" && i.match(o) ? n.setAttribute(i, r) : n[i] = r;
|
|
391
|
+
}
|
|
392
|
+
return n;
|
|
393
|
+
}
|
|
394
|
+
function kt(t, e, n) {
|
|
395
|
+
if (n === void 0 && (n = !1), n) {
|
|
396
|
+
var o = e.style.opacity || "1";
|
|
397
|
+
D(e, { opacity: "0" }), window.setTimeout(function() {
|
|
398
|
+
D(e, { opacity: o });
|
|
399
|
+
}, 10);
|
|
400
|
+
}
|
|
401
|
+
t.appendChild(e);
|
|
402
|
+
}
|
|
403
|
+
function Tt(t, e) {
|
|
404
|
+
return (t + 1) / e * 100;
|
|
405
|
+
}
|
|
406
|
+
function xt(t, e) {
|
|
407
|
+
var n = h("div", { className: "introjs-bullets" });
|
|
408
|
+
t._options.showBullets === !1 && (n.style.display = "none");
|
|
409
|
+
var o = h("ul");
|
|
410
|
+
o.setAttribute("role", "tablist");
|
|
411
|
+
for (var i = function() {
|
|
412
|
+
var u = this.getAttribute("data-step-number");
|
|
413
|
+
u != null && t.goToStep(parseInt(u, 10));
|
|
414
|
+
}, r = 0; r < t._introItems.length; r++) {
|
|
415
|
+
var s = t._introItems[r].step, a = h("li"), c = h("a");
|
|
416
|
+
a.setAttribute("role", "presentation"), c.setAttribute("role", "tab"), c.onclick = i, r === e.step - 1 && (c.className = "active"), Q(c), c.innerHTML = " ", c.setAttribute("data-step-number", s.toString()), a.appendChild(c), o.appendChild(a);
|
|
417
|
+
}
|
|
418
|
+
return n.appendChild(o), n;
|
|
419
|
+
}
|
|
420
|
+
function Bt(t, e, n) {
|
|
421
|
+
var o = t.querySelector(".introjs-progress .introjs-progressbar");
|
|
422
|
+
if (o) {
|
|
423
|
+
var i = Tt(e, n);
|
|
424
|
+
o.style.cssText = "width:".concat(i, "%;"), o.setAttribute("aria-valuenow", i.toString());
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function It(t, e) {
|
|
428
|
+
return f(this, void 0, void 0, function() {
|
|
429
|
+
var n, o, i, r, s, a, c, u, l, p, m, b, v, C, w, j, N, M, T, P, x, U, V, z, K = this;
|
|
430
|
+
return g(this, function(H) {
|
|
431
|
+
switch (H.label) {
|
|
432
|
+
case 0:
|
|
433
|
+
return y(t._introChangeCallback) ? [4, t._introChangeCallback.call(t, e.element)] : [3, 2];
|
|
434
|
+
case 1:
|
|
435
|
+
H.sent(), H.label = 2;
|
|
436
|
+
case 2:
|
|
437
|
+
return n = document.querySelector(".introjs-helperLayer"), o = document.querySelector(".introjs-tooltipReferenceLayer"), i = "introjs-helperLayer", typeof e.highlightClass == "string" && (i += " ".concat(e.highlightClass)), typeof t._options.highlightClass == "string" && (i += " ".concat(t._options.highlightClass)), n !== null && o !== null ? (c = o.querySelector(".introjs-helperNumberLayer"), u = o.querySelector(".introjs-tooltiptext"), l = o.querySelector(".introjs-tooltip-title"), p = o.querySelector(".introjs-arrow"), m = o.querySelector(".introjs-tooltip"), a = o.querySelector(".introjs-skipbutton"), s = o.querySelector(".introjs-prevbutton"), r = o.querySelector(".introjs-nextbutton"), n.className = i, m.style.opacity = "0", m.style.display = "none", Ct(t._options.scrollToElement, e.element), q(t, e, n), q(t, e, o), Nt(), t._lastShowElementTimer && window.clearTimeout(t._lastShowElementTimer), t._lastShowElementTimer = window.setTimeout(function() {
|
|
438
|
+
c !== null && (c.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length)), u.innerHTML = e.intro || "", l.innerHTML = e.title || "", m.style.display = "block", rt(t, e, m, p), function(d, S, k) {
|
|
439
|
+
if (d) {
|
|
440
|
+
var O = S.querySelector(".introjs-bullets li > a.active"), Z = S.querySelector('.introjs-bullets li > a[data-step-number="'.concat(k.step, '"]'));
|
|
441
|
+
O && Z && (O.className = "", Z.className = "active");
|
|
442
|
+
}
|
|
443
|
+
}(t._options.showBullets, o, e), Bt(o, t._currentStep, t._introItems.length), m.style.opacity = "1", (r != null && /introjs-donebutton/gi.test(r.className) || r != null) && r.focus(), St(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, u);
|
|
444
|
+
}, 350)) : (b = h("div", { className: i }), v = h("div", { className: "introjs-tooltipReferenceLayer" }), C = h("div", { className: "introjs-arrow" }), w = h("div", { className: "introjs-tooltip" }), j = h("div", { className: "introjs-tooltiptext" }), N = h("div", { className: "introjs-tooltip-header" }), M = h("h1", { className: "introjs-tooltip-title" }), T = h("div"), D(b, { "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(), ") 0 0 0 5000px") }), Ct(t._options.scrollToElement, e.element), q(t, e, b), q(t, e, v), kt(t._targetElement, b, !0), kt(t._targetElement, v), j.innerHTML = e.intro, M.innerHTML = e.title, T.className = "introjs-tooltipbuttons", t._options.showButtons === !1 && (T.style.display = "none"), N.appendChild(M), w.appendChild(N), w.appendChild(j), t._options.dontShowAgain && (P = h("div", { className: "introjs-dontShowAgain" }), (x = h("input", { type: "checkbox", id: "introjs-dontShowAgain", name: "introjs-dontShowAgain" })).onchange = function(d) {
|
|
445
|
+
t.setDontShowAgain(d.target.checked);
|
|
446
|
+
}, (U = h("label", { htmlFor: "introjs-dontShowAgain" })).innerText = t._options.dontShowAgainLabel, P.appendChild(x), P.appendChild(U), w.appendChild(P)), w.appendChild(xt(t, e)), w.appendChild(function(d) {
|
|
447
|
+
var S = h("div");
|
|
448
|
+
S.className = "introjs-progress", d._options.showProgress === !1 && (S.style.display = "none");
|
|
449
|
+
var k = h("div", { className: "introjs-progressbar" });
|
|
450
|
+
d._options.progressBarAdditionalClass && (k.className += " " + d._options.progressBarAdditionalClass);
|
|
451
|
+
var O = Tt(d._currentStep, d._introItems.length);
|
|
452
|
+
return k.setAttribute("role", "progress"), k.setAttribute("aria-valuemin", "0"), k.setAttribute("aria-valuemax", "100"), k.setAttribute("aria-valuenow", O.toString()), k.style.cssText = "width:".concat(O, "%;"), S.appendChild(k), S;
|
|
453
|
+
}(t)), V = h("div"), t._options.showStepNumbers === !0 && (V.className = "introjs-helperNumberLayer", V.innerHTML = "".concat(e.step, " ").concat(t._options.stepNumbersOfLabel, " ").concat(t._introItems.length), w.appendChild(V)), w.appendChild(C), v.appendChild(w), (r = h("a")).onclick = function() {
|
|
454
|
+
return f(K, void 0, void 0, function() {
|
|
455
|
+
return g(this, function(d) {
|
|
456
|
+
switch (d.label) {
|
|
457
|
+
case 0:
|
|
458
|
+
return t._introItems.length - 1 === t._currentStep ? [3, 2] : [4, F(t)];
|
|
459
|
+
case 1:
|
|
460
|
+
return d.sent(), [3, 6];
|
|
461
|
+
case 2:
|
|
462
|
+
return /introjs-donebutton/gi.test(r.className) ? y(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "done")] : [3, 4] : [3, 6];
|
|
463
|
+
case 3:
|
|
464
|
+
d.sent(), d.label = 4;
|
|
465
|
+
case 4:
|
|
466
|
+
return [4, G(t, t._targetElement)];
|
|
467
|
+
case 5:
|
|
468
|
+
d.sent(), d.label = 6;
|
|
469
|
+
case 6:
|
|
470
|
+
return [2];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
}, Q(r), r.innerHTML = t._options.nextLabel, (s = h("a")).onclick = function() {
|
|
475
|
+
return f(K, void 0, void 0, function() {
|
|
476
|
+
return g(this, function(d) {
|
|
477
|
+
switch (d.label) {
|
|
478
|
+
case 0:
|
|
479
|
+
return t._currentStep > 0 ? [4, st(t)] : [3, 2];
|
|
480
|
+
case 1:
|
|
481
|
+
d.sent(), d.label = 2;
|
|
482
|
+
case 2:
|
|
483
|
+
return [2];
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
}, Q(s), s.innerHTML = t._options.prevLabel, Q(a = h("a", { className: "introjs-skipbutton" })), a.innerHTML = t._options.skipLabel, a.onclick = function() {
|
|
488
|
+
return f(K, void 0, void 0, function() {
|
|
489
|
+
return g(this, function(d) {
|
|
490
|
+
switch (d.label) {
|
|
491
|
+
case 0:
|
|
492
|
+
return t._introItems.length - 1 === t._currentStep && y(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "skip")] : [3, 2];
|
|
493
|
+
case 1:
|
|
494
|
+
d.sent(), d.label = 2;
|
|
495
|
+
case 2:
|
|
496
|
+
return y(t._introSkipCallback) ? [4, t._introSkipCallback.call(t, t._currentStep)] : [3, 4];
|
|
497
|
+
case 3:
|
|
498
|
+
d.sent(), d.label = 4;
|
|
499
|
+
case 4:
|
|
500
|
+
return [4, G(t, t._targetElement)];
|
|
501
|
+
case 5:
|
|
502
|
+
return d.sent(), [2];
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
}, N.appendChild(a), t._introItems.length > 1 && T.appendChild(s), T.appendChild(r), w.appendChild(T), rt(t, e, w, C), St(t._options.scrollToElement, e.scrollTo, t._options.scrollPadding, e.element, w)), (z = t._targetElement.querySelector(".introjs-disableInteraction")) && z.parentNode && z.parentNode.removeChild(z), e.disableInteraction && function(d, S) {
|
|
507
|
+
var k = document.querySelector(".introjs-disableInteraction");
|
|
508
|
+
k === null && (k = h("div", { className: "introjs-disableInteraction" }), d._targetElement.appendChild(k)), q(d, S, k);
|
|
509
|
+
}(t, e), t._currentStep === 0 && t._introItems.length > 1 ? (r != null && (r.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), r.innerHTML = t._options.nextLabel), t._options.hidePrev === !0 ? (s != null && (s.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-hidden")), r != null && I(r, "introjs-fullbutton")) : s != null && (s.className = "".concat(t._options.buttonClass, " introjs-prevbutton introjs-disabled"))) : t._introItems.length - 1 === t._currentStep || t._introItems.length === 1 ? (s != null && (s.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), t._options.hideNext === !0 ? (r != null && (r.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-hidden")), s != null && I(s, "introjs-fullbutton")) : r != null && (t._options.nextToDone === !0 ? (r.innerHTML = t._options.doneLabel, I(r, "".concat(t._options.buttonClass, " introjs-nextbutton introjs-donebutton"))) : r.className = "".concat(t._options.buttonClass, " introjs-nextbutton introjs-disabled"))) : (s != null && (s.className = "".concat(t._options.buttonClass, " introjs-prevbutton")), r != null && (r.className = "".concat(t._options.buttonClass, " introjs-nextbutton"), r.innerHTML = t._options.nextLabel)), s != null && s.setAttribute("role", "button"), r != null && r.setAttribute("role", "button"), a != null && a.setAttribute("role", "button"), r != null && r.focus(), function(d) {
|
|
510
|
+
I(d, "introjs-showElement");
|
|
511
|
+
var S = gt(d, "position");
|
|
512
|
+
S !== "absolute" && S !== "relative" && S !== "sticky" && S !== "fixed" && I(d, "introjs-relativePosition");
|
|
513
|
+
}(e.element), y(t._introAfterChangeCallback) ? [4, t._introAfterChangeCallback.call(t, e.element)] : [3, 4];
|
|
514
|
+
case 3:
|
|
515
|
+
H.sent(), H.label = 4;
|
|
516
|
+
case 4:
|
|
517
|
+
return [2];
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
function de(t, e) {
|
|
523
|
+
return f(this, void 0, void 0, function() {
|
|
524
|
+
return g(this, function(n) {
|
|
525
|
+
switch (n.label) {
|
|
526
|
+
case 0:
|
|
527
|
+
return t._currentStep = e - 2, t._introItems === void 0 ? [3, 2] : [4, F(t)];
|
|
528
|
+
case 1:
|
|
529
|
+
n.sent(), n.label = 2;
|
|
530
|
+
case 2:
|
|
531
|
+
return [2];
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
function he(t, e) {
|
|
537
|
+
return f(this, void 0, void 0, function() {
|
|
538
|
+
return g(this, function(n) {
|
|
539
|
+
switch (n.label) {
|
|
540
|
+
case 0:
|
|
541
|
+
return t._currentStepNumber = e, t._introItems === void 0 ? [3, 2] : [4, F(t)];
|
|
542
|
+
case 1:
|
|
543
|
+
n.sent(), n.label = 2;
|
|
544
|
+
case 2:
|
|
545
|
+
return [2];
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
function F(t) {
|
|
551
|
+
return f(this, void 0, void 0, function() {
|
|
552
|
+
var e, n, o;
|
|
553
|
+
return g(this, function(i) {
|
|
554
|
+
switch (i.label) {
|
|
555
|
+
case 0:
|
|
556
|
+
if (t._direction = "forward", t._currentStepNumber !== void 0)
|
|
557
|
+
for (e = 0; e < t._introItems.length; e++)
|
|
558
|
+
t._introItems[e].step === t._currentStepNumber && (t._currentStep = e - 1, t._currentStepNumber = void 0);
|
|
559
|
+
return t._currentStep === -1 ? t._currentStep = 0 : ++t._currentStep, n = t._introItems[t._currentStep], o = !0, y(t._introBeforeChangeCallback) ? [4, t._introBeforeChangeCallback.call(t, n && n.element, t._currentStep, t._direction)] : [3, 2];
|
|
560
|
+
case 1:
|
|
561
|
+
o = i.sent(), i.label = 2;
|
|
562
|
+
case 2:
|
|
563
|
+
return o === !1 ? (--t._currentStep, [2, !1]) : t._introItems.length <= t._currentStep ? y(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "end")] : [3, 4] : [3, 6];
|
|
564
|
+
case 3:
|
|
565
|
+
i.sent(), i.label = 4;
|
|
566
|
+
case 4:
|
|
567
|
+
return [4, G(t, t._targetElement)];
|
|
568
|
+
case 5:
|
|
569
|
+
return i.sent(), [2, !1];
|
|
570
|
+
case 6:
|
|
571
|
+
return [4, It(t, n)];
|
|
572
|
+
case 7:
|
|
573
|
+
return i.sent(), [2, !0];
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
function st(t) {
|
|
579
|
+
return f(this, void 0, void 0, function() {
|
|
580
|
+
var e, n;
|
|
581
|
+
return g(this, function(o) {
|
|
582
|
+
switch (o.label) {
|
|
583
|
+
case 0:
|
|
584
|
+
return t._direction = "backward", t._currentStep <= 0 ? [2, !1] : (--t._currentStep, e = t._introItems[t._currentStep], n = !0, y(t._introBeforeChangeCallback) ? [4, t._introBeforeChangeCallback.call(t, e && e.element, t._currentStep, t._direction)] : [3, 2]);
|
|
585
|
+
case 1:
|
|
586
|
+
n = o.sent(), o.label = 2;
|
|
587
|
+
case 2:
|
|
588
|
+
return n === !1 ? (++t._currentStep, [2, !1]) : [4, It(t, e)];
|
|
589
|
+
case 3:
|
|
590
|
+
return o.sent(), [2, !0];
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
function Lt(t, e) {
|
|
596
|
+
return f(this, void 0, void 0, function() {
|
|
597
|
+
var n, o;
|
|
598
|
+
return g(this, function(i) {
|
|
599
|
+
switch (i.label) {
|
|
600
|
+
case 0:
|
|
601
|
+
return (n = e.code === void 0 ? e.which : e.code) === null && (n = e.charCode === null ? e.keyCode : e.charCode), n !== "Escape" && n !== 27 || t._options.exitOnEsc !== !0 ? [3, 2] : [4, G(t, t._targetElement)];
|
|
602
|
+
case 1:
|
|
603
|
+
return i.sent(), [3, 16];
|
|
604
|
+
case 2:
|
|
605
|
+
return n !== "ArrowLeft" && n !== 37 ? [3, 4] : [4, st(t)];
|
|
606
|
+
case 3:
|
|
607
|
+
return i.sent(), [3, 16];
|
|
608
|
+
case 4:
|
|
609
|
+
return n !== "ArrowRight" && n !== 39 ? [3, 6] : [4, F(t)];
|
|
610
|
+
case 5:
|
|
611
|
+
return i.sent(), [3, 16];
|
|
612
|
+
case 6:
|
|
613
|
+
return n !== "Enter" && n !== "NumpadEnter" && n !== 13 ? [3, 16] : (o = e.target || e.srcElement) && o.className.match("introjs-prevbutton") ? [4, st(t)] : [3, 8];
|
|
614
|
+
case 7:
|
|
615
|
+
return i.sent(), [3, 15];
|
|
616
|
+
case 8:
|
|
617
|
+
return o && o.className.match("introjs-skipbutton") ? t._introItems.length - 1 === t._currentStep && y(t._introCompleteCallback) ? [4, t._introCompleteCallback.call(t, t._currentStep, "skip")] : [3, 10] : [3, 12];
|
|
618
|
+
case 9:
|
|
619
|
+
i.sent(), i.label = 10;
|
|
620
|
+
case 10:
|
|
621
|
+
return [4, G(t, t._targetElement)];
|
|
622
|
+
case 11:
|
|
623
|
+
return i.sent(), [3, 15];
|
|
624
|
+
case 12:
|
|
625
|
+
return o && o.getAttribute("data-step-number") ? (o.click(), [3, 15]) : [3, 13];
|
|
626
|
+
case 13:
|
|
627
|
+
return [4, F(t)];
|
|
628
|
+
case 14:
|
|
629
|
+
i.sent(), i.label = 15;
|
|
630
|
+
case 15:
|
|
631
|
+
e.preventDefault ? e.preventDefault() : e.returnValue = !1, i.label = 16;
|
|
632
|
+
case 16:
|
|
633
|
+
return [2];
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
function yt(t) {
|
|
639
|
+
if (t === null || it(t) !== "object" || "nodeType" in t)
|
|
640
|
+
return t;
|
|
641
|
+
var e = {};
|
|
642
|
+
for (var n in t)
|
|
643
|
+
"jQuery" in window && t[n] instanceof window.jQuery ? e[n] = t[n] : e[n] = yt(t[n]);
|
|
644
|
+
return e;
|
|
645
|
+
}
|
|
646
|
+
function Y(t) {
|
|
647
|
+
var e = document.querySelector(".introjs-hints");
|
|
648
|
+
return e ? Array.from(e.querySelectorAll(t)) : [];
|
|
649
|
+
}
|
|
650
|
+
function _t(t, e) {
|
|
651
|
+
return f(this, void 0, void 0, function() {
|
|
652
|
+
var n;
|
|
653
|
+
return g(this, function(o) {
|
|
654
|
+
switch (o.label) {
|
|
655
|
+
case 0:
|
|
656
|
+
return n = Y('.introjs-hint[data-step="'.concat(e, '"]'))[0], lt(), n && I(n, "introjs-hidehint"), y(t._hintCloseCallback) ? [4, t._hintCloseCallback.call(t, e)] : [3, 2];
|
|
657
|
+
case 1:
|
|
658
|
+
o.sent(), o.label = 2;
|
|
659
|
+
case 2:
|
|
660
|
+
return [2];
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
function me(t) {
|
|
666
|
+
return f(this, void 0, void 0, function() {
|
|
667
|
+
var e, n, o, i, r;
|
|
668
|
+
return g(this, function(s) {
|
|
669
|
+
switch (s.label) {
|
|
670
|
+
case 0:
|
|
671
|
+
e = Y(".introjs-hint"), n = 0, o = e, s.label = 1;
|
|
672
|
+
case 1:
|
|
673
|
+
return n < o.length ? (i = o[n], (r = i.getAttribute("data-step")) ? [4, _t(t, parseInt(r, 10))] : [3, 3]) : [3, 4];
|
|
674
|
+
case 2:
|
|
675
|
+
s.sent(), s.label = 3;
|
|
676
|
+
case 3:
|
|
677
|
+
return n++, [3, 1];
|
|
678
|
+
case 4:
|
|
679
|
+
return [2];
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
function fe(t) {
|
|
685
|
+
return f(this, void 0, void 0, function() {
|
|
686
|
+
var e, n, o, i, r;
|
|
687
|
+
return g(this, function(s) {
|
|
688
|
+
switch (s.label) {
|
|
689
|
+
case 0:
|
|
690
|
+
if (!(e = Y(".introjs-hint")) || !e.length)
|
|
691
|
+
return [3, 1];
|
|
692
|
+
for (n = 0, o = e; n < o.length; n++)
|
|
693
|
+
i = o[n], (r = i.getAttribute("data-step")) && Mt(parseInt(r, 10));
|
|
694
|
+
return [3, 3];
|
|
695
|
+
case 1:
|
|
696
|
+
return [4, Rt(t, t._targetElement)];
|
|
697
|
+
case 2:
|
|
698
|
+
s.sent(), s.label = 3;
|
|
699
|
+
case 3:
|
|
700
|
+
return [2];
|
|
701
|
+
}
|
|
702
|
+
});
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
function Mt(t) {
|
|
706
|
+
var e = Y('.introjs-hint[data-step="'.concat(t, '"]'))[0];
|
|
707
|
+
e && vt(e, /introjs-hidehint/g);
|
|
708
|
+
}
|
|
709
|
+
function At(t) {
|
|
710
|
+
var e = Y('.introjs-hint[data-step="'.concat(t, '"]'))[0];
|
|
711
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
712
|
+
}
|
|
713
|
+
function ge(t) {
|
|
714
|
+
return f(this, void 0, void 0, function() {
|
|
715
|
+
var e, n, o, i, r, s, a;
|
|
716
|
+
return g(this, function(c) {
|
|
717
|
+
switch (c.label) {
|
|
718
|
+
case 0:
|
|
719
|
+
for ((e = document.querySelector(".introjs-hints")) === null && (e = h("div", { className: "introjs-hints" })), n = function(m) {
|
|
720
|
+
return function(b) {
|
|
721
|
+
var v = b || window.event;
|
|
722
|
+
v && v.stopPropagation && v.stopPropagation(), v && v.cancelBubble !== null && (v.cancelBubble = !0), Pt(t, m);
|
|
723
|
+
};
|
|
724
|
+
}, o = 0; o < t._hintItems.length; o++) {
|
|
725
|
+
if (i = t._hintItems[o], document.querySelector('.introjs-hint[data-step="'.concat(o, '"]')))
|
|
726
|
+
return [2];
|
|
727
|
+
Q(r = h("a", { className: "introjs-hint" })), r.onclick = n(o), i.hintAnimation || I(r, "introjs-hint-no-anim"), at(i.element) && I(r, "introjs-fixedhint"), s = h("div", { className: "introjs-hint-dot" }), a = h("div", { className: "introjs-hint-pulse" }), r.appendChild(s), r.appendChild(a), r.setAttribute("data-step", o.toString()), i.hintTargetElement = i.element, i.element = r, qt(i.hintPosition, r, i.hintTargetElement), e.appendChild(r);
|
|
728
|
+
}
|
|
729
|
+
return document.body.appendChild(e), y(t._hintsAddedCallback) ? [4, t._hintsAddedCallback.call(t)] : [3, 2];
|
|
730
|
+
case 1:
|
|
731
|
+
c.sent(), c.label = 2;
|
|
732
|
+
case 2:
|
|
733
|
+
return t._options.hintAutoRefreshInterval >= 0 && (t._hintsAutoRefreshFunction = (u = function() {
|
|
734
|
+
return ct(t);
|
|
735
|
+
}, l = t._options.hintAutoRefreshInterval, function() {
|
|
736
|
+
for (var m = [], b = 0; b < arguments.length; b++)
|
|
737
|
+
m[b] = arguments[b];
|
|
738
|
+
window.clearTimeout(p), p = window.setTimeout(function() {
|
|
739
|
+
u(m);
|
|
740
|
+
}, l);
|
|
741
|
+
}), L.on(window, "scroll", t._hintsAutoRefreshFunction, t, !0)), [2];
|
|
742
|
+
}
|
|
743
|
+
var u, l, p;
|
|
744
|
+
});
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
function qt(t, e, n) {
|
|
748
|
+
if (n !== void 0) {
|
|
749
|
+
var o = W(n), i = 20, r = 20;
|
|
750
|
+
switch (t) {
|
|
751
|
+
default:
|
|
752
|
+
case "top-left":
|
|
753
|
+
e.style.left = "".concat(o.left, "px"), e.style.top = "".concat(o.top, "px");
|
|
754
|
+
break;
|
|
755
|
+
case "top-right":
|
|
756
|
+
e.style.left = "".concat(o.left + o.width - i, "px"), e.style.top = "".concat(o.top, "px");
|
|
757
|
+
break;
|
|
758
|
+
case "bottom-left":
|
|
759
|
+
e.style.left = "".concat(o.left, "px"), e.style.top = "".concat(o.top + o.height - r, "px");
|
|
760
|
+
break;
|
|
761
|
+
case "bottom-right":
|
|
762
|
+
e.style.left = "".concat(o.left + o.width - i, "px"), e.style.top = "".concat(o.top + o.height - r, "px");
|
|
763
|
+
break;
|
|
764
|
+
case "middle-left":
|
|
765
|
+
e.style.left = "".concat(o.left, "px"), e.style.top = "".concat(o.top + (o.height - r) / 2, "px");
|
|
766
|
+
break;
|
|
767
|
+
case "middle-right":
|
|
768
|
+
e.style.left = "".concat(o.left + o.width - i, "px"), e.style.top = "".concat(o.top + (o.height - r) / 2, "px");
|
|
769
|
+
break;
|
|
770
|
+
case "middle-middle":
|
|
771
|
+
e.style.left = "".concat(o.left + (o.width - i) / 2, "px"), e.style.top = "".concat(o.top + (o.height - r) / 2, "px");
|
|
772
|
+
break;
|
|
773
|
+
case "bottom-middle":
|
|
774
|
+
e.style.left = "".concat(o.left + (o.width - i) / 2, "px"), e.style.top = "".concat(o.top + o.height - r, "px");
|
|
775
|
+
break;
|
|
776
|
+
case "top-middle":
|
|
777
|
+
e.style.left = "".concat(o.left + (o.width - i) / 2, "px"), e.style.top = "".concat(o.top, "px");
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
function Pt(t, e) {
|
|
782
|
+
return f(this, void 0, void 0, function() {
|
|
783
|
+
var n, o, i, r, s, a, c, u, l, p, m;
|
|
784
|
+
return g(this, function(b) {
|
|
785
|
+
switch (b.label) {
|
|
786
|
+
case 0:
|
|
787
|
+
return n = document.querySelector('.introjs-hint[data-step="'.concat(e, '"]')), o = t._hintItems[e], y(t._hintClickCallback) ? [4, t._hintClickCallback.call(t, n, o, e)] : [3, 2];
|
|
788
|
+
case 1:
|
|
789
|
+
b.sent(), b.label = 2;
|
|
790
|
+
case 2:
|
|
791
|
+
return (i = lt()) !== void 0 && parseInt(i, 10) === e || (r = h("div", { className: "introjs-tooltip" }), s = h("div"), a = h("div"), c = h("div"), r.onclick = function(v) {
|
|
792
|
+
v.stopPropagation ? v.stopPropagation() : v.cancelBubble = !0;
|
|
793
|
+
}, s.className = "introjs-tooltiptext", (u = h("p")).innerHTML = o.hint || "", s.appendChild(u), t._options.hintShowButton && ((l = h("a")).className = t._options.buttonClass, l.setAttribute("role", "button"), l.innerHTML = t._options.hintButtonLabel, l.onclick = function() {
|
|
794
|
+
return _t(t, e);
|
|
795
|
+
}, s.appendChild(l)), a.className = "introjs-arrow", r.appendChild(a), r.appendChild(s), p = n.getAttribute("data-step") || "", t._currentStep = parseInt(p, 10), m = t._hintItems[t._currentStep], c.className = "introjs-tooltipReferenceLayer introjs-hintReference", c.setAttribute("data-step", p), q(t, m, c), c.appendChild(r), document.body.appendChild(c), rt(t, m, r, a, !0)), [2];
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
function lt() {
|
|
801
|
+
var t = document.querySelector(".introjs-hintReference");
|
|
802
|
+
if (t && t.parentNode) {
|
|
803
|
+
var e = t.getAttribute("data-step");
|
|
804
|
+
return e ? (t.parentNode.removeChild(t), e) : void 0;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function Rt(t, e) {
|
|
808
|
+
return f(this, void 0, void 0, function() {
|
|
809
|
+
var n, o, i, r, s, a, c, u, l, p;
|
|
810
|
+
return g(this, function(m) {
|
|
811
|
+
switch (m.label) {
|
|
812
|
+
case 0:
|
|
813
|
+
if (t._hintItems = [], t._options.hints && t._options.hints.length > 0)
|
|
814
|
+
for (n = 0, o = t._options.hints; n < o.length; n++)
|
|
815
|
+
i = o[n], typeof (r = yt(i)).element == "string" && (r.element = document.querySelector(r.element)), r.hintPosition = r.hintPosition || t._options.hintPosition, r.hintAnimation = r.hintAnimation || t._options.hintAnimation, r.element !== null && t._hintItems.push(r);
|
|
816
|
+
else {
|
|
817
|
+
if (!(s = Array.from(e.querySelectorAll("*[data-hint]"))) || !s.length)
|
|
818
|
+
return [2, !1];
|
|
819
|
+
for (a = 0, c = s; a < c.length; a++)
|
|
820
|
+
u = c[a], l = u.getAttribute("data-hint-animation"), p = t._options.hintAnimation, l && (p = l === "true"), t._hintItems.push({ element: u, hint: u.getAttribute("data-hint") || "", hintPosition: u.getAttribute("data-hint-position") || t._options.hintPosition, hintAnimation: p, tooltipClass: u.getAttribute("data-tooltip-class") || void 0, position: u.getAttribute("data-position") || t._options.tooltipPosition });
|
|
821
|
+
}
|
|
822
|
+
return [4, ge(t)];
|
|
823
|
+
case 1:
|
|
824
|
+
return m.sent(), L.on(document, "click", lt, t, !1), L.on(window, "resize", ct, t, !0), [2, !0];
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
function ct(t) {
|
|
830
|
+
for (var e = 0, n = t._hintItems; e < n.length; e++) {
|
|
831
|
+
var o = n[e], i = o.hintTargetElement;
|
|
832
|
+
qt(o.hintPosition, o.element, i);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
function Dt(t, e) {
|
|
836
|
+
var n = Array.from(e.querySelectorAll("*[data-intro]")), o = [];
|
|
837
|
+
if (t._options.steps && t._options.steps.length)
|
|
838
|
+
for (var i = 0, r = t._options.steps; i < r.length; i++) {
|
|
839
|
+
var s = yt(m = r[i]);
|
|
840
|
+
if (s.step = o.length + 1, s.title = s.title || "", typeof s.element == "string" && (s.element = document.querySelector(s.element) || void 0), s.element === void 0 || s.element === null) {
|
|
841
|
+
var a = document.querySelector(".introjsFloatingElement");
|
|
842
|
+
a === null && (a = h("div", { className: "introjsFloatingElement" }), document.body.appendChild(a)), s.element = a, s.position = "floating";
|
|
843
|
+
}
|
|
844
|
+
s.position = s.position || t._options.tooltipPosition, s.scrollTo = s.scrollTo || t._options.scrollTo, s.disableInteraction === void 0 && (s.disableInteraction = t._options.disableInteraction), s.element !== null && o.push(s);
|
|
845
|
+
}
|
|
846
|
+
else {
|
|
847
|
+
var c = void 0;
|
|
848
|
+
if (n.length < 1)
|
|
849
|
+
return [];
|
|
850
|
+
for (var u = 0, l = n; u < l.length; u++) {
|
|
851
|
+
var p = l[u];
|
|
852
|
+
if ((!t._options.group || p.getAttribute("data-intro-group") === t._options.group) && p.style.display !== "none") {
|
|
853
|
+
var m = parseInt(p.getAttribute("data-step") || "", 10);
|
|
854
|
+
c = t._options.disableInteraction, p.hasAttribute("data-disable-interaction") && (c = !!p.getAttribute("data-disable-interaction")), m > 0 && (o[m - 1] = { step: m, element: p, title: p.getAttribute("data-title") || "", intro: p.getAttribute("data-intro") || "", tooltipClass: p.getAttribute("data-tooltip-class") || void 0, highlightClass: p.getAttribute("data-highlight-class") || void 0, position: p.getAttribute("data-position") || t._options.tooltipPosition, scrollTo: p.getAttribute("data-scroll-to") || t._options.scrollTo, disableInteraction: c });
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
for (var b = 0, v = 0, C = n; v < C.length; v++)
|
|
858
|
+
if (p = C[v], (!t._options.group || p.getAttribute("data-intro-group") === t._options.group) && p.getAttribute("data-step") === null) {
|
|
859
|
+
for (; o[b] !== void 0; )
|
|
860
|
+
b++;
|
|
861
|
+
c = p.hasAttribute("data-disable-interaction") ? !!p.getAttribute("data-disable-interaction") : t._options.disableInteraction, o[b] = { element: p, title: p.getAttribute("data-title") || "", intro: p.getAttribute("data-intro") || "", step: b + 1, tooltipClass: p.getAttribute("data-tooltip-class") || void 0, highlightClass: p.getAttribute("data-highlight-class") || void 0, position: p.getAttribute("data-position") || t._options.tooltipPosition, scrollTo: p.getAttribute("data-scroll-to") || t._options.scrollTo, disableInteraction: c };
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
for (var w = [], j = 0; j < o.length; j++)
|
|
865
|
+
o[j] && w.push(o[j]);
|
|
866
|
+
return (o = w).sort(function(N, M) {
|
|
867
|
+
return N.step - M.step;
|
|
868
|
+
}), o;
|
|
869
|
+
}
|
|
870
|
+
function Ht(t, e) {
|
|
871
|
+
var n = t._currentStep;
|
|
872
|
+
if (n != null && n != -1) {
|
|
873
|
+
var o = t._introItems[n], i = document.querySelector(".introjs-tooltipReferenceLayer"), r = document.querySelector(".introjs-helperLayer"), s = document.querySelector(".introjs-disableInteraction");
|
|
874
|
+
q(t, o, r), q(t, o, i), q(t, o, s), e && (t._introItems = Dt(t, t._targetElement), function(u, l) {
|
|
875
|
+
if (u._options.showBullets) {
|
|
876
|
+
var p = document.querySelector(".introjs-bullets");
|
|
877
|
+
p && p.parentNode && p.parentNode.replaceChild(xt(u, l), p);
|
|
878
|
+
}
|
|
879
|
+
}(t, o), Bt(i, n, t._introItems.length));
|
|
880
|
+
var a = document.querySelector(".introjs-arrow"), c = document.querySelector(".introjs-tooltip");
|
|
881
|
+
return c && a && rt(t, t._introItems[n], c, a), ct(t), t;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
function Ot(t) {
|
|
885
|
+
Ht(t);
|
|
886
|
+
}
|
|
887
|
+
function X(t, e) {
|
|
888
|
+
if (e === void 0 && (e = !1), t && t.parentElement) {
|
|
889
|
+
var n = t.parentElement;
|
|
890
|
+
e ? (D(t, { opacity: "0" }), window.setTimeout(function() {
|
|
891
|
+
try {
|
|
892
|
+
n.removeChild(t);
|
|
893
|
+
} catch (o) {
|
|
894
|
+
}
|
|
895
|
+
}, 500)) : n.removeChild(t);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
function G(t, e, n) {
|
|
899
|
+
return n === void 0 && (n = !1), f(this, void 0, void 0, function() {
|
|
900
|
+
var o, i, r, s;
|
|
901
|
+
return g(this, function(a) {
|
|
902
|
+
switch (a.label) {
|
|
903
|
+
case 0:
|
|
904
|
+
return o = !0, t._introBeforeExitCallback === void 0 ? [3, 2] : [4, t._introBeforeExitCallback.call(t, e)];
|
|
905
|
+
case 1:
|
|
906
|
+
o = a.sent(), a.label = 2;
|
|
907
|
+
case 2:
|
|
908
|
+
if (!n && o === !1)
|
|
909
|
+
return [2];
|
|
910
|
+
if ((i = Array.from(e.querySelectorAll(".introjs-overlay"))) && i.length)
|
|
911
|
+
for (r = 0, s = i; r < s.length; r++)
|
|
912
|
+
X(s[r]);
|
|
913
|
+
return X(e.querySelector(".introjs-helperLayer"), !0), X(e.querySelector(".introjs-tooltipReferenceLayer")), X(e.querySelector(".introjs-disableInteraction")), X(document.querySelector(".introjsFloatingElement")), Nt(), L.off(window, "keydown", Lt, t, !0), L.off(window, "resize", Ot, t, !0), y(t._introExitCallback) ? [4, t._introExitCallback.call(t)] : [3, 4];
|
|
914
|
+
case 3:
|
|
915
|
+
a.sent(), a.label = 4;
|
|
916
|
+
case 4:
|
|
917
|
+
return t._currentStep = -1, [2];
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
function be(t, e) {
|
|
923
|
+
return f(this, void 0, void 0, function() {
|
|
924
|
+
var n;
|
|
925
|
+
return g(this, function(o) {
|
|
926
|
+
switch (o.label) {
|
|
927
|
+
case 0:
|
|
928
|
+
return t.isActive() ? y(t._introStartCallback) ? [4, t._introStartCallback.call(t, e)] : [3, 2] : [2, !1];
|
|
929
|
+
case 1:
|
|
930
|
+
o.sent(), o.label = 2;
|
|
931
|
+
case 2:
|
|
932
|
+
return (n = Dt(t, e)).length === 0 ? [2, !1] : (t._introItems = n, function(i, r) {
|
|
933
|
+
var s = this, a = h("div", { className: "introjs-overlay" });
|
|
934
|
+
D(a, { top: 0, bottom: 0, left: 0, right: 0, position: "fixed" }), r.appendChild(a), i._options.exitOnOverlayClick === !0 && (D(a, { cursor: "pointer" }), a.onclick = function() {
|
|
935
|
+
return f(s, void 0, void 0, function() {
|
|
936
|
+
return g(this, function(c) {
|
|
937
|
+
switch (c.label) {
|
|
938
|
+
case 0:
|
|
939
|
+
return [4, G(i, r)];
|
|
940
|
+
case 1:
|
|
941
|
+
return c.sent(), [2];
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
});
|
|
945
|
+
});
|
|
946
|
+
}(t, e), [4, F(t)]);
|
|
947
|
+
case 3:
|
|
948
|
+
o.sent(), e.addEventListener, t._options.keyboardNavigation && L.on(window, "keydown", Lt, t, !0), L.on(window, "resize", Ot, t, !0), o.label = 4;
|
|
949
|
+
case 4:
|
|
950
|
+
return [2, !1];
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
function jt(t, e, n) {
|
|
956
|
+
return t[e] = n, t;
|
|
957
|
+
}
|
|
958
|
+
var dt = function() {
|
|
959
|
+
function t(e) {
|
|
960
|
+
this._currentStep = -1, this._introItems = [], this._hintItems = [], this._targetElement = e, this._options = { steps: [], hints: [], isActive: !0, nextLabel: "Next", prevLabel: "Back", skipLabel: "×", doneLabel: "Done", hidePrev: !1, hideNext: !1, nextToDone: !0, tooltipPosition: "bottom", tooltipClass: "", group: "", highlightClass: "", exitOnEsc: !0, exitOnOverlayClick: !0, showStepNumbers: !1, stepNumbersOfLabel: "of", keyboardNavigation: !0, showButtons: !0, showBullets: !0, showProgress: !1, scrollToElement: !0, scrollTo: "element", scrollPadding: 30, overlayOpacity: 0.5, autoPosition: !0, positionPrecedence: ["bottom", "top", "right", "left"], disableInteraction: !1, dontShowAgain: !1, dontShowAgainLabel: "Don't show this again", dontShowAgainCookie: "introjs-dontShowAgain", dontShowAgainCookieDays: 365, helperElementPadding: 10, hintPosition: "top-middle", hintButtonLabel: "Got it", hintShowButton: !0, hintAutoRefreshInterval: 10, hintAnimation: !0, buttonClass: "introjs-button", progressBarAdditionalClass: !1 };
|
|
961
|
+
}
|
|
962
|
+
return t.prototype.isActive = function() {
|
|
963
|
+
return (!this._options.dontShowAgain || (e = Et(this._options.dontShowAgainCookie)) === "" || e !== "true") && this._options.isActive;
|
|
964
|
+
var e;
|
|
965
|
+
}, t.prototype.clone = function() {
|
|
966
|
+
return new t(this._targetElement);
|
|
967
|
+
}, t.prototype.setOption = function(e, n) {
|
|
968
|
+
return this._options = jt(this._options, e, n), this;
|
|
969
|
+
}, t.prototype.setOptions = function(e) {
|
|
970
|
+
return this._options = function(n, o) {
|
|
971
|
+
for (var i = 0, r = Object.entries(o); i < r.length; i++) {
|
|
972
|
+
var s = r[i];
|
|
973
|
+
n = jt(n, s[0], s[1]);
|
|
974
|
+
}
|
|
975
|
+
return n;
|
|
976
|
+
}(this._options, e), this;
|
|
977
|
+
}, t.prototype.start = function() {
|
|
978
|
+
return f(this, void 0, void 0, function() {
|
|
979
|
+
return g(this, function(e) {
|
|
980
|
+
switch (e.label) {
|
|
981
|
+
case 0:
|
|
982
|
+
return [4, be(this, this._targetElement)];
|
|
983
|
+
case 1:
|
|
984
|
+
return e.sent(), [2, this];
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
});
|
|
988
|
+
}, t.prototype.goToStep = function(e) {
|
|
989
|
+
return f(this, void 0, void 0, function() {
|
|
990
|
+
return g(this, function(n) {
|
|
991
|
+
switch (n.label) {
|
|
992
|
+
case 0:
|
|
993
|
+
return [4, de(this, e)];
|
|
994
|
+
case 1:
|
|
995
|
+
return n.sent(), [2, this];
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
});
|
|
999
|
+
}, t.prototype.addStep = function(e) {
|
|
1000
|
+
return this._options.steps || (this._options.steps = []), this._options.steps.push(e), this;
|
|
1001
|
+
}, t.prototype.addSteps = function(e) {
|
|
1002
|
+
if (!e.length)
|
|
1003
|
+
return this;
|
|
1004
|
+
for (var n = 0; n < e.length; n++)
|
|
1005
|
+
this.addStep(e[n]);
|
|
1006
|
+
return this;
|
|
1007
|
+
}, t.prototype.goToStepNumber = function(e) {
|
|
1008
|
+
return f(this, void 0, void 0, function() {
|
|
1009
|
+
return g(this, function(n) {
|
|
1010
|
+
switch (n.label) {
|
|
1011
|
+
case 0:
|
|
1012
|
+
return [4, he(this, e)];
|
|
1013
|
+
case 1:
|
|
1014
|
+
return n.sent(), [2, this];
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
});
|
|
1018
|
+
}, t.prototype.nextStep = function() {
|
|
1019
|
+
return f(this, void 0, void 0, function() {
|
|
1020
|
+
return g(this, function(e) {
|
|
1021
|
+
switch (e.label) {
|
|
1022
|
+
case 0:
|
|
1023
|
+
return [4, F(this)];
|
|
1024
|
+
case 1:
|
|
1025
|
+
return e.sent(), [2, this];
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
});
|
|
1029
|
+
}, t.prototype.previousStep = function() {
|
|
1030
|
+
return f(this, void 0, void 0, function() {
|
|
1031
|
+
return g(this, function(e) {
|
|
1032
|
+
switch (e.label) {
|
|
1033
|
+
case 0:
|
|
1034
|
+
return [4, st(this)];
|
|
1035
|
+
case 1:
|
|
1036
|
+
return e.sent(), [2, this];
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
});
|
|
1040
|
+
}, t.prototype.currentStep = function() {
|
|
1041
|
+
return this._currentStep;
|
|
1042
|
+
}, t.prototype.exit = function(e) {
|
|
1043
|
+
return f(this, void 0, void 0, function() {
|
|
1044
|
+
return g(this, function(n) {
|
|
1045
|
+
switch (n.label) {
|
|
1046
|
+
case 0:
|
|
1047
|
+
return [4, G(this, this._targetElement, e)];
|
|
1048
|
+
case 1:
|
|
1049
|
+
return n.sent(), [2, this];
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
});
|
|
1053
|
+
}, t.prototype.refresh = function(e) {
|
|
1054
|
+
return Ht(this, e), this;
|
|
1055
|
+
}, t.prototype.setDontShowAgain = function(e) {
|
|
1056
|
+
return ue(this, e), this;
|
|
1057
|
+
}, t.prototype.onbeforechange = function(e) {
|
|
1058
|
+
if (!y(e))
|
|
1059
|
+
throw new Error("Provided callback for onbeforechange was not a function");
|
|
1060
|
+
return this._introBeforeChangeCallback = e, this;
|
|
1061
|
+
}, t.prototype.onchange = function(e) {
|
|
1062
|
+
if (!y(e))
|
|
1063
|
+
throw new Error("Provided callback for onchange was not a function.");
|
|
1064
|
+
return this._introChangeCallback = e, this;
|
|
1065
|
+
}, t.prototype.onafterchange = function(e) {
|
|
1066
|
+
if (!y(e))
|
|
1067
|
+
throw new Error("Provided callback for onafterchange was not a function");
|
|
1068
|
+
return this._introAfterChangeCallback = e, this;
|
|
1069
|
+
}, t.prototype.oncomplete = function(e) {
|
|
1070
|
+
if (!y(e))
|
|
1071
|
+
throw new Error("Provided callback for oncomplete was not a function.");
|
|
1072
|
+
return this._introCompleteCallback = e, this;
|
|
1073
|
+
}, t.prototype.onhintsadded = function(e) {
|
|
1074
|
+
if (!y(e))
|
|
1075
|
+
throw new Error("Provided callback for onhintsadded was not a function.");
|
|
1076
|
+
return this._hintsAddedCallback = e, this;
|
|
1077
|
+
}, t.prototype.onhintclick = function(e) {
|
|
1078
|
+
if (!y(e))
|
|
1079
|
+
throw new Error("Provided callback for onhintclick was not a function.");
|
|
1080
|
+
return this._hintClickCallback = e, this;
|
|
1081
|
+
}, t.prototype.onhintclose = function(e) {
|
|
1082
|
+
if (!y(e))
|
|
1083
|
+
throw new Error("Provided callback for onhintclose was not a function.");
|
|
1084
|
+
return this._hintCloseCallback = e, this;
|
|
1085
|
+
}, t.prototype.onstart = function(e) {
|
|
1086
|
+
if (!y(e))
|
|
1087
|
+
throw new Error("Provided callback for onstart was not a function.");
|
|
1088
|
+
return this._introStartCallback = e, this;
|
|
1089
|
+
}, t.prototype.onexit = function(e) {
|
|
1090
|
+
if (!y(e))
|
|
1091
|
+
throw new Error("Provided callback for onexit was not a function.");
|
|
1092
|
+
return this._introExitCallback = e, this;
|
|
1093
|
+
}, t.prototype.onskip = function(e) {
|
|
1094
|
+
if (!y(e))
|
|
1095
|
+
throw new Error("Provided callback for onskip was not a function.");
|
|
1096
|
+
return this._introSkipCallback = e, this;
|
|
1097
|
+
}, t.prototype.onbeforeexit = function(e) {
|
|
1098
|
+
if (!y(e))
|
|
1099
|
+
throw new Error("Provided callback for onbeforeexit was not a function.");
|
|
1100
|
+
return this._introBeforeExitCallback = e, this;
|
|
1101
|
+
}, t.prototype.addHints = function() {
|
|
1102
|
+
return f(this, void 0, void 0, function() {
|
|
1103
|
+
return g(this, function(e) {
|
|
1104
|
+
switch (e.label) {
|
|
1105
|
+
case 0:
|
|
1106
|
+
return [4, Rt(this, this._targetElement)];
|
|
1107
|
+
case 1:
|
|
1108
|
+
return e.sent(), [2, this];
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
});
|
|
1112
|
+
}, t.prototype.hideHint = function(e) {
|
|
1113
|
+
return f(this, void 0, void 0, function() {
|
|
1114
|
+
return g(this, function(n) {
|
|
1115
|
+
switch (n.label) {
|
|
1116
|
+
case 0:
|
|
1117
|
+
return [4, _t(this, e)];
|
|
1118
|
+
case 1:
|
|
1119
|
+
return n.sent(), [2, this];
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
});
|
|
1123
|
+
}, t.prototype.hideHints = function() {
|
|
1124
|
+
return f(this, void 0, void 0, function() {
|
|
1125
|
+
return g(this, function(e) {
|
|
1126
|
+
switch (e.label) {
|
|
1127
|
+
case 0:
|
|
1128
|
+
return [4, me(this)];
|
|
1129
|
+
case 1:
|
|
1130
|
+
return e.sent(), [2, this];
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
});
|
|
1134
|
+
}, t.prototype.showHint = function(e) {
|
|
1135
|
+
return Mt(e), this;
|
|
1136
|
+
}, t.prototype.showHints = function() {
|
|
1137
|
+
return f(this, void 0, void 0, function() {
|
|
1138
|
+
return g(this, function(e) {
|
|
1139
|
+
switch (e.label) {
|
|
1140
|
+
case 0:
|
|
1141
|
+
return [4, fe(this)];
|
|
1142
|
+
case 1:
|
|
1143
|
+
return e.sent(), [2, this];
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
});
|
|
1147
|
+
}, t.prototype.removeHints = function() {
|
|
1148
|
+
return function(e) {
|
|
1149
|
+
for (var n = 0, o = Y(".introjs-hint"); n < o.length; n++) {
|
|
1150
|
+
var i = o[n].getAttribute("data-step");
|
|
1151
|
+
i && At(parseInt(i, 10));
|
|
1152
|
+
}
|
|
1153
|
+
L.off(document, "click", lt, e, !1), L.off(window, "resize", ct, e, !0), e._hintsAutoRefreshFunction && L.off(window, "scroll", e._hintsAutoRefreshFunction, e, !0);
|
|
1154
|
+
}(this), this;
|
|
1155
|
+
}, t.prototype.removeHint = function(e) {
|
|
1156
|
+
return At(e), this;
|
|
1157
|
+
}, t.prototype.showHintDialog = function(e) {
|
|
1158
|
+
return f(this, void 0, void 0, function() {
|
|
1159
|
+
return g(this, function(n) {
|
|
1160
|
+
switch (n.label) {
|
|
1161
|
+
case 0:
|
|
1162
|
+
return [4, Pt(this, e)];
|
|
1163
|
+
case 1:
|
|
1164
|
+
return n.sent(), [2, this];
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
}, t;
|
|
1169
|
+
}(), mt = function t(e) {
|
|
1170
|
+
var n;
|
|
1171
|
+
if (it(e) === "object")
|
|
1172
|
+
n = new dt(e);
|
|
1173
|
+
else if (typeof e == "string") {
|
|
1174
|
+
var o = document.querySelector(e);
|
|
1175
|
+
if (!o)
|
|
1176
|
+
throw new Error("There is no element with given selector.");
|
|
1177
|
+
n = new dt(o);
|
|
1178
|
+
} else
|
|
1179
|
+
n = new dt(document.body);
|
|
1180
|
+
return t.instances[ht(n, "introjs-instance")] = n, n;
|
|
1181
|
+
};
|
|
1182
|
+
mt.version = "7.2.0", mt.instances = {};
|
|
1183
|
+
const ve = () => {
|
|
1184
|
+
const { prefixVar: t } = le(""), e = J(`${t}-online-newAddBtn`), n = J(`${t}-online-customBtn`), o = J(`${t}-online-enhanceJsBtn`), i = J(`${t}-online-enhanceSqlBtn`), r = J(`${t}-online-enhanceJavaBtn`), s = J(`${t}-online-exportDbBtn`), a = J(`${t}-online-codeGenerator`), c = `${t}-online-guide`, u = () => {
|
|
1185
|
+
let l = mt();
|
|
1186
|
+
l.setOptions({
|
|
1187
|
+
nextLabel: "下一步",
|
|
1188
|
+
prevLabel: "上一步",
|
|
1189
|
+
//skipLabel: '跳过',
|
|
1190
|
+
doneLabel: "完成",
|
|
1191
|
+
steps: [
|
|
1192
|
+
{
|
|
1193
|
+
title: "第一步",
|
|
1194
|
+
element: document.querySelector(`.${e.value}`),
|
|
1195
|
+
intro: "点击<strong>新增</strong>按钮,新建一个表。"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
title: "第二步",
|
|
1199
|
+
intro: '在列表中找到刚才新建数据,在操作列点击<strong>"更多"</strong>,选择<strong>"同步数据库"</strong>。'
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
title: "第三步",
|
|
1203
|
+
intro: '在列表中找到刚才新建数据,在操作列点击<strong>"更多"</strong>,选择<strong>"功能测试"</strong>。'
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
title: "代码生成",
|
|
1207
|
+
element: document.querySelector(`.${a.value}`),
|
|
1208
|
+
intro: "选中一条记录,通过代码生成可将已配置好的表单,一键生成前后端代码,复杂需求可在此基础上进行二次开发。"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
title: "自定义按钮",
|
|
1212
|
+
element: document.querySelector(`.${n.value}`),
|
|
1213
|
+
intro: '选中一条记录,点击自定义按钮,配置按钮相关信息即可在当前记录的<strong>"功能测试"</strong>页面新增一个按钮'
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
title: "JS强增",
|
|
1217
|
+
element: document.querySelector(`.${o.value}`),
|
|
1218
|
+
intro: '选中一条记录,通过js增强可为<strong>"自定义按钮"</strong>添加不同操作,可操作列表和表单数据等,也可以添加表单前置事件。'
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
title: "SQL增强",
|
|
1222
|
+
element: document.querySelector(`.${i.value}`),
|
|
1223
|
+
intro: "选中一条记录,通过增强SQL,可以关联修改业务数据。"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
title: "java增强",
|
|
1227
|
+
element: document.querySelector(`.${r.value}`),
|
|
1228
|
+
intro: "选中一条记录,通过Java增强可在表单的增加、修改、和删除数据时实现额外的功能,类似spring中的AOP切面编程。"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
title: "导入数据库表",
|
|
1232
|
+
element: document.querySelector(`.${s.value}`),
|
|
1233
|
+
intro: "可将已有数据库中的表,直接导入生成表单。"
|
|
1234
|
+
}
|
|
1235
|
+
]
|
|
1236
|
+
}), l.start();
|
|
1237
|
+
};
|
|
1238
|
+
return $t(() => {
|
|
1239
|
+
localStorage.getItem(c) || setTimeout(() => {
|
|
1240
|
+
u(), localStorage.setItem(c, "1");
|
|
1241
|
+
}, 2e3);
|
|
1242
|
+
}), {
|
|
1243
|
+
newAddBtn: e,
|
|
1244
|
+
customBtn: n,
|
|
1245
|
+
enhanceJsBtn: o,
|
|
1246
|
+
enhanceSqlBtn: i,
|
|
1247
|
+
exportDbBtn: s,
|
|
1248
|
+
enhanceJavaBtn: r,
|
|
1249
|
+
codeGeneratorBtn: a
|
|
1250
|
+
};
|
|
1251
|
+
}, ye = Ft({
|
|
1252
|
+
name: "CgformIndex",
|
|
1253
|
+
components: {
|
|
1254
|
+
BasicTable: Wt,
|
|
1255
|
+
TableAction: Yt,
|
|
1256
|
+
CgformModal: Kt,
|
|
1257
|
+
DbToOnlineModal: Xt,
|
|
1258
|
+
CodeGeneratorModal: Qt,
|
|
1259
|
+
CustomButtonList: Ut,
|
|
1260
|
+
EnhanceJsModal: Zt,
|
|
1261
|
+
EnhanceJavaModal: te,
|
|
1262
|
+
EnhanceSqlModal: ee,
|
|
1263
|
+
AuthManagerDrawer: ne,
|
|
1264
|
+
AuthSetterModal: oe
|
|
1265
|
+
},
|
|
1266
|
+
setup() {
|
|
1267
|
+
const {
|
|
1268
|
+
pageContext: t,
|
|
1269
|
+
onAdd: e,
|
|
1270
|
+
onSuccess: n,
|
|
1271
|
+
onDeleteBatch: o,
|
|
1272
|
+
onImportDbTable: i,
|
|
1273
|
+
onGenerateCode: r,
|
|
1274
|
+
onShowCustomButton: s,
|
|
1275
|
+
onShowEnhanceJs: a,
|
|
1276
|
+
onShowEnhanceSql: c,
|
|
1277
|
+
onShowEnhanceJava: u,
|
|
1278
|
+
getTableAction: l,
|
|
1279
|
+
getDropDownAction: p,
|
|
1280
|
+
registerAuthManagerDrawer: m,
|
|
1281
|
+
registerAuthSetterModal: b,
|
|
1282
|
+
registerCustomButtonModal: v,
|
|
1283
|
+
registerEnhanceJsModal: C,
|
|
1284
|
+
registerEnhanceSqlModal: w,
|
|
1285
|
+
registerEnhanceJavaModal: j,
|
|
1286
|
+
registerCgformModal: N,
|
|
1287
|
+
registerDbToOnlineModal: M,
|
|
1288
|
+
registerCodeGeneratorModal: T
|
|
1289
|
+
} = ie({
|
|
1290
|
+
pageType: re.normal,
|
|
1291
|
+
designScope: "online-cgform-list",
|
|
1292
|
+
columns: se,
|
|
1293
|
+
formSchemas: ae
|
|
1294
|
+
}), { prefixCls: P, tableContext: x } = t, [U, { reload: V }, { rowSelection: z, selectedRowKeys: K }] = x, {
|
|
1295
|
+
newAddBtn: H,
|
|
1296
|
+
customBtn: d,
|
|
1297
|
+
enhanceJsBtn: S,
|
|
1298
|
+
enhanceSqlBtn: k,
|
|
1299
|
+
exportDbBtn: O,
|
|
1300
|
+
enhanceJavaBtn: Z,
|
|
1301
|
+
codeGeneratorBtn: Jt
|
|
1302
|
+
} = ve();
|
|
1303
|
+
return {
|
|
1304
|
+
prefixCls: P,
|
|
1305
|
+
reload: V,
|
|
1306
|
+
rowSelection: z,
|
|
1307
|
+
selectedRowKeys: K,
|
|
1308
|
+
onAdd: e,
|
|
1309
|
+
onSuccess: n,
|
|
1310
|
+
onDeleteBatch: o,
|
|
1311
|
+
onImportDbTable: i,
|
|
1312
|
+
onGenerateCode: r,
|
|
1313
|
+
onShowCustomButton: s,
|
|
1314
|
+
onShowEnhanceJs: a,
|
|
1315
|
+
onShowEnhanceSql: c,
|
|
1316
|
+
onShowEnhanceJava: u,
|
|
1317
|
+
getTableAction: l,
|
|
1318
|
+
getDropDownAction: p,
|
|
1319
|
+
registerAuthManagerDrawer: m,
|
|
1320
|
+
registerAuthSetterModal: b,
|
|
1321
|
+
registerCustomButtonModal: v,
|
|
1322
|
+
registerEnhanceJsModal: C,
|
|
1323
|
+
registerEnhanceSqlModal: w,
|
|
1324
|
+
registerEnhanceJavaModal: j,
|
|
1325
|
+
registerTable: U,
|
|
1326
|
+
registerCgformModal: N,
|
|
1327
|
+
registerDbToOnlineModal: M,
|
|
1328
|
+
registerCodeGeneratorModal: T,
|
|
1329
|
+
newAddBtn: H,
|
|
1330
|
+
customBtn: d,
|
|
1331
|
+
enhanceJsBtn: S,
|
|
1332
|
+
enhanceSqlBtn: k,
|
|
1333
|
+
enhanceJavaBtn: Z,
|
|
1334
|
+
exportDbBtn: O,
|
|
1335
|
+
codeGeneratorBtn: Jt
|
|
1336
|
+
};
|
|
1337
|
+
}
|
|
1338
|
+
}), _e = /* @__PURE__ */ ft("span", null, "删除", -1), we = /* @__PURE__ */ ft("span", null, "批量操作", -1), Ce = {
|
|
1339
|
+
key: 0,
|
|
1340
|
+
style: { color: "limegreen" }
|
|
1341
|
+
}, Se = {
|
|
1342
|
+
key: 1,
|
|
1343
|
+
style: { color: "red" }
|
|
1344
|
+
};
|
|
1345
|
+
function ke(t, e, n, o, i, r) {
|
|
1346
|
+
const s = A("a-button"), a = A("a-icon"), c = A("a-menu-item"), u = A("a-menu"), l = A("a-dropdown"), p = A("TableAction"), m = A("BasicTable"), b = A("CgformModal"), v = A("DbToOnlineModal"), C = A("CodeGeneratorModal"), w = A("CustomButtonList"), j = A("EnhanceJsModal"), N = A("EnhanceJavaModal"), M = A("EnhanceSqlModal"), T = A("AuthManagerDrawer"), P = A("AuthSetterModal");
|
|
1347
|
+
return tt(), ut(Gt, null, [
|
|
1348
|
+
ft("div", {
|
|
1349
|
+
class: R(t.prefixCls)
|
|
1350
|
+
}, [
|
|
1351
|
+
_(m, Vt({
|
|
1352
|
+
onRegister: t.registerTable,
|
|
1353
|
+
rowSelection: t.rowSelection
|
|
1354
|
+
}, t.$attrs), {
|
|
1355
|
+
tableTitle: E(() => [
|
|
1356
|
+
_(s, {
|
|
1357
|
+
class: R(t.newAddBtn),
|
|
1358
|
+
onClick: t.onAdd,
|
|
1359
|
+
type: "primary",
|
|
1360
|
+
preIcon: "ant-design:plus"
|
|
1361
|
+
}, {
|
|
1362
|
+
default: E(() => [
|
|
1363
|
+
$("新增")
|
|
1364
|
+
]),
|
|
1365
|
+
_: 1
|
|
1366
|
+
}, 8, ["class", "onClick"]),
|
|
1367
|
+
_(s, {
|
|
1368
|
+
class: R(t.customBtn),
|
|
1369
|
+
onClick: t.onShowCustomButton,
|
|
1370
|
+
type: "primary",
|
|
1371
|
+
preIcon: "ant-design:highlight"
|
|
1372
|
+
}, {
|
|
1373
|
+
default: E(() => [
|
|
1374
|
+
$("自定义按钮")
|
|
1375
|
+
]),
|
|
1376
|
+
_: 1
|
|
1377
|
+
}, 8, ["class", "onClick"]),
|
|
1378
|
+
_(s, {
|
|
1379
|
+
class: R(t.enhanceJsBtn),
|
|
1380
|
+
onClick: t.onShowEnhanceJs,
|
|
1381
|
+
type: "primary",
|
|
1382
|
+
preIcon: "ant-design:strikethrough"
|
|
1383
|
+
}, {
|
|
1384
|
+
default: E(() => [
|
|
1385
|
+
$("JS增强")
|
|
1386
|
+
]),
|
|
1387
|
+
_: 1
|
|
1388
|
+
}, 8, ["class", "onClick"]),
|
|
1389
|
+
_(s, {
|
|
1390
|
+
class: R(t.enhanceSqlBtn),
|
|
1391
|
+
onClick: t.onShowEnhanceSql,
|
|
1392
|
+
type: "primary",
|
|
1393
|
+
preIcon: "ant-design:filter"
|
|
1394
|
+
}, {
|
|
1395
|
+
default: E(() => [
|
|
1396
|
+
$(" SQL增强 ")
|
|
1397
|
+
]),
|
|
1398
|
+
_: 1
|
|
1399
|
+
}, 8, ["class", "onClick"]),
|
|
1400
|
+
_(s, {
|
|
1401
|
+
class: R(t.enhanceJavaBtn),
|
|
1402
|
+
onClick: t.onShowEnhanceJava,
|
|
1403
|
+
type: "primary",
|
|
1404
|
+
preIcon: "ant-design:tool"
|
|
1405
|
+
}, {
|
|
1406
|
+
default: E(() => [
|
|
1407
|
+
$("JAVA增强")
|
|
1408
|
+
]),
|
|
1409
|
+
_: 1
|
|
1410
|
+
}, 8, ["class", "onClick"]),
|
|
1411
|
+
_(s, {
|
|
1412
|
+
class: R(t.exportDbBtn),
|
|
1413
|
+
onClick: t.onImportDbTable,
|
|
1414
|
+
type: "primary",
|
|
1415
|
+
preIcon: "ant-design:database"
|
|
1416
|
+
}, {
|
|
1417
|
+
default: E(() => [
|
|
1418
|
+
$("导入数据库表")
|
|
1419
|
+
]),
|
|
1420
|
+
_: 1
|
|
1421
|
+
}, 8, ["class", "onClick"]),
|
|
1422
|
+
_(s, {
|
|
1423
|
+
class: R(t.codeGeneratorBtn),
|
|
1424
|
+
onClick: t.onGenerateCode,
|
|
1425
|
+
type: "primary",
|
|
1426
|
+
preIcon: "bx:bx-code-alt"
|
|
1427
|
+
}, {
|
|
1428
|
+
default: E(() => [
|
|
1429
|
+
$(" 代码生成 ")
|
|
1430
|
+
]),
|
|
1431
|
+
_: 1
|
|
1432
|
+
}, 8, ["class", "onClick"]),
|
|
1433
|
+
t.selectedRowKeys.length > 0 ? (tt(), zt(l, { key: 0 }, {
|
|
1434
|
+
overlay: E(() => [
|
|
1435
|
+
_(u, null, {
|
|
1436
|
+
default: E(() => [
|
|
1437
|
+
_(c, {
|
|
1438
|
+
key: "1",
|
|
1439
|
+
onClick: t.onDeleteBatch
|
|
1440
|
+
}, {
|
|
1441
|
+
default: E(() => [
|
|
1442
|
+
_(a, { type: "delete" }),
|
|
1443
|
+
_e
|
|
1444
|
+
]),
|
|
1445
|
+
_: 1
|
|
1446
|
+
}, 8, ["onClick"])
|
|
1447
|
+
]),
|
|
1448
|
+
_: 1
|
|
1449
|
+
})
|
|
1450
|
+
]),
|
|
1451
|
+
default: E(() => [
|
|
1452
|
+
_(s, null, {
|
|
1453
|
+
default: E(() => [
|
|
1454
|
+
we,
|
|
1455
|
+
_(a, { type: "down" })
|
|
1456
|
+
]),
|
|
1457
|
+
_: 1
|
|
1458
|
+
})
|
|
1459
|
+
]),
|
|
1460
|
+
_: 1
|
|
1461
|
+
})) : pt("", !0)
|
|
1462
|
+
]),
|
|
1463
|
+
dbSync: E(({ text: x }) => [
|
|
1464
|
+
x === "Y" ? (tt(), ut("span", Ce, "已同步")) : pt("", !0),
|
|
1465
|
+
x === "N" ? (tt(), ut("span", Se, "未同步")) : pt("", !0)
|
|
1466
|
+
]),
|
|
1467
|
+
action: E(({ record: x }) => [
|
|
1468
|
+
_(p, {
|
|
1469
|
+
actions: t.getTableAction(x),
|
|
1470
|
+
dropDownActions: t.getDropDownAction(x)
|
|
1471
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
1472
|
+
]),
|
|
1473
|
+
_: 1
|
|
1474
|
+
}, 16, ["onRegister", "rowSelection"])
|
|
1475
|
+
], 2),
|
|
1476
|
+
_(b, {
|
|
1477
|
+
onRegister: t.registerCgformModal,
|
|
1478
|
+
onSuccess: t.onSuccess
|
|
1479
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
1480
|
+
_(v, {
|
|
1481
|
+
onRegister: t.registerDbToOnlineModal,
|
|
1482
|
+
onSuccess: t.onSuccess
|
|
1483
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
1484
|
+
_(C, { onRegister: t.registerCodeGeneratorModal }, null, 8, ["onRegister"]),
|
|
1485
|
+
_(w, { onRegister: t.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
1486
|
+
_(j, { onRegister: t.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
1487
|
+
_(N, { onRegister: t.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
1488
|
+
_(M, { onRegister: t.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
1489
|
+
_(T, { onRegister: t.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
1490
|
+
_(P, { onRegister: t.registerAuthSetterModal }, null, 8, ["onRegister"])
|
|
1491
|
+
], 64);
|
|
1492
|
+
}
|
|
1493
|
+
const ho = /* @__PURE__ */ ce(ye, [["render", ke]]);
|
|
1494
|
+
export {
|
|
1495
|
+
ho as default
|
|
1496
|
+
};
|