@kissflow/lowcode-client-sdk 1.0.0-beta.3 → 1.0.0-beta.4
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/README.md +10 -13
- package/custom.build.js +3 -1
- package/dist/app.js +48 -0
- package/dist/base.js +171 -0
- package/dist/client.js +44 -0
- package/dist/component.js +35 -0
- package/dist/constants.js +40 -0
- package/dist/form.js +44 -0
- package/dist/formatter.js +54 -0
- package/dist/index.html +2 -2
- package/dist/index.js +7 -0
- package/dist/kflowcode.sdk.js +437 -278
- package/dist/kflowcode.sdk.js.map +1 -1
- package/dist/kflowcode.sdk.mjs +808 -0
- package/dist/kflowcode.sdk.mjs.map +1 -0
- package/dist/lowcode.sdk.js +56 -0
- package/dist/page.js +62 -0
- package/package.json +3 -2
- package/tsconfig.json +6 -17
- package/tsconfig.types.json +18 -0
- package/webpack.config.js +1 -1
package/dist/kflowcode.sdk.js
CHANGED
|
@@ -6,41 +6,56 @@
|
|
|
6
6
|
/*!********************!*\
|
|
7
7
|
!*** ./src/app.ts ***!
|
|
8
8
|
\********************/
|
|
9
|
-
/***/ ((__unused_webpack_module,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var __extends = (this && this.__extends) || (function () {
|
|
13
|
+
var extendStatics = function (d, b) {
|
|
14
|
+
extendStatics = Object.setPrototypeOf ||
|
|
15
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
16
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
17
|
+
return extendStatics(d, b);
|
|
18
|
+
};
|
|
19
|
+
return function (d, b) {
|
|
20
|
+
if (typeof b !== "function" && b !== null)
|
|
21
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
22
|
+
extendStatics(d, b);
|
|
23
|
+
function __() { this.constructor = d; }
|
|
24
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
28
|
+
exports.Application = void 0;
|
|
29
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
30
|
+
var page_1 = __webpack_require__(/*! ./page */ "./src/page.ts");
|
|
31
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
32
|
+
var Application = /** @class */ (function (_super) {
|
|
33
|
+
__extends(Application, _super);
|
|
34
|
+
function Application(props) {
|
|
35
|
+
var _this = _super.call(this, {}) || this;
|
|
36
|
+
_this.page = new page_1.Page({});
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
Application.prototype.getVariable = function (key) {
|
|
40
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.GET_APP_VARIABLE, {
|
|
41
|
+
key: key
|
|
29
42
|
});
|
|
30
|
-
}
|
|
31
|
-
setVariable(key, value) {
|
|
32
|
-
return this._postMessageAsync(
|
|
33
|
-
key,
|
|
34
|
-
value
|
|
43
|
+
};
|
|
44
|
+
Application.prototype.setVariable = function (key, value) {
|
|
45
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.SET_APP_VARIABLE, {
|
|
46
|
+
key: key,
|
|
47
|
+
value: value
|
|
35
48
|
});
|
|
36
|
-
}
|
|
37
|
-
openPage(pageId, pageParams) {
|
|
38
|
-
return
|
|
39
|
-
pageId,
|
|
40
|
-
pageParams
|
|
49
|
+
};
|
|
50
|
+
Application.prototype.openPage = function (pageId, pageParams) {
|
|
51
|
+
return _super.prototype._postMessageAsync.call(this, constants_1.LISTENER_CMDS.OPEN_PAGE, {
|
|
52
|
+
pageId: pageId,
|
|
53
|
+
pageParams: pageParams
|
|
41
54
|
});
|
|
42
|
-
}
|
|
43
|
-
|
|
55
|
+
};
|
|
56
|
+
return Application;
|
|
57
|
+
}(base_1.BaseSDK));
|
|
58
|
+
exports.Application = Application;
|
|
44
59
|
|
|
45
60
|
|
|
46
61
|
/***/ }),
|
|
@@ -49,14 +64,21 @@ class Application extends _base__WEBPACK_IMPORTED_MODULE_0__.BaseSDK {
|
|
|
49
64
|
/*!*********************!*\
|
|
50
65
|
!*** ./src/base.ts ***!
|
|
51
66
|
\*********************/
|
|
52
|
-
/***/ ((__unused_webpack_module,
|
|
67
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
53
68
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var
|
|
69
|
+
|
|
70
|
+
var __assign = (this && this.__assign) || function () {
|
|
71
|
+
__assign = Object.assign || function(t) {
|
|
72
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
73
|
+
s = arguments[i];
|
|
74
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
75
|
+
t[p] = s[p];
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
};
|
|
79
|
+
return __assign.apply(this, arguments);
|
|
80
|
+
};
|
|
81
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
60
82
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
61
83
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
62
84
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -65,22 +87,52 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
65
87
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
66
88
|
});
|
|
67
89
|
};
|
|
68
|
-
var
|
|
90
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
91
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
92
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
93
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
94
|
+
function step(op) {
|
|
95
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
96
|
+
while (_) try {
|
|
97
|
+
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;
|
|
98
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
99
|
+
switch (op[0]) {
|
|
100
|
+
case 0: case 1: t = op; break;
|
|
101
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
102
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
103
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
104
|
+
default:
|
|
105
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
106
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
107
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
108
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
109
|
+
if (t[2]) _.ops.pop();
|
|
110
|
+
_.trys.pop(); continue;
|
|
111
|
+
}
|
|
112
|
+
op = body.call(thisArg, _);
|
|
113
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
114
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
69
118
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
70
119
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
71
120
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
72
121
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
73
122
|
};
|
|
74
|
-
var __classPrivateFieldGet = (
|
|
123
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
75
124
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
76
125
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
77
126
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
78
127
|
};
|
|
79
128
|
var _BaseSDK_instances, _BaseSDK_listeners, _BaseSDK_eventListeners, _BaseSDK_addListener, _BaseSDK_appendEventListeners, _BaseSDK_checkEvents, _BaseSDK_onMessage;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
129
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
130
|
+
exports.BaseSDK = void 0;
|
|
131
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
132
|
+
var nanoid = (__webpack_require__(/*! nanoid */ "./node_modules/nanoid/index.dev.js").nanoid);
|
|
133
|
+
function generateId(prefix) {
|
|
134
|
+
if (prefix === void 0) { prefix = "lcncsdk"; }
|
|
135
|
+
return "".concat(prefix, "-").concat(nanoid());
|
|
84
136
|
}
|
|
85
137
|
function postMessage(args) {
|
|
86
138
|
console.log("SDK : @postMessage ", args);
|
|
@@ -91,8 +143,8 @@ function postMessage(args) {
|
|
|
91
143
|
self.postMessage(args);
|
|
92
144
|
}
|
|
93
145
|
}
|
|
94
|
-
|
|
95
|
-
|
|
146
|
+
var BaseSDK = /** @class */ (function () {
|
|
147
|
+
function BaseSDK(props) {
|
|
96
148
|
_BaseSDK_instances.add(this);
|
|
97
149
|
_BaseSDK_listeners.set(this, void 0);
|
|
98
150
|
_BaseSDK_eventListeners.set(this, void 0);
|
|
@@ -101,32 +153,45 @@ class BaseSDK {
|
|
|
101
153
|
__classPrivateFieldSet(this, _BaseSDK_eventListeners, {}, "f");
|
|
102
154
|
self.addEventListener("message", __classPrivateFieldGet(this, _BaseSDK_instances, "m", _BaseSDK_onMessage).bind(this), false);
|
|
103
155
|
}
|
|
104
|
-
_postMessageAsync(command, args, hasCallBack, callBack) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
156
|
+
BaseSDK.prototype._postMessageAsync = function (command, args, hasCallBack, callBack) {
|
|
157
|
+
var _this = this;
|
|
158
|
+
return new Promise(function (resolve, reject) {
|
|
159
|
+
var _id = generateId(command.toLowerCase());
|
|
160
|
+
postMessage(__assign({ _id: _id, command: command }, args));
|
|
161
|
+
__classPrivateFieldGet(_this, _BaseSDK_instances, "m", _BaseSDK_addListener).call(_this, _id, function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
switch (_a.label) {
|
|
164
|
+
case 0:
|
|
165
|
+
if (!data.errorMessage) return [3 /*break*/, 1];
|
|
166
|
+
reject(data);
|
|
167
|
+
return [3 /*break*/, 4];
|
|
168
|
+
case 1:
|
|
169
|
+
if (!(hasCallBack && callBack)) return [3 /*break*/, 3];
|
|
170
|
+
return [4 /*yield*/, callBack(data)];
|
|
171
|
+
case 2:
|
|
172
|
+
data = _a.sent();
|
|
173
|
+
_a.label = 3;
|
|
174
|
+
case 3:
|
|
175
|
+
resolve(data);
|
|
176
|
+
_a.label = 4;
|
|
177
|
+
case 4: return [2 /*return*/];
|
|
115
178
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}));
|
|
179
|
+
});
|
|
180
|
+
}); });
|
|
119
181
|
});
|
|
120
|
-
}
|
|
121
|
-
_postMessage(command, func, args
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
182
|
+
};
|
|
183
|
+
BaseSDK.prototype._postMessage = function (command, func, args) {
|
|
184
|
+
if (args === void 0) { args = {}; }
|
|
185
|
+
var _id = generateId(command.toLowerCase());
|
|
186
|
+
postMessage(__assign({ _id: _id, command: command }, args));
|
|
187
|
+
__classPrivateFieldGet(this, _BaseSDK_instances, "m", _BaseSDK_addListener).call(this, _id, function (data) { return func(data); });
|
|
188
|
+
};
|
|
189
|
+
BaseSDK.prototype._registerEventListener = function (_id, eventType, callback) {
|
|
127
190
|
__classPrivateFieldGet(this, _BaseSDK_instances, "m", _BaseSDK_appendEventListeners).call(this, _id, eventType, callback);
|
|
128
|
-
}
|
|
129
|
-
|
|
191
|
+
};
|
|
192
|
+
return BaseSDK;
|
|
193
|
+
}());
|
|
194
|
+
exports.BaseSDK = BaseSDK;
|
|
130
195
|
_BaseSDK_listeners = new WeakMap(), _BaseSDK_eventListeners = new WeakMap(), _BaseSDK_instances = new WeakSet(), _BaseSDK_addListener = function _BaseSDK_addListener(_id, callback) {
|
|
131
196
|
__classPrivateFieldGet(this, _BaseSDK_listeners, "f")[_id] = __classPrivateFieldGet(this, _BaseSDK_listeners, "f")[_id] || [];
|
|
132
197
|
__classPrivateFieldGet(this, _BaseSDK_listeners, "f")[_id].push(callback);
|
|
@@ -136,32 +201,32 @@ _BaseSDK_listeners = new WeakMap(), _BaseSDK_eventListeners = new WeakMap(), _Ba
|
|
|
136
201
|
}
|
|
137
202
|
__classPrivateFieldGet(this, _BaseSDK_eventListeners, "f")[_id][eventType] = callback;
|
|
138
203
|
}, _BaseSDK_checkEvents = function _BaseSDK_checkEvents(data) {
|
|
139
|
-
|
|
204
|
+
var _id = data._id, eventType = data.eventType, eventParams = data.eventParams;
|
|
140
205
|
if (!_id || !eventType)
|
|
141
206
|
return;
|
|
142
|
-
|
|
207
|
+
var eventListener = __classPrivateFieldGet(this, _BaseSDK_eventListeners, "f")[_id] || {};
|
|
143
208
|
if (eventListener[eventType]) {
|
|
144
209
|
eventListener[eventType](eventParams || {});
|
|
145
210
|
}
|
|
146
211
|
}, _BaseSDK_onMessage = function _BaseSDK_onMessage(event) {
|
|
147
212
|
if (event.origin !== self.location.origin) {
|
|
148
213
|
console.log("SDK : @onMessage ", event);
|
|
149
|
-
|
|
150
|
-
if (
|
|
151
|
-
return __classPrivateFieldGet(this, _BaseSDK_instances, "m", _BaseSDK_checkEvents).call(this,
|
|
214
|
+
var data_1 = event.data;
|
|
215
|
+
if (data_1.isEvent) {
|
|
216
|
+
return __classPrivateFieldGet(this, _BaseSDK_instances, "m", _BaseSDK_checkEvents).call(this, data_1);
|
|
152
217
|
}
|
|
153
|
-
|
|
154
|
-
|
|
218
|
+
var _req_1 = (data_1 === null || data_1 === void 0 ? void 0 : data_1._req) || {};
|
|
219
|
+
var listeners = __classPrivateFieldGet(this, _BaseSDK_listeners, "f")[_req_1 === null || _req_1 === void 0 ? void 0 : _req_1._id] || [];
|
|
155
220
|
if (listeners) {
|
|
156
|
-
listeners.forEach((listener)
|
|
221
|
+
listeners.forEach(function (listener) {
|
|
157
222
|
try {
|
|
158
|
-
if (
|
|
159
|
-
if (Object.keys(
|
|
160
|
-
|
|
161
|
-
listener(Object.values(
|
|
223
|
+
if (data_1.resp) {
|
|
224
|
+
if (Object.keys(data_1.resp).length === 1 &&
|
|
225
|
+
_req_1.command !== constants_1.LISTENER_CMDS.API) {
|
|
226
|
+
listener(Object.values(data_1.resp)[0]);
|
|
162
227
|
}
|
|
163
228
|
else {
|
|
164
|
-
listener(
|
|
229
|
+
listener(data_1.resp);
|
|
165
230
|
}
|
|
166
231
|
}
|
|
167
232
|
}
|
|
@@ -180,22 +245,38 @@ _BaseSDK_listeners = new WeakMap(), _BaseSDK_eventListeners = new WeakMap(), _Ba
|
|
|
180
245
|
/*!***********************!*\
|
|
181
246
|
!*** ./src/client.ts ***!
|
|
182
247
|
\***********************/
|
|
183
|
-
/***/ ((__unused_webpack_module,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
248
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
var __extends = (this && this.__extends) || (function () {
|
|
252
|
+
var extendStatics = function (d, b) {
|
|
253
|
+
extendStatics = Object.setPrototypeOf ||
|
|
254
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
255
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
256
|
+
return extendStatics(d, b);
|
|
257
|
+
};
|
|
258
|
+
return function (d, b) {
|
|
259
|
+
if (typeof b !== "function" && b !== null)
|
|
260
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
261
|
+
extendStatics(d, b);
|
|
262
|
+
function __() { this.constructor = d; }
|
|
263
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
264
|
+
};
|
|
265
|
+
})();
|
|
266
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
267
|
+
exports.Client = void 0;
|
|
268
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
269
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
270
|
+
var Client = /** @class */ (function (_super) {
|
|
271
|
+
__extends(Client, _super);
|
|
272
|
+
function Client() {
|
|
273
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
274
|
+
}
|
|
275
|
+
Client.prototype.showInfo = function (message) {
|
|
276
|
+
return _super.prototype._postMessageAsync.call(this, constants_1.LISTENER_CMDS.MESSAGE, { message: message });
|
|
277
|
+
};
|
|
278
|
+
Client.prototype.showConfirm = function (args) {
|
|
279
|
+
return _super.prototype._postMessageAsync.call(this, constants_1.LISTENER_CMDS.CONFIRM, {
|
|
199
280
|
data: {
|
|
200
281
|
title: args.title,
|
|
201
282
|
content: args.content,
|
|
@@ -203,11 +284,13 @@ class Client extends _base__WEBPACK_IMPORTED_MODULE_0__.BaseSDK {
|
|
|
203
284
|
cancelText: args.cancelText || "Cancel"
|
|
204
285
|
}
|
|
205
286
|
});
|
|
206
|
-
}
|
|
207
|
-
redirect(url) {
|
|
208
|
-
return
|
|
209
|
-
}
|
|
210
|
-
|
|
287
|
+
};
|
|
288
|
+
Client.prototype.redirect = function (url) {
|
|
289
|
+
return _super.prototype._postMessageAsync.call(this, constants_1.LISTENER_CMDS.REDIRECT, { url: url });
|
|
290
|
+
};
|
|
291
|
+
return Client;
|
|
292
|
+
}(base_1.BaseSDK));
|
|
293
|
+
exports.Client = Client;
|
|
211
294
|
|
|
212
295
|
|
|
213
296
|
/***/ }),
|
|
@@ -216,27 +299,43 @@ class Client extends _base__WEBPACK_IMPORTED_MODULE_0__.BaseSDK {
|
|
|
216
299
|
/*!**************************!*\
|
|
217
300
|
!*** ./src/component.ts ***!
|
|
218
301
|
\**************************/
|
|
219
|
-
/***/ ((__unused_webpack_module,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
302
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
var __extends = (this && this.__extends) || (function () {
|
|
306
|
+
var extendStatics = function (d, b) {
|
|
307
|
+
extendStatics = Object.setPrototypeOf ||
|
|
308
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
309
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
310
|
+
return extendStatics(d, b);
|
|
311
|
+
};
|
|
312
|
+
return function (d, b) {
|
|
313
|
+
if (typeof b !== "function" && b !== null)
|
|
314
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
315
|
+
extendStatics(d, b);
|
|
316
|
+
function __() { this.constructor = d; }
|
|
317
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
318
|
+
};
|
|
319
|
+
})();
|
|
320
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
321
|
+
exports.Component = void 0;
|
|
322
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
323
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
324
|
+
var Component = /** @class */ (function (_super) {
|
|
325
|
+
__extends(Component, _super);
|
|
326
|
+
function Component(id) {
|
|
327
|
+
var _this = _super.call(this, {}) || this;
|
|
328
|
+
_this.id = id;
|
|
329
|
+
return _this;
|
|
330
|
+
}
|
|
331
|
+
Component.prototype.refresh = function () {
|
|
332
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.COMPONENT_REFRESH, {
|
|
236
333
|
id: this.id
|
|
237
334
|
});
|
|
238
|
-
}
|
|
239
|
-
|
|
335
|
+
};
|
|
336
|
+
return Component;
|
|
337
|
+
}(base_1.BaseSDK));
|
|
338
|
+
exports.Component = Component;
|
|
240
339
|
|
|
241
340
|
|
|
242
341
|
/***/ }),
|
|
@@ -245,14 +344,12 @@ class Component extends _base__WEBPACK_IMPORTED_MODULE_0__.BaseSDK {
|
|
|
245
344
|
/*!**************************!*\
|
|
246
345
|
!*** ./src/constants.ts ***!
|
|
247
346
|
\**************************/
|
|
248
|
-
/***/ ((__unused_webpack_module,
|
|
347
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
249
348
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/* harmony export */ });
|
|
255
|
-
const LISTENER_CMDS = {
|
|
349
|
+
|
|
350
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
351
|
+
exports.EVENT_TYPES = exports.LISTENER_CMDS = void 0;
|
|
352
|
+
exports.LISTENER_CMDS = {
|
|
256
353
|
API: "API",
|
|
257
354
|
PARAMS: "PARAMS",
|
|
258
355
|
GET_CONTEXT: "GET_CONTEXT",
|
|
@@ -284,7 +381,7 @@ const LISTENER_CMDS = {
|
|
|
284
381
|
PAGE_ON_CLOSE: "PAGE_ON_CLOSE",
|
|
285
382
|
COMPONENT_REFRESH: "COMPONENT_REFRESH"
|
|
286
383
|
};
|
|
287
|
-
|
|
384
|
+
exports.EVENT_TYPES = {
|
|
288
385
|
ON_CLOSE: "onClose",
|
|
289
386
|
ON_CHANGE: "onChange",
|
|
290
387
|
ON_LOAD: "onLoad",
|
|
@@ -297,34 +394,52 @@ const EVENT_TYPES = {
|
|
|
297
394
|
/*!*********************!*\
|
|
298
395
|
!*** ./src/form.ts ***!
|
|
299
396
|
\*********************/
|
|
300
|
-
/***/ ((__unused_webpack_module,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
397
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
var __extends = (this && this.__extends) || (function () {
|
|
401
|
+
var extendStatics = function (d, b) {
|
|
402
|
+
extendStatics = Object.setPrototypeOf ||
|
|
403
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
404
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
405
|
+
return extendStatics(d, b);
|
|
406
|
+
};
|
|
407
|
+
return function (d, b) {
|
|
408
|
+
if (typeof b !== "function" && b !== null)
|
|
409
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
410
|
+
extendStatics(d, b);
|
|
411
|
+
function __() { this.constructor = d; }
|
|
412
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
413
|
+
};
|
|
414
|
+
})();
|
|
415
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
416
|
+
exports.Form = void 0;
|
|
417
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
418
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
419
|
+
var Form = /** @class */ (function (_super) {
|
|
420
|
+
__extends(Form, _super);
|
|
421
|
+
function Form() {
|
|
422
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
423
|
+
}
|
|
424
|
+
Form.prototype.getField = function (fieldId) {
|
|
425
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.GET_FORM_FIELD, {
|
|
426
|
+
fieldId: fieldId
|
|
314
427
|
});
|
|
315
|
-
}
|
|
316
|
-
updateField(args) {
|
|
317
|
-
return this._postMessageAsync(
|
|
428
|
+
};
|
|
429
|
+
Form.prototype.updateField = function (args) {
|
|
430
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.UPDATE_FORM, {
|
|
318
431
|
data: args
|
|
319
432
|
});
|
|
320
|
-
}
|
|
321
|
-
addTableRow(tableId, rowObject) {
|
|
322
|
-
return this._postMessageAsync(
|
|
323
|
-
tableId,
|
|
324
|
-
rowObject
|
|
433
|
+
};
|
|
434
|
+
Form.prototype.addTableRow = function (tableId, rowObject) {
|
|
435
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.ADD_TABLE_ROW, {
|
|
436
|
+
tableId: tableId,
|
|
437
|
+
rowObject: rowObject
|
|
325
438
|
});
|
|
326
|
-
}
|
|
327
|
-
|
|
439
|
+
};
|
|
440
|
+
return Form;
|
|
441
|
+
}(base_1.BaseSDK));
|
|
442
|
+
exports.Form = Form;
|
|
328
443
|
|
|
329
444
|
|
|
330
445
|
/***/ }),
|
|
@@ -333,44 +448,62 @@ class Form extends _base__WEBPACK_IMPORTED_MODULE_0__.BaseSDK {
|
|
|
333
448
|
/*!**************************!*\
|
|
334
449
|
!*** ./src/formatter.ts ***!
|
|
335
450
|
\**************************/
|
|
336
|
-
/***/ ((__unused_webpack_module,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
451
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
var __extends = (this && this.__extends) || (function () {
|
|
455
|
+
var extendStatics = function (d, b) {
|
|
456
|
+
extendStatics = Object.setPrototypeOf ||
|
|
457
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
458
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
459
|
+
return extendStatics(d, b);
|
|
460
|
+
};
|
|
461
|
+
return function (d, b) {
|
|
462
|
+
if (typeof b !== "function" && b !== null)
|
|
463
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
464
|
+
extendStatics(d, b);
|
|
465
|
+
function __() { this.constructor = d; }
|
|
466
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
467
|
+
};
|
|
468
|
+
})();
|
|
469
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
470
|
+
exports.Formatter = void 0;
|
|
471
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
472
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
473
|
+
var Formatter = /** @class */ (function (_super) {
|
|
474
|
+
__extends(Formatter, _super);
|
|
475
|
+
function Formatter() {
|
|
476
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
477
|
+
}
|
|
478
|
+
Formatter.prototype.toKfDate = function (date) {
|
|
479
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.FORMAT_DATE, {
|
|
480
|
+
date: date,
|
|
350
481
|
});
|
|
351
|
-
}
|
|
352
|
-
toKfDateTime(date) {
|
|
353
|
-
return this._postMessageAsync(
|
|
354
|
-
date,
|
|
482
|
+
};
|
|
483
|
+
Formatter.prototype.toKfDateTime = function (date) {
|
|
484
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.FORMAT_DATE_TIME, {
|
|
485
|
+
date: date,
|
|
355
486
|
});
|
|
356
|
-
}
|
|
357
|
-
toKfNumber(value) {
|
|
358
|
-
return this._postMessageAsync(
|
|
359
|
-
value,
|
|
487
|
+
};
|
|
488
|
+
Formatter.prototype.toKfNumber = function (value) {
|
|
489
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.FORMAT_NUMBER, {
|
|
490
|
+
value: value,
|
|
360
491
|
});
|
|
361
|
-
}
|
|
362
|
-
toKfCurrency(value, currencyCode) {
|
|
363
|
-
return this._postMessageAsync(
|
|
364
|
-
value,
|
|
365
|
-
currencyCode,
|
|
492
|
+
};
|
|
493
|
+
Formatter.prototype.toKfCurrency = function (value, currencyCode) {
|
|
494
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.FORMAT_CURRENCY, {
|
|
495
|
+
value: value,
|
|
496
|
+
currencyCode: currencyCode,
|
|
366
497
|
});
|
|
367
|
-
}
|
|
368
|
-
toBoolean(value) {
|
|
369
|
-
return this._postMessageAsync(
|
|
370
|
-
value
|
|
498
|
+
};
|
|
499
|
+
Formatter.prototype.toBoolean = function (value) {
|
|
500
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.FORMAT_BOOLEAN, {
|
|
501
|
+
value: value
|
|
371
502
|
});
|
|
372
|
-
}
|
|
373
|
-
|
|
503
|
+
};
|
|
504
|
+
return Formatter;
|
|
505
|
+
}(base_1.BaseSDK));
|
|
506
|
+
exports.Formatter = Formatter;
|
|
374
507
|
|
|
375
508
|
|
|
376
509
|
/***/ }),
|
|
@@ -379,52 +512,64 @@ class Formatter extends _base__WEBPACK_IMPORTED_MODULE_0__.BaseSDK {
|
|
|
379
512
|
/*!****************************!*\
|
|
380
513
|
!*** ./src/lowcode.sdk.ts ***!
|
|
381
514
|
\****************************/
|
|
382
|
-
/***/ ((__unused_webpack_module,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
return
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
|
|
515
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
var __extends = (this && this.__extends) || (function () {
|
|
519
|
+
var extendStatics = function (d, b) {
|
|
520
|
+
extendStatics = Object.setPrototypeOf ||
|
|
521
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
522
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
523
|
+
return extendStatics(d, b);
|
|
524
|
+
};
|
|
525
|
+
return function (d, b) {
|
|
526
|
+
if (typeof b !== "function" && b !== null)
|
|
527
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
528
|
+
extendStatics(d, b);
|
|
529
|
+
function __() { this.constructor = d; }
|
|
530
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
531
|
+
};
|
|
532
|
+
})();
|
|
533
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
534
|
+
exports.LowcodeSDK = void 0;
|
|
535
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
536
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
537
|
+
var form_1 = __webpack_require__(/*! ./form */ "./src/form.ts");
|
|
538
|
+
var client_1 = __webpack_require__(/*! ./client */ "./src/client.ts");
|
|
539
|
+
var formatter_1 = __webpack_require__(/*! ./formatter */ "./src/formatter.ts");
|
|
540
|
+
var app_1 = __webpack_require__(/*! ./app */ "./src/app.ts");
|
|
541
|
+
var component_1 = __webpack_require__(/*! ./component */ "./src/component.ts");
|
|
542
|
+
var LowcodeSDK = /** @class */ (function (_super) {
|
|
543
|
+
__extends(LowcodeSDK, _super);
|
|
544
|
+
function LowcodeSDK(props) {
|
|
545
|
+
var _this = _super.call(this, {}) || this;
|
|
546
|
+
_this.currentForm = new form_1.Form({});
|
|
547
|
+
_this.client = new client_1.Client({});
|
|
548
|
+
_this.formatter = new formatter_1.Formatter({});
|
|
549
|
+
_this.app = new app_1.Application({});
|
|
550
|
+
return _this;
|
|
551
|
+
}
|
|
552
|
+
LowcodeSDK.prototype.api = function (url, args) {
|
|
553
|
+
if (args === void 0) { args = {}; }
|
|
554
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.API, { url: url, args: args });
|
|
555
|
+
};
|
|
556
|
+
LowcodeSDK.prototype.watchParams = function (func) {
|
|
557
|
+
this._postMessage(constants_1.LISTENER_CMDS.PARAMS, func);
|
|
558
|
+
};
|
|
559
|
+
LowcodeSDK.prototype.getContext = function () {
|
|
560
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.GET_CONTEXT, {});
|
|
561
|
+
};
|
|
562
|
+
LowcodeSDK.prototype.getComponent = function (componentId) {
|
|
563
|
+
return new component_1.Component(componentId);
|
|
564
|
+
};
|
|
565
|
+
return LowcodeSDK;
|
|
566
|
+
}(base_1.BaseSDK));
|
|
567
|
+
exports.LowcodeSDK = LowcodeSDK;
|
|
568
|
+
function initSDK(config) {
|
|
569
|
+
if (config === void 0) { config = {}; }
|
|
425
570
|
return new LowcodeSDK(config);
|
|
426
571
|
}
|
|
427
|
-
|
|
572
|
+
exports["default"] = initSDK;
|
|
428
573
|
|
|
429
574
|
|
|
430
575
|
/***/ }),
|
|
@@ -433,54 +578,70 @@ function initSDK(config = {}) {
|
|
|
433
578
|
/*!*********************!*\
|
|
434
579
|
!*** ./src/page.ts ***!
|
|
435
580
|
\*********************/
|
|
436
|
-
/***/ ((__unused_webpack_module,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
581
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
var __extends = (this && this.__extends) || (function () {
|
|
585
|
+
var extendStatics = function (d, b) {
|
|
586
|
+
extendStatics = Object.setPrototypeOf ||
|
|
587
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
588
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
589
|
+
return extendStatics(d, b);
|
|
590
|
+
};
|
|
591
|
+
return function (d, b) {
|
|
592
|
+
if (typeof b !== "function" && b !== null)
|
|
593
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
594
|
+
extendStatics(d, b);
|
|
595
|
+
function __() { this.constructor = d; }
|
|
596
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
597
|
+
};
|
|
598
|
+
})();
|
|
599
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
600
|
+
exports.Page = void 0;
|
|
601
|
+
var base_1 = __webpack_require__(/*! ./base */ "./src/base.ts");
|
|
602
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "./src/constants.ts");
|
|
603
|
+
var Page = /** @class */ (function (_super) {
|
|
604
|
+
__extends(Page, _super);
|
|
605
|
+
function Page(pageId) {
|
|
606
|
+
var _this = _super.call(this, {}) || this;
|
|
607
|
+
_this._id = pageId;
|
|
608
|
+
return _this;
|
|
609
|
+
}
|
|
610
|
+
Page.prototype.getParameter = function (key) {
|
|
611
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.GET_PAGE_PARAMS, {
|
|
612
|
+
key: key
|
|
454
613
|
});
|
|
455
|
-
}
|
|
456
|
-
getVariable(key) {
|
|
457
|
-
return this._postMessageAsync(
|
|
458
|
-
key
|
|
614
|
+
};
|
|
615
|
+
Page.prototype.getVariable = function (key) {
|
|
616
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.GET_PAGE_VARIABLE, {
|
|
617
|
+
key: key
|
|
459
618
|
});
|
|
460
|
-
}
|
|
461
|
-
setVariable(key, value) {
|
|
462
|
-
return this._postMessageAsync(
|
|
463
|
-
key,
|
|
464
|
-
value
|
|
619
|
+
};
|
|
620
|
+
Page.prototype.setVariable = function (key, value) {
|
|
621
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.SET_PAGE_VARIABLE, {
|
|
622
|
+
key: key,
|
|
623
|
+
value: value
|
|
465
624
|
});
|
|
466
|
-
}
|
|
467
|
-
openPopup(pageId, inputParams, popupProperties) {
|
|
468
|
-
|
|
469
|
-
pageId,
|
|
470
|
-
inputParams,
|
|
625
|
+
};
|
|
626
|
+
Page.prototype.openPopup = function (pageId, inputParams, popupProperties) {
|
|
627
|
+
var payload = {
|
|
628
|
+
pageId: pageId,
|
|
629
|
+
inputParams: inputParams,
|
|
471
630
|
popupProperties: {
|
|
472
631
|
width: popupProperties.w,
|
|
473
632
|
height: popupProperties.h
|
|
474
633
|
}
|
|
475
634
|
};
|
|
476
|
-
return this._postMessageAsync(
|
|
635
|
+
return this._postMessageAsync(constants_1.LISTENER_CMDS.OPEN_POPUP_PAGE, payload, true, function () {
|
|
477
636
|
return new Page(pageId);
|
|
478
637
|
});
|
|
479
|
-
}
|
|
480
|
-
onClose(callback) {
|
|
481
|
-
this._registerEventListener(this._id,
|
|
482
|
-
}
|
|
483
|
-
|
|
638
|
+
};
|
|
639
|
+
Page.prototype.onClose = function (callback) {
|
|
640
|
+
this._registerEventListener(this._id, constants_1.EVENT_TYPES.ON_CLOSE, callback);
|
|
641
|
+
};
|
|
642
|
+
return Page;
|
|
643
|
+
}(base_1.BaseSDK));
|
|
644
|
+
exports.Page = Page;
|
|
484
645
|
|
|
485
646
|
|
|
486
647
|
/***/ }),
|
|
@@ -603,7 +764,7 @@ let urlAlphabet =
|
|
|
603
764
|
/******/ };
|
|
604
765
|
/******/
|
|
605
766
|
/******/ // Execute the module function
|
|
606
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
767
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
607
768
|
/******/
|
|
608
769
|
/******/ // Return the exports of the module
|
|
609
770
|
/******/ return module.exports;
|
|
@@ -642,19 +803,17 @@ let urlAlphabet =
|
|
|
642
803
|
var __webpack_exports__ = {};
|
|
643
804
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
644
805
|
(() => {
|
|
806
|
+
var exports = __webpack_exports__;
|
|
645
807
|
/*!**********************!*\
|
|
646
808
|
!*** ./src/index.ts ***!
|
|
647
809
|
\**********************/
|
|
648
|
-
__webpack_require__.r(__webpack_exports__);
|
|
649
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
650
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
651
|
-
/* harmony export */ });
|
|
652
|
-
/* harmony import */ var _lowcode_sdk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lowcode.sdk */ "./src/lowcode.sdk.ts");
|
|
653
810
|
|
|
811
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
812
|
+
var lowcode_sdk_1 = __webpack_require__(/*! ./lowcode.sdk */ "./src/lowcode.sdk.ts");
|
|
654
813
|
if (true) {
|
|
655
|
-
self.kf =
|
|
814
|
+
self.kf = lowcode_sdk_1.default;
|
|
656
815
|
}
|
|
657
|
-
|
|
816
|
+
exports["default"] = lowcode_sdk_1.default;
|
|
658
817
|
|
|
659
818
|
})();
|
|
660
819
|
|