@pisell/lowcode-renderer 1.0.102 → 1.0.104
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 +31 -64
- package/es/Render/index.d.ts +20 -0
- package/es/Render/index.js +145 -242
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/asyncToGenerator.js +28 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/defineProperty.js +14 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js +27 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js +15 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutPropertiesLoose.js +13 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPrimitive.js +16 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPropertyKey.js +11 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/typeof.js +12 -0
- package/es/api/index.js +11 -6
- package/es/api/report/URL.js +42 -71
- package/es/api/report/index.js +75 -111
- package/es/api/utils/index.js +5 -1
- package/es/appHelper/index.js +28 -26
- package/es/appHelper/others.js +10 -8
- package/es/config/index.d.ts +14 -0
- package/es/config/index.js +13 -14
- package/es/index.d.ts +3 -4
- package/es/index.js +8 -4
- package/lib/ReactRenderer/index.js +40 -75
- package/lib/Render/index.d.ts +20 -0
- package/lib/Render/index.js +152 -187
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/asyncToGenerator.js +29 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/defineProperty.js +14 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js +27 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js +15 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutPropertiesLoose.js +14 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPrimitive.js +16 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPropertyKey.js +11 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/typeof.js +18 -0
- package/lib/_virtual/rolldown_runtime.js +29 -0
- package/lib/api/index.js +8 -37
- package/lib/api/report/URL.js +40 -98
- package/lib/api/report/index.js +83 -115
- package/lib/api/utils/index.js +4 -23
- package/lib/appHelper/index.js +27 -58
- package/lib/appHelper/others.js +17 -48
- package/lib/config/index.d.ts +14 -0
- package/lib/config/index.js +21 -46
- package/lib/index.d.ts +3 -4
- package/lib/index.js +9 -41
- package/package.json +2 -2
- package/es/api/index.d.ts +0 -7
- package/es/api/report/index.d.ts +0 -5
- package/es/api/utils/index.d.ts +0 -2
- package/es/appHelper/others.d.ts +0 -1
- package/lib/api/index.d.ts +0 -7
- package/lib/api/report/index.d.ts +0 -5
- package/lib/api/utils/index.d.ts +0 -2
- package/lib/appHelper/others.d.ts +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/config/index.d.ts
|
|
2
|
+
type ShopConfigType = {
|
|
3
|
+
timezone: string;
|
|
4
|
+
id: number;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
type InjectedConfigType = {
|
|
8
|
+
shopConfig: ShopConfigType | (() => ShopConfigType);
|
|
9
|
+
account: any;
|
|
10
|
+
request: any;
|
|
11
|
+
};
|
|
12
|
+
declare const injectConfig: (context: InjectedConfigType) => void;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { injectConfig };
|
package/lib/config/index.js
CHANGED
|
@@ -1,50 +1,25 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
1
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
getShopConfig: () => getShopConfig,
|
|
24
|
-
injectConfig: () => injectConfig,
|
|
25
|
-
injectedConfig: () => injectedConfig
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(config_exports);
|
|
28
|
-
var injectedConfig = {};
|
|
29
|
-
var injectConfig = (context) => {
|
|
30
|
-
injectedConfig = context;
|
|
2
|
+
//#region src/config/index.ts
|
|
3
|
+
let injectedConfig = {};
|
|
4
|
+
const injectConfig = (context) => {
|
|
5
|
+
injectedConfig = context;
|
|
31
6
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
return injectedConfig.shopConfig;
|
|
7
|
+
const getShopConfig = () => {
|
|
8
|
+
if (typeof injectedConfig.shopConfig === "function") return injectedConfig.shopConfig();
|
|
9
|
+
return injectedConfig.shopConfig;
|
|
37
10
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
return injectedConfig.account;
|
|
11
|
+
const getAccount = () => {
|
|
12
|
+
if (typeof injectedConfig.account === "function") return injectedConfig.account();
|
|
13
|
+
return injectedConfig.account;
|
|
43
14
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.getAccount = getAccount;
|
|
18
|
+
exports.getShopConfig = getShopConfig;
|
|
19
|
+
exports.injectConfig = injectConfig;
|
|
20
|
+
Object.defineProperty(exports, 'injectedConfig', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return injectedConfig;
|
|
24
|
+
}
|
|
25
|
+
});
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Render from "./Render";
|
|
2
|
-
import { injectConfig } from "./config";
|
|
3
|
-
export { injectConfig };
|
|
4
|
-
export default Render;
|
|
1
|
+
import { Render } from "./Render/index.js";
|
|
2
|
+
import { injectConfig } from "./config/index.js";
|
|
3
|
+
export { Render as default, injectConfig };
|
package/lib/index.js
CHANGED
|
@@ -1,42 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
const require_index = require('./config/index.js');
|
|
3
|
+
const require_index$1 = require('./Render/index.js');
|
|
28
4
|
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
module.exports = __toCommonJS(src_exports);
|
|
36
|
-
var import_Render = __toESM(require("./Render"));
|
|
37
|
-
var import_config = require("./config");
|
|
38
|
-
var src_default = import_Render.default;
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
injectConfig
|
|
42
|
-
});
|
|
5
|
+
//#region src/index.tsx
|
|
6
|
+
var src_default = require_index$1.default;
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.default = src_default;
|
|
10
|
+
exports.injectConfig = require_index.injectConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/lowcode-renderer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.104",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@alifd/next": "^1.25.44",
|
|
22
22
|
"lodash-es": "^4.17.21",
|
|
23
23
|
"dayjs": "^1.11.9",
|
|
24
|
-
"@pisell/utils": "1.0.
|
|
24
|
+
"@pisell/utils": "1.0.57"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.9.0",
|
package/es/api/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
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_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
|
-
};
|
|
5
|
-
utils: {};
|
|
6
|
-
};
|
|
7
|
-
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_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";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
getReportList: (values: any, url: UrlItem) => Promise<any>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
package/es/api/utils/index.d.ts
DELETED
package/es/appHelper/others.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getTimezone: () => number;
|
package/lib/api/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
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_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
|
-
};
|
|
5
|
-
utils: {};
|
|
6
|
-
};
|
|
7
|
-
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_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";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
getReportList: (values: any, url: UrlItem) => Promise<any>;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
package/lib/api/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getTimezone: () => number;
|