@epam/ai-dial-builder-form 1.3.0-dev.322 → 1.3.0-dev.326

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.
@@ -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;AAWzF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAkMlE,CAAC"}
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;AAWzF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAoMlE,CAAC"}
@@ -6,8 +6,10 @@ export interface DeploymentLocalesFieldProps {
6
6
  value: DeploymentCreationFormLocaleEntry[];
7
7
  /** Called with the full updated list when the user saves changes in the popup. */
8
8
  onChange: (entries: DeploymentCreationFormLocaleEntry[]) => void;
9
- /** Selectable language options for new/existing rows. Defaults to an empty list, in which case the whole control renders nothing. */
9
+ /** Selectable language options for new/existing rows. Defaults to an empty list; with no options and no retained entry in `value` the whole control renders nothing. */
10
10
  availableLocaleOptions?: DeploymentCreationFormLocaleOption[];
11
+ /** Labels a retained code — an entry language that is not in `availableLocaleOptions`. Defaults to `code.toUpperCase()`. */
12
+ formatLocaleLabel?: (code: string) => string;
11
13
  /** Pre-translated labels for the summary row and popup. */
12
14
  labels: DeploymentCreationFormLocaleLabels;
13
15
  /** Class applied to the summary row container. */
@@ -19,6 +21,6 @@ export interface DeploymentLocalesFieldProps {
19
21
  /** Color overrides, applied as CSS custom properties. */
20
22
  colors?: DeploymentLocalesFieldColors;
21
23
  }
22
- /** Summary row ("Locales: [DE] Edit locales") plus the "Add locale" popup for editing additional name/description translations. Shows "Add locales" instead of "Edit locales" until at least one entry exists, and renders nothing at all when `availableLocaleOptions` is empty. */
24
+ /** Summary row ("Locales: [DE] Edit locales") plus the "Add locale" popup for editing additional name/description translations; renders nothing when there is no option and no retained entry. */
23
25
  export declare const DeploymentLocalesField: FC<DeploymentLocalesFieldProps>;
24
26
  //# sourceMappingURL=DeploymentLocalesField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeploymentLocalesField.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentLocalesField/DeploymentLocalesField.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAA+B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EACV,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,uCAAuC,CAAC;AAG/C,gEAAgE;AAChE,MAAM,WAAW,2BAA2B;IAC1C,+DAA+D;IAC/D,KAAK,EAAE,iCAAiC,EAAE,CAAC;IAC3C,kFAAkF;IAClF,QAAQ,EAAE,CAAC,OAAO,EAAE,iCAAiC,EAAE,KAAK,IAAI,CAAC;IACjE,qIAAqI;IACrI,sBAAsB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC9D,2DAA2D;IAC3D,MAAM,EAAE,kCAAkC,CAAC;IAC3C,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8HAA8H;IAC9H,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yDAAyD;IACzD,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC;AAeD,sRAAsR;AACtR,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAqPlE,CAAC"}
1
+ {"version":3,"file":"DeploymentLocalesField.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentLocalesField/DeploymentLocalesField.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAA+B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EACV,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,uCAAuC,CAAC;AAG/C,gEAAgE;AAChE,MAAM,WAAW,2BAA2B;IAC1C,+DAA+D;IAC/D,KAAK,EAAE,iCAAiC,EAAE,CAAC;IAC3C,kFAAkF;IAClF,QAAQ,EAAE,CAAC,OAAO,EAAE,iCAAiC,EAAE,KAAK,IAAI,CAAC;IACjE,wKAAwK;IACxK,sBAAsB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC9D,4HAA4H;IAC5H,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,2DAA2D;IAC3D,MAAM,EAAE,kCAAkC,CAAC;IAC3C,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8HAA8H;IAC9H,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yDAAyD;IACzD,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC;AAiBD,mMAAmM;AACnM,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAwRlE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MetadataForm.d.ts","sourceRoot":"","sources":["../../../src/components/MetadataForm/MetadataForm.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAmG1E,yFAAyF;AACzF,eAAO,MAAM,YAAY,yDAA8B,CAAC"}
1
+ {"version":3,"file":"MetadataForm.d.ts","sourceRoot":"","sources":["../../../src/components/MetadataForm/MetadataForm.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAqG1E,yFAAyF;AACzF,eAAO,MAAM,YAAY,yDAA8B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Largest file `AvatarPickerModal` lets a user select as an avatar (1 MB). */
2
+ export declare const AVATAR_MAX_FILE_SIZE_BYTES: number;
3
+ /** MIME types `AvatarPickerModal` lets a user select as an avatar. */
4
+ export declare const AVATAR_ALLOWED_MIME_TYPES: string[];
5
+ //# sourceMappingURL=avatar-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar-picker.d.ts","sourceRoot":"","sources":["../../src/constants/avatar-picker.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,QAAc,CAAC;AAEtD,sEAAsE;AACtE,eAAO,MAAM,yBAAyB,UAIrC,CAAC"}
package/index.d.ts CHANGED
@@ -26,4 +26,5 @@ export { DeploymentCreationFieldErrorCode } from './models/validation';
26
26
  export { DEFAULT_DEPLOYMENT_VERSION, NAME_PATTERN, SEMVER_VERSION_PATTERN, VERSION_PATTERN, validateDeploymentCreationFields, } from './utils/validate-deployment-creation-fields';
27
27
  export { BUILDER_FORM_CLASS } from './constants/public-class-names';
28
28
  export { DEFAULT_METADATA_FORM_LABELS } from './constants/metadata-form';
29
+ export { AVATAR_ALLOWED_MIME_TYPES, AVATAR_MAX_FILE_SIZE_BYTES, } from './constants/avatar-picker';
29
30
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EACV,yBAAyB,EACzB,0BAA0B,EAC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AAgC,EAChC,uCAAuC,GACxC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,gCAAgC,GACjC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC"}
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
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
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, GhostButton as m, GhostIconButton as h, Input as g, Label as _, LinkButton as v, LiveRegion as y, LiveRegionElement as b, LiveRegionPoliteness as x, NeutralButton as S, Popup as C, PrimaryButton as w, ResizeHandle as T, Select as E, Spinner as D, TagInput as O, Textarea as k, TextareaResize as A } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
4
- import { IconArrowLeft as P, IconArrowNarrowLeft as F, IconPhoto as I, IconPlus as ee, IconTrashX as te } from "@tabler/icons-react";
5
- import { Suspense as ne, memo as L, useCallback as R, useEffect as re, useId as z, useLayoutEffect as B, useMemo as V, useRef as H, useState as U } from "react";
4
+ import { IconArrowLeft as P, IconArrowNarrowLeft as F, IconPhoto as I, IconPlus as L, IconTrashX as ee } from "@tabler/icons-react";
5
+ import { Suspense as te, memo as ne, useCallback as R, useEffect as re, useId as ie, useLayoutEffect as ae, useMemo as z, useRef as B, useState as V } from "react";
6
6
  //#region src/components/BuilderFormActions/BuilderFormActions.tsx
7
- var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(S, {
7
+ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(S, {
8
8
  label: e.cancelButtonLabel,
9
9
  onClick: t,
10
10
  disabled: r,
@@ -19,18 +19,18 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
19
19
  "aria-hidden": !0,
20
20
  children: /* @__PURE__ */ M(D, { size: u.SM })
21
21
  }) : void 0
22
- })] }), G = {
22
+ })] }), U = {
23
23
  body: "_body_1xd7h_2",
24
24
  sideColumn: "_sideColumn_1xd7h_6",
25
25
  reservedColumn: "_reservedColumn_1xd7h_10"
26
- }, K = s("flex flex-col desktop:min-h-0 desktop:overflow-y-auto", G.sideColumn), ie = ({ left: e, children: t, metadata: n, layout: r }) => {
26
+ }, W = s("flex flex-col desktop:min-h-0 desktop:overflow-y-auto", U.sideColumn), oe = ({ left: e, children: t, metadata: n, layout: r }) => {
27
27
  let i = e != null && n == null && r?.reserveEndColumn !== !1, a = r ? { "--bfb-side-column-width": r.sideColumnWidth ?? "400px" } : void 0, o = r ? { columnGap: r.columnGap ?? "0px" } : void 0;
28
28
  return /* @__PURE__ */ N("div", {
29
- className: s("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden", G.body),
29
+ className: s("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden", U.body),
30
30
  style: o,
31
31
  children: [
32
32
  e != null && /* @__PURE__ */ M("div", {
33
- className: K,
33
+ className: W,
34
34
  style: a,
35
35
  children: e
36
36
  }),
@@ -39,29 +39,29 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
39
39
  children: t
40
40
  }),
41
41
  n != null && /* @__PURE__ */ M("div", {
42
- className: K,
42
+ className: W,
43
43
  style: a,
44
44
  children: n
45
45
  }),
46
46
  i && /* @__PURE__ */ M("div", {
47
47
  "aria-hidden": !0,
48
48
  style: a,
49
- className: s(G.reservedColumn, G.sideColumn)
49
+ className: s(U.reservedColumn, U.sideColumn)
50
50
  })
51
51
  ]
52
52
  });
53
- }, q = {
53
+ }, G = {
54
54
  header: "_header_lon83_4",
55
55
  actions: "_actions_lon83_18",
56
56
  title: "_title_lon83_27"
57
- }, ae = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, styles: f }) => {
57
+ }, se = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, styles: f }) => {
58
58
  let { colors: p, typography: m } = f ?? {}, g = m?.fontClassName ?? "dial-h1-text", _ = !!m?.fontClassName, v = i({
59
59
  "--bfh-border": p?.borderColor,
60
60
  "--bfh-font-family": _ ? void 0 : m?.fontFamily
61
61
  });
62
62
  return /* @__PURE__ */ N("div", {
63
63
  style: v,
64
- className: s("flex min-h-16 shrink-0 items-center justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:px-8 desktop:py-0", q.header),
64
+ className: s("flex min-h-16 shrink-0 items-center justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:px-8 desktop:py-0", G.header),
65
65
  children: [
66
66
  /* @__PURE__ */ N("div", {
67
67
  className: "flex min-w-0 flex-1 items-center gap-2",
@@ -75,13 +75,13 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
75
75
  "aria-label": e.backButtonLabel,
76
76
  onClick: t
77
77
  }), /* @__PURE__ */ M("h1", {
78
- className: s("truncate", q.title, g),
78
+ className: s("truncate", G.title, g),
79
79
  children: e.title
80
80
  })]
81
81
  }),
82
82
  /* @__PURE__ */ M("div", {
83
- className: s("items-center gap-2", q.actions),
84
- children: /* @__PURE__ */ M(W, {
83
+ className: s("items-center gap-2", G.actions),
84
+ children: /* @__PURE__ */ M(H, {
85
85
  labels: e,
86
86
  onCancel: n,
87
87
  onSubmit: r,
@@ -97,19 +97,19 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
97
97
  })
98
98
  ]
99
99
  });
100
- }, J = {
100
+ }, ce = {
101
101
  container: "_container_14mfe_1",
102
102
  footer: "_footer_14mfe_10"
103
- }, oe = ({ 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 }) => {
103
+ }, K = ({ 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 }) => {
104
104
  let { colors: g, header: _, cssVars: v } = h ?? {};
105
105
  return /* @__PURE__ */ N("div", {
106
106
  style: {
107
107
  ...i({ "--bfc-bg": g?.background }),
108
108
  ...v
109
109
  },
110
- className: s("flex h-full min-h-0 w-full flex-col overflow-hidden", u, J.container),
110
+ className: s("flex h-full min-h-0 w-full flex-col overflow-hidden", u, ce.container),
111
111
  children: [
112
- /* @__PURE__ */ M(ae, {
112
+ /* @__PURE__ */ M(se, {
113
113
  labels: e,
114
114
  onBack: t,
115
115
  onCancel: n,
@@ -120,15 +120,15 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
120
120
  backIcon: l,
121
121
  styles: _
122
122
  }),
123
- /* @__PURE__ */ M(ie, {
123
+ /* @__PURE__ */ M(oe, {
124
124
  left: d,
125
125
  metadata: p,
126
126
  layout: m,
127
127
  children: f
128
128
  }),
129
129
  /* @__PURE__ */ M("div", {
130
- className: s("sticky bottom-0 z-10 items-center gap-2 p-3 shadow-sm", J.footer),
131
- children: /* @__PURE__ */ M(W, {
130
+ className: s("sticky bottom-0 z-10 items-center gap-2 p-3 shadow-sm", ce.footer),
131
+ children: /* @__PURE__ */ M(H, {
132
132
  labels: e,
133
133
  onCancel: n,
134
134
  onSubmit: r,
@@ -140,41 +140,41 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
140
140
  })
141
141
  ]
142
142
  });
143
- }, Y = {
143
+ }, q = {
144
144
  layout: "dial-builder-form-layout",
145
145
  section: "dial-builder-form-section",
146
146
  metadataSection: "dial-builder-form-metadata-section",
147
147
  setupSection: "dial-builder-form-setup-section",
148
148
  asideSection: "dial-builder-form-aside-section"
149
- }, se = {
149
+ }, J = {
150
150
  section: "_section_l1mnx_1",
151
151
  title: "_title_l1mnx_5"
152
- }, X = ({ title: e, children: t, styles: n, className: r }) => {
152
+ }, Y = ({ title: e, children: t, styles: n, className: r }) => {
153
153
  let a = i({
154
154
  "--es-border-color": n?.colors?.borderColor,
155
155
  "--es-title-color": n?.colors?.titleColor
156
156
  });
157
157
  return /* @__PURE__ */ N("section", {
158
- className: s("flex h-full flex-col gap-4 rounded border", se.section, r, Y.section),
158
+ className: s("flex h-full flex-col gap-4 rounded border", J.section, r, q.section),
159
159
  style: a,
160
160
  children: [e != null && /* @__PURE__ */ M("h2", {
161
- className: s(n?.typography?.titleClassName ?? "dial-h3-text", se.title),
161
+ className: s(n?.typography?.titleClassName ?? "dial-h3-text", J.title),
162
162
  children: e
163
163
  }), t]
164
164
  });
165
- }, ce = (e, { min: t = 280, max: n = 640, containerWidth: r } = {}) => {
165
+ }, le = (e, { min: t = 280, max: n = 640, containerWidth: r } = {}) => {
166
166
  let i = r != null && r > 0 ? r - 360 : n;
167
167
  return Math.round(Math.min(Math.max(t, Math.min(n, i)), Math.max(t, Number.isFinite(e) ? e : t)));
168
- }, Z = {
168
+ }, X = {
169
169
  headerBorder: "_headerBorder_1adw2_1",
170
170
  footerBorder: "_footerBorder_1adw2_5",
171
171
  columnBorder: "_columnBorder_1adw2_10"
172
- }, le = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: a, centerContent: o, rightContent: c, resizableLeftColumn: l, isSaving: f = !1, labels: p, styles: m, dir: g }) => {
173
- let _ = z(), v = f ? p?.savingStatusLabel ?? "Saving" : "", x = H(null), [S, C] = U(), w = l != null && o != null, E = l?.minWidth, D = l?.maxWidth, O = {
172
+ }, ue = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: a, centerContent: o, rightContent: c, resizableLeftColumn: l, isSaving: f = !1, labels: p, styles: m, dir: g }) => {
173
+ let _ = ie(), v = f ? p?.savingStatusLabel ?? "Saving" : "", x = B(null), [S, C] = V(), w = l != null && o != null, E = l?.minWidth, D = l?.maxWidth, O = {
174
174
  min: E,
175
175
  max: D,
176
176
  containerWidth: S
177
- }, k = w ? ce(l.width, O) : void 0, A = ce(D ?? 640, O);
177
+ }, k = w ? le(l.width, O) : void 0, A = le(D ?? 640, O);
178
178
  re(() => {
179
179
  let e = x.current;
180
180
  if (!w || e == null || typeof ResizeObserver > "u") return;
@@ -187,7 +187,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
187
187
  });
188
188
  return /* @__PURE__ */ N("div", {
189
189
  dir: g,
190
- className: s("flex min-h-0 flex-1 flex-col", Y.layout),
190
+ className: s("flex min-h-0 flex-1 flex-col", q.layout),
191
191
  style: j,
192
192
  children: [
193
193
  /* @__PURE__ */ M(y, {
@@ -197,7 +197,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
197
197
  children: v
198
198
  }),
199
199
  /* @__PURE__ */ N("div", {
200
- className: s("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pt-3 desktop:pb-3", Z.headerBorder),
200
+ className: s("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pt-3 desktop:pb-3", X.headerBorder),
201
201
  children: [/* @__PURE__ */ N("div", {
202
202
  className: "flex min-w-0 flex-1 items-center gap-2",
203
203
  children: [/* @__PURE__ */ M(h, {
@@ -223,7 +223,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
223
223
  className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
224
224
  children: [
225
225
  /* @__PURE__ */ M("div", {
226
- className: s(o == null ? "desktop:flex-1" : "desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", o != null && !w && "desktop:w-[400px]", w && "desktop:relative desktop:w-(--el-left-width)", "desktop:overflow-y-auto", o == null ? void 0 : Z.columnBorder),
226
+ className: s(o == null ? "desktop:flex-1" : "desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", o != null && !w && "desktop:w-[400px]", w && "desktop:relative desktop:w-(--el-left-width)", "desktop:overflow-y-auto", o == null ? void 0 : X.columnBorder),
227
227
  style: k == null ? void 0 : { "--el-left-width": `${k}px` },
228
228
  children: a
229
229
  }),
@@ -244,18 +244,18 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
244
244
  children: o
245
245
  }),
246
246
  c != null && /* @__PURE__ */ M("div", {
247
- className: s("desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s", Z.columnBorder),
247
+ className: s("desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s", X.columnBorder),
248
248
  children: c
249
249
  })
250
250
  ]
251
251
  }),
252
252
  r != null && /* @__PURE__ */ M("div", {
253
- className: s("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 *:flex-1 desktop:hidden", Z.footerBorder),
253
+ className: s("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 *:flex-1 desktop:hidden", X.footerBorder),
254
254
  children: r
255
255
  })
256
256
  ]
257
257
  });
258
- }, ue = {
258
+ }, Z = {
259
259
  box: "_box_c9as8_1",
260
260
  icon: "_icon_c9as8_6",
261
261
  caption: "_caption_c9as8_10"
@@ -272,7 +272,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
272
272
  children: [/* @__PURE__ */ M(_, { label: e }), /* @__PURE__ */ N("div", {
273
273
  className: "flex items-start gap-3",
274
274
  children: [/* @__PURE__ */ M("div", {
275
- className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", ue.box),
275
+ className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Z.box),
276
276
  children: t ? /* @__PURE__ */ M("img", {
277
277
  src: t,
278
278
  alt: n,
@@ -281,13 +281,13 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
281
281
  size: u.LG,
282
282
  stroke: d,
283
283
  "aria-hidden": !0,
284
- className: ue.icon
284
+ className: Z.icon
285
285
  })
286
286
  }), /* @__PURE__ */ N("div", {
287
287
  className: "flex flex-col gap-3",
288
288
  children: [/* @__PURE__ */ M(m, {
289
289
  size: p.Small,
290
- iconBefore: /* @__PURE__ */ M(ee, {
290
+ iconBefore: /* @__PURE__ */ M(L, {
291
291
  size: u.SM,
292
292
  stroke: d,
293
293
  "aria-hidden": !0
@@ -296,7 +296,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
296
296
  label: r,
297
297
  onClick: o
298
298
  }), /* @__PURE__ */ M("span", {
299
- className: s(c, ue.caption),
299
+ className: s(c, Z.caption),
300
300
  children: a
301
301
  })]
302
302
  })]
@@ -346,7 +346,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
346
346
  p,
347
347
  u
348
348
  ]);
349
- return /* @__PURE__ */ M(ne, {
349
+ return /* @__PURE__ */ M(te, {
350
350
  fallback: null,
351
351
  children: e && /* @__PURE__ */ M(a, {
352
352
  isOpen: e,
@@ -396,176 +396,183 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
396
396
  language: n.find((e) => !t.has(e.code))?.code ?? "",
397
397
  name: "",
398
398
  description: ""
399
- }), _e = ({ value: e, onChange: t, availableLocaleOptions: r = [], labels: a, className: o, summaryClassName: m = "dial-body-text", rowLabelClassName: h = "dial-tiny-lead-text", colors: _ }) => {
400
- let y = i({
401
- "--dlf-summary-text": _?.summaryText,
402
- "--dlf-row-label-text": _?.rowLabelText
403
- }), { summaryLabel: b, addLabel: x, editLabel: S, popupTitle: w, addLocaleLabel: T, localeRowLabel: D = "Locale", languageLabel: O, nameLabel: j, namePlaceholder: P, descriptionLabel: F, descriptionPlaceholder: I, deleteAriaLabel: ne, cancelLabel: L = "Cancel", saveLabel: R = "Save" } = a, [z, B] = U(!1), [V, W] = U([]), G = H(0);
399
+ }), _e = (e) => e.toUpperCase(), ve = ({ value: e, onChange: t, availableLocaleOptions: r = [], formatLocaleLabel: a = _e, labels: o, className: m, summaryClassName: h = "dial-body-text", rowLabelClassName: _ = "dial-tiny-lead-text", colors: y }) => {
400
+ let b = i({
401
+ "--dlf-summary-text": y?.summaryText,
402
+ "--dlf-row-label-text": y?.rowLabelText
403
+ }), { summaryLabel: x, addLabel: S, editLabel: w, popupTitle: T, addLocaleLabel: D, localeRowLabel: O = "Locale", languageLabel: j, nameLabel: P, namePlaceholder: F, descriptionLabel: I, descriptionPlaceholder: te, deleteAriaLabel: ne, cancelLabel: R = "Cancel", saveLabel: ie = "Save" } = o, [ae, z] = V(!1), [H, U] = V([]), W = B(0);
404
404
  re(() => {
405
- z && W(e.length > 0 ? e : [ge(`locale-row-${++G.current}`, /* @__PURE__ */ new Set(), r)]);
405
+ ae && U(e.length > 0 ? e : [ge(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), r)]);
406
406
  }, [
407
- z,
407
+ ae,
408
408
  e,
409
409
  r
410
410
  ]);
411
- let K = () => B(!0), ie = () => B(!1), q = () => {
412
- t(V.filter((e) => e.language && e.name)), B(!1);
413
- }, ae = () => {
414
- let e = new Set(V.map((e) => e.language).filter(Boolean));
415
- W((t) => [...t, ge(`locale-row-${++G.current}`, e, r)]);
416
- }, J = (e, t) => {
417
- W((n) => n.map((n) => n.id === e ? {
411
+ let oe = () => z(!0), G = () => z(!1), se = () => {
412
+ t(H.filter((e) => e.language && e.name)), z(!1);
413
+ }, ce = () => {
414
+ let e = new Set(H.map((e) => e.language).filter(Boolean));
415
+ U((t) => [...t, ge(`locale-row-${++W.current}`, e, r)]);
416
+ }, K = (e, t) => {
417
+ U((n) => n.map((n) => n.id === e ? {
418
418
  ...n,
419
419
  ...t
420
420
  } : n));
421
- }, oe = (e) => {
422
- W((t) => t.filter((t) => t.id !== e));
423
- }, Y = (e) => r.find((t) => t.code === e)?.label ?? e.toUpperCase(), se = V.some((e) => !e.language || !e.name);
424
- return r.length === 0 ? null : /* @__PURE__ */ N("div", {
425
- className: s("flex items-center gap-2", o),
426
- style: y,
421
+ }, q = (e) => {
422
+ U((t) => t.filter((t) => t.id !== e));
423
+ }, J = new Set(r.map((e) => e.code)), Y = (e) => e !== "" && !J.has(e), le = e.some((e) => Y(e.language)), X = new Set(H.map((e) => e.language).filter((e) => J.has(e))).size, ue = (t, n) => {
424
+ let i = e.find((e) => e.id === t.id)?.language, o = [...new Set([i ?? "", t.language].filter(Y))];
425
+ return [...r.map((e) => ({
426
+ value: e.code,
427
+ label: e.label,
428
+ disabled: n.has(e.code)
429
+ })), ...o.map((e) => ({
430
+ value: e,
431
+ label: a(e),
432
+ disabled: n.has(e)
433
+ }))];
434
+ }, Z = H.some((e) => !e.language || !e.name);
435
+ return r.length === 0 && !le ? null : /* @__PURE__ */ N("div", {
436
+ className: s("flex items-center gap-2", m),
437
+ style: b,
427
438
  children: [
428
439
  e.length > 0 && /* @__PURE__ */ M("span", {
429
- className: s(he.summary, m),
430
- children: `${b}: ${e.map((e) => `[${Y(e.language)}]`).join(", ")}`
440
+ className: s(he.summary, h),
441
+ children: `${x}: ${e.map((e) => `[${e.language.toUpperCase()}]`).join(", ")}`
431
442
  }),
432
443
  /* @__PURE__ */ M(v, {
433
- label: e.length > 0 ? S : x,
434
- iconBefore: /* @__PURE__ */ M(ee, {
444
+ label: e.length > 0 ? w : S,
445
+ iconBefore: /* @__PURE__ */ M(L, {
435
446
  size: u.SM,
436
447
  "aria-hidden": !0,
437
448
  stroke: d
438
449
  }),
439
450
  className: "px-0!",
440
- onClick: K
451
+ onClick: oe
441
452
  }),
442
453
  /* @__PURE__ */ M(C, {
443
- open: z,
444
- header: w,
445
- onClose: ie,
454
+ open: ae,
455
+ header: T,
456
+ onClose: G,
446
457
  mainButtons: [{
447
- label: L,
448
- onClick: ie
449
- }, {
450
458
  label: R,
459
+ onClick: G
460
+ }, {
461
+ label: ie,
451
462
  variant: l.Primary,
452
- disabled: se,
453
- onClick: q
463
+ disabled: Z,
464
+ onClick: se
454
465
  }],
455
466
  children: /* @__PURE__ */ N("div", {
456
467
  className: "flex flex-col gap-8 px-6 py-3",
457
- style: y,
458
- children: [V.map((e, t) => {
459
- let i = new Set(V.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
468
+ style: b,
469
+ children: [H.map((e, t) => {
470
+ let r = new Set(H.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
460
471
  return /* @__PURE__ */ N("div", {
461
472
  className: "flex flex-col gap-2",
462
473
  children: [/* @__PURE__ */ N("div", {
463
474
  className: "flex items-center justify-between",
464
475
  children: [/* @__PURE__ */ N("span", {
465
- className: s(he.rowLabel, h),
476
+ className: s(he.rowLabel, _),
466
477
  children: [
467
- D,
478
+ O,
468
479
  " ",
469
480
  t + 1
470
481
  ]
471
482
  }), /* @__PURE__ */ M(f, {
472
483
  appearance: c.Ghost,
473
484
  size: p.Small,
474
- icon: /* @__PURE__ */ M(te, {
485
+ icon: /* @__PURE__ */ M(ee, {
475
486
  size: u.SM,
476
487
  "aria-hidden": !0,
477
488
  stroke: d
478
489
  }),
479
490
  "aria-label": `${ne} ${t + 1}`,
480
- onClick: () => oe(e.id)
491
+ onClick: () => q(e.id)
481
492
  })]
482
493
  }), /* @__PURE__ */ N("div", {
483
494
  role: "group",
484
- "aria-label": `${D} ${t + 1}`,
495
+ "aria-label": `${O} ${t + 1}`,
485
496
  className: "flex flex-col gap-5",
486
497
  children: [/* @__PURE__ */ N("div", {
487
498
  className: "flex flex-col gap-5 desktop:flex-row desktop:items-start",
488
499
  children: [/* @__PURE__ */ M(E, {
489
500
  id: `${e.id}-language`,
490
501
  labelProps: {
491
- label: O,
502
+ label: j,
492
503
  required: !0
493
504
  },
494
505
  className: "desktop:shrink-0 desktop:basis-40",
495
- options: r.map((e) => ({
496
- value: e.code,
497
- label: e.label,
498
- disabled: i.has(e.code)
499
- })),
506
+ options: ue(e, r),
500
507
  value: e.language,
501
- onChange: (t) => J(e.id, { language: t })
508
+ onChange: (t) => K(e.id, { language: t })
502
509
  }), /* @__PURE__ */ M(g, {
503
510
  id: `${e.id}-name`,
504
511
  containerClassName: "min-w-0 flex-1",
505
512
  required: !0,
506
513
  value: e.name,
507
- onChange: (t) => J(e.id, { name: t ?? "" }),
514
+ onChange: (t) => K(e.id, { name: t ?? "" }),
508
515
  labelProps: {
509
- label: j,
516
+ label: P,
510
517
  required: !0
511
518
  },
512
- placeholder: P
519
+ placeholder: F
513
520
  })]
514
521
  }), /* @__PURE__ */ M(k, {
515
522
  id: `${e.id}-description`,
516
523
  className: n,
517
524
  resize: A.Vertical,
518
525
  value: e.description,
519
- onChange: (t) => J(e.id, { description: t }),
520
- labelProps: { label: F },
521
- placeholder: I
526
+ onChange: (t) => K(e.id, { description: t }),
527
+ labelProps: { label: I },
528
+ placeholder: te
522
529
  })]
523
530
  })]
524
531
  }, e.id);
525
532
  }), /* @__PURE__ */ M(v, {
526
- label: T,
527
- iconBefore: /* @__PURE__ */ M(ee, {
533
+ label: D,
534
+ iconBefore: /* @__PURE__ */ M(L, {
528
535
  size: u.SM,
529
536
  "aria-hidden": !0,
530
537
  stroke: d
531
538
  }),
532
539
  className: "self-start",
533
- onClick: ae,
534
- disabled: V.length >= r.length
540
+ onClick: ce,
541
+ disabled: X >= r.length
535
542
  })]
536
543
  })
537
544
  })
538
545
  ]
539
546
  });
540
- }, ve = "Add tags, comma separated", ye = "deployment-creation-form-description", be = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = me, isNameReadOnly: m = !1, nameReadOnlyTooltip: h, nameCaption: _, isDescriptionRequired: v = !1, descriptionCaption: y, renderDescription: b, focusRequestKey: x }) => {
541
- let S = H(null), C = H(null), w = H(null), T = H(!1), E = (e) => p.includes(e), D = E(Q.Name), j = E(Q.Version), P = !!(t.name || t.version || t.description), F = H(x);
547
+ }, ye = "Add tags, comma separated", be = "deployment-creation-form-description", xe = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], formatLocaleLabel: p, fields: m = me, isNameReadOnly: h = !1, nameReadOnlyTooltip: _, nameCaption: v, isDescriptionRequired: y = !1, descriptionCaption: b, renderDescription: x, focusRequestKey: S }) => {
548
+ let C = B(null), w = B(null), T = B(null), E = B(!1), D = (e) => m.includes(e), j = D(Q.Name), P = D(Q.Version), F = !!(t.name || t.version || t.description), I = B(S);
542
549
  re(() => {
543
550
  let e = () => {
544
- t.name ? S.current?.focus() : t.version ? C.current?.focus() : t.description && w.current?.focus();
551
+ t.name ? C.current?.focus() : t.version ? w.current?.focus() : t.description && T.current?.focus();
545
552
  };
546
- x === void 0 ? (P && !T.current && e(), T.current = P) : x !== F.current && (F.current = x, e());
553
+ S === void 0 ? (F && !E.current && e(), E.current = F) : S !== I.current && (I.current = S, e());
547
554
  }, [
548
- x,
549
- P,
555
+ S,
556
+ F,
550
557
  t.name,
551
558
  t.version,
552
559
  t.description
553
560
  ]);
554
- let I = /* @__PURE__ */ M(k, {
555
- id: ye,
556
- ref: w,
561
+ let L = /* @__PURE__ */ M(k, {
562
+ id: be,
563
+ ref: T,
557
564
  value: e.description,
558
565
  onChange: (e) => i({ description: e }),
559
- "aria-required": v || void 0,
560
- labelProps: b ? void 0 : {
566
+ "aria-required": y || void 0,
567
+ labelProps: x ? void 0 : {
561
568
  label: u.description.label,
562
- required: v
569
+ required: y
563
570
  },
564
571
  placeholder: u.description.placeholder,
565
- caption: y,
572
+ caption: b,
566
573
  error: t.description || void 0,
567
574
  invalid: !!t.description,
568
- containerClassName: b ? void 0 : d?.field,
575
+ containerClassName: x ? void 0 : d?.field,
569
576
  className: n,
570
577
  resize: A.Vertical
571
578
  });
@@ -574,7 +581,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
574
581
  "aria-label": u.ariaLabel,
575
582
  className: s("flex flex-col gap-4", d?.root),
576
583
  children: [
577
- E(Q.Avatar) && /* @__PURE__ */ M(de, {
584
+ D(Q.Avatar) && /* @__PURE__ */ M(de, {
578
585
  label: u.iconUrl.label,
579
586
  avatarUrl: c,
580
587
  addAvatarLabel: u.iconUrl.addAvatarLabel,
@@ -582,28 +589,28 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
582
589
  onAddAvatarClick: l,
583
590
  className: d?.field
584
591
  }),
585
- (D || j) && /* @__PURE__ */ N("div", {
592
+ (j || P) && /* @__PURE__ */ N("div", {
586
593
  className: s("flex items-start gap-4", d?.field),
587
- children: [D && /* @__PURE__ */ M(g, {
594
+ children: [j && /* @__PURE__ */ M(g, {
588
595
  id: "deployment-creation-form-name",
589
- inputRef: S,
596
+ inputRef: C,
590
597
  value: e.name,
591
598
  onChange: (e) => i({ name: e ?? "" }),
592
599
  onBlur: a,
593
- disabled: m,
594
- tooltipText: m ? h : void 0,
600
+ disabled: h,
601
+ tooltipText: h ? _ : void 0,
595
602
  labelProps: {
596
603
  label: u.name.label,
597
604
  required: !0
598
605
  },
599
606
  placeholder: u.name.placeholder,
600
- caption: _,
607
+ caption: v,
601
608
  error: t.name || void 0,
602
609
  invalid: !!t.name,
603
- containerClassName: j ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
604
- }), j && /* @__PURE__ */ M(g, {
610
+ containerClassName: P ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
611
+ }), P && /* @__PURE__ */ M(g, {
605
612
  id: "deployment-creation-form-version",
606
- inputRef: C,
613
+ inputRef: w,
607
614
  value: e.version,
608
615
  onChange: (e) => i({ version: e ?? "" }),
609
616
  onBlur: o,
@@ -611,27 +618,28 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
611
618
  placeholder: u.version.placeholder,
612
619
  error: t.version || void 0,
613
620
  invalid: !!t.version,
614
- containerClassName: D ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
621
+ containerClassName: j ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
615
622
  })]
616
623
  }),
617
- E(Q.Description) && (b ? /* @__PURE__ */ M("div", {
624
+ D(Q.Description) && (x ? /* @__PURE__ */ M("div", {
618
625
  className: d?.field,
619
- children: b(I, ye)
620
- }) : I),
621
- E(Q.Locales) && /* @__PURE__ */ M(_e, {
626
+ children: x(L, be)
627
+ }) : L),
628
+ D(Q.Locales) && /* @__PURE__ */ M(ve, {
622
629
  value: e.otherLocales,
623
630
  onChange: (e) => i({ otherLocales: e }),
624
631
  availableLocaleOptions: f,
632
+ formatLocaleLabel: p,
625
633
  labels: u.otherLocales,
626
634
  className: d?.field,
627
635
  colors: d?.localesColors
628
636
  }),
629
- E(Q.Tags) && /* @__PURE__ */ M("div", {
637
+ D(Q.Tags) && /* @__PURE__ */ M("div", {
630
638
  className: d?.field,
631
639
  children: /* @__PURE__ */ M(O, {
632
640
  id: "deployment-creation-form-topics",
633
641
  labelProps: { label: u.topics.label },
634
- placeholder: u.topics.placeholder ?? ve,
642
+ placeholder: u.topics.placeholder ?? ye,
635
643
  value: e.topics,
636
644
  onChange: (e) => i({ topics: e }),
637
645
  tagClassName: r
@@ -639,13 +647,13 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
639
647
  })
640
648
  ]
641
649
  });
642
- }, xe = "border-0 p-4 desktop:p-8", Se = "border-0", Ce = "desktop:flex-1", we = "px-4 pt-4 desktop:px-6 desktop:pt-6", Te = L(({ title: e, onBack: t, onCancel: n, onSubmit: r, submitLabel: i, isSubmitting: a = !1, isSubmitDisabled: o = !1, extraActions: c, hideStandardActions: l = !1, metadata: u, metadataTitle: d, metadataFooter: f, setup: p, setupTitle: m, asideData: h, asideTitle: g, asideSectionClassName: _, alert: v, resizableLeftColumn: b, metadataSectionClassName: C, setupSectionClassName: T, hasSetupSectionPadding: E = !0, labels: D, styles: O, dir: k }) => {
650
+ }, Se = "border-0 p-4 desktop:p-8", Ce = "border-0", we = "desktop:flex-1", Te = "px-4 pt-4 desktop:px-6 desktop:pt-6", Ee = ne(({ title: e, onBack: t, onCancel: n, onSubmit: r, submitLabel: i, isSubmitting: a = !1, isSubmitDisabled: o = !1, extraActions: c, hideStandardActions: l = !1, metadata: u, metadataTitle: d, metadataFooter: f, setup: p, setupTitle: m, asideData: h, asideTitle: g, asideSectionClassName: _, alert: v, resizableLeftColumn: b, metadataSectionClassName: C, setupSectionClassName: T, hasSetupSectionPadding: E = !0, labels: D, styles: O, dir: k }) => {
643
651
  let A = /* @__PURE__ */ M(y, {
644
652
  politeness: x.Assertive,
645
- className: v == null ? void 0 : we,
653
+ className: v == null ? void 0 : Te,
646
654
  children: v
647
655
  }), P = p != null;
648
- return /* @__PURE__ */ M(le, {
656
+ return /* @__PURE__ */ M(ue, {
649
657
  title: e,
650
658
  onBack: t,
651
659
  backAriaLabel: D?.backAriaLabel ?? "Back",
@@ -656,10 +664,10 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
656
664
  resizeHandleLabel: D?.resizeHandleLabel,
657
665
  resizeHandleTooltip: D?.resizeHandleTooltip
658
666
  },
659
- rightContent: h == null ? void 0 : /* @__PURE__ */ M(X, {
667
+ rightContent: h == null ? void 0 : /* @__PURE__ */ M(Y, {
660
668
  title: g,
661
669
  styles: O?.section,
662
- className: s(xe, _, Y.asideSection),
670
+ className: s(Se, _, q.asideSection),
663
671
  children: h
664
672
  }),
665
673
  styles: O?.layout,
@@ -675,22 +683,22 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
675
683
  })] })] }),
676
684
  leftContent: /* @__PURE__ */ N(j, { children: [
677
685
  !P && A,
678
- /* @__PURE__ */ M(X, {
686
+ /* @__PURE__ */ M(Y, {
679
687
  title: d === null ? void 0 : d ?? D?.metadataTitle ?? "Metadata",
680
688
  styles: O?.section,
681
- className: s(xe, C, Y.metadataSection),
689
+ className: s(Se, C, q.metadataSection),
682
690
  children: u
683
691
  }),
684
692
  f
685
693
  ] }),
686
- centerContent: P ? /* @__PURE__ */ N(j, { children: [A, /* @__PURE__ */ M(X, {
694
+ centerContent: P ? /* @__PURE__ */ N(j, { children: [A, /* @__PURE__ */ M(Y, {
687
695
  title: m === null ? void 0 : m ?? D?.setupTitle ?? "Setup",
688
696
  styles: O?.section,
689
- className: s(E ? xe : Se, Ce, T, Y.setupSection),
697
+ className: s(E ? Se : Ce, we, T, q.setupSection),
690
698
  children: p
691
699
  })] }) : void 0
692
700
  });
693
- }), Ee = {
701
+ }), De = {
694
702
  name: {
695
703
  label: "Name",
696
704
  placeholder: "Enter name"
@@ -729,7 +737,7 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
729
737
  saveLabel: "Save"
730
738
  },
731
739
  ariaLabel: "Metadata"
732
- }, De = {
740
+ }, Oe = {
733
741
  title: "Add avatar",
734
742
  attachLabel: "Attach",
735
743
  emptyTitle: "This folder is empty",
@@ -753,66 +761,67 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
753
761
  deleteConfirmItemsLabel: "items?",
754
762
  deleteConfirmLabel: "Delete",
755
763
  deleteCancelLabel: "Cancel"
756
- }, Oe = L(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = me, isNameReadOnly: c, nameReadOnlyTooltip: l, nameCaption: u, isDescriptionRequired: d, descriptionCaption: f, renderDescription: p, focusRequestKey: m, labels: h }) => {
757
- let [g, _] = U(!1), v = V(() => a ? s : s.filter((e) => e !== Q.Avatar), [a, s]), y = e.iconUrl, b = a?.resolveIconUrl, x = V(() => b ? b(y) : void 0, [y, b]), S = R(() => _(!0), []), C = R(() => _(!1), []), w = a?.resolveAttachedIconUrl, T = R((e) => {
758
- let t = w?.(e);
759
- t && n({ iconUrl: t }), _(!1);
760
- }, [n, w]);
761
- return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(be, {
764
+ }, ke = ne(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, formatLocaleLabel: s, fields: c = me, isNameReadOnly: l, nameReadOnlyTooltip: u, nameCaption: d, isDescriptionRequired: f, descriptionCaption: p, renderDescription: m, focusRequestKey: h, labels: g }) => {
765
+ let [_, v] = V(!1), y = z(() => a ? c : c.filter((e) => e !== Q.Avatar), [a, c]), b = e.iconUrl, x = a?.resolveIconUrl, S = z(() => x ? x(b) : void 0, [b, x]), C = R(() => v(!0), []), w = R(() => v(!1), []), T = a?.resolveAttachedIconUrl, E = R((e) => {
766
+ let t = T?.(e);
767
+ t && n({ iconUrl: t }), v(!1);
768
+ }, [n, T]);
769
+ return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(xe, {
762
770
  values: e,
763
771
  errors: t,
764
772
  onChange: n,
765
773
  onNameBlur: r,
766
774
  onVersionBlur: i,
767
- iconPreviewUrl: x,
768
- onAddAvatarClick: S,
769
- labels: h?.form ?? Ee,
775
+ iconPreviewUrl: S,
776
+ onAddAvatarClick: C,
777
+ labels: g?.form ?? De,
770
778
  availableLocaleOptions: o,
771
- fields: v,
772
- isNameReadOnly: c,
773
- nameReadOnlyTooltip: l,
774
- nameCaption: u,
775
- isDescriptionRequired: d,
776
- descriptionCaption: f,
777
- renderDescription: p,
778
- focusRequestKey: m
779
+ formatLocaleLabel: s,
780
+ fields: y,
781
+ isNameReadOnly: l,
782
+ nameReadOnlyTooltip: u,
783
+ nameCaption: d,
784
+ isDescriptionRequired: f,
785
+ descriptionCaption: p,
786
+ renderDescription: m,
787
+ focusRequestKey: h
779
788
  }), a && /* @__PURE__ */ M(pe, {
780
- isOpen: g,
781
- onClose: C,
782
- onAttach: T,
789
+ isOpen: _,
790
+ onClose: w,
791
+ onAttach: E,
783
792
  bucket: a.bucket,
784
793
  FileManagerModal: a.FileManagerModal,
785
794
  allowedMimeTypes: a.allowedMimeTypes,
786
795
  maxFileSizeBytes: a.maxFileSizeBytes,
787
- labels: h?.avatarPicker ?? De
796
+ labels: g?.avatarPicker ?? Oe
788
797
  })] });
789
798
  }), $ = /* @__PURE__ */ function(e) {
790
799
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
791
- }({}), ke = (e, t) => e.length === t.length && e.every((e, n) => e.id === t[n].id && e.language === t[n].language && e.name === t[n].name && e.description === t[n].description), Ae = (e, t) => e.name === t.name && e.description === t.description && e.iconUrl === t.iconUrl && e.version === t.version && e.topics.length === t.topics.length && e.topics.every((e, n) => e === t.topics[n]) && ke(e.otherLocales, t.otherLocales), je = (e) => Object.values(e).every((e) => e == null), Me = /^[a-zA-Z0-9 _.-]+$/, Ne = /^[a-zA-Z0-9._-]+$/, Pe = /^\d+(\.\d+)*$/, Fe = "1.0.0", Ie = (n, r = {}) => {
800
+ }({}), Ae = (e, t) => e.length === t.length && e.every((e, n) => e.id === t[n].id && e.language === t[n].language && e.name === t[n].name && e.description === t[n].description), je = (e, t) => e.name === t.name && e.description === t.description && e.iconUrl === t.iconUrl && e.version === t.version && e.topics.length === t.topics.length && e.topics.every((e, n) => e === t.topics[n]) && Ae(e.otherLocales, t.otherLocales), Me = (e) => Object.values(e).every((e) => e == null), Ne = /^[a-zA-Z0-9 _.-]+$/, Pe = /^[a-zA-Z0-9._-]+$/, Fe = /^\d+(\.\d+)*$/, Ie = "1.0.0", Le = (n, r = {}) => {
792
801
  let i = {}, s = n.name.trim();
793
- s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !Me.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
802
+ s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !Ne.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
794
803
  let c = n.version.trim();
795
- return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Ne).test(c) || (i.version = $.InvalidFormat)), i;
796
- }, Le = /* @__PURE__ */ new Set([$.TooLong, $.ControlCharacters]), Re = (e, t) => ({
804
+ return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Pe).test(c) || (i.version = $.InvalidFormat)), i;
805
+ }, Re = /* @__PURE__ */ new Set([$.TooLong, $.ControlCharacters]), ze = (e, t) => ({
797
806
  reseedKey: t,
798
807
  values: e,
799
808
  baseline: e,
800
809
  touched: {},
801
810
  hasAttemptedSubmit: !1,
802
811
  submitAttemptCount: 0
803
- }), ze = ({ initialValues: e, validationOptions: t, reseedKey: n }) => {
804
- let [r, i] = U(() => Re(e, n));
805
- r.reseedKey !== n && i(Re(e, n));
806
- let a = t?.validateNamePattern, o = t?.validateVersionPattern, s = V(() => Ie(r.values, {
812
+ }), Be = ({ initialValues: e, validationOptions: t, reseedKey: n }) => {
813
+ let [r, i] = V(() => ze(e, n));
814
+ r.reseedKey !== n && i(ze(e, n));
815
+ let a = t?.validateNamePattern, o = t?.validateVersionPattern, s = z(() => Le(r.values, {
807
816
  validateNamePattern: a,
808
817
  validateVersionPattern: o
809
818
  }), [
810
819
  r.values,
811
820
  a,
812
821
  o
813
- ]), c = V(() => {
822
+ ]), c = z(() => {
814
823
  if (r.hasAttemptedSubmit) return s;
815
- let e = (e, t) => e && (t || Le.has(e)) ? e : void 0;
824
+ let e = (e, t) => e && (t || Re.has(e)) ? e : void 0;
816
825
  return {
817
826
  name: e(s.name, r.touched[Q.Name]),
818
827
  version: e(s.version, r.touched[Q.Version]),
@@ -822,8 +831,8 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
822
831
  s,
823
832
  r.hasAttemptedSubmit,
824
833
  r.touched
825
- ]), l = H(s), u = H(e);
826
- B(() => {
834
+ ]), l = B(s), u = B(e);
835
+ ae(() => {
827
836
  l.current = s, u.current = e;
828
837
  });
829
838
  let d = R((e) => i((t) => ({
@@ -842,8 +851,8 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
842
851
  ...e,
843
852
  hasAttemptedSubmit: !0,
844
853
  submitAttemptCount: e.submitAttemptCount + 1
845
- })), je(l.current)), []), m = R((e) => i((t) => Re(e ?? u.current, t.reseedKey)), []), h = V(() => !Ae(r.values, r.baseline), [r.values, r.baseline]);
846
- return V(() => ({
854
+ })), Me(l.current)), []), m = R((e) => i((t) => ze(e ?? u.current, t.reseedKey)), []), h = z(() => !je(r.values, r.baseline), [r.values, r.baseline]);
855
+ return z(() => ({
847
856
  values: r.values,
848
857
  setValues: d,
849
858
  touched: r.touched,
@@ -866,6 +875,10 @@ var W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
866
875
  h,
867
876
  m
868
877
  ]);
869
- };
878
+ }, Ve = 1048576, He = [
879
+ "image/png",
880
+ "image/jpeg",
881
+ "image/svg+xml"
882
+ ];
870
883
  //#endregion
871
- export { de as AddAvatar, pe as AvatarPickerModal, Y as BUILDER_FORM_CLASS, oe as BuilderFormContainer, Fe as DEFAULT_DEPLOYMENT_VERSION, Ee as DEFAULT_METADATA_FORM_LABELS, $ as DeploymentCreationFieldErrorCode, be as DeploymentCreationForm, _e as DeploymentLocalesField, le as EditorLayout, X as EditorSection, Te as EntityEditor, Q as MetadataField, Oe as MetadataForm, Me as NAME_PATTERN, Pe as SEMVER_VERSION_PATTERN, Ne as VERSION_PATTERN, ze as useMetadataForm, Ie as validateDeploymentCreationFields };
884
+ export { He as AVATAR_ALLOWED_MIME_TYPES, Ve as AVATAR_MAX_FILE_SIZE_BYTES, de as AddAvatar, pe as AvatarPickerModal, q as BUILDER_FORM_CLASS, K as BuilderFormContainer, Ie as DEFAULT_DEPLOYMENT_VERSION, De as DEFAULT_METADATA_FORM_LABELS, $ as DeploymentCreationFieldErrorCode, xe as DeploymentCreationForm, ve as DeploymentLocalesField, ue as EditorLayout, Y as EditorSection, Ee as EntityEditor, Q as MetadataField, ke as MetadataForm, Ne as NAME_PATTERN, Fe as SEMVER_VERSION_PATTERN, Pe as VERSION_PATTERN, Be as useMetadataForm, Le as validateDeploymentCreationFields };
@@ -135,6 +135,8 @@ export interface DeploymentCreationFormProps {
135
135
  styles?: DeploymentCreationFormStyles;
136
136
  /** Selectable language options for additional-locale rows. Defaults to an empty list (no locales addable). */
137
137
  availableLocaleOptions?: DeploymentCreationFormLocaleOption[];
138
+ /** Labels a stored locale code that is not in `availableLocaleOptions`. Defaults to `code.toUpperCase()`. */
139
+ formatLocaleLabel?: (code: string) => string;
138
140
  /**
139
141
  * Fields to render, always in the fixed order Avatar, Name + Version,
140
142
  * Description, Locales, Tags. Defaults to every field. When `Version` is
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,6GAA6G;AAC7G,MAAM,MAAM,iCAAiC,GAAG,kBAAkB,CAAC;AAEnE,iEAAiE;AACjE,MAAM,MAAM,kCAAkC,GAAG,YAAY,CAAC;AAE9D,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;IACjB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+EAA+E;AAC/E,MAAM,WAAW,iCAAiC;IAChD,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uEAAuE;AACvE,MAAM,WAAW,gCAAgC;IAC/C,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,cAAc,EAAE,MAAM,CAAC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iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;IACxE;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,6GAA6G;AAC7G,MAAM,MAAM,iCAAiC,GAAG,kBAAkB,CAAC;AAEnE,iEAAiE;AACjE,MAAM,MAAM,kCAAkC,GAAG,YAAY,CAAC;AAE9D,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;IACjB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+EAA+E;AAC/E,MAAM,WAAW,iCAAiC;IAChD,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uEAAuE;AACvE,MA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MAAM,CAAC;IAC7B,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mFAAmF;IACnF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;IACxE;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -44,6 +44,8 @@ export interface MetadataFormProps {
44
44
  avatarPicker?: MetadataFormAvatarPicker;
45
45
  /** Locale options offered by the "Add locale" popup. Defaults to an empty list. */
46
46
  availableLocaleOptions?: DeploymentCreationFormLocaleOption[];
47
+ /** Labels a stored locale code that is not in `availableLocaleOptions`. Defaults to `code.toUpperCase()`. */
48
+ formatLocaleLabel?: (code: string) => string;
47
49
  /** Fields to render, in fixed order. Defaults to every field. */
48
50
  fields?: readonly MetadataField[];
49
51
  /** Renders the Name field disabled. Defaults to `false`. */
@@ -1 +1 @@
1
- {"version":3,"file":"metadata-form-props.d.ts","sourceRoot":"","sources":["../../src/models/metadata-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,iCAAiC,EACjC,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,iCAAiC,EACjC,4BAA4B,EAC5B,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,4BAA4B,CAAC;IACpC,0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entational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
4
- "version": "1.3.0-dev.322",
4
+ "version": "1.3.0-dev.326",
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.50.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.3.0-dev.322",
23
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.326",
24
24
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.72",
25
25
  "react": "^19.2.8"
26
26
  },