@epam/ai-dial-builder-form 1.2.0-dev.88 → 1.2.0-dev.92
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/components/BuilderFormBody/BuilderFormBody.d.ts.map +1 -1
- package/components/BuilderFormContainer/BuilderFormContainer.d.ts.map +1 -1
- package/components/BuilderFormHeader/BuilderFormHeader.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.js +134 -106
- package/models/builder-form-body-props.d.ts +9 -0
- package/models/builder-form-body-props.d.ts.map +1 -1
- package/models/builder-form-container-props.d.ts +6 -0
- package/models/builder-form-container-props.d.ts.map +1 -1
- package/models/builder-form-header-props.d.ts +3 -0
- package/models/builder-form-header-props.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuilderFormBody.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormBody/BuilderFormBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BuilderFormBody.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormBody/BuilderFormBody.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAOjF,8GAA8G;AAC9G,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2DpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuilderFormContainer.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormContainer/BuilderFormContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAM3F,uIAAuI;AACvI,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"BuilderFormContainer.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormContainer/BuilderFormContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAM3F,uIAAuI;AACvI,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA0E9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuilderFormHeader.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormHeader/BuilderFormHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAIrF,uOAAuO;AACvO,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"BuilderFormHeader.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormHeader/BuilderFormHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAIrF,uOAAuO;AACvO,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA8ExD,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.
|
|
2
|
-
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.absolute{position:absolute}.sticky{position:sticky}.bottom-0{bottom:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-full{height:100%}.min-h-0{min-height:0}.w-16{width:4rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow-\[1\]{flex-grow:1}.grow-\[2\]{flex-grow:2}.basis-0{flex-basis:0px}.resize{resize:both}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:1280px){.desktop\:
|
|
1
|
+
._body_m2y60_2._body_m2y60_2{flex-direction:column}._sideColumn_m2y60_6._sideColumn_m2y60_6{width:100%}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:none}@media (width>=1280px){._body_m2y60_2._body_m2y60_2{flex-direction:row}._sideColumn_m2y60_6._sideColumn_m2y60_6{flex-shrink:0;width:400px}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:block}}._header_oo757_4._header_oo757_4{border-block-width:1px 0;padding-inline:16px}@media (width>=1280px){._header_oo757_4._header_oo757_4{border-block-width:0 1px;padding-inline:32px}}._header_oo757_4._header_oo757_4{border-color:var(--bfh-border,var(--stroke-tertiary,#e0e6f0))}._actions_oo757_20._actions_oo757_20{display:none}@media (width>=1280px){._actions_oo757_20._actions_oo757_20{display:flex}}._title_oo757_29{font-family:var(--bfh-font-family,inherit)}._container_k1awi_1{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa))}._footer_k1awi_10._footer_k1awi_10{display:flex}@media (width>=1280px){._footer_k1awi_10._footer_k1awi_10{display:none}}._footer_k1awi_10._footer_k1awi_10{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa));box-shadow:0 2px 12px 0 var(--shadow-xs-2,#161b2d08), 0 2px 6px 0 var(--shadow-xs-1,#2764d933)}._section_l1mnx_1{border-color:var(--es-border-color,var(--stroke-tertiary,#e0e6f0))}._title_l1mnx_5{color:var(--es-title-color,var(--text-primary,#161b2d))}._headerBorder_1kidu_1{border-bottom-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._footerBorder_1kidu_5{border-top-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._sidebarBorder_1kidu_9{border-inline-end-color:var(--el-sidebar-border-color,var(--stroke-tertiary,#e0e6f0))}._box_c9as8_1{background:var(--aa-box-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--aa-box-border,var(--stroke-tertiary,#e0e6f0))}._icon_c9as8_6{color:var(--aa-icon,var(--text-secondary,#57647a))}._caption_c9as8_10{color:var(--aa-caption,var(--text-tertiary,#848e9c))}
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.absolute{position:absolute}.sticky{position:sticky}.bottom-0{bottom:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-full{height:100%}.min-h-0{min-height:0}.w-16{width:4rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow-\[1\]{flex-grow:1}.grow-\[2\]{flex-grow:2}.basis-0{flex-basis:0px}.resize{resize:both}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:1280px){.desktop\:flex{display:flex}.desktop\:hidden{display:none}.desktop\:w-\[360px\]{width:360px}.desktop\:flex-1{flex:1 1 0%}.desktop\:shrink-0{flex-shrink:0}.desktop\:basis-40{flex-basis:10rem}.desktop\:flex-row{flex-direction:row}.desktop\:items-start{align-items:flex-start}.desktop\:overflow-hidden{overflow:hidden}.desktop\:overflow-y-auto{overflow-y:auto}.desktop\:border-e{border-inline-end-width:1px}.desktop\:px-8{padding-left:2rem;padding-right:2rem}.desktop\:pb-3{padding-bottom:.75rem}.desktop\:pt-3{padding-top:.75rem}}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>\*\]\:flex-1>*{flex:1 1 0%}
|
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RESIZABLE_TEXTAREA_CLASS_NAME as e, TAG_INPUT_TAG_CLASS_NAME as t, buildCssVars as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { ButtonAppearance as i, ButtonVariant as a, DIAL_ICON_SIZE as o, DIAL_KIT_ICON_STROKE as s, DangerIconButton as c, ElementSize as l, GhostIconButton as u, Input as d, Label as f, LinkButton as p, NeutralButton as m, Popup as h, PrimaryButton as g, Select as _, Spinner as v, TagInput as y, Textarea as b, TextareaResize as x } from "@epam/ai-dial-ui-kit";
|
|
3
3
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
4
|
-
import { IconArrowLeft as
|
|
5
|
-
import { Suspense as
|
|
4
|
+
import { IconArrowLeft as ee, IconArrowNarrowLeft as T, IconPhoto as E, IconPlus as D, IconTrashX as te } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as O, useCallback as k, useEffect as A, useId as j, useRef as M, useState as N } from "react";
|
|
6
6
|
//#region src/components/BuilderFormActions/BuilderFormActions.tsx
|
|
7
|
-
var
|
|
7
|
+
var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: s }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
|
|
8
8
|
label: e.cancelButtonLabel,
|
|
9
9
|
onClick: t,
|
|
10
10
|
disabled: r,
|
|
@@ -19,57 +19,83 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
19
19
|
"aria-hidden": !0,
|
|
20
20
|
children: /* @__PURE__ */ C(v, { size: o.SM })
|
|
21
21
|
}) : void 0
|
|
22
|
-
})] }),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
22
|
+
})] }), F = {
|
|
23
|
+
body: "_body_m2y60_2",
|
|
24
|
+
sideColumn: "_sideColumn_m2y60_6",
|
|
25
|
+
reservedColumn: "_reservedColumn_m2y60_10"
|
|
26
|
+
}, I = r("flex flex-col", F.sideColumn), L = ({ left: e, children: t, metadata: n, layout: i }) => {
|
|
27
|
+
let a = e != null && n == null && i?.reserveEndColumn !== !1, o = i ? {
|
|
28
|
+
flex: `0 1 ${i.sideColumnWidth ?? "400px"}`,
|
|
29
|
+
width: "100%",
|
|
30
|
+
minWidth: `min(100%, ${i.sideColumnWidth ?? "400px"})`,
|
|
31
|
+
maxWidth: "100%"
|
|
32
|
+
} : void 0, s = i ? {
|
|
33
|
+
flexDirection: "row",
|
|
34
|
+
flexWrap: "wrap",
|
|
35
|
+
columnGap: i.columnGap ?? "0px",
|
|
36
|
+
alignItems: "stretch"
|
|
37
|
+
} : void 0;
|
|
38
|
+
return /* @__PURE__ */ w("div", {
|
|
39
|
+
className: r("flex min-w-0 flex-1", F.body),
|
|
40
|
+
style: s,
|
|
41
|
+
children: [
|
|
42
|
+
e != null && /* @__PURE__ */ C("div", {
|
|
43
|
+
className: I,
|
|
44
|
+
style: o,
|
|
45
|
+
children: e
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ C("div", {
|
|
48
|
+
className: "flex w-full min-w-0 flex-1 flex-col",
|
|
49
|
+
style: i ? {
|
|
50
|
+
flex: "1 1 320px",
|
|
51
|
+
minWidth: "min(100%, 320px)"
|
|
52
|
+
} : void 0,
|
|
53
|
+
children: t
|
|
54
|
+
}),
|
|
55
|
+
n != null && /* @__PURE__ */ C("div", {
|
|
56
|
+
className: I,
|
|
57
|
+
style: o,
|
|
58
|
+
children: n
|
|
59
|
+
}),
|
|
60
|
+
a && /* @__PURE__ */ C("div", {
|
|
61
|
+
"aria-hidden": !0,
|
|
62
|
+
style: o,
|
|
63
|
+
className: r(F.reservedColumn, F.sideColumn)
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
}, R = {
|
|
68
|
+
header: "_header_oo757_4",
|
|
69
|
+
actions: "_actions_oo757_20",
|
|
70
|
+
title: "_title_oo757_29"
|
|
71
|
+
}, z = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: c = !1, isSubmitDisabled: l = !1, isSubmitting: d = !1, backIcon: f, styles: p }) => {
|
|
72
|
+
let { colors: m, typography: h } = p ?? {}, g = h?.fontClassName ?? "dial-h1-text", _ = !!h?.fontClassName;
|
|
47
73
|
return /* @__PURE__ */ w("div", {
|
|
48
74
|
style: n({
|
|
49
|
-
"--bfh-border":
|
|
50
|
-
"--bfh-font-family":
|
|
75
|
+
"--bfh-border": m?.borderColor,
|
|
76
|
+
"--bfh-font-family": _ ? void 0 : h?.fontFamily
|
|
51
77
|
}),
|
|
52
|
-
className: r("flex h-16 items-center justify-between gap-6
|
|
78
|
+
className: r("flex h-16 items-center justify-between gap-6", R.header),
|
|
53
79
|
children: [
|
|
54
80
|
/* @__PURE__ */ w("div", {
|
|
55
81
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
56
82
|
children: [/* @__PURE__ */ C(u, {
|
|
57
|
-
icon: /* @__PURE__ */ C(
|
|
83
|
+
icon: f === void 0 ? /* @__PURE__ */ C(ee, {
|
|
58
84
|
size: o.LG,
|
|
59
85
|
className: "rtl:scale-x-[-1]",
|
|
60
86
|
"aria-hidden": !0,
|
|
61
87
|
stroke: s
|
|
62
|
-
}),
|
|
88
|
+
}) : f,
|
|
63
89
|
"aria-label": e.backButtonLabel,
|
|
64
90
|
onClick: t
|
|
65
91
|
}), /* @__PURE__ */ C("h1", {
|
|
66
|
-
className: r("truncate", R.title,
|
|
92
|
+
className: r("truncate", R.title, g),
|
|
67
93
|
children: e.title
|
|
68
94
|
})]
|
|
69
95
|
}),
|
|
70
96
|
/* @__PURE__ */ C("div", {
|
|
71
|
-
className: "
|
|
72
|
-
children: /* @__PURE__ */ C(
|
|
97
|
+
className: r("items-center gap-2", R.actions),
|
|
98
|
+
children: /* @__PURE__ */ C(P, {
|
|
73
99
|
labels: e,
|
|
74
100
|
onCancel: i,
|
|
75
101
|
onSubmit: a,
|
|
@@ -87,16 +113,16 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
87
113
|
]
|
|
88
114
|
});
|
|
89
115
|
}, B = {
|
|
90
|
-
container: "
|
|
91
|
-
footer: "
|
|
92
|
-
}, V = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: o = !1, isSubmitDisabled: s = !1, isSubmitting: c = !1,
|
|
93
|
-
let { colors:
|
|
116
|
+
container: "_container_k1awi_1",
|
|
117
|
+
footer: "_footer_k1awi_10"
|
|
118
|
+
}, V = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: o = !1, isSubmitDisabled: s = !1, isSubmitting: c = !1, backIcon: l, className: u, left: d, children: f, metadata: p, layout: m, styles: h }) => {
|
|
119
|
+
let { colors: g, header: _, cssVars: v } = h ?? {};
|
|
94
120
|
return /* @__PURE__ */ w("div", {
|
|
95
121
|
style: {
|
|
96
|
-
...n({ "--bfc-bg":
|
|
97
|
-
...
|
|
122
|
+
...n({ "--bfc-bg": g?.background }),
|
|
123
|
+
...v
|
|
98
124
|
},
|
|
99
|
-
className: r("flex h-full w-full flex-col overflow-y-auto", B.container),
|
|
125
|
+
className: r("flex h-full w-full flex-col overflow-y-auto", u, B.container),
|
|
100
126
|
children: [
|
|
101
127
|
/* @__PURE__ */ C(z, {
|
|
102
128
|
labels: e,
|
|
@@ -106,16 +132,18 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
106
132
|
isCancelDisabled: o,
|
|
107
133
|
isSubmitDisabled: s,
|
|
108
134
|
isSubmitting: c,
|
|
109
|
-
|
|
135
|
+
backIcon: l,
|
|
136
|
+
styles: _
|
|
110
137
|
}),
|
|
111
138
|
/* @__PURE__ */ C(L, {
|
|
112
|
-
left:
|
|
113
|
-
metadata:
|
|
114
|
-
|
|
139
|
+
left: d,
|
|
140
|
+
metadata: p,
|
|
141
|
+
layout: m,
|
|
142
|
+
children: f
|
|
115
143
|
}),
|
|
116
144
|
/* @__PURE__ */ C("div", {
|
|
117
|
-
className: r("sticky bottom-0 z-10
|
|
118
|
-
children: /* @__PURE__ */ C(
|
|
145
|
+
className: r("sticky bottom-0 z-10 items-center gap-2 p-3", B.footer),
|
|
146
|
+
children: /* @__PURE__ */ C(P, {
|
|
119
147
|
labels: e,
|
|
120
148
|
onCancel: i,
|
|
121
149
|
onSubmit: a,
|
|
@@ -151,7 +179,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
151
179
|
footerBorder: "_footerBorder_1kidu_5",
|
|
152
180
|
sidebarBorder: "_sidebarBorder_1kidu_9"
|
|
153
181
|
}, K = ({ title: e, onBack: t, backAriaLabel: i = "Back", actions: a, leftContent: c, rightContent: l, isSaving: d = !1, labels: f, styles: p, dir: m }) => {
|
|
154
|
-
let h =
|
|
182
|
+
let h = j(), g = d ? f?.savingStatusLabel ?? "Saving" : "", _ = n({
|
|
155
183
|
"--el-header-border-color": p?.colors?.headerBorderColor,
|
|
156
184
|
"--el-sidebar-border-color": p?.colors?.sidebarBorderColor
|
|
157
185
|
});
|
|
@@ -172,7 +200,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
172
200
|
children: [/* @__PURE__ */ w("div", {
|
|
173
201
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
174
202
|
children: [/* @__PURE__ */ C(u, {
|
|
175
|
-
icon: /* @__PURE__ */ C(
|
|
203
|
+
icon: /* @__PURE__ */ C(T, {
|
|
176
204
|
size: o.LG,
|
|
177
205
|
stroke: s,
|
|
178
206
|
"aria-hidden": !0,
|
|
@@ -227,7 +255,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
227
255
|
src: t,
|
|
228
256
|
alt: i,
|
|
229
257
|
className: "h-16 w-16 object-cover"
|
|
230
|
-
}) : /* @__PURE__ */ C(
|
|
258
|
+
}) : /* @__PURE__ */ C(E, {
|
|
231
259
|
size: o.LG,
|
|
232
260
|
stroke: s,
|
|
233
261
|
"aria-hidden": !0,
|
|
@@ -237,7 +265,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
237
265
|
className: "flex flex-col gap-3",
|
|
238
266
|
children: [/* @__PURE__ */ C(p, {
|
|
239
267
|
size: l.Small,
|
|
240
|
-
iconBefore: /* @__PURE__ */ C(
|
|
268
|
+
iconBefore: /* @__PURE__ */ C(D, {
|
|
241
269
|
size: o.SM,
|
|
242
270
|
stroke: s,
|
|
243
271
|
"aria-hidden": !0
|
|
@@ -253,7 +281,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
253
281
|
})]
|
|
254
282
|
});
|
|
255
283
|
}, Y = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
|
|
256
|
-
let c =
|
|
284
|
+
let c = k((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = k((e) => /* @__PURE__ */ C("div", {
|
|
257
285
|
className: "dial-small-text px-6 py-3",
|
|
258
286
|
children: /* @__PURE__ */ C("p", {
|
|
259
287
|
className: "mb-3 text-secondary",
|
|
@@ -286,7 +314,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
286
314
|
s.deleteConfirmMultipleText,
|
|
287
315
|
s.deleteConfirmItemsLabel
|
|
288
316
|
]);
|
|
289
|
-
return /* @__PURE__ */ C(
|
|
317
|
+
return /* @__PURE__ */ C(O, {
|
|
290
318
|
fallback: null,
|
|
291
319
|
children: e && /* @__PURE__ */ C(i, {
|
|
292
320
|
isOpen: e,
|
|
@@ -327,27 +355,27 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
327
355
|
name: "",
|
|
328
356
|
description: ""
|
|
329
357
|
}), Z = ({ value: t, onChange: n, availableLocaleOptions: u = [], labels: f, className: m, summaryClassName: g = "dial-body-text text-secondary", rowLabelClassName: v = "dial-tiny-lead-text text-secondary" }) => {
|
|
330
|
-
let { summaryLabel: y, addLabel: S, editLabel:
|
|
331
|
-
|
|
332
|
-
|
|
358
|
+
let { summaryLabel: y, addLabel: S, editLabel: ee, popupTitle: T, addLocaleLabel: E, localeRowLabel: O = "Locale", languageLabel: k, nameLabel: j, namePlaceholder: P, descriptionLabel: F, descriptionPlaceholder: I, deleteAriaLabel: L, cancelLabel: R = "Cancel", saveLabel: z = "Save" } = f, [B, V] = N(!1), [H, U] = N([]), W = M(0);
|
|
359
|
+
A(() => {
|
|
360
|
+
B && U(t.length > 0 ? t : [X(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), u)]);
|
|
333
361
|
}, [
|
|
334
|
-
|
|
362
|
+
B,
|
|
335
363
|
t,
|
|
336
364
|
u
|
|
337
365
|
]);
|
|
338
|
-
let
|
|
339
|
-
n(
|
|
340
|
-
},
|
|
341
|
-
let e = new Set(
|
|
342
|
-
|
|
343
|
-
},
|
|
344
|
-
|
|
366
|
+
let G = () => V(!0), K = () => V(!1), q = () => {
|
|
367
|
+
n(H.filter((e) => e.language && e.name)), V(!1);
|
|
368
|
+
}, J = () => {
|
|
369
|
+
let e = new Set(H.map((e) => e.language).filter(Boolean));
|
|
370
|
+
U((t) => [...t, X(`locale-row-${++W.current}`, e, u)]);
|
|
371
|
+
}, Y = (e, t) => {
|
|
372
|
+
U((n) => n.map((n) => n.id === e ? {
|
|
345
373
|
...n,
|
|
346
374
|
...t
|
|
347
375
|
} : n));
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
}, Q = (e) => u.find((t) => t.code === e)?.label ?? e.toUpperCase(), $ =
|
|
376
|
+
}, Z = (e) => {
|
|
377
|
+
U((t) => t.filter((t) => t.id !== e));
|
|
378
|
+
}, Q = (e) => u.find((t) => t.code === e)?.label ?? e.toUpperCase(), $ = H.some((e) => !e.language || !e.name);
|
|
351
379
|
return u.length === 0 ? null : /* @__PURE__ */ w("div", {
|
|
352
380
|
className: r("flex items-center gap-2", m),
|
|
353
381
|
children: [
|
|
@@ -356,32 +384,32 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
356
384
|
children: `${y}: ${t.map((e) => `[${Q(e.language)}]`).join(", ")}`
|
|
357
385
|
}),
|
|
358
386
|
/* @__PURE__ */ C(p, {
|
|
359
|
-
label: t.length > 0 ?
|
|
360
|
-
iconBefore: /* @__PURE__ */ C(
|
|
387
|
+
label: t.length > 0 ? ee : S,
|
|
388
|
+
iconBefore: /* @__PURE__ */ C(D, {
|
|
361
389
|
size: o.SM,
|
|
362
390
|
"aria-hidden": !0,
|
|
363
391
|
stroke: s
|
|
364
392
|
}),
|
|
365
393
|
className: "!px-0",
|
|
366
|
-
onClick:
|
|
394
|
+
onClick: G
|
|
367
395
|
}),
|
|
368
396
|
/* @__PURE__ */ C(h, {
|
|
369
|
-
open:
|
|
370
|
-
header:
|
|
371
|
-
onClose:
|
|
397
|
+
open: B,
|
|
398
|
+
header: T,
|
|
399
|
+
onClose: K,
|
|
372
400
|
mainButtons: [{
|
|
373
|
-
label:
|
|
374
|
-
onClick:
|
|
401
|
+
label: R,
|
|
402
|
+
onClick: K
|
|
375
403
|
}, {
|
|
376
|
-
label:
|
|
404
|
+
label: z,
|
|
377
405
|
variant: a.Primary,
|
|
378
406
|
disabled: $,
|
|
379
|
-
onClick:
|
|
407
|
+
onClick: q
|
|
380
408
|
}],
|
|
381
409
|
children: /* @__PURE__ */ w("div", {
|
|
382
410
|
className: "flex flex-col gap-8 px-6 py-3",
|
|
383
|
-
children: [
|
|
384
|
-
let r = new Set(
|
|
411
|
+
children: [H.map((t, n) => {
|
|
412
|
+
let r = new Set(H.filter((e) => e.id !== t.id).map((e) => e.language).filter(Boolean));
|
|
385
413
|
return /* @__PURE__ */ w("div", {
|
|
386
414
|
className: "flex flex-col gap-2",
|
|
387
415
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -389,31 +417,31 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
389
417
|
children: [/* @__PURE__ */ w("span", {
|
|
390
418
|
className: v,
|
|
391
419
|
children: [
|
|
392
|
-
|
|
420
|
+
O,
|
|
393
421
|
" ",
|
|
394
422
|
n + 1
|
|
395
423
|
]
|
|
396
424
|
}), /* @__PURE__ */ C(c, {
|
|
397
425
|
appearance: i.Ghost,
|
|
398
426
|
size: l.Small,
|
|
399
|
-
icon: /* @__PURE__ */ C(
|
|
427
|
+
icon: /* @__PURE__ */ C(te, {
|
|
400
428
|
size: o.SM,
|
|
401
429
|
"aria-hidden": !0,
|
|
402
430
|
stroke: s
|
|
403
431
|
}),
|
|
404
|
-
"aria-label": `${
|
|
405
|
-
onClick: () =>
|
|
432
|
+
"aria-label": `${L} ${n + 1}`,
|
|
433
|
+
onClick: () => Z(t.id)
|
|
406
434
|
})]
|
|
407
435
|
}), /* @__PURE__ */ w("div", {
|
|
408
436
|
role: "group",
|
|
409
|
-
"aria-label": `${
|
|
437
|
+
"aria-label": `${O} ${n + 1}`,
|
|
410
438
|
className: "flex flex-col gap-5",
|
|
411
439
|
children: [/* @__PURE__ */ w("div", {
|
|
412
440
|
className: "flex flex-col gap-5 desktop:flex-row desktop:items-start",
|
|
413
441
|
children: [/* @__PURE__ */ C(_, {
|
|
414
442
|
id: `${t.id}-language`,
|
|
415
443
|
labelProps: {
|
|
416
|
-
label:
|
|
444
|
+
label: k,
|
|
417
445
|
required: !0
|
|
418
446
|
},
|
|
419
447
|
className: "desktop:shrink-0 desktop:basis-40",
|
|
@@ -423,48 +451,48 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
423
451
|
disabled: r.has(e.code)
|
|
424
452
|
})),
|
|
425
453
|
value: t.language,
|
|
426
|
-
onChange: (e) =>
|
|
454
|
+
onChange: (e) => Y(t.id, { language: e })
|
|
427
455
|
}), /* @__PURE__ */ C(d, {
|
|
428
456
|
id: `${t.id}-name`,
|
|
429
457
|
containerClassName: "min-w-0 flex-1",
|
|
430
458
|
required: !0,
|
|
431
459
|
value: t.name,
|
|
432
|
-
onChange: (e) =>
|
|
460
|
+
onChange: (e) => Y(t.id, { name: e ?? "" }),
|
|
433
461
|
labelProps: {
|
|
434
|
-
label:
|
|
462
|
+
label: j,
|
|
435
463
|
required: !0
|
|
436
464
|
},
|
|
437
|
-
placeholder:
|
|
465
|
+
placeholder: P
|
|
438
466
|
})]
|
|
439
467
|
}), /* @__PURE__ */ C(b, {
|
|
440
468
|
id: `${t.id}-description`,
|
|
441
469
|
className: e,
|
|
442
470
|
resize: x.Vertical,
|
|
443
471
|
value: t.description,
|
|
444
|
-
onChange: (e) =>
|
|
445
|
-
labelProps: { label:
|
|
446
|
-
placeholder:
|
|
472
|
+
onChange: (e) => Y(t.id, { description: e }),
|
|
473
|
+
labelProps: { label: F },
|
|
474
|
+
placeholder: I
|
|
447
475
|
})]
|
|
448
476
|
})]
|
|
449
477
|
}, t.id);
|
|
450
478
|
}), /* @__PURE__ */ C(p, {
|
|
451
|
-
label:
|
|
452
|
-
iconBefore: /* @__PURE__ */ C(
|
|
479
|
+
label: E,
|
|
480
|
+
iconBefore: /* @__PURE__ */ C(D, {
|
|
453
481
|
size: o.SM,
|
|
454
482
|
"aria-hidden": !0,
|
|
455
483
|
stroke: s
|
|
456
484
|
}),
|
|
457
485
|
className: "self-start",
|
|
458
|
-
onClick:
|
|
459
|
-
disabled:
|
|
486
|
+
onClick: J,
|
|
487
|
+
disabled: H.length >= u.length
|
|
460
488
|
})]
|
|
461
489
|
})
|
|
462
490
|
})
|
|
463
491
|
]
|
|
464
492
|
});
|
|
465
|
-
},
|
|
466
|
-
let m =
|
|
467
|
-
return
|
|
493
|
+
}, Q = ({ values: n, errors: i, onChange: a, onNameBlur: o, onVersionBlur: s, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: f, availableLocaleOptions: p = [] }) => {
|
|
494
|
+
let m = M(null), h = M(null), g = M(!1), _ = !!(i.name || i.version);
|
|
495
|
+
return A(() => {
|
|
468
496
|
_ && !g.current && (i.name ? m : h).current?.focus(), g.current = _;
|
|
469
497
|
}, [
|
|
470
498
|
_,
|
|
@@ -542,13 +570,13 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
542
570
|
})
|
|
543
571
|
]
|
|
544
572
|
});
|
|
545
|
-
},
|
|
573
|
+
}, $ = /* @__PURE__ */ function(e) {
|
|
546
574
|
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e;
|
|
547
|
-
}({}),
|
|
575
|
+
}({}), ne = /^[a-zA-Z0-9 _.-]+$/, re = /^[a-zA-Z0-9._-]+$/, ie = /^\d+(\.\d+)*$/, ae = (e, t = {}) => {
|
|
548
576
|
let n = {}, r = e.name.trim();
|
|
549
|
-
r ? t.validateNamePattern &&
|
|
577
|
+
r ? t.validateNamePattern && !ne.test(r) && (n.name = $.InvalidFormat) : n.name = $.Required;
|
|
550
578
|
let i = e.version.trim();
|
|
551
|
-
return t.validateVersionPattern && i && ((t.validateVersionPattern instanceof RegExp ? t.validateVersionPattern :
|
|
579
|
+
return t.validateVersionPattern && i && ((t.validateVersionPattern instanceof RegExp ? t.validateVersionPattern : re).test(i) || (n.version = $.InvalidFormat)), n;
|
|
552
580
|
};
|
|
553
581
|
//#endregion
|
|
554
|
-
export { J as AddAvatar, Y as AvatarPickerModal, H as BUILDER_FORM_CLASS, V as BuilderFormContainer,
|
|
582
|
+
export { J as AddAvatar, Y as AvatarPickerModal, H as BUILDER_FORM_CLASS, V as BuilderFormContainer, $ as DeploymentCreationFieldErrorCode, Q as DeploymentCreationForm, Z as DeploymentLocalesField, K as EditorLayout, W as EditorSection, ne as NAME_PATTERN, ie as SEMVER_VERSION_PATTERN, re as VERSION_PATTERN, ae as validateDeploymentCreationFields };
|
|
@@ -7,5 +7,14 @@ export interface BuilderFormBodyProps {
|
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
/** End-edge column, matching `left`'s width. When omitted while `left` is set, an empty column of the same width is reserved so the main column stays optically centered. */
|
|
9
9
|
metadata?: ReactNode;
|
|
10
|
+
/** Optional container-responsive column sizing; omitted preserves the existing desktop layout. */
|
|
11
|
+
layout?: {
|
|
12
|
+
/** Width of side columns. Defaults to '400px'. */
|
|
13
|
+
sideColumnWidth?: string;
|
|
14
|
+
/** Gap between columns. Defaults to '0px'. */
|
|
15
|
+
columnGap?: string;
|
|
16
|
+
/** Reserve an empty end column for centering. Defaults to true. */
|
|
17
|
+
reserveEndColumn?: boolean;
|
|
18
|
+
};
|
|
10
19
|
}
|
|
11
20
|
//# sourceMappingURL=builder-form-body-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-form-body-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-body-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,gFAAgF;IAChF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oEAAoE;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,6KAA6K;IAC7K,QAAQ,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"builder-form-body-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-body-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,gFAAgF;IAChF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oEAAoE;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,6KAA6K;IAC7K,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,kGAAkG;IAClG,MAAM,CAAC,EAAE;QACP,kDAAkD;QAClD,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,8CAA8C;QAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,mEAAmE;QACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACH"}
|
|
@@ -37,6 +37,10 @@ export interface BuilderFormContainerProps {
|
|
|
37
37
|
isSubmitDisabled?: boolean;
|
|
38
38
|
/** When `true`, the submit action shows a spinner and reports `aria-busy` on both surfaces. Defaults to `false`. */
|
|
39
39
|
isSubmitting?: boolean;
|
|
40
|
+
/** Optional replacement for the header's default back icon. */
|
|
41
|
+
backIcon?: ReactNode;
|
|
42
|
+
/** Additional class name for the container root. */
|
|
43
|
+
className?: string;
|
|
40
44
|
/** Body's start-edge column. Full width on mobile, a fixed-width column on desktop. */
|
|
41
45
|
left?: ReactNode;
|
|
42
46
|
/** Body's main column, filling the space left by `left` and `metadata`. */
|
|
@@ -45,5 +49,7 @@ export interface BuilderFormContainerProps {
|
|
|
45
49
|
metadata?: ReactNode;
|
|
46
50
|
/** Style overrides. */
|
|
47
51
|
styles?: BuilderFormContainerStyles;
|
|
52
|
+
/** Optional container-responsive body sizing. */
|
|
53
|
+
layout?: import('./builder-form-body-props').BuilderFormBodyProps['layout'];
|
|
48
54
|
}
|
|
49
55
|
//# sourceMappingURL=builder-form-container-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-form-container-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-container-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,gEAAgE;IAChE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,oLAAoL;IACpL,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"builder-form-container-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-container-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,gEAAgE;IAChE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,oLAAoL;IACpL,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,2BAA2B,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CAC7E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { BuilderFormActionsLabels } from './builder-form-actions-props';
|
|
2
3
|
/** Localized labels used by the {@link BuilderFormHeader} component. */
|
|
3
4
|
export interface BuilderFormHeaderLabels extends BuilderFormActionsLabels {
|
|
@@ -46,6 +47,8 @@ export interface BuilderFormHeaderProps {
|
|
|
46
47
|
isSubmitDisabled?: boolean;
|
|
47
48
|
/** When `true`, the submit action shows a spinner and reports `aria-busy`. Defaults to `false`. */
|
|
48
49
|
isSubmitting?: boolean;
|
|
50
|
+
/** Optional replacement for the default back icon; `null` suppresses it. */
|
|
51
|
+
backIcon?: ReactNode;
|
|
49
52
|
/** Style overrides. */
|
|
50
53
|
styles?: BuilderFormHeaderStyles;
|
|
51
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder-form-header-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-header-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,wEAAwE;AACxE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,iDAAiD;IACjD,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
|
|
1
|
+
{"version":3,"file":"builder-form-header-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-header-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,wEAAwE;AACxE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,iDAAiD;IACjD,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-builder-form",
|
|
3
3
|
"description": "Presentational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.92",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@tabler/icons-react": "^3.44.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
24
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.92",
|
|
24
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.12",
|
|
25
25
|
"react": "^19.2.8"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|