@jeecg/online 3.5.3-beta3 → 3.6.0-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-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
package/clipboard.js
DELETED
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
var clipboard = { exports: {} };
|
|
3
|
-
/*!
|
|
4
|
-
* clipboard.js v2.0.11
|
|
5
|
-
* https://clipboardjs.com/
|
|
6
|
-
*
|
|
7
|
-
* Licensed MIT © Zeno Rocha
|
|
8
|
-
*/
|
|
9
|
-
(function(module, exports) {
|
|
10
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
|
-
module.exports = factory();
|
|
12
|
-
})(commonjsGlobal, function() {
|
|
13
|
-
return function() {
|
|
14
|
-
var __webpack_modules__ = {
|
|
15
|
-
686: function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
|
|
16
|
-
__webpack_require__2.d(__webpack_exports__, {
|
|
17
|
-
"default": function() {
|
|
18
|
-
return clipboard2;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
var tiny_emitter = __webpack_require__2(279);
|
|
22
|
-
var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
|
|
23
|
-
var listen = __webpack_require__2(370);
|
|
24
|
-
var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
|
|
25
|
-
var src_select = __webpack_require__2(817);
|
|
26
|
-
var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
|
|
27
|
-
function command(type) {
|
|
28
|
-
try {
|
|
29
|
-
return document.execCommand(type);
|
|
30
|
-
} catch (err) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
var ClipboardActionCut = function ClipboardActionCut2(target) {
|
|
35
|
-
var selectedText = select_default()(target);
|
|
36
|
-
command("cut");
|
|
37
|
-
return selectedText;
|
|
38
|
-
};
|
|
39
|
-
var actions_cut = ClipboardActionCut;
|
|
40
|
-
function createFakeElement(value) {
|
|
41
|
-
var isRTL = document.documentElement.getAttribute("dir") === "rtl";
|
|
42
|
-
var fakeElement = document.createElement("textarea");
|
|
43
|
-
fakeElement.style.fontSize = "12pt";
|
|
44
|
-
fakeElement.style.border = "0";
|
|
45
|
-
fakeElement.style.padding = "0";
|
|
46
|
-
fakeElement.style.margin = "0";
|
|
47
|
-
fakeElement.style.position = "absolute";
|
|
48
|
-
fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
|
|
49
|
-
var yPosition = window.pageYOffset || document.documentElement.scrollTop;
|
|
50
|
-
fakeElement.style.top = "".concat(yPosition, "px");
|
|
51
|
-
fakeElement.setAttribute("readonly", "");
|
|
52
|
-
fakeElement.value = value;
|
|
53
|
-
return fakeElement;
|
|
54
|
-
}
|
|
55
|
-
var fakeCopyAction = function fakeCopyAction2(value, options) {
|
|
56
|
-
var fakeElement = createFakeElement(value);
|
|
57
|
-
options.container.appendChild(fakeElement);
|
|
58
|
-
var selectedText = select_default()(fakeElement);
|
|
59
|
-
command("copy");
|
|
60
|
-
fakeElement.remove();
|
|
61
|
-
return selectedText;
|
|
62
|
-
};
|
|
63
|
-
var ClipboardActionCopy = function ClipboardActionCopy2(target) {
|
|
64
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
65
|
-
container: document.body
|
|
66
|
-
};
|
|
67
|
-
var selectedText = "";
|
|
68
|
-
if (typeof target === "string") {
|
|
69
|
-
selectedText = fakeCopyAction(target, options);
|
|
70
|
-
} else if (target instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(target === null || target === void 0 ? void 0 : target.type)) {
|
|
71
|
-
selectedText = fakeCopyAction(target.value, options);
|
|
72
|
-
} else {
|
|
73
|
-
selectedText = select_default()(target);
|
|
74
|
-
command("copy");
|
|
75
|
-
}
|
|
76
|
-
return selectedText;
|
|
77
|
-
};
|
|
78
|
-
var actions_copy = ClipboardActionCopy;
|
|
79
|
-
function _typeof(obj) {
|
|
80
|
-
"@babel/helpers - typeof";
|
|
81
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
82
|
-
_typeof = function _typeof2(obj2) {
|
|
83
|
-
return typeof obj2;
|
|
84
|
-
};
|
|
85
|
-
} else {
|
|
86
|
-
_typeof = function _typeof2(obj2) {
|
|
87
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
return _typeof(obj);
|
|
91
|
-
}
|
|
92
|
-
var ClipboardActionDefault = function ClipboardActionDefault2() {
|
|
93
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
94
|
-
var _options$action = options.action, action = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text = options.text;
|
|
95
|
-
if (action !== "copy" && action !== "cut") {
|
|
96
|
-
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
97
|
-
}
|
|
98
|
-
if (target !== void 0) {
|
|
99
|
-
if (target && _typeof(target) === "object" && target.nodeType === 1) {
|
|
100
|
-
if (action === "copy" && target.hasAttribute("disabled")) {
|
|
101
|
-
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
102
|
-
}
|
|
103
|
-
if (action === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
|
|
104
|
-
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
105
|
-
}
|
|
106
|
-
} else {
|
|
107
|
-
throw new Error('Invalid "target" value, use a valid Element');
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (text) {
|
|
111
|
-
return actions_copy(text, {
|
|
112
|
-
container
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
if (target) {
|
|
116
|
-
return action === "cut" ? actions_cut(target) : actions_copy(target, {
|
|
117
|
-
container
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
var actions_default = ClipboardActionDefault;
|
|
122
|
-
function clipboard_typeof(obj) {
|
|
123
|
-
"@babel/helpers - typeof";
|
|
124
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
125
|
-
clipboard_typeof = function _typeof2(obj2) {
|
|
126
|
-
return typeof obj2;
|
|
127
|
-
};
|
|
128
|
-
} else {
|
|
129
|
-
clipboard_typeof = function _typeof2(obj2) {
|
|
130
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
return clipboard_typeof(obj);
|
|
134
|
-
}
|
|
135
|
-
function _classCallCheck(instance, Constructor) {
|
|
136
|
-
if (!(instance instanceof Constructor)) {
|
|
137
|
-
throw new TypeError("Cannot call a class as a function");
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function _defineProperties(target, props) {
|
|
141
|
-
for (var i = 0; i < props.length; i++) {
|
|
142
|
-
var descriptor = props[i];
|
|
143
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
144
|
-
descriptor.configurable = true;
|
|
145
|
-
if ("value" in descriptor)
|
|
146
|
-
descriptor.writable = true;
|
|
147
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
151
|
-
if (protoProps)
|
|
152
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
153
|
-
if (staticProps)
|
|
154
|
-
_defineProperties(Constructor, staticProps);
|
|
155
|
-
return Constructor;
|
|
156
|
-
}
|
|
157
|
-
function _inherits(subClass, superClass) {
|
|
158
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
159
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
160
|
-
}
|
|
161
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
162
|
-
if (superClass)
|
|
163
|
-
_setPrototypeOf(subClass, superClass);
|
|
164
|
-
}
|
|
165
|
-
function _setPrototypeOf(o, p) {
|
|
166
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
167
|
-
o2.__proto__ = p2;
|
|
168
|
-
return o2;
|
|
169
|
-
};
|
|
170
|
-
return _setPrototypeOf(o, p);
|
|
171
|
-
}
|
|
172
|
-
function _createSuper(Derived) {
|
|
173
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
174
|
-
return function _createSuperInternal() {
|
|
175
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
176
|
-
if (hasNativeReflectConstruct) {
|
|
177
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
178
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
179
|
-
} else {
|
|
180
|
-
result = Super.apply(this, arguments);
|
|
181
|
-
}
|
|
182
|
-
return _possibleConstructorReturn(this, result);
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
function _possibleConstructorReturn(self, call) {
|
|
186
|
-
if (call && (clipboard_typeof(call) === "object" || typeof call === "function")) {
|
|
187
|
-
return call;
|
|
188
|
-
}
|
|
189
|
-
return _assertThisInitialized(self);
|
|
190
|
-
}
|
|
191
|
-
function _assertThisInitialized(self) {
|
|
192
|
-
if (self === void 0) {
|
|
193
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
194
|
-
}
|
|
195
|
-
return self;
|
|
196
|
-
}
|
|
197
|
-
function _isNativeReflectConstruct() {
|
|
198
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
199
|
-
return false;
|
|
200
|
-
if (Reflect.construct.sham)
|
|
201
|
-
return false;
|
|
202
|
-
if (typeof Proxy === "function")
|
|
203
|
-
return true;
|
|
204
|
-
try {
|
|
205
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
206
|
-
}));
|
|
207
|
-
return true;
|
|
208
|
-
} catch (e) {
|
|
209
|
-
return false;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
function _getPrototypeOf(o) {
|
|
213
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
214
|
-
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
215
|
-
};
|
|
216
|
-
return _getPrototypeOf(o);
|
|
217
|
-
}
|
|
218
|
-
function getAttributeValue(suffix, element) {
|
|
219
|
-
var attribute = "data-clipboard-".concat(suffix);
|
|
220
|
-
if (!element.hasAttribute(attribute)) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
return element.getAttribute(attribute);
|
|
224
|
-
}
|
|
225
|
-
var Clipboard2 = /* @__PURE__ */ function(_Emitter) {
|
|
226
|
-
_inherits(Clipboard3, _Emitter);
|
|
227
|
-
var _super = _createSuper(Clipboard3);
|
|
228
|
-
function Clipboard3(trigger, options) {
|
|
229
|
-
var _this;
|
|
230
|
-
_classCallCheck(this, Clipboard3);
|
|
231
|
-
_this = _super.call(this);
|
|
232
|
-
_this.resolveOptions(options);
|
|
233
|
-
_this.listenClick(trigger);
|
|
234
|
-
return _this;
|
|
235
|
-
}
|
|
236
|
-
_createClass(Clipboard3, [{
|
|
237
|
-
key: "resolveOptions",
|
|
238
|
-
value: function resolveOptions() {
|
|
239
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
240
|
-
this.action = typeof options.action === "function" ? options.action : this.defaultAction;
|
|
241
|
-
this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
|
|
242
|
-
this.text = typeof options.text === "function" ? options.text : this.defaultText;
|
|
243
|
-
this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
|
|
244
|
-
}
|
|
245
|
-
}, {
|
|
246
|
-
key: "listenClick",
|
|
247
|
-
value: function listenClick(trigger) {
|
|
248
|
-
var _this2 = this;
|
|
249
|
-
this.listener = listen_default()(trigger, "click", function(e) {
|
|
250
|
-
return _this2.onClick(e);
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
}, {
|
|
254
|
-
key: "onClick",
|
|
255
|
-
value: function onClick(e) {
|
|
256
|
-
var trigger = e.delegateTarget || e.currentTarget;
|
|
257
|
-
var action = this.action(trigger) || "copy";
|
|
258
|
-
var text = actions_default({
|
|
259
|
-
action,
|
|
260
|
-
container: this.container,
|
|
261
|
-
target: this.target(trigger),
|
|
262
|
-
text: this.text(trigger)
|
|
263
|
-
});
|
|
264
|
-
this.emit(text ? "success" : "error", {
|
|
265
|
-
action,
|
|
266
|
-
text,
|
|
267
|
-
trigger,
|
|
268
|
-
clearSelection: function clearSelection() {
|
|
269
|
-
if (trigger) {
|
|
270
|
-
trigger.focus();
|
|
271
|
-
}
|
|
272
|
-
window.getSelection().removeAllRanges();
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
}, {
|
|
277
|
-
key: "defaultAction",
|
|
278
|
-
value: function defaultAction(trigger) {
|
|
279
|
-
return getAttributeValue("action", trigger);
|
|
280
|
-
}
|
|
281
|
-
}, {
|
|
282
|
-
key: "defaultTarget",
|
|
283
|
-
value: function defaultTarget(trigger) {
|
|
284
|
-
var selector = getAttributeValue("target", trigger);
|
|
285
|
-
if (selector) {
|
|
286
|
-
return document.querySelector(selector);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}, {
|
|
290
|
-
key: "defaultText",
|
|
291
|
-
value: function defaultText(trigger) {
|
|
292
|
-
return getAttributeValue("text", trigger);
|
|
293
|
-
}
|
|
294
|
-
}, {
|
|
295
|
-
key: "destroy",
|
|
296
|
-
value: function destroy() {
|
|
297
|
-
this.listener.destroy();
|
|
298
|
-
}
|
|
299
|
-
}], [{
|
|
300
|
-
key: "copy",
|
|
301
|
-
value: function copy(target) {
|
|
302
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
303
|
-
container: document.body
|
|
304
|
-
};
|
|
305
|
-
return actions_copy(target, options);
|
|
306
|
-
}
|
|
307
|
-
}, {
|
|
308
|
-
key: "cut",
|
|
309
|
-
value: function cut(target) {
|
|
310
|
-
return actions_cut(target);
|
|
311
|
-
}
|
|
312
|
-
}, {
|
|
313
|
-
key: "isSupported",
|
|
314
|
-
value: function isSupported() {
|
|
315
|
-
var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
|
|
316
|
-
var actions = typeof action === "string" ? [action] : action;
|
|
317
|
-
var support = !!document.queryCommandSupported;
|
|
318
|
-
actions.forEach(function(action2) {
|
|
319
|
-
support = support && !!document.queryCommandSupported(action2);
|
|
320
|
-
});
|
|
321
|
-
return support;
|
|
322
|
-
}
|
|
323
|
-
}]);
|
|
324
|
-
return Clipboard3;
|
|
325
|
-
}(tiny_emitter_default());
|
|
326
|
-
var clipboard2 = Clipboard2;
|
|
327
|
-
},
|
|
328
|
-
828: function(module2) {
|
|
329
|
-
var DOCUMENT_NODE_TYPE = 9;
|
|
330
|
-
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
331
|
-
var proto = Element.prototype;
|
|
332
|
-
proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
|
|
333
|
-
}
|
|
334
|
-
function closest(element, selector) {
|
|
335
|
-
while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {
|
|
336
|
-
if (typeof element.matches === "function" && element.matches(selector)) {
|
|
337
|
-
return element;
|
|
338
|
-
}
|
|
339
|
-
element = element.parentNode;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
module2.exports = closest;
|
|
343
|
-
},
|
|
344
|
-
438: function(module2, __unused_webpack_exports, __webpack_require__2) {
|
|
345
|
-
var closest = __webpack_require__2(828);
|
|
346
|
-
function _delegate(element, selector, type, callback, useCapture) {
|
|
347
|
-
var listenerFn = listener.apply(this, arguments);
|
|
348
|
-
element.addEventListener(type, listenerFn, useCapture);
|
|
349
|
-
return {
|
|
350
|
-
destroy: function() {
|
|
351
|
-
element.removeEventListener(type, listenerFn, useCapture);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
function delegate(elements, selector, type, callback, useCapture) {
|
|
356
|
-
if (typeof elements.addEventListener === "function") {
|
|
357
|
-
return _delegate.apply(null, arguments);
|
|
358
|
-
}
|
|
359
|
-
if (typeof type === "function") {
|
|
360
|
-
return _delegate.bind(null, document).apply(null, arguments);
|
|
361
|
-
}
|
|
362
|
-
if (typeof elements === "string") {
|
|
363
|
-
elements = document.querySelectorAll(elements);
|
|
364
|
-
}
|
|
365
|
-
return Array.prototype.map.call(elements, function(element) {
|
|
366
|
-
return _delegate(element, selector, type, callback, useCapture);
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
function listener(element, selector, type, callback) {
|
|
370
|
-
return function(e) {
|
|
371
|
-
e.delegateTarget = closest(e.target, selector);
|
|
372
|
-
if (e.delegateTarget) {
|
|
373
|
-
callback.call(element, e);
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
module2.exports = delegate;
|
|
378
|
-
},
|
|
379
|
-
879: function(__unused_webpack_module, exports2) {
|
|
380
|
-
exports2.node = function(value) {
|
|
381
|
-
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
382
|
-
};
|
|
383
|
-
exports2.nodeList = function(value) {
|
|
384
|
-
var type = Object.prototype.toString.call(value);
|
|
385
|
-
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports2.node(value[0]));
|
|
386
|
-
};
|
|
387
|
-
exports2.string = function(value) {
|
|
388
|
-
return typeof value === "string" || value instanceof String;
|
|
389
|
-
};
|
|
390
|
-
exports2.fn = function(value) {
|
|
391
|
-
var type = Object.prototype.toString.call(value);
|
|
392
|
-
return type === "[object Function]";
|
|
393
|
-
};
|
|
394
|
-
},
|
|
395
|
-
370: function(module2, __unused_webpack_exports, __webpack_require__2) {
|
|
396
|
-
var is = __webpack_require__2(879);
|
|
397
|
-
var delegate = __webpack_require__2(438);
|
|
398
|
-
function listen(target, type, callback) {
|
|
399
|
-
if (!target && !type && !callback) {
|
|
400
|
-
throw new Error("Missing required arguments");
|
|
401
|
-
}
|
|
402
|
-
if (!is.string(type)) {
|
|
403
|
-
throw new TypeError("Second argument must be a String");
|
|
404
|
-
}
|
|
405
|
-
if (!is.fn(callback)) {
|
|
406
|
-
throw new TypeError("Third argument must be a Function");
|
|
407
|
-
}
|
|
408
|
-
if (is.node(target)) {
|
|
409
|
-
return listenNode(target, type, callback);
|
|
410
|
-
} else if (is.nodeList(target)) {
|
|
411
|
-
return listenNodeList(target, type, callback);
|
|
412
|
-
} else if (is.string(target)) {
|
|
413
|
-
return listenSelector(target, type, callback);
|
|
414
|
-
} else {
|
|
415
|
-
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
function listenNode(node, type, callback) {
|
|
419
|
-
node.addEventListener(type, callback);
|
|
420
|
-
return {
|
|
421
|
-
destroy: function() {
|
|
422
|
-
node.removeEventListener(type, callback);
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
function listenNodeList(nodeList, type, callback) {
|
|
427
|
-
Array.prototype.forEach.call(nodeList, function(node) {
|
|
428
|
-
node.addEventListener(type, callback);
|
|
429
|
-
});
|
|
430
|
-
return {
|
|
431
|
-
destroy: function() {
|
|
432
|
-
Array.prototype.forEach.call(nodeList, function(node) {
|
|
433
|
-
node.removeEventListener(type, callback);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
function listenSelector(selector, type, callback) {
|
|
439
|
-
return delegate(document.body, selector, type, callback);
|
|
440
|
-
}
|
|
441
|
-
module2.exports = listen;
|
|
442
|
-
},
|
|
443
|
-
817: function(module2) {
|
|
444
|
-
function select(element) {
|
|
445
|
-
var selectedText;
|
|
446
|
-
if (element.nodeName === "SELECT") {
|
|
447
|
-
element.focus();
|
|
448
|
-
selectedText = element.value;
|
|
449
|
-
} else if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {
|
|
450
|
-
var isReadOnly = element.hasAttribute("readonly");
|
|
451
|
-
if (!isReadOnly) {
|
|
452
|
-
element.setAttribute("readonly", "");
|
|
453
|
-
}
|
|
454
|
-
element.select();
|
|
455
|
-
element.setSelectionRange(0, element.value.length);
|
|
456
|
-
if (!isReadOnly) {
|
|
457
|
-
element.removeAttribute("readonly");
|
|
458
|
-
}
|
|
459
|
-
selectedText = element.value;
|
|
460
|
-
} else {
|
|
461
|
-
if (element.hasAttribute("contenteditable")) {
|
|
462
|
-
element.focus();
|
|
463
|
-
}
|
|
464
|
-
var selection = window.getSelection();
|
|
465
|
-
var range = document.createRange();
|
|
466
|
-
range.selectNodeContents(element);
|
|
467
|
-
selection.removeAllRanges();
|
|
468
|
-
selection.addRange(range);
|
|
469
|
-
selectedText = selection.toString();
|
|
470
|
-
}
|
|
471
|
-
return selectedText;
|
|
472
|
-
}
|
|
473
|
-
module2.exports = select;
|
|
474
|
-
},
|
|
475
|
-
279: function(module2) {
|
|
476
|
-
function E() {
|
|
477
|
-
}
|
|
478
|
-
E.prototype = {
|
|
479
|
-
on: function(name, callback, ctx) {
|
|
480
|
-
var e = this.e || (this.e = {});
|
|
481
|
-
(e[name] || (e[name] = [])).push({
|
|
482
|
-
fn: callback,
|
|
483
|
-
ctx
|
|
484
|
-
});
|
|
485
|
-
return this;
|
|
486
|
-
},
|
|
487
|
-
once: function(name, callback, ctx) {
|
|
488
|
-
var self = this;
|
|
489
|
-
function listener() {
|
|
490
|
-
self.off(name, listener);
|
|
491
|
-
callback.apply(ctx, arguments);
|
|
492
|
-
}
|
|
493
|
-
listener._ = callback;
|
|
494
|
-
return this.on(name, listener, ctx);
|
|
495
|
-
},
|
|
496
|
-
emit: function(name) {
|
|
497
|
-
var data = [].slice.call(arguments, 1);
|
|
498
|
-
var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
|
|
499
|
-
var i = 0;
|
|
500
|
-
var len = evtArr.length;
|
|
501
|
-
for (i; i < len; i++) {
|
|
502
|
-
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
503
|
-
}
|
|
504
|
-
return this;
|
|
505
|
-
},
|
|
506
|
-
off: function(name, callback) {
|
|
507
|
-
var e = this.e || (this.e = {});
|
|
508
|
-
var evts = e[name];
|
|
509
|
-
var liveEvents = [];
|
|
510
|
-
if (evts && callback) {
|
|
511
|
-
for (var i = 0, len = evts.length; i < len; i++) {
|
|
512
|
-
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
513
|
-
liveEvents.push(evts[i]);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
liveEvents.length ? e[name] = liveEvents : delete e[name];
|
|
517
|
-
return this;
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
module2.exports = E;
|
|
521
|
-
module2.exports.TinyEmitter = E;
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
var __webpack_module_cache__ = {};
|
|
525
|
-
function __webpack_require__(moduleId) {
|
|
526
|
-
if (__webpack_module_cache__[moduleId]) {
|
|
527
|
-
return __webpack_module_cache__[moduleId].exports;
|
|
528
|
-
}
|
|
529
|
-
var module2 = __webpack_module_cache__[moduleId] = {
|
|
530
|
-
exports: {}
|
|
531
|
-
};
|
|
532
|
-
__webpack_modules__[moduleId](module2, module2.exports, __webpack_require__);
|
|
533
|
-
return module2.exports;
|
|
534
|
-
}
|
|
535
|
-
!function() {
|
|
536
|
-
__webpack_require__.n = function(module2) {
|
|
537
|
-
var getter = module2 && module2.__esModule ? function() {
|
|
538
|
-
return module2["default"];
|
|
539
|
-
} : function() {
|
|
540
|
-
return module2;
|
|
541
|
-
};
|
|
542
|
-
__webpack_require__.d(getter, { a: getter });
|
|
543
|
-
return getter;
|
|
544
|
-
};
|
|
545
|
-
}();
|
|
546
|
-
!function() {
|
|
547
|
-
__webpack_require__.d = function(exports2, definition) {
|
|
548
|
-
for (var key in definition) {
|
|
549
|
-
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key)) {
|
|
550
|
-
Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
}();
|
|
555
|
-
!function() {
|
|
556
|
-
__webpack_require__.o = function(obj, prop) {
|
|
557
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
558
|
-
};
|
|
559
|
-
}();
|
|
560
|
-
return __webpack_require__(686);
|
|
561
|
-
}().default;
|
|
562
|
-
});
|
|
563
|
-
})(clipboard);
|
|
564
|
-
var Clipboard = /* @__PURE__ */ getDefaultExportFromCjs(clipboard.exports);
|
|
565
|
-
export { Clipboard as C };
|
package/enhance.api.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __async = (__this, __arguments, generator) => {
|
|
21
|
-
return new Promise((resolve, reject) => {
|
|
22
|
-
var fulfilled = (value) => {
|
|
23
|
-
try {
|
|
24
|
-
step(generator.next(value));
|
|
25
|
-
} catch (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var rejected = (value) => {
|
|
30
|
-
try {
|
|
31
|
-
step(generator.throw(value));
|
|
32
|
-
} catch (e) {
|
|
33
|
-
reject(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
41
|
-
import { isArray } from "/@/utils/is";
|
|
42
|
-
function getEnhanceJsByCode(code, type, params) {
|
|
43
|
-
return __async(this, null, function* () {
|
|
44
|
-
let { success, result } = yield defHttp.get(
|
|
45
|
-
{
|
|
46
|
-
url: "/online/cgform/head/enhanceJs/" + code,
|
|
47
|
-
params: __spreadProps(__spreadValues({}, params), {
|
|
48
|
-
type
|
|
49
|
-
})
|
|
50
|
-
},
|
|
51
|
-
{ isTransformResponse: false }
|
|
52
|
-
);
|
|
53
|
-
if (!success) {
|
|
54
|
-
result = { cgJs: "" };
|
|
55
|
-
}
|
|
56
|
-
return result;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
const saveEnhanceJs = (code, params, isUpdate) => {
|
|
60
|
-
let url = `${"/online/cgform/head/enhanceJs/"}${code}`;
|
|
61
|
-
if (isUpdate) {
|
|
62
|
-
return defHttp.put({ url, params }, { successMessageMode: "none" });
|
|
63
|
-
} else {
|
|
64
|
-
return defHttp.post({ url, params }, { successMessageMode: "none" });
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
function getEnhanceJavaByCode(code, params) {
|
|
68
|
-
return __async(this, null, function* () {
|
|
69
|
-
let btnRes = yield defHttp.get({ url: "/online/cgform/head/enhanceButton/" + code }, { isTransformResponse: false });
|
|
70
|
-
let btnList = [];
|
|
71
|
-
if (btnRes.success && isArray(btnRes.result)) {
|
|
72
|
-
btnList = btnRes.result.filter((item) => item.optType == "action");
|
|
73
|
-
}
|
|
74
|
-
let path = `${"/online/cgform/head/enhanceJava"}/${code}`;
|
|
75
|
-
let dataSource = yield defHttp.get({ url: path, params });
|
|
76
|
-
return { btnList, dataSource };
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function doEnhanceJavaBatchDelete(idList) {
|
|
80
|
-
return defHttp.delete(
|
|
81
|
-
{
|
|
82
|
-
url: "/online/cgform/head/deleteBatchEnhanceJava",
|
|
83
|
-
params: {
|
|
84
|
-
ids: idList.join(",")
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{ joinParamsToUrl: true }
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
const saveEnhanceJava = (code, params, isUpdate) => {
|
|
91
|
-
let url = `${"/online/cgform/head/enhanceJava"}/${code}`;
|
|
92
|
-
if (isUpdate) {
|
|
93
|
-
return defHttp.put({ url, params });
|
|
94
|
-
} else {
|
|
95
|
-
return defHttp.post({ url, params });
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
function getEnhanceSqlByCode(code, params) {
|
|
99
|
-
return __async(this, null, function* () {
|
|
100
|
-
let btnRes = yield defHttp.get({ url: "/online/cgform/head/enhanceButton/" + code }, { isTransformResponse: false });
|
|
101
|
-
let btnList = [];
|
|
102
|
-
if (btnRes.success && isArray(btnRes.result)) {
|
|
103
|
-
btnList = btnRes.result.filter((item) => item.optType == "action");
|
|
104
|
-
}
|
|
105
|
-
let path = `${"/online/cgform/head/enhanceSql"}/${code}`;
|
|
106
|
-
let dataSource = yield defHttp.get({ url: path, params });
|
|
107
|
-
return { btnList, dataSource };
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function doEnhanceSqlBatchDelete(idList) {
|
|
111
|
-
return defHttp.delete(
|
|
112
|
-
{
|
|
113
|
-
url: "/online/cgform/head/deletebatchEnhanceSql",
|
|
114
|
-
params: {
|
|
115
|
-
ids: idList.join(",")
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{ joinParamsToUrl: true }
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
const saveEnhanceSql = (code, params, isUpdate) => {
|
|
122
|
-
let url = `${"/online/cgform/head/enhanceSql"}/${code}`;
|
|
123
|
-
if (isUpdate) {
|
|
124
|
-
return defHttp.put({ url, params });
|
|
125
|
-
} else {
|
|
126
|
-
return defHttp.post({ url, params });
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
export { getEnhanceJavaByCode as a, saveEnhanceJava as b, getEnhanceSqlByCode as c, doEnhanceJavaBatchDelete as d, saveEnhanceSql as e, doEnhanceSqlBatchDelete as f, getEnhanceJsByCode as g, saveEnhanceJs as s };
|