@juzhenfe/page-model 3.14.10 → 3.14.12

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/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$E = { class: "scenes-tab" };
215
+ const _hoisted_1$F = { class: "scenes-tab" };
216
216
  const __default__$o = {
217
217
  name: "ScenesTab"
218
218
  };
219
- const _sfc_main$13 = defineComponent({
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$E);
229
+ return openBlock(), createElementBlock("div", _hoisted_1$F);
230
230
  };
231
231
  }
232
232
  });
233
- var index_vue_vue_type_style_index_0_lang$d = "";
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$12 = defineComponent({
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$c = "";
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$11 = defineComponent({
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$13,
1711
+ component: _sfc_main$14,
1712
1712
  props: props.tabs.sceneTab
1713
1713
  };
1714
1714
  } else {
1715
1715
  return {
1716
- component: _sfc_main$12,
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
- class EventChain {
1750
- constructor() {
1751
- __publicField(this, "chains", []);
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 commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1772
- function getDefaultExportFromCjs(x) {
1773
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
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 clipboard = { exports: {} };
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$B = {
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$B, _hoisted_3$r);
1816
+ return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$r);
2401
1817
  }
2402
- var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["render", _sfc_render$k]]);
2403
- const _sfc_main$Z = defineComponent({
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$A = {
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$A, _hoisted_3$q);
1837
+ return openBlock(), createElementBlock("svg", _hoisted_1$B, _hoisted_3$q);
2422
1838
  }
2423
- var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["render", _sfc_render$j]]);
2424
- const _sfc_main$Y = defineComponent({
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$z = {
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$z, _hoisted_3$p);
1858
+ return openBlock(), createElementBlock("svg", _hoisted_1$A, _hoisted_3$p);
2443
1859
  }
2444
- var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _sfc_render$i]]);
2445
- const _sfc_main$X = defineComponent({
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$y = {
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$y, _hoisted_3$o);
1879
+ return openBlock(), createElementBlock("svg", _hoisted_1$z, _hoisted_3$o);
2464
1880
  }
2465
- var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$h]]);
2466
- const _sfc_main$W = defineComponent({
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$x = {
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$x, _hoisted_5$5);
1910
+ return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_5$5);
2495
1911
  }
2496
- var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$g]]);
2497
- const _sfc_main$V = defineComponent({
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$w = {
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$w, _hoisted_3$m);
1931
+ return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$m);
2516
1932
  }
2517
- var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$f]]);
2518
- const _sfc_main$U = defineComponent({
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$v = {
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$v, _hoisted_4$7);
1957
+ return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_4$7);
2542
1958
  }
2543
- var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$e]]);
2544
- const _sfc_main$T = defineComponent({
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$u = {
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$u, _hoisted_3$k);
1978
+ return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$k);
2563
1979
  }
2564
- var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$d]]);
2565
- const _sfc_main$S = defineComponent({
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$t = {
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$t, _hoisted_3$j);
1999
+ return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$j);
2584
2000
  }
2585
- var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$c]]);
2586
- const _sfc_main$R = defineComponent({
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$s = {
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$s, _hoisted_3$i);
2020
+ return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$i);
2605
2021
  }
2606
- var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$b]]);
2607
- const _sfc_main$Q = defineComponent({
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$r = {
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$r, _hoisted_3$h);
2041
+ return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_3$h);
2626
2042
  }
2627
- var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$a]]);
2628
- const _sfc_main$P = defineComponent({
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$q = {
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$q, _hoisted_3$g);
2062
+ return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$g);
2647
2063
  }
2648
- var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$9]]);
2649
- const _sfc_main$O = defineComponent({
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$p = {
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$p, _hoisted_3$f);
2083
+ return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_3$f);
2668
2084
  }
2669
- var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$8]]);
2670
- const _sfc_main$N = defineComponent({
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$o = {
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$o, _hoisted_3$e);
2104
+ return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$e);
2689
2105
  }
2690
- var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$7]]);
2691
- const _sfc_main$M = defineComponent({
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$n = {
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$n, _hoisted_3$d);
2125
+ return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$d);
2710
2126
  }
2711
- var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$6]]);
2712
- const _sfc_main$L = defineComponent({
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$m = {
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$m, _hoisted_3$c);
2146
+ return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$c);
2731
2147
  }
2732
- var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$5]]);
2733
- const _sfc_main$K = defineComponent({
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$l = {
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$l, _hoisted_3$b);
2167
+ return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$b);
2752
2168
  }
2753
- var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$4]]);
2754
- const _sfc_main$J = defineComponent({
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$k = {
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$k, _hoisted_4$6);
2193
+ return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_4$6);
2778
2194
  }
2779
- var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$3]]);
2780
- const _sfc_main$I = defineComponent({
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$j = {
2199
+ const _hoisted_1$k = {
2784
2200
  class: "icon",
2785
2201
  width: "200",
2786
2202
  height: "200",
@@ -2795,12 +2211,33 @@ 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$j, _hoisted_3$9);
2214
+ return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$9);
2799
2215
  }
2800
- var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$2]]);
2801
- const _sfc_main$H = defineComponent({
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
  });
2220
+ const _hoisted_1$j = {
2221
+ class: "icon",
2222
+ width: "200",
2223
+ height: "200",
2224
+ viewBox: "0 0 1024 1024",
2225
+ xmlns: "http://www.w3.org/2000/svg"
2226
+ };
2227
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
2228
+ fill: "currentColor",
2229
+ d: "M384 96a32 32 0 0164 0v786.752a32 32 0 01-54.592 22.656L95.936 608a32 32 0 010-45.312h.128a32 32 0 0145.184 0L384 805.632V96zm192 45.248a32 32 0 0154.592-22.592L928.064 416a32 32 0 010 45.312h-.128a32 32 0 01-45.184 0L640 218.496V928a32 32 0 11-64 0V141.248z"
2230
+ }, null, -1);
2231
+ const _hoisted_3$8 = [
2232
+ _hoisted_2$9
2233
+ ];
2234
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
2235
+ return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$8);
2236
+ }
2237
+ var sort = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$1]]);
2238
+ const _sfc_main$H = defineComponent({
2239
+ name: "Tools"
2240
+ });
2804
2241
  const _hoisted_1$i = {
2805
2242
  class: "icon",
2806
2243
  width: "200",
@@ -2808,78 +2245,704 @@ const _hoisted_1$i = {
2808
2245
  viewBox: "0 0 1024 1024",
2809
2246
  xmlns: "http://www.w3.org/2000/svg"
2810
2247
  };
2811
- const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
2812
- fill: "currentColor",
2813
- d: "M384 96a32 32 0 0164 0v786.752a32 32 0 01-54.592 22.656L95.936 608a32 32 0 010-45.312h.128a32 32 0 0145.184 0L384 805.632V96zm192 45.248a32 32 0 0154.592-22.592L928.064 416a32 32 0 010 45.312h-.128a32 32 0 01-45.184 0L640 218.496V928a32 32 0 11-64 0V141.248z"
2814
- }, null, -1);
2815
- const _hoisted_3$8 = [
2816
- _hoisted_2$9
2817
- ];
2818
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
2819
- return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$8);
2820
- }
2821
- var sort = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$1]]);
2822
- const _sfc_main$G = defineComponent({
2823
- name: "Tools"
2824
- });
2825
- const _hoisted_1$h = {
2826
- class: "icon",
2827
- width: "200",
2828
- height: "200",
2829
- viewBox: "0 0 1024 1024",
2830
- xmlns: "http://www.w3.org/2000/svg"
2248
+ const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("path", {
2249
+ fill: "currentColor",
2250
+ d: "M764.416 254.72a351.68 351.68 0 0186.336 149.184H960v192.064H850.752a351.68 351.68 0 01-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 01-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 01-86.336-149.312H64v-192h109.248a351.68 351.68 0 0186.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 01172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 10-384 0 192 192 0 00384 0z"
2251
+ }, null, -1);
2252
+ const _hoisted_3$7 = [
2253
+ _hoisted_2$8
2254
+ ];
2255
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2256
+ return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$7);
2257
+ }
2258
+ var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render]]);
2259
+ const formManagerProvideKey = Symbol("form-manager");
2260
+ const registerPropertyProvideKey = Symbol("registerProperty");
2261
+ const isOpenAuthButtonProvideKey = Symbol("isOpenAuthButton");
2262
+ const authButtonsProvideKey = Symbol("authButtons");
2263
+ const _sfc_main$G = {
2264
+ name: "ButtonItemRender",
2265
+ props: {
2266
+ text: {
2267
+ type: String,
2268
+ default: ""
2269
+ },
2270
+ renderFn: {
2271
+ type: Function,
2272
+ default: null
2273
+ },
2274
+ context: {
2275
+ type: Object,
2276
+ default: null
2277
+ }
2278
+ },
2279
+ render() {
2280
+ if (this.renderFn) {
2281
+ return this.renderFn.call(this.context);
2282
+ } else {
2283
+ return h("span", this.text);
2284
+ }
2285
+ }
2286
+ };
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);
2831
2882
  };
2832
- const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("path", {
2833
- fill: "currentColor",
2834
- d: "M764.416 254.72a351.68 351.68 0 0186.336 149.184H960v192.064H850.752a351.68 351.68 0 01-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 01-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 01-86.336-149.312H64v-192h109.248a351.68 351.68 0 0186.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 01172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 10-384 0 192 192 0 00384 0z"
2835
- }, null, -1);
2836
- const _hoisted_3$7 = [
2837
- _hoisted_2$8
2838
- ];
2839
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2840
- return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_3$7);
2841
- }
2842
- var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render]]);
2843
- const formManagerProvideKey = Symbol("form-manager");
2844
- const registerPropertyProvideKey = Symbol("registerProperty");
2845
- const isOpenAuthButtonProvideKey = Symbol("isOpenAuthButton");
2846
- const authButtonsProvideKey = Symbol("authButtons");
2847
- const _sfc_main$F = {
2848
- name: "ButtonItemRender",
2849
- props: {
2850
- text: {
2851
- type: String,
2852
- default: ""
2853
- },
2854
- renderFn: {
2855
- type: Function,
2856
- default: null
2857
- },
2858
- context: {
2859
- type: Object,
2860
- default: null
2861
- }
2862
- },
2863
- render() {
2864
- if (this.renderFn) {
2865
- return this.renderFn.call(this.context);
2866
- } else {
2867
- return h("span", this.text);
2868
- }
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;
2869
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;
2870
2933
  };
2871
- var index_vue_vue_type_style_index_0_lang$b = "";
2872
2934
  const __default__$l = {
2873
2935
  name: "ButtonRenderer"
2874
2936
  };
2875
- const _sfc_main$E = defineComponent({
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
- emits: ["add", "upd", "del", "import", "custom"],
2945
+ emits: ["add", "upd", "del", "import", "custom", "count-change"],
2883
2946
  setup(__props, { emit: __emit }) {
2884
2947
  const props = __props;
2885
2948
  const isOpenAuthButton = inject(isOpenAuthButtonProvideKey);
@@ -2902,71 +2965,27 @@ 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
  };
2977
+ watch(
2978
+ () => {
2979
+ return showEls.value;
2980
+ },
2981
+ () => {
2982
+ emit("count-change", showEls.value.length);
2983
+ },
2984
+ {
2985
+ deep: true,
2986
+ immediate: true
2987
+ }
2988
+ );
2970
2989
  return (_ctx, _cache) => {
2971
2990
  const _component_el_icon = resolveComponent("el-icon");
2972
2991
  const _component_el_button = resolveComponent("el-button");
@@ -2975,111 +2994,112 @@ const _sfc_main$E = defineComponent({
2975
2994
  const _component_el_dropdown = resolveComponent("el-dropdown");
2976
2995
  const _component_el_badge = resolveComponent("el-badge");
2977
2996
  return openBlock(), createElementBlock("div", {
2978
- class: normalizeClass(unref(BEMSpace))
2997
+ class: normalizeClass([unref(BEMSpace), _ctx.direction === "vertical" ? "vertical" : "horizontal"])
2979
2998
  }, [
2980
2999
  (openBlock(true), createElementBlock(Fragment, null, renderList(showEls.value, (button, index2) => {
2981
- var _a;
2982
3000
  return openBlock(), createElementBlock("div", {
2983
3001
  key: index2,
2984
3002
  class: normalizeClass(unref(createBEMName)("item"))
2985
3003
  }, [
2986
- ((_a = button.children) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_el_dropdown, {
2987
- key: 0,
2988
- "hide-on-click": false,
2989
- onCommand: handleCommand
2990
- }, {
2991
- dropdown: withCtx(() => [
2992
- createVNode(_component_el_dropdown_menu, null, {
2993
- default: withCtx(() => [
2994
- (openBlock(true), createElementBlock(Fragment, null, renderList(button.children, (cButton, cIndex) => {
2995
- return openBlock(), createBlock(_component_el_dropdown_item, {
2996
- key: cIndex,
2997
- command: `${index2}-${cIndex}`,
2998
- disabled: cButton.isDisabled ? Boolean(
2999
- cButton.isDisabled.apply(this, [cButton, ...props.executeData])
3000
- ) : false
3001
- }, {
3002
- default: withCtx(() => [
3003
- createTextVNode(toDisplayString(cButton.text), 1)
3004
- ]),
3005
- _: 2
3006
- }, 1032, ["command", "disabled"]);
3007
- }), 128))
3004
+ renderSlot(_ctx.$slots, "default", {
3005
+ item: button,
3006
+ index: index2
3007
+ }, () => {
3008
+ var _a;
3009
+ return [
3010
+ ((_a = button.children) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_el_dropdown, {
3011
+ key: 0,
3012
+ "hide-on-click": false,
3013
+ onCommand: handleCommand
3014
+ }, {
3015
+ dropdown: withCtx(() => [
3016
+ createVNode(_component_el_dropdown_menu, null, {
3017
+ default: withCtx(() => [
3018
+ (openBlock(true), createElementBlock(Fragment, null, renderList(button.children, (cButton, cIndex) => {
3019
+ return openBlock(), createBlock(_component_el_dropdown_item, {
3020
+ key: cIndex,
3021
+ command: `${index2}-${cIndex}`,
3022
+ disabled: cButton.isDisabled ? Boolean(
3023
+ cButton.isDisabled.apply(this, [cButton, ...props.executeData])
3024
+ ) : false
3025
+ }, {
3026
+ default: withCtx(() => [
3027
+ createTextVNode(toDisplayString(cButton.text), 1)
3028
+ ]),
3029
+ _: 2
3030
+ }, 1032, ["command", "disabled"]);
3031
+ }), 128))
3032
+ ]),
3033
+ _: 2
3034
+ }, 1024)
3008
3035
  ]),
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
3036
  default: withCtx(() => [
3017
- createVNode(_sfc_main$F, {
3018
- context: _ctx.context,
3019
- "render-fn": button.renderFn,
3020
- text: button.text
3021
- }, null, 8, ["context", "render-fn", "text"]),
3022
- createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
3037
+ createVNode(_component_el_button, mergeProps({ ref_for: true }, button.props, {
3038
+ onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
3039
+ }), {
3023
3040
  default: withCtx(() => [
3024
- createVNode(unref(arrowDown))
3041
+ createVNode(_sfc_main$G, {
3042
+ context: _ctx.context,
3043
+ "render-fn": button.renderFn,
3044
+ text: button.text
3045
+ }, null, 8, ["context", "render-fn", "text"]),
3046
+ createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
3047
+ default: withCtx(() => [
3048
+ createVNode(unref(arrowDown))
3049
+ ]),
3050
+ _: 1
3051
+ })
3025
3052
  ]),
3026
- _: 1
3027
- })
3053
+ _: 2
3054
+ }, 1040, ["onClick"])
3028
3055
  ]),
3029
3056
  _: 2
3030
- }, 1040, ["onClick"])
3031
- ]),
3032
- _: 2
3033
- }, 1024)) : (openBlock(), createBlock(_component_el_badge, {
3034
- key: 1,
3035
- value: button.count,
3036
- max: button.maxCount
3037
- }, {
3038
- default: withCtx(() => {
3039
- var _a2;
3040
- return [
3041
- button.renderFn ? (openBlock(), createBlock(_sfc_main$F, {
3042
- key: 0,
3043
- context: _ctx.context,
3044
- "render-fn": button.renderFn,
3045
- text: button.text,
3046
- onClick: ($event) => handleButtonClick(index2)
3047
- }, null, 8, ["context", "render-fn", "text", "onClick"])) : (openBlock(), createBlock(_component_el_button, mergeProps({
3048
- key: 1,
3049
- ref_for: true
3050
- }, button.props, {
3051
- icon: ((_a2 = button.props) == null ? void 0 : _a2.icon) ? typeof button.props.icon === "string" ? button.props.icon : { ...button.props.icon } : null,
3052
- onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
3053
- }), {
3054
- default: withCtx(() => [
3055
- createTextVNode(toDisplayString(button.text), 1)
3056
- ]),
3057
- _: 2
3058
- }, 1040, ["icon", "onClick"]))
3059
- ];
3060
- }),
3061
- _: 2
3062
- }, 1032, ["value", "max"]))
3057
+ }, 1024)) : (openBlock(), createBlock(_component_el_badge, {
3058
+ key: 1,
3059
+ value: button.count,
3060
+ max: button.maxCount
3061
+ }, {
3062
+ default: withCtx(() => {
3063
+ var _a2;
3064
+ return [
3065
+ button.renderFn ? (openBlock(), createBlock(_sfc_main$G, {
3066
+ key: 0,
3067
+ context: _ctx.context,
3068
+ "render-fn": button.renderFn,
3069
+ text: button.text,
3070
+ onClick: ($event) => handleButtonClick(index2)
3071
+ }, null, 8, ["context", "render-fn", "text", "onClick"])) : (openBlock(), createBlock(_component_el_button, mergeProps({
3072
+ key: 1,
3073
+ ref_for: true
3074
+ }, button.props, {
3075
+ icon: ((_a2 = button.props) == null ? void 0 : _a2.icon) ? typeof button.props.icon === "string" ? button.props.icon : { ...button.props.icon } : null,
3076
+ onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
3077
+ }), {
3078
+ default: withCtx(() => [
3079
+ createTextVNode(toDisplayString(button.text), 1)
3080
+ ]),
3081
+ _: 2
3082
+ }, 1040, ["icon", "onClick"]))
3083
+ ];
3084
+ }),
3085
+ _: 2
3086
+ }, 1032, ["value", "max"]))
3087
+ ];
3088
+ }, true)
3063
3089
  ], 2);
3064
3090
  }), 128))
3065
3091
  ], 2);
3066
3092
  };
3067
3093
  }
3068
3094
  });
3069
- var index_vue_vue_type_style_index_0_scoped_true_lang$a = "";
3070
- var _export_sfc = (sfc, props) => {
3071
- const target = sfc.__vccOpts || sfc;
3072
- for (const [key, val] of props) {
3073
- target[key] = val;
3074
- }
3075
- return target;
3076
- };
3077
- const _hoisted_1$g = { class: "selectable-operate" };
3095
+ var ButtonsRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-7e05c338"]]);
3096
+ var index_vue_vue_type_style_index_0_scoped_true_lang$b = "";
3097
+ const _hoisted_1$h = { class: "selectable-operate" };
3078
3098
  const __default__$k = {
3079
3099
  name: "SelectableOpearte",
3080
3100
  inheritAttrs: false
3081
3101
  };
3082
- const _sfc_main$D = defineComponent({
3102
+ const _sfc_main$E = defineComponent({
3083
3103
  ...__default__$k,
3084
3104
  props: {
3085
3105
  els: {},
@@ -3093,8 +3113,8 @@ const _sfc_main$D = defineComponent({
3093
3113
  return ((_a = props.tableManager) == null ? void 0 : _a.selection) || [];
3094
3114
  });
3095
3115
  return (_ctx, _cache) => {
3096
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
3097
- createVNode(_sfc_main$E, mergeProps({
3116
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
3117
+ createVNode(ButtonsRenderer, mergeProps({
3098
3118
  els: props.els,
3099
3119
  "execute-data": [executeData.value],
3100
3120
  context: props.manager
@@ -3103,7 +3123,7 @@ const _sfc_main$D = defineComponent({
3103
3123
  };
3104
3124
  }
3105
3125
  });
3106
- var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-4e4544c2"]]);
3126
+ var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4e4544c2"]]);
3107
3127
  class SearchFormManager extends IManager {
3108
3128
  constructor(form) {
3109
3129
  super();
@@ -3171,7 +3191,7 @@ class SearchFormManager extends IManager {
3171
3191
  this.manager = manager;
3172
3192
  }
3173
3193
  }
3174
- const _sfc_main$C = defineComponent({
3194
+ const _sfc_main$D = defineComponent({
3175
3195
  name: "FormItemRenderer",
3176
3196
  props: {
3177
3197
  modelValue: null,
@@ -3390,10 +3410,10 @@ const useMove = (callback) => {
3390
3410
  return { destroy, bind };
3391
3411
  };
3392
3412
  var index_vue_vue_type_style_index_0_lang$a = "";
3393
- const _hoisted_1$f = { class: "el-dialog__title" };
3413
+ const _hoisted_1$g = { class: "el-dialog__title" };
3394
3414
  const MIN_WIDTH = 300;
3395
3415
  const MIN_HEIGHT = 160;
3396
- const _sfc_main$B = defineComponent({
3416
+ const _sfc_main$C = defineComponent({
3397
3417
  __name: "index",
3398
3418
  props: {
3399
3419
  modelValue: { type: Boolean },
@@ -3462,7 +3482,7 @@ const _sfc_main$B = defineComponent({
3462
3482
  class: `${unref(BEMSpace)} ${props.customClass}`
3463
3483
  }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
3464
3484
  header: withCtx(() => [
3465
- createElementVNode("span", _hoisted_1$f, toDisplayString(_ctx.title), 1)
3485
+ createElementVNode("span", _hoisted_1$g, toDisplayString(_ctx.title), 1)
3466
3486
  ]),
3467
3487
  default: withCtx(() => [
3468
3488
  renderSlot(_ctx.$slots, "default"),
@@ -3486,7 +3506,7 @@ const _sfc_main$B = defineComponent({
3486
3506
  }
3487
3507
  });
3488
3508
  var index_vue_vue_type_style_index_0_lang$9 = "";
3489
- const _sfc_main$A = defineComponent({
3509
+ const _sfc_main$B = defineComponent({
3490
3510
  __name: "index",
3491
3511
  emits: ["filter"],
3492
3512
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -3521,7 +3541,7 @@ const _sfc_main$A = defineComponent({
3521
3541
  const _component_el_form_item = resolveComponent("el-form-item");
3522
3542
  const _component_el_form = resolveComponent("el-form");
3523
3543
  const _component_el_button = resolveComponent("el-button");
3524
- return openBlock(), createBlock(_sfc_main$B, {
3544
+ return openBlock(), createBlock(_sfc_main$C, {
3525
3545
  modelValue: isShow.value,
3526
3546
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
3527
3547
  title: "\u7B5B\u9009\u6761\u4EF6",
@@ -3567,7 +3587,7 @@ const _sfc_main$A = defineComponent({
3567
3587
  prop: item.prop
3568
3588
  }), {
3569
3589
  default: withCtx(() => [
3570
- createVNode(_sfc_main$C, {
3590
+ createVNode(_sfc_main$D, {
3571
3591
  modelValue: formData.value[item.prop],
3572
3592
  "onUpdate:modelValue": ($event) => formData.value[item.prop] = $event,
3573
3593
  renderFn: item.renderFn,
@@ -3687,6 +3707,8 @@ const _PageModelManager = class extends Reflections {
3687
3707
  __publicField(this, "loadingInstance");
3688
3708
  __publicField(this, "authButtons", []);
3689
3709
  __publicField(this, "exposeActions", {});
3710
+ __publicField(this, "isFilterPopupVisible", false);
3711
+ __publicField(this, "isSortPopupVisible", false);
3690
3712
  this.id = managerController.getManagerId();
3691
3713
  }
3692
3714
  static setDefaultConfig(config) {
@@ -4114,6 +4136,12 @@ const _PageModelManager = class extends Reflections {
4114
4136
  updateAuthButtons(buttons) {
4115
4137
  this.authButtons = buttons;
4116
4138
  }
4139
+ updateFilterPopupVisible(visible) {
4140
+ this.isFilterPopupVisible = visible;
4141
+ }
4142
+ updateSortPopupVisible(visible) {
4143
+ this.isSortPopupVisible = visible;
4144
+ }
4117
4145
  destroy() {
4118
4146
  this.children.forEach((item) => {
4119
4147
  item.destroy();
@@ -4240,7 +4268,7 @@ var index_vue_vue_type_style_index_0_lang$8 = "";
4240
4268
  const __default__$j = {
4241
4269
  name: "PageModelSearchForm"
4242
4270
  };
4243
- const _sfc_main$z = defineComponent({
4271
+ const _sfc_main$A = defineComponent({
4244
4272
  ...__default__$j,
4245
4273
  props: {
4246
4274
  form: {},
@@ -4394,7 +4422,7 @@ const _sfc_main$z = defineComponent({
4394
4422
  style: { width: ((_a = item.style) == null ? void 0 : _a.width) || unref(searchFormItemWidth) }
4395
4423
  }), {
4396
4424
  default: withCtx(() => [
4397
- createVNode(_sfc_main$C, {
4425
+ createVNode(_sfc_main$D, {
4398
4426
  modelValue: searchFormManager.formData[item.prop],
4399
4427
  "onUpdate:modelValue": ($event) => searchFormManager.formData[item.prop] = $event,
4400
4428
  renderFn: item.renderFn,
@@ -4477,7 +4505,7 @@ const _sfc_main$z = defineComponent({
4477
4505
  }, [
4478
4506
  renderSlot(_ctx.$slots, "default")
4479
4507
  ], 2),
4480
- searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$A, {
4508
+ searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$B, {
4481
4509
  key: 0,
4482
4510
  ref_key: "SearchFormFullRef",
4483
4511
  ref: SearchFormFullRef,
@@ -4605,6 +4633,7 @@ class TableManager extends IManager {
4605
4633
  __publicField(this, "sortParams", {});
4606
4634
  __publicField(this, "isInitColumnParams", false);
4607
4635
  __publicField(this, "isInitColumnSortParams", false);
4636
+ __publicField(this, "isColumnToolsVisible", false);
4608
4637
  __publicField(this, "randomRowKey", null);
4609
4638
  __publicField(this, "columnParamsList", []);
4610
4639
  __publicField(this, "columnSortParamsList", []);
@@ -4619,6 +4648,7 @@ class TableManager extends IManager {
4619
4648
  __publicField(this, "saveContent");
4620
4649
  __publicField(this, "scrollTop", 0);
4621
4650
  __publicField(this, "scrollLeft", 0);
4651
+ __publicField(this, "exposeActions", {});
4622
4652
  this.propsConfig = config;
4623
4653
  this.init();
4624
4654
  }
@@ -4644,6 +4674,9 @@ class TableManager extends IManager {
4644
4674
  this.columnSortParamsList = params || [];
4645
4675
  this.isInitColumnSortParams = true;
4646
4676
  }
4677
+ updateColumnToolsVisible(visible) {
4678
+ this.isColumnToolsVisible = visible;
4679
+ }
4647
4680
  get table() {
4648
4681
  var _a;
4649
4682
  return ((_a = this.config) == null ? void 0 : _a.table) || this.propsConfig || {
@@ -4832,6 +4865,7 @@ class TableManager extends IManager {
4832
4865
  }
4833
4866
  this.patchTableSelectable();
4834
4867
  this.patchTableRadio();
4868
+ this.patchTableContextMenu();
4835
4869
  const isUseSort = this.table.els.some((a) => a.sortValues);
4836
4870
  if (isUseSort) {
4837
4871
  this.patchTableSortable();
@@ -4882,6 +4916,18 @@ class TableManager extends IManager {
4882
4916
  }.bind(this);
4883
4917
  }
4884
4918
  }
4919
+ patchTableContextMenu() {
4920
+ if (!this.table.contextMenu) {
4921
+ return false;
4922
+ }
4923
+ const _rowContextmenu = this.tableEvents["rowContextmenu"];
4924
+ this.tableEvents["rowContextmenu"] = function(row, column, event) {
4925
+ _rowContextmenu == null ? void 0 : _rowContextmenu.call(this, row, column, event);
4926
+ event.preventDefault();
4927
+ const rowIndex = this.tableData.findIndex((a) => a[this.rowKey] === row[this.rowKey]);
4928
+ this.exposeActions.showContextMenu(row, rowIndex, event);
4929
+ }.bind(this);
4930
+ }
4885
4931
  patchTableSortable() {
4886
4932
  const _this = this;
4887
4933
  const _sortChange = this.tableEvents["sortChange"];
@@ -5351,7 +5397,7 @@ class TableManager extends IManager {
5351
5397
  this.removeCellOutClickEvent();
5352
5398
  }
5353
5399
  }
5354
- const _sfc_main$y = defineComponent({
5400
+ const _sfc_main$z = defineComponent({
5355
5401
  name: "TableCellRenderer",
5356
5402
  props: {
5357
5403
  renderFn: {
@@ -5389,29 +5435,36 @@ const _sfc_main$y = defineComponent({
5389
5435
  };
5390
5436
  }
5391
5437
  });
5392
- var index_vue_vue_type_style_index_0_scoped_true_lang$9 = "";
5438
+ var index_vue_vue_type_style_index_0_scoped_true_lang$a = "";
5393
5439
  const __default__$i = {
5394
5440
  name: "SimplePopover"
5395
5441
  };
5396
- const _sfc_main$x = defineComponent({
5442
+ const _sfc_main$y = defineComponent({
5397
5443
  ...__default__$i,
5398
5444
  props: {
5399
5445
  width: { default: 200 },
5400
5446
  placement: { default: "right" }
5401
5447
  },
5402
- setup(__props, { expose: __expose }) {
5448
+ emits: ["closed"],
5449
+ setup(__props, { expose: __expose, emit: __emit }) {
5403
5450
  const { BEMSpace } = createBEMSpace("simple-popover");
5404
5451
  const props = __props;
5452
+ const emit = __emit;
5405
5453
  const { nextZIndex } = useZIndex();
5406
5454
  const visible = ref(false);
5407
5455
  const isRender = ref(false);
5456
+ let hideTimer = null;
5408
5457
  watch(
5409
5458
  () => visible.value,
5410
5459
  (val) => {
5411
5460
  if (val) {
5412
5461
  isRender.value = true;
5462
+ if (hideTimer) {
5463
+ clearTimeout(hideTimer);
5464
+ hideTimer = null;
5465
+ }
5413
5466
  } else {
5414
- setTimeout(() => {
5467
+ hideTimer = setTimeout(() => {
5415
5468
  isRender.value = false;
5416
5469
  }, 300);
5417
5470
  }
@@ -5472,7 +5525,7 @@ const _sfc_main$x = defineComponent({
5472
5525
  return false;
5473
5526
  }
5474
5527
  };
5475
- const handleHide = (e) => {
5528
+ const handleClickElement = (e) => {
5476
5529
  if (isChildElement(popoverRef.value, e.target) || isPopperChildElement(e.target)) {
5477
5530
  return;
5478
5531
  }
@@ -5482,35 +5535,50 @@ const _sfc_main$x = defineComponent({
5482
5535
  currentTriggerElement && getPopoverTriggerElementRectInfo(currentTriggerElement);
5483
5536
  }, 100);
5484
5537
  const bindEvent = () => {
5485
- document.addEventListener("mousedown", handleHide);
5486
- document.addEventListener("touchstart", handleHide);
5538
+ document.addEventListener("mousedown", handleClickElement);
5539
+ document.addEventListener("touchstart", handleClickElement);
5487
5540
  window.addEventListener("resize", handleResize);
5488
5541
  };
5489
5542
  const unbindEvent = () => {
5490
- document.removeEventListener("mousedown", handleHide);
5491
- document.removeEventListener("touchstart", handleHide);
5543
+ document.removeEventListener("mousedown", handleClickElement);
5544
+ document.removeEventListener("touchstart", handleClickElement);
5492
5545
  window.removeEventListener("resize", handleResize);
5493
5546
  };
5494
5547
  const hide = () => {
5548
+ currentTriggerElement = null;
5495
5549
  unbindEvent();
5496
5550
  visible.value = false;
5551
+ emit("closed");
5497
5552
  };
5498
5553
  const zIndex = ref(0);
5499
5554
  const show = (element) => {
5500
- if (visible.value) {
5501
- if (currentTriggerElement === element) {
5555
+ if (element instanceof DOMRect) {
5556
+ currentTriggerElement = null;
5557
+ popoverRectInfo.value = element;
5558
+ if (visible.value) {
5502
5559
  hide();
5503
- return;
5504
5560
  }
5505
- unbindEvent();
5561
+ zIndex.value = nextZIndex();
5562
+ visible.value = true;
5563
+ setTimeout(() => {
5564
+ bindEvent();
5565
+ }, 0);
5566
+ } else {
5567
+ if (visible.value) {
5568
+ if (currentTriggerElement === element) {
5569
+ hide();
5570
+ return;
5571
+ }
5572
+ unbindEvent();
5573
+ }
5574
+ zIndex.value = nextZIndex();
5575
+ currentTriggerElement = element;
5576
+ getPopoverTriggerElementRectInfo(currentTriggerElement);
5577
+ visible.value = true;
5578
+ setTimeout(() => {
5579
+ bindEvent();
5580
+ }, 0);
5506
5581
  }
5507
- zIndex.value = nextZIndex();
5508
- currentTriggerElement = element;
5509
- getPopoverTriggerElementRectInfo(currentTriggerElement);
5510
- visible.value = true;
5511
- setTimeout(() => {
5512
- bindEvent();
5513
- }, 0);
5514
5582
  };
5515
5583
  __expose({
5516
5584
  show,
@@ -5534,7 +5602,7 @@ const _sfc_main$x = defineComponent({
5534
5602
  };
5535
5603
  }
5536
5604
  });
5537
- var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-852a9e34"]]);
5605
+ var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-200a6b63"]]);
5538
5606
  var FilterItemTypeEnum$1 = /* @__PURE__ */ ((FilterItemTypeEnum2) => {
5539
5607
  FilterItemTypeEnum2["\u6587\u5B57"] = "string";
5540
5608
  FilterItemTypeEnum2["\u6570\u5B57"] = "number";
@@ -5637,9 +5705,9 @@ const compareOptions$1 = {
5637
5705
  }
5638
5706
  ]
5639
5707
  };
5640
- var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
5641
- const _hoisted_1$e = { key: 1 };
5642
- const _sfc_main$w = defineComponent({
5708
+ var index_vue_vue_type_style_index_0_scoped_true_lang$9 = "";
5709
+ const _hoisted_1$f = { key: 1 };
5710
+ const _sfc_main$x = defineComponent({
5643
5711
  __name: "index",
5644
5712
  props: {
5645
5713
  tableManager: {}
@@ -6019,7 +6087,7 @@ const _sfc_main$w = defineComponent({
6019
6087
  createTextVNode("\u7B5B\u9009\u6761\u4EF6")
6020
6088
  ]),
6021
6089
  _: 1
6022
- }, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_1$e)),
6090
+ }, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_1$f)),
6023
6091
  createElementVNode("div", null, [
6024
6092
  createVNode(_component_el_button, { onClick: handleClear }, {
6025
6093
  default: withCtx(() => [
@@ -6043,9 +6111,9 @@ const _sfc_main$w = defineComponent({
6043
6111
  };
6044
6112
  }
6045
6113
  });
6046
- var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-9b1b33b8"]]);
6114
+ var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-9b1b33b8"]]);
6047
6115
  var index_vue_vue_type_style_index_0_lang$7 = "";
6048
- const _hoisted_1$d = ["data-key", "title"];
6116
+ const _hoisted_1$e = ["data-key", "title"];
6049
6117
  const _hoisted_2$7 = {
6050
6118
  key: 0,
6051
6119
  style: { "color": "red" }
@@ -6070,7 +6138,7 @@ const _hoisted_10$1 = ["onClick"];
6070
6138
  const __default__$h = {
6071
6139
  name: "TableColumn"
6072
6140
  };
6073
- const _sfc_main$v = defineComponent({
6141
+ const _sfc_main$w = defineComponent({
6074
6142
  ...__default__$h,
6075
6143
  props: {
6076
6144
  els: {},
@@ -6230,7 +6298,7 @@ const _sfc_main$v = defineComponent({
6230
6298
  _: 1
6231
6299
  })
6232
6300
  ], 14, _hoisted_3$6)) : createCommentVNode("", true)
6233
- ], 10, _hoisted_1$d)
6301
+ ], 10, _hoisted_1$e)
6234
6302
  ]),
6235
6303
  default: withCtx(({ row, $index, column: columnEl }) => [
6236
6304
  column.children ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -6257,7 +6325,7 @@ const _sfc_main$v = defineComponent({
6257
6325
  ) ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
6258
6326
  column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
6259
6327
  createElementVNode("div", _hoisted_6$3, [
6260
- createVNode(_sfc_main$C, {
6328
+ createVNode(_sfc_main$D, {
6261
6329
  modelValue: row[column.editData.prop || column.prop],
6262
6330
  renderFn: column.editData.renderFn,
6263
6331
  context: props.context,
@@ -6293,7 +6361,7 @@ const _sfc_main$v = defineComponent({
6293
6361
  ])) : createCommentVNode("", true)
6294
6362
  ], 64)) : (openBlock(), createElementBlock("div", _hoisted_8$1, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
6295
6363
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
6296
- column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$y, {
6364
+ column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$z, {
6297
6365
  key: 0,
6298
6366
  "render-fn": column.renderFn,
6299
6367
  context: props.context,
@@ -7297,7 +7365,7 @@ var Sortable = Sortable_min.exports;
7297
7365
  const __default__$g = {
7298
7366
  name: "DraggableList"
7299
7367
  };
7300
- const _sfc_main$u = defineComponent({
7368
+ const _sfc_main$v = defineComponent({
7301
7369
  ...__default__$g,
7302
7370
  props: {
7303
7371
  modelValue: {},
@@ -7398,7 +7466,7 @@ var setting_vue_vue_type_style_index_1_lang$2 = "";
7398
7466
  const __default__$f = {
7399
7467
  name: "SaveColumnSetting"
7400
7468
  };
7401
- const _sfc_main$t = defineComponent({
7469
+ const _sfc_main$u = defineComponent({
7402
7470
  ...__default__$f,
7403
7471
  props: {
7404
7472
  onlyShow: { type: Boolean, default: false }
@@ -7474,7 +7542,7 @@ const _sfc_main$t = defineComponent({
7474
7542
  const _component_el_radio_group = resolveComponent("el-radio-group");
7475
7543
  const _component_el_input_number = resolveComponent("el-input-number");
7476
7544
  const _component_el_button = resolveComponent("el-button");
7477
- return openBlock(), createBlock(_sfc_main$B, {
7545
+ return openBlock(), createBlock(_sfc_main$C, {
7478
7546
  modelValue: visible.value,
7479
7547
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
7480
7548
  title: "\u7F16\u8F91\u8868\u683C",
@@ -7523,7 +7591,7 @@ const _sfc_main$t = defineComponent({
7523
7591
  createElementVNode("div", {
7524
7592
  class: normalizeClass(unref(createBEMName)("column-table-wrap"))
7525
7593
  }, [
7526
- createVNode(_sfc_main$u, {
7594
+ createVNode(_sfc_main$v, {
7527
7595
  modelValue: innerEls.value,
7528
7596
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
7529
7597
  "item-key": "_key"
@@ -7718,7 +7786,7 @@ var userConfig_vue_vue_type_style_index_1_lang = "";
7718
7786
  const __default__$e = {
7719
7787
  name: "SaveUserConfig"
7720
7788
  };
7721
- const _sfc_main$s = defineComponent({
7789
+ const _sfc_main$t = defineComponent({
7722
7790
  ...__default__$e,
7723
7791
  emits: ["submit", "closed"],
7724
7792
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -7782,7 +7850,7 @@ const _sfc_main$s = defineComponent({
7782
7850
  };
7783
7851
  return (_ctx, _cache) => {
7784
7852
  const _component_el_button = resolveComponent("el-button");
7785
- return openBlock(), createBlock(_sfc_main$B, {
7853
+ return openBlock(), createBlock(_sfc_main$C, {
7786
7854
  modelValue: visible.value,
7787
7855
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
7788
7856
  title: "\u7F16\u8F91\u79C1\u4EBA\u914D\u7F6E",
@@ -7849,7 +7917,7 @@ const useUserConfig = () => {
7849
7917
  var index_vue_vue_type_style_index_0_lang$6 = "";
7850
7918
  var index_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
7851
7919
  const _withScopeId$3 = (n) => (pushScopeId("data-v-7bf8eedc"), n = n(), popScopeId(), n);
7852
- const _hoisted_1$c = { title: "\u5168\u9009/\u53D6\u6D88" };
7920
+ const _hoisted_1$d = { title: "\u5168\u9009/\u53D6\u6D88" };
7853
7921
  const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("i", {
7854
7922
  class: "pm-icon icon-drag-dot",
7855
7923
  title: "\u62D6\u52A8\u8C03\u6574\u663E\u793A\u987A\u5E8F"
@@ -7857,7 +7925,7 @@ const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
7857
7925
  const _hoisted_3$5 = ["title"];
7858
7926
  const _hoisted_4$4 = ["title", "onClick"];
7859
7927
  const _hoisted_5$3 = ["title", "onClick"];
7860
- const _sfc_main$r = defineComponent({
7928
+ const _sfc_main$s = defineComponent({
7861
7929
  __name: "index",
7862
7930
  props: {
7863
7931
  els: {}
@@ -7951,7 +8019,7 @@ const _sfc_main$r = defineComponent({
7951
8019
  createElementVNode("div", {
7952
8020
  class: normalizeClass(unref(createBEMName)("header"))
7953
8021
  }, [
7954
- createElementVNode("span", _hoisted_1$c, [
8022
+ createElementVNode("span", _hoisted_1$d, [
7955
8023
  createVNode(_component_el_checkbox, {
7956
8024
  label: "\u5168\u90E8",
7957
8025
  modelValue: isAllShow.value,
@@ -7989,7 +8057,7 @@ const _sfc_main$r = defineComponent({
7989
8057
  createElementVNode("div", {
7990
8058
  class: normalizeClass(unref(createBEMName)("list"))
7991
8059
  }, [
7992
- createVNode(_sfc_main$u, {
8060
+ createVNode(_sfc_main$v, {
7993
8061
  modelValue: innerEls.value,
7994
8062
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => innerEls.value = $event),
7995
8063
  class: normalizeClass(unref(BEMSpace))
@@ -8055,14 +8123,14 @@ const _sfc_main$r = defineComponent({
8055
8123
  _: 1
8056
8124
  })
8057
8125
  ], 2),
8058
- unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$t, {
8126
+ unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$u, {
8059
8127
  key: 0,
8060
8128
  ref_key: "columnToolsSettingRef",
8061
8129
  ref: columnToolsSettingRef,
8062
8130
  onSubmit: onSubmitColumns,
8063
8131
  onClosed: unref(onColumnToolsSettingClosed)
8064
8132
  }, null, 8, ["onClosed"])) : createCommentVNode("", true),
8065
- unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$s, {
8133
+ unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$t, {
8066
8134
  key: 1,
8067
8135
  ref_key: "userConfigRef",
8068
8136
  ref: userConfigRef,
@@ -8073,17 +8141,17 @@ const _sfc_main$r = defineComponent({
8073
8141
  };
8074
8142
  }
8075
8143
  });
8076
- var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-7bf8eedc"]]);
8077
- var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
8144
+ var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7bf8eedc"]]);
8145
+ var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
8078
8146
  const _withScopeId$2 = (n) => (pushScopeId("data-v-15dbe923"), n = n(), popScopeId(), n);
8079
- const _hoisted_1$b = { key: 0 };
8147
+ const _hoisted_1$c = { key: 0 };
8080
8148
  const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
8081
8149
  const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u9875\u5F00\u59CB\u5BFC\u51FA\uFF0C\u6BCF\u9875", -1));
8082
8150
  const _hoisted_4$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u6761\u6570\u636E", -1));
8083
8151
  const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
8084
8152
  const _hoisted_6$2 = { class: "export-columns" };
8085
8153
  const _hoisted_7$2 = { class: "bottom-box" };
8086
- const _sfc_main$q = defineComponent({
8154
+ const _sfc_main$r = defineComponent({
8087
8155
  __name: "index",
8088
8156
  emits: ["closed"],
8089
8157
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -8236,7 +8304,7 @@ const _sfc_main$q = defineComponent({
8236
8304
  const _component_el_empty = resolveComponent("el-empty");
8237
8305
  const _component_el_button = resolveComponent("el-button");
8238
8306
  const _directive_loading = resolveDirective("loading");
8239
- return openBlock(), createBlock(_sfc_main$B, {
8307
+ return openBlock(), createBlock(_sfc_main$C, {
8240
8308
  modelValue: visible.value,
8241
8309
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => visible.value = $event),
8242
8310
  title: "\u5BFC\u51FA\u8868\u683C\u6570\u636E",
@@ -8321,7 +8389,7 @@ const _sfc_main$q = defineComponent({
8321
8389
  ]),
8322
8390
  _: 1
8323
8391
  }, 8, ["modelValue"]),
8324
- formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
8392
+ formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
8325
8393
  _hoisted_2$5,
8326
8394
  createVNode(_component_el_input_number, {
8327
8395
  modelValue: formData.pageIndex,
@@ -8410,35 +8478,35 @@ const _sfc_main$q = defineComponent({
8410
8478
  };
8411
8479
  }
8412
8480
  });
8413
- var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-15dbe923"]]);
8481
+ var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-15dbe923"]]);
8414
8482
  const SAVE_NAME$2 = "table-columns";
8415
8483
  const columnsSaver$1 = new ConfigSaver(SAVE_NAME$2);
8416
8484
  const saveTableColumns = columnsSaver$1.setContents.bind(columnsSaver$1);
8417
8485
  const genSaveColumnName = columnsSaver$1.genScopeItemKey.bind(columnsSaver$1);
8418
8486
  const saveColumns$1 = columnsSaver$1.saveContentItem.bind(columnsSaver$1);
8419
8487
  const getColumns$1 = columnsSaver$1.getContentItem.bind(columnsSaver$1);
8420
- const _hoisted_1$a = { class: "el-table__empty-data" };
8488
+ const _hoisted_1$b = { class: "el-table__empty-data" };
8421
8489
  const __default__$d = {
8422
8490
  name: "EmptyData"
8423
8491
  };
8424
- const _sfc_main$p = defineComponent({
8492
+ const _sfc_main$q = defineComponent({
8425
8493
  ...__default__$d,
8426
8494
  props: {
8427
8495
  text: {}
8428
8496
  },
8429
8497
  setup(__props) {
8430
8498
  return (_ctx, _cache) => {
8431
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
8499
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
8432
8500
  createElementVNode("span", null, toDisplayString(_ctx.text || "\u6682\u65E0\u6570\u636E"), 1)
8433
8501
  ]);
8434
8502
  };
8435
8503
  }
8436
8504
  });
8437
- var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
8505
+ var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
8438
8506
  const __default__$c = {
8439
8507
  name: "SelectionsTable"
8440
8508
  };
8441
- const _sfc_main$o = defineComponent({
8509
+ const _sfc_main$p = defineComponent({
8442
8510
  ...__default__$c,
8443
8511
  emits: ["closed"],
8444
8512
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -8505,7 +8573,7 @@ const _sfc_main$o = defineComponent({
8505
8573
  });
8506
8574
  return (_ctx, _cache) => {
8507
8575
  const _component_el_button = resolveComponent("el-button");
8508
- return openBlock(), createBlock(_sfc_main$B, {
8576
+ return openBlock(), createBlock(_sfc_main$C, {
8509
8577
  modelValue: visible.value,
8510
8578
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
8511
8579
  title: "\u5DF2\u9009\u6570\u636E",
@@ -8554,7 +8622,7 @@ const _sfc_main$o = defineComponent({
8554
8622
  };
8555
8623
  }
8556
8624
  });
8557
- var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-3b4b4ed8"]]);
8625
+ var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3b4b4ed8"]]);
8558
8626
  const useSelectionsTable = () => {
8559
8627
  const selectionsTableRef = ref();
8560
8628
  const isRenderSelectionsTable = ref(false);
@@ -8716,7 +8784,7 @@ const useExportForm = () => {
8716
8784
  onExportFormClosed: onClosed
8717
8785
  };
8718
8786
  };
8719
- const _sfc_main$n = {
8787
+ const _sfc_main$o = {
8720
8788
  props: {
8721
8789
  isLoading: {
8722
8790
  type: Boolean,
@@ -8777,6 +8845,101 @@ const useColumnDrag = () => {
8777
8845
  }
8778
8846
  };
8779
8847
  };
8848
+ var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
8849
+ const _hoisted_1$a = ["onClick"];
8850
+ const _sfc_main$n = defineComponent({
8851
+ __name: "index",
8852
+ emits: ["add", "upd", "del", "import", "custom"],
8853
+ setup(__props, { expose: __expose, emit: __emit }) {
8854
+ const emit = __emit;
8855
+ const simplePopoverRef = ref();
8856
+ const currentOpt = ref();
8857
+ const buttonCount = ref(0);
8858
+ const handleCountChange = (count) => {
8859
+ buttonCount.value = count;
8860
+ };
8861
+ const contextMenuHeight = computed(() => {
8862
+ const maxShowCount = 6;
8863
+ const showCount = Math.min(buttonCount.value, maxShowCount) || 0;
8864
+ return `${showCount * 41 + 5}px`;
8865
+ });
8866
+ const show = (event, opt) => {
8867
+ var _a;
8868
+ const rect = new DOMRect(event.clientX, event.clientY, 0, 0);
8869
+ (_a = simplePopoverRef.value) == null ? void 0 : _a.show(rect);
8870
+ currentOpt.value = opt;
8871
+ };
8872
+ const hide = () => {
8873
+ var _a;
8874
+ (_a = simplePopoverRef.value) == null ? void 0 : _a.hide();
8875
+ };
8876
+ const handleItemClick = (item, index2) => {
8877
+ var _a;
8878
+ if ((_a = item.props) == null ? void 0 : _a.disabled) {
8879
+ return;
8880
+ }
8881
+ execButtonClickEvent(
8882
+ item,
8883
+ emit,
8884
+ currentOpt.value.executeData,
8885
+ currentOpt.value.context
8886
+ );
8887
+ hide();
8888
+ };
8889
+ __expose({
8890
+ show,
8891
+ hide
8892
+ });
8893
+ return (_ctx, _cache) => {
8894
+ const _component_el_scrollbar = resolveComponent("el-scrollbar");
8895
+ return openBlock(), createBlock(SimplePopover, {
8896
+ ref_key: "simplePopoverRef",
8897
+ ref: simplePopoverRef,
8898
+ width: 200
8899
+ }, {
8900
+ default: withCtx(() => [
8901
+ createElementVNode("div", {
8902
+ class: "context-menu",
8903
+ style: normalizeStyle({
8904
+ height: contextMenuHeight.value
8905
+ })
8906
+ }, [
8907
+ createVNode(_component_el_scrollbar, { style: { "height": "100%" } }, {
8908
+ default: withCtx(() => [
8909
+ createVNode(ButtonsRenderer, mergeProps({
8910
+ ...currentOpt.value,
8911
+ ..._ctx.$attrs
8912
+ }, {
8913
+ direction: "vertical",
8914
+ onCountChange: handleCountChange
8915
+ }), {
8916
+ default: withCtx(({ item, index: index2 }) => [
8917
+ renderSlot(_ctx.$slots, "default", {
8918
+ item,
8919
+ index: index2
8920
+ }, () => {
8921
+ var _a;
8922
+ return [
8923
+ createElementVNode("div", {
8924
+ class: normalizeClass(["context-menu__item", { disabled: (_a = item.props) == null ? void 0 : _a.disabled }]),
8925
+ onClick: ($event) => handleItemClick(item)
8926
+ }, toDisplayString(item.text), 11, _hoisted_1$a)
8927
+ ];
8928
+ }, true)
8929
+ ]),
8930
+ _: 3
8931
+ }, 16)
8932
+ ]),
8933
+ _: 3
8934
+ })
8935
+ ], 4)
8936
+ ]),
8937
+ _: 3
8938
+ }, 512);
8939
+ };
8940
+ }
8941
+ });
8942
+ var ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9222a038"]]);
8780
8943
  var index_vue_vue_type_style_index_0_lang$5 = "";
8781
8944
  const __default__$b = {
8782
8945
  name: "PageModelTable",
@@ -8913,14 +9076,18 @@ const _sfc_main$m = defineComponent({
8913
9076
  var _a;
8914
9077
  (_a = tableRef.value) == null ? void 0 : _a.doLayout();
8915
9078
  };
8916
- const simplePopoverRef = ref();
9079
+ const columnToolsSimplePopoverRef = ref();
8917
9080
  const showColumnToolSimplePopover = (element) => {
8918
9081
  var _a;
8919
- (_a = simplePopoverRef.value) == null ? void 0 : _a.show(element);
9082
+ (_a = columnToolsSimplePopoverRef.value) == null ? void 0 : _a.show(element);
9083
+ tableManager.updateColumnToolsVisible(true);
8920
9084
  };
8921
9085
  const hideColumnToolSimplePopover = () => {
8922
9086
  var _a;
8923
- (_a = simplePopoverRef.value) == null ? void 0 : _a.hide();
9087
+ (_a = columnToolsSimplePopoverRef.value) == null ? void 0 : _a.hide();
9088
+ };
9089
+ const handleColumnToolsClosed = () => {
9090
+ tableManager.updateColumnToolsVisible(false);
8924
9091
  };
8925
9092
  const scrollLifecycle = useListenScroll(tableManager);
8926
9093
  const { initTableDrag, destroyTableDrag } = useColumnDrag();
@@ -8975,6 +9142,33 @@ const _sfc_main$m = defineComponent({
8975
9142
  saveColumnSort(tableManager.table.els, tableManager.columnSortParamsList);
8976
9143
  }
8977
9144
  };
9145
+ const contextMenuRef = ref();
9146
+ const showContextMenu = (row, rowIndex, event) => {
9147
+ var _a, _b;
9148
+ const contextMenu = tableManager.table.contextMenu;
9149
+ let buttons = [];
9150
+ if (contextMenu.containOperation) {
9151
+ buttons = cloneDeep(((_a = tableManager.table.operate) == null ? void 0 : _a.els) || []);
9152
+ buttons = buttons.reduce((memo, button) => {
9153
+ memo.push(button);
9154
+ if (button.children) {
9155
+ memo.push(...button.children);
9156
+ }
9157
+ return memo;
9158
+ }, []);
9159
+ }
9160
+ if (contextMenu.els) {
9161
+ buttons = buttons.concat(cloneDeep(contextMenu.els));
9162
+ }
9163
+ if (!buttons.length) {
9164
+ return;
9165
+ }
9166
+ (_b = contextMenuRef.value) == null ? void 0 : _b.show(event, {
9167
+ els: buttons,
9168
+ context: tableManager,
9169
+ executeData: [row, rowIndex]
9170
+ });
9171
+ };
8978
9172
  onUnmounted(() => {
8979
9173
  tableManager.onUnmounted();
8980
9174
  scrollLifecycle.onUnmounted();
@@ -8983,7 +9177,8 @@ const _sfc_main$m = defineComponent({
8983
9177
  onActivated(() => {
8984
9178
  scrollLifecycle.onActivated();
8985
9179
  });
8986
- __expose({
9180
+ const exposeActions = {
9181
+ showContextMenu,
8987
9182
  showExport,
8988
9183
  clearSelection,
8989
9184
  getRenderedEls,
@@ -8991,6 +9186,10 @@ const _sfc_main$m = defineComponent({
8991
9186
  hideColumnToolSimplePopover,
8992
9187
  handleColumnScreen,
8993
9188
  handleColumnSort
9189
+ };
9190
+ tableManager.exposeActions = exposeActions;
9191
+ __expose({
9192
+ ...exposeActions
8994
9193
  });
8995
9194
  return (_ctx, _cache) => {
8996
9195
  const _component_el_radio = resolveComponent("el-radio");
@@ -9001,7 +9200,7 @@ const _sfc_main$m = defineComponent({
9001
9200
  const _component_el_popconfirm = resolveComponent("el-popconfirm");
9002
9201
  const _component_el_pagination = resolveComponent("el-pagination");
9003
9202
  return openBlock(), createElementBlock(Fragment, null, [
9004
- createVNode(_sfc_main$n, {
9203
+ createVNode(_sfc_main$o, {
9005
9204
  class: normalizeClass([unref(createBEMName)("table")]),
9006
9205
  isLoading: tableManager.loadingData,
9007
9206
  directiveName: table.value.loadingDirectiveName
@@ -9025,7 +9224,7 @@ const _sfc_main$m = defineComponent({
9025
9224
  unref(PageModelManager).emptyTableComponent ? (openBlock(), createBlock(resolveDynamicComponent(unref(PageModelManager).emptyTableComponent), {
9026
9225
  key: 0,
9027
9226
  text: (_a = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _a.emptyText
9028
- }, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$p, {
9227
+ }, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$q, {
9029
9228
  key: 1,
9030
9229
  text: (_b = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _b.emptyText
9031
9230
  }, null, 8, ["text"]))
@@ -9086,7 +9285,7 @@ const _sfc_main$m = defineComponent({
9086
9285
  width: table.value.operate.width
9087
9286
  }, table.value.operate.props), {
9088
9287
  default: withCtx(({ row, $index }) => [
9089
- createVNode(_sfc_main$E, mergeProps({
9288
+ createVNode(ButtonsRenderer, mergeProps({
9090
9289
  els: table.value.operate.els,
9091
9290
  context: tableManager,
9092
9291
  executeData: [row, $index]
@@ -9095,7 +9294,7 @@ const _sfc_main$m = defineComponent({
9095
9294
  _: 1
9096
9295
  }, 16, ["width"])) : createCommentVNode("", true)
9097
9296
  ], 64)) : createCommentVNode("", true),
9098
- createVNode(_sfc_main$v, {
9297
+ createVNode(_sfc_main$w, {
9099
9298
  els: renderedTableEls.value,
9100
9299
  context: tableManager,
9101
9300
  onColumnScreen: handleColumnScreen
@@ -9107,7 +9306,7 @@ const _sfc_main$m = defineComponent({
9107
9306
  width: table.value.operate.width
9108
9307
  }, table.value.operate.props), {
9109
9308
  default: withCtx(({ row, $index }) => [
9110
- createVNode(_sfc_main$E, mergeProps({
9309
+ createVNode(ButtonsRenderer, mergeProps({
9111
9310
  els: table.value.operate.els,
9112
9311
  context: tableManager,
9113
9312
  executeData: [row, $index]
@@ -9203,8 +9402,9 @@ const _sfc_main$m = defineComponent({
9203
9402
  onClosed: unref(onSelectionsTableClosed)
9204
9403
  }, null, 8, ["onClosed"])) : createCommentVNode("", true),
9205
9404
  createVNode(SimplePopover, {
9206
- ref_key: "simplePopoverRef",
9207
- ref: simplePopoverRef
9405
+ ref_key: "columnToolsSimplePopoverRef",
9406
+ ref: columnToolsSimplePopoverRef,
9407
+ onClosed: handleColumnToolsClosed
9208
9408
  }, {
9209
9409
  default: withCtx(() => [
9210
9410
  createVNode(ColumnTools$1, {
@@ -9214,7 +9414,11 @@ const _sfc_main$m = defineComponent({
9214
9414
  }, null, 8, ["els"])
9215
9415
  ]),
9216
9416
  _: 1
9217
- }, 512)
9417
+ }, 512),
9418
+ createVNode(ContextMenu, mergeProps({
9419
+ ref_key: "contextMenuRef",
9420
+ ref: contextMenuRef
9421
+ }, _ctx.$attrs), null, 16)
9218
9422
  ], 64);
9219
9423
  };
9220
9424
  }
@@ -9230,6 +9434,7 @@ class FormManager extends IManager {
9230
9434
  __publicField(this, "errorProp");
9231
9435
  __publicField(this, "formUpdateEvent", new EventEmitter());
9232
9436
  __publicField(this, "tempFormData");
9437
+ __publicField(this, "isFormVisible", false);
9233
9438
  this.propsForm = form;
9234
9439
  }
9235
9440
  get form() {
@@ -9273,6 +9478,9 @@ class FormManager extends IManager {
9273
9478
  };
9274
9479
  }
9275
9480
  }
9481
+ updateFormVisible(visible) {
9482
+ this.isFormVisible = visible;
9483
+ }
9276
9484
  async updateFormData(formData) {
9277
9485
  const form = this.form;
9278
9486
  if (form == null ? void 0 : form.bindData) {
@@ -9888,7 +10096,7 @@ const _sfc_main$g = defineComponent({
9888
10096
  const _component_el_tab_pane = resolveComponent("el-tab-pane");
9889
10097
  const _component_el_tabs = resolveComponent("el-tabs");
9890
10098
  const _component_el_button = resolveComponent("el-button");
9891
- return openBlock(), createBlock(_sfc_main$B, {
10099
+ return openBlock(), createBlock(_sfc_main$C, {
9892
10100
  modelValue: visible.value,
9893
10101
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
9894
10102
  title: "\u8868\u5355\u914D\u7F6E",
@@ -9954,7 +10162,7 @@ const _sfc_main$g = defineComponent({
9954
10162
  ], 2);
9955
10163
  }), 128))
9956
10164
  ], 2),
9957
- createVNode(_sfc_main$u, {
10165
+ createVNode(_sfc_main$v, {
9958
10166
  modelValue: innerEls.value,
9959
10167
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
9960
10168
  "item-key": "_key"
@@ -10314,7 +10522,7 @@ const _sfc_main$f = defineComponent({
10314
10522
  key: 0,
10315
10523
  class: normalizeClass(unref(createBEMName)("prefix"))
10316
10524
  }, toDisplayString(renderDeText(item.prefix, formManager.formData)), 3)) : createCommentVNode("", true),
10317
- createVNode(_sfc_main$C, {
10525
+ createVNode(_sfc_main$D, {
10318
10526
  modelValue: formManager.formData[item.prop],
10319
10527
  renderFn: item.renderFn,
10320
10528
  context: formManager,
@@ -10441,7 +10649,7 @@ const _sfc_main$e = defineComponent({
10441
10649
  });
10442
10650
  return (_ctx, _cache) => {
10443
10651
  const _component_el_button = resolveComponent("el-button");
10444
- return formVisible.value ? (openBlock(), createBlock(_sfc_main$B, {
10652
+ return formVisible.value ? (openBlock(), createBlock(_sfc_main$C, {
10445
10653
  key: 0,
10446
10654
  modelValue: formVisible.value,
10447
10655
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formVisible.value = $event),
@@ -11453,7 +11661,7 @@ const _sfc_main$7 = defineComponent({
11453
11661
  props: {
11454
11662
  manager: {}
11455
11663
  },
11456
- emits: ["screen"],
11664
+ emits: ["screen", "closed"],
11457
11665
  setup(__props, { expose: __expose, emit: __emit }) {
11458
11666
  const props = __props;
11459
11667
  const emit = __emit;
@@ -11566,7 +11774,8 @@ const _sfc_main$7 = defineComponent({
11566
11774
  return openBlock(), createBlock(SimplePopover, {
11567
11775
  ref_key: "simplePopoverRef",
11568
11776
  ref: simplePopoverRef,
11569
- width: 560
11777
+ width: 560,
11778
+ onClosed: _cache[0] || (_cache[0] = ($event) => emit("closed"))
11570
11779
  }, {
11571
11780
  default: withCtx(() => [
11572
11781
  createElementVNode("div", {
@@ -11843,9 +12052,9 @@ const _sfc_main$7 = defineComponent({
11843
12052
  };
11844
12053
  }
11845
12054
  });
11846
- var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-aaf520fa"]]);
12055
+ var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-16a43018"]]);
11847
12056
  var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
11848
- const _withScopeId$1 = (n) => (pushScopeId("data-v-559d52de"), n = n(), popScopeId(), n);
12057
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-35c83e61"), n = n(), popScopeId(), n);
11849
12058
  const _hoisted_1$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "\u8BBE\u7F6E\u6392\u5E8F\u6761\u4EF6", -1));
11850
12059
  const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", {
11851
12060
  class: "pm-icon icon-drag-dot",
@@ -11868,7 +12077,7 @@ const _sfc_main$6 = defineComponent({
11868
12077
  props: {
11869
12078
  manager: {}
11870
12079
  },
11871
- emits: ["screen"],
12080
+ emits: ["screen", "closed"],
11872
12081
  setup(__props, { expose: __expose, emit: __emit }) {
11873
12082
  const props = __props;
11874
12083
  const emit = __emit;
@@ -11931,9 +12140,12 @@ const _sfc_main$6 = defineComponent({
11931
12140
  const handleSelectSortItem = (item, sortValue) => {
11932
12141
  item.order = sortValue;
11933
12142
  };
12143
+ const popoverRef = ref();
11934
12144
  const handleClickSelect = (addProp) => {
12145
+ var _a;
11935
12146
  const item = getAddFilterItem(addProp);
11936
12147
  filterList.value.push(item);
12148
+ (_a = popoverRef.value) == null ? void 0 : _a.hide();
11937
12149
  };
11938
12150
  const handleRemoveItem = (index2) => {
11939
12151
  filterList.value.splice(index2, 1);
@@ -11965,7 +12177,8 @@ const _sfc_main$6 = defineComponent({
11965
12177
  return openBlock(), createBlock(SimplePopover, {
11966
12178
  ref_key: "simplePopoverRef",
11967
12179
  ref: simplePopoverRef,
11968
- width: 420
12180
+ width: 420,
12181
+ onClosed: _cache[2] || (_cache[2] = ($event) => emit("closed"))
11969
12182
  }, {
11970
12183
  default: withCtx(() => [
11971
12184
  createElementVNode("div", {
@@ -11993,7 +12206,7 @@ const _sfc_main$6 = defineComponent({
11993
12206
  _: 1
11994
12207
  })
11995
12208
  ], 2),
11996
- createVNode(_sfc_main$u, {
12209
+ createVNode(_sfc_main$v, {
11997
12210
  modelValue: filterList.value,
11998
12211
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterList.value = $event),
11999
12212
  itemKey: "prop",
@@ -12070,6 +12283,8 @@ const _sfc_main$6 = defineComponent({
12070
12283
  class: normalizeClass(unref(createBEMName)("actions"))
12071
12284
  }, [
12072
12285
  createVNode(_component_el_popover, {
12286
+ ref_key: "popoverRef",
12287
+ ref: popoverRef,
12073
12288
  placement: "bottom-start",
12074
12289
  width: 200,
12075
12290
  trigger: "click"
@@ -12117,7 +12332,7 @@ const _sfc_main$6 = defineComponent({
12117
12332
  ], 2)
12118
12333
  ]),
12119
12334
  _: 1
12120
- }),
12335
+ }, 512),
12121
12336
  createElementVNode("div", null, [
12122
12337
  createVNode(_component_el_button, { onClick: handleClear }, {
12123
12338
  default: withCtx(() => [
@@ -12143,7 +12358,7 @@ const _sfc_main$6 = defineComponent({
12143
12358
  };
12144
12359
  }
12145
12360
  });
12146
- var ColumnSortTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-559d52de"]]);
12361
+ var ColumnSortTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-35c83e61"]]);
12147
12362
  var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
12148
12363
  const _hoisted_1$3 = ["data-event", "onClick"];
12149
12364
  const __default__$4 = {
@@ -12199,25 +12414,27 @@ const _sfc_main$5 = defineComponent({
12199
12414
  }
12200
12415
  };
12201
12416
  const showToolbox = computed(() => {
12417
+ const tableManager = props.tableManager;
12418
+ const manager = tableManager == null ? void 0 : tableManager.manager;
12202
12419
  const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).filter((a) => a).map((item) => {
12203
- var _a, _b;
12420
+ var _a;
12204
12421
  let desc = "";
12205
12422
  let bg = false;
12206
- if (item.event === "show-column-tool" && props.tableManager) {
12207
- desc = props.tableManager.hiddeenFieldCount ? `(${props.tableManager.hiddeenFieldCount} \u9690\u85CF)` : "";
12208
- bg = props.tableManager.hiddeenFieldCount > 0;
12423
+ if (item.event === "show-column-tool" && tableManager) {
12424
+ desc = tableManager.hiddeenFieldCount ? `(${tableManager.hiddeenFieldCount} \u9690\u85CF)` : "";
12425
+ bg = tableManager.isColumnToolsVisible || tableManager.hiddeenFieldCount > 0;
12209
12426
  } else if (item.event === "fullscreen") {
12210
- bg = (_b = (_a = props.tableManager) == null ? void 0 : _a.manager) == null ? void 0 : _b.isTableFullscreen;
12211
- } else if (item.event === "filter" && props.tableManager) {
12212
- if (props.tableManager.columnParamsList.length) {
12213
- desc = `(${props.tableManager.columnParamsList.length})`;
12214
- bg = true;
12427
+ bg = (_a = tableManager == null ? void 0 : tableManager.manager) == null ? void 0 : _a.isTableFullscreen;
12428
+ } else if (item.event === "filter" && tableManager) {
12429
+ if (tableManager.columnParamsList.length) {
12430
+ desc = `(${tableManager.columnParamsList.length})`;
12215
12431
  }
12216
- } else if (item.event === "sort" && props.tableManager) {
12217
- if (props.tableManager.columnSortParamsList.length) {
12218
- desc = `(${props.tableManager.columnSortParamsList.length})`;
12219
- bg = true;
12432
+ bg = manager.isFilterPopupVisible || tableManager.columnParamsList.length > 0;
12433
+ } else if (item.event === "sort" && tableManager) {
12434
+ if (tableManager.columnSortParamsList.length) {
12435
+ desc = `(${tableManager.columnSortParamsList.length})`;
12220
12436
  }
12437
+ bg = manager.isSortPopupVisible || tableManager.columnSortParamsList.length > 0;
12221
12438
  }
12222
12439
  return {
12223
12440
  ...item,
@@ -12303,7 +12520,7 @@ const _sfc_main$5 = defineComponent({
12303
12520
  };
12304
12521
  }
12305
12522
  });
12306
- var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-6839f46e"]]);
12523
+ var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bdb3c2d2"]]);
12307
12524
  function patchConfig(config, patches) {
12308
12525
  return patches.reduce((memoConfig, patchFn) => {
12309
12526
  return patchFn.call(this, memoConfig);
@@ -12661,12 +12878,14 @@ const _sfc_main$4 = defineComponent({
12661
12878
  formContainerRef.value.show();
12662
12879
  nextTick(() => {
12663
12880
  var _a;
12881
+ manager.formManager.updateFormVisible(true);
12664
12882
  (_a = manager.formManager.form.onFormOpened) == null ? void 0 : _a.call(manager.formManager);
12665
12883
  });
12666
12884
  }
12667
12885
  };
12668
12886
  const hideForm = (needLeaveConfirm = true) => {
12669
12887
  if (formContainerRef.value) {
12888
+ manager.formManager.updateFormVisible(false);
12670
12889
  formContainerRef.value.hide(needLeaveConfirm);
12671
12890
  }
12672
12891
  };
@@ -12848,10 +13067,15 @@ const _sfc_main$4 = defineComponent({
12848
13067
  const columnFilterToolsRef = ref();
12849
13068
  const handleShowFilter = (item, e) => {
12850
13069
  columnFilterToolsRef.value.showPopover(e.currentTarget);
13070
+ manager.updateFilterPopupVisible(true);
13071
+ };
13072
+ const handleColumnFilterToolsClosed = () => {
13073
+ manager.updateFilterPopupVisible(false);
12851
13074
  };
12852
13075
  const columnSortToolsRef = ref();
12853
13076
  const handleShowSort = (item, e) => {
12854
13077
  columnSortToolsRef.value.showPopover(e.currentTarget);
13078
+ manager.updateSortPopupVisible(true);
12855
13079
  };
12856
13080
  const handleToolboxCustomEvent = (eventName, item, event) => {
12857
13081
  switch (eventName) {
@@ -12884,7 +13108,7 @@ const _sfc_main$4 = defineComponent({
12884
13108
  const { useKeyboardEvents } = useKeyBoardEvent();
12885
13109
  const tableToolsboxRef = ref();
12886
13110
  const trigTableToolboxEvent = (event) => {
12887
- tableToolsboxRef.value.trigEvent(event);
13111
+ tableToolsboxRef.value && tableToolsboxRef.value.trigEvent(event);
12888
13112
  };
12889
13113
  const exposeActions = {
12890
13114
  doTableLayout,
@@ -12950,7 +13174,7 @@ const _sfc_main$4 = defineComponent({
12950
13174
  key: 0,
12951
13175
  class: normalizeClass(unref(createBEMName)("top-tabs"))
12952
13176
  }, [
12953
- hasTabs.value ? (openBlock(), createBlock(_sfc_main$11, {
13177
+ hasTabs.value ? (openBlock(), createBlock(_sfc_main$12, {
12954
13178
  key: 0,
12955
13179
  tabs: uConfig.value.tabs,
12956
13180
  manager,
@@ -12966,7 +13190,7 @@ const _sfc_main$4 = defineComponent({
12966
13190
  key: 1,
12967
13191
  class: normalizeClass(unref(createBEMName)("search"))
12968
13192
  }, [
12969
- createVNode(_sfc_main$z, {
13193
+ createVNode(_sfc_main$A, {
12970
13194
  ref_key: "searchFormRef",
12971
13195
  ref: searchFormRef,
12972
13196
  manager
@@ -13092,14 +13316,16 @@ const _sfc_main$4 = defineComponent({
13092
13316
  ref_key: "columnFilterToolsRef",
13093
13317
  ref: columnFilterToolsRef,
13094
13318
  manager,
13095
- onScreen: handleColumnFilterToolsScreen
13319
+ onScreen: handleColumnFilterToolsScreen,
13320
+ onClosed: handleColumnFilterToolsClosed
13096
13321
  }, null, 8, ["manager"])) : createCommentVNode("", true),
13097
13322
  ((_d = (_c = _ctx.config.table) == null ? void 0 : _c.toolbox) == null ? void 0 : _d.includes("sort")) ? (openBlock(), createBlock(ColumnSortTools, {
13098
13323
  key: 4,
13099
13324
  ref_key: "columnSortToolsRef",
13100
13325
  ref: columnSortToolsRef,
13101
13326
  manager,
13102
- onScreen: handleColumnSortToolsScreen
13327
+ onScreen: handleColumnSortToolsScreen,
13328
+ onClosed: _cache[0] || (_cache[0] = ($event) => manager.updateSortPopupVisible(false))
13103
13329
  }, null, 8, ["manager"])) : createCommentVNode("", true)
13104
13330
  ], 64))
13105
13331
  ], 16, _hoisted_1$2);
@@ -13244,7 +13470,7 @@ const _sfc_main$2 = defineComponent({
13244
13470
  const _component_el_radio_button = resolveComponent("el-radio-button");
13245
13471
  const _component_el_radio_group = resolveComponent("el-radio-group");
13246
13472
  const _component_el_button = resolveComponent("el-button");
13247
- return openBlock(), createBlock(_sfc_main$B, {
13473
+ return openBlock(), createBlock(_sfc_main$C, {
13248
13474
  modelValue: visible.value,
13249
13475
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
13250
13476
  title: "\u7F16\u8F91\u8868\u683C",
@@ -13287,7 +13513,7 @@ const _sfc_main$2 = defineComponent({
13287
13513
  ], 2);
13288
13514
  }), 128))
13289
13515
  ], 2),
13290
- createVNode(_sfc_main$u, {
13516
+ createVNode(_sfc_main$v, {
13291
13517
  modelValue: innerEls.value,
13292
13518
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
13293
13519
  "item-key": "_key"
@@ -13451,7 +13677,7 @@ const _sfc_main$1 = defineComponent({
13451
13677
  createElementVNode("div", {
13452
13678
  class: normalizeClass(unref(createBEMName)("list"))
13453
13679
  }, [
13454
- createVNode(_sfc_main$u, {
13680
+ createVNode(_sfc_main$v, {
13455
13681
  modelValue: innerEls.value,
13456
13682
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
13457
13683
  class: normalizeClass(unref(BEMSpace)),
@@ -13914,7 +14140,7 @@ const _sfc_main = defineComponent({
13914
14140
  }, {
13915
14141
  default: withCtx(() => [
13916
14142
  _ctx.alwaysShowEdit || isCurrentRowFocus($index) ? (openBlock(), createElementBlock("div", _hoisted_5, [
13917
- createVNode(_sfc_main$y, {
14143
+ createVNode(_sfc_main$z, {
13918
14144
  "render-fn": column.renderFn,
13919
14145
  pure: "",
13920
14146
  row,
@@ -13968,7 +14194,7 @@ const _sfc_main = defineComponent({
13968
14194
  }, 16, ["data"]),
13969
14195
  bottomActions.value.length || hasSlots.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
13970
14196
  renderSlot(_ctx.$slots, "action-prefix", {}, void 0, true),
13971
- createVNode(_sfc_main$E, {
14197
+ createVNode(ButtonsRenderer, {
13972
14198
  els: bottomActions.value,
13973
14199
  onCustom: handleBottomActionsEvent
13974
14200
  }, null, 8, ["els"]),
@@ -13984,7 +14210,7 @@ const defineEditableTable = function(config) {
13984
14210
  };
13985
14211
  var iconfont = "";
13986
14212
  const name = "@juzhenfe/page-model";
13987
- const version = "3.14.10";
14213
+ const version = "3.14.12";
13988
14214
  const types = "dist/main.d.ts";
13989
14215
  const main = "dist/index.umd.js";
13990
14216
  const keywords = [
@@ -14064,4 +14290,4 @@ const ModelComponent = {
14064
14290
  saveTableColumns(content);
14065
14291
  }
14066
14292
  };
14067
- export { _sfc_main$E as ButtonsRenderer, _sfc_main$u as DraggableList, index as EditableTable, _sfc_main$B as FormDialog, _sfc_main$c as FormDrawer, PageModelForm, _sfc_main$y as TableCellRenderer, _sfc_main$t as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm };
14293
+ 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 };