@epam/ai-dial-builder-form 1.2.0-dev.163 → 1.2.0-dev.170
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/DeploymentCreationForm/DeploymentCreationForm.d.ts.map +1 -1
- package/index.js +294 -292
- package/models/avatar-picker-modal.d.ts +2 -2
- package/models/avatar-picker-modal.d.ts.map +1 -1
- package/models/deployment-creation-form.d.ts +2 -0
- package/models/deployment-creation-form.d.ts.map +1 -1
- package/models/validation.d.ts +5 -1
- package/models/validation.d.ts.map +1 -1
- package/package.json +2 -2
- package/utils/validate-deployment-creation-fields.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentCreationForm.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentCreationForm/DeploymentCreationForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAIzF,oGAAoG;AACpG,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"DeploymentCreationForm.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentCreationForm/DeploymentCreationForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAIzF,oGAAoG;AACpG,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA6GlE,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,294 +1,294 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ButtonAppearance as
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { IconArrowLeft as
|
|
5
|
-
import { Suspense as
|
|
1
|
+
import { ENTITY_DESCRIPTION_MAX_LENGTH as e, ENTITY_NAME_MAX_LENGTH as t, RESIZABLE_TEXTAREA_CLASS_NAME as n, TAG_INPUT_TAG_CLASS_NAME as r, buildCssVars as i, exceedsMaxLength as a, hasControlCharacters as o, mergeClasses as s } from "@epam/ai-dial-chat-shared";
|
|
2
|
+
import { ButtonAppearance as c, ButtonVariant as l, DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, DangerIconButton as f, ElementSize as p, GhostIconButton as m, Input as h, Label as g, LinkButton as _, NeutralButton as v, Popup as ee, PrimaryButton as y, Select as te, Spinner as b, TagInput as x, Textarea as ne, TextareaResize as S } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
4
|
+
import { IconArrowLeft as E, IconArrowNarrowLeft as D, IconPhoto as O, IconPlus as k, IconTrashX as re } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as A, useCallback as j, useEffect as M, useId as N, useRef as P, useState as F } from "react";
|
|
6
6
|
//#region src/components/BuilderFormActions/BuilderFormActions.tsx
|
|
7
|
-
var
|
|
7
|
+
var I = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(v, {
|
|
8
8
|
label: e.cancelButtonLabel,
|
|
9
9
|
onClick: t,
|
|
10
10
|
disabled: r,
|
|
11
|
-
className:
|
|
12
|
-
}), /* @__PURE__ */
|
|
11
|
+
className: o
|
|
12
|
+
}), /* @__PURE__ */ w(y, {
|
|
13
13
|
label: e.submitButtonLabel,
|
|
14
14
|
onClick: n,
|
|
15
15
|
disabled: i,
|
|
16
16
|
"aria-busy": a,
|
|
17
|
-
className:
|
|
18
|
-
iconBefore: a ? /* @__PURE__ */
|
|
17
|
+
className: o,
|
|
18
|
+
iconBefore: a ? /* @__PURE__ */ w("span", {
|
|
19
19
|
"aria-hidden": !0,
|
|
20
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ w(b, { size: u.SM })
|
|
21
21
|
}) : void 0
|
|
22
|
-
})] }),
|
|
22
|
+
})] }), L = {
|
|
23
23
|
body: "_body_m2y60_2",
|
|
24
24
|
sideColumn: "_sideColumn_m2y60_6",
|
|
25
25
|
reservedColumn: "_reservedColumn_m2y60_10"
|
|
26
|
-
},
|
|
27
|
-
let
|
|
28
|
-
flex: `0 1 ${
|
|
26
|
+
}, R = s("flex flex-col", L.sideColumn), z = ({ left: e, children: t, metadata: n, layout: r }) => {
|
|
27
|
+
let i = e != null && n == null && r?.reserveEndColumn !== !1, a = r ? {
|
|
28
|
+
flex: `0 1 ${r.sideColumnWidth ?? "400px"}`,
|
|
29
29
|
width: "100%",
|
|
30
|
-
minWidth: `min(100%, ${
|
|
30
|
+
minWidth: `min(100%, ${r.sideColumnWidth ?? "400px"})`,
|
|
31
31
|
maxWidth: "100%"
|
|
32
|
-
} : void 0,
|
|
32
|
+
} : void 0, o = r ? {
|
|
33
33
|
flexDirection: "row",
|
|
34
34
|
flexWrap: "wrap",
|
|
35
|
-
columnGap:
|
|
35
|
+
columnGap: r.columnGap ?? "0px",
|
|
36
36
|
alignItems: "stretch"
|
|
37
37
|
} : void 0;
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
className:
|
|
40
|
-
style:
|
|
38
|
+
return /* @__PURE__ */ T("div", {
|
|
39
|
+
className: s("flex min-w-0 flex-1", L.body),
|
|
40
|
+
style: o,
|
|
41
41
|
children: [
|
|
42
|
-
e != null && /* @__PURE__ */
|
|
43
|
-
className:
|
|
44
|
-
style:
|
|
42
|
+
e != null && /* @__PURE__ */ w("div", {
|
|
43
|
+
className: R,
|
|
44
|
+
style: a,
|
|
45
45
|
children: e
|
|
46
46
|
}),
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ w("div", {
|
|
48
48
|
className: "flex w-full min-w-0 flex-1 flex-col",
|
|
49
|
-
style:
|
|
49
|
+
style: r ? {
|
|
50
50
|
flex: "1 1 320px",
|
|
51
51
|
minWidth: "min(100%, 320px)"
|
|
52
52
|
} : void 0,
|
|
53
53
|
children: t
|
|
54
54
|
}),
|
|
55
|
-
n != null && /* @__PURE__ */
|
|
56
|
-
className:
|
|
57
|
-
style:
|
|
55
|
+
n != null && /* @__PURE__ */ w("div", {
|
|
56
|
+
className: R,
|
|
57
|
+
style: a,
|
|
58
58
|
children: n
|
|
59
59
|
}),
|
|
60
|
-
|
|
60
|
+
i && /* @__PURE__ */ w("div", {
|
|
61
61
|
"aria-hidden": !0,
|
|
62
|
-
style:
|
|
63
|
-
className:
|
|
62
|
+
style: a,
|
|
63
|
+
className: s(L.reservedColumn, L.sideColumn)
|
|
64
64
|
})
|
|
65
65
|
]
|
|
66
66
|
});
|
|
67
|
-
},
|
|
67
|
+
}, B = {
|
|
68
68
|
header: "_header_oo757_4",
|
|
69
69
|
actions: "_actions_oo757_20",
|
|
70
70
|
title: "_title_oo757_29"
|
|
71
|
-
},
|
|
72
|
-
let { colors:
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
style:
|
|
75
|
-
"--bfh-border":
|
|
71
|
+
}, V = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, styles: f }) => {
|
|
72
|
+
let { colors: p, typography: h } = f ?? {}, g = h?.fontClassName ?? "dial-h1-text", _ = !!h?.fontClassName;
|
|
73
|
+
return /* @__PURE__ */ T("div", {
|
|
74
|
+
style: i({
|
|
75
|
+
"--bfh-border": p?.borderColor,
|
|
76
76
|
"--bfh-font-family": _ ? void 0 : h?.fontFamily
|
|
77
77
|
}),
|
|
78
|
-
className:
|
|
78
|
+
className: s("flex h-16 items-center justify-between gap-6", B.header),
|
|
79
79
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ T("div", {
|
|
81
81
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
83
|
-
icon:
|
|
84
|
-
size:
|
|
82
|
+
children: [/* @__PURE__ */ w(m, {
|
|
83
|
+
icon: l === void 0 ? /* @__PURE__ */ w(E, {
|
|
84
|
+
size: u.LG,
|
|
85
85
|
className: "rtl:scale-x-[-1]",
|
|
86
86
|
"aria-hidden": !0,
|
|
87
|
-
stroke:
|
|
88
|
-
}) :
|
|
87
|
+
stroke: d
|
|
88
|
+
}) : l,
|
|
89
89
|
"aria-label": e.backButtonLabel,
|
|
90
90
|
onClick: t
|
|
91
|
-
}), /* @__PURE__ */
|
|
92
|
-
className:
|
|
91
|
+
}), /* @__PURE__ */ w("h1", {
|
|
92
|
+
className: s("truncate", B.title, g),
|
|
93
93
|
children: e.title
|
|
94
94
|
})]
|
|
95
95
|
}),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
className:
|
|
98
|
-
children: /* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ w("div", {
|
|
97
|
+
className: s("items-center gap-2", B.actions),
|
|
98
|
+
children: /* @__PURE__ */ w(I, {
|
|
99
99
|
labels: e,
|
|
100
|
-
onCancel:
|
|
101
|
-
onSubmit:
|
|
102
|
-
isCancelDisabled:
|
|
103
|
-
isSubmitDisabled:
|
|
104
|
-
isSubmitting:
|
|
100
|
+
onCancel: n,
|
|
101
|
+
onSubmit: r,
|
|
102
|
+
isCancelDisabled: a,
|
|
103
|
+
isSubmitDisabled: o,
|
|
104
|
+
isSubmitting: c
|
|
105
105
|
})
|
|
106
106
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ w("span", {
|
|
108
108
|
role: "status",
|
|
109
109
|
"aria-live": "polite",
|
|
110
110
|
className: "sr-only",
|
|
111
|
-
children:
|
|
111
|
+
children: c ? e.submittingLabel ?? "Submitting" : ""
|
|
112
112
|
})
|
|
113
113
|
]
|
|
114
114
|
});
|
|
115
|
-
},
|
|
115
|
+
}, H = {
|
|
116
116
|
container: "_container_k1awi_1",
|
|
117
117
|
footer: "_footer_k1awi_10"
|
|
118
|
-
},
|
|
118
|
+
}, U = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, className: u, left: d, children: f, metadata: p, layout: m, styles: h }) => {
|
|
119
119
|
let { colors: g, header: _, cssVars: v } = h ?? {};
|
|
120
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ T("div", {
|
|
121
121
|
style: {
|
|
122
|
-
...
|
|
122
|
+
...i({ "--bfc-bg": g?.background }),
|
|
123
123
|
...v
|
|
124
124
|
},
|
|
125
|
-
className:
|
|
125
|
+
className: s("flex h-full w-full flex-col overflow-y-auto", u, H.container),
|
|
126
126
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ w(V, {
|
|
128
128
|
labels: e,
|
|
129
129
|
onBack: t,
|
|
130
|
-
onCancel:
|
|
131
|
-
onSubmit:
|
|
132
|
-
isCancelDisabled:
|
|
133
|
-
isSubmitDisabled:
|
|
130
|
+
onCancel: n,
|
|
131
|
+
onSubmit: r,
|
|
132
|
+
isCancelDisabled: a,
|
|
133
|
+
isSubmitDisabled: o,
|
|
134
134
|
isSubmitting: c,
|
|
135
135
|
backIcon: l,
|
|
136
136
|
styles: _
|
|
137
137
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ w(z, {
|
|
139
139
|
left: d,
|
|
140
140
|
metadata: p,
|
|
141
141
|
layout: m,
|
|
142
142
|
children: f
|
|
143
143
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
className:
|
|
146
|
-
children: /* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ w("div", {
|
|
145
|
+
className: s("sticky bottom-0 z-10 items-center gap-2 p-3", H.footer),
|
|
146
|
+
children: /* @__PURE__ */ w(I, {
|
|
147
147
|
labels: e,
|
|
148
|
-
onCancel:
|
|
149
|
-
onSubmit:
|
|
150
|
-
isCancelDisabled:
|
|
151
|
-
isSubmitDisabled:
|
|
148
|
+
onCancel: n,
|
|
149
|
+
onSubmit: r,
|
|
150
|
+
isCancelDisabled: a,
|
|
151
|
+
isSubmitDisabled: o,
|
|
152
152
|
isSubmitting: c,
|
|
153
153
|
buttonClassName: "flex-1"
|
|
154
154
|
})
|
|
155
155
|
})
|
|
156
156
|
]
|
|
157
157
|
});
|
|
158
|
-
},
|
|
158
|
+
}, W = {
|
|
159
159
|
layout: "dial-builder-form-layout",
|
|
160
160
|
section: "dial-builder-form-section"
|
|
161
|
-
},
|
|
161
|
+
}, G = {
|
|
162
162
|
section: "_section_l1mnx_1",
|
|
163
163
|
title: "_title_l1mnx_5"
|
|
164
|
-
},
|
|
165
|
-
let
|
|
166
|
-
"--es-border-color":
|
|
167
|
-
"--es-title-color":
|
|
164
|
+
}, K = ({ title: e, children: t, styles: n, className: r }) => {
|
|
165
|
+
let a = i({
|
|
166
|
+
"--es-border-color": n?.colors?.borderColor,
|
|
167
|
+
"--es-title-color": n?.colors?.titleColor
|
|
168
168
|
});
|
|
169
|
-
return /* @__PURE__ */
|
|
170
|
-
className:
|
|
171
|
-
style:
|
|
172
|
-
children: [e != null && /* @__PURE__ */
|
|
173
|
-
className:
|
|
169
|
+
return /* @__PURE__ */ T("section", {
|
|
170
|
+
className: s("flex flex-col gap-4 rounded border p-6", G.section, r, W.section),
|
|
171
|
+
style: a,
|
|
172
|
+
children: [e != null && /* @__PURE__ */ w("h2", {
|
|
173
|
+
className: s("dial-h3-text", G.title),
|
|
174
174
|
children: e
|
|
175
175
|
}), t]
|
|
176
176
|
});
|
|
177
|
-
},
|
|
177
|
+
}, q = {
|
|
178
178
|
headerBorder: "_headerBorder_1kidu_1",
|
|
179
179
|
footerBorder: "_footerBorder_1kidu_5",
|
|
180
180
|
sidebarBorder: "_sidebarBorder_1kidu_9"
|
|
181
|
-
},
|
|
182
|
-
let h =
|
|
183
|
-
"--el-header-border-color":
|
|
184
|
-
"--el-sidebar-border-color":
|
|
181
|
+
}, J = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: a, rightContent: o, isSaving: c = !1, labels: l, styles: f, dir: p }) => {
|
|
182
|
+
let h = N(), g = c ? l?.savingStatusLabel ?? "Saving" : "", _ = i({
|
|
183
|
+
"--el-header-border-color": f?.colors?.headerBorderColor,
|
|
184
|
+
"--el-sidebar-border-color": f?.colors?.sidebarBorderColor
|
|
185
185
|
});
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
dir:
|
|
188
|
-
className:
|
|
186
|
+
return /* @__PURE__ */ T("div", {
|
|
187
|
+
dir: p,
|
|
188
|
+
className: s("flex min-h-0 flex-1 flex-col", W.layout),
|
|
189
189
|
style: _,
|
|
190
190
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ w("span", {
|
|
192
192
|
role: "status",
|
|
193
193
|
"aria-live": "polite",
|
|
194
194
|
className: "sr-only",
|
|
195
195
|
id: h,
|
|
196
196
|
children: g
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
className:
|
|
200
|
-
children: [/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ T("div", {
|
|
199
|
+
className: s("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", q.headerBorder),
|
|
200
|
+
children: [/* @__PURE__ */ T("div", {
|
|
201
201
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
-
icon: /* @__PURE__ */
|
|
204
|
-
size:
|
|
205
|
-
stroke:
|
|
202
|
+
children: [/* @__PURE__ */ w(m, {
|
|
203
|
+
icon: /* @__PURE__ */ w(D, {
|
|
204
|
+
size: u.LG,
|
|
205
|
+
stroke: d,
|
|
206
206
|
"aria-hidden": !0,
|
|
207
207
|
className: "rtl:scale-x-[-1]"
|
|
208
208
|
}),
|
|
209
|
-
"aria-label":
|
|
209
|
+
"aria-label": n,
|
|
210
210
|
onClick: t
|
|
211
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ w("h1", {
|
|
212
212
|
className: "dial-h2-text min-w-0 truncate",
|
|
213
213
|
children: e
|
|
214
214
|
})]
|
|
215
|
-
}),
|
|
215
|
+
}), r != null && /* @__PURE__ */ w("div", {
|
|
216
216
|
className: "hidden shrink-0 items-center gap-2 desktop:flex",
|
|
217
|
-
children:
|
|
217
|
+
children: r
|
|
218
218
|
})]
|
|
219
219
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ T("div", {
|
|
221
221
|
className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
223
|
-
className:
|
|
224
|
-
children:
|
|
225
|
-
}),
|
|
222
|
+
children: [/* @__PURE__ */ w("div", {
|
|
223
|
+
className: s(o == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", o == null ? void 0 : q.sidebarBorder),
|
|
224
|
+
children: a
|
|
225
|
+
}), o != null && /* @__PURE__ */ w("div", {
|
|
226
226
|
className: "desktop:flex-1 desktop:overflow-y-auto",
|
|
227
|
-
children:
|
|
227
|
+
children: o
|
|
228
228
|
})]
|
|
229
229
|
}),
|
|
230
|
-
|
|
231
|
-
className:
|
|
232
|
-
children:
|
|
230
|
+
r != null && /* @__PURE__ */ w("div", {
|
|
231
|
+
className: s("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", q.footerBorder),
|
|
232
|
+
children: r
|
|
233
233
|
})
|
|
234
234
|
]
|
|
235
235
|
});
|
|
236
|
-
},
|
|
236
|
+
}, Y = {
|
|
237
237
|
box: "_box_c9as8_1",
|
|
238
238
|
icon: "_icon_c9as8_6",
|
|
239
239
|
caption: "_caption_c9as8_10"
|
|
240
|
-
},
|
|
241
|
-
let
|
|
242
|
-
"--aa-box-bg":
|
|
243
|
-
"--aa-box-border":
|
|
244
|
-
"--aa-icon":
|
|
245
|
-
"--aa-caption":
|
|
240
|
+
}, X = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: a = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: o, styles: c, className: l }) => {
|
|
241
|
+
let f = i({
|
|
242
|
+
"--aa-box-bg": c?.colors?.boxBackgroundColor,
|
|
243
|
+
"--aa-box-border": c?.colors?.boxBorderColor,
|
|
244
|
+
"--aa-icon": c?.colors?.placeholderIconColor,
|
|
245
|
+
"--aa-caption": c?.colors?.captionColor
|
|
246
246
|
});
|
|
247
|
-
return /* @__PURE__ */
|
|
248
|
-
className:
|
|
249
|
-
style:
|
|
250
|
-
children: [/* @__PURE__ */
|
|
247
|
+
return /* @__PURE__ */ T("div", {
|
|
248
|
+
className: s("flex flex-col gap-2", l),
|
|
249
|
+
style: f,
|
|
250
|
+
children: [/* @__PURE__ */ w(g, { label: e }), /* @__PURE__ */ T("div", {
|
|
251
251
|
className: "flex items-start gap-3",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
253
|
-
className:
|
|
254
|
-
children: t ? /* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ w("div", {
|
|
253
|
+
className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Y.box),
|
|
254
|
+
children: t ? /* @__PURE__ */ w("img", {
|
|
255
255
|
src: t,
|
|
256
|
-
alt:
|
|
256
|
+
alt: n,
|
|
257
257
|
className: "h-16 w-16 object-cover"
|
|
258
|
-
}) : /* @__PURE__ */
|
|
259
|
-
size:
|
|
260
|
-
stroke:
|
|
258
|
+
}) : /* @__PURE__ */ w(O, {
|
|
259
|
+
size: u.LG,
|
|
260
|
+
stroke: d,
|
|
261
261
|
"aria-hidden": !0,
|
|
262
|
-
className:
|
|
262
|
+
className: Y.icon
|
|
263
263
|
})
|
|
264
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ T("div", {
|
|
265
265
|
className: "flex flex-col gap-3",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
267
|
-
size:
|
|
268
|
-
iconBefore: /* @__PURE__ */
|
|
269
|
-
size:
|
|
270
|
-
stroke:
|
|
266
|
+
children: [/* @__PURE__ */ w(_, {
|
|
267
|
+
size: p.Small,
|
|
268
|
+
iconBefore: /* @__PURE__ */ w(k, {
|
|
269
|
+
size: u.SM,
|
|
270
|
+
stroke: d,
|
|
271
271
|
"aria-hidden": !0
|
|
272
272
|
}),
|
|
273
273
|
className: "w-fit",
|
|
274
|
-
label:
|
|
275
|
-
onClick:
|
|
276
|
-
}), /* @__PURE__ */
|
|
277
|
-
className:
|
|
278
|
-
children:
|
|
274
|
+
label: r,
|
|
275
|
+
onClick: o
|
|
276
|
+
}), /* @__PURE__ */ w("span", {
|
|
277
|
+
className: s("dial-tiny-text", Y.caption),
|
|
278
|
+
children: a
|
|
279
279
|
})]
|
|
280
280
|
})]
|
|
281
281
|
})]
|
|
282
282
|
});
|
|
283
|
-
},
|
|
284
|
-
let c =
|
|
283
|
+
}, ie = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
|
|
284
|
+
let c = j((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = j((e) => /* @__PURE__ */ w("div", {
|
|
285
285
|
className: "dial-small-text px-6 py-3",
|
|
286
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ w("p", {
|
|
287
287
|
className: "mb-3 text-secondary",
|
|
288
|
-
children: e.length === 1 ? /* @__PURE__ */
|
|
288
|
+
children: e.length === 1 ? /* @__PURE__ */ T(C, { children: [
|
|
289
289
|
s.deleteConfirmSingleText,
|
|
290
290
|
" ",
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ T("span", {
|
|
292
292
|
className: "break-words text-primary",
|
|
293
293
|
children: [
|
|
294
294
|
"\"",
|
|
@@ -296,10 +296,10 @@ var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
296
296
|
"\"?"
|
|
297
297
|
]
|
|
298
298
|
})
|
|
299
|
-
] }) : /* @__PURE__ */
|
|
299
|
+
] }) : /* @__PURE__ */ T(C, { children: [
|
|
300
300
|
s.deleteConfirmMultipleText,
|
|
301
301
|
" ",
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ T("span", {
|
|
303
303
|
className: "text-primary",
|
|
304
304
|
children: [
|
|
305
305
|
e.length,
|
|
@@ -314,9 +314,9 @@ var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
314
314
|
s.deleteConfirmMultipleText,
|
|
315
315
|
s.deleteConfirmItemsLabel
|
|
316
316
|
]);
|
|
317
|
-
return /* @__PURE__ */
|
|
317
|
+
return /* @__PURE__ */ w(A, {
|
|
318
318
|
fallback: null,
|
|
319
|
-
children: e && /* @__PURE__ */
|
|
319
|
+
children: e && /* @__PURE__ */ w(i, {
|
|
320
320
|
isOpen: e,
|
|
321
321
|
onClose: t,
|
|
322
322
|
onAttach: n,
|
|
@@ -349,234 +349,236 @@ var P = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
349
349
|
cancelLabel: s.cancelLabel
|
|
350
350
|
})
|
|
351
351
|
});
|
|
352
|
-
},
|
|
352
|
+
}, Z = (e, t, n) => ({
|
|
353
353
|
id: e,
|
|
354
354
|
language: n.find((e) => !t.has(e.code))?.code ?? "",
|
|
355
355
|
name: "",
|
|
356
356
|
description: ""
|
|
357
|
-
}),
|
|
358
|
-
let { summaryLabel:
|
|
359
|
-
|
|
360
|
-
|
|
357
|
+
}), Q = ({ value: e, onChange: t, availableLocaleOptions: r = [], labels: i, className: a, summaryClassName: o = "dial-body-text text-secondary", rowLabelClassName: m = "dial-tiny-lead-text text-secondary" }) => {
|
|
358
|
+
let { summaryLabel: g, addLabel: v, editLabel: y, popupTitle: b, addLocaleLabel: x, localeRowLabel: C = "Locale", languageLabel: E, nameLabel: D, namePlaceholder: O, descriptionLabel: A, descriptionPlaceholder: j, deleteAriaLabel: N, cancelLabel: I = "Cancel", saveLabel: L = "Save" } = i, [R, z] = F(!1), [B, V] = F([]), H = P(0);
|
|
359
|
+
M(() => {
|
|
360
|
+
R && V(e.length > 0 ? e : [Z(`locale-row-${++H.current}`, /* @__PURE__ */ new Set(), r)]);
|
|
361
361
|
}, [
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
R,
|
|
363
|
+
e,
|
|
364
|
+
r
|
|
365
365
|
]);
|
|
366
|
-
let
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
let e = new Set(
|
|
370
|
-
|
|
371
|
-
},
|
|
372
|
-
|
|
366
|
+
let U = () => z(!0), W = () => z(!1), G = () => {
|
|
367
|
+
t(B.filter((e) => e.language && e.name)), z(!1);
|
|
368
|
+
}, K = () => {
|
|
369
|
+
let e = new Set(B.map((e) => e.language).filter(Boolean));
|
|
370
|
+
V((t) => [...t, Z(`locale-row-${++H.current}`, e, r)]);
|
|
371
|
+
}, q = (e, t) => {
|
|
372
|
+
V((n) => n.map((n) => n.id === e ? {
|
|
373
373
|
...n,
|
|
374
374
|
...t
|
|
375
375
|
} : n));
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
return
|
|
380
|
-
className:
|
|
376
|
+
}, J = (e) => {
|
|
377
|
+
V((t) => t.filter((t) => t.id !== e));
|
|
378
|
+
}, Y = (e) => r.find((t) => t.code === e)?.label ?? e.toUpperCase(), X = B.some((e) => !e.language || !e.name);
|
|
379
|
+
return r.length === 0 ? null : /* @__PURE__ */ T("div", {
|
|
380
|
+
className: s("flex items-center gap-2", a),
|
|
381
381
|
children: [
|
|
382
|
-
|
|
383
|
-
className:
|
|
384
|
-
children: `${
|
|
382
|
+
e.length > 0 && /* @__PURE__ */ w("span", {
|
|
383
|
+
className: o,
|
|
384
|
+
children: `${g}: ${e.map((e) => `[${Y(e.language)}]`).join(", ")}`
|
|
385
385
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
label:
|
|
388
|
-
iconBefore: /* @__PURE__ */
|
|
389
|
-
size:
|
|
386
|
+
/* @__PURE__ */ w(_, {
|
|
387
|
+
label: e.length > 0 ? y : v,
|
|
388
|
+
iconBefore: /* @__PURE__ */ w(k, {
|
|
389
|
+
size: u.SM,
|
|
390
390
|
"aria-hidden": !0,
|
|
391
|
-
stroke:
|
|
391
|
+
stroke: d
|
|
392
392
|
}),
|
|
393
393
|
className: "!px-0",
|
|
394
|
-
onClick:
|
|
394
|
+
onClick: U
|
|
395
395
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
open:
|
|
398
|
-
header:
|
|
399
|
-
onClose:
|
|
396
|
+
/* @__PURE__ */ w(ee, {
|
|
397
|
+
open: R,
|
|
398
|
+
header: b,
|
|
399
|
+
onClose: W,
|
|
400
400
|
mainButtons: [{
|
|
401
|
-
label:
|
|
402
|
-
onClick:
|
|
401
|
+
label: I,
|
|
402
|
+
onClick: W
|
|
403
403
|
}, {
|
|
404
|
-
label:
|
|
405
|
-
variant:
|
|
406
|
-
disabled:
|
|
407
|
-
onClick:
|
|
404
|
+
label: L,
|
|
405
|
+
variant: l.Primary,
|
|
406
|
+
disabled: X,
|
|
407
|
+
onClick: G
|
|
408
408
|
}],
|
|
409
|
-
children: /* @__PURE__ */
|
|
409
|
+
children: /* @__PURE__ */ T("div", {
|
|
410
410
|
className: "flex flex-col gap-8 px-6 py-3",
|
|
411
|
-
children: [
|
|
412
|
-
let
|
|
413
|
-
return /* @__PURE__ */
|
|
411
|
+
children: [B.map((e, t) => {
|
|
412
|
+
let i = new Set(B.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
|
|
413
|
+
return /* @__PURE__ */ T("div", {
|
|
414
414
|
className: "flex flex-col gap-2",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ T("div", {
|
|
416
416
|
className: "flex items-center justify-between",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
418
|
-
className:
|
|
417
|
+
children: [/* @__PURE__ */ T("span", {
|
|
418
|
+
className: m,
|
|
419
419
|
children: [
|
|
420
|
-
|
|
420
|
+
C,
|
|
421
421
|
" ",
|
|
422
|
-
|
|
422
|
+
t + 1
|
|
423
423
|
]
|
|
424
|
-
}), /* @__PURE__ */
|
|
425
|
-
appearance:
|
|
426
|
-
size:
|
|
427
|
-
icon: /* @__PURE__ */
|
|
428
|
-
size:
|
|
424
|
+
}), /* @__PURE__ */ w(f, {
|
|
425
|
+
appearance: c.Ghost,
|
|
426
|
+
size: p.Small,
|
|
427
|
+
icon: /* @__PURE__ */ w(re, {
|
|
428
|
+
size: u.SM,
|
|
429
429
|
"aria-hidden": !0,
|
|
430
|
-
stroke:
|
|
430
|
+
stroke: d
|
|
431
431
|
}),
|
|
432
|
-
"aria-label": `${
|
|
433
|
-
onClick: () =>
|
|
432
|
+
"aria-label": `${N} ${t + 1}`,
|
|
433
|
+
onClick: () => J(e.id)
|
|
434
434
|
})]
|
|
435
|
-
}), /* @__PURE__ */
|
|
435
|
+
}), /* @__PURE__ */ T("div", {
|
|
436
436
|
role: "group",
|
|
437
|
-
"aria-label": `${
|
|
437
|
+
"aria-label": `${C} ${t + 1}`,
|
|
438
438
|
className: "flex flex-col gap-5",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
439
|
+
children: [/* @__PURE__ */ T("div", {
|
|
440
440
|
className: "flex flex-col gap-5 desktop:flex-row desktop:items-start",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
442
|
-
id: `${
|
|
441
|
+
children: [/* @__PURE__ */ w(te, {
|
|
442
|
+
id: `${e.id}-language`,
|
|
443
443
|
labelProps: {
|
|
444
|
-
label:
|
|
444
|
+
label: E,
|
|
445
445
|
required: !0
|
|
446
446
|
},
|
|
447
447
|
className: "desktop:shrink-0 desktop:basis-40",
|
|
448
|
-
options:
|
|
448
|
+
options: r.map((e) => ({
|
|
449
449
|
value: e.code,
|
|
450
450
|
label: e.label,
|
|
451
|
-
disabled:
|
|
451
|
+
disabled: i.has(e.code)
|
|
452
452
|
})),
|
|
453
|
-
value:
|
|
454
|
-
onChange: (
|
|
455
|
-
}), /* @__PURE__ */
|
|
456
|
-
id: `${
|
|
453
|
+
value: e.language,
|
|
454
|
+
onChange: (t) => q(e.id, { language: t })
|
|
455
|
+
}), /* @__PURE__ */ w(h, {
|
|
456
|
+
id: `${e.id}-name`,
|
|
457
457
|
containerClassName: "min-w-0 flex-1",
|
|
458
458
|
required: !0,
|
|
459
|
-
value:
|
|
460
|
-
onChange: (
|
|
459
|
+
value: e.name,
|
|
460
|
+
onChange: (t) => q(e.id, { name: t ?? "" }),
|
|
461
461
|
labelProps: {
|
|
462
|
-
label:
|
|
462
|
+
label: D,
|
|
463
463
|
required: !0
|
|
464
464
|
},
|
|
465
|
-
placeholder:
|
|
465
|
+
placeholder: O
|
|
466
466
|
})]
|
|
467
|
-
}), /* @__PURE__ */
|
|
468
|
-
id: `${
|
|
469
|
-
className:
|
|
470
|
-
resize:
|
|
471
|
-
value:
|
|
472
|
-
onChange: (
|
|
473
|
-
labelProps: { label:
|
|
474
|
-
placeholder:
|
|
467
|
+
}), /* @__PURE__ */ w(ne, {
|
|
468
|
+
id: `${e.id}-description`,
|
|
469
|
+
className: n,
|
|
470
|
+
resize: S.Vertical,
|
|
471
|
+
value: e.description,
|
|
472
|
+
onChange: (t) => q(e.id, { description: t }),
|
|
473
|
+
labelProps: { label: A },
|
|
474
|
+
placeholder: j
|
|
475
475
|
})]
|
|
476
476
|
})]
|
|
477
|
-
},
|
|
478
|
-
}), /* @__PURE__ */
|
|
479
|
-
label:
|
|
480
|
-
iconBefore: /* @__PURE__ */
|
|
481
|
-
size:
|
|
477
|
+
}, e.id);
|
|
478
|
+
}), /* @__PURE__ */ w(_, {
|
|
479
|
+
label: x,
|
|
480
|
+
iconBefore: /* @__PURE__ */ w(k, {
|
|
481
|
+
size: u.SM,
|
|
482
482
|
"aria-hidden": !0,
|
|
483
|
-
stroke:
|
|
483
|
+
stroke: d
|
|
484
484
|
}),
|
|
485
485
|
className: "self-start",
|
|
486
|
-
onClick:
|
|
487
|
-
disabled:
|
|
486
|
+
onClick: K,
|
|
487
|
+
disabled: B.length >= r.length
|
|
488
488
|
})]
|
|
489
489
|
})
|
|
490
490
|
})
|
|
491
491
|
]
|
|
492
492
|
});
|
|
493
|
-
},
|
|
494
|
-
let
|
|
495
|
-
return
|
|
496
|
-
_ && !g.current && (
|
|
493
|
+
}, ae = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [] }) => {
|
|
494
|
+
let p = P(null), m = P(null), g = P(!1), _ = !!(t.name || t.version);
|
|
495
|
+
return M(() => {
|
|
496
|
+
_ && !g.current && (t.name ? p : m).current?.focus(), g.current = _;
|
|
497
497
|
}, [
|
|
498
498
|
_,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
]), /* @__PURE__ */
|
|
499
|
+
t.name,
|
|
500
|
+
t.version
|
|
501
|
+
]), /* @__PURE__ */ T("div", {
|
|
502
502
|
role: u.ariaLabel ? "group" : void 0,
|
|
503
503
|
"aria-label": u.ariaLabel,
|
|
504
|
-
className:
|
|
504
|
+
className: s("flex flex-col gap-4", d?.root),
|
|
505
505
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ w(X, {
|
|
507
507
|
label: u.iconUrl.label,
|
|
508
508
|
avatarUrl: c,
|
|
509
509
|
addAvatarLabel: u.iconUrl.addAvatarLabel,
|
|
510
510
|
captionText: u.iconUrl.captionText,
|
|
511
511
|
onAddAvatarClick: l,
|
|
512
|
-
className:
|
|
512
|
+
className: d?.field
|
|
513
513
|
}),
|
|
514
|
-
/* @__PURE__ */
|
|
515
|
-
className:
|
|
516
|
-
children: [/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ T("div", {
|
|
515
|
+
className: s("flex items-start gap-4", d?.field),
|
|
516
|
+
children: [/* @__PURE__ */ w(h, {
|
|
517
517
|
id: "deployment-creation-form-name",
|
|
518
|
-
inputRef:
|
|
519
|
-
value:
|
|
520
|
-
onChange: (e) =>
|
|
521
|
-
onBlur:
|
|
518
|
+
inputRef: p,
|
|
519
|
+
value: e.name,
|
|
520
|
+
onChange: (e) => i({ name: e ?? "" }),
|
|
521
|
+
onBlur: a,
|
|
522
522
|
labelProps: {
|
|
523
523
|
label: u.name.label,
|
|
524
524
|
required: !0
|
|
525
525
|
},
|
|
526
526
|
placeholder: u.name.placeholder,
|
|
527
|
-
error:
|
|
528
|
-
invalid: !!
|
|
527
|
+
error: t.name || void 0,
|
|
528
|
+
invalid: !!t.name,
|
|
529
529
|
containerClassName: "min-w-0 basis-0 grow-[2]"
|
|
530
|
-
}), /* @__PURE__ */
|
|
530
|
+
}), /* @__PURE__ */ w(h, {
|
|
531
531
|
id: "deployment-creation-form-version",
|
|
532
|
-
inputRef:
|
|
533
|
-
value:
|
|
534
|
-
onChange: (e) =>
|
|
535
|
-
onBlur:
|
|
532
|
+
inputRef: m,
|
|
533
|
+
value: e.version,
|
|
534
|
+
onChange: (e) => i({ version: e ?? "" }),
|
|
535
|
+
onBlur: o,
|
|
536
536
|
labelProps: { label: u.version.label },
|
|
537
537
|
placeholder: u.version.placeholder,
|
|
538
|
-
error:
|
|
539
|
-
invalid: !!
|
|
538
|
+
error: t.version || void 0,
|
|
539
|
+
invalid: !!t.version,
|
|
540
540
|
containerClassName: "min-w-0 basis-0 grow-[1]"
|
|
541
541
|
})]
|
|
542
542
|
}),
|
|
543
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ w(ne, {
|
|
544
544
|
id: "deployment-creation-form-description",
|
|
545
|
-
value:
|
|
546
|
-
onChange: (e) =>
|
|
545
|
+
value: e.description,
|
|
546
|
+
onChange: (e) => i({ description: e }),
|
|
547
547
|
labelProps: { label: u.description.label },
|
|
548
548
|
placeholder: u.description.placeholder,
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
error: t.description || void 0,
|
|
550
|
+
invalid: !!t.description,
|
|
551
|
+
containerClassName: d?.field,
|
|
552
|
+
className: n,
|
|
553
|
+
resize: S.Vertical
|
|
552
554
|
}),
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
value:
|
|
555
|
-
onChange: (e) =>
|
|
556
|
-
availableLocaleOptions:
|
|
555
|
+
/* @__PURE__ */ w(Q, {
|
|
556
|
+
value: e.otherLocales,
|
|
557
|
+
onChange: (e) => i({ otherLocales: e }),
|
|
558
|
+
availableLocaleOptions: f,
|
|
557
559
|
labels: u.otherLocales,
|
|
558
|
-
className:
|
|
560
|
+
className: d?.field
|
|
559
561
|
}),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
className:
|
|
562
|
-
children: /* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ w("div", {
|
|
563
|
+
className: d?.field,
|
|
564
|
+
children: /* @__PURE__ */ w(x, {
|
|
563
565
|
id: "deployment-creation-form-topics",
|
|
564
566
|
labelProps: { label: u.topics.label },
|
|
565
567
|
placeholder: u.topics.placeholder,
|
|
566
|
-
value:
|
|
567
|
-
onChange: (e) =>
|
|
568
|
-
tagClassName:
|
|
568
|
+
value: e.topics,
|
|
569
|
+
onChange: (e) => i({ topics: e }),
|
|
570
|
+
tagClassName: r
|
|
569
571
|
})
|
|
570
572
|
})
|
|
571
573
|
]
|
|
572
574
|
});
|
|
573
575
|
}, $ = /* @__PURE__ */ function(e) {
|
|
574
|
-
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e;
|
|
575
|
-
}({}),
|
|
576
|
-
let
|
|
577
|
-
|
|
578
|
-
let
|
|
579
|
-
return
|
|
576
|
+
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
|
|
577
|
+
}({}), oe = /^[a-zA-Z0-9 _.-]+$/, se = /^[a-zA-Z0-9._-]+$/, ce = /^\d+(\.\d+)*$/, le = (n, r = {}) => {
|
|
578
|
+
let i = {}, s = n.name.trim();
|
|
579
|
+
s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !oe.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
|
|
580
|
+
let c = n.version.trim();
|
|
581
|
+
return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : se).test(c) || (i.version = $.InvalidFormat)), i;
|
|
580
582
|
};
|
|
581
583
|
//#endregion
|
|
582
|
-
export {
|
|
584
|
+
export { X as AddAvatar, ie as AvatarPickerModal, W as BUILDER_FORM_CLASS, U as BuilderFormContainer, $ as DeploymentCreationFieldErrorCode, ae as DeploymentCreationForm, Q as DeploymentLocalesField, J as EditorLayout, K as EditorSection, oe as NAME_PATTERN, ce as SEMVER_VERSION_PATTERN, se as VERSION_PATTERN, le as validateDeploymentCreationFields };
|
|
@@ -20,7 +20,7 @@ export interface AvatarPickerModalLabels {
|
|
|
20
20
|
showHiddenFilesLabel: string;
|
|
21
21
|
/** Label for the action that hides hidden files again. */
|
|
22
22
|
hideHiddenFilesLabel: string;
|
|
23
|
-
/** Returns the selection-count
|
|
23
|
+
/** Returns the text shown after the selection-count badge; the file manager renders the count itself, so omit it (e.g. "items selected"). */
|
|
24
24
|
getSelectionLabel: (count: number) => string;
|
|
25
25
|
/** Label for the upload-files action. */
|
|
26
26
|
uploadFilesLabel: string;
|
|
@@ -85,7 +85,7 @@ export interface AvatarPickerFileManagerModalProps {
|
|
|
85
85
|
showHiddenFilesLabel: string;
|
|
86
86
|
/** Label for the action that hides hidden files again. */
|
|
87
87
|
hideHiddenFilesLabel: string;
|
|
88
|
-
/** Returns the selection-count
|
|
88
|
+
/** Returns the text shown after the selection-count badge; the file manager renders the count itself, so omit it (e.g. "items selected"). */
|
|
89
89
|
getSelectionLabel: (count: number) => string;
|
|
90
90
|
/** Label for the upload-files action. */
|
|
91
91
|
uploadFilesLabel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-picker-modal.d.ts","sourceRoot":"","sources":["../../src/models/avatar-picker-modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,+EAA+E;AAC/E,MAAM,WAAW,uBAAuB;IACtC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,gBAAgB,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,0DAA0D;IAC1D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"avatar-picker-modal.d.ts","sourceRoot":"","sources":["../../src/models/avatar-picker-modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEt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E,MAAM,CAAC;IAC3B,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kDAAkD;IAClD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4DAA4D;IAC5D,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,2DAA2D;AAC3D,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,4FAA4F;IAC5F,gBAAgB,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;IACnE,6DAA6D;IAC7D,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,2DAA2D;IAC3D,gBAAgB,EAAE,MAAM,CAAC;IACzB,2CAA2C;IAC3C,MAAM,EAAE,uBAAuB,CAAC;CACjC"}
|
|
@@ -37,6 +37,8 @@ export interface DeploymentCreationFormFieldErrors {
|
|
|
37
37
|
name?: string;
|
|
38
38
|
/** Error message for the version field. */
|
|
39
39
|
version?: string;
|
|
40
|
+
/** Error message for the description field. */
|
|
41
|
+
description?: string;
|
|
40
42
|
}
|
|
41
43
|
/** Label and placeholder text for a single field, supplied by the host app. */
|
|
42
44
|
export interface DeploymentCreationFormFieldLabels {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,MAAM,WAAW,iCAAiC;IAChD,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,kCAAkC;IACjD,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4EAA4E;AAC5E,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,qGAAqG;IACrG,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uGAAuG;IACvG,YAAY,EAAE,iCAAiC,EAAE,CAAC;CACnD;AAED,kEAAkE;AAClE,MAAM,WAAW,iCAAiC;IAChD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,MAAM,WAAW,iCAAiC;IAChD,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,kCAAkC;IACjD,iCAAiC;IACjC,IAAI,EAAE,M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AAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qJAAqJ;IACrJ,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,0DAA0D;IAC1D,MAAM,EAAE,4BAA4B,CAAC;IACrC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,8GAA8G;IAC9G,sBAAsB,CAAC,EAAE,kCAAkC,EAAE,CAAC;CAC/D"}
|
package/models/validation.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ export declare enum DeploymentCreationFieldErrorCode {
|
|
|
5
5
|
/** The field's value does not match the required character pattern. */
|
|
6
6
|
InvalidFormat = "invalid-format",
|
|
7
7
|
/** The field's value exceeds its maximum length. */
|
|
8
|
-
TooLong = "too-long"
|
|
8
|
+
TooLong = "too-long",
|
|
9
|
+
/** The name contains a control character (line break, tab, …). */
|
|
10
|
+
ControlCharacters = "control-characters"
|
|
9
11
|
}
|
|
10
12
|
/** Untranslated error codes returned by `validateDeploymentCreationFields`. */
|
|
11
13
|
export interface DeploymentCreationFormErrorCodes {
|
|
@@ -13,6 +15,8 @@ export interface DeploymentCreationFormErrorCodes {
|
|
|
13
15
|
name?: DeploymentCreationFieldErrorCode;
|
|
14
16
|
/** Error code for the version field, if invalid. */
|
|
15
17
|
version?: DeploymentCreationFieldErrorCode;
|
|
18
|
+
/** Error code for the description field, if invalid. */
|
|
19
|
+
description?: DeploymentCreationFieldErrorCode;
|
|
16
20
|
}
|
|
17
21
|
/** Optional pattern-check toggles for field validation. */
|
|
18
22
|
export interface DeploymentCreationFormValidationOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/models/validation.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,oBAAY,gCAAgC;IAC1C,gDAAgD;IAChD,QAAQ,aAAa;IACrB,uEAAuE;IACvE,aAAa,mBAAmB;IAChC,oDAAoD;IACpD,OAAO,aAAa;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/models/validation.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,oBAAY,gCAAgC;IAC1C,gDAAgD;IAChD,QAAQ,aAAa;IACrB,uEAAuE;IACvE,aAAa,mBAAmB;IAChC,oDAAoD;IACpD,OAAO,aAAa;IACpB,kEAAkE;IAClE,iBAAiB,uBAAuB;CACzC;AAED,+EAA+E;AAC/E,MAAM,WAAW,gCAAgC;IAC/C,iDAAiD;IACjD,IAAI,CAAC,EAAE,gCAAgC,CAAC;IACxC,oDAAoD;IACpD,OAAO,CAAC,EAAE,gCAAgC,CAAC;IAC3C,wDAAwD;IACxD,WAAW,CAAC,EAAE,gCAAgC,CAAC;CAChD;AAED,2DAA2D;AAC3D,MAAM,WAAW,uCAAuC;IACtD,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3C"}
|
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.170",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@tabler/icons-react": "^3.44.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.170",
|
|
24
24
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.20",
|
|
25
25
|
"react": "^19.2.8"
|
|
26
26
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AAEtD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}
|