@ws-ui/shared 0.2.0-beta.20240712.1 → 0.2.0-beta.20240726.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +78 -72
- package/dist/index.es.js.map +1 -1
- package/dist/utils/datasources.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12966,15 +12966,20 @@ function XA() {
|
|
|
12966
12966
|
window.addEventListener("bundle:ready", (n) => n.data ? e() : r(n.caughtErr));
|
|
12967
12967
|
});
|
|
12968
12968
|
}
|
|
12969
|
+
function JA() {
|
|
12970
|
+
return new Promise((e) => {
|
|
12971
|
+
window.addEventListener("i18n:ready", () => e());
|
|
12972
|
+
});
|
|
12973
|
+
}
|
|
12969
12974
|
var os = /* @__PURE__ */ ((e) => (e.capable = "capable", e.incapable = "incapable", e.indifferent = "indifferent", e))(os || {}), IP = /* @__PURE__ */ ((e) => (e.soap = "soap", e.web = "web", e.sql = "sql", e.rest = "rest", e))(IP || {}), pm = /* @__PURE__ */ ((e) => (e.table = "table", e.catalog = "catalog", e.currentRecord = "currentRecord", e.currentSelection = "currentSelection", e))(pm || {});
|
|
12970
|
-
const
|
|
12975
|
+
const ZA = {
|
|
12971
12976
|
publishedSoap: "soap",
|
|
12972
12977
|
publishedWeb: "web",
|
|
12973
12978
|
publishedSql: "sql",
|
|
12974
12979
|
publishedRest: "rest"
|
|
12975
12980
|
/* rest */
|
|
12976
12981
|
};
|
|
12977
|
-
function
|
|
12982
|
+
function QA(e) {
|
|
12978
12983
|
var u;
|
|
12979
12984
|
let r = {};
|
|
12980
12985
|
try {
|
|
@@ -13006,7 +13011,7 @@ function LP(e) {
|
|
|
13006
13011
|
const r = {};
|
|
13007
13012
|
return e.invisible && (r.invisible = !0), e.shared && (r.shared = !0), e.executedOnServer && (r.executedOnServer = !0), e.preemptive && [os.capable, os.incapable].includes(e.preemptive) && (r.preemptive = e.preemptive), e.publishedSoap && (r.publishedSoap = !0, e.publishedWsdl && (r.publishedWsdl = !0)), e.publishedWeb && (r.publishedWeb = !0), e.publishedSql && (r.publishedSql = !0), e.publishedRest && e.publishedRestOptions && (r.published4DMobile = e.publishedRestOptions), JSON.stringify(r).replace(/"(true|false)"/g, "$1");
|
|
13008
13013
|
}
|
|
13009
|
-
function
|
|
13014
|
+
function e2(e, r, n = !1) {
|
|
13010
13015
|
const o = wt.isString(r) ? r : LP(r);
|
|
13011
13016
|
if (!n && MP(e))
|
|
13012
13017
|
return e;
|
|
@@ -13020,8 +13025,8 @@ function MP(e) {
|
|
|
13020
13025
|
function DP(e) {
|
|
13021
13026
|
return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g, "");
|
|
13022
13027
|
}
|
|
13023
|
-
const
|
|
13024
|
-
function
|
|
13028
|
+
const t2 = () => iv.uuid().replaceAll("-", "").toUpperCase(), St = "/rest/$designer", _s = "/rest/$designer-ext", as = "/$shared";
|
|
13029
|
+
function n2(...e) {
|
|
13025
13030
|
return (r) => {
|
|
13026
13031
|
if (e.length === 0)
|
|
13027
13032
|
return r;
|
|
@@ -13053,7 +13058,7 @@ async function ze(e, r) {
|
|
|
13053
13058
|
}
|
|
13054
13059
|
return await n.json();
|
|
13055
13060
|
}
|
|
13056
|
-
function
|
|
13061
|
+
function r2(e) {
|
|
13057
13062
|
return ze(_s, {
|
|
13058
13063
|
method: "POST",
|
|
13059
13064
|
body: JSON.stringify(e),
|
|
@@ -13062,7 +13067,7 @@ function n2(e) {
|
|
|
13062
13067
|
})
|
|
13063
13068
|
});
|
|
13064
13069
|
}
|
|
13065
|
-
function
|
|
13070
|
+
function i2(e) {
|
|
13066
13071
|
return ze(_s, {
|
|
13067
13072
|
method: "POST",
|
|
13068
13073
|
body: JSON.stringify(e),
|
|
@@ -13086,7 +13091,7 @@ const kP = () => {
|
|
|
13086
13091
|
isRestActive: !0
|
|
13087
13092
|
};
|
|
13088
13093
|
};
|
|
13089
|
-
async function
|
|
13094
|
+
async function o2() {
|
|
13090
13095
|
const { hostname: e, host: r, protocol: n } = window.location, o = n === "https:";
|
|
13091
13096
|
try {
|
|
13092
13097
|
const a = await ze(St, {
|
|
@@ -13128,7 +13133,7 @@ async function NP(e) {
|
|
|
13128
13133
|
})
|
|
13129
13134
|
});
|
|
13130
13135
|
}
|
|
13131
|
-
async function
|
|
13136
|
+
async function a2(...e) {
|
|
13132
13137
|
return (await Promise.all(
|
|
13133
13138
|
e.map(
|
|
13134
13139
|
(o) => NP({
|
|
@@ -13145,12 +13150,12 @@ async function o2(...e) {
|
|
|
13145
13150
|
}))
|
|
13146
13151
|
).flat();
|
|
13147
13152
|
}
|
|
13148
|
-
function
|
|
13153
|
+
function s2(e) {
|
|
13149
13154
|
return ze(`/rest/$getWebForm/${e}`, {
|
|
13150
13155
|
method: "GET"
|
|
13151
13156
|
});
|
|
13152
13157
|
}
|
|
13153
|
-
function
|
|
13158
|
+
function u2(e) {
|
|
13154
13159
|
return ze(St, {
|
|
13155
13160
|
method: "POST",
|
|
13156
13161
|
headers: new Headers({
|
|
@@ -13164,7 +13169,7 @@ function s2(e) {
|
|
|
13164
13169
|
) ? pc(r.content) : r.content
|
|
13165
13170
|
}));
|
|
13166
13171
|
}
|
|
13167
|
-
function
|
|
13172
|
+
function l2(e) {
|
|
13168
13173
|
return e.type === "folder" ? ze(_s, {
|
|
13169
13174
|
method: "POST",
|
|
13170
13175
|
body: JSON.stringify(e),
|
|
@@ -13179,7 +13184,7 @@ function u2(e) {
|
|
|
13179
13184
|
})
|
|
13180
13185
|
});
|
|
13181
13186
|
}
|
|
13182
|
-
async function
|
|
13187
|
+
async function c2(e) {
|
|
13183
13188
|
return e.type === "folder" ? (await ze(_s, {
|
|
13184
13189
|
method: "POST",
|
|
13185
13190
|
body: JSON.stringify(e),
|
|
@@ -13194,7 +13199,7 @@ async function l2(e) {
|
|
|
13194
13199
|
})
|
|
13195
13200
|
})).deleted;
|
|
13196
13201
|
}
|
|
13197
|
-
function
|
|
13202
|
+
function f2(e) {
|
|
13198
13203
|
return ze(St, {
|
|
13199
13204
|
method: "POST",
|
|
13200
13205
|
body: JSON.stringify(e),
|
|
@@ -13203,7 +13208,7 @@ function c2(e) {
|
|
|
13203
13208
|
})
|
|
13204
13209
|
});
|
|
13205
13210
|
}
|
|
13206
|
-
function
|
|
13211
|
+
function d2(e) {
|
|
13207
13212
|
return ze(St, {
|
|
13208
13213
|
method: "POST",
|
|
13209
13214
|
body: JSON.stringify(e),
|
|
@@ -13212,7 +13217,7 @@ function f2(e) {
|
|
|
13212
13217
|
})
|
|
13213
13218
|
});
|
|
13214
13219
|
}
|
|
13215
|
-
async function
|
|
13220
|
+
async function p2(e) {
|
|
13216
13221
|
return (await ze(St, {
|
|
13217
13222
|
method: "POST",
|
|
13218
13223
|
body: JSON.stringify(e),
|
|
@@ -13221,7 +13226,7 @@ async function d2(e) {
|
|
|
13221
13226
|
})
|
|
13222
13227
|
})).deleted;
|
|
13223
13228
|
}
|
|
13224
|
-
async function
|
|
13229
|
+
async function h2(...e) {
|
|
13225
13230
|
return await ze(St, {
|
|
13226
13231
|
method: "POST",
|
|
13227
13232
|
body: JSON.stringify({
|
|
@@ -13233,7 +13238,7 @@ async function p2(...e) {
|
|
|
13233
13238
|
})
|
|
13234
13239
|
});
|
|
13235
13240
|
}
|
|
13236
|
-
async function
|
|
13241
|
+
async function v2(e) {
|
|
13237
13242
|
const r = await ze("/api/login", {
|
|
13238
13243
|
method: "POST",
|
|
13239
13244
|
body: JSON.stringify({
|
|
@@ -13245,7 +13250,7 @@ async function h2(e) {
|
|
|
13245
13250
|
});
|
|
13246
13251
|
return r.isLogged && r.success;
|
|
13247
13252
|
}
|
|
13248
|
-
async function
|
|
13253
|
+
async function m2() {
|
|
13249
13254
|
return await ze(
|
|
13250
13255
|
"/rest/$catalog/$all?$metadata=full",
|
|
13251
13256
|
{
|
|
@@ -13256,7 +13261,7 @@ async function v2() {
|
|
|
13256
13261
|
}
|
|
13257
13262
|
);
|
|
13258
13263
|
}
|
|
13259
|
-
async function
|
|
13264
|
+
async function g2({
|
|
13260
13265
|
name: e,
|
|
13261
13266
|
path: r = "",
|
|
13262
13267
|
root: n = "root",
|
|
@@ -13277,7 +13282,7 @@ async function m2({
|
|
|
13277
13282
|
function yh(e) {
|
|
13278
13283
|
return typeof e == "string" ? JSON.parse(e) : e;
|
|
13279
13284
|
}
|
|
13280
|
-
async function
|
|
13285
|
+
async function y2() {
|
|
13281
13286
|
try {
|
|
13282
13287
|
const [e, r] = await Promise.allSettled([
|
|
13283
13288
|
ze(
|
|
@@ -13304,7 +13309,7 @@ async function g2() {
|
|
|
13304
13309
|
return { webform: {}, report: {} };
|
|
13305
13310
|
}
|
|
13306
13311
|
}
|
|
13307
|
-
async function
|
|
13312
|
+
async function w2() {
|
|
13308
13313
|
try {
|
|
13309
13314
|
const e = await ze(
|
|
13310
13315
|
`${as}/shared_css.json?t=${Date.now()}`,
|
|
@@ -13320,7 +13325,7 @@ async function y2() {
|
|
|
13320
13325
|
return { classes: [] };
|
|
13321
13326
|
}
|
|
13322
13327
|
}
|
|
13323
|
-
async function
|
|
13328
|
+
async function b2() {
|
|
13324
13329
|
try {
|
|
13325
13330
|
const e = await ze(
|
|
13326
13331
|
`${as}/saved_conditions.json?t=${Date.now()}`,
|
|
@@ -13336,7 +13341,7 @@ async function w2() {
|
|
|
13336
13341
|
return { conditions: [] };
|
|
13337
13342
|
}
|
|
13338
13343
|
}
|
|
13339
|
-
async function
|
|
13344
|
+
async function _2() {
|
|
13340
13345
|
try {
|
|
13341
13346
|
return await ze(
|
|
13342
13347
|
"/rest/$info/privileges",
|
|
@@ -13351,14 +13356,14 @@ async function b2() {
|
|
|
13351
13356
|
return { privileges: [] };
|
|
13352
13357
|
}
|
|
13353
13358
|
}
|
|
13354
|
-
async function
|
|
13359
|
+
async function S2() {
|
|
13355
13360
|
try {
|
|
13356
13361
|
return await (await fetch(`monaco_theme.json?t=${Date.now()}`)).json();
|
|
13357
13362
|
} catch {
|
|
13358
13363
|
return null;
|
|
13359
13364
|
}
|
|
13360
13365
|
}
|
|
13361
|
-
const $P = EP(),
|
|
13366
|
+
const $P = EP(), E2 = async (e, r) => {
|
|
13362
13367
|
const n = {
|
|
13363
13368
|
verb: oi.SET_FILE_CONTENT,
|
|
13364
13369
|
asText: !1,
|
|
@@ -13402,12 +13407,12 @@ const $P = EP(), S2 = async (e, r) => {
|
|
|
13402
13407
|
type: n,
|
|
13403
13408
|
size: 0
|
|
13404
13409
|
};
|
|
13405
|
-
},
|
|
13410
|
+
}, x2 = async (e) => await jP({
|
|
13406
13411
|
name: "crafted_components.json",
|
|
13407
13412
|
path: ei.WEBFORMS,
|
|
13408
13413
|
content: e
|
|
13409
13414
|
});
|
|
13410
|
-
function
|
|
13415
|
+
function O2(e) {
|
|
13411
13416
|
return ze(St, {
|
|
13412
13417
|
method: "POST",
|
|
13413
13418
|
body: JSON.stringify(e),
|
|
@@ -13416,7 +13421,7 @@ function x2(e) {
|
|
|
13416
13421
|
})
|
|
13417
13422
|
});
|
|
13418
13423
|
}
|
|
13419
|
-
function
|
|
13424
|
+
function T2(e) {
|
|
13420
13425
|
return ze(St, {
|
|
13421
13426
|
method: "POST",
|
|
13422
13427
|
body: JSON.stringify(e),
|
|
@@ -13425,7 +13430,7 @@ function O2(e) {
|
|
|
13425
13430
|
})
|
|
13426
13431
|
});
|
|
13427
13432
|
}
|
|
13428
|
-
function
|
|
13433
|
+
function C2(e) {
|
|
13429
13434
|
return ze(St, {
|
|
13430
13435
|
method: "POST",
|
|
13431
13436
|
body: JSON.stringify(e),
|
|
@@ -13434,7 +13439,7 @@ function T2(e) {
|
|
|
13434
13439
|
})
|
|
13435
13440
|
});
|
|
13436
13441
|
}
|
|
13437
|
-
function
|
|
13442
|
+
function R2(e) {
|
|
13438
13443
|
return ze(St, {
|
|
13439
13444
|
method: "POST",
|
|
13440
13445
|
body: JSON.stringify(e),
|
|
@@ -13446,7 +13451,7 @@ function C2(e) {
|
|
|
13446
13451
|
content: ["4dm", "4qm", "4qs"].includes(r.ext) ? pc(r.content) : r.content
|
|
13447
13452
|
});
|
|
13448
13453
|
}
|
|
13449
|
-
function
|
|
13454
|
+
function P2(e) {
|
|
13450
13455
|
return ze(St, {
|
|
13451
13456
|
method: "POST",
|
|
13452
13457
|
body: JSON.stringify(e),
|
|
@@ -13485,7 +13490,7 @@ function UP(e) {
|
|
|
13485
13490
|
result: o
|
|
13486
13491
|
};
|
|
13487
13492
|
}
|
|
13488
|
-
async function
|
|
13493
|
+
async function A2(e, r) {
|
|
13489
13494
|
const o = e.split(".").pop();
|
|
13490
13495
|
try {
|
|
13491
13496
|
const a = await ze(St, {
|
|
@@ -13517,7 +13522,7 @@ async function P2(e, r) {
|
|
|
13517
13522
|
}
|
|
13518
13523
|
}
|
|
13519
13524
|
var HP = /* @__PURE__ */ ((e) => (e.STUDIO_LOADED = "UA-1-0", e.WELCOME_TOUR_INIT = "UA-1-3", e.WELCOME_TOUR_END = "UA-1-4", e))(HP || {});
|
|
13520
|
-
function
|
|
13525
|
+
function I2(e, r) {
|
|
13521
13526
|
fetch("/api/v1/activity", {
|
|
13522
13527
|
body: JSON.stringify({
|
|
13523
13528
|
AID: e,
|
|
@@ -13531,7 +13536,7 @@ function A2(e, r) {
|
|
|
13531
13536
|
});
|
|
13532
13537
|
}
|
|
13533
13538
|
var BP = /* @__PURE__ */ ((e) => (e.LOCAL = "local", e.SHARED = "shared", e.THEME = "theme", e))(BP || {}), zP = /* @__PURE__ */ ((e) => (e.WelCome = "WelCome", e.ActionPanel = "ActionPanel", e.SideBar = "SideBar", e.Settings = "Settings", e.Main = "Main", e.Explorer = "Explorer", e.Header = "Header", e.ComponentList = "ComponentList", e))(zP || {}), qP = /* @__PURE__ */ ((e) => (e[e.FILE_NOT_FOUND = 1839] = "FILE_NOT_FOUND", e[e.JSON_MALFORMED = 554] = "JSON_MALFORMED", e[e.JSON_MALFORMED_AT_LINE = 550] = "JSON_MALFORMED_AT_LINE", e))(qP || {});
|
|
13534
|
-
const
|
|
13539
|
+
const L2 = {
|
|
13535
13540
|
transparent: {
|
|
13536
13541
|
backgroundColor: "transparent"
|
|
13537
13542
|
},
|
|
@@ -13547,7 +13552,7 @@ const I2 = {
|
|
|
13547
13552
|
padding: "3px 5px",
|
|
13548
13553
|
borderRadius: 5
|
|
13549
13554
|
}
|
|
13550
|
-
},
|
|
13555
|
+
}, M2 = {
|
|
13551
13556
|
Code: {
|
|
13552
13557
|
key: "editors:code",
|
|
13553
13558
|
config: { language: "4d", theme: "fd-dark" }
|
|
@@ -13560,14 +13565,14 @@ export {
|
|
|
13560
13565
|
St as API_PREFIX,
|
|
13561
13566
|
aA as AppLoader,
|
|
13562
13567
|
kR as ControlledSwitch,
|
|
13563
|
-
|
|
13568
|
+
L2 as DATASOURCE_THEMES,
|
|
13564
13569
|
hP as DatasourcesActions,
|
|
13565
13570
|
gP as DebuggerActions,
|
|
13566
13571
|
oi as DesignerRequestVerb,
|
|
13567
13572
|
XP as Dialog,
|
|
13568
13573
|
eE as DialogBody,
|
|
13569
13574
|
HP as EActivity,
|
|
13570
|
-
|
|
13575
|
+
M2 as EDITOR,
|
|
13571
13576
|
zP as EIDENTIFIERS,
|
|
13572
13577
|
qP as ERROR_CODES,
|
|
13573
13578
|
BP as EWebFormStyleClassScope,
|
|
@@ -13595,7 +13600,7 @@ export {
|
|
|
13595
13600
|
cm as NameError,
|
|
13596
13601
|
QS as Overlay,
|
|
13597
13602
|
F_ as Portal,
|
|
13598
|
-
|
|
13603
|
+
ZA as PublishOptions,
|
|
13599
13604
|
wP as ROLES_TAB_PATH,
|
|
13600
13605
|
dm as RemoteDebuggerMode,
|
|
13601
13606
|
bP as SETTINGS_TAB_PATH,
|
|
@@ -13612,42 +13617,42 @@ export {
|
|
|
13612
13617
|
pP as WebformActions,
|
|
13613
13618
|
GA as _isArrayDatasource,
|
|
13614
13619
|
YA as _isObjectDatasource,
|
|
13615
|
-
|
|
13616
|
-
|
|
13620
|
+
e2 as addAttributesToContent,
|
|
13621
|
+
f2 as addFolder,
|
|
13617
13622
|
xP as by,
|
|
13618
13623
|
LA as byId,
|
|
13619
13624
|
MA as byPath,
|
|
13620
|
-
|
|
13621
|
-
|
|
13625
|
+
r2 as checkUpdates,
|
|
13626
|
+
O2 as createFolder,
|
|
13622
13627
|
wA as datasourcesSubject,
|
|
13623
13628
|
xA as debuggerSubject,
|
|
13624
|
-
|
|
13625
|
-
|
|
13629
|
+
c2 as dropFile,
|
|
13630
|
+
p2 as dropFolder,
|
|
13626
13631
|
DA as exists,
|
|
13627
13632
|
PA as extractWebformName,
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13633
|
+
t2 as generateUUID,
|
|
13634
|
+
o2 as getAppSettings,
|
|
13635
|
+
m2 as getCatalog,
|
|
13631
13636
|
kA as getDatasourceId,
|
|
13632
13637
|
kP as getDefaultAppSettings,
|
|
13633
|
-
|
|
13634
|
-
|
|
13638
|
+
u2 as getFile,
|
|
13639
|
+
g2 as getFileContent,
|
|
13635
13640
|
RA as getFileExtentionFromType,
|
|
13636
|
-
|
|
13641
|
+
h2 as getFilesInfo,
|
|
13637
13642
|
NP as getFolder,
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13643
|
+
a2 as getFolders,
|
|
13644
|
+
A2 as getFunctionContent,
|
|
13645
|
+
S2 as getMonacoTheme,
|
|
13646
|
+
R2 as getNodeInfo,
|
|
13647
|
+
b2 as getSavedConditions,
|
|
13648
|
+
w2 as getSharedCSS,
|
|
13649
|
+
y2 as getSharedDatasources,
|
|
13645
13650
|
_P as getTypeFromExtension,
|
|
13646
|
-
|
|
13647
|
-
|
|
13651
|
+
_2 as getUserPrivileges,
|
|
13652
|
+
s2 as getWebForm,
|
|
13648
13653
|
MP as hasAttributesString,
|
|
13649
13654
|
ze as http,
|
|
13650
|
-
|
|
13655
|
+
i2 as installUpdates,
|
|
13651
13656
|
RP as isArrayDatasource,
|
|
13652
13657
|
FA as isDataClassMethod,
|
|
13653
13658
|
jA as isDataStoreMethod,
|
|
@@ -13667,27 +13672,28 @@ export {
|
|
|
13667
13672
|
OP as isSimpleAttribute,
|
|
13668
13673
|
zA as isSimpleDatasource,
|
|
13669
13674
|
XA as loadDS,
|
|
13670
|
-
|
|
13671
|
-
|
|
13675
|
+
JA as loadI18n,
|
|
13676
|
+
I2 as log,
|
|
13677
|
+
v2 as login,
|
|
13672
13678
|
EA as lspSubject,
|
|
13673
|
-
|
|
13679
|
+
C2 as moveItem,
|
|
13674
13680
|
AA as outBy,
|
|
13675
13681
|
IA as outById,
|
|
13676
|
-
|
|
13682
|
+
QA as parseAttributes,
|
|
13677
13683
|
EP as queue,
|
|
13678
13684
|
DP as removeAttributesString,
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13685
|
+
T2 as removeItem,
|
|
13686
|
+
l2 as renameFile,
|
|
13687
|
+
d2 as renameFolder,
|
|
13682
13688
|
pc as sanitizeContent,
|
|
13683
|
-
|
|
13684
|
-
|
|
13689
|
+
P2 as saveContent,
|
|
13690
|
+
x2 as setCraftedComponents,
|
|
13685
13691
|
jP as setFileContent,
|
|
13686
|
-
|
|
13692
|
+
E2 as setSharedSources,
|
|
13687
13693
|
LP as stringifyAttributes,
|
|
13688
13694
|
SA as tabEventsSubject,
|
|
13689
13695
|
_A as toastSubject,
|
|
13690
|
-
|
|
13696
|
+
n2 as transformDates,
|
|
13691
13697
|
uA as useDidMountEffect,
|
|
13692
13698
|
yA as useDoubleClick,
|
|
13693
13699
|
hA as useFeatureFlags,
|