@pisell/lowcode-renderer 1.0.76 → 1.0.78
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/es/ReactRenderer/index.js +4 -4
- package/es/Render/index.d.ts +2 -1
- package/es/Render/index.js +41 -17
- package/es/Render/index.less +7 -0
- package/es/api/index.d.ts +1 -1
- package/es/api/report/URL.js +4 -0
- package/es/api/report/index.js +17 -10
- package/es/config/index.js +6 -0
- package/lib/ReactRenderer/index.js +5 -0
- package/lib/Render/index.d.ts +2 -1
- package/lib/Render/index.js +28 -2
- package/lib/Render/index.less +7 -0
- package/lib/api/index.d.ts +1 -1
- package/lib/api/report/URL.js +5 -1
- package/lib/api/report/index.js +7 -0
- package/lib/config/index.js +8 -0
- package/package.json +1 -1
- package/es/api/report/URL.d.ts +0 -37
- package/es/api/report/index.d.ts +0 -5
- package/es/config/index.d.ts +0 -13
- package/lib/api/report/URL.d.ts +0 -37
- package/lib/api/report/index.d.ts +0 -5
- package/lib/config/index.d.ts +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
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); }
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -10,8 +10,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
11
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
12
|
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; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
+
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); }
|
|
15
15
|
import React, { Component, PureComponent, createElement, createContext, forwardRef } from 'react';
|
|
16
16
|
import ReactDOM from 'react-dom';
|
|
17
17
|
import { adapter, pageRendererFactory, componentRendererFactory, blockRendererFactory, addonRendererFactory, tempRendererFactory, rendererFactory } from '@alilc/lowcode-renderer-core';
|
|
@@ -62,7 +62,7 @@ function factory() {
|
|
|
62
62
|
key: "isValidComponent",
|
|
63
63
|
value: function isValidComponent(obj) {
|
|
64
64
|
var _obj$prototype;
|
|
65
|
-
return (obj === null || obj === void 0
|
|
65
|
+
return (obj === null || obj === void 0 || (_obj$prototype = obj.prototype) === null || _obj$prototype === void 0 ? void 0 : _obj$prototype.isReactComponent) || (obj === null || obj === void 0 ? void 0 : obj.prototype) instanceof Component;
|
|
66
66
|
}
|
|
67
67
|
}]);
|
|
68
68
|
return ReactRenderer;
|
package/es/Render/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IRendererAppHelper } from "@alilc/lowcode-renderer-core/lib/types";
|
|
2
|
+
import "./index.less";
|
|
3
3
|
interface RenderProps {
|
|
4
4
|
packages: Record<string, any>;
|
|
5
5
|
projectSchema?: Record<string, any> | null;
|
|
@@ -8,6 +8,7 @@ interface RenderProps {
|
|
|
8
8
|
locale?: string;
|
|
9
9
|
isShowSkeleton?: boolean;
|
|
10
10
|
isLoadedAssets?: boolean;
|
|
11
|
+
loadingType?: "spin" | "skeleton";
|
|
11
12
|
[key: string]: any;
|
|
12
13
|
}
|
|
13
14
|
declare const Render: (props: RenderProps) => JSX.Element | null;
|
package/es/Render/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
var _excluded = ["packages", "projectSchema", "className", "appHelper", "locale", "isShowSkeleton", "isLoadedAssets"];
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
1
|
+
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); }
|
|
2
|
+
var _excluded = ["packages", "projectSchema", "className", "appHelper", "locale", "isShowSkeleton", "isLoadedAssets", "loadingType"];
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
5
|
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; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
8
|
-
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
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); }
|
|
8
|
+
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; }
|
|
9
9
|
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); } }
|
|
10
10
|
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); }); }; }
|
|
11
11
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
12
|
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."); }
|
|
13
13
|
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); }
|
|
14
14
|
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; }
|
|
15
|
-
function _iterableToArrayLimit(
|
|
15
|
+
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; } }
|
|
16
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
17
|
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; }
|
|
18
18
|
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; }
|
|
19
19
|
import { injectComponents } from "@alilc/lowcode-plugin-inject";
|
|
20
20
|
import { AssetLoader, buildComponents } from "@alilc/lowcode-utils";
|
|
21
|
-
import { Skeleton } from "antd";
|
|
21
|
+
import { Skeleton, Spin } from "antd";
|
|
22
22
|
import { isArray, mergeWith, cloneDeep } from "lodash-es";
|
|
23
23
|
import React, { useEffect, useState, useMemo } from "react";
|
|
24
24
|
import ReactRenderer from "../ReactRenderer";
|
|
25
25
|
import appHelper from "../appHelper";
|
|
26
26
|
import { generateUniqueIdByObj } from "@pisell/utils";
|
|
27
|
+
import "./index.less";
|
|
27
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
29
|
var isLoadAssets = false;
|
|
29
30
|
|
|
@@ -41,6 +42,8 @@ var Render = function Render(props) {
|
|
|
41
42
|
_props$isShowSkeleton = props.isShowSkeleton,
|
|
42
43
|
isShowSkeleton = _props$isShowSkeleton === void 0 ? true : _props$isShowSkeleton,
|
|
43
44
|
isLoadedAssets = props.isLoadedAssets,
|
|
45
|
+
_props$loadingType = props.loadingType,
|
|
46
|
+
loadingType = _props$loadingType === void 0 ? "skeleton" : _props$loadingType,
|
|
44
47
|
others = _objectWithoutProperties(props, _excluded);
|
|
45
48
|
var schemaHash = useMemo(function () {
|
|
46
49
|
if (projectSchema) {
|
|
@@ -80,6 +83,8 @@ var Render = function Render(props) {
|
|
|
80
83
|
}
|
|
81
84
|
return _context.abrupt("return");
|
|
82
85
|
case 2:
|
|
86
|
+
console.log(performance.now(), 'init');
|
|
87
|
+
console.time('lowcode-init');
|
|
83
88
|
componentsMapArray = projectSchema.componentsMap, componentsTree = projectSchema.componentsTree, i18n = projectSchema.i18n, projectDataSource = projectSchema.dataSource;
|
|
84
89
|
componentsMap = {};
|
|
85
90
|
packagesMap = {};
|
|
@@ -106,23 +111,27 @@ var Render = function Render(props) {
|
|
|
106
111
|
|
|
107
112
|
// console.log(libraryMap,'libraryMap',libraryAsset);
|
|
108
113
|
// const vendors = [assetBundle(libraryAsset, AssetLevel.Library)];
|
|
109
|
-
|
|
114
|
+
console.timeEnd('lowcode-init');
|
|
115
|
+
console.time('lowcode-isLoadedAssets');
|
|
110
116
|
// 静态资源load后不再二次加载
|
|
111
117
|
if (isLoadAssets || isLoadedAssets) {
|
|
112
|
-
_context.next =
|
|
118
|
+
_context.next = 19;
|
|
113
119
|
break;
|
|
114
120
|
}
|
|
115
121
|
// TODO asset may cause pollution
|
|
116
122
|
assetLoader = new AssetLoader();
|
|
117
|
-
_context.next =
|
|
123
|
+
_context.next = 18;
|
|
118
124
|
return assetLoader.load(libraryAsset);
|
|
119
|
-
case
|
|
125
|
+
case 18:
|
|
120
126
|
isLoadAssets = true;
|
|
121
|
-
case
|
|
122
|
-
|
|
127
|
+
case 19:
|
|
128
|
+
console.timeEnd('lowcode-isLoadedAssets');
|
|
129
|
+
console.time('lowcode-injectComponents');
|
|
130
|
+
_context.next = 23;
|
|
123
131
|
return injectComponents(buildComponents(libraryMap, componentsMap));
|
|
124
|
-
case
|
|
132
|
+
case 23:
|
|
125
133
|
components = _context.sent;
|
|
134
|
+
console.timeEnd('lowcode-injectComponents');
|
|
126
135
|
_data = {
|
|
127
136
|
schema: pageSchema,
|
|
128
137
|
components: components,
|
|
@@ -131,7 +140,7 @@ var Render = function Render(props) {
|
|
|
131
140
|
};
|
|
132
141
|
cacheDataMap.set(schemaHash, _data);
|
|
133
142
|
setData(_data);
|
|
134
|
-
case
|
|
143
|
+
case 28:
|
|
135
144
|
case "end":
|
|
136
145
|
return _context.stop();
|
|
137
146
|
}
|
|
@@ -150,10 +159,25 @@ var Render = function Render(props) {
|
|
|
150
159
|
init();
|
|
151
160
|
}
|
|
152
161
|
}, [data, projectSchema, schemaHash]);
|
|
162
|
+
useEffect(function () {
|
|
163
|
+
console.log(performance.now(), 'schema components', schema, components);
|
|
164
|
+
}, [schema, components]);
|
|
153
165
|
if (!schema || !components) {
|
|
154
166
|
if (!isShowSkeleton) {
|
|
155
167
|
return null;
|
|
156
168
|
}
|
|
169
|
+
if (loadingType === "spin") {
|
|
170
|
+
return /*#__PURE__*/_jsx("div", {
|
|
171
|
+
style: {
|
|
172
|
+
height: '100%',
|
|
173
|
+
width: '100%',
|
|
174
|
+
display: 'flex',
|
|
175
|
+
justifyContent: 'center',
|
|
176
|
+
alignItems: 'center'
|
|
177
|
+
},
|
|
178
|
+
children: /*#__PURE__*/_jsx(Spin, {})
|
|
179
|
+
});
|
|
180
|
+
}
|
|
157
181
|
return /*#__PURE__*/_jsx("div", {
|
|
158
182
|
style: {
|
|
159
183
|
padding: 20
|
package/es/Render/index.less
CHANGED
package/es/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
report: {
|
|
3
|
-
getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD" | "DAILY_SUMMARY_BY_PRODUCT" | "SALES_SUMMARY_BY_PRODUCT" | "TEAM_MEMBERS_COMMISSION_DETAIL" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK" | "BOOKING_BY_CHECK_IN_OUT_DATE" | "SALES_SUMMARY_BY_CHANNEL" | "SALES_SUMMARY_BY_PAYMENT_METHOD" | "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD") => Promise<any>;
|
|
3
|
+
getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD" | "DAILY_SUMMARY_BY_PRODUCT" | "SALES_SUMMARY_BY_PRODUCT" | "TEAM_MEMBERS_COMMISSION_DETAIL" | "TEAM_SELF_COMMISSION_DETAIL" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK" | "BOOKING_BY_CHECK_IN_OUT_DATE" | "SALES_SUMMARY_BY_CHANNEL" | "SALES_SUMMARY_BY_PAYMENT_METHOD" | "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD") => Promise<any>;
|
|
4
4
|
};
|
|
5
5
|
utils: {};
|
|
6
6
|
};
|
package/es/api/report/URL.js
CHANGED
|
@@ -29,6 +29,9 @@ export var SALES_SUMMARY_BY_PRODUCT = "https://prod-06.australiasoutheast.logic.
|
|
|
29
29
|
// team_members_commission_detail
|
|
30
30
|
export var TEAM_MEMBERS_COMMISSION_DETAIL = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=K_3DNW2kzFL3MA3UaMuk7FVCYkLYcet5wVvZGUp5Omw";
|
|
31
31
|
|
|
32
|
+
// TEAM_SELF_COMMISSION_DETAIL Income
|
|
33
|
+
export var TEAM_SELF_COMMISSION_DETAIL = 'https://prod-16.australiasoutheast.logic.azure.com:443/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=K_3DNW2kzFL3MA3UaMuk7FVCYkLYcet5wVvZGUp5Omw';
|
|
34
|
+
|
|
32
35
|
// team_members_commission_summary_by_week
|
|
33
36
|
export var TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK = "https://prod-22.australiasoutheast.logic.azure.com:443/workflows/e5a7153200d140a7b77613f76dd4b6ed/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=IteIPHxoQgT1kcTxFL9TRO37ffiKWm2ulITLbF3z3a8";
|
|
34
37
|
|
|
@@ -58,6 +61,7 @@ export default {
|
|
|
58
61
|
DAILY_SUMMARY_BY_PRODUCT: DAILY_SUMMARY_BY_PRODUCT,
|
|
59
62
|
SALES_SUMMARY_BY_PRODUCT: SALES_SUMMARY_BY_PRODUCT,
|
|
60
63
|
TEAM_MEMBERS_COMMISSION_DETAIL: TEAM_MEMBERS_COMMISSION_DETAIL,
|
|
64
|
+
TEAM_SELF_COMMISSION_DETAIL: TEAM_SELF_COMMISSION_DETAIL,
|
|
61
65
|
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK: TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
62
66
|
BOOKING_BY_CHECK_IN_OUT_DATE: BOOKING_BY_CHECK_IN_OUT_DATE,
|
|
63
67
|
SALES_SUMMARY_BY_CHANNEL: SALES_SUMMARY_BY_CHANNEL,
|
package/es/api/report/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
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); }
|
|
2
2
|
var _excluded = ["date", "exportFile"];
|
|
3
|
-
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
+
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; }
|
|
4
4
|
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); } }
|
|
5
5
|
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); }); }; }
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
8
|
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; }
|
|
9
|
-
function _toPropertyKey(
|
|
10
|
-
function _toPrimitive(
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
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); }
|
|
11
11
|
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; }
|
|
12
12
|
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; }
|
|
13
13
|
import dayjs from "dayjs";
|
|
14
14
|
import utc from "dayjs/plugin/utc";
|
|
15
15
|
import timezone from "dayjs/plugin/timezone";
|
|
16
16
|
import urls from "./URL";
|
|
17
|
-
import { getShopConfig, injectedConfig } from "../../config";
|
|
17
|
+
import { getShopConfig, injectedConfig, getAccount } from "../../config";
|
|
18
18
|
dayjs.extend(utc);
|
|
19
19
|
dayjs.extend(timezone);
|
|
20
|
-
var includeTimeZoneUrl = ["REPORT_DASHBOARD", "TEAM_MEMBERS_COMMISSION_DETAIL", "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK", "BOOKING_BY_CHECK_IN_OUT_DATE", "SALES_SUMMARY_BY_CHANNEL", "SALES_SUMMARY_BY_PAYMENT_METHOD", "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD", "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD"];
|
|
20
|
+
var includeTimeZoneUrl = ["REPORT_DASHBOARD", "TEAM_MEMBERS_COMMISSION_DETAIL", "TEAM_SELF_COMMISSION_DETAIL", "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK", "BOOKING_BY_CHECK_IN_OUT_DATE", "SALES_SUMMARY_BY_CHANNEL", "SALES_SUMMARY_BY_PAYMENT_METHOD", "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD", "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD"];
|
|
21
21
|
|
|
22
22
|
// 获取时差
|
|
23
23
|
var getTimeDiff = function getTimeDiff(timezone) {
|
|
@@ -41,6 +41,13 @@ var getParams = function getParams(values, url) {
|
|
|
41
41
|
date = _ref.date,
|
|
42
42
|
exportFile = _ref.exportFile,
|
|
43
43
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
+
if (url === 'TEAM_SELF_COMMISSION_DETAIL') {
|
|
45
|
+
var _ref2 = getAccount() || {},
|
|
46
|
+
_id = _ref2.id;
|
|
47
|
+
if (_id) {
|
|
48
|
+
others['form_record_id'] = _id;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
44
51
|
|
|
45
52
|
// 存储筛选日期
|
|
46
53
|
var start_at = 0;
|
|
@@ -69,7 +76,7 @@ var getParams = function getParams(values, url) {
|
|
|
69
76
|
}, others);
|
|
70
77
|
};
|
|
71
78
|
var getReportList = /*#__PURE__*/function () {
|
|
72
|
-
var
|
|
79
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values, url) {
|
|
73
80
|
var params, data;
|
|
74
81
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
75
82
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -94,7 +101,7 @@ var getReportList = /*#__PURE__*/function () {
|
|
|
94
101
|
}, _callee);
|
|
95
102
|
}));
|
|
96
103
|
return function getReportList(_x, _x2) {
|
|
97
|
-
return
|
|
104
|
+
return _ref3.apply(this, arguments);
|
|
98
105
|
};
|
|
99
106
|
}();
|
|
100
107
|
export default {
|
package/es/config/index.js
CHANGED
|
@@ -8,4 +8,10 @@ var getShopConfig = function getShopConfig() {
|
|
|
8
8
|
}
|
|
9
9
|
return injectedConfig.shopConfig;
|
|
10
10
|
};
|
|
11
|
+
export var getAccount = function getAccount() {
|
|
12
|
+
if (typeof injectedConfig.account === "function") {
|
|
13
|
+
return injectedConfig.account();
|
|
14
|
+
}
|
|
15
|
+
return injectedConfig.account;
|
|
16
|
+
};
|
|
11
17
|
export { injectedConfig, getShopConfig };
|
|
@@ -60,6 +60,11 @@ import_lowcode_renderer_core.adapter.setConfigProvider(import_config_provider.de
|
|
|
60
60
|
function factory() {
|
|
61
61
|
const Renderer = (0, import_lowcode_renderer_core.rendererFactory)();
|
|
62
62
|
return class ReactRenderer extends Renderer {
|
|
63
|
+
props;
|
|
64
|
+
context;
|
|
65
|
+
setState;
|
|
66
|
+
forceUpdate;
|
|
67
|
+
refs;
|
|
63
68
|
constructor(props, context) {
|
|
64
69
|
super(props, context);
|
|
65
70
|
}
|
package/lib/Render/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IRendererAppHelper } from "@alilc/lowcode-renderer-core/lib/types";
|
|
2
|
+
import "./index.less";
|
|
3
3
|
interface RenderProps {
|
|
4
4
|
packages: Record<string, any>;
|
|
5
5
|
projectSchema?: Record<string, any> | null;
|
|
@@ -8,6 +8,7 @@ interface RenderProps {
|
|
|
8
8
|
locale?: string;
|
|
9
9
|
isShowSkeleton?: boolean;
|
|
10
10
|
isLoadedAssets?: boolean;
|
|
11
|
+
loadingType?: "spin" | "skeleton";
|
|
11
12
|
[key: string]: any;
|
|
12
13
|
}
|
|
13
14
|
declare const Render: (props: RenderProps) => JSX.Element | null;
|
package/lib/Render/index.js
CHANGED
|
@@ -40,6 +40,7 @@ var import_react = __toESM(require("react"));
|
|
|
40
40
|
var import_ReactRenderer = __toESM(require("../ReactRenderer"));
|
|
41
41
|
var import_appHelper = __toESM(require("../appHelper"));
|
|
42
42
|
var import_utils = require("@pisell/utils");
|
|
43
|
+
var import_index = require("./index.less");
|
|
43
44
|
var isLoadAssets = false;
|
|
44
45
|
var cacheDataMap = /* @__PURE__ */ new Map();
|
|
45
46
|
var Render = (props) => {
|
|
@@ -51,6 +52,7 @@ var Render = (props) => {
|
|
|
51
52
|
locale,
|
|
52
53
|
isShowSkeleton = true,
|
|
53
54
|
isLoadedAssets,
|
|
55
|
+
loadingType = "skeleton",
|
|
54
56
|
...others
|
|
55
57
|
} = props;
|
|
56
58
|
const schemaHash = (0, import_react.useMemo)(() => {
|
|
@@ -68,8 +70,9 @@ var Render = (props) => {
|
|
|
68
70
|
}, []);
|
|
69
71
|
(0, import_react.useEffect)(() => {
|
|
70
72
|
async function init() {
|
|
71
|
-
if (!projectSchema)
|
|
72
|
-
|
|
73
|
+
if (!projectSchema) return;
|
|
74
|
+
console.log(performance.now(), "init");
|
|
75
|
+
console.time("lowcode-init");
|
|
73
76
|
const {
|
|
74
77
|
componentsMap: componentsMapArray,
|
|
75
78
|
componentsTree,
|
|
@@ -93,14 +96,19 @@ var Render = (props) => {
|
|
|
93
96
|
libraryAsset.push(urls);
|
|
94
97
|
}
|
|
95
98
|
});
|
|
99
|
+
console.timeEnd("lowcode-init");
|
|
100
|
+
console.time("lowcode-isLoadedAssets");
|
|
96
101
|
if (!(isLoadAssets || isLoadedAssets)) {
|
|
97
102
|
const assetLoader = new import_lowcode_utils.AssetLoader();
|
|
98
103
|
await assetLoader.load(libraryAsset);
|
|
99
104
|
isLoadAssets = true;
|
|
100
105
|
}
|
|
106
|
+
console.timeEnd("lowcode-isLoadedAssets");
|
|
107
|
+
console.time("lowcode-injectComponents");
|
|
101
108
|
const components3 = await (0, import_lowcode_plugin_inject.injectComponents)(
|
|
102
109
|
(0, import_lowcode_utils.buildComponents)(libraryMap, componentsMap)
|
|
103
110
|
);
|
|
111
|
+
console.timeEnd("lowcode-injectComponents");
|
|
104
112
|
const _data = {
|
|
105
113
|
schema: pageSchema,
|
|
106
114
|
components: components3,
|
|
@@ -120,10 +128,28 @@ var Render = (props) => {
|
|
|
120
128
|
init();
|
|
121
129
|
}
|
|
122
130
|
}, [data, projectSchema, schemaHash]);
|
|
131
|
+
(0, import_react.useEffect)(() => {
|
|
132
|
+
console.log(performance.now(), "schema components", schema, components);
|
|
133
|
+
}, [schema, components]);
|
|
123
134
|
if (!schema || !components) {
|
|
124
135
|
if (!isShowSkeleton) {
|
|
125
136
|
return null;
|
|
126
137
|
}
|
|
138
|
+
if (loadingType === "spin") {
|
|
139
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
style: {
|
|
143
|
+
height: "100%",
|
|
144
|
+
width: "100%",
|
|
145
|
+
display: "flex",
|
|
146
|
+
justifyContent: "center",
|
|
147
|
+
alignItems: "center"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Spin, null)
|
|
151
|
+
);
|
|
152
|
+
}
|
|
127
153
|
return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: 20 } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }));
|
|
128
154
|
}
|
|
129
155
|
function customizer(objValue, srcValue) {
|
package/lib/Render/index.less
CHANGED
package/lib/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
report: {
|
|
3
|
-
getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD" | "DAILY_SUMMARY_BY_PRODUCT" | "SALES_SUMMARY_BY_PRODUCT" | "TEAM_MEMBERS_COMMISSION_DETAIL" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK" | "BOOKING_BY_CHECK_IN_OUT_DATE" | "SALES_SUMMARY_BY_CHANNEL" | "SALES_SUMMARY_BY_PAYMENT_METHOD" | "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD") => Promise<any>;
|
|
3
|
+
getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD" | "DAILY_SUMMARY_BY_PRODUCT" | "SALES_SUMMARY_BY_PRODUCT" | "TEAM_MEMBERS_COMMISSION_DETAIL" | "TEAM_SELF_COMMISSION_DETAIL" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK" | "BOOKING_BY_CHECK_IN_OUT_DATE" | "SALES_SUMMARY_BY_CHANNEL" | "SALES_SUMMARY_BY_PAYMENT_METHOD" | "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD") => Promise<any>;
|
|
4
4
|
};
|
|
5
5
|
utils: {};
|
|
6
6
|
};
|
package/lib/api/report/URL.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(URL_exports, {
|
|
|
36
36
|
TEAM_MEMBERS_COMMISSION_DETAIL: () => TEAM_MEMBERS_COMMISSION_DETAIL,
|
|
37
37
|
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD: () => TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD,
|
|
38
38
|
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK: () => TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
39
|
+
TEAM_SELF_COMMISSION_DETAIL: () => TEAM_SELF_COMMISSION_DETAIL,
|
|
39
40
|
default: () => URL_default
|
|
40
41
|
});
|
|
41
42
|
module.exports = __toCommonJS(URL_exports);
|
|
@@ -50,6 +51,7 @@ var REPORT_DASHBOARD = "https://prod-28.australiasoutheast.logic.azure.com:443/w
|
|
|
50
51
|
var DAILY_SUMMARY_BY_PRODUCT = "https://prod-19.australiasoutheast.logic.azure.com:443/workflows/405cc89013d04a529a214a3e7b1fff09/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=1bFdGR1tjugCh48ksvMkj-ucqC4CI60TljPdGARqVNs";
|
|
51
52
|
var SALES_SUMMARY_BY_PRODUCT = "https://prod-06.australiasoutheast.logic.azure.com:443/workflows/feb08c0d3c6042aa966be63d75ebd815/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=BdSOJitfTf2Mv1dmTtvVgVBxQHT5h7qePzyTOeBvwAU";
|
|
52
53
|
var TEAM_MEMBERS_COMMISSION_DETAIL = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=K_3DNW2kzFL3MA3UaMuk7FVCYkLYcet5wVvZGUp5Omw";
|
|
54
|
+
var TEAM_SELF_COMMISSION_DETAIL = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=K_3DNW2kzFL3MA3UaMuk7FVCYkLYcet5wVvZGUp5Omw";
|
|
53
55
|
var TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK = "https://prod-22.australiasoutheast.logic.azure.com:443/workflows/e5a7153200d140a7b77613f76dd4b6ed/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=IteIPHxoQgT1kcTxFL9TRO37ffiKWm2ulITLbF3z3a8";
|
|
54
56
|
var BOOKING_BY_CHECK_IN_OUT_DATE = "https://prod-14.australiasoutheast.logic.azure.com:443/workflows/2773a0f0afdb4bd29e8a3d22fd6f0826/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=8wgysIlh0vBMz1IGGLvK7l12uqGHGiArva7nj8W2IQw";
|
|
55
57
|
var SALES_SUMMARY_BY_CHANNEL = "https://prod-01.australiasoutheast.logic.azure.com:443/workflows/aafe09ada85d49a98082fc99560dd611/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=0k8JpZNRCSnzZOCuuRJ_n-FwtygasjSHNdsX1hcqulA";
|
|
@@ -68,6 +70,7 @@ var URL_default = {
|
|
|
68
70
|
DAILY_SUMMARY_BY_PRODUCT,
|
|
69
71
|
SALES_SUMMARY_BY_PRODUCT,
|
|
70
72
|
TEAM_MEMBERS_COMMISSION_DETAIL,
|
|
73
|
+
TEAM_SELF_COMMISSION_DETAIL,
|
|
71
74
|
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
72
75
|
BOOKING_BY_CHECK_IN_OUT_DATE,
|
|
73
76
|
SALES_SUMMARY_BY_CHANNEL,
|
|
@@ -93,5 +96,6 @@ var URL_default = {
|
|
|
93
96
|
SALES_SUMMARY_BY_PRODUCT,
|
|
94
97
|
TEAM_MEMBERS_COMMISSION_DETAIL,
|
|
95
98
|
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD,
|
|
96
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK
|
|
99
|
+
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
100
|
+
TEAM_SELF_COMMISSION_DETAIL
|
|
97
101
|
});
|
package/lib/api/report/index.js
CHANGED
|
@@ -42,6 +42,7 @@ import_dayjs.default.extend(import_timezone.default);
|
|
|
42
42
|
var includeTimeZoneUrl = [
|
|
43
43
|
"REPORT_DASHBOARD",
|
|
44
44
|
"TEAM_MEMBERS_COMMISSION_DETAIL",
|
|
45
|
+
"TEAM_SELF_COMMISSION_DETAIL",
|
|
45
46
|
"TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK",
|
|
46
47
|
"BOOKING_BY_CHECK_IN_OUT_DATE",
|
|
47
48
|
"SALES_SUMMARY_BY_CHANNEL",
|
|
@@ -63,6 +64,12 @@ var getParams = (values, url) => {
|
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
let { date, exportFile, ...others } = values || {};
|
|
67
|
+
if (url === "TEAM_SELF_COMMISSION_DETAIL") {
|
|
68
|
+
const { id: id2 } = (0, import_config.getAccount)() || {};
|
|
69
|
+
if (id2) {
|
|
70
|
+
others["form_record_id"] = id2;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
66
73
|
let start_at = 0;
|
|
67
74
|
let end_at = 0;
|
|
68
75
|
if (date && Array.isArray(date) && date[0]) {
|
package/lib/config/index.js
CHANGED
|
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/config/index.ts
|
|
20
20
|
var config_exports = {};
|
|
21
21
|
__export(config_exports, {
|
|
22
|
+
getAccount: () => getAccount,
|
|
22
23
|
getShopConfig: () => getShopConfig,
|
|
23
24
|
injectConfig: () => injectConfig,
|
|
24
25
|
injectedConfig: () => injectedConfig
|
|
@@ -34,8 +35,15 @@ var getShopConfig = () => {
|
|
|
34
35
|
}
|
|
35
36
|
return injectedConfig.shopConfig;
|
|
36
37
|
};
|
|
38
|
+
var getAccount = () => {
|
|
39
|
+
if (typeof injectedConfig.account === "function") {
|
|
40
|
+
return injectedConfig.account();
|
|
41
|
+
}
|
|
42
|
+
return injectedConfig.account;
|
|
43
|
+
};
|
|
37
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
45
|
0 && (module.exports = {
|
|
46
|
+
getAccount,
|
|
39
47
|
getShopConfig,
|
|
40
48
|
injectConfig,
|
|
41
49
|
injectedConfig
|
package/package.json
CHANGED
package/es/api/report/URL.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const REPORT_DETAILED_TRANSACTIONS = "https://prod-03.australiasoutheast.logic.azure.com:443/workflows/cc1bc2ac0f824122a51b1cc17f099789/triggers/manual/paths/invoke?api-version=2016-06-01&sp=/triggers/manual/run&sv=1.0&sig=i464OhQO9VjuiVw14YUNBgKPAhambDmCzPC_6bKZBxM";
|
|
2
|
-
export declare const REPORT_DETAILED_PRODUCT_SALES = "https://prod-08.australiasoutheast.logic.azure.com:443/workflows/40bf1ebddfaf414fb43430843655ebee/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=sdEFIBnqWc_xxomkbnhq__ySZ6BBe2Cfs3ATeWp898s";
|
|
3
|
-
export declare const REPORT_DAILY_SUMMARY_BY_PAYMETHOD = "https://prod-25.australiasoutheast.logic.azure.com:443/workflows/69ecf67d14dc4c5494ac6e58e4168b44/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=VwrALdkCWZBuoy4AMq3sxLuTD8mrDS6gAWmQG9ma27g";
|
|
4
|
-
export declare const REPORT_DAILY_SUMMARY_BY_ORDER = "https://prod-28.australiasoutheast.logic.azure.com:443/workflows/4c579e57f93143518bb0b51675681ba5/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=kb4szs5DXpjQab87inkBfr2AL-w0wyxA5uQF8Vt2WcE";
|
|
5
|
-
export declare const REPORT_DETAILED_ORDERS = "https://prod-22.australiasoutheast.logic.azure.com:443/workflows/2a71808194724ce7966fc516cbea6889/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=7GtvCsK-jcsx4lszeJm295X3uCBLP4MF2EjAwLWbSAw";
|
|
6
|
-
export declare const REPORT_MONTH_SUMMARY_BY_ORDER = "https://prod-19.australiasoutheast.logic.azure.com:443/workflows/bb93098ba15e48b5af16d8519f01c959/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=1duBNlZz70C_w8lJakWIG5E8xhTcxiyCeBP2q5xWISQ";
|
|
7
|
-
export declare const REPORT_WEEK_SUMMARY_BY_ORDER = "https://prod-12.australiasoutheast.logic.azure.com:443/workflows/74eb659a4c264b6ca85cfacd328443eb/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=-7pJxhJ3j5XF-4-Ghz25b-VUnxS-BnBjPDK-Lbp_DLM";
|
|
8
|
-
export declare const REPORT_DASHBOARD = "https://prod-28.australiasoutheast.logic.azure.com:443/workflows/5f64fa8f8c614e29aee96f7def6453e2/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=NL5FLwVokSOtki9LhbMyGlEoEgE1R_lCT7G5kWIdWEM";
|
|
9
|
-
export declare const DAILY_SUMMARY_BY_PRODUCT = "https://prod-19.australiasoutheast.logic.azure.com:443/workflows/405cc89013d04a529a214a3e7b1fff09/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=1bFdGR1tjugCh48ksvMkj-ucqC4CI60TljPdGARqVNs";
|
|
10
|
-
export declare const SALES_SUMMARY_BY_PRODUCT = "https://prod-06.australiasoutheast.logic.azure.com:443/workflows/feb08c0d3c6042aa966be63d75ebd815/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=BdSOJitfTf2Mv1dmTtvVgVBxQHT5h7qePzyTOeBvwAU";
|
|
11
|
-
export declare const TEAM_MEMBERS_COMMISSION_DETAIL = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=K_3DNW2kzFL3MA3UaMuk7FVCYkLYcet5wVvZGUp5Omw";
|
|
12
|
-
export declare const TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK = "https://prod-22.australiasoutheast.logic.azure.com:443/workflows/e5a7153200d140a7b77613f76dd4b6ed/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=IteIPHxoQgT1kcTxFL9TRO37ffiKWm2ulITLbF3z3a8";
|
|
13
|
-
export declare const BOOKING_BY_CHECK_IN_OUT_DATE = "https://prod-14.australiasoutheast.logic.azure.com:443/workflows/2773a0f0afdb4bd29e8a3d22fd6f0826/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=8wgysIlh0vBMz1IGGLvK7l12uqGHGiArva7nj8W2IQw";
|
|
14
|
-
export declare const SALES_SUMMARY_BY_CHANNEL = "https://prod-01.australiasoutheast.logic.azure.com:443/workflows/aafe09ada85d49a98082fc99560dd611/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=0k8JpZNRCSnzZOCuuRJ_n-FwtygasjSHNdsX1hcqulA";
|
|
15
|
-
export declare const SALES_SUMMARY_BY_PAYMENT_METHOD = "https://prod-23.australiasoutheast.logic.azure.com:443/workflows/572b1d5cf9384971bdb03386d94c3ec6/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=QoV3wBpJDpCQ_U-IQre14hIXJV1kCtM3XEk7v1mWzlA";
|
|
16
|
-
export declare const SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/2cfbef5e3f68426f94c2b417b86cb798/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=J52MfKoKaRxjrzSYnv4aFFTm63cpZcOOouM727r64aE";
|
|
17
|
-
export declare const TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD = "https://prod-00.australiasoutheast.logic.azure.com:443/workflows/de0349380f904e0ab4f08d0e507d678e/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=CBpretlgpeWdhXPRqrBPbJenLmWebsQ0wMOx4pbhGNI";
|
|
18
|
-
declare const _default: {
|
|
19
|
-
REPORT_DETAILED_TRANSACTIONS: string;
|
|
20
|
-
REPORT_DETAILED_PRODUCT_SALES: string;
|
|
21
|
-
REPORT_DAILY_SUMMARY_BY_PAYMETHOD: string;
|
|
22
|
-
REPORT_DAILY_SUMMARY_BY_ORDER: string;
|
|
23
|
-
REPORT_DETAILED_ORDERS: string;
|
|
24
|
-
REPORT_MONTH_SUMMARY_BY_ORDER: string;
|
|
25
|
-
REPORT_WEEK_SUMMARY_BY_ORDER: string;
|
|
26
|
-
REPORT_DASHBOARD: string;
|
|
27
|
-
DAILY_SUMMARY_BY_PRODUCT: string;
|
|
28
|
-
SALES_SUMMARY_BY_PRODUCT: string;
|
|
29
|
-
TEAM_MEMBERS_COMMISSION_DETAIL: string;
|
|
30
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK: string;
|
|
31
|
-
BOOKING_BY_CHECK_IN_OUT_DATE: string;
|
|
32
|
-
SALES_SUMMARY_BY_CHANNEL: string;
|
|
33
|
-
SALES_SUMMARY_BY_PAYMENT_METHOD: string;
|
|
34
|
-
SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD: string;
|
|
35
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD: string;
|
|
36
|
-
};
|
|
37
|
-
export default _default;
|
package/es/api/report/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare type UrlItem = "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD" | "DAILY_SUMMARY_BY_PRODUCT" | "SALES_SUMMARY_BY_PRODUCT" | "TEAM_MEMBERS_COMMISSION_DETAIL" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK" | "BOOKING_BY_CHECK_IN_OUT_DATE" | "SALES_SUMMARY_BY_CHANNEL" | "SALES_SUMMARY_BY_PAYMENT_METHOD" | "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
getReportList: (values: any, url: UrlItem) => Promise<any>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
package/es/config/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare type ShopConfigType = {
|
|
2
|
-
timezone: string;
|
|
3
|
-
id: number;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
declare type InjectedConfigType = {
|
|
7
|
-
shopConfig: ShopConfigType | (() => ShopConfigType);
|
|
8
|
-
request: any;
|
|
9
|
-
};
|
|
10
|
-
declare let injectedConfig: InjectedConfigType;
|
|
11
|
-
export declare const injectConfig: (context: InjectedConfigType) => void;
|
|
12
|
-
declare const getShopConfig: () => ShopConfigType;
|
|
13
|
-
export { injectedConfig, getShopConfig };
|
package/lib/api/report/URL.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const REPORT_DETAILED_TRANSACTIONS = "https://prod-03.australiasoutheast.logic.azure.com:443/workflows/cc1bc2ac0f824122a51b1cc17f099789/triggers/manual/paths/invoke?api-version=2016-06-01&sp=/triggers/manual/run&sv=1.0&sig=i464OhQO9VjuiVw14YUNBgKPAhambDmCzPC_6bKZBxM";
|
|
2
|
-
export declare const REPORT_DETAILED_PRODUCT_SALES = "https://prod-08.australiasoutheast.logic.azure.com:443/workflows/40bf1ebddfaf414fb43430843655ebee/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=sdEFIBnqWc_xxomkbnhq__ySZ6BBe2Cfs3ATeWp898s";
|
|
3
|
-
export declare const REPORT_DAILY_SUMMARY_BY_PAYMETHOD = "https://prod-25.australiasoutheast.logic.azure.com:443/workflows/69ecf67d14dc4c5494ac6e58e4168b44/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=VwrALdkCWZBuoy4AMq3sxLuTD8mrDS6gAWmQG9ma27g";
|
|
4
|
-
export declare const REPORT_DAILY_SUMMARY_BY_ORDER = "https://prod-28.australiasoutheast.logic.azure.com:443/workflows/4c579e57f93143518bb0b51675681ba5/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=kb4szs5DXpjQab87inkBfr2AL-w0wyxA5uQF8Vt2WcE";
|
|
5
|
-
export declare const REPORT_DETAILED_ORDERS = "https://prod-22.australiasoutheast.logic.azure.com:443/workflows/2a71808194724ce7966fc516cbea6889/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=7GtvCsK-jcsx4lszeJm295X3uCBLP4MF2EjAwLWbSAw";
|
|
6
|
-
export declare const REPORT_MONTH_SUMMARY_BY_ORDER = "https://prod-19.australiasoutheast.logic.azure.com:443/workflows/bb93098ba15e48b5af16d8519f01c959/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=1duBNlZz70C_w8lJakWIG5E8xhTcxiyCeBP2q5xWISQ";
|
|
7
|
-
export declare const REPORT_WEEK_SUMMARY_BY_ORDER = "https://prod-12.australiasoutheast.logic.azure.com:443/workflows/74eb659a4c264b6ca85cfacd328443eb/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=-7pJxhJ3j5XF-4-Ghz25b-VUnxS-BnBjPDK-Lbp_DLM";
|
|
8
|
-
export declare const REPORT_DASHBOARD = "https://prod-28.australiasoutheast.logic.azure.com:443/workflows/5f64fa8f8c614e29aee96f7def6453e2/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=NL5FLwVokSOtki9LhbMyGlEoEgE1R_lCT7G5kWIdWEM";
|
|
9
|
-
export declare const DAILY_SUMMARY_BY_PRODUCT = "https://prod-19.australiasoutheast.logic.azure.com:443/workflows/405cc89013d04a529a214a3e7b1fff09/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=1bFdGR1tjugCh48ksvMkj-ucqC4CI60TljPdGARqVNs";
|
|
10
|
-
export declare const SALES_SUMMARY_BY_PRODUCT = "https://prod-06.australiasoutheast.logic.azure.com:443/workflows/feb08c0d3c6042aa966be63d75ebd815/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=BdSOJitfTf2Mv1dmTtvVgVBxQHT5h7qePzyTOeBvwAU";
|
|
11
|
-
export declare const TEAM_MEMBERS_COMMISSION_DETAIL = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=K_3DNW2kzFL3MA3UaMuk7FVCYkLYcet5wVvZGUp5Omw";
|
|
12
|
-
export declare const TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK = "https://prod-22.australiasoutheast.logic.azure.com:443/workflows/e5a7153200d140a7b77613f76dd4b6ed/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=IteIPHxoQgT1kcTxFL9TRO37ffiKWm2ulITLbF3z3a8";
|
|
13
|
-
export declare const BOOKING_BY_CHECK_IN_OUT_DATE = "https://prod-14.australiasoutheast.logic.azure.com:443/workflows/2773a0f0afdb4bd29e8a3d22fd6f0826/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=8wgysIlh0vBMz1IGGLvK7l12uqGHGiArva7nj8W2IQw";
|
|
14
|
-
export declare const SALES_SUMMARY_BY_CHANNEL = "https://prod-01.australiasoutheast.logic.azure.com:443/workflows/aafe09ada85d49a98082fc99560dd611/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=0k8JpZNRCSnzZOCuuRJ_n-FwtygasjSHNdsX1hcqulA";
|
|
15
|
-
export declare const SALES_SUMMARY_BY_PAYMENT_METHOD = "https://prod-23.australiasoutheast.logic.azure.com:443/workflows/572b1d5cf9384971bdb03386d94c3ec6/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=QoV3wBpJDpCQ_U-IQre14hIXJV1kCtM3XEk7v1mWzlA";
|
|
16
|
-
export declare const SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD = "https://prod-16.australiasoutheast.logic.azure.com:443/workflows/2cfbef5e3f68426f94c2b417b86cb798/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=J52MfKoKaRxjrzSYnv4aFFTm63cpZcOOouM727r64aE";
|
|
17
|
-
export declare const TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD = "https://prod-00.australiasoutheast.logic.azure.com:443/workflows/de0349380f904e0ab4f08d0e507d678e/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=CBpretlgpeWdhXPRqrBPbJenLmWebsQ0wMOx4pbhGNI";
|
|
18
|
-
declare const _default: {
|
|
19
|
-
REPORT_DETAILED_TRANSACTIONS: string;
|
|
20
|
-
REPORT_DETAILED_PRODUCT_SALES: string;
|
|
21
|
-
REPORT_DAILY_SUMMARY_BY_PAYMETHOD: string;
|
|
22
|
-
REPORT_DAILY_SUMMARY_BY_ORDER: string;
|
|
23
|
-
REPORT_DETAILED_ORDERS: string;
|
|
24
|
-
REPORT_MONTH_SUMMARY_BY_ORDER: string;
|
|
25
|
-
REPORT_WEEK_SUMMARY_BY_ORDER: string;
|
|
26
|
-
REPORT_DASHBOARD: string;
|
|
27
|
-
DAILY_SUMMARY_BY_PRODUCT: string;
|
|
28
|
-
SALES_SUMMARY_BY_PRODUCT: string;
|
|
29
|
-
TEAM_MEMBERS_COMMISSION_DETAIL: string;
|
|
30
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK: string;
|
|
31
|
-
BOOKING_BY_CHECK_IN_OUT_DATE: string;
|
|
32
|
-
SALES_SUMMARY_BY_CHANNEL: string;
|
|
33
|
-
SALES_SUMMARY_BY_PAYMENT_METHOD: string;
|
|
34
|
-
SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD: string;
|
|
35
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD: string;
|
|
36
|
-
};
|
|
37
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare type UrlItem = "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD" | "DAILY_SUMMARY_BY_PRODUCT" | "SALES_SUMMARY_BY_PRODUCT" | "TEAM_MEMBERS_COMMISSION_DETAIL" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK" | "BOOKING_BY_CHECK_IN_OUT_DATE" | "SALES_SUMMARY_BY_CHANNEL" | "SALES_SUMMARY_BY_PAYMENT_METHOD" | "SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD" | "TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
getReportList: (values: any, url: UrlItem) => Promise<any>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
package/lib/config/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare type ShopConfigType = {
|
|
2
|
-
timezone: string;
|
|
3
|
-
id: number;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
declare type InjectedConfigType = {
|
|
7
|
-
shopConfig: ShopConfigType | (() => ShopConfigType);
|
|
8
|
-
request: any;
|
|
9
|
-
};
|
|
10
|
-
declare let injectedConfig: InjectedConfigType;
|
|
11
|
-
export declare const injectConfig: (context: InjectedConfigType) => void;
|
|
12
|
-
declare const getShopConfig: () => ShopConfigType;
|
|
13
|
-
export { injectedConfig, getShopConfig };
|