@nokecy/qc-ui 1.0.70 → 1.0.71
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/cjs/ag-grid-plus/ag-gridPlus.js +394 -206
- package/dist/cjs/ag-grid-plus/context/gridContext.d.ts +30 -5
- package/dist/cjs/ag-grid-plus/context/gridContext.js +6 -1
- package/dist/cjs/ag-grid-plus/errors/ErrorBoundary.d.ts +36 -0
- package/dist/cjs/ag-grid-plus/errors/ErrorBoundary.js +143 -0
- package/dist/cjs/ag-grid-plus/errors/index.d.ts +3 -0
- package/dist/cjs/ag-grid-plus/errors/index.js +31 -0
- package/dist/cjs/ag-grid-plus/errors/types.d.ts +71 -0
- package/dist/cjs/ag-grid-plus/errors/types.js +137 -0
- package/dist/cjs/ag-grid-plus/hooks/index.d.ts +7 -0
- package/dist/cjs/ag-grid-plus/hooks/index.js +51 -0
- package/dist/cjs/ag-grid-plus/hooks/useAgGridCalculation.d.ts +88 -0
- package/dist/cjs/ag-grid-plus/hooks/useAgGridCalculation.js +224 -0
- package/dist/cjs/ag-grid-plus/hooks/useAgGridData.d.ts +91 -0
- package/dist/cjs/ag-grid-plus/hooks/useAgGridData.js +230 -0
- package/dist/cjs/ag-grid-plus/hooks/useGridPlusColumnState.d.ts +1 -8
- package/dist/cjs/ag-grid-plus/hooks/useGridState.d.ts +153 -0
- package/dist/cjs/ag-grid-plus/hooks/useGridState.js +258 -0
- package/dist/cjs/ag-grid-plus/index.d.ts +3 -0
- package/dist/cjs/ag-grid-plus/index.js +85 -0
- package/dist/cjs/ag-grid-plus/interface.d.ts +27 -0
- package/dist/cjs/ag-grid-plus/querySchemes/components/QuerySchemesManager.d.ts +21 -0
- package/dist/cjs/ag-grid-plus/querySchemes/components/QuerySchemesManager.js +580 -0
- package/dist/cjs/ag-grid-plus/querySchemes/components/QuerySchemesManager.less +86 -0
- package/dist/cjs/ag-grid-plus/querySchemes/components/index.d.ts +5 -0
- package/dist/cjs/ag-grid-plus/querySchemes/components/index.js +12 -0
- package/dist/cjs/ag-grid-plus/querySchemes/constants.d.ts +17 -0
- package/dist/cjs/ag-grid-plus/querySchemes/constants.js +30 -0
- package/dist/cjs/ag-grid-plus/querySchemes/hooks/useQueryOrderManager.d.ts +10 -0
- package/dist/cjs/ag-grid-plus/querySchemes/hooks/useQueryOrderManager.js +65 -0
- package/dist/cjs/ag-grid-plus/querySchemes/hooks/useQuerySchemes.d.ts +6 -0
- package/dist/cjs/ag-grid-plus/querySchemes/hooks/useQuerySchemes.js +542 -0
- package/dist/cjs/ag-grid-plus/querySchemes/hooks/useQuerySchemes.refactored.d.ts +7 -0
- package/dist/cjs/ag-grid-plus/querySchemes/hooks/useQuerySchemes.refactored.js +32 -0
- package/dist/cjs/ag-grid-plus/querySchemes/index.d.ts +11 -0
- package/dist/cjs/ag-grid-plus/querySchemes/index.js +113 -0
- package/dist/cjs/ag-grid-plus/querySchemes/storage/localStorageAdapter.d.ts +44 -0
- package/dist/cjs/ag-grid-plus/querySchemes/storage/localStorageAdapter.js +261 -0
- package/dist/cjs/ag-grid-plus/querySchemes/types.d.ts +143 -0
- package/dist/cjs/ag-grid-plus/querySchemes/types.js +5 -0
- package/dist/cjs/ag-grid-plus/querySchemes/utils/validator.d.ts +36 -0
- package/dist/cjs/ag-grid-plus/querySchemes/utils/validator.js +155 -0
- package/dist/cjs/ag-grid-plus/schemes/components/SchemeManager.d.ts +16 -0
- package/dist/cjs/ag-grid-plus/schemes/components/SchemeManager.js +342 -0
- package/dist/cjs/ag-grid-plus/schemes/components/SchemeManager.less +35 -0
- package/dist/cjs/ag-grid-plus/schemes/components/SchemeSelector.d.ts +20 -0
- package/dist/cjs/ag-grid-plus/schemes/components/SchemeSelector.js +289 -0
- package/dist/cjs/ag-grid-plus/schemes/components/SchemeSelector.less +39 -0
- package/dist/cjs/ag-grid-plus/schemes/components/index.d.ts +4 -0
- package/dist/cjs/ag-grid-plus/schemes/components/index.js +19 -0
- package/dist/cjs/ag-grid-plus/schemes/constants.d.ts +23 -0
- package/dist/cjs/ag-grid-plus/schemes/constants.js +39 -0
- package/dist/cjs/ag-grid-plus/schemes/hooks/useColumnSchemes.d.ts +6 -0
- package/dist/cjs/ag-grid-plus/schemes/hooks/useColumnSchemes.js +542 -0
- package/dist/cjs/ag-grid-plus/schemes/hooks/useColumnSchemes.refactored.d.ts +7 -0
- package/dist/cjs/ag-grid-plus/schemes/hooks/useColumnSchemes.refactored.js +32 -0
- package/dist/cjs/ag-grid-plus/schemes/index.d.ts +16 -0
- package/dist/cjs/ag-grid-plus/schemes/index.js +124 -0
- package/dist/cjs/ag-grid-plus/schemes/storage/localStorageAdapter.d.ts +64 -0
- package/dist/cjs/ag-grid-plus/schemes/storage/localStorageAdapter.js +368 -0
- package/dist/cjs/ag-grid-plus/schemes/types.d.ts +126 -0
- package/dist/cjs/ag-grid-plus/schemes/types.js +5 -0
- package/dist/cjs/ag-grid-plus/schemes/utils/validator.d.ts +27 -0
- package/dist/cjs/ag-grid-plus/schemes/utils/validator.js +113 -0
- package/dist/cjs/ag-grid-plus/setting/ColumnSetting.d.ts +17 -0
- package/dist/cjs/ag-grid-plus/setting/ColumnSetting.js +955 -0
- package/dist/cjs/ag-grid-plus/setting/index.d.ts +1 -1
- package/dist/cjs/ag-grid-plus/setting/index.js +74 -111
- package/dist/cjs/ag-grid-plus/shared/hooks/useSchemeManager.d.ts +66 -0
- package/dist/cjs/ag-grid-plus/shared/hooks/useSchemeManager.js +648 -0
- package/dist/cjs/ag-grid-plus/storage/MemoryStorageAdapter.d.ts +76 -0
- package/dist/cjs/ag-grid-plus/storage/MemoryStorageAdapter.js +276 -0
- package/dist/cjs/ag-grid-plus/storage/SchemeSyncManager.d.ts +104 -0
- package/dist/cjs/ag-grid-plus/storage/SchemeSyncManager.js +593 -0
- package/dist/cjs/ag-grid-plus/storage/globalSyncManager.d.ts +74 -0
- package/dist/cjs/ag-grid-plus/storage/globalSyncManager.js +287 -0
- package/dist/cjs/ag-grid-plus/storage/index.d.ts +8 -0
- package/dist/cjs/ag-grid-plus/storage/index.js +49 -0
- package/dist/cjs/ag-grid-plus/storage/types.d.ts +113 -0
- package/dist/cjs/ag-grid-plus/storage/types.js +5 -0
- package/dist/cjs/ag-grid-plus/types.d.ts +310 -0
- package/dist/cjs/ag-grid-plus/types.js +5 -0
- package/dist/cjs/ag-grid-plus/utils/columnProcessors.d.ts +95 -0
- package/dist/cjs/ag-grid-plus/utils/columnProcessors.js +265 -0
- package/dist/cjs/ag-grid-plus/utils/constants.d.ts +41 -0
- package/dist/cjs/ag-grid-plus/utils/constants.js +56 -0
- package/dist/cjs/ag-grid-plus/utils/logger.d.ts +34 -0
- package/dist/cjs/ag-grid-plus/utils/logger.js +119 -0
- package/dist/cjs/ag-grid-plus/utils/sanitize.d.ts +15 -0
- package/dist/cjs/ag-grid-plus/utils/sanitize.js +39 -0
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +84 -0
- package/dist/esm/ag-grid-plus/ag-gridPlus.js +395 -206
- package/dist/esm/ag-grid-plus/context/gridContext.d.ts +30 -5
- package/dist/esm/ag-grid-plus/context/gridContext.js +6 -1
- package/dist/esm/ag-grid-plus/errors/ErrorBoundary.d.ts +36 -0
- package/dist/esm/ag-grid-plus/errors/ErrorBoundary.js +137 -0
- package/dist/esm/ag-grid-plus/errors/index.d.ts +3 -0
- package/dist/esm/ag-grid-plus/errors/index.js +2 -0
- package/dist/esm/ag-grid-plus/errors/types.d.ts +71 -0
- package/dist/esm/ag-grid-plus/errors/types.js +135 -0
- package/dist/esm/ag-grid-plus/hooks/index.d.ts +7 -0
- package/dist/esm/ag-grid-plus/hooks/index.js +10 -0
- package/dist/esm/ag-grid-plus/hooks/useAgGridCalculation.d.ts +88 -0
- package/dist/esm/ag-grid-plus/hooks/useAgGridCalculation.js +217 -0
- package/dist/esm/ag-grid-plus/hooks/useAgGridData.d.ts +91 -0
- package/dist/esm/ag-grid-plus/hooks/useAgGridData.js +225 -0
- package/dist/esm/ag-grid-plus/hooks/useGridPlusColumnState.d.ts +1 -8
- package/dist/esm/ag-grid-plus/hooks/useGridState.d.ts +153 -0
- package/dist/esm/ag-grid-plus/hooks/useGridState.js +258 -0
- package/dist/esm/ag-grid-plus/index.d.ts +3 -0
- package/dist/esm/ag-grid-plus/index.js +4 -1
- package/dist/esm/ag-grid-plus/interface.d.ts +27 -0
- package/dist/esm/ag-grid-plus/querySchemes/components/QuerySchemesManager.d.ts +21 -0
- package/dist/esm/ag-grid-plus/querySchemes/components/QuerySchemesManager.js +572 -0
- package/dist/esm/ag-grid-plus/querySchemes/components/QuerySchemesManager.less +86 -0
- package/dist/esm/ag-grid-plus/querySchemes/components/index.d.ts +5 -0
- package/dist/esm/ag-grid-plus/querySchemes/components/index.js +5 -0
- package/dist/esm/ag-grid-plus/querySchemes/constants.d.ts +17 -0
- package/dist/esm/ag-grid-plus/querySchemes/constants.js +24 -0
- package/dist/esm/ag-grid-plus/querySchemes/hooks/useQueryOrderManager.d.ts +10 -0
- package/dist/esm/ag-grid-plus/querySchemes/hooks/useQueryOrderManager.js +60 -0
- package/dist/esm/ag-grid-plus/querySchemes/hooks/useQuerySchemes.d.ts +6 -0
- package/dist/esm/ag-grid-plus/querySchemes/hooks/useQuerySchemes.js +537 -0
- package/dist/esm/ag-grid-plus/querySchemes/hooks/useQuerySchemes.refactored.d.ts +7 -0
- package/dist/esm/ag-grid-plus/querySchemes/hooks/useQuerySchemes.refactored.js +27 -0
- package/dist/esm/ag-grid-plus/querySchemes/index.d.ts +11 -0
- package/dist/esm/ag-grid-plus/querySchemes/index.js +20 -0
- package/dist/esm/ag-grid-plus/querySchemes/storage/localStorageAdapter.d.ts +44 -0
- package/dist/esm/ag-grid-plus/querySchemes/storage/localStorageAdapter.js +256 -0
- package/dist/esm/ag-grid-plus/querySchemes/types.d.ts +143 -0
- package/dist/esm/ag-grid-plus/querySchemes/types.js +1 -0
- package/dist/esm/ag-grid-plus/querySchemes/utils/validator.d.ts +36 -0
- package/dist/esm/ag-grid-plus/querySchemes/utils/validator.js +144 -0
- package/dist/esm/ag-grid-plus/schemes/components/SchemeManager.d.ts +16 -0
- package/dist/esm/ag-grid-plus/schemes/components/SchemeManager.js +334 -0
- package/dist/esm/ag-grid-plus/schemes/components/SchemeManager.less +35 -0
- package/dist/esm/ag-grid-plus/schemes/components/SchemeSelector.d.ts +20 -0
- package/dist/esm/ag-grid-plus/schemes/components/SchemeSelector.js +281 -0
- package/dist/esm/ag-grid-plus/schemes/components/SchemeSelector.less +39 -0
- package/dist/esm/ag-grid-plus/schemes/components/index.d.ts +4 -0
- package/dist/esm/ag-grid-plus/schemes/components/index.js +2 -0
- package/dist/esm/ag-grid-plus/schemes/constants.d.ts +23 -0
- package/dist/esm/ag-grid-plus/schemes/constants.js +33 -0
- package/dist/esm/ag-grid-plus/schemes/hooks/useColumnSchemes.d.ts +6 -0
- package/dist/esm/ag-grid-plus/schemes/hooks/useColumnSchemes.js +537 -0
- package/dist/esm/ag-grid-plus/schemes/hooks/useColumnSchemes.refactored.d.ts +7 -0
- package/dist/esm/ag-grid-plus/schemes/hooks/useColumnSchemes.refactored.js +27 -0
- package/dist/esm/ag-grid-plus/schemes/index.d.ts +16 -0
- package/dist/esm/ag-grid-plus/schemes/index.js +25 -0
- package/dist/esm/ag-grid-plus/schemes/storage/localStorageAdapter.d.ts +64 -0
- package/dist/esm/ag-grid-plus/schemes/storage/localStorageAdapter.js +363 -0
- package/dist/esm/ag-grid-plus/schemes/types.d.ts +126 -0
- package/dist/esm/ag-grid-plus/schemes/types.js +1 -0
- package/dist/esm/ag-grid-plus/schemes/utils/validator.d.ts +27 -0
- package/dist/esm/ag-grid-plus/schemes/utils/validator.js +104 -0
- package/dist/esm/ag-grid-plus/setting/ColumnSetting.d.ts +17 -0
- package/dist/esm/ag-grid-plus/setting/ColumnSetting.js +946 -0
- package/dist/esm/ag-grid-plus/setting/index.d.ts +1 -1
- package/dist/esm/ag-grid-plus/setting/index.js +69 -107
- package/dist/esm/ag-grid-plus/shared/hooks/useSchemeManager.d.ts +66 -0
- package/dist/esm/ag-grid-plus/shared/hooks/useSchemeManager.js +643 -0
- package/dist/esm/ag-grid-plus/storage/MemoryStorageAdapter.d.ts +76 -0
- package/dist/esm/ag-grid-plus/storage/MemoryStorageAdapter.js +273 -0
- package/dist/esm/ag-grid-plus/storage/SchemeSyncManager.d.ts +104 -0
- package/dist/esm/ag-grid-plus/storage/SchemeSyncManager.js +587 -0
- package/dist/esm/ag-grid-plus/storage/globalSyncManager.d.ts +74 -0
- package/dist/esm/ag-grid-plus/storage/globalSyncManager.js +275 -0
- package/dist/esm/ag-grid-plus/storage/index.d.ts +8 -0
- package/dist/esm/ag-grid-plus/storage/index.js +9 -0
- package/dist/esm/ag-grid-plus/storage/types.d.ts +113 -0
- package/dist/esm/ag-grid-plus/storage/types.js +1 -0
- package/dist/esm/ag-grid-plus/types.d.ts +310 -0
- package/dist/esm/ag-grid-plus/types.js +1 -0
- package/dist/esm/ag-grid-plus/utils/columnProcessors.d.ts +95 -0
- package/dist/esm/ag-grid-plus/utils/columnProcessors.js +251 -0
- package/dist/esm/ag-grid-plus/utils/constants.d.ts +41 -0
- package/dist/esm/ag-grid-plus/utils/constants.js +50 -0
- package/dist/esm/ag-grid-plus/utils/logger.d.ts +34 -0
- package/dist/esm/ag-grid-plus/utils/logger.js +114 -0
- package/dist/esm/ag-grid-plus/utils/sanitize.d.ts +15 -0
- package/dist/esm/ag-grid-plus/utils/sanitize.js +32 -0
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +8 -2
- package/dist/esm/standardFormDialog/withStandardForm.d.ts +2 -2
- package/dist/umd/qc-ui.min.css +1 -1
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SchemeSelector = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _antd = require("antd");
|
|
10
|
+
var _icons = require("@ant-design/icons");
|
|
11
|
+
require("./SchemeSelector.less");
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
15
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
16
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
/**
|
|
24
|
+
* 方案选择器组件
|
|
25
|
+
* 在工具栏中快速切换和管理列配置方案
|
|
26
|
+
*/
|
|
27
|
+
var SchemeSelector = exports.SchemeSelector = function SchemeSelector(_ref) {
|
|
28
|
+
var schemeManager = _ref.schemeManager,
|
|
29
|
+
currentColumnState = _ref.currentColumnState,
|
|
30
|
+
className = _ref.className,
|
|
31
|
+
_ref$showSaveButton = _ref.showSaveButton,
|
|
32
|
+
showSaveButton = _ref$showSaveButton === void 0 ? true : _ref$showSaveButton,
|
|
33
|
+
_ref$showCreateButton = _ref.showCreateButton,
|
|
34
|
+
showCreateButton = _ref$showCreateButton === void 0 ? true : _ref$showCreateButton;
|
|
35
|
+
var schemes = schemeManager.schemes,
|
|
36
|
+
currentScheme = schemeManager.currentScheme,
|
|
37
|
+
isDirty = schemeManager.isDirty,
|
|
38
|
+
loading = schemeManager.loading,
|
|
39
|
+
loadScheme = schemeManager.loadScheme,
|
|
40
|
+
saveScheme = schemeManager.saveScheme,
|
|
41
|
+
createScheme = schemeManager.createScheme;
|
|
42
|
+
var _useState = (0, _react.useState)(''),
|
|
43
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
44
|
+
newSchemeName = _useState2[0],
|
|
45
|
+
setNewSchemeName = _useState2[1];
|
|
46
|
+
var _useState3 = (0, _react.useState)(false),
|
|
47
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
48
|
+
createModalVisible = _useState4[0],
|
|
49
|
+
setCreateModalVisible = _useState4[1];
|
|
50
|
+
var _useState5 = (0, _react.useState)(false),
|
|
51
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
52
|
+
saveConfirmVisible = _useState6[0],
|
|
53
|
+
setSaveConfirmVisible = _useState6[1];
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 方案切换处理
|
|
57
|
+
*/
|
|
58
|
+
var handleSchemeChange = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
59
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(schemeId) {
|
|
60
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
61
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
62
|
+
case 0:
|
|
63
|
+
if (!isDirty) {
|
|
64
|
+
_context2.next = 4;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
_antd.Modal.confirm({
|
|
68
|
+
title: '提示',
|
|
69
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.ExclamationCircleOutlined, null),
|
|
70
|
+
content: '当前方案有未保存的修改,切换方案将丢失这些修改。是否继续?',
|
|
71
|
+
okText: '切换',
|
|
72
|
+
cancelText: '取消',
|
|
73
|
+
onOk: function () {
|
|
74
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
75
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
76
|
+
while (1) switch (_context.prev = _context.next) {
|
|
77
|
+
case 0:
|
|
78
|
+
_context.next = 2;
|
|
79
|
+
return loadScheme(schemeId);
|
|
80
|
+
case 2:
|
|
81
|
+
_antd.message.success('已切换方案');
|
|
82
|
+
case 3:
|
|
83
|
+
case "end":
|
|
84
|
+
return _context.stop();
|
|
85
|
+
}
|
|
86
|
+
}, _callee);
|
|
87
|
+
}));
|
|
88
|
+
function onOk() {
|
|
89
|
+
return _onOk.apply(this, arguments);
|
|
90
|
+
}
|
|
91
|
+
return onOk;
|
|
92
|
+
}()
|
|
93
|
+
});
|
|
94
|
+
_context2.next = 7;
|
|
95
|
+
break;
|
|
96
|
+
case 4:
|
|
97
|
+
_context2.next = 6;
|
|
98
|
+
return loadScheme(schemeId);
|
|
99
|
+
case 6:
|
|
100
|
+
_antd.message.success('已切换方案');
|
|
101
|
+
case 7:
|
|
102
|
+
case "end":
|
|
103
|
+
return _context2.stop();
|
|
104
|
+
}
|
|
105
|
+
}, _callee2);
|
|
106
|
+
}));
|
|
107
|
+
return function (_x) {
|
|
108
|
+
return _ref2.apply(this, arguments);
|
|
109
|
+
};
|
|
110
|
+
}(), [isDirty, loadScheme]);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 保存到当前方案
|
|
114
|
+
*/
|
|
115
|
+
var handleSave = (0, _react.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
116
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
117
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
118
|
+
case 0:
|
|
119
|
+
if (currentScheme) {
|
|
120
|
+
_context3.next = 3;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
_antd.message.warning('请先选择一个方案');
|
|
124
|
+
return _context3.abrupt("return");
|
|
125
|
+
case 3:
|
|
126
|
+
if (!currentScheme.isSystem) {
|
|
127
|
+
_context3.next = 6;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
setSaveConfirmVisible(true);
|
|
131
|
+
return _context3.abrupt("return");
|
|
132
|
+
case 6:
|
|
133
|
+
_context3.prev = 6;
|
|
134
|
+
_context3.next = 9;
|
|
135
|
+
return saveScheme({
|
|
136
|
+
columnState: currentColumnState
|
|
137
|
+
});
|
|
138
|
+
case 9:
|
|
139
|
+
_antd.message.success('保存成功');
|
|
140
|
+
_context3.next = 15;
|
|
141
|
+
break;
|
|
142
|
+
case 12:
|
|
143
|
+
_context3.prev = 12;
|
|
144
|
+
_context3.t0 = _context3["catch"](6);
|
|
145
|
+
_antd.message.error(_context3.t0.message || '保存失败');
|
|
146
|
+
case 15:
|
|
147
|
+
case "end":
|
|
148
|
+
return _context3.stop();
|
|
149
|
+
}
|
|
150
|
+
}, _callee3, null, [[6, 12]]);
|
|
151
|
+
})), [currentScheme, currentColumnState, saveScheme]);
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* 另存为新方案
|
|
155
|
+
*/
|
|
156
|
+
var handleCreateScheme = (0, _react.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
157
|
+
var scheme;
|
|
158
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
159
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
160
|
+
case 0:
|
|
161
|
+
if (!(!newSchemeName || newSchemeName.trim().length === 0)) {
|
|
162
|
+
_context4.next = 3;
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
_antd.message.warning('请输入方案名称');
|
|
166
|
+
return _context4.abrupt("return");
|
|
167
|
+
case 3:
|
|
168
|
+
_context4.prev = 3;
|
|
169
|
+
_context4.next = 6;
|
|
170
|
+
return createScheme(newSchemeName.trim(), currentColumnState);
|
|
171
|
+
case 6:
|
|
172
|
+
scheme = _context4.sent;
|
|
173
|
+
_antd.message.success("\u65B9\u6848\"".concat(scheme.name, "\"\u521B\u5EFA\u6210\u529F"));
|
|
174
|
+
setCreateModalVisible(false);
|
|
175
|
+
setNewSchemeName('');
|
|
176
|
+
|
|
177
|
+
// 自动切换到新方案
|
|
178
|
+
_context4.next = 12;
|
|
179
|
+
return loadScheme(scheme.id);
|
|
180
|
+
case 12:
|
|
181
|
+
_context4.next = 17;
|
|
182
|
+
break;
|
|
183
|
+
case 14:
|
|
184
|
+
_context4.prev = 14;
|
|
185
|
+
_context4.t0 = _context4["catch"](3);
|
|
186
|
+
_antd.message.error(_context4.t0.message || '创建失败');
|
|
187
|
+
case 17:
|
|
188
|
+
case "end":
|
|
189
|
+
return _context4.stop();
|
|
190
|
+
}
|
|
191
|
+
}, _callee4, null, [[3, 14]]);
|
|
192
|
+
})), [newSchemeName, currentColumnState, createScheme, loadScheme]);
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* 系统方案另存为新方案
|
|
196
|
+
*/
|
|
197
|
+
var handleSaveAsNew = (0, _react.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
198
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
199
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
200
|
+
case 0:
|
|
201
|
+
setCreateModalVisible(true);
|
|
202
|
+
setSaveConfirmVisible(false);
|
|
203
|
+
case 2:
|
|
204
|
+
case "end":
|
|
205
|
+
return _context5.stop();
|
|
206
|
+
}
|
|
207
|
+
}, _callee5);
|
|
208
|
+
})), []);
|
|
209
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Space, {
|
|
210
|
+
className: "scheme-selector ".concat(className || ''),
|
|
211
|
+
size: "small"
|
|
212
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Select, {
|
|
213
|
+
style: {
|
|
214
|
+
minWidth: 150
|
|
215
|
+
},
|
|
216
|
+
placeholder: "\u9009\u62E9\u65B9\u6848",
|
|
217
|
+
value: currentScheme === null || currentScheme === void 0 ? void 0 : currentScheme.id,
|
|
218
|
+
onChange: handleSchemeChange,
|
|
219
|
+
loading: loading,
|
|
220
|
+
optionLabelProp: "label",
|
|
221
|
+
options: schemes.map(function (scheme) {
|
|
222
|
+
return {
|
|
223
|
+
label: /*#__PURE__*/_react.default.createElement("span", null, scheme.isDefault && /*#__PURE__*/_react.default.createElement(_icons.StarFilled, {
|
|
224
|
+
style: {
|
|
225
|
+
color: '#faad14',
|
|
226
|
+
marginRight: 4
|
|
227
|
+
}
|
|
228
|
+
}), scheme.name, scheme.isSystem && /*#__PURE__*/_react.default.createElement("span", {
|
|
229
|
+
style: {
|
|
230
|
+
color: '#999',
|
|
231
|
+
fontSize: 12,
|
|
232
|
+
marginLeft: 4
|
|
233
|
+
}
|
|
234
|
+
}, "(\u7CFB\u7EDF)")),
|
|
235
|
+
value: scheme.id,
|
|
236
|
+
title: scheme.description
|
|
237
|
+
};
|
|
238
|
+
})
|
|
239
|
+
}), showSaveButton && /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
240
|
+
title: currentScheme !== null && currentScheme !== void 0 && currentScheme.isSystem ? '系统方案不可修改' : '保存到当前方案'
|
|
241
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
242
|
+
type: isDirty ? 'primary' : 'default',
|
|
243
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.SaveOutlined, null),
|
|
244
|
+
onClick: handleSave,
|
|
245
|
+
disabled: !currentScheme || loading
|
|
246
|
+
}, isDirty && '*', " \u4FDD\u5B58")), showCreateButton && /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
247
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.PlusOutlined, null),
|
|
248
|
+
onClick: function onClick() {
|
|
249
|
+
return setCreateModalVisible(true);
|
|
250
|
+
},
|
|
251
|
+
disabled: loading
|
|
252
|
+
}, "\u53E6\u5B58\u4E3A"), /*#__PURE__*/_react.default.createElement(_antd.Modal, {
|
|
253
|
+
title: "\u53E6\u5B58\u4E3A\u65B0\u65B9\u6848",
|
|
254
|
+
open: createModalVisible,
|
|
255
|
+
onOk: handleCreateScheme,
|
|
256
|
+
onCancel: function onCancel() {
|
|
257
|
+
setCreateModalVisible(false);
|
|
258
|
+
setNewSchemeName('');
|
|
259
|
+
},
|
|
260
|
+
okText: "\u521B\u5EFA",
|
|
261
|
+
cancelText: "\u53D6\u6D88"
|
|
262
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
263
|
+
style: {
|
|
264
|
+
padding: '16px 0'
|
|
265
|
+
}
|
|
266
|
+
}, /*#__PURE__*/_react.default.createElement("label", null, "\u65B9\u6848\u540D\u79F0\uFF1A"), /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
267
|
+
value: newSchemeName,
|
|
268
|
+
onChange: function onChange(e) {
|
|
269
|
+
return setNewSchemeName(e.target.value);
|
|
270
|
+
},
|
|
271
|
+
onPressEnter: handleCreateScheme,
|
|
272
|
+
placeholder: "\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0",
|
|
273
|
+
maxLength: 50,
|
|
274
|
+
autoFocus: true,
|
|
275
|
+
style: {
|
|
276
|
+
width: '100%',
|
|
277
|
+
marginTop: 8
|
|
278
|
+
}
|
|
279
|
+
}))), /*#__PURE__*/_react.default.createElement(_antd.Modal, {
|
|
280
|
+
title: "\u63D0\u793A",
|
|
281
|
+
open: saveConfirmVisible,
|
|
282
|
+
onOk: handleSaveAsNew,
|
|
283
|
+
onCancel: function onCancel() {
|
|
284
|
+
return setSaveConfirmVisible(false);
|
|
285
|
+
},
|
|
286
|
+
okText: "\u53E6\u5B58\u4E3A\u65B0\u65B9\u6848",
|
|
287
|
+
cancelText: "\u53D6\u6D88"
|
|
288
|
+
}, "\u7CFB\u7EDF\u9884\u8BBE\u65B9\u6848\u4E0D\u5141\u8BB8\u4FEE\u6539\uFF0C\u60A8\u53EF\u4EE5\u5C06\u5F53\u524D\u914D\u7F6E\u53E6\u5B58\u4E3A\u65B0\u65B9\u6848\u3002"));
|
|
289
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.scheme-selector {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
.ant-select {
|
|
6
|
+
.ant-select-selector {
|
|
7
|
+
transition: all 0.3s;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:hover .ant-select-selector {
|
|
11
|
+
border-color: #1890ff;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-btn {
|
|
16
|
+
transition: all 0.3s;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
border-color: #1890ff;
|
|
20
|
+
color: #1890ff;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// 未保存标记样式
|
|
25
|
+
.ant-btn-primary {
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
content: '';
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 4px;
|
|
32
|
+
right: 4px;
|
|
33
|
+
width: 6px;
|
|
34
|
+
height: 6px;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
background-color: #ff4d4f;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SchemeManager", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _SchemeManager.SchemeManager;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SchemeSelector", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _SchemeSelector.SchemeSelector;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _SchemeSelector = require("./SchemeSelector");
|
|
19
|
+
var _SchemeManager = require("./SchemeManager");
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 列配置方案相关常量
|
|
3
|
+
*/
|
|
4
|
+
/** LocalStorage 键名前缀 */
|
|
5
|
+
export declare const STORAGE_PREFIX = "ag-grid-plus-schemes";
|
|
6
|
+
/** 当前方案ID 键名后缀 */
|
|
7
|
+
export declare const CURRENT_SCHEME_SUFFIX = "-current";
|
|
8
|
+
/** 旧版本列状态键名前缀(用于迁移) */
|
|
9
|
+
export declare const LEGACY_STORAGE_PREFIX = "ag-grid-column-state";
|
|
10
|
+
/** 默认方案名称 */
|
|
11
|
+
export declare const DEFAULT_SCHEME_NAME = "\u9ED8\u8BA4\u914D\u7F6E";
|
|
12
|
+
/** 系统预设方案 ID 前缀 */
|
|
13
|
+
export declare const SYSTEM_SCHEME_PREFIX = "system-";
|
|
14
|
+
/** 迁移后的默认方案 ID */
|
|
15
|
+
export declare const MIGRATED_DEFAULT_SCHEME_ID = "default-migrated";
|
|
16
|
+
/** LocalStorage 最大容量(字节)- 5MB */
|
|
17
|
+
export declare const STORAGE_MAX_SIZE: number;
|
|
18
|
+
/** 单个方案最大数量限制 */
|
|
19
|
+
export declare const MAX_SCHEMES_PER_GRID = 50;
|
|
20
|
+
/** 方案名称最大长度 */
|
|
21
|
+
export declare const MAX_SCHEME_NAME_LENGTH = 50;
|
|
22
|
+
/** 方案描述最大长度 */
|
|
23
|
+
export declare const MAX_SCHEME_DESCRIPTION_LENGTH = 200;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SYSTEM_SCHEME_PREFIX = exports.STORAGE_PREFIX = exports.STORAGE_MAX_SIZE = exports.MIGRATED_DEFAULT_SCHEME_ID = exports.MAX_SCHEME_NAME_LENGTH = exports.MAX_SCHEME_DESCRIPTION_LENGTH = exports.MAX_SCHEMES_PER_GRID = exports.LEGACY_STORAGE_PREFIX = exports.DEFAULT_SCHEME_NAME = exports.CURRENT_SCHEME_SUFFIX = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 列配置方案相关常量
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** LocalStorage 键名前缀 */
|
|
12
|
+
var STORAGE_PREFIX = exports.STORAGE_PREFIX = 'ag-grid-plus-schemes';
|
|
13
|
+
|
|
14
|
+
/** 当前方案ID 键名后缀 */
|
|
15
|
+
var CURRENT_SCHEME_SUFFIX = exports.CURRENT_SCHEME_SUFFIX = '-current';
|
|
16
|
+
|
|
17
|
+
/** 旧版本列状态键名前缀(用于迁移) */
|
|
18
|
+
var LEGACY_STORAGE_PREFIX = exports.LEGACY_STORAGE_PREFIX = 'ag-grid-column-state';
|
|
19
|
+
|
|
20
|
+
/** 默认方案名称 */
|
|
21
|
+
var DEFAULT_SCHEME_NAME = exports.DEFAULT_SCHEME_NAME = '默认配置';
|
|
22
|
+
|
|
23
|
+
/** 系统预设方案 ID 前缀 */
|
|
24
|
+
var SYSTEM_SCHEME_PREFIX = exports.SYSTEM_SCHEME_PREFIX = 'system-';
|
|
25
|
+
|
|
26
|
+
/** 迁移后的默认方案 ID */
|
|
27
|
+
var MIGRATED_DEFAULT_SCHEME_ID = exports.MIGRATED_DEFAULT_SCHEME_ID = 'default-migrated';
|
|
28
|
+
|
|
29
|
+
/** LocalStorage 最大容量(字节)- 5MB */
|
|
30
|
+
var STORAGE_MAX_SIZE = exports.STORAGE_MAX_SIZE = 5 * 1024 * 1024;
|
|
31
|
+
|
|
32
|
+
/** 单个方案最大数量限制 */
|
|
33
|
+
var MAX_SCHEMES_PER_GRID = exports.MAX_SCHEMES_PER_GRID = 50;
|
|
34
|
+
|
|
35
|
+
/** 方案名称最大长度 */
|
|
36
|
+
var MAX_SCHEME_NAME_LENGTH = exports.MAX_SCHEME_NAME_LENGTH = 50;
|
|
37
|
+
|
|
38
|
+
/** 方案描述最大长度 */
|
|
39
|
+
var MAX_SCHEME_DESCRIPTION_LENGTH = exports.MAX_SCHEME_DESCRIPTION_LENGTH = 200;
|