@ws-ui/shared 0.1.20 → 0.1.21
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/declarations/datasources/datasource.d.ts +2 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +41 -25
- package/dist/index.es.js.map +1 -1
- package/dist/services/api.d.ts +3 -2
- package/dist/types/api.d.ts +7 -1
- package/dist/types/webform-editor.d.ts +1 -0
- package/dist/types/webform-state.d.ts +8 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -13294,7 +13294,7 @@ async function g2() {
|
|
|
13294
13294
|
async function y2() {
|
|
13295
13295
|
try {
|
|
13296
13296
|
const e = await Ke(
|
|
13297
|
-
`${pc}/
|
|
13297
|
+
`${pc}/saved_conditions.json?t=${Date.now()}`,
|
|
13298
13298
|
{
|
|
13299
13299
|
method: "GET",
|
|
13300
13300
|
headers: new Headers({
|
|
@@ -13308,13 +13308,28 @@ async function y2() {
|
|
|
13308
13308
|
}
|
|
13309
13309
|
}
|
|
13310
13310
|
async function w2() {
|
|
13311
|
+
try {
|
|
13312
|
+
return await Ke(
|
|
13313
|
+
"/rest/$info/privileges",
|
|
13314
|
+
{
|
|
13315
|
+
method: "GET",
|
|
13316
|
+
headers: new Headers({
|
|
13317
|
+
"Content-Type": "application/json"
|
|
13318
|
+
})
|
|
13319
|
+
}
|
|
13320
|
+
);
|
|
13321
|
+
} catch {
|
|
13322
|
+
return { privileges: [] };
|
|
13323
|
+
}
|
|
13324
|
+
}
|
|
13325
|
+
async function b2() {
|
|
13311
13326
|
try {
|
|
13312
13327
|
return await (await fetch(`monaco_theme.json?t=${Date.now()}`)).json();
|
|
13313
13328
|
} catch {
|
|
13314
13329
|
return null;
|
|
13315
13330
|
}
|
|
13316
13331
|
}
|
|
13317
|
-
const $P = EP(),
|
|
13332
|
+
const $P = EP(), _2 = async (e) => {
|
|
13318
13333
|
const r = {
|
|
13319
13334
|
verb: Wi.SET_FILE_CONTENT,
|
|
13320
13335
|
asText: !1,
|
|
@@ -13349,12 +13364,12 @@ const $P = EP(), b2 = async (e) => {
|
|
|
13349
13364
|
type: n,
|
|
13350
13365
|
size: 0
|
|
13351
13366
|
};
|
|
13352
|
-
},
|
|
13367
|
+
}, S2 = async (e) => await jP({
|
|
13353
13368
|
name: "crafted_components.json",
|
|
13354
13369
|
path: Mi.WEBFORMS,
|
|
13355
13370
|
content: e
|
|
13356
13371
|
});
|
|
13357
|
-
function
|
|
13372
|
+
function E2(e) {
|
|
13358
13373
|
return Ke(_t, {
|
|
13359
13374
|
method: "POST",
|
|
13360
13375
|
body: JSON.stringify(e),
|
|
@@ -13363,7 +13378,7 @@ function S2(e) {
|
|
|
13363
13378
|
})
|
|
13364
13379
|
});
|
|
13365
13380
|
}
|
|
13366
|
-
function
|
|
13381
|
+
function x2(e) {
|
|
13367
13382
|
return Ke(_t, {
|
|
13368
13383
|
method: "POST",
|
|
13369
13384
|
body: JSON.stringify(e),
|
|
@@ -13372,7 +13387,7 @@ function E2(e) {
|
|
|
13372
13387
|
})
|
|
13373
13388
|
});
|
|
13374
13389
|
}
|
|
13375
|
-
function
|
|
13390
|
+
function O2(e) {
|
|
13376
13391
|
return Ke(_t, {
|
|
13377
13392
|
method: "POST",
|
|
13378
13393
|
body: JSON.stringify(e),
|
|
@@ -13381,7 +13396,7 @@ function x2(e) {
|
|
|
13381
13396
|
})
|
|
13382
13397
|
});
|
|
13383
13398
|
}
|
|
13384
|
-
function
|
|
13399
|
+
function T2(e) {
|
|
13385
13400
|
return Ke(_t, {
|
|
13386
13401
|
method: "POST",
|
|
13387
13402
|
body: JSON.stringify(e),
|
|
@@ -13393,7 +13408,7 @@ function O2(e) {
|
|
|
13393
13408
|
content: ["4dm", "4qm", "4qs"].includes(r.ext) ? dc(r.content) : r.content
|
|
13394
13409
|
});
|
|
13395
13410
|
}
|
|
13396
|
-
function
|
|
13411
|
+
function C2(e) {
|
|
13397
13412
|
return Ke(_t, {
|
|
13398
13413
|
method: "POST",
|
|
13399
13414
|
body: JSON.stringify(e),
|
|
@@ -13432,7 +13447,7 @@ function UP(e) {
|
|
|
13432
13447
|
result: o
|
|
13433
13448
|
};
|
|
13434
13449
|
}
|
|
13435
|
-
async function
|
|
13450
|
+
async function R2(e, r) {
|
|
13436
13451
|
const o = e.split(".").pop();
|
|
13437
13452
|
try {
|
|
13438
13453
|
const a = await Ke(_t, {
|
|
@@ -13464,7 +13479,7 @@ async function C2(e, r) {
|
|
|
13464
13479
|
}
|
|
13465
13480
|
}
|
|
13466
13481
|
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 || {});
|
|
13467
|
-
function
|
|
13482
|
+
function P2(e, r) {
|
|
13468
13483
|
fetch("/api/v1/activity", {
|
|
13469
13484
|
body: JSON.stringify({
|
|
13470
13485
|
AID: e,
|
|
@@ -13478,7 +13493,7 @@ function R2(e, r) {
|
|
|
13478
13493
|
});
|
|
13479
13494
|
}
|
|
13480
13495
|
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 || {});
|
|
13481
|
-
const
|
|
13496
|
+
const A2 = {
|
|
13482
13497
|
transparent: {
|
|
13483
13498
|
backgroundColor: "transparent"
|
|
13484
13499
|
},
|
|
@@ -13494,7 +13509,7 @@ const P2 = {
|
|
|
13494
13509
|
padding: "3px 5px",
|
|
13495
13510
|
borderRadius: 5
|
|
13496
13511
|
}
|
|
13497
|
-
},
|
|
13512
|
+
}, I2 = {
|
|
13498
13513
|
Code: {
|
|
13499
13514
|
key: "editors:code",
|
|
13500
13515
|
config: { language: "4d", theme: "fd-dark" }
|
|
@@ -13507,14 +13522,14 @@ export {
|
|
|
13507
13522
|
_t as API_PREFIX,
|
|
13508
13523
|
aA as AppLoader,
|
|
13509
13524
|
DR as ControlledSwitch,
|
|
13510
|
-
|
|
13525
|
+
A2 as DATASOURCE_THEMES,
|
|
13511
13526
|
hP as DatasourcesActions,
|
|
13512
13527
|
gP as DebuggerActions,
|
|
13513
13528
|
Wi as DesignerRequestVerb,
|
|
13514
13529
|
VP as Dialog,
|
|
13515
13530
|
QS as DialogBody,
|
|
13516
13531
|
HP as EActivity,
|
|
13517
|
-
|
|
13532
|
+
I2 as EDITOR,
|
|
13518
13533
|
zP as EIDENTIFIERS,
|
|
13519
13534
|
qP as ERROR_CODES,
|
|
13520
13535
|
BP as EWebFormStyleClassScope,
|
|
@@ -13565,7 +13580,7 @@ export {
|
|
|
13565
13580
|
IA as byId,
|
|
13566
13581
|
LA as byPath,
|
|
13567
13582
|
t2 as checkUpdates,
|
|
13568
|
-
|
|
13583
|
+
E2 as createFolder,
|
|
13569
13584
|
wA as datasourcesSubject,
|
|
13570
13585
|
xA as debuggerSubject,
|
|
13571
13586
|
u2 as dropFile,
|
|
@@ -13583,13 +13598,14 @@ export {
|
|
|
13583
13598
|
d2 as getFilesInfo,
|
|
13584
13599
|
NP as getFolder,
|
|
13585
13600
|
i2 as getFolders,
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13601
|
+
R2 as getFunctionContent,
|
|
13602
|
+
b2 as getMonacoTheme,
|
|
13603
|
+
T2 as getNodeInfo,
|
|
13604
|
+
y2 as getSavedConditions,
|
|
13589
13605
|
g2 as getSharedCSS,
|
|
13590
|
-
y2 as getSharedConditions,
|
|
13591
13606
|
m2 as getSharedDatasources,
|
|
13592
13607
|
_P as getTypeFromExtension,
|
|
13608
|
+
w2 as getUserPrivileges,
|
|
13593
13609
|
o2 as getWebForm,
|
|
13594
13610
|
MP as hasAttributesString,
|
|
13595
13611
|
Ke as http,
|
|
@@ -13613,23 +13629,23 @@ export {
|
|
|
13613
13629
|
OP as isSimpleAttribute,
|
|
13614
13630
|
BA as isSimpleDatasource,
|
|
13615
13631
|
XA as loadDS,
|
|
13616
|
-
|
|
13632
|
+
P2 as log,
|
|
13617
13633
|
p2 as login,
|
|
13618
13634
|
EA as lspSubject,
|
|
13619
|
-
|
|
13635
|
+
O2 as moveItem,
|
|
13620
13636
|
PA as outBy,
|
|
13621
13637
|
AA as outById,
|
|
13622
13638
|
JA as parseAttributes,
|
|
13623
13639
|
EP as queue,
|
|
13624
13640
|
DP as removeAttributesString,
|
|
13625
|
-
|
|
13641
|
+
x2 as removeItem,
|
|
13626
13642
|
s2 as renameFile,
|
|
13627
13643
|
c2 as renameFolder,
|
|
13628
13644
|
dc as sanitizeContent,
|
|
13629
|
-
|
|
13630
|
-
|
|
13645
|
+
C2 as saveContent,
|
|
13646
|
+
S2 as setCraftedComponents,
|
|
13631
13647
|
jP as setFileContent,
|
|
13632
|
-
|
|
13648
|
+
_2 as setSharedSources,
|
|
13633
13649
|
LP as stringifyAttributes,
|
|
13634
13650
|
SA as tabEventsSubject,
|
|
13635
13651
|
_A as toastSubject,
|