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

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":"BuilderFormActions.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormActions/BuilderFormActions.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAEvF,oGAAoG;AACpG,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAyC1D,CAAC"}
1
+ {"version":3,"file":"BuilderFormActions.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormActions/BuilderFormActions.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAEvF,oGAAoG;AACpG,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkD1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderFormContainer.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormContainer/BuilderFormContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAM3F,6FAA6F;AAC7F,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA2E9D,CAAC"}
1
+ {"version":3,"file":"BuilderFormContainer.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormContainer/BuilderFormContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAM3F,6FAA6F;AAC7F,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA6E9D,CAAC"}
@@ -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,CAoMlE,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;AAazF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA4MlE,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;AAqG1E,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;AAyG1E,yFAAyF;AACzF,eAAO,MAAM,YAAY,yDAA8B,CAAC"}
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { BuilderFormContainer } from './components/BuilderFormContainer/BuilderFormContainer';
2
2
  export type { BuilderFormContainerProps, BuilderFormContainerStyles, BuilderFormContainerColors, } from './models/builder-form-container-props';
3
+ export { BuilderFormActionsOrder } from './models/builder-form-actions-order';
3
4
  export type { BuilderFormActionsLabels } from './models/builder-form-actions-props';
4
5
  export type { BuilderFormHeaderLabels, BuilderFormHeaderStyles, BuilderFormHeaderColors, BuilderFormHeaderTypography, } from './models/builder-form-header-props';
5
6
  export type { EditorSectionColors, EditorSectionProps, EditorSectionStyles, EditorSectionTypography, } from './models/editor-section-props';
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,EAC1B,0BAA0B,GAC3B,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;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;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAC9G,YAAY,EACV,iCAAiC,EACjC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,gCAAgC,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
@@ -2,35 +2,44 @@ import { ENTITY_DESCRIPTION_MAX_LENGTH as e, ENTITY_NAME_MAX_LENGTH as t, RESIZA
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
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
- //#region src/components/BuilderFormActions/BuilderFormActions.tsx
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
- label: e.cancelButtonLabel,
9
- onClick: t,
10
- disabled: r,
11
- className: o
12
- }), /* @__PURE__ */ M(w, {
13
- label: e.submitButtonLabel,
14
- onClick: n,
15
- disabled: i,
16
- "aria-busy": a,
17
- className: o,
18
- iconBefore: a ? /* @__PURE__ */ M("span", {
19
- "aria-hidden": !0,
20
- children: /* @__PURE__ */ M(D, { size: u.SM })
21
- }) : void 0
22
- })] }), U = {
5
+ import { Suspense as R, memo as te, useCallback as z, useEffect as ne, useId as re, useLayoutEffect as ie, useMemo as B, useRef as V, useState as H } from "react";
6
+ //#region src/models/builder-form-actions-order.ts
7
+ var U = /* @__PURE__ */ function(e) {
8
+ return e.CancelFirst = "cancelFirst", e.SubmitFirst = "submitFirst", e;
9
+ }({}), W = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o, order: s = U.CancelFirst }) => {
10
+ let c = /* @__PURE__ */ M(S, {
11
+ label: e.cancelButtonLabel,
12
+ onClick: t,
13
+ disabled: r,
14
+ className: o
15
+ });
16
+ return /* @__PURE__ */ N(j, { children: [
17
+ s === U.CancelFirst && c,
18
+ /* @__PURE__ */ M(w, {
19
+ label: e.submitButtonLabel,
20
+ onClick: n,
21
+ disabled: i,
22
+ "aria-busy": a,
23
+ className: o,
24
+ iconBefore: a ? /* @__PURE__ */ M("span", {
25
+ "aria-hidden": !0,
26
+ children: /* @__PURE__ */ M(D, { size: u.SM })
27
+ }) : void 0
28
+ }),
29
+ s === U.SubmitFirst && c
30
+ ] });
31
+ }, G = {
23
32
  body: "_body_1xd7h_2",
24
33
  sideColumn: "_sideColumn_1xd7h_6",
25
34
  reservedColumn: "_reservedColumn_1xd7h_10"
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 }) => {
35
+ }, ae = s("flex flex-col desktop:min-h-0 desktop:overflow-y-auto", G.sideColumn), oe = ({ left: e, children: t, metadata: n, layout: r }) => {
27
36
  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
37
  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", U.body),
38
+ className: s("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden", G.body),
30
39
  style: o,
31
40
  children: [
32
41
  e != null && /* @__PURE__ */ M("div", {
33
- className: W,
42
+ className: ae,
34
43
  style: a,
35
44
  children: e
36
45
  }),
@@ -39,18 +48,18 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
39
48
  children: t
40
49
  }),
41
50
  n != null && /* @__PURE__ */ M("div", {
42
- className: W,
51
+ className: ae,
43
52
  style: a,
44
53
  children: n
45
54
  }),
46
55
  i && /* @__PURE__ */ M("div", {
47
56
  "aria-hidden": !0,
48
57
  style: a,
49
- className: s(U.reservedColumn, U.sideColumn)
58
+ className: s(G.reservedColumn, G.sideColumn)
50
59
  })
51
60
  ]
52
61
  });
53
- }, G = {
62
+ }, K = {
54
63
  header: "_header_lon83_4",
55
64
  actions: "_actions_lon83_18",
56
65
  title: "_title_lon83_27"
@@ -61,7 +70,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
61
70
  });
62
71
  return /* @__PURE__ */ N("div", {
63
72
  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", G.header),
73
+ 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", K.header),
65
74
  children: [
66
75
  /* @__PURE__ */ N("div", {
67
76
  className: "flex min-w-0 flex-1 items-center gap-2",
@@ -75,13 +84,13 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
75
84
  "aria-label": e.backButtonLabel,
76
85
  onClick: t
77
86
  }), /* @__PURE__ */ M("h1", {
78
- className: s("truncate", G.title, g),
87
+ className: s("truncate", K.title, g),
79
88
  children: e.title
80
89
  })]
81
90
  }),
82
91
  /* @__PURE__ */ M("div", {
83
- className: s("items-center gap-2", G.actions),
84
- children: /* @__PURE__ */ M(H, {
92
+ className: s("items-center gap-2", K.actions),
93
+ children: /* @__PURE__ */ M(W, {
85
94
  labels: e,
86
95
  onCancel: n,
87
96
  onSubmit: r,
@@ -97,17 +106,17 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
97
106
  })
98
107
  ]
99
108
  });
100
- }, ce = {
109
+ }, q = {
101
110
  container: "_container_14mfe_1",
102
111
  footer: "_footer_14mfe_10"
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
- let { colors: g, header: _, cssVars: v } = h ?? {};
112
+ }, ce = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, footerActionsOrder: l, backIcon: u, className: d, left: f, children: p, metadata: m, layout: h, styles: g }) => {
113
+ let { colors: _, header: v, cssVars: y } = g ?? {};
105
114
  return /* @__PURE__ */ N("div", {
106
115
  style: {
107
- ...i({ "--bfc-bg": g?.background }),
108
- ...v
116
+ ...i({ "--bfc-bg": _?.background }),
117
+ ...y
109
118
  },
110
- className: s("flex h-full min-h-0 w-full flex-col overflow-hidden", u, ce.container),
119
+ className: s("flex h-full min-h-0 w-full flex-col overflow-hidden", d, q.container),
111
120
  children: [
112
121
  /* @__PURE__ */ M(se, {
113
122
  labels: e,
@@ -117,65 +126,66 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
117
126
  isCancelDisabled: a,
118
127
  isSubmitDisabled: o,
119
128
  isSubmitting: c,
120
- backIcon: l,
121
- styles: _
129
+ backIcon: u,
130
+ styles: v
122
131
  }),
123
132
  /* @__PURE__ */ M(oe, {
124
- left: d,
125
- metadata: p,
126
- layout: m,
127
- children: f
133
+ left: f,
134
+ metadata: m,
135
+ layout: h,
136
+ children: p
128
137
  }),
129
138
  /* @__PURE__ */ M("div", {
130
- className: s("sticky bottom-0 z-10 items-center gap-2 p-3 shadow-sm", ce.footer),
131
- children: /* @__PURE__ */ M(H, {
139
+ className: s("sticky bottom-0 z-10 items-center gap-2 p-3 shadow-sm", q.footer),
140
+ children: /* @__PURE__ */ M(W, {
132
141
  labels: e,
133
142
  onCancel: n,
134
143
  onSubmit: r,
135
144
  isCancelDisabled: a,
136
145
  isSubmitDisabled: o,
137
146
  isSubmitting: c,
138
- buttonClassName: "flex-1"
147
+ buttonClassName: "flex-1",
148
+ order: l
139
149
  })
140
150
  })
141
151
  ]
142
152
  });
143
- }, q = {
153
+ }, J = {
144
154
  layout: "dial-builder-form-layout",
145
155
  section: "dial-builder-form-section",
146
156
  metadataSection: "dial-builder-form-metadata-section",
147
157
  setupSection: "dial-builder-form-setup-section",
148
158
  asideSection: "dial-builder-form-aside-section"
149
- }, J = {
159
+ }, Y = {
150
160
  section: "_section_l1mnx_1",
151
161
  title: "_title_l1mnx_5"
152
- }, Y = ({ title: e, children: t, styles: n, className: r }) => {
162
+ }, X = ({ title: e, children: t, styles: n, className: r }) => {
153
163
  let a = i({
154
164
  "--es-border-color": n?.colors?.borderColor,
155
165
  "--es-title-color": n?.colors?.titleColor
156
166
  });
157
167
  return /* @__PURE__ */ N("section", {
158
- className: s("flex h-full flex-col gap-4 rounded border", J.section, r, q.section),
168
+ className: s("flex h-full flex-col gap-4 rounded border", Y.section, r, J.section),
159
169
  style: a,
160
170
  children: [e != null && /* @__PURE__ */ M("h2", {
161
- className: s(n?.typography?.titleClassName ?? "dial-h3-text", J.title),
171
+ className: s(n?.typography?.titleClassName ?? "dial-h3-text", Y.title),
162
172
  children: e
163
173
  }), t]
164
174
  });
165
175
  }, le = (e, { min: t = 280, max: n = 640, containerWidth: r } = {}) => {
166
176
  let i = r != null && r > 0 ? r - 360 : n;
167
177
  return Math.round(Math.min(Math.max(t, Math.min(n, i)), Math.max(t, Number.isFinite(e) ? e : t)));
168
- }, X = {
178
+ }, Z = {
169
179
  headerBorder: "_headerBorder_1adw2_1",
170
180
  footerBorder: "_footerBorder_1adw2_5",
171
181
  columnBorder: "_columnBorder_1adw2_10"
172
182
  }, 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 = {
183
+ let _ = re(), v = f ? p?.savingStatusLabel ?? "Saving" : "", x = V(null), [S, C] = H(), w = l != null && o != null, E = l?.minWidth, D = l?.maxWidth, O = {
174
184
  min: E,
175
185
  max: D,
176
186
  containerWidth: S
177
187
  }, k = w ? le(l.width, O) : void 0, A = le(D ?? 640, O);
178
- re(() => {
188
+ ne(() => {
179
189
  let e = x.current;
180
190
  if (!w || e == null || typeof ResizeObserver > "u") return;
181
191
  let t = new ResizeObserver(() => C(e.clientWidth));
@@ -187,7 +197,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
187
197
  });
188
198
  return /* @__PURE__ */ N("div", {
189
199
  dir: g,
190
- className: s("flex min-h-0 flex-1 flex-col", q.layout),
200
+ className: s("flex min-h-0 flex-1 flex-col", J.layout),
191
201
  style: j,
192
202
  children: [
193
203
  /* @__PURE__ */ M(y, {
@@ -197,7 +207,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
197
207
  children: v
198
208
  }),
199
209
  /* @__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", X.headerBorder),
210
+ 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),
201
211
  children: [/* @__PURE__ */ N("div", {
202
212
  className: "flex min-w-0 flex-1 items-center gap-2",
203
213
  children: [/* @__PURE__ */ M(h, {
@@ -223,7 +233,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
223
233
  className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
224
234
  children: [
225
235
  /* @__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 : X.columnBorder),
236
+ 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),
227
237
  style: k == null ? void 0 : { "--el-left-width": `${k}px` },
228
238
  children: a
229
239
  }),
@@ -244,22 +254,22 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
244
254
  children: o
245
255
  }),
246
256
  c != null && /* @__PURE__ */ M("div", {
247
- className: s("desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s", X.columnBorder),
257
+ className: s("desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s", Z.columnBorder),
248
258
  children: c
249
259
  })
250
260
  ]
251
261
  }),
252
262
  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", X.footerBorder),
263
+ className: s("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 *:flex-1 desktop:hidden", Z.footerBorder),
254
264
  children: r
255
265
  })
256
266
  ]
257
267
  });
258
- }, Z = {
268
+ }, de = {
259
269
  box: "_box_c9as8_1",
260
270
  icon: "_icon_c9as8_6",
261
271
  caption: "_caption_c9as8_10"
262
- }, de = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: a = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: o, captionClassName: c = "dial-tiny-text", styles: l, className: f }) => {
272
+ }, fe = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: a = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: o, captionClassName: c = "dial-tiny-text", styles: l, className: f }) => {
263
273
  let h = i({
264
274
  "--aa-box-bg": l?.colors?.boxBackgroundColor,
265
275
  "--aa-box-border": l?.colors?.boxBorderColor,
@@ -272,7 +282,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
272
282
  children: [/* @__PURE__ */ M(_, { label: e }), /* @__PURE__ */ N("div", {
273
283
  className: "flex items-start gap-3",
274
284
  children: [/* @__PURE__ */ M("div", {
275
- className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Z.box),
285
+ className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", de.box),
276
286
  children: t ? /* @__PURE__ */ M("img", {
277
287
  src: t,
278
288
  alt: n,
@@ -281,7 +291,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
281
291
  size: u.LG,
282
292
  stroke: d,
283
293
  "aria-hidden": !0,
284
- className: Z.icon
294
+ className: de.icon
285
295
  })
286
296
  }), /* @__PURE__ */ N("div", {
287
297
  className: "flex flex-col gap-3",
@@ -296,29 +306,29 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
296
306
  label: r,
297
307
  onClick: o
298
308
  }), /* @__PURE__ */ M("span", {
299
- className: s(c, Z.caption),
309
+ className: s(c, de.caption),
300
310
  children: a
301
311
  })]
302
312
  })]
303
313
  })]
304
314
  });
305
- }, fe = {
315
+ }, pe = {
306
316
  confirmText: "_confirmText_19ec1_1",
307
317
  confirmItem: "_confirmItem_19ec1_5"
308
- }, pe = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: a, allowedMimeTypes: o, maxFileSizeBytes: c, labels: l, confirmBodyClassName: u = "dial-small-text", styles: d }) => {
309
- let f = d?.colors?.confirmText, p = d?.colors?.confirmItemText, m = R((e) => e.length === 1 ? l.deleteConfirmTitleSingle : l.deleteConfirmTitleMultiple, [l.deleteConfirmTitleSingle, l.deleteConfirmTitleMultiple]), h = R((e) => /* @__PURE__ */ M("div", {
318
+ }, me = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: a, allowedMimeTypes: o, maxFileSizeBytes: c, labels: l, confirmBodyClassName: u = "dial-small-text", styles: d }) => {
319
+ let f = d?.colors?.confirmText, p = d?.colors?.confirmItemText, m = z((e) => e.length === 1 ? l.deleteConfirmTitleSingle : l.deleteConfirmTitleMultiple, [l.deleteConfirmTitleSingle, l.deleteConfirmTitleMultiple]), h = z((e) => /* @__PURE__ */ M("div", {
310
320
  className: s(u, "px-6 py-3"),
311
321
  style: i({
312
322
  "--apm-confirm-text": f,
313
323
  "--apm-confirm-item-text": p
314
324
  }),
315
325
  children: /* @__PURE__ */ M("p", {
316
- className: s("mb-3", fe.confirmText),
326
+ className: s("mb-3", pe.confirmText),
317
327
  children: e.length === 1 ? /* @__PURE__ */ N(j, { children: [
318
328
  l.deleteConfirmSingleText,
319
329
  " ",
320
330
  /* @__PURE__ */ N("span", {
321
- className: s("wrap-break-word", fe.confirmItem),
331
+ className: s("wrap-break-word", pe.confirmItem),
322
332
  children: [
323
333
  "\"",
324
334
  e[0].split("/").pop(),
@@ -329,7 +339,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
329
339
  l.deleteConfirmMultipleText,
330
340
  " ",
331
341
  /* @__PURE__ */ N("span", {
332
- className: fe.confirmItem,
342
+ className: pe.confirmItem,
333
343
  children: [
334
344
  e.length,
335
345
  " ",
@@ -346,7 +356,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
346
356
  p,
347
357
  u
348
358
  ]);
349
- return /* @__PURE__ */ M(te, {
359
+ return /* @__PURE__ */ M(R, {
350
360
  fallback: null,
351
361
  children: e && /* @__PURE__ */ M(a, {
352
362
  isOpen: e,
@@ -381,46 +391,46 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
381
391
  });
382
392
  }, Q = /* @__PURE__ */ function(e) {
383
393
  return e.Avatar = "avatar", e.Name = "name", e.Version = "version", e.Description = "description", e.Locales = "locales", e.Tags = "tags", e;
384
- }({}), me = [
394
+ }({}), he = [
385
395
  "avatar",
386
396
  "name",
387
397
  "version",
388
398
  "description",
389
399
  "locales",
390
400
  "tags"
391
- ], he = {
401
+ ], ge = {
392
402
  summary: "_summary_1hlc9_1",
393
403
  rowLabel: "_rowLabel_1hlc9_5"
394
- }, ge = (e, t, n) => ({
404
+ }, _e = (e, t, n) => ({
395
405
  id: e,
396
406
  language: n.find((e) => !t.has(e.code))?.code ?? "",
397
407
  name: "",
398
408
  description: ""
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 }) => {
409
+ }), ve = (e) => e.toUpperCase(), ye = ({ value: e, onChange: t, availableLocaleOptions: r = [], formatLocaleLabel: a = ve, labels: o, className: m, summaryClassName: h = "dial-body-text", rowLabelClassName: _ = "dial-tiny-lead-text", colors: y }) => {
400
410
  let b = i({
401
411
  "--dlf-summary-text": y?.summaryText,
402
412
  "--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
- re(() => {
405
- ae && U(e.length > 0 ? e : [ge(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), r)]);
413
+ }), { summaryLabel: x, addLabel: S, editLabel: w, popupTitle: T, addLocaleLabel: D, localeRowLabel: O = "Locale", languageLabel: j, nameLabel: P, namePlaceholder: F, descriptionLabel: I, descriptionPlaceholder: R, deleteAriaLabel: te, cancelLabel: z = "Cancel", saveLabel: re = "Save" } = o, [ie, B] = H(!1), [U, W] = H([]), G = V(0);
414
+ ne(() => {
415
+ ie && W(e.length > 0 ? e : [_e(`locale-row-${++G.current}`, /* @__PURE__ */ new Set(), r)]);
406
416
  }, [
407
- ae,
417
+ ie,
408
418
  e,
409
419
  r
410
420
  ]);
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 ? {
421
+ let ae = () => B(!0), oe = () => B(!1), K = () => {
422
+ t(U.filter((e) => e.language && e.name)), B(!1);
423
+ }, se = () => {
424
+ let e = new Set(U.map((e) => e.language).filter(Boolean));
425
+ W((t) => [...t, _e(`locale-row-${++G.current}`, e, r)]);
426
+ }, q = (e, t) => {
427
+ W((n) => n.map((n) => n.id === e ? {
418
428
  ...n,
419
429
  ...t
420
430
  } : n));
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) => {
431
+ }, ce = (e) => {
432
+ W((t) => t.filter((t) => t.id !== e));
433
+ }, J = new Set(r.map((e) => e.code)), Y = (e) => e !== "" && !J.has(e), X = e.some((e) => Y(e.language)), le = new Set(U.map((e) => e.language).filter((e) => J.has(e))).size, Z = (t, n) => {
424
434
  let i = e.find((e) => e.id === t.id)?.language, o = [...new Set([i ?? "", t.language].filter(Y))];
425
435
  return [...r.map((e) => ({
426
436
  value: e.code,
@@ -431,13 +441,13 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
431
441
  label: a(e),
432
442
  disabled: n.has(e)
433
443
  }))];
434
- }, Z = H.some((e) => !e.language || !e.name);
435
- return r.length === 0 && !le ? null : /* @__PURE__ */ N("div", {
444
+ }, ue = U.some((e) => !e.language || !e.name);
445
+ return r.length === 0 && !X ? null : /* @__PURE__ */ N("div", {
436
446
  className: s("flex items-center gap-2", m),
437
447
  style: b,
438
448
  children: [
439
449
  e.length > 0 && /* @__PURE__ */ M("span", {
440
- className: s(he.summary, h),
450
+ className: s(ge.summary, h),
441
451
  children: `${x}: ${e.map((e) => `[${e.language.toUpperCase()}]`).join(", ")}`
442
452
  }),
443
453
  /* @__PURE__ */ M(v, {
@@ -448,32 +458,32 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
448
458
  stroke: d
449
459
  }),
450
460
  className: "px-0!",
451
- onClick: oe
461
+ onClick: ae
452
462
  }),
453
463
  /* @__PURE__ */ M(C, {
454
- open: ae,
464
+ open: ie,
455
465
  header: T,
456
- onClose: G,
466
+ onClose: oe,
457
467
  mainButtons: [{
458
- label: R,
459
- onClick: G
468
+ label: z,
469
+ onClick: oe
460
470
  }, {
461
- label: ie,
471
+ label: re,
462
472
  variant: l.Primary,
463
- disabled: Z,
464
- onClick: se
473
+ disabled: ue,
474
+ onClick: K
465
475
  }],
466
476
  children: /* @__PURE__ */ N("div", {
467
477
  className: "flex flex-col gap-8 px-6 py-3",
468
478
  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));
479
+ children: [U.map((e, t) => {
480
+ let r = new Set(U.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
471
481
  return /* @__PURE__ */ N("div", {
472
482
  className: "flex flex-col gap-2",
473
483
  children: [/* @__PURE__ */ N("div", {
474
484
  className: "flex items-center justify-between",
475
485
  children: [/* @__PURE__ */ N("span", {
476
- className: s(he.rowLabel, _),
486
+ className: s(ge.rowLabel, _),
477
487
  children: [
478
488
  O,
479
489
  " ",
@@ -487,8 +497,8 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
487
497
  "aria-hidden": !0,
488
498
  stroke: d
489
499
  }),
490
- "aria-label": `${ne} ${t + 1}`,
491
- onClick: () => q(e.id)
500
+ "aria-label": `${te} ${t + 1}`,
501
+ onClick: () => ce(e.id)
492
502
  })]
493
503
  }), /* @__PURE__ */ N("div", {
494
504
  role: "group",
@@ -503,15 +513,15 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
503
513
  required: !0
504
514
  },
505
515
  className: "desktop:shrink-0 desktop:basis-40",
506
- options: ue(e, r),
516
+ options: Z(e, r),
507
517
  value: e.language,
508
- onChange: (t) => K(e.id, { language: t })
518
+ onChange: (t) => q(e.id, { language: t })
509
519
  }), /* @__PURE__ */ M(g, {
510
520
  id: `${e.id}-name`,
511
521
  containerClassName: "min-w-0 flex-1",
512
522
  required: !0,
513
523
  value: e.name,
514
- onChange: (t) => K(e.id, { name: t ?? "" }),
524
+ onChange: (t) => q(e.id, { name: t ?? "" }),
515
525
  labelProps: {
516
526
  label: P,
517
527
  required: !0
@@ -523,9 +533,9 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
523
533
  className: n,
524
534
  resize: A.Vertical,
525
535
  value: e.description,
526
- onChange: (t) => K(e.id, { description: t }),
536
+ onChange: (t) => q(e.id, { description: t }),
527
537
  labelProps: { label: I },
528
- placeholder: te
538
+ placeholder: R
529
539
  })]
530
540
  })]
531
541
  }, e.id);
@@ -537,42 +547,42 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
537
547
  stroke: d
538
548
  }),
539
549
  className: "self-start",
540
- onClick: ce,
541
- disabled: X >= r.length
550
+ onClick: se,
551
+ disabled: le >= r.length
542
552
  })]
543
553
  })
544
554
  })
545
555
  ]
546
556
  });
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);
549
- re(() => {
557
+ }, be = "Add tags, comma separated", xe = "The version is changed with \"Save as new version\"", Se = "deployment-creation-form-description", Ce = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], formatLocaleLabel: p, fields: m = he, isNameReadOnly: h = !1, nameReadOnlyTooltip: _, isVersionReadOnly: v = !1, versionReadOnlyTooltip: y = xe, nameCaption: b, isDescriptionRequired: x = !1, descriptionCaption: S, renderDescription: C, focusRequestKey: w }) => {
558
+ let T = V(null), E = V(null), D = V(null), j = V(!1), P = (e) => m.includes(e), F = P(Q.Name), I = P(Q.Version), L = !!(t.name || t.version || t.description), ee = V(w);
559
+ ne(() => {
550
560
  let e = () => {
551
- t.name ? C.current?.focus() : t.version ? w.current?.focus() : t.description && T.current?.focus();
561
+ t.name ? T.current?.focus() : t.version ? E.current?.focus() : t.description && D.current?.focus();
552
562
  };
553
- S === void 0 ? (F && !E.current && e(), E.current = F) : S !== I.current && (I.current = S, e());
563
+ w === void 0 ? (L && !j.current && e(), j.current = L) : w !== ee.current && (ee.current = w, e());
554
564
  }, [
555
- S,
556
- F,
565
+ w,
566
+ L,
557
567
  t.name,
558
568
  t.version,
559
569
  t.description
560
570
  ]);
561
- let L = /* @__PURE__ */ M(k, {
562
- id: be,
563
- ref: T,
571
+ let R = /* @__PURE__ */ M(k, {
572
+ id: Se,
573
+ ref: D,
564
574
  value: e.description,
565
575
  onChange: (e) => i({ description: e }),
566
- "aria-required": y || void 0,
567
- labelProps: x ? void 0 : {
576
+ "aria-required": x || void 0,
577
+ labelProps: C ? void 0 : {
568
578
  label: u.description.label,
569
- required: y
579
+ required: x
570
580
  },
571
581
  placeholder: u.description.placeholder,
572
- caption: b,
582
+ caption: S,
573
583
  error: t.description || void 0,
574
584
  invalid: !!t.description,
575
- containerClassName: x ? void 0 : d?.field,
585
+ containerClassName: C ? void 0 : d?.field,
576
586
  className: n,
577
587
  resize: A.Vertical
578
588
  });
@@ -581,7 +591,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
581
591
  "aria-label": u.ariaLabel,
582
592
  className: s("flex flex-col gap-4", d?.root),
583
593
  children: [
584
- D(Q.Avatar) && /* @__PURE__ */ M(de, {
594
+ P(Q.Avatar) && /* @__PURE__ */ M(fe, {
585
595
  label: u.iconUrl.label,
586
596
  avatarUrl: c,
587
597
  addAvatarLabel: u.iconUrl.addAvatarLabel,
@@ -589,11 +599,11 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
589
599
  onAddAvatarClick: l,
590
600
  className: d?.field
591
601
  }),
592
- (j || P) && /* @__PURE__ */ N("div", {
602
+ (F || I) && /* @__PURE__ */ N("div", {
593
603
  className: s("flex items-start gap-4", d?.field),
594
- children: [j && /* @__PURE__ */ M(g, {
604
+ children: [F && /* @__PURE__ */ M(g, {
595
605
  id: "deployment-creation-form-name",
596
- inputRef: C,
606
+ inputRef: T,
597
607
  value: e.name,
598
608
  onChange: (e) => i({ name: e ?? "" }),
599
609
  onBlur: a,
@@ -604,28 +614,32 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
604
614
  required: !0
605
615
  },
606
616
  placeholder: u.name.placeholder,
607
- caption: v,
617
+ caption: b,
608
618
  error: t.name || void 0,
609
619
  invalid: !!t.name,
610
- containerClassName: P ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
611
- }), P && /* @__PURE__ */ M(g, {
620
+ containerClassName: I ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
621
+ }), I && /* @__PURE__ */ M(g, {
612
622
  id: "deployment-creation-form-version",
613
- inputRef: w,
623
+ inputRef: E,
614
624
  value: e.version,
615
- onChange: (e) => i({ version: e ?? "" }),
616
- onBlur: o,
625
+ onChange: (e) => {
626
+ v || i({ version: e ?? "" });
627
+ },
628
+ onBlur: v ? void 0 : o,
629
+ readOnly: v,
630
+ tooltipText: v ? y : void 0,
617
631
  labelProps: { label: u.version.label },
618
632
  placeholder: u.version.placeholder,
619
633
  error: t.version || void 0,
620
634
  invalid: !!t.version,
621
- containerClassName: j ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
635
+ containerClassName: F ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
622
636
  })]
623
637
  }),
624
- D(Q.Description) && (x ? /* @__PURE__ */ M("div", {
638
+ P(Q.Description) && (C ? /* @__PURE__ */ M("div", {
625
639
  className: d?.field,
626
- children: x(L, be)
627
- }) : L),
628
- D(Q.Locales) && /* @__PURE__ */ M(ve, {
640
+ children: C(R, Se)
641
+ }) : R),
642
+ P(Q.Locales) && /* @__PURE__ */ M(ye, {
629
643
  value: e.otherLocales,
630
644
  onChange: (e) => i({ otherLocales: e }),
631
645
  availableLocaleOptions: f,
@@ -634,12 +648,12 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
634
648
  className: d?.field,
635
649
  colors: d?.localesColors
636
650
  }),
637
- D(Q.Tags) && /* @__PURE__ */ M("div", {
651
+ P(Q.Tags) && /* @__PURE__ */ M("div", {
638
652
  className: d?.field,
639
653
  children: /* @__PURE__ */ M(O, {
640
654
  id: "deployment-creation-form-topics",
641
655
  labelProps: { label: u.topics.label },
642
- placeholder: u.topics.placeholder ?? ye,
656
+ placeholder: u.topics.placeholder ?? be,
643
657
  value: e.topics,
644
658
  onChange: (e) => i({ topics: e }),
645
659
  tagClassName: r
@@ -647,10 +661,10 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
647
661
  })
648
662
  ]
649
663
  });
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 }) => {
664
+ }, we = "border-0 p-4 desktop:p-8", Te = "border-0", Ee = "desktop:flex-1", De = "px-4 pt-4 desktop:px-6 desktop:pt-6", Oe = te(({ 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 }) => {
651
665
  let A = /* @__PURE__ */ M(y, {
652
666
  politeness: x.Assertive,
653
- className: v == null ? void 0 : Te,
667
+ className: v == null ? void 0 : De,
654
668
  children: v
655
669
  }), P = p != null;
656
670
  return /* @__PURE__ */ M(ue, {
@@ -664,10 +678,10 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
664
678
  resizeHandleLabel: D?.resizeHandleLabel,
665
679
  resizeHandleTooltip: D?.resizeHandleTooltip
666
680
  },
667
- rightContent: h == null ? void 0 : /* @__PURE__ */ M(Y, {
681
+ rightContent: h == null ? void 0 : /* @__PURE__ */ M(X, {
668
682
  title: g,
669
683
  styles: O?.section,
670
- className: s(Se, _, q.asideSection),
684
+ className: s(we, _, J.asideSection),
671
685
  children: h
672
686
  }),
673
687
  styles: O?.layout,
@@ -683,22 +697,22 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
683
697
  })] })] }),
684
698
  leftContent: /* @__PURE__ */ N(j, { children: [
685
699
  !P && A,
686
- /* @__PURE__ */ M(Y, {
700
+ /* @__PURE__ */ M(X, {
687
701
  title: d === null ? void 0 : d ?? D?.metadataTitle ?? "Metadata",
688
702
  styles: O?.section,
689
- className: s(Se, C, q.metadataSection),
703
+ className: s(we, C, J.metadataSection),
690
704
  children: u
691
705
  }),
692
706
  f
693
707
  ] }),
694
- centerContent: P ? /* @__PURE__ */ N(j, { children: [A, /* @__PURE__ */ M(Y, {
708
+ centerContent: P ? /* @__PURE__ */ N(j, { children: [A, /* @__PURE__ */ M(X, {
695
709
  title: m === null ? void 0 : m ?? D?.setupTitle ?? "Setup",
696
710
  styles: O?.section,
697
- className: s(E ? Se : Ce, we, T, q.setupSection),
711
+ className: s(E ? we : Te, Ee, T, J.setupSection),
698
712
  children: p
699
713
  })] }) : void 0
700
714
  });
701
- }), De = {
715
+ }), ke = {
702
716
  name: {
703
717
  label: "Name",
704
718
  placeholder: "Enter name"
@@ -737,7 +751,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
737
751
  saveLabel: "Save"
738
752
  },
739
753
  ariaLabel: "Metadata"
740
- }, Oe = {
754
+ }, Ae = {
741
755
  title: "Add avatar",
742
756
  attachLabel: "Attach",
743
757
  emptyTitle: "This folder is empty",
@@ -761,67 +775,69 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
761
775
  deleteConfirmItemsLabel: "items?",
762
776
  deleteConfirmLabel: "Delete",
763
777
  deleteCancelLabel: "Cancel"
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, {
778
+ }, je = te(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, formatLocaleLabel: s, fields: c = he, isNameReadOnly: l, nameReadOnlyTooltip: u, isVersionReadOnly: d, versionReadOnlyTooltip: f, nameCaption: p, isDescriptionRequired: m, descriptionCaption: h, renderDescription: g, focusRequestKey: _, labels: v }) => {
779
+ let [y, b] = H(!1), x = B(() => a ? c : c.filter((e) => e !== Q.Avatar), [a, c]), S = e.iconUrl, C = a?.resolveIconUrl, w = B(() => C ? C(S) : void 0, [S, C]), T = z(() => b(!0), []), E = z(() => b(!1), []), D = a?.resolveAttachedIconUrl, O = z((e) => {
780
+ let t = D?.(e);
781
+ t && n({ iconUrl: t }), b(!1);
782
+ }, [n, D]);
783
+ return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(Ce, {
770
784
  values: e,
771
785
  errors: t,
772
786
  onChange: n,
773
787
  onNameBlur: r,
774
788
  onVersionBlur: i,
775
- iconPreviewUrl: S,
776
- onAddAvatarClick: C,
777
- labels: g?.form ?? De,
789
+ iconPreviewUrl: w,
790
+ onAddAvatarClick: T,
791
+ labels: v?.form ?? ke,
778
792
  availableLocaleOptions: o,
779
793
  formatLocaleLabel: s,
780
- fields: y,
794
+ fields: x,
781
795
  isNameReadOnly: l,
782
796
  nameReadOnlyTooltip: u,
783
- nameCaption: d,
784
- isDescriptionRequired: f,
785
- descriptionCaption: p,
786
- renderDescription: m,
787
- focusRequestKey: h
788
- }), a && /* @__PURE__ */ M(pe, {
789
- isOpen: _,
790
- onClose: w,
791
- onAttach: E,
797
+ isVersionReadOnly: d,
798
+ versionReadOnlyTooltip: f,
799
+ nameCaption: p,
800
+ isDescriptionRequired: m,
801
+ descriptionCaption: h,
802
+ renderDescription: g,
803
+ focusRequestKey: _
804
+ }), a && /* @__PURE__ */ M(me, {
805
+ isOpen: y,
806
+ onClose: E,
807
+ onAttach: O,
792
808
  bucket: a.bucket,
793
809
  FileManagerModal: a.FileManagerModal,
794
810
  allowedMimeTypes: a.allowedMimeTypes,
795
811
  maxFileSizeBytes: a.maxFileSizeBytes,
796
- labels: g?.avatarPicker ?? Oe
812
+ labels: v?.avatarPicker ?? Ae
797
813
  })] });
798
814
  }), $ = /* @__PURE__ */ function(e) {
799
815
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
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 = {}) => {
816
+ }({}), Me = (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), Ne = (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]) && Me(e.otherLocales, t.otherLocales), Pe = (e) => Object.values(e).every((e) => e == null), Fe = /^[a-zA-Z0-9 _.-]+$/, Ie = /^[a-zA-Z0-9._-]+$/, Le = /^\d+(\.\d+)*$/, Re = "1.0.0", ze = (n, r = {}) => {
801
817
  let i = {}, s = n.name.trim();
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);
818
+ s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !Fe.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
803
819
  let c = n.version.trim();
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) => ({
820
+ return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Ie).test(c) || (i.version = $.InvalidFormat)), i;
821
+ }, Be = /* @__PURE__ */ new Set([$.TooLong, $.ControlCharacters]), Ve = (e, t) => ({
806
822
  reseedKey: t,
807
823
  values: e,
808
824
  baseline: e,
809
825
  touched: {},
810
826
  hasAttemptedSubmit: !1,
811
827
  submitAttemptCount: 0
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, {
828
+ }), He = ({ initialValues: e, validationOptions: t, reseedKey: n }) => {
829
+ let [r, i] = H(() => Ve(e, n));
830
+ r.reseedKey !== n && i(Ve(e, n));
831
+ let a = t?.validateNamePattern, o = t?.validateVersionPattern, s = B(() => ze(r.values, {
816
832
  validateNamePattern: a,
817
833
  validateVersionPattern: o
818
834
  }), [
819
835
  r.values,
820
836
  a,
821
837
  o
822
- ]), c = z(() => {
838
+ ]), c = B(() => {
823
839
  if (r.hasAttemptedSubmit) return s;
824
- let e = (e, t) => e && (t || Re.has(e)) ? e : void 0;
840
+ let e = (e, t) => e && (t || Be.has(e)) ? e : void 0;
825
841
  return {
826
842
  name: e(s.name, r.touched[Q.Name]),
827
843
  version: e(s.version, r.touched[Q.Version]),
@@ -831,28 +847,28 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
831
847
  s,
832
848
  r.hasAttemptedSubmit,
833
849
  r.touched
834
- ]), l = B(s), u = B(e);
835
- ae(() => {
850
+ ]), l = V(s), u = V(e);
851
+ ie(() => {
836
852
  l.current = s, u.current = e;
837
853
  });
838
- let d = R((e) => i((t) => ({
854
+ let d = z((e) => i((t) => ({
839
855
  ...t,
840
856
  values: {
841
857
  ...t.values,
842
858
  ...e
843
859
  }
844
- })), []), f = R((e) => i((t) => t.touched[e] ? t : {
860
+ })), []), f = z((e) => i((t) => t.touched[e] ? t : {
845
861
  ...t,
846
862
  touched: {
847
863
  ...t.touched,
848
864
  [e]: !0
849
865
  }
850
- }), []), p = R(() => (i((e) => ({
866
+ }), []), p = z(() => (i((e) => ({
851
867
  ...e,
852
868
  hasAttemptedSubmit: !0,
853
869
  submitAttemptCount: e.submitAttemptCount + 1
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(() => ({
870
+ })), Pe(l.current)), []), m = z((e) => i((t) => Ve(e ?? u.current, t.reseedKey)), []), h = B(() => !Ne(r.values, r.baseline), [r.values, r.baseline]);
871
+ return B(() => ({
856
872
  values: r.values,
857
873
  setValues: d,
858
874
  touched: r.touched,
@@ -875,10 +891,10 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
875
891
  h,
876
892
  m
877
893
  ]);
878
- }, Ve = 1048576, He = [
894
+ }, Ue = 1048576, We = [
879
895
  "image/png",
880
896
  "image/jpeg",
881
897
  "image/svg+xml"
882
898
  ];
883
899
  //#endregion
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 };
900
+ export { We as AVATAR_ALLOWED_MIME_TYPES, Ue as AVATAR_MAX_FILE_SIZE_BYTES, fe as AddAvatar, me as AvatarPickerModal, J as BUILDER_FORM_CLASS, U as BuilderFormActionsOrder, ce as BuilderFormContainer, Re as DEFAULT_DEPLOYMENT_VERSION, ke as DEFAULT_METADATA_FORM_LABELS, $ as DeploymentCreationFieldErrorCode, Ce as DeploymentCreationForm, ye as DeploymentLocalesField, ue as EditorLayout, X as EditorSection, Oe as EntityEditor, Q as MetadataField, je as MetadataForm, Fe as NAME_PATTERN, Le as SEMVER_VERSION_PATTERN, Ie as VERSION_PATTERN, He as useMetadataForm, ze as validateDeploymentCreationFields };
@@ -0,0 +1,8 @@
1
+ /** Order of the cancel/submit action pair along the inline axis. */
2
+ export declare enum BuilderFormActionsOrder {
3
+ /** Cancel first, then submit. */
4
+ CancelFirst = "cancelFirst",
5
+ /** Submit first, then cancel. */
6
+ SubmitFirst = "submitFirst"
7
+ }
8
+ //# sourceMappingURL=builder-form-actions-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder-form-actions-order.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-actions-order.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,uBAAuB;IACjC,iCAAiC;IACjC,WAAW,gBAAgB;IAC3B,iCAAiC;IACjC,WAAW,gBAAgB;CAC5B"}
@@ -1,3 +1,4 @@
1
+ import { BuilderFormActionsOrder } from './builder-form-actions-order';
1
2
  /** Localized labels read by the {@link BuilderFormActions} action pair. */
2
3
  export interface BuilderFormActionsLabels {
3
4
  /** Label for the cancel action. */
@@ -21,5 +22,7 @@ export interface BuilderFormActionsProps {
21
22
  isSubmitting?: boolean;
22
23
  /** CSS class applied to both action buttons (e.g. `flex-1` for an equal-width pair). */
23
24
  buttonClassName?: string;
25
+ /** Order of the two actions. Defaults to `BuilderFormActionsOrder.CancelFirst`. */
26
+ order?: BuilderFormActionsOrder;
24
27
  }
25
28
  //# sourceMappingURL=builder-form-actions-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder-form-actions-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-actions-props.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,0DAA0D;AAC1D,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,MAAM,EAAE,wBAAwB,CAAC;IACjC,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wFAAwF;IACxF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"builder-form-actions-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-actions-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,2EAA2E;AAC3E,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,0DAA0D;AAC1D,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,MAAM,EAAE,wBAAwB,CAAC;IACjC,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wFAAwF;IACxF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC"}
@@ -1,4 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
+ import { BuilderFormActionsOrder } from './builder-form-actions-order';
2
3
  import { BuilderFormHeaderLabels, BuilderFormHeaderStyles } from './builder-form-header-props';
3
4
  /**
4
5
  * Color overrides for the {@link BuilderFormContainer} component, applied as
@@ -37,6 +38,8 @@ export interface BuilderFormContainerProps {
37
38
  isSubmitDisabled?: boolean;
38
39
  /** When `true`, the submit action shows a spinner and reports `aria-busy` on both surfaces. Defaults to `false`. */
39
40
  isSubmitting?: boolean;
41
+ /** Order of Cancel and Submit in the mobile sticky footer; the desktop header always lists Cancel first. Defaults to `BuilderFormActionsOrder.CancelFirst`. */
42
+ footerActionsOrder?: BuilderFormActionsOrder;
40
43
  /** Optional replacement for the header's default back icon. */
41
44
  backIcon?: ReactNode;
42
45
  /** Additional class name for the container root. */
@@ -1 +1 @@
1
- {"version":3,"file":"builder-form-container-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-container-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,gEAAgE;IAChE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,oLAAoL;IACpL,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,2BAA2B,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CAC7E"}
1
+ {"version":3,"file":"builder-form-container-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-container-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,gEAAgE;IAChE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+JAA+J;IAC/J,kBAAkB,CAAC,EAAE,uBAAuB,CAAC;IAC7C,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,oLAAoL;IACpL,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,2BAA2B,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CAC7E"}
@@ -147,6 +147,14 @@ export interface DeploymentCreationFormProps {
147
147
  isNameReadOnly?: boolean;
148
148
  /** Tooltip shown over the name field while `isNameReadOnly` is set. Defaults to the field value. */
149
149
  nameReadOnlyTooltip?: string;
150
+ /**
151
+ * Renders the version field read-only (still focusable), e.g. in edit mode
152
+ * where a version changes only by saving a new one. Typing and
153
+ * `onVersionBlur` are ignored while set. Defaults to `false`.
154
+ */
155
+ isVersionReadOnly?: boolean;
156
+ /** Tooltip shown over the version field while `isVersionReadOnly` is set. Defaults to `'The version is changed with "Save as new version"'`. */
157
+ versionReadOnlyTooltip?: string;
150
158
  /** Helper text rendered under the name field. */
151
159
  nameCaption?: string;
152
160
  /** Marks the description field as required. The host still owns the validation. */
@@ -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,kCA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EAAkE;IAClE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAC;IACjE,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,yFAAyF;IACzF,aAAa,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;IAC9D,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC,8FAA8F;IAC9F,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oGAAoG;IACpG,mBAAmB,CAAC,EAAE,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"}
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,EA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AC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;IACxE;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -52,6 +52,10 @@ export interface MetadataFormProps {
52
52
  isNameReadOnly?: boolean;
53
53
  /** Tooltip shown over the Name field while `isNameReadOnly` is set. Defaults to the field value. */
54
54
  nameReadOnlyTooltip?: string;
55
+ /** Renders the Version field read-only (still focusable); typing and `onVersionBlur` are ignored. Defaults to `false`. */
56
+ isVersionReadOnly?: boolean;
57
+ /** Tooltip shown over the Version field while `isVersionReadOnly` is set. Defaults to `'The version is changed with "Save as new version"'`. */
58
+ versionReadOnlyTooltip?: string;
55
59
  /** Helper text rendered under the Name field. */
56
60
  nameCaption?: string;
57
61
  /** Marks the Description field as required. 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,0CAA0C;IAC1C,YAAY,CAAC,EAAE,uBAAuB,CAAC;CACxC;AAED,uFAAuF;AACvF,MAAM,WAAW,wBAAwB;IACvC,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACj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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.3.0-dev.326",
4
+ "version": "1.3.0-dev.331",
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.326",
23
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.331",
24
24
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.72",
25
25
  "react": "^19.2.8"
26
26
  },