@teamkeel/functions-runtime 0.413.6 → 0.413.8
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 +24 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +24 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1830,17 +1830,23 @@ var Permissions = class {
|
|
|
1830
1830
|
* Explicitly permit access to an action
|
|
1831
1831
|
*/
|
|
1832
1832
|
allow() {
|
|
1833
|
-
permissionsApiInstance.getStore()
|
|
1833
|
+
const store = permissionsApiInstance.getStore();
|
|
1834
|
+
if (store) {
|
|
1835
|
+
store.permitted = true;
|
|
1836
|
+
}
|
|
1834
1837
|
}
|
|
1835
1838
|
/**
|
|
1836
1839
|
* Explicitly deny access to an action
|
|
1837
1840
|
*/
|
|
1838
1841
|
deny() {
|
|
1839
|
-
permissionsApiInstance.getStore()
|
|
1842
|
+
const store = permissionsApiInstance.getStore();
|
|
1843
|
+
if (store) {
|
|
1844
|
+
store.permitted = false;
|
|
1845
|
+
}
|
|
1840
1846
|
throw new PermissionError();
|
|
1841
1847
|
}
|
|
1842
1848
|
getState() {
|
|
1843
|
-
const permitted = permissionsApiInstance.getStore()
|
|
1849
|
+
const permitted = permissionsApiInstance.getStore()?.permitted;
|
|
1844
1850
|
switch (true) {
|
|
1845
1851
|
case permitted === false:
|
|
1846
1852
|
return PERMISSION_STATE.UNPERMITTED;
|
|
@@ -2338,8 +2344,10 @@ var textInput = /* @__PURE__ */ __name((name, options) => {
|
|
|
2338
2344
|
__type: "ui.input.text",
|
|
2339
2345
|
name,
|
|
2340
2346
|
label: options?.label || name,
|
|
2347
|
+
optional: options?.optional || false,
|
|
2348
|
+
disabled: options?.disabled || false,
|
|
2349
|
+
helpText: options?.helpText,
|
|
2341
2350
|
defaultValue: options?.defaultValue,
|
|
2342
|
-
optional: options?.optional,
|
|
2343
2351
|
placeholder: options?.placeholder,
|
|
2344
2352
|
multiline: options?.multiline,
|
|
2345
2353
|
maxLength: options?.maxLength,
|
|
@@ -2358,8 +2366,10 @@ var numberInput = /* @__PURE__ */ __name((name, options) => {
|
|
|
2358
2366
|
__type: "ui.input.number",
|
|
2359
2367
|
name,
|
|
2360
2368
|
label: options?.label || name,
|
|
2369
|
+
optional: options?.optional || false,
|
|
2370
|
+
disabled: options?.disabled || false,
|
|
2371
|
+
helpText: options?.helpText,
|
|
2361
2372
|
defaultValue: options?.defaultValue,
|
|
2362
|
-
optional: options?.optional,
|
|
2363
2373
|
placeholder: options?.placeholder,
|
|
2364
2374
|
min: options?.min,
|
|
2365
2375
|
max: options?.max
|
|
@@ -2386,8 +2396,10 @@ var booleanInput = /* @__PURE__ */ __name((name, options) => {
|
|
|
2386
2396
|
__type: "ui.input.boolean",
|
|
2387
2397
|
name,
|
|
2388
2398
|
label: options?.label || name,
|
|
2399
|
+
optional: options?.optional || false,
|
|
2400
|
+
disabled: options?.disabled || false,
|
|
2401
|
+
helpText: options?.helpText,
|
|
2389
2402
|
defaultValue: options?.defaultValue,
|
|
2390
|
-
optional: options?.optional,
|
|
2391
2403
|
mode: options?.mode || "checkbox"
|
|
2392
2404
|
},
|
|
2393
2405
|
validate: options?.validate,
|
|
@@ -2417,8 +2429,7 @@ var table = /* @__PURE__ */ __name((options) => {
|
|
|
2417
2429
|
return {
|
|
2418
2430
|
uiConfig: {
|
|
2419
2431
|
__type: "ui.display.table",
|
|
2420
|
-
data: filteredData || []
|
|
2421
|
-
columns: options.columns
|
|
2432
|
+
data: filteredData || []
|
|
2422
2433
|
}
|
|
2423
2434
|
};
|
|
2424
2435
|
}, "table");
|
|
@@ -2432,7 +2443,9 @@ var selectOne = /* @__PURE__ */ __name((name, options) => {
|
|
|
2432
2443
|
name,
|
|
2433
2444
|
label: options?.label || name,
|
|
2434
2445
|
defaultValue: options?.defaultValue,
|
|
2435
|
-
optional: options?.optional,
|
|
2446
|
+
optional: options?.optional || false,
|
|
2447
|
+
disabled: options?.disabled || false,
|
|
2448
|
+
helpText: options?.helpText,
|
|
2436
2449
|
options: options?.options || []
|
|
2437
2450
|
},
|
|
2438
2451
|
validate: options?.validate,
|
|
@@ -2530,7 +2543,7 @@ var image = /* @__PURE__ */ __name((options) => {
|
|
|
2530
2543
|
url: options?.url || "",
|
|
2531
2544
|
alt: options?.alt,
|
|
2532
2545
|
size: options?.size,
|
|
2533
|
-
|
|
2546
|
+
caption: options?.caption
|
|
2534
2547
|
}
|
|
2535
2548
|
};
|
|
2536
2549
|
}, "image");
|
|
@@ -2585,7 +2598,7 @@ var header = /* @__PURE__ */ __name((options) => {
|
|
|
2585
2598
|
return {
|
|
2586
2599
|
uiConfig: {
|
|
2587
2600
|
__type: "ui.display.header",
|
|
2588
|
-
level: options?.level ||
|
|
2601
|
+
level: options?.level || 2,
|
|
2589
2602
|
title: options?.title || "",
|
|
2590
2603
|
description: options?.description || ""
|
|
2591
2604
|
}
|