@burdenoff/fe-libs 2026.1113.6 → 2026.1113.7
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/connections/ConnectionDialog.d.ts +13 -1
- package/dist/connections/ConnectionDialog.js +13 -11
- package/dist/connections/ConnectionDialogPanel.d.ts +5 -1
- package/dist/connections/ConnectionDialogPanel.js +230 -150
- package/dist/connections/ConnectionFormTab.d.ts +15 -0
- package/dist/connections/ConnectionFormTab.js +192 -189
- package/dist/connections/CredentialStorageSelector.d.ts +9 -0
- package/dist/connections/CredentialStorageSelector.js +145 -137
- package/dist/connections/OneScreenConnectionForm.d.ts +22 -0
- package/dist/connections/OneScreenConnectionForm.js +231 -0
- package/dist/connections/ProviderPickerPanel.d.ts +6 -0
- package/dist/connections/ProviderPickerPanel.js +98 -45
- package/dist/connections/api.d.ts +3 -0
- package/dist/connections/api.js +4 -2
- package/dist/connections/connectionFlow.d.ts +18 -0
- package/dist/connections/connectionFlow.js +3 -3
- package/dist/connections/index.d.ts +4 -3
- package/dist/connections/picker.d.ts +18 -0
- package/dist/connections/picker.js +35 -6
- package/dist/connections/scopes.d.ts +8 -0
- package/dist/connections/scopes.js +9 -1
- package/dist/connections/storage.d.ts +9 -1
- package/dist/connections/storage.js +13 -1
- package/dist/connections/types.d.ts +16 -0
- package/dist/connections/useConnectionSubmit.d.ts +38 -2
- package/dist/connections/useConnectionSubmit.js +115 -71
- package/dist/connections.js +11 -10
- package/dist/credentials/SchemaForm.d.ts +7 -1
- package/dist/credentials/SchemaForm.js +64 -64
- package/dist/credentials/index.d.ts +2 -2
- package/dist/credentials/schema.d.ts +11 -1
- package/dist/credentials/schema.js +13 -5
- package/dist/credentials/types.d.ts +9 -0
- package/dist/credentials.js +5 -5
- package/package.json +1 -1
|
@@ -17,7 +17,15 @@ function t(e, n, r, i = /* @__PURE__ */ new Set()) {
|
|
|
17
17
|
return Array.isArray(a) ? a.includes(o) : o === a;
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function n(e, n) {
|
|
20
|
+
function n(e, t, n, r) {
|
|
21
|
+
if (r === "all") return !0;
|
|
22
|
+
let i = n.required.includes(e) || t.type === "notice";
|
|
23
|
+
return r === "primary" ? i : !i;
|
|
24
|
+
}
|
|
25
|
+
function r(e, r, i) {
|
|
26
|
+
return Object.entries(e.properties).some(([a, o]) => n(a, o, e, i) && t(o, r, e));
|
|
27
|
+
}
|
|
28
|
+
function i(e, n) {
|
|
21
29
|
return e.required.every((r) => {
|
|
22
30
|
let i = e.properties[r];
|
|
23
31
|
if (i && !t(i, n, e)) return !0;
|
|
@@ -25,19 +33,19 @@ function n(e, n) {
|
|
|
25
33
|
return typeof a == "string" ? a.trim().length > 0 : a != null;
|
|
26
34
|
});
|
|
27
35
|
}
|
|
28
|
-
function
|
|
36
|
+
function a(e) {
|
|
29
37
|
return e.map((e) => typeof e == "string" ? {
|
|
30
38
|
label: e,
|
|
31
39
|
value: e
|
|
32
40
|
} : e);
|
|
33
41
|
}
|
|
34
|
-
function
|
|
42
|
+
function o(e) {
|
|
35
43
|
if (!e) return {};
|
|
36
44
|
let t = new Set(e.required), n = {};
|
|
37
45
|
for (let [r, i] of Object.entries(e.properties)) i.default === void 0 ? i.type === "boolean" && t.has(r) && (n[r] = !1) : n[r] = i.default;
|
|
38
46
|
return n;
|
|
39
47
|
}
|
|
40
|
-
function
|
|
48
|
+
function s(e, n) {
|
|
41
49
|
if (!e) return n;
|
|
42
50
|
let r = {};
|
|
43
51
|
for (let [i, a] of Object.entries(n)) {
|
|
@@ -46,4 +54,4 @@ function a(e, n) {
|
|
|
46
54
|
}
|
|
47
55
|
return r;
|
|
48
56
|
}
|
|
49
|
-
export {
|
|
57
|
+
export { r as hasFieldsInPart, o as initialValuesFromSchema, n as isInFormPart, i as isSchemaComplete, t as isVisible, a as normalizeOptions, e as parseFormSchema, s as visibleValues };
|
|
@@ -33,7 +33,16 @@ export interface SchemaProperty {
|
|
|
33
33
|
}>;
|
|
34
34
|
/** Show only while every named field holds one of the accepted values. */
|
|
35
35
|
showIf?: Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* An optional technical field (base URL, region, API version, custom
|
|
38
|
+
* headers). A form split into everyday and "More options" parts puts it in
|
|
39
|
+
* "More options"; a required field ignores the flag. Forms that are not
|
|
40
|
+
* split render it like any other field.
|
|
41
|
+
*/
|
|
42
|
+
advanced?: boolean;
|
|
36
43
|
}
|
|
44
|
+
/** Which fields a split `SchemaForm` renders: all of them, or one part. */
|
|
45
|
+
export type SchemaFormPart = 'all' | 'primary' | 'more';
|
|
37
46
|
export interface FormSchema {
|
|
38
47
|
type?: string;
|
|
39
48
|
properties: Record<string, SchemaProperty>;
|
package/dist/credentials.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchemaForm as e } from "./credentials/SchemaForm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { AuthMethodNotice as
|
|
4
|
-
import { resolveSelectedMethod as
|
|
5
|
-
import { englishTranslator as
|
|
6
|
-
export {
|
|
2
|
+
import { hasFieldsInPart as t, initialValuesFromSchema as n, isInFormPart as r, isSchemaComplete as i, parseFormSchema as a, visibleValues as o } from "./credentials/schema.js";
|
|
3
|
+
import { AuthMethodNotice as s, AuthMethodSelector as c } from "./credentials/AuthMethodSelector.js";
|
|
4
|
+
import { resolveSelectedMethod as l } from "./credentials/methods.js";
|
|
5
|
+
import { englishTranslator as u, interpolate as d } from "./credentials/translate.js";
|
|
6
|
+
export { s as AuthMethodNotice, c as AuthMethodSelector, e as SchemaForm, u as englishTranslator, t as hasFieldsInPart, n as initialValuesFromSchema, d as interpolate, r as isInFormPart, i as isSchemaComplete, a as parseFormSchema, l as resolveSelectedMethod, o as visibleValues };
|