@nokecy/qc-ui 1.1.97 → 1.1.99
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/array-table/utils.js +69 -37
- package/dist/cjs/dateCellEditor/DateCellEditor.d.ts +48 -0
- package/dist/cjs/dateCellEditor/DateCellEditor.js +118 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +22 -0
- package/dist/esm/array-table/utils.js +69 -37
- package/dist/esm/dateCellEditor/DateCellEditor.d.ts +48 -0
- package/dist/esm/dateCellEditor/DateCellEditor.js +110 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var _excluded = ["hide", "sort", "sortIndex", "forceAgField", "headerGroup", "defaultHide", "requiredMark", "align"];
|
|
2
2
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
|
+
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; }
|
|
5
|
+
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); } }
|
|
6
|
+
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); }); }; }
|
|
7
|
+
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
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
-
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; }
|
|
10
|
-
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); } }
|
|
11
|
-
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); }); }; }
|
|
12
|
-
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); }
|
|
13
13
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
14
|
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."); }
|
|
15
15
|
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); }
|
|
@@ -266,6 +266,48 @@ var resolveEmptyPlaceholder = function resolveEmptyPlaceholder(fieldSchema) {
|
|
|
266
266
|
/** Formily 字段的四种 pattern;x-pattern 求出来不在其中,视为「求不出」 */
|
|
267
267
|
var CELL_PATTERNS = new Set(['editable', 'disabled', 'readOnly', 'readPretty']);
|
|
268
268
|
|
|
269
|
+
/** 按当前行构造与真实字段一致的表达式作用域,供静默展示与编辑权限共用。@author nokecy */
|
|
270
|
+
var lazyCellScope = function lazyCellScope(arrayField, record, dataKey, scope) {
|
|
271
|
+
var form = arrayField.form;
|
|
272
|
+
var _resolveCellRow2 = resolveCellRow(arrayField, record),
|
|
273
|
+
index = _resolveCellRow2.index;
|
|
274
|
+
var self = {
|
|
275
|
+
path: arrayField.path.concat(index).concat(dataKey),
|
|
276
|
+
address: arrayField.address.concat(index).concat(dataKey),
|
|
277
|
+
index: index,
|
|
278
|
+
form: form,
|
|
279
|
+
parent: arrayField,
|
|
280
|
+
get value() {
|
|
281
|
+
return readByFieldPath(record, dataKey);
|
|
282
|
+
},
|
|
283
|
+
query: function query(pattern) {
|
|
284
|
+
return form.query(pattern);
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
return lazyMerge(scope !== null && scope !== void 0 ? scope : {}, {
|
|
288
|
+
$form: form,
|
|
289
|
+
$values: form.values,
|
|
290
|
+
$self: self,
|
|
291
|
+
$record: record,
|
|
292
|
+
$index: index
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/** 静默态编译显示配置,保留原始十进制值并使用当前页面、当前行的格式化规则。@author nokecy */
|
|
297
|
+
var lazyDisplaySchema = function lazyDisplaySchema(arrayField, record, dataKey, schema, scope) {
|
|
298
|
+
var props = schema === null || schema === void 0 ? void 0 : schema['x-component-props'];
|
|
299
|
+
if (typeof (props === null || props === void 0 ? void 0 : props.formatter) !== 'string' || !props.formatter.includes('{{')) return schema;
|
|
300
|
+
var expressionScope = lazyCellScope(arrayField, record, dataKey, scope);
|
|
301
|
+
var formatter = Schema.shallowCompile(props.formatter, expressionScope);
|
|
302
|
+
if (typeof formatter !== 'function') throw new Error('Cell formatter expression must resolve to a function');
|
|
303
|
+
return _objectSpread(_objectSpread({}, schema), {}, {
|
|
304
|
+
'x-component-props': _objectSpread(_objectSpread({}, props), {}, {
|
|
305
|
+
formatter: formatter,
|
|
306
|
+
precision: Schema.shallowCompile(props.precision, expressionScope)
|
|
307
|
+
})
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
|
|
269
311
|
/**
|
|
270
312
|
* 懒挂载格此刻的 pattern。
|
|
271
313
|
*
|
|
@@ -282,31 +324,7 @@ var resolveLazyCellPattern = function resolveLazyCellPattern(arrayField, record,
|
|
|
282
324
|
var form = arrayField === null || arrayField === void 0 ? void 0 : arrayField.form;
|
|
283
325
|
if (!form || !dataKey) return undefined;
|
|
284
326
|
try {
|
|
285
|
-
var
|
|
286
|
-
var index = (_arrayField$value$ind = (_arrayField$value = arrayField.value) === null || _arrayField$value === void 0 || (_arrayField$value$ind2 = _arrayField$value.indexOf) === null || _arrayField$value$ind2 === void 0 ? void 0 : _arrayField$value$ind2.call(_arrayField$value, record)) !== null && _arrayField$value$ind !== void 0 ? _arrayField$value$ind : -1;
|
|
287
|
-
// 与真字段一致:path 是数据路径(不含 void 容器),address 含 void 容器;表达式里 getValuesIn($self.path...) 靠前者
|
|
288
|
-
var path = arrayField.path.concat(index).concat(dataKey);
|
|
289
|
-
var address = arrayField.address.concat(index).concat(dataKey);
|
|
290
|
-
var self = {
|
|
291
|
-
path: path,
|
|
292
|
-
address: address,
|
|
293
|
-
index: index,
|
|
294
|
-
form: form,
|
|
295
|
-
parent: arrayField,
|
|
296
|
-
get value() {
|
|
297
|
-
return readByFieldPath(record, dataKey);
|
|
298
|
-
},
|
|
299
|
-
query: function query(pattern) {
|
|
300
|
-
return form.query(pattern);
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
var result = Schema.shallowCompile(own, lazyMerge(scope !== null && scope !== void 0 ? scope : {}, {
|
|
304
|
-
$form: form,
|
|
305
|
-
$values: form.values,
|
|
306
|
-
$self: self,
|
|
307
|
-
$record: record,
|
|
308
|
-
$index: index
|
|
309
|
-
}));
|
|
327
|
+
var result = Schema.shallowCompile(own, lazyCellScope(arrayField, record, dataKey, scope));
|
|
310
328
|
return CELL_PATTERNS.has(result) ? result : undefined;
|
|
311
329
|
} catch (_unused) {
|
|
312
330
|
return undefined;
|
|
@@ -509,8 +527,8 @@ var LazyAgField = function LazyAgField(params) {
|
|
|
509
527
|
var form = field === null || field === void 0 ? void 0 : field.form;
|
|
510
528
|
// 只有用「选项映射」格式化器的列(Select 一族,或登记为同一格式化器的组件)才需要运行时选项
|
|
511
529
|
if (!form || !dataKey || isBlank(liveValue) || formatter !== getReadOnlyFormatter('Select')) return undefined;
|
|
512
|
-
var
|
|
513
|
-
index =
|
|
530
|
+
var _resolveCellRow3 = resolveCellRow(field, record, node, dataSource),
|
|
531
|
+
index = _resolveCellRow3.index;
|
|
514
532
|
if (index < 0) return undefined;
|
|
515
533
|
var own = untracked(function () {
|
|
516
534
|
return form.query(field.path.concat(index).concat(dataKey)).take();
|
|
@@ -526,8 +544,8 @@ var LazyAgField = function LazyAgField(params) {
|
|
|
526
544
|
// 免去调用方加 forceAgField 逃生阀。字段名缺失才回退 params.value。@author nokecy
|
|
527
545
|
return /*#__PURE__*/React.createElement(Observer, null, function () {
|
|
528
546
|
var _fieldSchema$xCompon2;
|
|
529
|
-
var
|
|
530
|
-
currentRecord =
|
|
547
|
+
var _resolveCellRow4 = resolveCellRow(field, record, node, dataSource),
|
|
548
|
+
currentRecord = _resolveCellRow4.record;
|
|
531
549
|
if (!currentRecord) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
532
550
|
var activated = activeCells.has(key);
|
|
533
551
|
// 已挂载时不读值:挂载后每敲一个字都会变,追踪它会让整棵字段树跟着重渲
|
|
@@ -566,10 +584,24 @@ var LazyAgField = function LazyAgField(params) {
|
|
|
566
584
|
node: node
|
|
567
585
|
}));
|
|
568
586
|
}
|
|
587
|
+
var displaySchema = fieldSchema;
|
|
588
|
+
try {
|
|
589
|
+
if (dataKey) displaySchema = lazyDisplaySchema(field, currentRecord, dataKey, fieldSchema, scope);
|
|
590
|
+
} catch (_unused3) {
|
|
591
|
+
// 无法在静默作用域求值时保留真实控件,由 Formily 执行完整编译,不显示错误价格。@author nokecy
|
|
592
|
+
return /*#__PURE__*/React.createElement(AgField, {
|
|
593
|
+
value: value,
|
|
594
|
+
data: currentRecord,
|
|
595
|
+
dataSource: dataSource,
|
|
596
|
+
schema: schema,
|
|
597
|
+
field: field,
|
|
598
|
+
node: node
|
|
599
|
+
});
|
|
600
|
+
}
|
|
569
601
|
var ctx = {
|
|
570
602
|
columnProps: columnProps,
|
|
571
|
-
fieldSchema:
|
|
572
|
-
dataSource:
|
|
603
|
+
fieldSchema: displaySchema,
|
|
604
|
+
dataSource: liveDataSource(liveValue)
|
|
573
605
|
};
|
|
574
606
|
var text = formatter ? formatter(liveValue, ctx) : liveValue == null ? '' : String(liveValue);
|
|
575
607
|
// 纯文本占满单元格,点击交给 AG-Grid onCellClicked 激活;样式尽量贴近 Editable 只读态避免点开跳动
|
|
@@ -787,10 +819,10 @@ var buildArrayTableColumns = function buildArrayTableColumns(dataSource, field,
|
|
|
787
819
|
var hasOptionExpression = [dataField === null || dataField === void 0 ? void 0 : dataField.enum, dataField === null || dataField === void 0 || (_dataField$xComponen3 = dataField['x-component-props']) === null || _dataField$xComponen3 === void 0 ? void 0 : _dataField$xComponen3.options, dataField === null || dataField === void 0 || (_dataField$xComponen4 = dataField['x-component-props']) === null || _dataField$xComponen4 === void 0 ? void 0 : _dataField$xComponen4.dataSource, columnProps === null || columnProps === void 0 ? void 0 : columnProps.options, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataSource].some(function (options) {
|
|
788
820
|
return typeof options === 'string' && options.includes('{{');
|
|
789
821
|
});
|
|
790
|
-
//
|
|
822
|
+
// 可编辑格由 LazyAgField 按当前 scope 编译格式化表达式;静态只读路径仍交给真实字段。@author nokecy
|
|
791
823
|
var schemaFormatter = dataField === null || dataField === void 0 || (_dataField$xComponen5 = dataField['x-component-props']) === null || _dataField$xComponen5 === void 0 ? void 0 : _dataField$xComponen5.formatter;
|
|
792
824
|
var hasFormatterExpression = typeof schemaFormatter === 'string' && schemaFormatter.includes('{{');
|
|
793
|
-
var forceEager = (columnProps === null || columnProps === void 0 ? void 0 : columnProps.forceAgField) === true || formatter === getReadOnlyFormatter('Select') && hasOptionExpression || hasFormatterExpression;
|
|
825
|
+
var forceEager = (columnProps === null || columnProps === void 0 ? void 0 : columnProps.forceAgField) === true || formatter === getReadOnlyFormatter('Select') && hasOptionExpression || readOnly && hasFormatterExpression;
|
|
794
826
|
// Switch/Checkbox 是「单击直控」组件:可编辑态本就该常驻渲染真控件(优化前即如此)。
|
|
795
827
|
// 懒挂载会把它降成「是/否」纯文本(点击才挂出开关),用户会以为开关消失。故可编辑态强制 eager。
|
|
796
828
|
// 只读态(下方 ① 路径)仍走「是/否」文本快路径不受影响。@author nokecy
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { CustomCellEditorProps } from 'ag-grid-react';
|
|
2
|
+
import type { Dayjs } from 'dayjs';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
/** 默认的显示与提交格式。 @author nokecy */
|
|
5
|
+
export declare const DEFAULT_DATE_CELL_FORMAT = "YYYY-MM-DD";
|
|
6
|
+
/**
|
|
7
|
+
* 日期单元格编辑器的可选参数,通过列定义的 `cellEditorParams` 传入。
|
|
8
|
+
* @author nokecy
|
|
9
|
+
*/
|
|
10
|
+
export interface DateCellEditorParams {
|
|
11
|
+
/** 显示与提交的日期格式,默认 `YYYY-MM-DD`;初始值优先按此格式严格解析,ISO 日期时间也可识别。 */
|
|
12
|
+
format?: string;
|
|
13
|
+
/** 禁用日期的判断函数,语义与 antd `DatePicker` 的 `disabledDate` 一致。 */
|
|
14
|
+
disabledDate?: (current: Dayjs) => boolean;
|
|
15
|
+
/** 是否允许清空;为 `true` 时清空并提交 `null`,默认 `false`。 */
|
|
16
|
+
allowClear?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 日期单元格编辑器的完整属性:AG Grid 编辑器属性与 {@link DateCellEditorParams} 的合并。
|
|
20
|
+
* @author nokecy
|
|
21
|
+
*/
|
|
22
|
+
export type DateCellEditorProps = CustomCellEditorProps<any, string | null> & DateCellEditorParams;
|
|
23
|
+
/**
|
|
24
|
+
* 将单元格值解析为 dayjs 对象。空值或无法识别的值返回 `undefined`,选择器显示为空而不抛错。
|
|
25
|
+
* @param value 单元格值,通常为 `YYYY-MM-DD` 字符串
|
|
26
|
+
* @param format 值格式,用于严格解析字符串
|
|
27
|
+
* @returns 有效的日期对象,否则返回 `undefined`
|
|
28
|
+
* @author nokecy
|
|
29
|
+
*/
|
|
30
|
+
export declare function parseDateCellValue(value: unknown, format: string): Dayjs | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* 通用日期单元格编辑器(antd DatePicker 版),用于 AG Grid 的自定义单元格编辑。
|
|
33
|
+
*
|
|
34
|
+
* 使用方式:列定义设置 `cellEditor: DateCellEditor, cellEditorPopup: true`,需要参数时通过 `cellEditorParams` 传入
|
|
35
|
+
* `format`、`disabledDate`、`allowClear`。
|
|
36
|
+
*
|
|
37
|
+
* 行为要点:
|
|
38
|
+
* - 下拉面板挂在编辑器自身容器内,避免表格把面板点击当作“点到编辑器外”而提前结束编辑。
|
|
39
|
+
* - 选中日期后先写入值,再通过 `setTimeout` 调用 `stopEditing()` 提交,保证表格取到新日期。
|
|
40
|
+
* - 按 Esc 调用 `stopEditing(true)` 取消编辑。
|
|
41
|
+
* - 清空仅在 `allowClear` 为 `true` 时生效,并提交 `null`。
|
|
42
|
+
*
|
|
43
|
+
* @param props AG Grid 编辑器属性与日期选项
|
|
44
|
+
* @returns 日期选择器
|
|
45
|
+
* @author nokecy
|
|
46
|
+
*/
|
|
47
|
+
export declare const DateCellEditor: React.FC<DateCellEditorProps>;
|
|
48
|
+
export default DateCellEditor;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { DatePicker } from 'antd';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
// 显式带 .js 扩展名,使产物可被 Node 原生 ESM 直接加载(仓库内无其他 dayjs 子路径导入先例)。
|
|
4
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
|
|
7
|
+
// 严格按自定义格式解析初始值需要该插件;dayjs 为全局单例,插件只增加带格式参数的解析能力。@author nokecy
|
|
8
|
+
dayjs.extend(customParseFormat);
|
|
9
|
+
|
|
10
|
+
/** 默认的显示与提交格式。 @author nokecy */
|
|
11
|
+
export var DEFAULT_DATE_CELL_FORMAT = 'YYYY-MM-DD';
|
|
12
|
+
|
|
13
|
+
/** 以 YYYY-MM-DD 开头的字符串(含 ISO 日期时间),用于兼容宿主传入的 ISO 值。 @author nokecy */
|
|
14
|
+
var ISO_DATE_PREFIX = /^\d{4}-\d{2}-\d{2}/;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 日期单元格编辑器的可选参数,通过列定义的 `cellEditorParams` 传入。
|
|
18
|
+
* @author nokecy
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 日期单元格编辑器的完整属性:AG Grid 编辑器属性与 {@link DateCellEditorParams} 的合并。
|
|
23
|
+
* @author nokecy
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 将单元格值解析为 dayjs 对象。空值或无法识别的值返回 `undefined`,选择器显示为空而不抛错。
|
|
28
|
+
* @param value 单元格值,通常为 `YYYY-MM-DD` 字符串
|
|
29
|
+
* @param format 值格式,用于严格解析字符串
|
|
30
|
+
* @returns 有效的日期对象,否则返回 `undefined`
|
|
31
|
+
* @author nokecy
|
|
32
|
+
*/
|
|
33
|
+
export function parseDateCellValue(value, format) {
|
|
34
|
+
if (value === null || value === undefined || value === '') return undefined;
|
|
35
|
+
if (typeof value === 'string') {
|
|
36
|
+
var strict = dayjs(value, format, true);
|
|
37
|
+
if (strict.isValid()) return strict;
|
|
38
|
+
// ISO 日期时间只取前 10 位按 YYYY-MM-DD 严格解析,时间部分丢弃;非法日期(如 2026-02-30)不会溢出成别的日期。
|
|
39
|
+
if (!ISO_DATE_PREFIX.test(value)) return undefined;
|
|
40
|
+
var isoDate = dayjs(value.slice(0, 10), DEFAULT_DATE_CELL_FORMAT, true);
|
|
41
|
+
return isoDate.isValid() ? isoDate : undefined;
|
|
42
|
+
}
|
|
43
|
+
// 非字符串(如 Date、时间戳)交给 dayjs 直接解析。
|
|
44
|
+
var parsed = dayjs(value);
|
|
45
|
+
return parsed.isValid() ? parsed : undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 通用日期单元格编辑器(antd DatePicker 版),用于 AG Grid 的自定义单元格编辑。
|
|
50
|
+
*
|
|
51
|
+
* 使用方式:列定义设置 `cellEditor: DateCellEditor, cellEditorPopup: true`,需要参数时通过 `cellEditorParams` 传入
|
|
52
|
+
* `format`、`disabledDate`、`allowClear`。
|
|
53
|
+
*
|
|
54
|
+
* 行为要点:
|
|
55
|
+
* - 下拉面板挂在编辑器自身容器内,避免表格把面板点击当作“点到编辑器外”而提前结束编辑。
|
|
56
|
+
* - 选中日期后先写入值,再通过 `setTimeout` 调用 `stopEditing()` 提交,保证表格取到新日期。
|
|
57
|
+
* - 按 Esc 调用 `stopEditing(true)` 取消编辑。
|
|
58
|
+
* - 清空仅在 `allowClear` 为 `true` 时生效,并提交 `null`。
|
|
59
|
+
*
|
|
60
|
+
* @param props AG Grid 编辑器属性与日期选项
|
|
61
|
+
* @returns 日期选择器
|
|
62
|
+
* @author nokecy
|
|
63
|
+
*/
|
|
64
|
+
export var DateCellEditor = function DateCellEditor(_ref) {
|
|
65
|
+
var value = _ref.value,
|
|
66
|
+
onValueChange = _ref.onValueChange,
|
|
67
|
+
stopEditing = _ref.stopEditing,
|
|
68
|
+
_ref$format = _ref.format,
|
|
69
|
+
format = _ref$format === void 0 ? DEFAULT_DATE_CELL_FORMAT : _ref$format,
|
|
70
|
+
disabledDate = _ref.disabledDate,
|
|
71
|
+
_ref$allowClear = _ref.allowClear,
|
|
72
|
+
allowClear = _ref$allowClear === void 0 ? false : _ref$allowClear;
|
|
73
|
+
var current = parseDateCellValue(value, format);
|
|
74
|
+
// 不同 antd 版本点击清空图标时 onChange 可能连续触发,提交只认第一次。
|
|
75
|
+
var committed = React.useRef(false);
|
|
76
|
+
return /*#__PURE__*/React.createElement(DatePicker, {
|
|
77
|
+
autoFocus: true,
|
|
78
|
+
defaultOpen: true,
|
|
79
|
+
allowClear: allowClear,
|
|
80
|
+
value: current,
|
|
81
|
+
format: format,
|
|
82
|
+
disabledDate: disabledDate,
|
|
83
|
+
style: {
|
|
84
|
+
width: '100%'
|
|
85
|
+
},
|
|
86
|
+
getPopupContainer: function getPopupContainer(trigger) {
|
|
87
|
+
var _trigger$parentElemen;
|
|
88
|
+
return (_trigger$parentElemen = trigger.parentElement) !== null && _trigger$parentElemen !== void 0 ? _trigger$parentElemen : document.body;
|
|
89
|
+
},
|
|
90
|
+
onChange: function onChange(date) {
|
|
91
|
+
if (committed.current) return;
|
|
92
|
+
if (!date) {
|
|
93
|
+
// antd 仅在点击清空图标时回调 null;未允许清空时忽略。
|
|
94
|
+
if (!allowClear) return;
|
|
95
|
+
onValueChange(null);
|
|
96
|
+
} else {
|
|
97
|
+
onValueChange(date.format(format));
|
|
98
|
+
}
|
|
99
|
+
committed.current = true;
|
|
100
|
+
// 先让值写入编辑器,再提交,保证表格取到新日期。
|
|
101
|
+
setTimeout(function () {
|
|
102
|
+
return stopEditing();
|
|
103
|
+
}, 0);
|
|
104
|
+
},
|
|
105
|
+
onKeyDown: function onKeyDown(event) {
|
|
106
|
+
if (event.key === 'Escape') stopEditing(true);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
export default DateCellEditor;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export * from "./scanCollect";
|
|
|
41
41
|
export { createEntitySelect } from "./entitySelect";
|
|
42
42
|
export { default as ExportButton, buildExportUrl, DEFAULT_EXPORT_TEMPLATE_API, resolveExportAction, resolveExportError, resolveFileName } from "./exportButton";
|
|
43
43
|
export type { ExportButtonProps, ExportTemplateApi, ExportTemplateOption } from "./exportButton";
|
|
44
|
+
export { DateCellEditor, DEFAULT_DATE_CELL_FORMAT, parseDateCellValue } from "./dateCellEditor/DateCellEditor";
|
|
45
|
+
export type { DateCellEditorParams, DateCellEditorProps } from "./dateCellEditor/DateCellEditor";
|
|
44
46
|
export { saveAs } from "./utils/download";
|
|
45
47
|
export { WidgetSelector } from "./dashboard";
|
|
46
48
|
export type { GridProps, GridRef, AgGridColumnPropsClone } from "./ag-grid-plus/interface";
|
package/dist/esm/index.js
CHANGED
|
@@ -52,6 +52,7 @@ export * from "./attachment";
|
|
|
52
52
|
export * from "./scanCollect";
|
|
53
53
|
export { createEntitySelect } from "./entitySelect";
|
|
54
54
|
export { default as ExportButton, buildExportUrl, DEFAULT_EXPORT_TEMPLATE_API, resolveExportAction, resolveExportError, resolveFileName } from "./exportButton";
|
|
55
|
+
export { DateCellEditor, DEFAULT_DATE_CELL_FORMAT, parseDateCellValue } from "./dateCellEditor/DateCellEditor";
|
|
55
56
|
export { saveAs } from "./utils/download";
|
|
56
57
|
export { WidgetSelector } from "./dashboard";
|
|
57
58
|
// 页面持有表格实例、声明列、处理表格错误时用到的类型;宿主不必再深引 dist/esm/ag-grid-plus/interface。@author nokecy
|