@epam/ai-dial-ui-kit 0.13.0-dev.39 → 0.13.0-dev.40
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/{JsonEditor-DsxGV74b.js → JsonEditor-BEJaiIby.js} +1 -1
- package/dist/{JsonEditor-ByXdw2DW.cjs → JsonEditor-Buuy0b39.cjs} +1 -1
- package/dist/{MarkdownEditor-yLqLTK49.cjs → MarkdownEditor-CyL_NTT9.cjs} +1 -1
- package/dist/{MarkdownEditor-B371qY-K.js → MarkdownEditor-DID4gX3X.js} +1 -1
- package/dist/components-manifest.json +17 -2
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +73 -72
- package/dist/{index-DiKB9zEP.cjs → index-B9VwNsnG.cjs} +1 -1
- package/dist/{index-g9PIrkp9.js → index-orz_ei2U.js} +28 -28
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -61111,7 +61111,9 @@ const Pz = () => {
|
|
|
61111
61111
|
]
|
|
61112
61112
|
}
|
|
61113
61113
|
) });
|
|
61114
|
-
}
|
|
61114
|
+
};
|
|
61115
|
+
var d0 = /* @__PURE__ */ ((e) => (e.dark = "dark", e.light = "light", e))(d0 || {});
|
|
61116
|
+
const Yj = (e, t = Br.MyFiles) => {
|
|
61115
61117
|
const i = Object.values(Br).includes(
|
|
61116
61118
|
t
|
|
61117
61119
|
) ? t : Br.MyFiles, [s, n] = A(i), o = (a) => {
|
|
@@ -61227,9 +61229,9 @@ const Bz = {
|
|
|
61227
61229
|
selectTypePlaceholder: "Select type",
|
|
61228
61230
|
removeItemAriaLabel: "Remove item",
|
|
61229
61231
|
removeFieldAriaLabel: "Remove field"
|
|
61230
|
-
},
|
|
61232
|
+
}, u0 = fa(null);
|
|
61231
61233
|
function Zi() {
|
|
61232
|
-
const e = gt(
|
|
61234
|
+
const e = gt(u0);
|
|
61233
61235
|
if (!e)
|
|
61234
61236
|
throw new Error("useSchemaContext must be used inside DialSchemaRenderer");
|
|
61235
61237
|
return e;
|
|
@@ -61261,7 +61263,7 @@ function ze(e, t, i = 0) {
|
|
|
61261
61263
|
}
|
|
61262
61264
|
return s;
|
|
61263
61265
|
}
|
|
61264
|
-
function
|
|
61266
|
+
function h0(e) {
|
|
61265
61267
|
return e.map((t, i) => ({ entry: t, index: i })).sort((t, i) => {
|
|
61266
61268
|
const s = t.entry[1]["dial:meta"]?.["dial:propertyOrder"] ?? 1 / 0, n = i.entry[1]["dial:meta"]?.["dial:propertyOrder"] ?? 1 / 0;
|
|
61267
61269
|
return s !== n ? s - n : t.index - i.index;
|
|
@@ -61276,7 +61278,7 @@ function Yn(e) {
|
|
|
61276
61278
|
function Oc(e) {
|
|
61277
61279
|
return e.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\b\w/g, (t) => t.toUpperCase());
|
|
61278
61280
|
}
|
|
61279
|
-
function
|
|
61281
|
+
function p0(e, t) {
|
|
61280
61282
|
return e.type === Ze.Null ? "null" : e.$ref ? ze(e, t).title ?? e.$ref.split("/").pop() ?? "Option" : e.title ? e.title : e.type ? Array.isArray(e.type) ? e.type.join(" | ") : e.type : e.discriminator ? Object.keys(e.discriminator.mapping).join(" | ") : e.const != null ? String(e.const) : e.oneOf ? "One of options" : "Option";
|
|
61281
61283
|
}
|
|
61282
61284
|
function ms(e, t, i = 0) {
|
|
@@ -61462,7 +61464,7 @@ function Vz(e, t, i) {
|
|
|
61462
61464
|
}
|
|
61463
61465
|
return `Item ${i + 1}`;
|
|
61464
61466
|
}
|
|
61465
|
-
function
|
|
61467
|
+
function g0(e) {
|
|
61466
61468
|
switch (Array.isArray(e.type) ? e.type[0] : e.type) {
|
|
61467
61469
|
case Ze.String:
|
|
61468
61470
|
return "";
|
|
@@ -61546,7 +61548,7 @@ const ga = ({
|
|
|
61546
61548
|
),
|
|
61547
61549
|
c && /* @__PURE__ */ p.jsx("div", { className: f, children: o })
|
|
61548
61550
|
] });
|
|
61549
|
-
},
|
|
61551
|
+
}, f0 = ({
|
|
61550
61552
|
schema: e,
|
|
61551
61553
|
value: t,
|
|
61552
61554
|
onChange: i,
|
|
@@ -61620,7 +61622,7 @@ const ga = ({
|
|
|
61620
61622
|
path: s,
|
|
61621
61623
|
level: n
|
|
61622
61624
|
}) => {
|
|
61623
|
-
const { rootSchema: o, texts: r } = Zi(), a = ze(e, o), l =
|
|
61625
|
+
const { rootSchema: o, texts: r } = Zi(), a = ze(e, o), l = h0(
|
|
61624
61626
|
Object.entries(a.properties ?? {}).filter(
|
|
61625
61627
|
([, u]) => !ze(u, o).isHidden
|
|
61626
61628
|
)
|
|
@@ -61628,7 +61630,7 @@ const ga = ({
|
|
|
61628
61630
|
return l.length === 0 ? /* @__PURE__ */ p.jsx("p", { className: "dial-tiny-text text-secondary italic", children: r.noConfigurableProperties }) : /* @__PURE__ */ p.jsx("div", { className: "flex flex-col gap-4", children: l.map(([u, h]) => {
|
|
61629
61631
|
const f = ze(h, o).title ?? h.title ?? Oc(u), m = c.includes(u);
|
|
61630
61632
|
return /* @__PURE__ */ p.jsx(
|
|
61631
|
-
|
|
61633
|
+
f0,
|
|
61632
61634
|
{
|
|
61633
61635
|
schema: h,
|
|
61634
61636
|
value: d[u],
|
|
@@ -61683,7 +61685,7 @@ const ga = ({
|
|
|
61683
61685
|
);
|
|
61684
61686
|
y = { ...ms(S, o) ?? {}, [f.propertyName]: x };
|
|
61685
61687
|
} else
|
|
61686
|
-
y = ms(g, o) ??
|
|
61688
|
+
y = ms(g, o) ?? g0(g);
|
|
61687
61689
|
i([...c, y]);
|
|
61688
61690
|
}, w = (x) => {
|
|
61689
61691
|
i(c.filter((y, S) => S !== x));
|
|
@@ -61871,7 +61873,7 @@ const ga = ({
|
|
|
61871
61873
|
}, f = d[h];
|
|
61872
61874
|
if (e.discriminatorDisplay === Nc.Radio)
|
|
61873
61875
|
return /* @__PURE__ */ p.jsx("div", { role: "radiogroup", className: "flex flex-col gap-2", children: d.map((v, C) => {
|
|
61874
|
-
const w = ze(v, o), b =
|
|
61876
|
+
const w = ze(v, o), b = p0(v, o) ?? `Option ${C + 1}`, x = h === C;
|
|
61875
61877
|
return /* @__PURE__ */ p.jsxs("div", { className: "flex flex-col", children: [
|
|
61876
61878
|
/* @__PURE__ */ p.jsx(
|
|
61877
61879
|
xo,
|
|
@@ -61934,7 +61936,7 @@ const ga = ({
|
|
|
61934
61936
|
}) => {
|
|
61935
61937
|
const { rootSchema: o, readonly: r = !1 } = Zi(), a = e.anyOf ?? [], l = a.map((f, m) => ({
|
|
61936
61938
|
value: String(m),
|
|
61937
|
-
label:
|
|
61939
|
+
label: p0(f, o)
|
|
61938
61940
|
})), c = Gz(t, a, o), d = a[c], h = ze(d, o).type === Ze.Null, g = (f) => {
|
|
61939
61941
|
const m = ze(a[f], o);
|
|
61940
61942
|
if (m.type === Ze.Null) {
|
|
@@ -61989,7 +61991,7 @@ const ga = ({
|
|
|
61989
61991
|
}
|
|
61990
61992
|
) })
|
|
61991
61993
|
] });
|
|
61992
|
-
},
|
|
61994
|
+
}, m0 = ({
|
|
61993
61995
|
schema: e,
|
|
61994
61996
|
value: t,
|
|
61995
61997
|
onChange: i,
|
|
@@ -62140,7 +62142,7 @@ const ga = ({
|
|
|
62140
62142
|
id: Math.random().toString(36).slice(2),
|
|
62141
62143
|
key: e,
|
|
62142
62144
|
value: t
|
|
62143
|
-
}),
|
|
62145
|
+
}), v0 = (e) => !!(e.oneOf || e.anyOf || e.type === Ze.Array || Yn(e)), _z = ({
|
|
62144
62146
|
pairId: e,
|
|
62145
62147
|
pairKey: t,
|
|
62146
62148
|
pairValue: i,
|
|
@@ -62163,7 +62165,7 @@ const ga = ({
|
|
|
62163
62165
|
markTouched: C = () => {
|
|
62164
62166
|
},
|
|
62165
62167
|
skipUntouched: w = !1
|
|
62166
|
-
} = Zi(), [b, x] = A(t), y =
|
|
62168
|
+
} = Zi(), [b, x] = A(t), y = v0(s), S = [...c, e, "key"].join("."), F = (!w || v.has(S)) && t === "", E = /* @__PURE__ */ p.jsxs("div", { className: "flex gap-2 items-start", children: [
|
|
62167
62169
|
/* @__PURE__ */ p.jsxs("div", { className: y ? "flex-1 min-w-0" : "w-2/5 min-w-0", children: [
|
|
62168
62170
|
/* @__PURE__ */ p.jsx(
|
|
62169
62171
|
Qs,
|
|
@@ -62187,7 +62189,7 @@ const ga = ({
|
|
|
62187
62189
|
)
|
|
62188
62190
|
] }),
|
|
62189
62191
|
!y && /* @__PURE__ */ p.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ p.jsx(
|
|
62190
|
-
|
|
62192
|
+
m0,
|
|
62191
62193
|
{
|
|
62192
62194
|
schema: s,
|
|
62193
62195
|
value: i,
|
|
@@ -62246,7 +62248,7 @@ const ga = ({
|
|
|
62246
62248
|
texts: r,
|
|
62247
62249
|
readonly: a = !1,
|
|
62248
62250
|
inputClassName: l
|
|
62249
|
-
} = Zi(), c = e.additionalProperties === !0 || e.additionalProperties == null ? { type: "string" } : typeof e.additionalProperties == "object" ? ze(e.additionalProperties, o) : { type: "string" }, d =
|
|
62251
|
+
} = Zi(), c = e.additionalProperties === !0 || e.additionalProperties == null ? { type: "string" } : typeof e.additionalProperties == "object" ? ze(e.additionalProperties, o) : { type: "string" }, d = v0(c), [u, h] = A(
|
|
62250
62252
|
() => Object.entries(t ?? {}).map(
|
|
62251
62253
|
([b, x]) => rC(b, x)
|
|
62252
62254
|
)
|
|
@@ -62262,7 +62264,7 @@ const ga = ({
|
|
|
62262
62264
|
(S, R) => R === b ? { ...S, value: x } : S
|
|
62263
62265
|
);
|
|
62264
62266
|
h(y), i(g(y));
|
|
62265
|
-
}, v = () => d ? ms(c, o) ??
|
|
62267
|
+
}, v = () => d ? ms(c, o) ?? g0(c) : "", C = () => {
|
|
62266
62268
|
h((b) => [...b, rC("", v())]);
|
|
62267
62269
|
}, w = (b) => {
|
|
62268
62270
|
const x = u.filter((y, S) => S !== b);
|
|
@@ -62302,14 +62304,12 @@ const ga = ({
|
|
|
62302
62304
|
}
|
|
62303
62305
|
) })
|
|
62304
62306
|
] });
|
|
62305
|
-
}
|
|
62306
|
-
var v0 = /* @__PURE__ */ ((e) => (e.dark = "dark", e.light = "light", e))(v0 || {});
|
|
62307
|
-
const C0 = ({ value: e, onChange: t, theme: i = v0.dark, height: s = 240 }) => {
|
|
62307
|
+
}, C0 = ({ value: e, onChange: t, theme: i = d0.dark, height: s = 240 }) => {
|
|
62308
62308
|
const { readonly: n } = Zi(), [o, r] = A(null), [a, l] = A(
|
|
62309
62309
|
() => JSON.stringify(e, null, 2)
|
|
62310
62310
|
);
|
|
62311
62311
|
we(() => {
|
|
62312
|
-
typeof window < "u" && import("./JsonEditor-
|
|
62312
|
+
typeof window < "u" && import("./JsonEditor-BEJaiIby.js").then((d) => {
|
|
62313
62313
|
r(() => d.DialJsonEditor);
|
|
62314
62314
|
});
|
|
62315
62315
|
}, []);
|
|
@@ -62423,7 +62423,7 @@ const C0 = ({ value: e, onChange: t, theme: i = v0.dark, height: s = 240 }) => {
|
|
|
62423
62423
|
const C = m && o && Sd(t), w = !r && C ? `${g.title ?? "Field"} is required` : void 0;
|
|
62424
62424
|
v = /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
62425
62425
|
/* @__PURE__ */ p.jsx(
|
|
62426
|
-
|
|
62426
|
+
m0,
|
|
62427
62427
|
{
|
|
62428
62428
|
schema: g,
|
|
62429
62429
|
value: t,
|
|
@@ -62468,13 +62468,13 @@ const C0 = ({ value: e, onChange: t, theme: i = v0.dark, height: s = 240 }) => {
|
|
|
62468
62468
|
w(I), l?.(I), c?.(D, k);
|
|
62469
62469
|
}, R = new Set(Object.keys(e.properties ?? {})), F = Object.keys(C).filter(
|
|
62470
62470
|
(D) => !R.has(D)
|
|
62471
|
-
), E =
|
|
62471
|
+
), E = h0(
|
|
62472
62472
|
Object.entries(e.properties ?? {}).filter(
|
|
62473
62473
|
([, D]) => !ze(D, e).isHidden
|
|
62474
62474
|
)
|
|
62475
62475
|
), T = e.required ?? [];
|
|
62476
62476
|
return /* @__PURE__ */ p.jsx(
|
|
62477
|
-
|
|
62477
|
+
u0.Provider,
|
|
62478
62478
|
{
|
|
62479
62479
|
value: {
|
|
62480
62480
|
rootSchema: e,
|
|
@@ -62494,7 +62494,7 @@ const C0 = ({ value: e, onChange: t, theme: i = v0.dark, height: s = 240 }) => {
|
|
|
62494
62494
|
const I = ze(k, e), L = I.title ?? k.title ?? Oc(D), M = T.includes(D), G = C[D];
|
|
62495
62495
|
if (a === Gr.Flat)
|
|
62496
62496
|
return /* @__PURE__ */ p.jsx(
|
|
62497
|
-
|
|
62497
|
+
f0,
|
|
62498
62498
|
{
|
|
62499
62499
|
schema: k,
|
|
62500
62500
|
value: G,
|
|
@@ -63787,14 +63787,14 @@ const lC = {
|
|
|
63787
63787
|
}
|
|
63788
63788
|
);
|
|
63789
63789
|
return t && l !== "password" ? /* @__PURE__ */ p.jsx(wt, { tooltip: u || d, children: F() }) : F();
|
|
63790
|
-
}, DW = () => import("./JsonEditor-
|
|
63790
|
+
}, DW = () => import("./JsonEditor-BEJaiIby.js"), PW = () => import("./MarkdownEditor-DID4gX3X.js");
|
|
63791
63791
|
export {
|
|
63792
63792
|
tr as $,
|
|
63793
63793
|
tc as A,
|
|
63794
63794
|
ae as B,
|
|
63795
63795
|
gW as C,
|
|
63796
63796
|
_C as D,
|
|
63797
|
-
|
|
63797
|
+
d0 as E,
|
|
63798
63798
|
$v as F,
|
|
63799
63799
|
Kc as G,
|
|
63800
63800
|
Mf as H,
|
package/dist/src/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export type { FileManagerGridRow } from './components/FileManager/FileManagerCon
|
|
|
101
101
|
export type { GridOptions, ToolbarOptions, BulkActionsToolbarOptions, } from './components/FileManager/FileManager';
|
|
102
102
|
export { DialDestinationFolderPopup } from './components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup';
|
|
103
103
|
export { DialFoldersTree } from './components/FileManager/components/FoldersTree/FoldersTree';
|
|
104
|
+
export { EditorThemes } from './types/editor';
|
|
104
105
|
export { ButtonVariant, ButtonAppearance } from './types/button';
|
|
105
106
|
export { RadioGroupOrientation } from './types/radio-group';
|
|
106
107
|
export { PopupSize } from './types/popup';
|