@juzhenfe/page-model 3.14.9 → 3.14.11
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/dist/components/buttons-renderer/index.vue.d.ts +11 -9
- package/dist/components/buttons-renderer/utils/index.d.ts +2 -0
- package/dist/components/column-filter-tools/index.vue.d.ts +12 -6
- package/dist/components/column-sort-tools/index.vue.d.ts +13 -6
- package/dist/components/form/constructor.d.ts +9 -0
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +11 -8
- package/dist/components/page-model/constructor.d.ts +22 -0
- package/dist/components/simple-popover/index.vue.d.ts +9 -4
- package/dist/components/table/components/context-menu/index.vue.d.ts +163 -0
- package/dist/components/table/components/table-column/index.vue.d.ts +9 -10
- package/dist/components/table/constructor.d.ts +18 -0
- package/dist/components/table/type.d.ts +165 -109
- package/dist/index.es.js +1209 -992
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -212,11 +212,11 @@ const randomStr = (len = 16) => {
|
|
|
212
212
|
return RANDOM_RANGE[Math.floor(Math.random() * RANDOM_RANGE_LENGTH)];
|
|
213
213
|
}).join("");
|
|
214
214
|
};
|
|
215
|
-
const _hoisted_1$
|
|
215
|
+
const _hoisted_1$F = { class: "scenes-tab" };
|
|
216
216
|
const __default__$o = {
|
|
217
217
|
name: "ScenesTab"
|
|
218
218
|
};
|
|
219
|
-
const _sfc_main$
|
|
219
|
+
const _sfc_main$14 = defineComponent({
|
|
220
220
|
...__default__$o,
|
|
221
221
|
setup(__props, { expose: __expose }) {
|
|
222
222
|
const getValue2 = () => {
|
|
@@ -226,15 +226,15 @@ const _sfc_main$13 = defineComponent({
|
|
|
226
226
|
getValue: getValue2
|
|
227
227
|
});
|
|
228
228
|
return (_ctx, _cache) => {
|
|
229
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
229
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
var index_vue_vue_type_style_index_0_lang$
|
|
233
|
+
var index_vue_vue_type_style_index_0_lang$c = "";
|
|
234
234
|
const __default__$n = {
|
|
235
235
|
name: "NormalTab"
|
|
236
236
|
};
|
|
237
|
-
const _sfc_main$
|
|
237
|
+
const _sfc_main$13 = defineComponent({
|
|
238
238
|
...__default__$n,
|
|
239
239
|
props: {
|
|
240
240
|
panes: {},
|
|
@@ -1683,11 +1683,11 @@ class TopTabsManager extends IManager {
|
|
|
1683
1683
|
this.context = markRaw(context);
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
var index_vue_vue_type_style_index_0_lang$
|
|
1686
|
+
var index_vue_vue_type_style_index_0_lang$b = "";
|
|
1687
1687
|
const __default__$m = {
|
|
1688
1688
|
name: "TopTabs"
|
|
1689
1689
|
};
|
|
1690
|
-
const _sfc_main$
|
|
1690
|
+
const _sfc_main$12 = defineComponent({
|
|
1691
1691
|
...__default__$m,
|
|
1692
1692
|
props: {
|
|
1693
1693
|
tabs: {},
|
|
@@ -1708,12 +1708,12 @@ const _sfc_main$11 = defineComponent({
|
|
|
1708
1708
|
const tabComponent = computed(() => {
|
|
1709
1709
|
if (props.tabs.useScene) {
|
|
1710
1710
|
return {
|
|
1711
|
-
component: _sfc_main$
|
|
1711
|
+
component: _sfc_main$14,
|
|
1712
1712
|
props: props.tabs.sceneTab
|
|
1713
1713
|
};
|
|
1714
1714
|
} else {
|
|
1715
1715
|
return {
|
|
1716
|
-
component: _sfc_main$
|
|
1716
|
+
component: _sfc_main$13,
|
|
1717
1717
|
props: {
|
|
1718
1718
|
panes: props.tabs.panes,
|
|
1719
1719
|
props: props.tabs.props
|
|
@@ -1746,643 +1746,59 @@ const _sfc_main$11 = defineComponent({
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
1748
|
});
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
setChain(chainItem) {
|
|
1754
|
-
this.chains.push(chainItem);
|
|
1755
|
-
return this;
|
|
1756
|
-
}
|
|
1757
|
-
passRequest(...rest) {
|
|
1758
|
-
const chains = this.chains;
|
|
1759
|
-
const len = chains.length;
|
|
1760
|
-
let result = false;
|
|
1761
|
-
for (let index2 = 0; index2 < len; index2++) {
|
|
1762
|
-
const chain = chains[index2];
|
|
1763
|
-
result = chain.apply(this, rest);
|
|
1764
|
-
if (result !== false) {
|
|
1765
|
-
break;
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
return result;
|
|
1749
|
+
var _export_sfc$1 = (sfc, props) => {
|
|
1750
|
+
const target = sfc.__vccOpts || sfc;
|
|
1751
|
+
for (const [key, val] of props) {
|
|
1752
|
+
target[key] = val;
|
|
1769
1753
|
}
|
|
1754
|
+
return target;
|
|
1755
|
+
};
|
|
1756
|
+
const _sfc_main$11 = defineComponent({
|
|
1757
|
+
name: "ArrowDownBold"
|
|
1758
|
+
});
|
|
1759
|
+
const _hoisted_1$E = {
|
|
1760
|
+
class: "icon",
|
|
1761
|
+
width: "200",
|
|
1762
|
+
height: "200",
|
|
1763
|
+
viewBox: "0 0 1024 1024",
|
|
1764
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1765
|
+
};
|
|
1766
|
+
const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
|
|
1767
|
+
fill: "currentColor",
|
|
1768
|
+
d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
|
|
1769
|
+
}, null, -1);
|
|
1770
|
+
const _hoisted_3$t = [
|
|
1771
|
+
_hoisted_2$u
|
|
1772
|
+
];
|
|
1773
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1774
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$E, _hoisted_3$t);
|
|
1770
1775
|
}
|
|
1771
|
-
var
|
|
1772
|
-
|
|
1773
|
-
|
|
1776
|
+
var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$11, [["render", _sfc_render$m]]);
|
|
1777
|
+
const _sfc_main$10 = defineComponent({
|
|
1778
|
+
name: "ArrowDown"
|
|
1779
|
+
});
|
|
1780
|
+
const _hoisted_1$D = {
|
|
1781
|
+
class: "icon",
|
|
1782
|
+
width: "200",
|
|
1783
|
+
height: "200",
|
|
1784
|
+
viewBox: "0 0 1024 1024",
|
|
1785
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1786
|
+
};
|
|
1787
|
+
const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
|
|
1788
|
+
fill: "currentColor",
|
|
1789
|
+
d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
|
|
1790
|
+
}, null, -1);
|
|
1791
|
+
const _hoisted_3$s = [
|
|
1792
|
+
_hoisted_2$t
|
|
1793
|
+
];
|
|
1794
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1795
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$s);
|
|
1774
1796
|
}
|
|
1775
|
-
var
|
|
1776
|
-
/*!
|
|
1777
|
-
* clipboard.js v2.0.10
|
|
1778
|
-
* https://clipboardjs.com/
|
|
1779
|
-
*
|
|
1780
|
-
* Licensed MIT © Zeno Rocha
|
|
1781
|
-
*/
|
|
1782
|
-
(function(module2, exports2) {
|
|
1783
|
-
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
1784
|
-
module2.exports = factory();
|
|
1785
|
-
})(commonjsGlobal, function() {
|
|
1786
|
-
return function() {
|
|
1787
|
-
var __webpack_modules__ = {
|
|
1788
|
-
686: function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
|
|
1789
|
-
__webpack_require__2.d(__webpack_exports__, {
|
|
1790
|
-
"default": function() {
|
|
1791
|
-
return clipboard2;
|
|
1792
|
-
}
|
|
1793
|
-
});
|
|
1794
|
-
var tiny_emitter = __webpack_require__2(279);
|
|
1795
|
-
var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
|
|
1796
|
-
var listen = __webpack_require__2(370);
|
|
1797
|
-
var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
|
|
1798
|
-
var src_select = __webpack_require__2(817);
|
|
1799
|
-
var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
|
|
1800
|
-
function command(type) {
|
|
1801
|
-
try {
|
|
1802
|
-
return document.execCommand(type);
|
|
1803
|
-
} catch (err) {
|
|
1804
|
-
return false;
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
var ClipboardActionCut = function ClipboardActionCut2(target) {
|
|
1808
|
-
var selectedText = select_default()(target);
|
|
1809
|
-
command("cut");
|
|
1810
|
-
return selectedText;
|
|
1811
|
-
};
|
|
1812
|
-
var actions_cut = ClipboardActionCut;
|
|
1813
|
-
function createFakeElement(value) {
|
|
1814
|
-
var isRTL = document.documentElement.getAttribute("dir") === "rtl";
|
|
1815
|
-
var fakeElement = document.createElement("textarea");
|
|
1816
|
-
fakeElement.style.fontSize = "12pt";
|
|
1817
|
-
fakeElement.style.border = "0";
|
|
1818
|
-
fakeElement.style.padding = "0";
|
|
1819
|
-
fakeElement.style.margin = "0";
|
|
1820
|
-
fakeElement.style.position = "absolute";
|
|
1821
|
-
fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
|
|
1822
|
-
var yPosition = window.pageYOffset || document.documentElement.scrollTop;
|
|
1823
|
-
fakeElement.style.top = "".concat(yPosition, "px");
|
|
1824
|
-
fakeElement.setAttribute("readonly", "");
|
|
1825
|
-
fakeElement.value = value;
|
|
1826
|
-
return fakeElement;
|
|
1827
|
-
}
|
|
1828
|
-
var ClipboardActionCopy = function ClipboardActionCopy2(target) {
|
|
1829
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1830
|
-
container: document.body
|
|
1831
|
-
};
|
|
1832
|
-
var selectedText = "";
|
|
1833
|
-
if (typeof target === "string") {
|
|
1834
|
-
var fakeElement = createFakeElement(target);
|
|
1835
|
-
options.container.appendChild(fakeElement);
|
|
1836
|
-
selectedText = select_default()(fakeElement);
|
|
1837
|
-
command("copy");
|
|
1838
|
-
fakeElement.remove();
|
|
1839
|
-
} else {
|
|
1840
|
-
selectedText = select_default()(target);
|
|
1841
|
-
command("copy");
|
|
1842
|
-
}
|
|
1843
|
-
return selectedText;
|
|
1844
|
-
};
|
|
1845
|
-
var actions_copy = ClipboardActionCopy;
|
|
1846
|
-
function _typeof(obj) {
|
|
1847
|
-
"@babel/helpers - typeof";
|
|
1848
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
1849
|
-
_typeof = function _typeof2(obj2) {
|
|
1850
|
-
return typeof obj2;
|
|
1851
|
-
};
|
|
1852
|
-
} else {
|
|
1853
|
-
_typeof = function _typeof2(obj2) {
|
|
1854
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
1855
|
-
};
|
|
1856
|
-
}
|
|
1857
|
-
return _typeof(obj);
|
|
1858
|
-
}
|
|
1859
|
-
var ClipboardActionDefault = function ClipboardActionDefault2() {
|
|
1860
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1861
|
-
var _options$action = options.action, action = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text = options.text;
|
|
1862
|
-
if (action !== "copy" && action !== "cut") {
|
|
1863
|
-
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
1864
|
-
}
|
|
1865
|
-
if (target !== void 0) {
|
|
1866
|
-
if (target && _typeof(target) === "object" && target.nodeType === 1) {
|
|
1867
|
-
if (action === "copy" && target.hasAttribute("disabled")) {
|
|
1868
|
-
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
1869
|
-
}
|
|
1870
|
-
if (action === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
|
|
1871
|
-
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
1872
|
-
}
|
|
1873
|
-
} else {
|
|
1874
|
-
throw new Error('Invalid "target" value, use a valid Element');
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
if (text) {
|
|
1878
|
-
return actions_copy(text, {
|
|
1879
|
-
container
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
if (target) {
|
|
1883
|
-
return action === "cut" ? actions_cut(target) : actions_copy(target, {
|
|
1884
|
-
container
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
|
-
var actions_default = ClipboardActionDefault;
|
|
1889
|
-
function clipboard_typeof(obj) {
|
|
1890
|
-
"@babel/helpers - typeof";
|
|
1891
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
1892
|
-
clipboard_typeof = function _typeof2(obj2) {
|
|
1893
|
-
return typeof obj2;
|
|
1894
|
-
};
|
|
1895
|
-
} else {
|
|
1896
|
-
clipboard_typeof = function _typeof2(obj2) {
|
|
1897
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
return clipboard_typeof(obj);
|
|
1901
|
-
}
|
|
1902
|
-
function _classCallCheck(instance, Constructor) {
|
|
1903
|
-
if (!(instance instanceof Constructor)) {
|
|
1904
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
function _defineProperties(target, props) {
|
|
1908
|
-
for (var i = 0; i < props.length; i++) {
|
|
1909
|
-
var descriptor = props[i];
|
|
1910
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
1911
|
-
descriptor.configurable = true;
|
|
1912
|
-
if ("value" in descriptor)
|
|
1913
|
-
descriptor.writable = true;
|
|
1914
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
1918
|
-
if (protoProps)
|
|
1919
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
1920
|
-
if (staticProps)
|
|
1921
|
-
_defineProperties(Constructor, staticProps);
|
|
1922
|
-
return Constructor;
|
|
1923
|
-
}
|
|
1924
|
-
function _inherits(subClass, superClass) {
|
|
1925
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
1926
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
1927
|
-
}
|
|
1928
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
1929
|
-
if (superClass)
|
|
1930
|
-
_setPrototypeOf(subClass, superClass);
|
|
1931
|
-
}
|
|
1932
|
-
function _setPrototypeOf(o, p) {
|
|
1933
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
1934
|
-
o2.__proto__ = p2;
|
|
1935
|
-
return o2;
|
|
1936
|
-
};
|
|
1937
|
-
return _setPrototypeOf(o, p);
|
|
1938
|
-
}
|
|
1939
|
-
function _createSuper(Derived) {
|
|
1940
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
1941
|
-
return function _createSuperInternal() {
|
|
1942
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
1943
|
-
if (hasNativeReflectConstruct) {
|
|
1944
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
1945
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
1946
|
-
} else {
|
|
1947
|
-
result = Super.apply(this, arguments);
|
|
1948
|
-
}
|
|
1949
|
-
return _possibleConstructorReturn(this, result);
|
|
1950
|
-
};
|
|
1951
|
-
}
|
|
1952
|
-
function _possibleConstructorReturn(self2, call) {
|
|
1953
|
-
if (call && (clipboard_typeof(call) === "object" || typeof call === "function")) {
|
|
1954
|
-
return call;
|
|
1955
|
-
}
|
|
1956
|
-
return _assertThisInitialized(self2);
|
|
1957
|
-
}
|
|
1958
|
-
function _assertThisInitialized(self2) {
|
|
1959
|
-
if (self2 === void 0) {
|
|
1960
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1961
|
-
}
|
|
1962
|
-
return self2;
|
|
1963
|
-
}
|
|
1964
|
-
function _isNativeReflectConstruct() {
|
|
1965
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
1966
|
-
return false;
|
|
1967
|
-
if (Reflect.construct.sham)
|
|
1968
|
-
return false;
|
|
1969
|
-
if (typeof Proxy === "function")
|
|
1970
|
-
return true;
|
|
1971
|
-
try {
|
|
1972
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
1973
|
-
}));
|
|
1974
|
-
return true;
|
|
1975
|
-
} catch (e) {
|
|
1976
|
-
return false;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
function _getPrototypeOf(o) {
|
|
1980
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
1981
|
-
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
1982
|
-
};
|
|
1983
|
-
return _getPrototypeOf(o);
|
|
1984
|
-
}
|
|
1985
|
-
function getAttributeValue(suffix, element) {
|
|
1986
|
-
var attribute = "data-clipboard-".concat(suffix);
|
|
1987
|
-
if (!element.hasAttribute(attribute)) {
|
|
1988
|
-
return;
|
|
1989
|
-
}
|
|
1990
|
-
return element.getAttribute(attribute);
|
|
1991
|
-
}
|
|
1992
|
-
var Clipboard = /* @__PURE__ */ function(_Emitter) {
|
|
1993
|
-
_inherits(Clipboard2, _Emitter);
|
|
1994
|
-
var _super = _createSuper(Clipboard2);
|
|
1995
|
-
function Clipboard2(trigger, options) {
|
|
1996
|
-
var _this;
|
|
1997
|
-
_classCallCheck(this, Clipboard2);
|
|
1998
|
-
_this = _super.call(this);
|
|
1999
|
-
_this.resolveOptions(options);
|
|
2000
|
-
_this.listenClick(trigger);
|
|
2001
|
-
return _this;
|
|
2002
|
-
}
|
|
2003
|
-
_createClass(Clipboard2, [{
|
|
2004
|
-
key: "resolveOptions",
|
|
2005
|
-
value: function resolveOptions() {
|
|
2006
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2007
|
-
this.action = typeof options.action === "function" ? options.action : this.defaultAction;
|
|
2008
|
-
this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
|
|
2009
|
-
this.text = typeof options.text === "function" ? options.text : this.defaultText;
|
|
2010
|
-
this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
|
|
2011
|
-
}
|
|
2012
|
-
}, {
|
|
2013
|
-
key: "listenClick",
|
|
2014
|
-
value: function listenClick(trigger) {
|
|
2015
|
-
var _this2 = this;
|
|
2016
|
-
this.listener = listen_default()(trigger, "click", function(e) {
|
|
2017
|
-
return _this2.onClick(e);
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
}, {
|
|
2021
|
-
key: "onClick",
|
|
2022
|
-
value: function onClick(e) {
|
|
2023
|
-
var trigger = e.delegateTarget || e.currentTarget;
|
|
2024
|
-
var action = this.action(trigger) || "copy";
|
|
2025
|
-
var text = actions_default({
|
|
2026
|
-
action,
|
|
2027
|
-
container: this.container,
|
|
2028
|
-
target: this.target(trigger),
|
|
2029
|
-
text: this.text(trigger)
|
|
2030
|
-
});
|
|
2031
|
-
this.emit(text ? "success" : "error", {
|
|
2032
|
-
action,
|
|
2033
|
-
text,
|
|
2034
|
-
trigger,
|
|
2035
|
-
clearSelection: function clearSelection() {
|
|
2036
|
-
if (trigger) {
|
|
2037
|
-
trigger.focus();
|
|
2038
|
-
}
|
|
2039
|
-
document.activeElement.blur();
|
|
2040
|
-
window.getSelection().removeAllRanges();
|
|
2041
|
-
}
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
}, {
|
|
2045
|
-
key: "defaultAction",
|
|
2046
|
-
value: function defaultAction(trigger) {
|
|
2047
|
-
return getAttributeValue("action", trigger);
|
|
2048
|
-
}
|
|
2049
|
-
}, {
|
|
2050
|
-
key: "defaultTarget",
|
|
2051
|
-
value: function defaultTarget(trigger) {
|
|
2052
|
-
var selector = getAttributeValue("target", trigger);
|
|
2053
|
-
if (selector) {
|
|
2054
|
-
return document.querySelector(selector);
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
}, {
|
|
2058
|
-
key: "defaultText",
|
|
2059
|
-
value: function defaultText(trigger) {
|
|
2060
|
-
return getAttributeValue("text", trigger);
|
|
2061
|
-
}
|
|
2062
|
-
}, {
|
|
2063
|
-
key: "destroy",
|
|
2064
|
-
value: function destroy() {
|
|
2065
|
-
this.listener.destroy();
|
|
2066
|
-
}
|
|
2067
|
-
}], [{
|
|
2068
|
-
key: "copy",
|
|
2069
|
-
value: function copy(target) {
|
|
2070
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2071
|
-
container: document.body
|
|
2072
|
-
};
|
|
2073
|
-
return actions_copy(target, options);
|
|
2074
|
-
}
|
|
2075
|
-
}, {
|
|
2076
|
-
key: "cut",
|
|
2077
|
-
value: function cut(target) {
|
|
2078
|
-
return actions_cut(target);
|
|
2079
|
-
}
|
|
2080
|
-
}, {
|
|
2081
|
-
key: "isSupported",
|
|
2082
|
-
value: function isSupported() {
|
|
2083
|
-
var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
|
|
2084
|
-
var actions = typeof action === "string" ? [action] : action;
|
|
2085
|
-
var support = !!document.queryCommandSupported;
|
|
2086
|
-
actions.forEach(function(action2) {
|
|
2087
|
-
support = support && !!document.queryCommandSupported(action2);
|
|
2088
|
-
});
|
|
2089
|
-
return support;
|
|
2090
|
-
}
|
|
2091
|
-
}]);
|
|
2092
|
-
return Clipboard2;
|
|
2093
|
-
}(tiny_emitter_default());
|
|
2094
|
-
var clipboard2 = Clipboard;
|
|
2095
|
-
},
|
|
2096
|
-
828: function(module3) {
|
|
2097
|
-
var DOCUMENT_NODE_TYPE = 9;
|
|
2098
|
-
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
2099
|
-
var proto = Element.prototype;
|
|
2100
|
-
proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
|
|
2101
|
-
}
|
|
2102
|
-
function closest(element, selector) {
|
|
2103
|
-
while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {
|
|
2104
|
-
if (typeof element.matches === "function" && element.matches(selector)) {
|
|
2105
|
-
return element;
|
|
2106
|
-
}
|
|
2107
|
-
element = element.parentNode;
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
module3.exports = closest;
|
|
2111
|
-
},
|
|
2112
|
-
438: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2113
|
-
var closest = __webpack_require__2(828);
|
|
2114
|
-
function _delegate(element, selector, type, callback, useCapture) {
|
|
2115
|
-
var listenerFn = listener.apply(this, arguments);
|
|
2116
|
-
element.addEventListener(type, listenerFn, useCapture);
|
|
2117
|
-
return {
|
|
2118
|
-
destroy: function() {
|
|
2119
|
-
element.removeEventListener(type, listenerFn, useCapture);
|
|
2120
|
-
}
|
|
2121
|
-
};
|
|
2122
|
-
}
|
|
2123
|
-
function delegate(elements, selector, type, callback, useCapture) {
|
|
2124
|
-
if (typeof elements.addEventListener === "function") {
|
|
2125
|
-
return _delegate.apply(null, arguments);
|
|
2126
|
-
}
|
|
2127
|
-
if (typeof type === "function") {
|
|
2128
|
-
return _delegate.bind(null, document).apply(null, arguments);
|
|
2129
|
-
}
|
|
2130
|
-
if (typeof elements === "string") {
|
|
2131
|
-
elements = document.querySelectorAll(elements);
|
|
2132
|
-
}
|
|
2133
|
-
return Array.prototype.map.call(elements, function(element) {
|
|
2134
|
-
return _delegate(element, selector, type, callback, useCapture);
|
|
2135
|
-
});
|
|
2136
|
-
}
|
|
2137
|
-
function listener(element, selector, type, callback) {
|
|
2138
|
-
return function(e) {
|
|
2139
|
-
e.delegateTarget = closest(e.target, selector);
|
|
2140
|
-
if (e.delegateTarget) {
|
|
2141
|
-
callback.call(element, e);
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
}
|
|
2145
|
-
module3.exports = delegate;
|
|
2146
|
-
},
|
|
2147
|
-
879: function(__unused_webpack_module, exports3) {
|
|
2148
|
-
exports3.node = function(value) {
|
|
2149
|
-
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
2150
|
-
};
|
|
2151
|
-
exports3.nodeList = function(value) {
|
|
2152
|
-
var type = Object.prototype.toString.call(value);
|
|
2153
|
-
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports3.node(value[0]));
|
|
2154
|
-
};
|
|
2155
|
-
exports3.string = function(value) {
|
|
2156
|
-
return typeof value === "string" || value instanceof String;
|
|
2157
|
-
};
|
|
2158
|
-
exports3.fn = function(value) {
|
|
2159
|
-
var type = Object.prototype.toString.call(value);
|
|
2160
|
-
return type === "[object Function]";
|
|
2161
|
-
};
|
|
2162
|
-
},
|
|
2163
|
-
370: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2164
|
-
var is = __webpack_require__2(879);
|
|
2165
|
-
var delegate = __webpack_require__2(438);
|
|
2166
|
-
function listen(target, type, callback) {
|
|
2167
|
-
if (!target && !type && !callback) {
|
|
2168
|
-
throw new Error("Missing required arguments");
|
|
2169
|
-
}
|
|
2170
|
-
if (!is.string(type)) {
|
|
2171
|
-
throw new TypeError("Second argument must be a String");
|
|
2172
|
-
}
|
|
2173
|
-
if (!is.fn(callback)) {
|
|
2174
|
-
throw new TypeError("Third argument must be a Function");
|
|
2175
|
-
}
|
|
2176
|
-
if (is.node(target)) {
|
|
2177
|
-
return listenNode(target, type, callback);
|
|
2178
|
-
} else if (is.nodeList(target)) {
|
|
2179
|
-
return listenNodeList(target, type, callback);
|
|
2180
|
-
} else if (is.string(target)) {
|
|
2181
|
-
return listenSelector(target, type, callback);
|
|
2182
|
-
} else {
|
|
2183
|
-
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
function listenNode(node, type, callback) {
|
|
2187
|
-
node.addEventListener(type, callback);
|
|
2188
|
-
return {
|
|
2189
|
-
destroy: function() {
|
|
2190
|
-
node.removeEventListener(type, callback);
|
|
2191
|
-
}
|
|
2192
|
-
};
|
|
2193
|
-
}
|
|
2194
|
-
function listenNodeList(nodeList, type, callback) {
|
|
2195
|
-
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2196
|
-
node.addEventListener(type, callback);
|
|
2197
|
-
});
|
|
2198
|
-
return {
|
|
2199
|
-
destroy: function() {
|
|
2200
|
-
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2201
|
-
node.removeEventListener(type, callback);
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
};
|
|
2205
|
-
}
|
|
2206
|
-
function listenSelector(selector, type, callback) {
|
|
2207
|
-
return delegate(document.body, selector, type, callback);
|
|
2208
|
-
}
|
|
2209
|
-
module3.exports = listen;
|
|
2210
|
-
},
|
|
2211
|
-
817: function(module3) {
|
|
2212
|
-
function select2(element) {
|
|
2213
|
-
var selectedText;
|
|
2214
|
-
if (element.nodeName === "SELECT") {
|
|
2215
|
-
element.focus();
|
|
2216
|
-
selectedText = element.value;
|
|
2217
|
-
} else if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {
|
|
2218
|
-
var isReadOnly = element.hasAttribute("readonly");
|
|
2219
|
-
if (!isReadOnly) {
|
|
2220
|
-
element.setAttribute("readonly", "");
|
|
2221
|
-
}
|
|
2222
|
-
element.select();
|
|
2223
|
-
element.setSelectionRange(0, element.value.length);
|
|
2224
|
-
if (!isReadOnly) {
|
|
2225
|
-
element.removeAttribute("readonly");
|
|
2226
|
-
}
|
|
2227
|
-
selectedText = element.value;
|
|
2228
|
-
} else {
|
|
2229
|
-
if (element.hasAttribute("contenteditable")) {
|
|
2230
|
-
element.focus();
|
|
2231
|
-
}
|
|
2232
|
-
var selection = window.getSelection();
|
|
2233
|
-
var range = document.createRange();
|
|
2234
|
-
range.selectNodeContents(element);
|
|
2235
|
-
selection.removeAllRanges();
|
|
2236
|
-
selection.addRange(range);
|
|
2237
|
-
selectedText = selection.toString();
|
|
2238
|
-
}
|
|
2239
|
-
return selectedText;
|
|
2240
|
-
}
|
|
2241
|
-
module3.exports = select2;
|
|
2242
|
-
},
|
|
2243
|
-
279: function(module3) {
|
|
2244
|
-
function E() {
|
|
2245
|
-
}
|
|
2246
|
-
E.prototype = {
|
|
2247
|
-
on: function(name2, callback, ctx) {
|
|
2248
|
-
var e = this.e || (this.e = {});
|
|
2249
|
-
(e[name2] || (e[name2] = [])).push({
|
|
2250
|
-
fn: callback,
|
|
2251
|
-
ctx
|
|
2252
|
-
});
|
|
2253
|
-
return this;
|
|
2254
|
-
},
|
|
2255
|
-
once: function(name2, callback, ctx) {
|
|
2256
|
-
var self2 = this;
|
|
2257
|
-
function listener() {
|
|
2258
|
-
self2.off(name2, listener);
|
|
2259
|
-
callback.apply(ctx, arguments);
|
|
2260
|
-
}
|
|
2261
|
-
listener._ = callback;
|
|
2262
|
-
return this.on(name2, listener, ctx);
|
|
2263
|
-
},
|
|
2264
|
-
emit: function(name2) {
|
|
2265
|
-
var data = [].slice.call(arguments, 1);
|
|
2266
|
-
var evtArr = ((this.e || (this.e = {}))[name2] || []).slice();
|
|
2267
|
-
var i = 0;
|
|
2268
|
-
var len = evtArr.length;
|
|
2269
|
-
for (i; i < len; i++) {
|
|
2270
|
-
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
2271
|
-
}
|
|
2272
|
-
return this;
|
|
2273
|
-
},
|
|
2274
|
-
off: function(name2, callback) {
|
|
2275
|
-
var e = this.e || (this.e = {});
|
|
2276
|
-
var evts = e[name2];
|
|
2277
|
-
var liveEvents = [];
|
|
2278
|
-
if (evts && callback) {
|
|
2279
|
-
for (var i = 0, len = evts.length; i < len; i++) {
|
|
2280
|
-
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
2281
|
-
liveEvents.push(evts[i]);
|
|
2282
|
-
}
|
|
2283
|
-
}
|
|
2284
|
-
liveEvents.length ? e[name2] = liveEvents : delete e[name2];
|
|
2285
|
-
return this;
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
module3.exports = E;
|
|
2289
|
-
module3.exports.TinyEmitter = E;
|
|
2290
|
-
}
|
|
2291
|
-
};
|
|
2292
|
-
var __webpack_module_cache__ = {};
|
|
2293
|
-
function __webpack_require__(moduleId) {
|
|
2294
|
-
if (__webpack_module_cache__[moduleId]) {
|
|
2295
|
-
return __webpack_module_cache__[moduleId].exports;
|
|
2296
|
-
}
|
|
2297
|
-
var module3 = __webpack_module_cache__[moduleId] = {
|
|
2298
|
-
exports: {}
|
|
2299
|
-
};
|
|
2300
|
-
__webpack_modules__[moduleId](module3, module3.exports, __webpack_require__);
|
|
2301
|
-
return module3.exports;
|
|
2302
|
-
}
|
|
2303
|
-
!function() {
|
|
2304
|
-
__webpack_require__.n = function(module3) {
|
|
2305
|
-
var getter = module3 && module3.__esModule ? function() {
|
|
2306
|
-
return module3["default"];
|
|
2307
|
-
} : function() {
|
|
2308
|
-
return module3;
|
|
2309
|
-
};
|
|
2310
|
-
__webpack_require__.d(getter, { a: getter });
|
|
2311
|
-
return getter;
|
|
2312
|
-
};
|
|
2313
|
-
}();
|
|
2314
|
-
!function() {
|
|
2315
|
-
__webpack_require__.d = function(exports3, definition) {
|
|
2316
|
-
for (var key in definition) {
|
|
2317
|
-
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports3, key)) {
|
|
2318
|
-
Object.defineProperty(exports3, key, { enumerable: true, get: definition[key] });
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
};
|
|
2322
|
-
}();
|
|
2323
|
-
!function() {
|
|
2324
|
-
__webpack_require__.o = function(obj, prop) {
|
|
2325
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2326
|
-
};
|
|
2327
|
-
}();
|
|
2328
|
-
return __webpack_require__(686);
|
|
2329
|
-
}().default;
|
|
2330
|
-
});
|
|
2331
|
-
})(clipboard);
|
|
2332
|
-
var ClipboardJS = /* @__PURE__ */ getDefaultExportFromCjs(clipboard.exports);
|
|
2333
|
-
var _export_sfc$1 = (sfc, props) => {
|
|
2334
|
-
const target = sfc.__vccOpts || sfc;
|
|
2335
|
-
for (const [key, val] of props) {
|
|
2336
|
-
target[key] = val;
|
|
2337
|
-
}
|
|
2338
|
-
return target;
|
|
2339
|
-
};
|
|
2340
|
-
const _sfc_main$10 = defineComponent({
|
|
2341
|
-
name: "ArrowDownBold"
|
|
2342
|
-
});
|
|
2343
|
-
const _hoisted_1$D = {
|
|
2344
|
-
class: "icon",
|
|
2345
|
-
width: "200",
|
|
2346
|
-
height: "200",
|
|
2347
|
-
viewBox: "0 0 1024 1024",
|
|
2348
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2349
|
-
};
|
|
2350
|
-
const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
|
|
2351
|
-
fill: "currentColor",
|
|
2352
|
-
d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
|
|
2353
|
-
}, null, -1);
|
|
2354
|
-
const _hoisted_3$t = [
|
|
2355
|
-
_hoisted_2$u
|
|
2356
|
-
];
|
|
2357
|
-
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2358
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$t);
|
|
2359
|
-
}
|
|
2360
|
-
var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$m]]);
|
|
1797
|
+
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$l]]);
|
|
2361
1798
|
const _sfc_main$$ = defineComponent({
|
|
2362
|
-
name: "ArrowDown"
|
|
2363
|
-
});
|
|
2364
|
-
const _hoisted_1$C = {
|
|
2365
|
-
class: "icon",
|
|
2366
|
-
width: "200",
|
|
2367
|
-
height: "200",
|
|
2368
|
-
viewBox: "0 0 1024 1024",
|
|
2369
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2370
|
-
};
|
|
2371
|
-
const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
|
|
2372
|
-
fill: "currentColor",
|
|
2373
|
-
d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
|
|
2374
|
-
}, null, -1);
|
|
2375
|
-
const _hoisted_3$s = [
|
|
2376
|
-
_hoisted_2$t
|
|
2377
|
-
];
|
|
2378
|
-
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2379
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$s);
|
|
2380
|
-
}
|
|
2381
|
-
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render", _sfc_render$l]]);
|
|
2382
|
-
const _sfc_main$_ = defineComponent({
|
|
2383
1799
|
name: "CaretBottom"
|
|
2384
1800
|
});
|
|
2385
|
-
const _hoisted_1$
|
|
1801
|
+
const _hoisted_1$C = {
|
|
2386
1802
|
class: "icon",
|
|
2387
1803
|
width: "200",
|
|
2388
1804
|
height: "200",
|
|
@@ -2397,13 +1813,13 @@ const _hoisted_3$r = [
|
|
|
2397
1813
|
_hoisted_2$s
|
|
2398
1814
|
];
|
|
2399
1815
|
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2400
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1816
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$r);
|
|
2401
1817
|
}
|
|
2402
|
-
var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
2403
|
-
const _sfc_main$
|
|
1818
|
+
var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render", _sfc_render$k]]);
|
|
1819
|
+
const _sfc_main$_ = defineComponent({
|
|
2404
1820
|
name: "CaretRight"
|
|
2405
1821
|
});
|
|
2406
|
-
const _hoisted_1$
|
|
1822
|
+
const _hoisted_1$B = {
|
|
2407
1823
|
class: "icon",
|
|
2408
1824
|
width: "200",
|
|
2409
1825
|
height: "200",
|
|
@@ -2418,13 +1834,13 @@ const _hoisted_3$q = [
|
|
|
2418
1834
|
_hoisted_2$r
|
|
2419
1835
|
];
|
|
2420
1836
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2421
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1837
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$B, _hoisted_3$q);
|
|
2422
1838
|
}
|
|
2423
|
-
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2424
|
-
const _sfc_main$
|
|
1839
|
+
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["render", _sfc_render$j]]);
|
|
1840
|
+
const _sfc_main$Z = defineComponent({
|
|
2425
1841
|
name: "CaretTop"
|
|
2426
1842
|
});
|
|
2427
|
-
const _hoisted_1$
|
|
1843
|
+
const _hoisted_1$A = {
|
|
2428
1844
|
class: "icon",
|
|
2429
1845
|
width: "200",
|
|
2430
1846
|
height: "200",
|
|
@@ -2439,13 +1855,13 @@ const _hoisted_3$p = [
|
|
|
2439
1855
|
_hoisted_2$q
|
|
2440
1856
|
];
|
|
2441
1857
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2442
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1858
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$A, _hoisted_3$p);
|
|
2443
1859
|
}
|
|
2444
|
-
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2445
|
-
const _sfc_main$
|
|
1860
|
+
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["render", _sfc_render$i]]);
|
|
1861
|
+
const _sfc_main$Y = defineComponent({
|
|
2446
1862
|
name: "CirclePlusFilled"
|
|
2447
1863
|
});
|
|
2448
|
-
const _hoisted_1$
|
|
1864
|
+
const _hoisted_1$z = {
|
|
2449
1865
|
class: "icon",
|
|
2450
1866
|
width: "200",
|
|
2451
1867
|
height: "200",
|
|
@@ -2460,13 +1876,13 @@ const _hoisted_3$o = [
|
|
|
2460
1876
|
_hoisted_2$p
|
|
2461
1877
|
];
|
|
2462
1878
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2463
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1879
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$z, _hoisted_3$o);
|
|
2464
1880
|
}
|
|
2465
|
-
var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2466
|
-
const _sfc_main$
|
|
1881
|
+
var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _sfc_render$h]]);
|
|
1882
|
+
const _sfc_main$X = defineComponent({
|
|
2467
1883
|
name: "CirclePlus"
|
|
2468
1884
|
});
|
|
2469
|
-
const _hoisted_1$
|
|
1885
|
+
const _hoisted_1$y = {
|
|
2470
1886
|
class: "icon",
|
|
2471
1887
|
width: "200",
|
|
2472
1888
|
height: "200",
|
|
@@ -2491,13 +1907,13 @@ const _hoisted_5$5 = [
|
|
|
2491
1907
|
_hoisted_4$8
|
|
2492
1908
|
];
|
|
2493
1909
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2494
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1910
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_5$5);
|
|
2495
1911
|
}
|
|
2496
|
-
var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2497
|
-
const _sfc_main$
|
|
1912
|
+
var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$g]]);
|
|
1913
|
+
const _sfc_main$W = defineComponent({
|
|
2498
1914
|
name: "Download"
|
|
2499
1915
|
});
|
|
2500
|
-
const _hoisted_1$
|
|
1916
|
+
const _hoisted_1$x = {
|
|
2501
1917
|
class: "icon",
|
|
2502
1918
|
width: "200",
|
|
2503
1919
|
height: "200",
|
|
@@ -2512,13 +1928,13 @@ const _hoisted_3$m = [
|
|
|
2512
1928
|
_hoisted_2$n
|
|
2513
1929
|
];
|
|
2514
1930
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2515
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1931
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$m);
|
|
2516
1932
|
}
|
|
2517
|
-
var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2518
|
-
const _sfc_main$
|
|
1933
|
+
var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$f]]);
|
|
1934
|
+
const _sfc_main$V = defineComponent({
|
|
2519
1935
|
name: "Edit"
|
|
2520
1936
|
});
|
|
2521
|
-
const _hoisted_1$
|
|
1937
|
+
const _hoisted_1$w = {
|
|
2522
1938
|
class: "icon",
|
|
2523
1939
|
width: "200",
|
|
2524
1940
|
height: "200",
|
|
@@ -2538,13 +1954,13 @@ const _hoisted_4$7 = [
|
|
|
2538
1954
|
_hoisted_3$l
|
|
2539
1955
|
];
|
|
2540
1956
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2541
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1957
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_4$7);
|
|
2542
1958
|
}
|
|
2543
|
-
var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2544
|
-
const _sfc_main$
|
|
1959
|
+
var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$e]]);
|
|
1960
|
+
const _sfc_main$U = defineComponent({
|
|
2545
1961
|
name: "Filter"
|
|
2546
1962
|
});
|
|
2547
|
-
const _hoisted_1$
|
|
1963
|
+
const _hoisted_1$v = {
|
|
2548
1964
|
class: "icon",
|
|
2549
1965
|
width: "200",
|
|
2550
1966
|
height: "200",
|
|
@@ -2559,13 +1975,13 @@ const _hoisted_3$k = [
|
|
|
2559
1975
|
_hoisted_2$l
|
|
2560
1976
|
];
|
|
2561
1977
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2562
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1978
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$k);
|
|
2563
1979
|
}
|
|
2564
|
-
var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2565
|
-
const _sfc_main$
|
|
1980
|
+
var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$d]]);
|
|
1981
|
+
const _sfc_main$T = defineComponent({
|
|
2566
1982
|
name: "FullScreen"
|
|
2567
1983
|
});
|
|
2568
|
-
const _hoisted_1$
|
|
1984
|
+
const _hoisted_1$u = {
|
|
2569
1985
|
class: "icon",
|
|
2570
1986
|
width: "200",
|
|
2571
1987
|
height: "200",
|
|
@@ -2580,13 +1996,13 @@ const _hoisted_3$j = [
|
|
|
2580
1996
|
_hoisted_2$k
|
|
2581
1997
|
];
|
|
2582
1998
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2583
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1999
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$j);
|
|
2584
2000
|
}
|
|
2585
|
-
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2586
|
-
const _sfc_main$
|
|
2001
|
+
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$c]]);
|
|
2002
|
+
const _sfc_main$S = defineComponent({
|
|
2587
2003
|
name: "Grid"
|
|
2588
2004
|
});
|
|
2589
|
-
const _hoisted_1$
|
|
2005
|
+
const _hoisted_1$t = {
|
|
2590
2006
|
class: "icon",
|
|
2591
2007
|
width: "200",
|
|
2592
2008
|
height: "200",
|
|
@@ -2601,13 +2017,13 @@ const _hoisted_3$i = [
|
|
|
2601
2017
|
_hoisted_2$j
|
|
2602
2018
|
];
|
|
2603
2019
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2604
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2020
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$i);
|
|
2605
2021
|
}
|
|
2606
|
-
var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2607
|
-
const _sfc_main$
|
|
2022
|
+
var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$b]]);
|
|
2023
|
+
const _sfc_main$R = defineComponent({
|
|
2608
2024
|
name: "InfoFilled"
|
|
2609
2025
|
});
|
|
2610
|
-
const _hoisted_1$
|
|
2026
|
+
const _hoisted_1$s = {
|
|
2611
2027
|
class: "icon",
|
|
2612
2028
|
width: "200",
|
|
2613
2029
|
height: "200",
|
|
@@ -2622,13 +2038,13 @@ const _hoisted_3$h = [
|
|
|
2622
2038
|
_hoisted_2$i
|
|
2623
2039
|
];
|
|
2624
2040
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2625
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2041
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_3$h);
|
|
2626
2042
|
}
|
|
2627
|
-
var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2628
|
-
const _sfc_main$
|
|
2043
|
+
var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$a]]);
|
|
2044
|
+
const _sfc_main$Q = defineComponent({
|
|
2629
2045
|
name: "Loading"
|
|
2630
2046
|
});
|
|
2631
|
-
const _hoisted_1$
|
|
2047
|
+
const _hoisted_1$r = {
|
|
2632
2048
|
class: "icon",
|
|
2633
2049
|
width: "200",
|
|
2634
2050
|
height: "200",
|
|
@@ -2643,13 +2059,13 @@ const _hoisted_3$g = [
|
|
|
2643
2059
|
_hoisted_2$h
|
|
2644
2060
|
];
|
|
2645
2061
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2646
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2062
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$g);
|
|
2647
2063
|
}
|
|
2648
|
-
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2649
|
-
const _sfc_main$
|
|
2064
|
+
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$9]]);
|
|
2065
|
+
const _sfc_main$P = defineComponent({
|
|
2650
2066
|
name: "Menu"
|
|
2651
2067
|
});
|
|
2652
|
-
const _hoisted_1$
|
|
2068
|
+
const _hoisted_1$q = {
|
|
2653
2069
|
class: "icon",
|
|
2654
2070
|
width: "200",
|
|
2655
2071
|
height: "200",
|
|
@@ -2664,13 +2080,13 @@ const _hoisted_3$f = [
|
|
|
2664
2080
|
_hoisted_2$g
|
|
2665
2081
|
];
|
|
2666
2082
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2667
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2083
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_3$f);
|
|
2668
2084
|
}
|
|
2669
|
-
var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2670
|
-
const _sfc_main$
|
|
2085
|
+
var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$8]]);
|
|
2086
|
+
const _sfc_main$O = defineComponent({
|
|
2671
2087
|
name: "Plus"
|
|
2672
2088
|
});
|
|
2673
|
-
const _hoisted_1$
|
|
2089
|
+
const _hoisted_1$p = {
|
|
2674
2090
|
class: "icon",
|
|
2675
2091
|
width: "200",
|
|
2676
2092
|
height: "200",
|
|
@@ -2685,13 +2101,13 @@ const _hoisted_3$e = [
|
|
|
2685
2101
|
_hoisted_2$f
|
|
2686
2102
|
];
|
|
2687
2103
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2688
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2104
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$e);
|
|
2689
2105
|
}
|
|
2690
|
-
var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2691
|
-
const _sfc_main$
|
|
2106
|
+
var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$7]]);
|
|
2107
|
+
const _sfc_main$N = defineComponent({
|
|
2692
2108
|
name: "QuestionFilled"
|
|
2693
2109
|
});
|
|
2694
|
-
const _hoisted_1$
|
|
2110
|
+
const _hoisted_1$o = {
|
|
2695
2111
|
class: "icon",
|
|
2696
2112
|
width: "200",
|
|
2697
2113
|
height: "200",
|
|
@@ -2706,13 +2122,13 @@ const _hoisted_3$d = [
|
|
|
2706
2122
|
_hoisted_2$e
|
|
2707
2123
|
];
|
|
2708
2124
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2709
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2125
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$d);
|
|
2710
2126
|
}
|
|
2711
|
-
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2712
|
-
const _sfc_main$
|
|
2127
|
+
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$6]]);
|
|
2128
|
+
const _sfc_main$M = defineComponent({
|
|
2713
2129
|
name: "RefreshLeft"
|
|
2714
2130
|
});
|
|
2715
|
-
const _hoisted_1$
|
|
2131
|
+
const _hoisted_1$n = {
|
|
2716
2132
|
class: "icon",
|
|
2717
2133
|
width: "200",
|
|
2718
2134
|
height: "200",
|
|
@@ -2727,13 +2143,13 @@ const _hoisted_3$c = [
|
|
|
2727
2143
|
_hoisted_2$d
|
|
2728
2144
|
];
|
|
2729
2145
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2730
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2146
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$c);
|
|
2731
2147
|
}
|
|
2732
|
-
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2733
|
-
const _sfc_main$
|
|
2148
|
+
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$5]]);
|
|
2149
|
+
const _sfc_main$L = defineComponent({
|
|
2734
2150
|
name: "RemoveFilled"
|
|
2735
2151
|
});
|
|
2736
|
-
const _hoisted_1$
|
|
2152
|
+
const _hoisted_1$m = {
|
|
2737
2153
|
class: "icon",
|
|
2738
2154
|
width: "200",
|
|
2739
2155
|
height: "200",
|
|
@@ -2748,13 +2164,13 @@ const _hoisted_3$b = [
|
|
|
2748
2164
|
_hoisted_2$c
|
|
2749
2165
|
];
|
|
2750
2166
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2751
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2167
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$b);
|
|
2752
2168
|
}
|
|
2753
|
-
var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2754
|
-
const _sfc_main$
|
|
2169
|
+
var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$4]]);
|
|
2170
|
+
const _sfc_main$K = defineComponent({
|
|
2755
2171
|
name: "Remove"
|
|
2756
2172
|
});
|
|
2757
|
-
const _hoisted_1$
|
|
2173
|
+
const _hoisted_1$l = {
|
|
2758
2174
|
class: "icon",
|
|
2759
2175
|
width: "200",
|
|
2760
2176
|
height: "200",
|
|
@@ -2774,13 +2190,13 @@ const _hoisted_4$6 = [
|
|
|
2774
2190
|
_hoisted_3$a
|
|
2775
2191
|
];
|
|
2776
2192
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2777
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2193
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_4$6);
|
|
2778
2194
|
}
|
|
2779
|
-
var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2780
|
-
const _sfc_main$
|
|
2195
|
+
var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$3]]);
|
|
2196
|
+
const _sfc_main$J = defineComponent({
|
|
2781
2197
|
name: "Select"
|
|
2782
2198
|
});
|
|
2783
|
-
const _hoisted_1$
|
|
2199
|
+
const _hoisted_1$k = {
|
|
2784
2200
|
class: "icon",
|
|
2785
2201
|
width: "200",
|
|
2786
2202
|
height: "200",
|
|
@@ -2795,13 +2211,13 @@ const _hoisted_3$9 = [
|
|
|
2795
2211
|
_hoisted_2$a
|
|
2796
2212
|
];
|
|
2797
2213
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2798
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2214
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$9);
|
|
2799
2215
|
}
|
|
2800
|
-
var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2801
|
-
const _sfc_main$
|
|
2216
|
+
var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$2]]);
|
|
2217
|
+
const _sfc_main$I = defineComponent({
|
|
2802
2218
|
name: "Sort"
|
|
2803
2219
|
});
|
|
2804
|
-
const _hoisted_1$
|
|
2220
|
+
const _hoisted_1$j = {
|
|
2805
2221
|
class: "icon",
|
|
2806
2222
|
width: "200",
|
|
2807
2223
|
height: "200",
|
|
@@ -2816,13 +2232,13 @@ const _hoisted_3$8 = [
|
|
|
2816
2232
|
_hoisted_2$9
|
|
2817
2233
|
];
|
|
2818
2234
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2819
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2235
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$8);
|
|
2820
2236
|
}
|
|
2821
|
-
var sort = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2822
|
-
const _sfc_main$
|
|
2237
|
+
var sort = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$1]]);
|
|
2238
|
+
const _sfc_main$H = defineComponent({
|
|
2823
2239
|
name: "Tools"
|
|
2824
2240
|
});
|
|
2825
|
-
const _hoisted_1$
|
|
2241
|
+
const _hoisted_1$i = {
|
|
2826
2242
|
class: "icon",
|
|
2827
2243
|
width: "200",
|
|
2828
2244
|
height: "200",
|
|
@@ -2837,14 +2253,14 @@ const _hoisted_3$7 = [
|
|
|
2837
2253
|
_hoisted_2$8
|
|
2838
2254
|
];
|
|
2839
2255
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2840
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2256
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$7);
|
|
2841
2257
|
}
|
|
2842
|
-
var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2258
|
+
var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render]]);
|
|
2843
2259
|
const formManagerProvideKey = Symbol("form-manager");
|
|
2844
2260
|
const registerPropertyProvideKey = Symbol("registerProperty");
|
|
2845
2261
|
const isOpenAuthButtonProvideKey = Symbol("isOpenAuthButton");
|
|
2846
2262
|
const authButtonsProvideKey = Symbol("authButtons");
|
|
2847
|
-
const _sfc_main$
|
|
2263
|
+
const _sfc_main$G = {
|
|
2848
2264
|
name: "ButtonItemRender",
|
|
2849
2265
|
props: {
|
|
2850
2266
|
text: {
|
|
@@ -2868,16 +2284,663 @@ const _sfc_main$F = {
|
|
|
2868
2284
|
}
|
|
2869
2285
|
}
|
|
2870
2286
|
};
|
|
2871
|
-
|
|
2287
|
+
class EventChain {
|
|
2288
|
+
constructor() {
|
|
2289
|
+
__publicField(this, "chains", []);
|
|
2290
|
+
}
|
|
2291
|
+
setChain(chainItem) {
|
|
2292
|
+
this.chains.push(chainItem);
|
|
2293
|
+
return this;
|
|
2294
|
+
}
|
|
2295
|
+
passRequest(...rest) {
|
|
2296
|
+
const chains = this.chains;
|
|
2297
|
+
const len = chains.length;
|
|
2298
|
+
let result = false;
|
|
2299
|
+
for (let index2 = 0; index2 < len; index2++) {
|
|
2300
|
+
const chain = chains[index2];
|
|
2301
|
+
result = chain.apply(this, rest);
|
|
2302
|
+
if (result !== false) {
|
|
2303
|
+
break;
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
return result;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2310
|
+
function getDefaultExportFromCjs(x) {
|
|
2311
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2312
|
+
}
|
|
2313
|
+
var clipboard = { exports: {} };
|
|
2314
|
+
/*!
|
|
2315
|
+
* clipboard.js v2.0.10
|
|
2316
|
+
* https://clipboardjs.com/
|
|
2317
|
+
*
|
|
2318
|
+
* Licensed MIT © Zeno Rocha
|
|
2319
|
+
*/
|
|
2320
|
+
(function(module2, exports2) {
|
|
2321
|
+
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
2322
|
+
module2.exports = factory();
|
|
2323
|
+
})(commonjsGlobal, function() {
|
|
2324
|
+
return function() {
|
|
2325
|
+
var __webpack_modules__ = {
|
|
2326
|
+
686: function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
|
|
2327
|
+
__webpack_require__2.d(__webpack_exports__, {
|
|
2328
|
+
"default": function() {
|
|
2329
|
+
return clipboard2;
|
|
2330
|
+
}
|
|
2331
|
+
});
|
|
2332
|
+
var tiny_emitter = __webpack_require__2(279);
|
|
2333
|
+
var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
|
|
2334
|
+
var listen = __webpack_require__2(370);
|
|
2335
|
+
var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
|
|
2336
|
+
var src_select = __webpack_require__2(817);
|
|
2337
|
+
var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
|
|
2338
|
+
function command(type) {
|
|
2339
|
+
try {
|
|
2340
|
+
return document.execCommand(type);
|
|
2341
|
+
} catch (err) {
|
|
2342
|
+
return false;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
var ClipboardActionCut = function ClipboardActionCut2(target) {
|
|
2346
|
+
var selectedText = select_default()(target);
|
|
2347
|
+
command("cut");
|
|
2348
|
+
return selectedText;
|
|
2349
|
+
};
|
|
2350
|
+
var actions_cut = ClipboardActionCut;
|
|
2351
|
+
function createFakeElement(value) {
|
|
2352
|
+
var isRTL = document.documentElement.getAttribute("dir") === "rtl";
|
|
2353
|
+
var fakeElement = document.createElement("textarea");
|
|
2354
|
+
fakeElement.style.fontSize = "12pt";
|
|
2355
|
+
fakeElement.style.border = "0";
|
|
2356
|
+
fakeElement.style.padding = "0";
|
|
2357
|
+
fakeElement.style.margin = "0";
|
|
2358
|
+
fakeElement.style.position = "absolute";
|
|
2359
|
+
fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
|
|
2360
|
+
var yPosition = window.pageYOffset || document.documentElement.scrollTop;
|
|
2361
|
+
fakeElement.style.top = "".concat(yPosition, "px");
|
|
2362
|
+
fakeElement.setAttribute("readonly", "");
|
|
2363
|
+
fakeElement.value = value;
|
|
2364
|
+
return fakeElement;
|
|
2365
|
+
}
|
|
2366
|
+
var ClipboardActionCopy = function ClipboardActionCopy2(target) {
|
|
2367
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2368
|
+
container: document.body
|
|
2369
|
+
};
|
|
2370
|
+
var selectedText = "";
|
|
2371
|
+
if (typeof target === "string") {
|
|
2372
|
+
var fakeElement = createFakeElement(target);
|
|
2373
|
+
options.container.appendChild(fakeElement);
|
|
2374
|
+
selectedText = select_default()(fakeElement);
|
|
2375
|
+
command("copy");
|
|
2376
|
+
fakeElement.remove();
|
|
2377
|
+
} else {
|
|
2378
|
+
selectedText = select_default()(target);
|
|
2379
|
+
command("copy");
|
|
2380
|
+
}
|
|
2381
|
+
return selectedText;
|
|
2382
|
+
};
|
|
2383
|
+
var actions_copy = ClipboardActionCopy;
|
|
2384
|
+
function _typeof(obj) {
|
|
2385
|
+
"@babel/helpers - typeof";
|
|
2386
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2387
|
+
_typeof = function _typeof2(obj2) {
|
|
2388
|
+
return typeof obj2;
|
|
2389
|
+
};
|
|
2390
|
+
} else {
|
|
2391
|
+
_typeof = function _typeof2(obj2) {
|
|
2392
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
return _typeof(obj);
|
|
2396
|
+
}
|
|
2397
|
+
var ClipboardActionDefault = function ClipboardActionDefault2() {
|
|
2398
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2399
|
+
var _options$action = options.action, action = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text = options.text;
|
|
2400
|
+
if (action !== "copy" && action !== "cut") {
|
|
2401
|
+
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
2402
|
+
}
|
|
2403
|
+
if (target !== void 0) {
|
|
2404
|
+
if (target && _typeof(target) === "object" && target.nodeType === 1) {
|
|
2405
|
+
if (action === "copy" && target.hasAttribute("disabled")) {
|
|
2406
|
+
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
2407
|
+
}
|
|
2408
|
+
if (action === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
|
|
2409
|
+
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
2410
|
+
}
|
|
2411
|
+
} else {
|
|
2412
|
+
throw new Error('Invalid "target" value, use a valid Element');
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
if (text) {
|
|
2416
|
+
return actions_copy(text, {
|
|
2417
|
+
container
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
if (target) {
|
|
2421
|
+
return action === "cut" ? actions_cut(target) : actions_copy(target, {
|
|
2422
|
+
container
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
};
|
|
2426
|
+
var actions_default = ClipboardActionDefault;
|
|
2427
|
+
function clipboard_typeof(obj) {
|
|
2428
|
+
"@babel/helpers - typeof";
|
|
2429
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2430
|
+
clipboard_typeof = function _typeof2(obj2) {
|
|
2431
|
+
return typeof obj2;
|
|
2432
|
+
};
|
|
2433
|
+
} else {
|
|
2434
|
+
clipboard_typeof = function _typeof2(obj2) {
|
|
2435
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
return clipboard_typeof(obj);
|
|
2439
|
+
}
|
|
2440
|
+
function _classCallCheck(instance, Constructor) {
|
|
2441
|
+
if (!(instance instanceof Constructor)) {
|
|
2442
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
function _defineProperties(target, props) {
|
|
2446
|
+
for (var i = 0; i < props.length; i++) {
|
|
2447
|
+
var descriptor = props[i];
|
|
2448
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2449
|
+
descriptor.configurable = true;
|
|
2450
|
+
if ("value" in descriptor)
|
|
2451
|
+
descriptor.writable = true;
|
|
2452
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
2456
|
+
if (protoProps)
|
|
2457
|
+
_defineProperties(Constructor.prototype, protoProps);
|
|
2458
|
+
if (staticProps)
|
|
2459
|
+
_defineProperties(Constructor, staticProps);
|
|
2460
|
+
return Constructor;
|
|
2461
|
+
}
|
|
2462
|
+
function _inherits(subClass, superClass) {
|
|
2463
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
2464
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
2465
|
+
}
|
|
2466
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
2467
|
+
if (superClass)
|
|
2468
|
+
_setPrototypeOf(subClass, superClass);
|
|
2469
|
+
}
|
|
2470
|
+
function _setPrototypeOf(o, p) {
|
|
2471
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
2472
|
+
o2.__proto__ = p2;
|
|
2473
|
+
return o2;
|
|
2474
|
+
};
|
|
2475
|
+
return _setPrototypeOf(o, p);
|
|
2476
|
+
}
|
|
2477
|
+
function _createSuper(Derived) {
|
|
2478
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
2479
|
+
return function _createSuperInternal() {
|
|
2480
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
2481
|
+
if (hasNativeReflectConstruct) {
|
|
2482
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
2483
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
2484
|
+
} else {
|
|
2485
|
+
result = Super.apply(this, arguments);
|
|
2486
|
+
}
|
|
2487
|
+
return _possibleConstructorReturn(this, result);
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
function _possibleConstructorReturn(self2, call) {
|
|
2491
|
+
if (call && (clipboard_typeof(call) === "object" || typeof call === "function")) {
|
|
2492
|
+
return call;
|
|
2493
|
+
}
|
|
2494
|
+
return _assertThisInitialized(self2);
|
|
2495
|
+
}
|
|
2496
|
+
function _assertThisInitialized(self2) {
|
|
2497
|
+
if (self2 === void 0) {
|
|
2498
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2499
|
+
}
|
|
2500
|
+
return self2;
|
|
2501
|
+
}
|
|
2502
|
+
function _isNativeReflectConstruct() {
|
|
2503
|
+
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
2504
|
+
return false;
|
|
2505
|
+
if (Reflect.construct.sham)
|
|
2506
|
+
return false;
|
|
2507
|
+
if (typeof Proxy === "function")
|
|
2508
|
+
return true;
|
|
2509
|
+
try {
|
|
2510
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
2511
|
+
}));
|
|
2512
|
+
return true;
|
|
2513
|
+
} catch (e) {
|
|
2514
|
+
return false;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
function _getPrototypeOf(o) {
|
|
2518
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
2519
|
+
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
2520
|
+
};
|
|
2521
|
+
return _getPrototypeOf(o);
|
|
2522
|
+
}
|
|
2523
|
+
function getAttributeValue(suffix, element) {
|
|
2524
|
+
var attribute = "data-clipboard-".concat(suffix);
|
|
2525
|
+
if (!element.hasAttribute(attribute)) {
|
|
2526
|
+
return;
|
|
2527
|
+
}
|
|
2528
|
+
return element.getAttribute(attribute);
|
|
2529
|
+
}
|
|
2530
|
+
var Clipboard = /* @__PURE__ */ function(_Emitter) {
|
|
2531
|
+
_inherits(Clipboard2, _Emitter);
|
|
2532
|
+
var _super = _createSuper(Clipboard2);
|
|
2533
|
+
function Clipboard2(trigger, options) {
|
|
2534
|
+
var _this;
|
|
2535
|
+
_classCallCheck(this, Clipboard2);
|
|
2536
|
+
_this = _super.call(this);
|
|
2537
|
+
_this.resolveOptions(options);
|
|
2538
|
+
_this.listenClick(trigger);
|
|
2539
|
+
return _this;
|
|
2540
|
+
}
|
|
2541
|
+
_createClass(Clipboard2, [{
|
|
2542
|
+
key: "resolveOptions",
|
|
2543
|
+
value: function resolveOptions() {
|
|
2544
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2545
|
+
this.action = typeof options.action === "function" ? options.action : this.defaultAction;
|
|
2546
|
+
this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
|
|
2547
|
+
this.text = typeof options.text === "function" ? options.text : this.defaultText;
|
|
2548
|
+
this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
|
|
2549
|
+
}
|
|
2550
|
+
}, {
|
|
2551
|
+
key: "listenClick",
|
|
2552
|
+
value: function listenClick(trigger) {
|
|
2553
|
+
var _this2 = this;
|
|
2554
|
+
this.listener = listen_default()(trigger, "click", function(e) {
|
|
2555
|
+
return _this2.onClick(e);
|
|
2556
|
+
});
|
|
2557
|
+
}
|
|
2558
|
+
}, {
|
|
2559
|
+
key: "onClick",
|
|
2560
|
+
value: function onClick(e) {
|
|
2561
|
+
var trigger = e.delegateTarget || e.currentTarget;
|
|
2562
|
+
var action = this.action(trigger) || "copy";
|
|
2563
|
+
var text = actions_default({
|
|
2564
|
+
action,
|
|
2565
|
+
container: this.container,
|
|
2566
|
+
target: this.target(trigger),
|
|
2567
|
+
text: this.text(trigger)
|
|
2568
|
+
});
|
|
2569
|
+
this.emit(text ? "success" : "error", {
|
|
2570
|
+
action,
|
|
2571
|
+
text,
|
|
2572
|
+
trigger,
|
|
2573
|
+
clearSelection: function clearSelection() {
|
|
2574
|
+
if (trigger) {
|
|
2575
|
+
trigger.focus();
|
|
2576
|
+
}
|
|
2577
|
+
document.activeElement.blur();
|
|
2578
|
+
window.getSelection().removeAllRanges();
|
|
2579
|
+
}
|
|
2580
|
+
});
|
|
2581
|
+
}
|
|
2582
|
+
}, {
|
|
2583
|
+
key: "defaultAction",
|
|
2584
|
+
value: function defaultAction(trigger) {
|
|
2585
|
+
return getAttributeValue("action", trigger);
|
|
2586
|
+
}
|
|
2587
|
+
}, {
|
|
2588
|
+
key: "defaultTarget",
|
|
2589
|
+
value: function defaultTarget(trigger) {
|
|
2590
|
+
var selector = getAttributeValue("target", trigger);
|
|
2591
|
+
if (selector) {
|
|
2592
|
+
return document.querySelector(selector);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
}, {
|
|
2596
|
+
key: "defaultText",
|
|
2597
|
+
value: function defaultText(trigger) {
|
|
2598
|
+
return getAttributeValue("text", trigger);
|
|
2599
|
+
}
|
|
2600
|
+
}, {
|
|
2601
|
+
key: "destroy",
|
|
2602
|
+
value: function destroy() {
|
|
2603
|
+
this.listener.destroy();
|
|
2604
|
+
}
|
|
2605
|
+
}], [{
|
|
2606
|
+
key: "copy",
|
|
2607
|
+
value: function copy(target) {
|
|
2608
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2609
|
+
container: document.body
|
|
2610
|
+
};
|
|
2611
|
+
return actions_copy(target, options);
|
|
2612
|
+
}
|
|
2613
|
+
}, {
|
|
2614
|
+
key: "cut",
|
|
2615
|
+
value: function cut(target) {
|
|
2616
|
+
return actions_cut(target);
|
|
2617
|
+
}
|
|
2618
|
+
}, {
|
|
2619
|
+
key: "isSupported",
|
|
2620
|
+
value: function isSupported() {
|
|
2621
|
+
var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
|
|
2622
|
+
var actions = typeof action === "string" ? [action] : action;
|
|
2623
|
+
var support = !!document.queryCommandSupported;
|
|
2624
|
+
actions.forEach(function(action2) {
|
|
2625
|
+
support = support && !!document.queryCommandSupported(action2);
|
|
2626
|
+
});
|
|
2627
|
+
return support;
|
|
2628
|
+
}
|
|
2629
|
+
}]);
|
|
2630
|
+
return Clipboard2;
|
|
2631
|
+
}(tiny_emitter_default());
|
|
2632
|
+
var clipboard2 = Clipboard;
|
|
2633
|
+
},
|
|
2634
|
+
828: function(module3) {
|
|
2635
|
+
var DOCUMENT_NODE_TYPE = 9;
|
|
2636
|
+
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
2637
|
+
var proto = Element.prototype;
|
|
2638
|
+
proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
|
|
2639
|
+
}
|
|
2640
|
+
function closest(element, selector) {
|
|
2641
|
+
while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {
|
|
2642
|
+
if (typeof element.matches === "function" && element.matches(selector)) {
|
|
2643
|
+
return element;
|
|
2644
|
+
}
|
|
2645
|
+
element = element.parentNode;
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
module3.exports = closest;
|
|
2649
|
+
},
|
|
2650
|
+
438: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2651
|
+
var closest = __webpack_require__2(828);
|
|
2652
|
+
function _delegate(element, selector, type, callback, useCapture) {
|
|
2653
|
+
var listenerFn = listener.apply(this, arguments);
|
|
2654
|
+
element.addEventListener(type, listenerFn, useCapture);
|
|
2655
|
+
return {
|
|
2656
|
+
destroy: function() {
|
|
2657
|
+
element.removeEventListener(type, listenerFn, useCapture);
|
|
2658
|
+
}
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
function delegate(elements, selector, type, callback, useCapture) {
|
|
2662
|
+
if (typeof elements.addEventListener === "function") {
|
|
2663
|
+
return _delegate.apply(null, arguments);
|
|
2664
|
+
}
|
|
2665
|
+
if (typeof type === "function") {
|
|
2666
|
+
return _delegate.bind(null, document).apply(null, arguments);
|
|
2667
|
+
}
|
|
2668
|
+
if (typeof elements === "string") {
|
|
2669
|
+
elements = document.querySelectorAll(elements);
|
|
2670
|
+
}
|
|
2671
|
+
return Array.prototype.map.call(elements, function(element) {
|
|
2672
|
+
return _delegate(element, selector, type, callback, useCapture);
|
|
2673
|
+
});
|
|
2674
|
+
}
|
|
2675
|
+
function listener(element, selector, type, callback) {
|
|
2676
|
+
return function(e) {
|
|
2677
|
+
e.delegateTarget = closest(e.target, selector);
|
|
2678
|
+
if (e.delegateTarget) {
|
|
2679
|
+
callback.call(element, e);
|
|
2680
|
+
}
|
|
2681
|
+
};
|
|
2682
|
+
}
|
|
2683
|
+
module3.exports = delegate;
|
|
2684
|
+
},
|
|
2685
|
+
879: function(__unused_webpack_module, exports3) {
|
|
2686
|
+
exports3.node = function(value) {
|
|
2687
|
+
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
2688
|
+
};
|
|
2689
|
+
exports3.nodeList = function(value) {
|
|
2690
|
+
var type = Object.prototype.toString.call(value);
|
|
2691
|
+
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports3.node(value[0]));
|
|
2692
|
+
};
|
|
2693
|
+
exports3.string = function(value) {
|
|
2694
|
+
return typeof value === "string" || value instanceof String;
|
|
2695
|
+
};
|
|
2696
|
+
exports3.fn = function(value) {
|
|
2697
|
+
var type = Object.prototype.toString.call(value);
|
|
2698
|
+
return type === "[object Function]";
|
|
2699
|
+
};
|
|
2700
|
+
},
|
|
2701
|
+
370: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2702
|
+
var is = __webpack_require__2(879);
|
|
2703
|
+
var delegate = __webpack_require__2(438);
|
|
2704
|
+
function listen(target, type, callback) {
|
|
2705
|
+
if (!target && !type && !callback) {
|
|
2706
|
+
throw new Error("Missing required arguments");
|
|
2707
|
+
}
|
|
2708
|
+
if (!is.string(type)) {
|
|
2709
|
+
throw new TypeError("Second argument must be a String");
|
|
2710
|
+
}
|
|
2711
|
+
if (!is.fn(callback)) {
|
|
2712
|
+
throw new TypeError("Third argument must be a Function");
|
|
2713
|
+
}
|
|
2714
|
+
if (is.node(target)) {
|
|
2715
|
+
return listenNode(target, type, callback);
|
|
2716
|
+
} else if (is.nodeList(target)) {
|
|
2717
|
+
return listenNodeList(target, type, callback);
|
|
2718
|
+
} else if (is.string(target)) {
|
|
2719
|
+
return listenSelector(target, type, callback);
|
|
2720
|
+
} else {
|
|
2721
|
+
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
function listenNode(node, type, callback) {
|
|
2725
|
+
node.addEventListener(type, callback);
|
|
2726
|
+
return {
|
|
2727
|
+
destroy: function() {
|
|
2728
|
+
node.removeEventListener(type, callback);
|
|
2729
|
+
}
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
function listenNodeList(nodeList, type, callback) {
|
|
2733
|
+
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2734
|
+
node.addEventListener(type, callback);
|
|
2735
|
+
});
|
|
2736
|
+
return {
|
|
2737
|
+
destroy: function() {
|
|
2738
|
+
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2739
|
+
node.removeEventListener(type, callback);
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
};
|
|
2743
|
+
}
|
|
2744
|
+
function listenSelector(selector, type, callback) {
|
|
2745
|
+
return delegate(document.body, selector, type, callback);
|
|
2746
|
+
}
|
|
2747
|
+
module3.exports = listen;
|
|
2748
|
+
},
|
|
2749
|
+
817: function(module3) {
|
|
2750
|
+
function select2(element) {
|
|
2751
|
+
var selectedText;
|
|
2752
|
+
if (element.nodeName === "SELECT") {
|
|
2753
|
+
element.focus();
|
|
2754
|
+
selectedText = element.value;
|
|
2755
|
+
} else if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {
|
|
2756
|
+
var isReadOnly = element.hasAttribute("readonly");
|
|
2757
|
+
if (!isReadOnly) {
|
|
2758
|
+
element.setAttribute("readonly", "");
|
|
2759
|
+
}
|
|
2760
|
+
element.select();
|
|
2761
|
+
element.setSelectionRange(0, element.value.length);
|
|
2762
|
+
if (!isReadOnly) {
|
|
2763
|
+
element.removeAttribute("readonly");
|
|
2764
|
+
}
|
|
2765
|
+
selectedText = element.value;
|
|
2766
|
+
} else {
|
|
2767
|
+
if (element.hasAttribute("contenteditable")) {
|
|
2768
|
+
element.focus();
|
|
2769
|
+
}
|
|
2770
|
+
var selection = window.getSelection();
|
|
2771
|
+
var range = document.createRange();
|
|
2772
|
+
range.selectNodeContents(element);
|
|
2773
|
+
selection.removeAllRanges();
|
|
2774
|
+
selection.addRange(range);
|
|
2775
|
+
selectedText = selection.toString();
|
|
2776
|
+
}
|
|
2777
|
+
return selectedText;
|
|
2778
|
+
}
|
|
2779
|
+
module3.exports = select2;
|
|
2780
|
+
},
|
|
2781
|
+
279: function(module3) {
|
|
2782
|
+
function E() {
|
|
2783
|
+
}
|
|
2784
|
+
E.prototype = {
|
|
2785
|
+
on: function(name2, callback, ctx) {
|
|
2786
|
+
var e = this.e || (this.e = {});
|
|
2787
|
+
(e[name2] || (e[name2] = [])).push({
|
|
2788
|
+
fn: callback,
|
|
2789
|
+
ctx
|
|
2790
|
+
});
|
|
2791
|
+
return this;
|
|
2792
|
+
},
|
|
2793
|
+
once: function(name2, callback, ctx) {
|
|
2794
|
+
var self2 = this;
|
|
2795
|
+
function listener() {
|
|
2796
|
+
self2.off(name2, listener);
|
|
2797
|
+
callback.apply(ctx, arguments);
|
|
2798
|
+
}
|
|
2799
|
+
listener._ = callback;
|
|
2800
|
+
return this.on(name2, listener, ctx);
|
|
2801
|
+
},
|
|
2802
|
+
emit: function(name2) {
|
|
2803
|
+
var data = [].slice.call(arguments, 1);
|
|
2804
|
+
var evtArr = ((this.e || (this.e = {}))[name2] || []).slice();
|
|
2805
|
+
var i = 0;
|
|
2806
|
+
var len = evtArr.length;
|
|
2807
|
+
for (i; i < len; i++) {
|
|
2808
|
+
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
2809
|
+
}
|
|
2810
|
+
return this;
|
|
2811
|
+
},
|
|
2812
|
+
off: function(name2, callback) {
|
|
2813
|
+
var e = this.e || (this.e = {});
|
|
2814
|
+
var evts = e[name2];
|
|
2815
|
+
var liveEvents = [];
|
|
2816
|
+
if (evts && callback) {
|
|
2817
|
+
for (var i = 0, len = evts.length; i < len; i++) {
|
|
2818
|
+
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
2819
|
+
liveEvents.push(evts[i]);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
liveEvents.length ? e[name2] = liveEvents : delete e[name2];
|
|
2823
|
+
return this;
|
|
2824
|
+
}
|
|
2825
|
+
};
|
|
2826
|
+
module3.exports = E;
|
|
2827
|
+
module3.exports.TinyEmitter = E;
|
|
2828
|
+
}
|
|
2829
|
+
};
|
|
2830
|
+
var __webpack_module_cache__ = {};
|
|
2831
|
+
function __webpack_require__(moduleId) {
|
|
2832
|
+
if (__webpack_module_cache__[moduleId]) {
|
|
2833
|
+
return __webpack_module_cache__[moduleId].exports;
|
|
2834
|
+
}
|
|
2835
|
+
var module3 = __webpack_module_cache__[moduleId] = {
|
|
2836
|
+
exports: {}
|
|
2837
|
+
};
|
|
2838
|
+
__webpack_modules__[moduleId](module3, module3.exports, __webpack_require__);
|
|
2839
|
+
return module3.exports;
|
|
2840
|
+
}
|
|
2841
|
+
!function() {
|
|
2842
|
+
__webpack_require__.n = function(module3) {
|
|
2843
|
+
var getter = module3 && module3.__esModule ? function() {
|
|
2844
|
+
return module3["default"];
|
|
2845
|
+
} : function() {
|
|
2846
|
+
return module3;
|
|
2847
|
+
};
|
|
2848
|
+
__webpack_require__.d(getter, { a: getter });
|
|
2849
|
+
return getter;
|
|
2850
|
+
};
|
|
2851
|
+
}();
|
|
2852
|
+
!function() {
|
|
2853
|
+
__webpack_require__.d = function(exports3, definition) {
|
|
2854
|
+
for (var key in definition) {
|
|
2855
|
+
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports3, key)) {
|
|
2856
|
+
Object.defineProperty(exports3, key, { enumerable: true, get: definition[key] });
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
};
|
|
2860
|
+
}();
|
|
2861
|
+
!function() {
|
|
2862
|
+
__webpack_require__.o = function(obj, prop) {
|
|
2863
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2864
|
+
};
|
|
2865
|
+
}();
|
|
2866
|
+
return __webpack_require__(686);
|
|
2867
|
+
}().default;
|
|
2868
|
+
});
|
|
2869
|
+
})(clipboard);
|
|
2870
|
+
var ClipboardJS = /* @__PURE__ */ getDefaultExportFromCjs(clipboard.exports);
|
|
2871
|
+
const addButtonHandler = (button, emit, executeData = []) => {
|
|
2872
|
+
if (!button.isAdd) {
|
|
2873
|
+
return false;
|
|
2874
|
+
}
|
|
2875
|
+
emit("add", ...executeData);
|
|
2876
|
+
};
|
|
2877
|
+
const updButtonHandler = (button, emit, executeData = []) => {
|
|
2878
|
+
if (!button.isEdit) {
|
|
2879
|
+
return false;
|
|
2880
|
+
}
|
|
2881
|
+
emit("upd", ...executeData);
|
|
2882
|
+
};
|
|
2883
|
+
const delButtonHandler = (button, emit, executeData = []) => {
|
|
2884
|
+
if (!button.isDel) {
|
|
2885
|
+
return false;
|
|
2886
|
+
}
|
|
2887
|
+
emit("del", ...executeData);
|
|
2888
|
+
};
|
|
2889
|
+
const importButtonHandler = (button, emit, executeData = []) => {
|
|
2890
|
+
if (!button.isImport) {
|
|
2891
|
+
return false;
|
|
2892
|
+
}
|
|
2893
|
+
emit("import", ...executeData);
|
|
2894
|
+
};
|
|
2895
|
+
const copyButtonHandler = (button, emit, executeData = [], context) => {
|
|
2896
|
+
if (!button.isCopy) {
|
|
2897
|
+
return false;
|
|
2898
|
+
}
|
|
2899
|
+
const copyText = typeof button.copyText === "function" ? button.copyText.apply(context, executeData != null ? executeData : []) : button.copyText;
|
|
2900
|
+
let fakerBtn = document.createElement("button");
|
|
2901
|
+
fakerBtn.setAttribute("data-clipboard-text", copyText != null ? copyText : "");
|
|
2902
|
+
let clipboard2 = new ClipboardJS(fakerBtn);
|
|
2903
|
+
clipboard2.on("success", (e) => {
|
|
2904
|
+
e.clearSelection();
|
|
2905
|
+
ElMessage({
|
|
2906
|
+
message: "\u62F7\u8D1D\u6210\u529F!",
|
|
2907
|
+
type: "success"
|
|
2908
|
+
});
|
|
2909
|
+
clipboard2.destroy();
|
|
2910
|
+
});
|
|
2911
|
+
fakerBtn.click();
|
|
2912
|
+
fakerBtn = null;
|
|
2913
|
+
};
|
|
2914
|
+
const eventButtonHandler = (button, emit, executeData = []) => {
|
|
2915
|
+
if (button.event) {
|
|
2916
|
+
emit("custom", button.event, ...executeData);
|
|
2917
|
+
} else {
|
|
2918
|
+
return false;
|
|
2919
|
+
}
|
|
2920
|
+
};
|
|
2921
|
+
const eventChain = new EventChain();
|
|
2922
|
+
eventChain.setChain(addButtonHandler).setChain(updButtonHandler).setChain(delButtonHandler).setChain(importButtonHandler).setChain(eventButtonHandler).setChain(copyButtonHandler);
|
|
2923
|
+
const execButtonClickEvent = (button, emit, executeData = [], context) => {
|
|
2924
|
+
eventChain.passRequest(button, emit, executeData, context);
|
|
2925
|
+
};
|
|
2926
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$c = "";
|
|
2927
|
+
var _export_sfc = (sfc, props) => {
|
|
2928
|
+
const target = sfc.__vccOpts || sfc;
|
|
2929
|
+
for (const [key, val] of props) {
|
|
2930
|
+
target[key] = val;
|
|
2931
|
+
}
|
|
2932
|
+
return target;
|
|
2933
|
+
};
|
|
2872
2934
|
const __default__$l = {
|
|
2873
2935
|
name: "ButtonRenderer"
|
|
2874
2936
|
};
|
|
2875
|
-
const _sfc_main$
|
|
2937
|
+
const _sfc_main$F = defineComponent({
|
|
2876
2938
|
...__default__$l,
|
|
2877
2939
|
props: {
|
|
2878
2940
|
els: {},
|
|
2879
2941
|
context: {},
|
|
2880
|
-
executeData: { default: () => [] }
|
|
2942
|
+
executeData: { default: () => [] },
|
|
2943
|
+
direction: { default: "horizontal" }
|
|
2881
2944
|
},
|
|
2882
2945
|
emits: ["add", "upd", "del", "import", "custom"],
|
|
2883
2946
|
setup(__props, { emit: __emit }) {
|
|
@@ -2902,70 +2965,14 @@ const _sfc_main$E = defineComponent({
|
|
|
2902
2965
|
});
|
|
2903
2966
|
const { BEMSpace, createBEMName } = createBEMSpace("buttons-renderer");
|
|
2904
2967
|
const emit = __emit;
|
|
2905
|
-
const addButtonHandler = (button) => {
|
|
2906
|
-
if (!button.isAdd) {
|
|
2907
|
-
return false;
|
|
2908
|
-
}
|
|
2909
|
-
emit("add", ...props.executeData);
|
|
2910
|
-
};
|
|
2911
|
-
const updButtonHandler = (button) => {
|
|
2912
|
-
if (!button.isEdit) {
|
|
2913
|
-
return false;
|
|
2914
|
-
}
|
|
2915
|
-
emit("upd", ...props.executeData);
|
|
2916
|
-
};
|
|
2917
|
-
const delButtonHandler = (button) => {
|
|
2918
|
-
if (!button.isDel) {
|
|
2919
|
-
return false;
|
|
2920
|
-
}
|
|
2921
|
-
emit("del", ...props.executeData);
|
|
2922
|
-
};
|
|
2923
|
-
const importButtonHandler = (button) => {
|
|
2924
|
-
if (!button.isImport) {
|
|
2925
|
-
return false;
|
|
2926
|
-
}
|
|
2927
|
-
emit("import", ...props.executeData);
|
|
2928
|
-
};
|
|
2929
|
-
const copyButtonHandler = (button) => {
|
|
2930
|
-
var _a;
|
|
2931
|
-
if (!button.isCopy) {
|
|
2932
|
-
return false;
|
|
2933
|
-
}
|
|
2934
|
-
const copyText = typeof button.copyText === "function" ? button.copyText.apply(props.context, (_a = props.executeData) != null ? _a : []) : button.copyText;
|
|
2935
|
-
let fakerBtn = document.createElement("button");
|
|
2936
|
-
fakerBtn.setAttribute("data-clipboard-text", copyText != null ? copyText : "");
|
|
2937
|
-
let clipboard2 = new ClipboardJS(fakerBtn);
|
|
2938
|
-
clipboard2.on("success", (e) => {
|
|
2939
|
-
e.clearSelection();
|
|
2940
|
-
ElMessage({
|
|
2941
|
-
message: "\u62F7\u8D1D\u6210\u529F!",
|
|
2942
|
-
type: "success"
|
|
2943
|
-
});
|
|
2944
|
-
clipboard2.destroy();
|
|
2945
|
-
});
|
|
2946
|
-
fakerBtn.click();
|
|
2947
|
-
fakerBtn = null;
|
|
2948
|
-
};
|
|
2949
|
-
const eventButtonHandler = (button) => {
|
|
2950
|
-
if (button.event) {
|
|
2951
|
-
emit("custom", button.event, ...props.executeData);
|
|
2952
|
-
} else {
|
|
2953
|
-
return false;
|
|
2954
|
-
}
|
|
2955
|
-
};
|
|
2956
|
-
const eventChain = new EventChain();
|
|
2957
|
-
eventChain.setChain(addButtonHandler).setChain(updButtonHandler).setChain(delButtonHandler).setChain(importButtonHandler).setChain(eventButtonHandler).setChain(copyButtonHandler);
|
|
2958
|
-
const execButtonClickEvent = (button) => {
|
|
2959
|
-
eventChain.passRequest(button);
|
|
2960
|
-
};
|
|
2961
2968
|
const handleCommand = (command) => {
|
|
2962
2969
|
var _a;
|
|
2963
2970
|
const indexs = command.split("-").map((a) => Number(a));
|
|
2964
2971
|
const button = ((_a = showEls.value[indexs[0]].children) != null ? _a : [])[indexs[1]];
|
|
2965
|
-
execButtonClickEvent(button);
|
|
2972
|
+
execButtonClickEvent(button, emit, props.executeData, props.context);
|
|
2966
2973
|
};
|
|
2967
2974
|
const handleButtonClick = (index2) => {
|
|
2968
|
-
execButtonClickEvent(showEls.value[index2]);
|
|
2975
|
+
execButtonClickEvent(showEls.value[index2], emit, props.executeData, props.context);
|
|
2969
2976
|
};
|
|
2970
2977
|
return (_ctx, _cache) => {
|
|
2971
2978
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -2975,111 +2982,112 @@ const _sfc_main$E = defineComponent({
|
|
|
2975
2982
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
2976
2983
|
const _component_el_badge = resolveComponent("el-badge");
|
|
2977
2984
|
return openBlock(), createElementBlock("div", {
|
|
2978
|
-
class: normalizeClass(unref(BEMSpace))
|
|
2985
|
+
class: normalizeClass([unref(BEMSpace), _ctx.direction === "vertical" ? "vertical" : "horizontal"])
|
|
2979
2986
|
}, [
|
|
2980
2987
|
(openBlock(true), createElementBlock(Fragment, null, renderList(showEls.value, (button, index2) => {
|
|
2981
|
-
var _a;
|
|
2982
2988
|
return openBlock(), createElementBlock("div", {
|
|
2983
2989
|
key: index2,
|
|
2984
2990
|
class: normalizeClass(unref(createBEMName)("item"))
|
|
2985
2991
|
}, [
|
|
2986
|
-
(
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
)
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
2992
|
+
renderSlot(_ctx.$slots, "default", {
|
|
2993
|
+
item: button,
|
|
2994
|
+
index: index2
|
|
2995
|
+
}, () => {
|
|
2996
|
+
var _a;
|
|
2997
|
+
return [
|
|
2998
|
+
((_a = button.children) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_el_dropdown, {
|
|
2999
|
+
key: 0,
|
|
3000
|
+
"hide-on-click": false,
|
|
3001
|
+
onCommand: handleCommand
|
|
3002
|
+
}, {
|
|
3003
|
+
dropdown: withCtx(() => [
|
|
3004
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
3005
|
+
default: withCtx(() => [
|
|
3006
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(button.children, (cButton, cIndex) => {
|
|
3007
|
+
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
3008
|
+
key: cIndex,
|
|
3009
|
+
command: `${index2}-${cIndex}`,
|
|
3010
|
+
disabled: cButton.isDisabled ? Boolean(
|
|
3011
|
+
cButton.isDisabled.apply(this, [cButton, ...props.executeData])
|
|
3012
|
+
) : false
|
|
3013
|
+
}, {
|
|
3014
|
+
default: withCtx(() => [
|
|
3015
|
+
createTextVNode(toDisplayString(cButton.text), 1)
|
|
3016
|
+
]),
|
|
3017
|
+
_: 2
|
|
3018
|
+
}, 1032, ["command", "disabled"]);
|
|
3019
|
+
}), 128))
|
|
3020
|
+
]),
|
|
3021
|
+
_: 2
|
|
3022
|
+
}, 1024)
|
|
3008
3023
|
]),
|
|
3009
|
-
_: 2
|
|
3010
|
-
}, 1024)
|
|
3011
|
-
]),
|
|
3012
|
-
default: withCtx(() => [
|
|
3013
|
-
createVNode(_component_el_button, mergeProps({ ref_for: true }, button.props, {
|
|
3014
|
-
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
3015
|
-
}), {
|
|
3016
3024
|
default: withCtx(() => [
|
|
3017
|
-
createVNode(
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
text: button.text
|
|
3021
|
-
}, null, 8, ["context", "render-fn", "text"]),
|
|
3022
|
-
createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
|
|
3025
|
+
createVNode(_component_el_button, mergeProps({ ref_for: true }, button.props, {
|
|
3026
|
+
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
3027
|
+
}), {
|
|
3023
3028
|
default: withCtx(() => [
|
|
3024
|
-
createVNode(
|
|
3029
|
+
createVNode(_sfc_main$G, {
|
|
3030
|
+
context: _ctx.context,
|
|
3031
|
+
"render-fn": button.renderFn,
|
|
3032
|
+
text: button.text
|
|
3033
|
+
}, null, 8, ["context", "render-fn", "text"]),
|
|
3034
|
+
createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
|
|
3035
|
+
default: withCtx(() => [
|
|
3036
|
+
createVNode(unref(arrowDown))
|
|
3037
|
+
]),
|
|
3038
|
+
_: 1
|
|
3039
|
+
})
|
|
3025
3040
|
]),
|
|
3026
|
-
_:
|
|
3027
|
-
})
|
|
3041
|
+
_: 2
|
|
3042
|
+
}, 1040, ["onClick"])
|
|
3028
3043
|
]),
|
|
3029
3044
|
_: 2
|
|
3030
|
-
},
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
]
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
]
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
}, 1032, ["value", "max"]))
|
|
3045
|
+
}, 1024)) : (openBlock(), createBlock(_component_el_badge, {
|
|
3046
|
+
key: 1,
|
|
3047
|
+
value: button.count,
|
|
3048
|
+
max: button.maxCount
|
|
3049
|
+
}, {
|
|
3050
|
+
default: withCtx(() => {
|
|
3051
|
+
var _a2;
|
|
3052
|
+
return [
|
|
3053
|
+
button.renderFn ? (openBlock(), createBlock(_sfc_main$G, {
|
|
3054
|
+
key: 0,
|
|
3055
|
+
context: _ctx.context,
|
|
3056
|
+
"render-fn": button.renderFn,
|
|
3057
|
+
text: button.text,
|
|
3058
|
+
onClick: ($event) => handleButtonClick(index2)
|
|
3059
|
+
}, null, 8, ["context", "render-fn", "text", "onClick"])) : (openBlock(), createBlock(_component_el_button, mergeProps({
|
|
3060
|
+
key: 1,
|
|
3061
|
+
ref_for: true
|
|
3062
|
+
}, button.props, {
|
|
3063
|
+
icon: ((_a2 = button.props) == null ? void 0 : _a2.icon) ? typeof button.props.icon === "string" ? button.props.icon : { ...button.props.icon } : null,
|
|
3064
|
+
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
3065
|
+
}), {
|
|
3066
|
+
default: withCtx(() => [
|
|
3067
|
+
createTextVNode(toDisplayString(button.text), 1)
|
|
3068
|
+
]),
|
|
3069
|
+
_: 2
|
|
3070
|
+
}, 1040, ["icon", "onClick"]))
|
|
3071
|
+
];
|
|
3072
|
+
}),
|
|
3073
|
+
_: 2
|
|
3074
|
+
}, 1032, ["value", "max"]))
|
|
3075
|
+
];
|
|
3076
|
+
}, true)
|
|
3063
3077
|
], 2);
|
|
3064
3078
|
}), 128))
|
|
3065
3079
|
], 2);
|
|
3066
3080
|
};
|
|
3067
3081
|
}
|
|
3068
3082
|
});
|
|
3069
|
-
var
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3072
|
-
for (const [key, val] of props) {
|
|
3073
|
-
target[key] = val;
|
|
3074
|
-
}
|
|
3075
|
-
return target;
|
|
3076
|
-
};
|
|
3077
|
-
const _hoisted_1$g = { class: "selectable-operate" };
|
|
3083
|
+
var ButtonsRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-37e0fa28"]]);
|
|
3084
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$b = "";
|
|
3085
|
+
const _hoisted_1$h = { class: "selectable-operate" };
|
|
3078
3086
|
const __default__$k = {
|
|
3079
3087
|
name: "SelectableOpearte",
|
|
3080
3088
|
inheritAttrs: false
|
|
3081
3089
|
};
|
|
3082
|
-
const _sfc_main$
|
|
3090
|
+
const _sfc_main$E = defineComponent({
|
|
3083
3091
|
...__default__$k,
|
|
3084
3092
|
props: {
|
|
3085
3093
|
els: {},
|
|
@@ -3093,8 +3101,8 @@ const _sfc_main$D = defineComponent({
|
|
|
3093
3101
|
return ((_a = props.tableManager) == null ? void 0 : _a.selection) || [];
|
|
3094
3102
|
});
|
|
3095
3103
|
return (_ctx, _cache) => {
|
|
3096
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3097
|
-
createVNode(
|
|
3104
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
3105
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
3098
3106
|
els: props.els,
|
|
3099
3107
|
"execute-data": [executeData.value],
|
|
3100
3108
|
context: props.manager
|
|
@@ -3103,7 +3111,7 @@ const _sfc_main$D = defineComponent({
|
|
|
3103
3111
|
};
|
|
3104
3112
|
}
|
|
3105
3113
|
});
|
|
3106
|
-
var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3114
|
+
var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4e4544c2"]]);
|
|
3107
3115
|
class SearchFormManager extends IManager {
|
|
3108
3116
|
constructor(form) {
|
|
3109
3117
|
super();
|
|
@@ -3171,7 +3179,7 @@ class SearchFormManager extends IManager {
|
|
|
3171
3179
|
this.manager = manager;
|
|
3172
3180
|
}
|
|
3173
3181
|
}
|
|
3174
|
-
const _sfc_main$
|
|
3182
|
+
const _sfc_main$D = defineComponent({
|
|
3175
3183
|
name: "FormItemRenderer",
|
|
3176
3184
|
props: {
|
|
3177
3185
|
modelValue: null,
|
|
@@ -3390,10 +3398,10 @@ const useMove = (callback) => {
|
|
|
3390
3398
|
return { destroy, bind };
|
|
3391
3399
|
};
|
|
3392
3400
|
var index_vue_vue_type_style_index_0_lang$a = "";
|
|
3393
|
-
const _hoisted_1$
|
|
3401
|
+
const _hoisted_1$g = { class: "el-dialog__title" };
|
|
3394
3402
|
const MIN_WIDTH = 300;
|
|
3395
3403
|
const MIN_HEIGHT = 160;
|
|
3396
|
-
const _sfc_main$
|
|
3404
|
+
const _sfc_main$C = defineComponent({
|
|
3397
3405
|
__name: "index",
|
|
3398
3406
|
props: {
|
|
3399
3407
|
modelValue: { type: Boolean },
|
|
@@ -3462,7 +3470,7 @@ const _sfc_main$B = defineComponent({
|
|
|
3462
3470
|
class: `${unref(BEMSpace)} ${props.customClass}`
|
|
3463
3471
|
}, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
|
|
3464
3472
|
header: withCtx(() => [
|
|
3465
|
-
createElementVNode("span", _hoisted_1$
|
|
3473
|
+
createElementVNode("span", _hoisted_1$g, toDisplayString(_ctx.title), 1)
|
|
3466
3474
|
]),
|
|
3467
3475
|
default: withCtx(() => [
|
|
3468
3476
|
renderSlot(_ctx.$slots, "default"),
|
|
@@ -3486,7 +3494,7 @@ const _sfc_main$B = defineComponent({
|
|
|
3486
3494
|
}
|
|
3487
3495
|
});
|
|
3488
3496
|
var index_vue_vue_type_style_index_0_lang$9 = "";
|
|
3489
|
-
const _sfc_main$
|
|
3497
|
+
const _sfc_main$B = defineComponent({
|
|
3490
3498
|
__name: "index",
|
|
3491
3499
|
emits: ["filter"],
|
|
3492
3500
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -3521,7 +3529,7 @@ const _sfc_main$A = defineComponent({
|
|
|
3521
3529
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
3522
3530
|
const _component_el_form = resolveComponent("el-form");
|
|
3523
3531
|
const _component_el_button = resolveComponent("el-button");
|
|
3524
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3532
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
3525
3533
|
modelValue: isShow.value,
|
|
3526
3534
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
|
|
3527
3535
|
title: "\u7B5B\u9009\u6761\u4EF6",
|
|
@@ -3567,7 +3575,7 @@ const _sfc_main$A = defineComponent({
|
|
|
3567
3575
|
prop: item.prop
|
|
3568
3576
|
}), {
|
|
3569
3577
|
default: withCtx(() => [
|
|
3570
|
-
createVNode(_sfc_main$
|
|
3578
|
+
createVNode(_sfc_main$D, {
|
|
3571
3579
|
modelValue: formData.value[item.prop],
|
|
3572
3580
|
"onUpdate:modelValue": ($event) => formData.value[item.prop] = $event,
|
|
3573
3581
|
renderFn: item.renderFn,
|
|
@@ -3686,6 +3694,9 @@ const _PageModelManager = class extends Reflections {
|
|
|
3686
3694
|
__publicField(this, "isTableSelecting", false);
|
|
3687
3695
|
__publicField(this, "loadingInstance");
|
|
3688
3696
|
__publicField(this, "authButtons", []);
|
|
3697
|
+
__publicField(this, "exposeActions", {});
|
|
3698
|
+
__publicField(this, "isFilterPopupVisible", false);
|
|
3699
|
+
__publicField(this, "isSortPopupVisible", false);
|
|
3689
3700
|
this.id = managerController.getManagerId();
|
|
3690
3701
|
}
|
|
3691
3702
|
static setDefaultConfig(config) {
|
|
@@ -4113,6 +4124,12 @@ const _PageModelManager = class extends Reflections {
|
|
|
4113
4124
|
updateAuthButtons(buttons) {
|
|
4114
4125
|
this.authButtons = buttons;
|
|
4115
4126
|
}
|
|
4127
|
+
updateFilterPopupVisible(visible) {
|
|
4128
|
+
this.isFilterPopupVisible = visible;
|
|
4129
|
+
}
|
|
4130
|
+
updateSortPopupVisible(visible) {
|
|
4131
|
+
this.isSortPopupVisible = visible;
|
|
4132
|
+
}
|
|
4116
4133
|
destroy() {
|
|
4117
4134
|
this.children.forEach((item) => {
|
|
4118
4135
|
item.destroy();
|
|
@@ -4239,7 +4256,7 @@ var index_vue_vue_type_style_index_0_lang$8 = "";
|
|
|
4239
4256
|
const __default__$j = {
|
|
4240
4257
|
name: "PageModelSearchForm"
|
|
4241
4258
|
};
|
|
4242
|
-
const _sfc_main$
|
|
4259
|
+
const _sfc_main$A = defineComponent({
|
|
4243
4260
|
...__default__$j,
|
|
4244
4261
|
props: {
|
|
4245
4262
|
form: {},
|
|
@@ -4393,7 +4410,7 @@ const _sfc_main$z = defineComponent({
|
|
|
4393
4410
|
style: { width: ((_a = item.style) == null ? void 0 : _a.width) || unref(searchFormItemWidth) }
|
|
4394
4411
|
}), {
|
|
4395
4412
|
default: withCtx(() => [
|
|
4396
|
-
createVNode(_sfc_main$
|
|
4413
|
+
createVNode(_sfc_main$D, {
|
|
4397
4414
|
modelValue: searchFormManager.formData[item.prop],
|
|
4398
4415
|
"onUpdate:modelValue": ($event) => searchFormManager.formData[item.prop] = $event,
|
|
4399
4416
|
renderFn: item.renderFn,
|
|
@@ -4476,7 +4493,7 @@ const _sfc_main$z = defineComponent({
|
|
|
4476
4493
|
}, [
|
|
4477
4494
|
renderSlot(_ctx.$slots, "default")
|
|
4478
4495
|
], 2),
|
|
4479
|
-
searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$
|
|
4496
|
+
searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$B, {
|
|
4480
4497
|
key: 0,
|
|
4481
4498
|
ref_key: "SearchFormFullRef",
|
|
4482
4499
|
ref: SearchFormFullRef,
|
|
@@ -4604,6 +4621,7 @@ class TableManager extends IManager {
|
|
|
4604
4621
|
__publicField(this, "sortParams", {});
|
|
4605
4622
|
__publicField(this, "isInitColumnParams", false);
|
|
4606
4623
|
__publicField(this, "isInitColumnSortParams", false);
|
|
4624
|
+
__publicField(this, "isColumnToolsVisible", false);
|
|
4607
4625
|
__publicField(this, "randomRowKey", null);
|
|
4608
4626
|
__publicField(this, "columnParamsList", []);
|
|
4609
4627
|
__publicField(this, "columnSortParamsList", []);
|
|
@@ -4618,6 +4636,7 @@ class TableManager extends IManager {
|
|
|
4618
4636
|
__publicField(this, "saveContent");
|
|
4619
4637
|
__publicField(this, "scrollTop", 0);
|
|
4620
4638
|
__publicField(this, "scrollLeft", 0);
|
|
4639
|
+
__publicField(this, "exposeActions", {});
|
|
4621
4640
|
this.propsConfig = config;
|
|
4622
4641
|
this.init();
|
|
4623
4642
|
}
|
|
@@ -4643,6 +4662,9 @@ class TableManager extends IManager {
|
|
|
4643
4662
|
this.columnSortParamsList = params || [];
|
|
4644
4663
|
this.isInitColumnSortParams = true;
|
|
4645
4664
|
}
|
|
4665
|
+
updateColumnToolsVisible(visible) {
|
|
4666
|
+
this.isColumnToolsVisible = visible;
|
|
4667
|
+
}
|
|
4646
4668
|
get table() {
|
|
4647
4669
|
var _a;
|
|
4648
4670
|
return ((_a = this.config) == null ? void 0 : _a.table) || this.propsConfig || {
|
|
@@ -4831,6 +4853,7 @@ class TableManager extends IManager {
|
|
|
4831
4853
|
}
|
|
4832
4854
|
this.patchTableSelectable();
|
|
4833
4855
|
this.patchTableRadio();
|
|
4856
|
+
this.patchTableContextMenu();
|
|
4834
4857
|
const isUseSort = this.table.els.some((a) => a.sortValues);
|
|
4835
4858
|
if (isUseSort) {
|
|
4836
4859
|
this.patchTableSortable();
|
|
@@ -4881,6 +4904,18 @@ class TableManager extends IManager {
|
|
|
4881
4904
|
}.bind(this);
|
|
4882
4905
|
}
|
|
4883
4906
|
}
|
|
4907
|
+
patchTableContextMenu() {
|
|
4908
|
+
if (!this.table.contextMenu) {
|
|
4909
|
+
return false;
|
|
4910
|
+
}
|
|
4911
|
+
const _rowContextmenu = this.tableEvents["rowContextmenu"];
|
|
4912
|
+
this.tableEvents["rowContextmenu"] = function(row, column, event) {
|
|
4913
|
+
_rowContextmenu == null ? void 0 : _rowContextmenu.call(this, row, column, event);
|
|
4914
|
+
event.preventDefault();
|
|
4915
|
+
const rowIndex = this.tableData.findIndex((a) => a[this.rowKey] === row[this.rowKey]);
|
|
4916
|
+
this.exposeActions.showContextMenu(row, rowIndex, event);
|
|
4917
|
+
}.bind(this);
|
|
4918
|
+
}
|
|
4884
4919
|
patchTableSortable() {
|
|
4885
4920
|
const _this = this;
|
|
4886
4921
|
const _sortChange = this.tableEvents["sortChange"];
|
|
@@ -5350,7 +5385,7 @@ class TableManager extends IManager {
|
|
|
5350
5385
|
this.removeCellOutClickEvent();
|
|
5351
5386
|
}
|
|
5352
5387
|
}
|
|
5353
|
-
const _sfc_main$
|
|
5388
|
+
const _sfc_main$z = defineComponent({
|
|
5354
5389
|
name: "TableCellRenderer",
|
|
5355
5390
|
props: {
|
|
5356
5391
|
renderFn: {
|
|
@@ -5388,29 +5423,36 @@ const _sfc_main$y = defineComponent({
|
|
|
5388
5423
|
};
|
|
5389
5424
|
}
|
|
5390
5425
|
});
|
|
5391
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
5426
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$a = "";
|
|
5392
5427
|
const __default__$i = {
|
|
5393
5428
|
name: "SimplePopover"
|
|
5394
5429
|
};
|
|
5395
|
-
const _sfc_main$
|
|
5430
|
+
const _sfc_main$y = defineComponent({
|
|
5396
5431
|
...__default__$i,
|
|
5397
5432
|
props: {
|
|
5398
5433
|
width: { default: 200 },
|
|
5399
5434
|
placement: { default: "right" }
|
|
5400
5435
|
},
|
|
5401
|
-
|
|
5436
|
+
emits: ["closed"],
|
|
5437
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
5402
5438
|
const { BEMSpace } = createBEMSpace("simple-popover");
|
|
5403
5439
|
const props = __props;
|
|
5440
|
+
const emit = __emit;
|
|
5404
5441
|
const { nextZIndex } = useZIndex();
|
|
5405
5442
|
const visible = ref(false);
|
|
5406
5443
|
const isRender = ref(false);
|
|
5444
|
+
let hideTimer = null;
|
|
5407
5445
|
watch(
|
|
5408
5446
|
() => visible.value,
|
|
5409
5447
|
(val) => {
|
|
5410
5448
|
if (val) {
|
|
5411
5449
|
isRender.value = true;
|
|
5450
|
+
if (hideTimer) {
|
|
5451
|
+
clearTimeout(hideTimer);
|
|
5452
|
+
hideTimer = null;
|
|
5453
|
+
}
|
|
5412
5454
|
} else {
|
|
5413
|
-
setTimeout(() => {
|
|
5455
|
+
hideTimer = setTimeout(() => {
|
|
5414
5456
|
isRender.value = false;
|
|
5415
5457
|
}, 300);
|
|
5416
5458
|
}
|
|
@@ -5471,7 +5513,7 @@ const _sfc_main$x = defineComponent({
|
|
|
5471
5513
|
return false;
|
|
5472
5514
|
}
|
|
5473
5515
|
};
|
|
5474
|
-
const
|
|
5516
|
+
const handleClickElement = (e) => {
|
|
5475
5517
|
if (isChildElement(popoverRef.value, e.target) || isPopperChildElement(e.target)) {
|
|
5476
5518
|
return;
|
|
5477
5519
|
}
|
|
@@ -5481,35 +5523,50 @@ const _sfc_main$x = defineComponent({
|
|
|
5481
5523
|
currentTriggerElement && getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5482
5524
|
}, 100);
|
|
5483
5525
|
const bindEvent = () => {
|
|
5484
|
-
document.addEventListener("mousedown",
|
|
5485
|
-
document.addEventListener("touchstart",
|
|
5526
|
+
document.addEventListener("mousedown", handleClickElement);
|
|
5527
|
+
document.addEventListener("touchstart", handleClickElement);
|
|
5486
5528
|
window.addEventListener("resize", handleResize);
|
|
5487
5529
|
};
|
|
5488
5530
|
const unbindEvent = () => {
|
|
5489
|
-
document.removeEventListener("mousedown",
|
|
5490
|
-
document.removeEventListener("touchstart",
|
|
5531
|
+
document.removeEventListener("mousedown", handleClickElement);
|
|
5532
|
+
document.removeEventListener("touchstart", handleClickElement);
|
|
5491
5533
|
window.removeEventListener("resize", handleResize);
|
|
5492
5534
|
};
|
|
5493
5535
|
const hide = () => {
|
|
5536
|
+
currentTriggerElement = null;
|
|
5494
5537
|
unbindEvent();
|
|
5495
5538
|
visible.value = false;
|
|
5539
|
+
emit("closed");
|
|
5496
5540
|
};
|
|
5497
5541
|
const zIndex = ref(0);
|
|
5498
5542
|
const show = (element) => {
|
|
5499
|
-
if (
|
|
5500
|
-
|
|
5543
|
+
if (element instanceof DOMRect) {
|
|
5544
|
+
currentTriggerElement = null;
|
|
5545
|
+
popoverRectInfo.value = element;
|
|
5546
|
+
if (visible.value) {
|
|
5501
5547
|
hide();
|
|
5502
|
-
return;
|
|
5503
5548
|
}
|
|
5504
|
-
|
|
5549
|
+
zIndex.value = nextZIndex();
|
|
5550
|
+
visible.value = true;
|
|
5551
|
+
setTimeout(() => {
|
|
5552
|
+
bindEvent();
|
|
5553
|
+
}, 0);
|
|
5554
|
+
} else {
|
|
5555
|
+
if (visible.value) {
|
|
5556
|
+
if (currentTriggerElement === element) {
|
|
5557
|
+
hide();
|
|
5558
|
+
return;
|
|
5559
|
+
}
|
|
5560
|
+
unbindEvent();
|
|
5561
|
+
}
|
|
5562
|
+
zIndex.value = nextZIndex();
|
|
5563
|
+
currentTriggerElement = element;
|
|
5564
|
+
getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5565
|
+
visible.value = true;
|
|
5566
|
+
setTimeout(() => {
|
|
5567
|
+
bindEvent();
|
|
5568
|
+
}, 0);
|
|
5505
5569
|
}
|
|
5506
|
-
zIndex.value = nextZIndex();
|
|
5507
|
-
currentTriggerElement = element;
|
|
5508
|
-
getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5509
|
-
visible.value = true;
|
|
5510
|
-
setTimeout(() => {
|
|
5511
|
-
bindEvent();
|
|
5512
|
-
}, 0);
|
|
5513
5570
|
};
|
|
5514
5571
|
__expose({
|
|
5515
5572
|
show,
|
|
@@ -5533,7 +5590,7 @@ const _sfc_main$x = defineComponent({
|
|
|
5533
5590
|
};
|
|
5534
5591
|
}
|
|
5535
5592
|
});
|
|
5536
|
-
var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5593
|
+
var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-200a6b63"]]);
|
|
5537
5594
|
var FilterItemTypeEnum$1 = /* @__PURE__ */ ((FilterItemTypeEnum2) => {
|
|
5538
5595
|
FilterItemTypeEnum2["\u6587\u5B57"] = "string";
|
|
5539
5596
|
FilterItemTypeEnum2["\u6570\u5B57"] = "number";
|
|
@@ -5636,9 +5693,9 @@ const compareOptions$1 = {
|
|
|
5636
5693
|
}
|
|
5637
5694
|
]
|
|
5638
5695
|
};
|
|
5639
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
5640
|
-
const _hoisted_1$
|
|
5641
|
-
const _sfc_main$
|
|
5696
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$9 = "";
|
|
5697
|
+
const _hoisted_1$f = { key: 1 };
|
|
5698
|
+
const _sfc_main$x = defineComponent({
|
|
5642
5699
|
__name: "index",
|
|
5643
5700
|
props: {
|
|
5644
5701
|
tableManager: {}
|
|
@@ -6018,7 +6075,7 @@ const _sfc_main$w = defineComponent({
|
|
|
6018
6075
|
createTextVNode("\u7B5B\u9009\u6761\u4EF6")
|
|
6019
6076
|
]),
|
|
6020
6077
|
_: 1
|
|
6021
|
-
}, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6078
|
+
}, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_1$f)),
|
|
6022
6079
|
createElementVNode("div", null, [
|
|
6023
6080
|
createVNode(_component_el_button, { onClick: handleClear }, {
|
|
6024
6081
|
default: withCtx(() => [
|
|
@@ -6042,9 +6099,9 @@ const _sfc_main$w = defineComponent({
|
|
|
6042
6099
|
};
|
|
6043
6100
|
}
|
|
6044
6101
|
});
|
|
6045
|
-
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6102
|
+
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-9b1b33b8"]]);
|
|
6046
6103
|
var index_vue_vue_type_style_index_0_lang$7 = "";
|
|
6047
|
-
const _hoisted_1$
|
|
6104
|
+
const _hoisted_1$e = ["data-key", "title"];
|
|
6048
6105
|
const _hoisted_2$7 = {
|
|
6049
6106
|
key: 0,
|
|
6050
6107
|
style: { "color": "red" }
|
|
@@ -6069,7 +6126,7 @@ const _hoisted_10$1 = ["onClick"];
|
|
|
6069
6126
|
const __default__$h = {
|
|
6070
6127
|
name: "TableColumn"
|
|
6071
6128
|
};
|
|
6072
|
-
const _sfc_main$
|
|
6129
|
+
const _sfc_main$w = defineComponent({
|
|
6073
6130
|
...__default__$h,
|
|
6074
6131
|
props: {
|
|
6075
6132
|
els: {},
|
|
@@ -6229,7 +6286,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6229
6286
|
_: 1
|
|
6230
6287
|
})
|
|
6231
6288
|
], 14, _hoisted_3$6)) : createCommentVNode("", true)
|
|
6232
|
-
], 10, _hoisted_1$
|
|
6289
|
+
], 10, _hoisted_1$e)
|
|
6233
6290
|
]),
|
|
6234
6291
|
default: withCtx(({ row, $index, column: columnEl }) => [
|
|
6235
6292
|
column.children ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -6256,7 +6313,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6256
6313
|
) ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
6257
6314
|
column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
6258
6315
|
createElementVNode("div", _hoisted_6$3, [
|
|
6259
|
-
createVNode(_sfc_main$
|
|
6316
|
+
createVNode(_sfc_main$D, {
|
|
6260
6317
|
modelValue: row[column.editData.prop || column.prop],
|
|
6261
6318
|
renderFn: column.editData.renderFn,
|
|
6262
6319
|
context: props.context,
|
|
@@ -6292,7 +6349,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6292
6349
|
])) : createCommentVNode("", true)
|
|
6293
6350
|
], 64)) : (openBlock(), createElementBlock("div", _hoisted_8$1, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
|
|
6294
6351
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6295
|
-
column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$
|
|
6352
|
+
column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$z, {
|
|
6296
6353
|
key: 0,
|
|
6297
6354
|
"render-fn": column.renderFn,
|
|
6298
6355
|
context: props.context,
|
|
@@ -7296,7 +7353,7 @@ var Sortable = Sortable_min.exports;
|
|
|
7296
7353
|
const __default__$g = {
|
|
7297
7354
|
name: "DraggableList"
|
|
7298
7355
|
};
|
|
7299
|
-
const _sfc_main$
|
|
7356
|
+
const _sfc_main$v = defineComponent({
|
|
7300
7357
|
...__default__$g,
|
|
7301
7358
|
props: {
|
|
7302
7359
|
modelValue: {},
|
|
@@ -7397,7 +7454,7 @@ var setting_vue_vue_type_style_index_1_lang$2 = "";
|
|
|
7397
7454
|
const __default__$f = {
|
|
7398
7455
|
name: "SaveColumnSetting"
|
|
7399
7456
|
};
|
|
7400
|
-
const _sfc_main$
|
|
7457
|
+
const _sfc_main$u = defineComponent({
|
|
7401
7458
|
...__default__$f,
|
|
7402
7459
|
props: {
|
|
7403
7460
|
onlyShow: { type: Boolean, default: false }
|
|
@@ -7473,7 +7530,7 @@ const _sfc_main$t = defineComponent({
|
|
|
7473
7530
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
7474
7531
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
7475
7532
|
const _component_el_button = resolveComponent("el-button");
|
|
7476
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7533
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
7477
7534
|
modelValue: visible.value,
|
|
7478
7535
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
7479
7536
|
title: "\u7F16\u8F91\u8868\u683C",
|
|
@@ -7522,7 +7579,7 @@ const _sfc_main$t = defineComponent({
|
|
|
7522
7579
|
createElementVNode("div", {
|
|
7523
7580
|
class: normalizeClass(unref(createBEMName)("column-table-wrap"))
|
|
7524
7581
|
}, [
|
|
7525
|
-
createVNode(_sfc_main$
|
|
7582
|
+
createVNode(_sfc_main$v, {
|
|
7526
7583
|
modelValue: innerEls.value,
|
|
7527
7584
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
7528
7585
|
"item-key": "_key"
|
|
@@ -7717,7 +7774,7 @@ var userConfig_vue_vue_type_style_index_1_lang = "";
|
|
|
7717
7774
|
const __default__$e = {
|
|
7718
7775
|
name: "SaveUserConfig"
|
|
7719
7776
|
};
|
|
7720
|
-
const _sfc_main$
|
|
7777
|
+
const _sfc_main$t = defineComponent({
|
|
7721
7778
|
...__default__$e,
|
|
7722
7779
|
emits: ["submit", "closed"],
|
|
7723
7780
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -7781,7 +7838,7 @@ const _sfc_main$s = defineComponent({
|
|
|
7781
7838
|
};
|
|
7782
7839
|
return (_ctx, _cache) => {
|
|
7783
7840
|
const _component_el_button = resolveComponent("el-button");
|
|
7784
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7841
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
7785
7842
|
modelValue: visible.value,
|
|
7786
7843
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
7787
7844
|
title: "\u7F16\u8F91\u79C1\u4EBA\u914D\u7F6E",
|
|
@@ -7848,7 +7905,7 @@ const useUserConfig = () => {
|
|
|
7848
7905
|
var index_vue_vue_type_style_index_0_lang$6 = "";
|
|
7849
7906
|
var index_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
|
|
7850
7907
|
const _withScopeId$3 = (n) => (pushScopeId("data-v-7bf8eedc"), n = n(), popScopeId(), n);
|
|
7851
|
-
const _hoisted_1$
|
|
7908
|
+
const _hoisted_1$d = { title: "\u5168\u9009/\u53D6\u6D88" };
|
|
7852
7909
|
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("i", {
|
|
7853
7910
|
class: "pm-icon icon-drag-dot",
|
|
7854
7911
|
title: "\u62D6\u52A8\u8C03\u6574\u663E\u793A\u987A\u5E8F"
|
|
@@ -7856,7 +7913,7 @@ const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
|
|
|
7856
7913
|
const _hoisted_3$5 = ["title"];
|
|
7857
7914
|
const _hoisted_4$4 = ["title", "onClick"];
|
|
7858
7915
|
const _hoisted_5$3 = ["title", "onClick"];
|
|
7859
|
-
const _sfc_main$
|
|
7916
|
+
const _sfc_main$s = defineComponent({
|
|
7860
7917
|
__name: "index",
|
|
7861
7918
|
props: {
|
|
7862
7919
|
els: {}
|
|
@@ -7950,7 +8007,7 @@ const _sfc_main$r = defineComponent({
|
|
|
7950
8007
|
createElementVNode("div", {
|
|
7951
8008
|
class: normalizeClass(unref(createBEMName)("header"))
|
|
7952
8009
|
}, [
|
|
7953
|
-
createElementVNode("span", _hoisted_1$
|
|
8010
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
7954
8011
|
createVNode(_component_el_checkbox, {
|
|
7955
8012
|
label: "\u5168\u90E8",
|
|
7956
8013
|
modelValue: isAllShow.value,
|
|
@@ -7988,7 +8045,7 @@ const _sfc_main$r = defineComponent({
|
|
|
7988
8045
|
createElementVNode("div", {
|
|
7989
8046
|
class: normalizeClass(unref(createBEMName)("list"))
|
|
7990
8047
|
}, [
|
|
7991
|
-
createVNode(_sfc_main$
|
|
8048
|
+
createVNode(_sfc_main$v, {
|
|
7992
8049
|
modelValue: innerEls.value,
|
|
7993
8050
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => innerEls.value = $event),
|
|
7994
8051
|
class: normalizeClass(unref(BEMSpace))
|
|
@@ -8054,14 +8111,14 @@ const _sfc_main$r = defineComponent({
|
|
|
8054
8111
|
_: 1
|
|
8055
8112
|
})
|
|
8056
8113
|
], 2),
|
|
8057
|
-
unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$
|
|
8114
|
+
unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$u, {
|
|
8058
8115
|
key: 0,
|
|
8059
8116
|
ref_key: "columnToolsSettingRef",
|
|
8060
8117
|
ref: columnToolsSettingRef,
|
|
8061
8118
|
onSubmit: onSubmitColumns,
|
|
8062
8119
|
onClosed: unref(onColumnToolsSettingClosed)
|
|
8063
8120
|
}, null, 8, ["onClosed"])) : createCommentVNode("", true),
|
|
8064
|
-
unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$
|
|
8121
|
+
unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$t, {
|
|
8065
8122
|
key: 1,
|
|
8066
8123
|
ref_key: "userConfigRef",
|
|
8067
8124
|
ref: userConfigRef,
|
|
@@ -8072,17 +8129,17 @@ const _sfc_main$r = defineComponent({
|
|
|
8072
8129
|
};
|
|
8073
8130
|
}
|
|
8074
8131
|
});
|
|
8075
|
-
var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8076
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
8132
|
+
var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7bf8eedc"]]);
|
|
8133
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
|
|
8077
8134
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-15dbe923"), n = n(), popScopeId(), n);
|
|
8078
|
-
const _hoisted_1$
|
|
8135
|
+
const _hoisted_1$c = { key: 0 };
|
|
8079
8136
|
const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
|
|
8080
8137
|
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u9875\u5F00\u59CB\u5BFC\u51FA\uFF0C\u6BCF\u9875", -1));
|
|
8081
8138
|
const _hoisted_4$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u6761\u6570\u636E", -1));
|
|
8082
8139
|
const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
8083
8140
|
const _hoisted_6$2 = { class: "export-columns" };
|
|
8084
8141
|
const _hoisted_7$2 = { class: "bottom-box" };
|
|
8085
|
-
const _sfc_main$
|
|
8142
|
+
const _sfc_main$r = defineComponent({
|
|
8086
8143
|
__name: "index",
|
|
8087
8144
|
emits: ["closed"],
|
|
8088
8145
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -8235,7 +8292,7 @@ const _sfc_main$q = defineComponent({
|
|
|
8235
8292
|
const _component_el_empty = resolveComponent("el-empty");
|
|
8236
8293
|
const _component_el_button = resolveComponent("el-button");
|
|
8237
8294
|
const _directive_loading = resolveDirective("loading");
|
|
8238
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8295
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
8239
8296
|
modelValue: visible.value,
|
|
8240
8297
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => visible.value = $event),
|
|
8241
8298
|
title: "\u5BFC\u51FA\u8868\u683C\u6570\u636E",
|
|
@@ -8320,7 +8377,7 @@ const _sfc_main$q = defineComponent({
|
|
|
8320
8377
|
]),
|
|
8321
8378
|
_: 1
|
|
8322
8379
|
}, 8, ["modelValue"]),
|
|
8323
|
-
formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8380
|
+
formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
8324
8381
|
_hoisted_2$5,
|
|
8325
8382
|
createVNode(_component_el_input_number, {
|
|
8326
8383
|
modelValue: formData.pageIndex,
|
|
@@ -8409,35 +8466,35 @@ const _sfc_main$q = defineComponent({
|
|
|
8409
8466
|
};
|
|
8410
8467
|
}
|
|
8411
8468
|
});
|
|
8412
|
-
var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8469
|
+
var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-15dbe923"]]);
|
|
8413
8470
|
const SAVE_NAME$2 = "table-columns";
|
|
8414
8471
|
const columnsSaver$1 = new ConfigSaver(SAVE_NAME$2);
|
|
8415
8472
|
const saveTableColumns = columnsSaver$1.setContents.bind(columnsSaver$1);
|
|
8416
8473
|
const genSaveColumnName = columnsSaver$1.genScopeItemKey.bind(columnsSaver$1);
|
|
8417
8474
|
const saveColumns$1 = columnsSaver$1.saveContentItem.bind(columnsSaver$1);
|
|
8418
8475
|
const getColumns$1 = columnsSaver$1.getContentItem.bind(columnsSaver$1);
|
|
8419
|
-
const _hoisted_1$
|
|
8476
|
+
const _hoisted_1$b = { class: "el-table__empty-data" };
|
|
8420
8477
|
const __default__$d = {
|
|
8421
8478
|
name: "EmptyData"
|
|
8422
8479
|
};
|
|
8423
|
-
const _sfc_main$
|
|
8480
|
+
const _sfc_main$q = defineComponent({
|
|
8424
8481
|
...__default__$d,
|
|
8425
8482
|
props: {
|
|
8426
8483
|
text: {}
|
|
8427
8484
|
},
|
|
8428
8485
|
setup(__props) {
|
|
8429
8486
|
return (_ctx, _cache) => {
|
|
8430
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8487
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
8431
8488
|
createElementVNode("span", null, toDisplayString(_ctx.text || "\u6682\u65E0\u6570\u636E"), 1)
|
|
8432
8489
|
]);
|
|
8433
8490
|
};
|
|
8434
8491
|
}
|
|
8435
8492
|
});
|
|
8436
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
8493
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
8437
8494
|
const __default__$c = {
|
|
8438
8495
|
name: "SelectionsTable"
|
|
8439
8496
|
};
|
|
8440
|
-
const _sfc_main$
|
|
8497
|
+
const _sfc_main$p = defineComponent({
|
|
8441
8498
|
...__default__$c,
|
|
8442
8499
|
emits: ["closed"],
|
|
8443
8500
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -8504,7 +8561,7 @@ const _sfc_main$o = defineComponent({
|
|
|
8504
8561
|
});
|
|
8505
8562
|
return (_ctx, _cache) => {
|
|
8506
8563
|
const _component_el_button = resolveComponent("el-button");
|
|
8507
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8564
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
8508
8565
|
modelValue: visible.value,
|
|
8509
8566
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
8510
8567
|
title: "\u5DF2\u9009\u6570\u636E",
|
|
@@ -8553,7 +8610,7 @@ const _sfc_main$o = defineComponent({
|
|
|
8553
8610
|
};
|
|
8554
8611
|
}
|
|
8555
8612
|
});
|
|
8556
|
-
var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8613
|
+
var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3b4b4ed8"]]);
|
|
8557
8614
|
const useSelectionsTable = () => {
|
|
8558
8615
|
const selectionsTableRef = ref();
|
|
8559
8616
|
const isRenderSelectionsTable = ref(false);
|
|
@@ -8715,7 +8772,7 @@ const useExportForm = () => {
|
|
|
8715
8772
|
onExportFormClosed: onClosed
|
|
8716
8773
|
};
|
|
8717
8774
|
};
|
|
8718
|
-
const _sfc_main$
|
|
8775
|
+
const _sfc_main$o = {
|
|
8719
8776
|
props: {
|
|
8720
8777
|
isLoading: {
|
|
8721
8778
|
type: Boolean,
|
|
@@ -8776,6 +8833,96 @@ const useColumnDrag = () => {
|
|
|
8776
8833
|
}
|
|
8777
8834
|
};
|
|
8778
8835
|
};
|
|
8836
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
8837
|
+
const _hoisted_1$a = ["onClick"];
|
|
8838
|
+
const _sfc_main$n = defineComponent({
|
|
8839
|
+
__name: "index",
|
|
8840
|
+
emits: ["add", "upd", "del", "import", "custom"],
|
|
8841
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8842
|
+
const emit = __emit;
|
|
8843
|
+
const simplePopoverRef = ref();
|
|
8844
|
+
const currentOpt = ref();
|
|
8845
|
+
const contextMenuHeight = computed(() => {
|
|
8846
|
+
var _a, _b;
|
|
8847
|
+
const elementLength = ((_b = (_a = currentOpt.value) == null ? void 0 : _a.els) == null ? void 0 : _b.length) || 0;
|
|
8848
|
+
const maxShowCount = 6;
|
|
8849
|
+
const showCount = Math.min(elementLength, maxShowCount) || 0;
|
|
8850
|
+
return `${showCount * 41 + 5}px`;
|
|
8851
|
+
});
|
|
8852
|
+
const show = (event, opt) => {
|
|
8853
|
+
var _a;
|
|
8854
|
+
const rect = new DOMRect(event.clientX, event.clientY, 0, 0);
|
|
8855
|
+
(_a = simplePopoverRef.value) == null ? void 0 : _a.show(rect);
|
|
8856
|
+
currentOpt.value = opt;
|
|
8857
|
+
};
|
|
8858
|
+
const hide = () => {
|
|
8859
|
+
var _a;
|
|
8860
|
+
(_a = simplePopoverRef.value) == null ? void 0 : _a.hide();
|
|
8861
|
+
};
|
|
8862
|
+
const handleItemClick = (item, index2) => {
|
|
8863
|
+
var _a;
|
|
8864
|
+
if ((_a = item.props) == null ? void 0 : _a.disabled) {
|
|
8865
|
+
return;
|
|
8866
|
+
}
|
|
8867
|
+
execButtonClickEvent(
|
|
8868
|
+
item,
|
|
8869
|
+
emit,
|
|
8870
|
+
currentOpt.value.executeData,
|
|
8871
|
+
currentOpt.value.context
|
|
8872
|
+
);
|
|
8873
|
+
hide();
|
|
8874
|
+
};
|
|
8875
|
+
__expose({
|
|
8876
|
+
show,
|
|
8877
|
+
hide
|
|
8878
|
+
});
|
|
8879
|
+
return (_ctx, _cache) => {
|
|
8880
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
8881
|
+
return openBlock(), createBlock(SimplePopover, {
|
|
8882
|
+
ref_key: "simplePopoverRef",
|
|
8883
|
+
ref: simplePopoverRef,
|
|
8884
|
+
width: 200
|
|
8885
|
+
}, {
|
|
8886
|
+
default: withCtx(() => [
|
|
8887
|
+
createElementVNode("div", {
|
|
8888
|
+
class: "context-menu",
|
|
8889
|
+
style: normalizeStyle({
|
|
8890
|
+
height: contextMenuHeight.value
|
|
8891
|
+
})
|
|
8892
|
+
}, [
|
|
8893
|
+
createVNode(_component_el_scrollbar, { style: { "height": "100%" } }, {
|
|
8894
|
+
default: withCtx(() => [
|
|
8895
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
8896
|
+
...currentOpt.value,
|
|
8897
|
+
..._ctx.$attrs
|
|
8898
|
+
}, { direction: "vertical" }), {
|
|
8899
|
+
default: withCtx(({ item, index: index2 }) => [
|
|
8900
|
+
renderSlot(_ctx.$slots, "default", {
|
|
8901
|
+
item,
|
|
8902
|
+
index: index2
|
|
8903
|
+
}, () => {
|
|
8904
|
+
var _a;
|
|
8905
|
+
return [
|
|
8906
|
+
createElementVNode("div", {
|
|
8907
|
+
class: normalizeClass(["context-menu__item", { disabled: (_a = item.props) == null ? void 0 : _a.disabled }]),
|
|
8908
|
+
onClick: ($event) => handleItemClick(item)
|
|
8909
|
+
}, toDisplayString(item.text), 11, _hoisted_1$a)
|
|
8910
|
+
];
|
|
8911
|
+
}, true)
|
|
8912
|
+
]),
|
|
8913
|
+
_: 3
|
|
8914
|
+
}, 16)
|
|
8915
|
+
]),
|
|
8916
|
+
_: 3
|
|
8917
|
+
})
|
|
8918
|
+
], 4)
|
|
8919
|
+
]),
|
|
8920
|
+
_: 3
|
|
8921
|
+
}, 512);
|
|
8922
|
+
};
|
|
8923
|
+
}
|
|
8924
|
+
});
|
|
8925
|
+
var ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5631c18b"]]);
|
|
8779
8926
|
var index_vue_vue_type_style_index_0_lang$5 = "";
|
|
8780
8927
|
const __default__$b = {
|
|
8781
8928
|
name: "PageModelTable",
|
|
@@ -8912,14 +9059,18 @@ const _sfc_main$m = defineComponent({
|
|
|
8912
9059
|
var _a;
|
|
8913
9060
|
(_a = tableRef.value) == null ? void 0 : _a.doLayout();
|
|
8914
9061
|
};
|
|
8915
|
-
const
|
|
9062
|
+
const columnToolsSimplePopoverRef = ref();
|
|
8916
9063
|
const showColumnToolSimplePopover = (element) => {
|
|
8917
9064
|
var _a;
|
|
8918
|
-
(_a =
|
|
9065
|
+
(_a = columnToolsSimplePopoverRef.value) == null ? void 0 : _a.show(element);
|
|
9066
|
+
tableManager.updateColumnToolsVisible(true);
|
|
8919
9067
|
};
|
|
8920
9068
|
const hideColumnToolSimplePopover = () => {
|
|
8921
9069
|
var _a;
|
|
8922
|
-
(_a =
|
|
9070
|
+
(_a = columnToolsSimplePopoverRef.value) == null ? void 0 : _a.hide();
|
|
9071
|
+
};
|
|
9072
|
+
const handleColumnToolsClosed = () => {
|
|
9073
|
+
tableManager.updateColumnToolsVisible(false);
|
|
8923
9074
|
};
|
|
8924
9075
|
const scrollLifecycle = useListenScroll(tableManager);
|
|
8925
9076
|
const { initTableDrag, destroyTableDrag } = useColumnDrag();
|
|
@@ -8974,6 +9125,33 @@ const _sfc_main$m = defineComponent({
|
|
|
8974
9125
|
saveColumnSort(tableManager.table.els, tableManager.columnSortParamsList);
|
|
8975
9126
|
}
|
|
8976
9127
|
};
|
|
9128
|
+
const contextMenuRef = ref();
|
|
9129
|
+
const showContextMenu = (row, rowIndex, event) => {
|
|
9130
|
+
var _a, _b;
|
|
9131
|
+
const contextMenu = tableManager.table.contextMenu;
|
|
9132
|
+
let buttons = [];
|
|
9133
|
+
if (contextMenu.containOperation) {
|
|
9134
|
+
buttons = cloneDeep(((_a = tableManager.table.operate) == null ? void 0 : _a.els) || []);
|
|
9135
|
+
buttons = buttons.reduce((memo, button) => {
|
|
9136
|
+
memo.push(button);
|
|
9137
|
+
if (button.children) {
|
|
9138
|
+
memo.push(...button.children);
|
|
9139
|
+
}
|
|
9140
|
+
return memo;
|
|
9141
|
+
}, []);
|
|
9142
|
+
}
|
|
9143
|
+
if (contextMenu.els) {
|
|
9144
|
+
buttons = buttons.concat(cloneDeep(contextMenu.els));
|
|
9145
|
+
}
|
|
9146
|
+
if (!buttons.length) {
|
|
9147
|
+
return;
|
|
9148
|
+
}
|
|
9149
|
+
(_b = contextMenuRef.value) == null ? void 0 : _b.show(event, {
|
|
9150
|
+
els: buttons,
|
|
9151
|
+
context: tableManager,
|
|
9152
|
+
executeData: [row, rowIndex]
|
|
9153
|
+
});
|
|
9154
|
+
};
|
|
8977
9155
|
onUnmounted(() => {
|
|
8978
9156
|
tableManager.onUnmounted();
|
|
8979
9157
|
scrollLifecycle.onUnmounted();
|
|
@@ -8982,7 +9160,8 @@ const _sfc_main$m = defineComponent({
|
|
|
8982
9160
|
onActivated(() => {
|
|
8983
9161
|
scrollLifecycle.onActivated();
|
|
8984
9162
|
});
|
|
8985
|
-
|
|
9163
|
+
const exposeActions = {
|
|
9164
|
+
showContextMenu,
|
|
8986
9165
|
showExport,
|
|
8987
9166
|
clearSelection,
|
|
8988
9167
|
getRenderedEls,
|
|
@@ -8990,6 +9169,10 @@ const _sfc_main$m = defineComponent({
|
|
|
8990
9169
|
hideColumnToolSimplePopover,
|
|
8991
9170
|
handleColumnScreen,
|
|
8992
9171
|
handleColumnSort
|
|
9172
|
+
};
|
|
9173
|
+
tableManager.exposeActions = exposeActions;
|
|
9174
|
+
__expose({
|
|
9175
|
+
...exposeActions
|
|
8993
9176
|
});
|
|
8994
9177
|
return (_ctx, _cache) => {
|
|
8995
9178
|
const _component_el_radio = resolveComponent("el-radio");
|
|
@@ -9000,7 +9183,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9000
9183
|
const _component_el_popconfirm = resolveComponent("el-popconfirm");
|
|
9001
9184
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
9002
9185
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9003
|
-
createVNode(_sfc_main$
|
|
9186
|
+
createVNode(_sfc_main$o, {
|
|
9004
9187
|
class: normalizeClass([unref(createBEMName)("table")]),
|
|
9005
9188
|
isLoading: tableManager.loadingData,
|
|
9006
9189
|
directiveName: table.value.loadingDirectiveName
|
|
@@ -9024,7 +9207,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9024
9207
|
unref(PageModelManager).emptyTableComponent ? (openBlock(), createBlock(resolveDynamicComponent(unref(PageModelManager).emptyTableComponent), {
|
|
9025
9208
|
key: 0,
|
|
9026
9209
|
text: (_a = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _a.emptyText
|
|
9027
|
-
}, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$
|
|
9210
|
+
}, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$q, {
|
|
9028
9211
|
key: 1,
|
|
9029
9212
|
text: (_b = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _b.emptyText
|
|
9030
9213
|
}, null, 8, ["text"]))
|
|
@@ -9085,7 +9268,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9085
9268
|
width: table.value.operate.width
|
|
9086
9269
|
}, table.value.operate.props), {
|
|
9087
9270
|
default: withCtx(({ row, $index }) => [
|
|
9088
|
-
createVNode(
|
|
9271
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
9089
9272
|
els: table.value.operate.els,
|
|
9090
9273
|
context: tableManager,
|
|
9091
9274
|
executeData: [row, $index]
|
|
@@ -9094,7 +9277,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9094
9277
|
_: 1
|
|
9095
9278
|
}, 16, ["width"])) : createCommentVNode("", true)
|
|
9096
9279
|
], 64)) : createCommentVNode("", true),
|
|
9097
|
-
createVNode(_sfc_main$
|
|
9280
|
+
createVNode(_sfc_main$w, {
|
|
9098
9281
|
els: renderedTableEls.value,
|
|
9099
9282
|
context: tableManager,
|
|
9100
9283
|
onColumnScreen: handleColumnScreen
|
|
@@ -9106,7 +9289,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9106
9289
|
width: table.value.operate.width
|
|
9107
9290
|
}, table.value.operate.props), {
|
|
9108
9291
|
default: withCtx(({ row, $index }) => [
|
|
9109
|
-
createVNode(
|
|
9292
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
9110
9293
|
els: table.value.operate.els,
|
|
9111
9294
|
context: tableManager,
|
|
9112
9295
|
executeData: [row, $index]
|
|
@@ -9202,8 +9385,9 @@ const _sfc_main$m = defineComponent({
|
|
|
9202
9385
|
onClosed: unref(onSelectionsTableClosed)
|
|
9203
9386
|
}, null, 8, ["onClosed"])) : createCommentVNode("", true),
|
|
9204
9387
|
createVNode(SimplePopover, {
|
|
9205
|
-
ref_key: "
|
|
9206
|
-
ref:
|
|
9388
|
+
ref_key: "columnToolsSimplePopoverRef",
|
|
9389
|
+
ref: columnToolsSimplePopoverRef,
|
|
9390
|
+
onClosed: handleColumnToolsClosed
|
|
9207
9391
|
}, {
|
|
9208
9392
|
default: withCtx(() => [
|
|
9209
9393
|
createVNode(ColumnTools$1, {
|
|
@@ -9213,7 +9397,11 @@ const _sfc_main$m = defineComponent({
|
|
|
9213
9397
|
}, null, 8, ["els"])
|
|
9214
9398
|
]),
|
|
9215
9399
|
_: 1
|
|
9216
|
-
}, 512)
|
|
9400
|
+
}, 512),
|
|
9401
|
+
createVNode(ContextMenu, mergeProps({
|
|
9402
|
+
ref_key: "contextMenuRef",
|
|
9403
|
+
ref: contextMenuRef
|
|
9404
|
+
}, _ctx.$attrs), null, 16)
|
|
9217
9405
|
], 64);
|
|
9218
9406
|
};
|
|
9219
9407
|
}
|
|
@@ -9229,6 +9417,7 @@ class FormManager extends IManager {
|
|
|
9229
9417
|
__publicField(this, "errorProp");
|
|
9230
9418
|
__publicField(this, "formUpdateEvent", new EventEmitter());
|
|
9231
9419
|
__publicField(this, "tempFormData");
|
|
9420
|
+
__publicField(this, "isFormVisible", false);
|
|
9232
9421
|
this.propsForm = form;
|
|
9233
9422
|
}
|
|
9234
9423
|
get form() {
|
|
@@ -9272,6 +9461,9 @@ class FormManager extends IManager {
|
|
|
9272
9461
|
};
|
|
9273
9462
|
}
|
|
9274
9463
|
}
|
|
9464
|
+
updateFormVisible(visible) {
|
|
9465
|
+
this.isFormVisible = visible;
|
|
9466
|
+
}
|
|
9275
9467
|
async updateFormData(formData) {
|
|
9276
9468
|
const form = this.form;
|
|
9277
9469
|
if (form == null ? void 0 : form.bindData) {
|
|
@@ -9887,7 +10079,7 @@ const _sfc_main$g = defineComponent({
|
|
|
9887
10079
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
9888
10080
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
9889
10081
|
const _component_el_button = resolveComponent("el-button");
|
|
9890
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10082
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
9891
10083
|
modelValue: visible.value,
|
|
9892
10084
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
|
|
9893
10085
|
title: "\u8868\u5355\u914D\u7F6E",
|
|
@@ -9953,7 +10145,7 @@ const _sfc_main$g = defineComponent({
|
|
|
9953
10145
|
], 2);
|
|
9954
10146
|
}), 128))
|
|
9955
10147
|
], 2),
|
|
9956
|
-
createVNode(_sfc_main$
|
|
10148
|
+
createVNode(_sfc_main$v, {
|
|
9957
10149
|
modelValue: innerEls.value,
|
|
9958
10150
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
9959
10151
|
"item-key": "_key"
|
|
@@ -10313,7 +10505,7 @@ const _sfc_main$f = defineComponent({
|
|
|
10313
10505
|
key: 0,
|
|
10314
10506
|
class: normalizeClass(unref(createBEMName)("prefix"))
|
|
10315
10507
|
}, toDisplayString(renderDeText(item.prefix, formManager.formData)), 3)) : createCommentVNode("", true),
|
|
10316
|
-
createVNode(_sfc_main$
|
|
10508
|
+
createVNode(_sfc_main$D, {
|
|
10317
10509
|
modelValue: formManager.formData[item.prop],
|
|
10318
10510
|
renderFn: item.renderFn,
|
|
10319
10511
|
context: formManager,
|
|
@@ -10440,7 +10632,7 @@ const _sfc_main$e = defineComponent({
|
|
|
10440
10632
|
});
|
|
10441
10633
|
return (_ctx, _cache) => {
|
|
10442
10634
|
const _component_el_button = resolveComponent("el-button");
|
|
10443
|
-
return formVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
10635
|
+
return formVisible.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
10444
10636
|
key: 0,
|
|
10445
10637
|
modelValue: formVisible.value,
|
|
10446
10638
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formVisible.value = $event),
|
|
@@ -11452,7 +11644,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
11452
11644
|
props: {
|
|
11453
11645
|
manager: {}
|
|
11454
11646
|
},
|
|
11455
|
-
emits: ["screen"],
|
|
11647
|
+
emits: ["screen", "closed"],
|
|
11456
11648
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
11457
11649
|
const props = __props;
|
|
11458
11650
|
const emit = __emit;
|
|
@@ -11565,7 +11757,8 @@ const _sfc_main$7 = defineComponent({
|
|
|
11565
11757
|
return openBlock(), createBlock(SimplePopover, {
|
|
11566
11758
|
ref_key: "simplePopoverRef",
|
|
11567
11759
|
ref: simplePopoverRef,
|
|
11568
|
-
width: 560
|
|
11760
|
+
width: 560,
|
|
11761
|
+
onClosed: _cache[0] || (_cache[0] = ($event) => emit("closed"))
|
|
11569
11762
|
}, {
|
|
11570
11763
|
default: withCtx(() => [
|
|
11571
11764
|
createElementVNode("div", {
|
|
@@ -11842,9 +12035,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
11842
12035
|
};
|
|
11843
12036
|
}
|
|
11844
12037
|
});
|
|
11845
|
-
var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
12038
|
+
var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-16a43018"]]);
|
|
11846
12039
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
11847
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
12040
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-6b237206"), n = n(), popScopeId(), n);
|
|
11848
12041
|
const _hoisted_1$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "\u8BBE\u7F6E\u6392\u5E8F\u6761\u4EF6", -1));
|
|
11849
12042
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", {
|
|
11850
12043
|
class: "pm-icon icon-drag-dot",
|
|
@@ -11867,7 +12060,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
11867
12060
|
props: {
|
|
11868
12061
|
manager: {}
|
|
11869
12062
|
},
|
|
11870
|
-
emits: ["screen"],
|
|
12063
|
+
emits: ["screen", "closed"],
|
|
11871
12064
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
11872
12065
|
const props = __props;
|
|
11873
12066
|
const emit = __emit;
|
|
@@ -11930,9 +12123,12 @@ const _sfc_main$6 = defineComponent({
|
|
|
11930
12123
|
const handleSelectSortItem = (item, sortValue) => {
|
|
11931
12124
|
item.order = sortValue;
|
|
11932
12125
|
};
|
|
12126
|
+
const popoverRef = ref();
|
|
11933
12127
|
const handleClickSelect = (addProp) => {
|
|
12128
|
+
var _a;
|
|
11934
12129
|
const item = getAddFilterItem(addProp);
|
|
11935
12130
|
filterList.value.push(item);
|
|
12131
|
+
(_a = popoverRef.value) == null ? void 0 : _a.hide();
|
|
11936
12132
|
};
|
|
11937
12133
|
const handleRemoveItem = (index2) => {
|
|
11938
12134
|
filterList.value.splice(index2, 1);
|
|
@@ -11964,7 +12160,8 @@ const _sfc_main$6 = defineComponent({
|
|
|
11964
12160
|
return openBlock(), createBlock(SimplePopover, {
|
|
11965
12161
|
ref_key: "simplePopoverRef",
|
|
11966
12162
|
ref: simplePopoverRef,
|
|
11967
|
-
width: 420
|
|
12163
|
+
width: 420,
|
|
12164
|
+
onClosed: _cache[2] || (_cache[2] = ($event) => emit("closed"))
|
|
11968
12165
|
}, {
|
|
11969
12166
|
default: withCtx(() => [
|
|
11970
12167
|
createElementVNode("div", {
|
|
@@ -11992,7 +12189,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
11992
12189
|
_: 1
|
|
11993
12190
|
})
|
|
11994
12191
|
], 2),
|
|
11995
|
-
createVNode(_sfc_main$
|
|
12192
|
+
createVNode(_sfc_main$v, {
|
|
11996
12193
|
modelValue: filterList.value,
|
|
11997
12194
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterList.value = $event),
|
|
11998
12195
|
itemKey: "prop",
|
|
@@ -12069,6 +12266,8 @@ const _sfc_main$6 = defineComponent({
|
|
|
12069
12266
|
class: normalizeClass(unref(createBEMName)("actions"))
|
|
12070
12267
|
}, [
|
|
12071
12268
|
createVNode(_component_el_popover, {
|
|
12269
|
+
ref_key: "popoverRef",
|
|
12270
|
+
ref: popoverRef,
|
|
12072
12271
|
placement: "bottom-start",
|
|
12073
12272
|
width: 200,
|
|
12074
12273
|
trigger: "click"
|
|
@@ -12116,7 +12315,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
12116
12315
|
], 2)
|
|
12117
12316
|
]),
|
|
12118
12317
|
_: 1
|
|
12119
|
-
}),
|
|
12318
|
+
}, 512),
|
|
12120
12319
|
createElementVNode("div", null, [
|
|
12121
12320
|
createVNode(_component_el_button, { onClick: handleClear }, {
|
|
12122
12321
|
default: withCtx(() => [
|
|
@@ -12142,7 +12341,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
12142
12341
|
};
|
|
12143
12342
|
}
|
|
12144
12343
|
});
|
|
12145
|
-
var ColumnSortTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
12344
|
+
var ColumnSortTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6b237206"]]);
|
|
12146
12345
|
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
12147
12346
|
const _hoisted_1$3 = ["data-event", "onClick"];
|
|
12148
12347
|
const __default__$4 = {
|
|
@@ -12198,25 +12397,27 @@ const _sfc_main$5 = defineComponent({
|
|
|
12198
12397
|
}
|
|
12199
12398
|
};
|
|
12200
12399
|
const showToolbox = computed(() => {
|
|
12400
|
+
const tableManager = props.tableManager;
|
|
12401
|
+
const manager = tableManager == null ? void 0 : tableManager.manager;
|
|
12201
12402
|
const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).filter((a) => a).map((item) => {
|
|
12202
|
-
var _a
|
|
12403
|
+
var _a;
|
|
12203
12404
|
let desc = "";
|
|
12204
12405
|
let bg = false;
|
|
12205
|
-
if (item.event === "show-column-tool" &&
|
|
12206
|
-
desc =
|
|
12207
|
-
bg =
|
|
12406
|
+
if (item.event === "show-column-tool" && tableManager) {
|
|
12407
|
+
desc = tableManager.hiddeenFieldCount ? `(${tableManager.hiddeenFieldCount} \u9690\u85CF)` : "";
|
|
12408
|
+
bg = tableManager.isColumnToolsVisible || tableManager.hiddeenFieldCount > 0;
|
|
12208
12409
|
} else if (item.event === "fullscreen") {
|
|
12209
|
-
bg = (
|
|
12210
|
-
} else if (item.event === "filter" &&
|
|
12211
|
-
if (
|
|
12212
|
-
desc = `(${
|
|
12213
|
-
bg = true;
|
|
12410
|
+
bg = (_a = tableManager == null ? void 0 : tableManager.manager) == null ? void 0 : _a.isTableFullscreen;
|
|
12411
|
+
} else if (item.event === "filter" && tableManager) {
|
|
12412
|
+
if (tableManager.columnParamsList.length) {
|
|
12413
|
+
desc = `(${tableManager.columnParamsList.length})`;
|
|
12214
12414
|
}
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12415
|
+
bg = manager.isFilterPopupVisible || tableManager.columnParamsList.length > 0;
|
|
12416
|
+
} else if (item.event === "sort" && tableManager) {
|
|
12417
|
+
if (tableManager.columnSortParamsList.length) {
|
|
12418
|
+
desc = `(${tableManager.columnSortParamsList.length})`;
|
|
12219
12419
|
}
|
|
12420
|
+
bg = manager.isSortPopupVisible || tableManager.columnSortParamsList.length > 0;
|
|
12220
12421
|
}
|
|
12221
12422
|
return {
|
|
12222
12423
|
...item,
|
|
@@ -12302,7 +12503,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
12302
12503
|
};
|
|
12303
12504
|
}
|
|
12304
12505
|
});
|
|
12305
|
-
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
12506
|
+
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bdb3c2d2"]]);
|
|
12306
12507
|
function patchConfig(config, patches) {
|
|
12307
12508
|
return patches.reduce((memoConfig, patchFn) => {
|
|
12308
12509
|
return patchFn.call(this, memoConfig);
|
|
@@ -12660,12 +12861,14 @@ const _sfc_main$4 = defineComponent({
|
|
|
12660
12861
|
formContainerRef.value.show();
|
|
12661
12862
|
nextTick(() => {
|
|
12662
12863
|
var _a;
|
|
12864
|
+
manager.formManager.updateFormVisible(true);
|
|
12663
12865
|
(_a = manager.formManager.form.onFormOpened) == null ? void 0 : _a.call(manager.formManager);
|
|
12664
12866
|
});
|
|
12665
12867
|
}
|
|
12666
12868
|
};
|
|
12667
12869
|
const hideForm = (needLeaveConfirm = true) => {
|
|
12668
12870
|
if (formContainerRef.value) {
|
|
12871
|
+
manager.formManager.updateFormVisible(false);
|
|
12669
12872
|
formContainerRef.value.hide(needLeaveConfirm);
|
|
12670
12873
|
}
|
|
12671
12874
|
};
|
|
@@ -12847,10 +13050,15 @@ const _sfc_main$4 = defineComponent({
|
|
|
12847
13050
|
const columnFilterToolsRef = ref();
|
|
12848
13051
|
const handleShowFilter = (item, e) => {
|
|
12849
13052
|
columnFilterToolsRef.value.showPopover(e.currentTarget);
|
|
13053
|
+
manager.updateFilterPopupVisible(true);
|
|
13054
|
+
};
|
|
13055
|
+
const handleColumnFilterToolsClosed = () => {
|
|
13056
|
+
manager.updateFilterPopupVisible(false);
|
|
12850
13057
|
};
|
|
12851
13058
|
const columnSortToolsRef = ref();
|
|
12852
13059
|
const handleShowSort = (item, e) => {
|
|
12853
13060
|
columnSortToolsRef.value.showPopover(e.currentTarget);
|
|
13061
|
+
manager.updateSortPopupVisible(true);
|
|
12854
13062
|
};
|
|
12855
13063
|
const handleToolboxCustomEvent = (eventName, item, event) => {
|
|
12856
13064
|
switch (eventName) {
|
|
@@ -12883,10 +13091,9 @@ const _sfc_main$4 = defineComponent({
|
|
|
12883
13091
|
const { useKeyboardEvents } = useKeyBoardEvent();
|
|
12884
13092
|
const tableToolsboxRef = ref();
|
|
12885
13093
|
const trigTableToolboxEvent = (event) => {
|
|
12886
|
-
tableToolsboxRef.value.trigEvent(event);
|
|
13094
|
+
tableToolsboxRef.value && tableToolsboxRef.value.trigEvent(event);
|
|
12887
13095
|
};
|
|
12888
|
-
|
|
12889
|
-
manager,
|
|
13096
|
+
const exposeActions = {
|
|
12890
13097
|
doTableLayout,
|
|
12891
13098
|
refreshTableData,
|
|
12892
13099
|
resetTableData,
|
|
@@ -12916,6 +13123,14 @@ const _sfc_main$4 = defineComponent({
|
|
|
12916
13123
|
getRenderedEls,
|
|
12917
13124
|
exportDataToExcel,
|
|
12918
13125
|
setFormTabsActiveName
|
|
13126
|
+
};
|
|
13127
|
+
const exposeProps = {
|
|
13128
|
+
manager
|
|
13129
|
+
};
|
|
13130
|
+
manager.exposeActions = exposeActions;
|
|
13131
|
+
__expose({
|
|
13132
|
+
...exposeProps,
|
|
13133
|
+
...exposeActions
|
|
12919
13134
|
});
|
|
12920
13135
|
return (_ctx, _cache) => {
|
|
12921
13136
|
var _a, _b, _c, _d;
|
|
@@ -12942,7 +13157,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
12942
13157
|
key: 0,
|
|
12943
13158
|
class: normalizeClass(unref(createBEMName)("top-tabs"))
|
|
12944
13159
|
}, [
|
|
12945
|
-
hasTabs.value ? (openBlock(), createBlock(_sfc_main$
|
|
13160
|
+
hasTabs.value ? (openBlock(), createBlock(_sfc_main$12, {
|
|
12946
13161
|
key: 0,
|
|
12947
13162
|
tabs: uConfig.value.tabs,
|
|
12948
13163
|
manager,
|
|
@@ -12958,7 +13173,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
12958
13173
|
key: 1,
|
|
12959
13174
|
class: normalizeClass(unref(createBEMName)("search"))
|
|
12960
13175
|
}, [
|
|
12961
|
-
createVNode(_sfc_main$
|
|
13176
|
+
createVNode(_sfc_main$A, {
|
|
12962
13177
|
ref_key: "searchFormRef",
|
|
12963
13178
|
ref: searchFormRef,
|
|
12964
13179
|
manager
|
|
@@ -13084,14 +13299,16 @@ const _sfc_main$4 = defineComponent({
|
|
|
13084
13299
|
ref_key: "columnFilterToolsRef",
|
|
13085
13300
|
ref: columnFilterToolsRef,
|
|
13086
13301
|
manager,
|
|
13087
|
-
onScreen: handleColumnFilterToolsScreen
|
|
13302
|
+
onScreen: handleColumnFilterToolsScreen,
|
|
13303
|
+
onClosed: handleColumnFilterToolsClosed
|
|
13088
13304
|
}, null, 8, ["manager"])) : createCommentVNode("", true),
|
|
13089
13305
|
((_d = (_c = _ctx.config.table) == null ? void 0 : _c.toolbox) == null ? void 0 : _d.includes("sort")) ? (openBlock(), createBlock(ColumnSortTools, {
|
|
13090
13306
|
key: 4,
|
|
13091
13307
|
ref_key: "columnSortToolsRef",
|
|
13092
13308
|
ref: columnSortToolsRef,
|
|
13093
13309
|
manager,
|
|
13094
|
-
onScreen: handleColumnSortToolsScreen
|
|
13310
|
+
onScreen: handleColumnSortToolsScreen,
|
|
13311
|
+
onClosed: _cache[0] || (_cache[0] = ($event) => manager.updateSortPopupVisible(false))
|
|
13095
13312
|
}, null, 8, ["manager"])) : createCommentVNode("", true)
|
|
13096
13313
|
], 64))
|
|
13097
13314
|
], 16, _hoisted_1$2);
|
|
@@ -13236,7 +13453,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
13236
13453
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
13237
13454
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
13238
13455
|
const _component_el_button = resolveComponent("el-button");
|
|
13239
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13456
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
13240
13457
|
modelValue: visible.value,
|
|
13241
13458
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
13242
13459
|
title: "\u7F16\u8F91\u8868\u683C",
|
|
@@ -13279,7 +13496,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
13279
13496
|
], 2);
|
|
13280
13497
|
}), 128))
|
|
13281
13498
|
], 2),
|
|
13282
|
-
createVNode(_sfc_main$
|
|
13499
|
+
createVNode(_sfc_main$v, {
|
|
13283
13500
|
modelValue: innerEls.value,
|
|
13284
13501
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
13285
13502
|
"item-key": "_key"
|
|
@@ -13443,7 +13660,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
13443
13660
|
createElementVNode("div", {
|
|
13444
13661
|
class: normalizeClass(unref(createBEMName)("list"))
|
|
13445
13662
|
}, [
|
|
13446
|
-
createVNode(_sfc_main$
|
|
13663
|
+
createVNode(_sfc_main$v, {
|
|
13447
13664
|
modelValue: innerEls.value,
|
|
13448
13665
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
13449
13666
|
class: normalizeClass(unref(BEMSpace)),
|
|
@@ -13906,7 +14123,7 @@ const _sfc_main = defineComponent({
|
|
|
13906
14123
|
}, {
|
|
13907
14124
|
default: withCtx(() => [
|
|
13908
14125
|
_ctx.alwaysShowEdit || isCurrentRowFocus($index) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
13909
|
-
createVNode(_sfc_main$
|
|
14126
|
+
createVNode(_sfc_main$z, {
|
|
13910
14127
|
"render-fn": column.renderFn,
|
|
13911
14128
|
pure: "",
|
|
13912
14129
|
row,
|
|
@@ -13960,7 +14177,7 @@ const _sfc_main = defineComponent({
|
|
|
13960
14177
|
}, 16, ["data"]),
|
|
13961
14178
|
bottomActions.value.length || hasSlots.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
13962
14179
|
renderSlot(_ctx.$slots, "action-prefix", {}, void 0, true),
|
|
13963
|
-
createVNode(
|
|
14180
|
+
createVNode(ButtonsRenderer, {
|
|
13964
14181
|
els: bottomActions.value,
|
|
13965
14182
|
onCustom: handleBottomActionsEvent
|
|
13966
14183
|
}, null, 8, ["els"]),
|
|
@@ -13976,7 +14193,7 @@ const defineEditableTable = function(config) {
|
|
|
13976
14193
|
};
|
|
13977
14194
|
var iconfont = "";
|
|
13978
14195
|
const name = "@juzhenfe/page-model";
|
|
13979
|
-
const version = "3.14.
|
|
14196
|
+
const version = "3.14.10";
|
|
13980
14197
|
const types = "dist/main.d.ts";
|
|
13981
14198
|
const main = "dist/index.umd.js";
|
|
13982
14199
|
const keywords = [
|
|
@@ -14056,4 +14273,4 @@ const ModelComponent = {
|
|
|
14056
14273
|
saveTableColumns(content);
|
|
14057
14274
|
}
|
|
14058
14275
|
};
|
|
14059
|
-
export {
|
|
14276
|
+
export { ButtonsRenderer, _sfc_main$v as DraggableList, index as EditableTable, _sfc_main$C as FormDialog, _sfc_main$c as FormDrawer, PageModelForm, _sfc_main$z as TableCellRenderer, _sfc_main$u as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm };
|