@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.
Files changed (35) hide show
  1. package/dist/connections/ConnectionDialog.d.ts +13 -1
  2. package/dist/connections/ConnectionDialog.js +13 -11
  3. package/dist/connections/ConnectionDialogPanel.d.ts +5 -1
  4. package/dist/connections/ConnectionDialogPanel.js +230 -150
  5. package/dist/connections/ConnectionFormTab.d.ts +15 -0
  6. package/dist/connections/ConnectionFormTab.js +192 -189
  7. package/dist/connections/CredentialStorageSelector.d.ts +9 -0
  8. package/dist/connections/CredentialStorageSelector.js +145 -137
  9. package/dist/connections/OneScreenConnectionForm.d.ts +22 -0
  10. package/dist/connections/OneScreenConnectionForm.js +231 -0
  11. package/dist/connections/ProviderPickerPanel.d.ts +6 -0
  12. package/dist/connections/ProviderPickerPanel.js +98 -45
  13. package/dist/connections/api.d.ts +3 -0
  14. package/dist/connections/api.js +4 -2
  15. package/dist/connections/connectionFlow.d.ts +18 -0
  16. package/dist/connections/connectionFlow.js +3 -3
  17. package/dist/connections/index.d.ts +4 -3
  18. package/dist/connections/picker.d.ts +18 -0
  19. package/dist/connections/picker.js +35 -6
  20. package/dist/connections/scopes.d.ts +8 -0
  21. package/dist/connections/scopes.js +9 -1
  22. package/dist/connections/storage.d.ts +9 -1
  23. package/dist/connections/storage.js +13 -1
  24. package/dist/connections/types.d.ts +16 -0
  25. package/dist/connections/useConnectionSubmit.d.ts +38 -2
  26. package/dist/connections/useConnectionSubmit.js +115 -71
  27. package/dist/connections.js +11 -10
  28. package/dist/credentials/SchemaForm.d.ts +7 -1
  29. package/dist/credentials/SchemaForm.js +64 -64
  30. package/dist/credentials/index.d.ts +2 -2
  31. package/dist/credentials/schema.d.ts +11 -1
  32. package/dist/credentials/schema.js +13 -5
  33. package/dist/credentials/types.d.ts +9 -0
  34. package/dist/credentials.js +5 -5
  35. 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 r(e) {
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 i(e) {
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 a(e, n) {
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 { i as initialValuesFromSchema, n as isSchemaComplete, t as isVisible, r as normalizeOptions, e as parseFormSchema, a as visibleValues };
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>;
@@ -1,6 +1,6 @@
1
1
  import { SchemaForm as e } from "./credentials/SchemaForm.js";
2
- import { initialValuesFromSchema as t, isSchemaComplete as n, parseFormSchema as r, visibleValues as i } from "./credentials/schema.js";
3
- import { AuthMethodNotice as a, AuthMethodSelector as o } from "./credentials/AuthMethodSelector.js";
4
- import { resolveSelectedMethod as s } from "./credentials/methods.js";
5
- import { englishTranslator as c, interpolate as l } from "./credentials/translate.js";
6
- export { a as AuthMethodNotice, o as AuthMethodSelector, e as SchemaForm, c as englishTranslator, t as initialValuesFromSchema, l as interpolate, n as isSchemaComplete, r as parseFormSchema, s as resolveSelectedMethod, i as visibleValues };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1113.6",
3
+ "version": "2026.1113.7",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",