Skip to content

Commit 1170d69

Browse files
committed
pull from dev
2 parents 853ac34 + 715ff05 commit 1170d69

File tree

1,588 files changed

+1163512
-8218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,588 files changed

+1163512
-8218
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ application-dev-localhost.yaml
1616
.vscode/settings.json
1717
.vscode/launch.json
1818
server/api-service/lowcoder-server/src/main/resources/application-local-dev.yaml
19+
translations/locales/node_modules/

client/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-root",
3-
"version": "2.3.1",
3+
"version": "2.4.5",
44
"type": "module",
55
"private": true,
66
"workspaces": [
@@ -80,7 +80,6 @@
8080
"chalk": "4",
8181
"flag-icons": "^7.2.1",
8282
"number-precision": "^1.6.0",
83-
"posthog-js": "^1.155.4",
8483
"react-countup": "^6.5.3",
8584
"react-player": "^2.11.0",
8685
"resize-observer-polyfill": "^1.5.1",

client/packages/lowcoder-cli/config/vite.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default defineConfig({
2727
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json"],
2828
},
2929
build: {
30-
target: "es2015",
31-
cssTarget: "chrome63",
30+
target: "es2020",
31+
cssTarget: "chrome87",
3232
outDir: paths.appOutPath,
3333
emptyOutDir: true,
3434
lib: {

client/packages/lowcoder-comps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-comps",
3-
"version": "2.4.13",
3+
"version": "2.4.16",
44
"type": "module",
55
"license": "MIT",
66
"dependencies": {

client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ let childrenMap: any = {
9696
currentFreeView: dropdownControl(DefaultWithFreeViewOptions, "timeGridWeek"),
9797
currentPremiumView: dropdownControl(DefaultWithPremiumViewOptions, "resourceTimelineDay"),
9898
animationStyle: styleControl(AnimationStyle, 'animationStyle'),
99-
modalStyle: styleControl(EventModalStyle),
10099
};
101100
// this should ensure backwards compatibility with older versions of the SDK
102101
if (DragEventHandlerControl) {
@@ -105,6 +104,13 @@ if (DragEventHandlerControl) {
105104
onDropEvent: DragEventHandlerControl,
106105
}
107106
}
107+
if (EventModalStyle) {
108+
childrenMap = {
109+
...childrenMap,
110+
modalStyle: styleControl(EventModalStyle),
111+
}
112+
}
113+
108114
let CalendarBasicComp = (function () {
109115
return new UICompBuilder(childrenMap, (props: {
110116
events: any;
@@ -795,9 +801,11 @@ let CalendarBasicComp = (function () {
795801
{children.style.getPropertyView()}
796802
</Section>
797803
<Section name={sectionNames.animationStyle} hasTooltip={true}>{children.animationStyle.getPropertyView()}</Section>
798-
<Section name={sectionNames.modalStyle}>
799-
{children.modalStyle.getPropertyView()}
800-
</Section>
804+
{Boolean(children.modalStyle) && (
805+
<Section name={sectionNames.modalStyle}>
806+
{children.modalStyle.getPropertyView()}
807+
</Section>
808+
)}
801809
</>
802810
);
803811
})

client/packages/lowcoder-comps/src/comps/calendarComp/calendarConstants.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ export const Event = styled.div<{
768768

769769

770770
export const FormWrapper = styled(Form)<{
771-
$modalStyle: EventModalStyleType
771+
$modalStyle?: EventModalStyleType
772772
}>`
773773
.ant-form-item-label {
774774
width: 125px;
@@ -789,11 +789,11 @@ export const FormWrapper = styled(Form)<{
789789
790790
// Setting style for input fields
791791
.ant-input {
792-
background-color: ${(props) => props.$modalStyle.labelBackground };
793-
border-color: ${(props) => props.$modalStyle.border};
794-
border-width: ${(props) => props.$modalStyle.borderWidth};
795-
border-style: ${(props) => props.$modalStyle.borderStyle};
796-
color: ${(props) => props.$modalStyle.text};
792+
background-color: ${(props) => props.$modalStyle?.labelBackground };
793+
border-color: ${(props) => props.$modalStyle?.border};
794+
border-width: ${(props) => props.$modalStyle?.borderWidth};
795+
border-style: ${(props) => props.$modalStyle?.borderStyle};
796+
color: ${(props) => props.$modalStyle?.text};
797797
}
798798
799799
`;

client/packages/lowcoder-core/lib/index.cjs

Lines changed: 114 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -9,118 +9,120 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
99

1010
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
1111

12-
/******************************************************************************
13-
Copyright (c) Microsoft Corporation.
14-
15-
Permission to use, copy, modify, and/or distribute this software for any
16-
purpose with or without fee is hereby granted.
17-
18-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24-
PERFORMANCE OF THIS SOFTWARE.
25-
***************************************************************************** */
26-
/* global Reflect, Promise, SuppressedError, Symbol */
27-
28-
var extendStatics = function(d, b) {
29-
extendStatics = Object.setPrototypeOf ||
30-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
32-
return extendStatics(d, b);
33-
};
34-
35-
function __extends(d, b) {
36-
if (typeof b !== "function" && b !== null)
37-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
38-
extendStatics(d, b);
39-
function __() { this.constructor = d; }
40-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41-
}
42-
43-
var __assign = function() {
44-
__assign = Object.assign || function __assign(t) {
45-
for (var s, i = 1, n = arguments.length; i < n; i++) {
46-
s = arguments[i];
47-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48-
}
49-
return t;
50-
};
51-
return __assign.apply(this, arguments);
52-
};
53-
54-
function __rest(s, e) {
55-
var t = {};
56-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
57-
t[p] = s[p];
58-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
59-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
60-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
61-
t[p[i]] = s[p[i]];
62-
}
63-
return t;
64-
}
65-
66-
function __decorate(decorators, target, key, desc) {
67-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
68-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
69-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
70-
return c > 3 && r && Object.defineProperty(target, key, r), r;
71-
}
72-
73-
function __awaiter(thisArg, _arguments, P, generator) {
74-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
75-
return new (P || (P = Promise))(function (resolve, reject) {
76-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
77-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
78-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
79-
step((generator = generator.apply(thisArg, _arguments || [])).next());
80-
});
81-
}
82-
83-
function __generator(thisArg, body) {
84-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
85-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
86-
function verb(n) { return function (v) { return step([n, v]); }; }
87-
function step(op) {
88-
if (f) throw new TypeError("Generator is already executing.");
89-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
90-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
91-
if (y = 0, t) op = [op[0] & 2, t.value];
92-
switch (op[0]) {
93-
case 0: case 1: t = op; break;
94-
case 4: _.label++; return { value: op[1], done: false };
95-
case 5: _.label++; y = op[1]; op = [0]; continue;
96-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
97-
default:
98-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
99-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
100-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
101-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
102-
if (t[2]) _.ops.pop();
103-
_.trys.pop(); continue;
104-
}
105-
op = body.call(thisArg, _);
106-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
107-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
108-
}
109-
}
110-
111-
function __spreadArray(to, from, pack) {
112-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
113-
if (ar || !(i in from)) {
114-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
115-
ar[i] = from[i];
116-
}
117-
}
118-
return to.concat(ar || Array.prototype.slice.call(from));
119-
}
120-
121-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
122-
var e = new Error(message);
123-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
12+
/******************************************************************************
13+
Copyright (c) Microsoft Corporation.
14+
15+
Permission to use, copy, modify, and/or distribute this software for any
16+
purpose with or without fee is hereby granted.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24+
PERFORMANCE OF THIS SOFTWARE.
25+
***************************************************************************** */
26+
/* global Reflect, Promise, SuppressedError, Symbol */
27+
28+
// https://github.com/microsoft/tslib
29+
30+
var extendStatics = function(d, b) {
31+
extendStatics = Object.setPrototypeOf ||
32+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
34+
return extendStatics(d, b);
35+
};
36+
37+
function __extends(d, b) {
38+
if (typeof b !== "function" && b !== null)
39+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
40+
extendStatics(d, b);
41+
function __() { this.constructor = d; }
42+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43+
}
44+
45+
var __assign = function() {
46+
__assign = Object.assign || function __assign(t) {
47+
for (var s, i = 1, n = arguments.length; i < n; i++) {
48+
s = arguments[i];
49+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50+
}
51+
return t;
52+
};
53+
return __assign.apply(this, arguments);
54+
};
55+
56+
function __rest(s, e) {
57+
var t = {};
58+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
59+
t[p] = s[p];
60+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
61+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
62+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
63+
t[p[i]] = s[p[i]];
64+
}
65+
return t;
66+
}
67+
68+
function __decorate(decorators, target, key, desc) {
69+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
70+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
71+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
72+
return c > 3 && r && Object.defineProperty(target, key, r), r;
73+
}
74+
75+
function __awaiter(thisArg, _arguments, P, generator) {
76+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
77+
return new (P || (P = Promise))(function (resolve, reject) {
78+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
79+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
80+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
81+
step((generator = generator.apply(thisArg, _arguments || [])).next());
82+
});
83+
}
84+
85+
function __generator(thisArg, body) {
86+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
87+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
88+
function verb(n) { return function (v) { return step([n, v]); }; }
89+
function step(op) {
90+
if (f) throw new TypeError("Generator is already executing.");
91+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
92+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
93+
if (y = 0, t) op = [op[0] & 2, t.value];
94+
switch (op[0]) {
95+
case 0: case 1: t = op; break;
96+
case 4: _.label++; return { value: op[1], done: false };
97+
case 5: _.label++; y = op[1]; op = [0]; continue;
98+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
99+
default:
100+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
101+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
102+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
103+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
104+
if (t[2]) _.ops.pop();
105+
_.trys.pop(); continue;
106+
}
107+
op = body.call(thisArg, _);
108+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
109+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
110+
}
111+
}
112+
113+
function __spreadArray(to, from, pack) {
114+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
115+
if (ar || !(i in from)) {
116+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
117+
ar[i] = from[i];
118+
}
119+
}
120+
return to.concat(ar || Array.prototype.slice.call(from));
121+
}
122+
123+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
124+
var e = new Error(message);
125+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
124126
};
125127

126128
function isEqualArgs(args, cacheArgs, equals) {

client/packages/lowcoder-core/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ PERFORMANCE OF THIS SOFTWARE.
1717
***************************************************************************** */
1818
/* global Reflect, Promise, SuppressedError, Symbol */
1919

20+
// https://github.com/microsoft/tslib
21+
2022
var extendStatics = function(d, b) {
2123
extendStatics = Object.setPrototypeOf ||
2224
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||

client/packages/lowcoder-design/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"react-virtualized": "^9.22.3",
1414
"rehype-raw": "^6.1.1",
1515
"rehype-sanitize": "^5.0.1",
16-
"remark-gfm": "^3.0.1",
16+
"remark-gfm": "^4.0.0",
1717
"simplebar": "^6.2.5",
1818
"simplebar-react": "^3.2.4"
1919
},

client/packages/lowcoder-design/src/components/CustomModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ModalWrapper = styled.div<ModalWrapperProps>`
2525
flex-direction: column;
2626
width: ${(props) => (props.$width ? props.$width : "368px")};
2727
height: fit-content;
28-
background:${(props) => props.$customStyles?.backgroundColor}; ;
28+
background:${(props) => props.$customStyles?.backgroundColor || '#ffffff'};
2929
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
3030
border-radius: 8px;
3131
padding: 0 0 16px;

0 commit comments

Comments
 (0)