@epam/ai-dial-builder-form 1.3.0-dev.5 → 1.3.0-dev.55

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,CA6LlE,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,CAiMlE,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;AA+F1E,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;AAmG1E,yFAAyF;AACzF,eAAO,MAAM,YAAY,yDAA8B,CAAC"}
package/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export type { AvatarPickerFileManagerModalProps, AvatarPickerModalLabels, Avatar
23
23
  export type { DeploymentCreationFormFieldErrors, DeploymentCreationFormFieldLabels, DeploymentCreationFormIconLabels, DeploymentCreationFormLabels, DeploymentCreationFormLocaleEntry, DeploymentCreationFormLocaleLabels, DeploymentCreationFormLocaleOption, DeploymentCreationFormProps, DeploymentCreationFormStyles, DeploymentCreationFormValues, } from './models/deployment-creation-form';
24
24
  export type { DeploymentCreationFormErrorCodes, DeploymentCreationFormValidationOptions, } from './models/validation';
25
25
  export { DeploymentCreationFieldErrorCode } from './models/validation';
26
- export { NAME_PATTERN, SEMVER_VERSION_PATTERN, VERSION_PATTERN, validateDeploymentCreationFields, } from './utils/validate-deployment-creation-fields';
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
29
  //# 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,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,GACpB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,8BAA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AAwC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;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,sBAAsB,GACvB,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,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"}
package/index.js CHANGED
@@ -2,9 +2,9 @@ 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, NeutralButton as y, Popup as b, PrimaryButton as x, Select as S, Spinner as C, TagInput as w, Textarea as T, TextareaResize as E } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
4
4
  import { IconArrowLeft as A, IconArrowNarrowLeft as j, IconPhoto as M, IconPlus as N, IconTrashX as P } from "@tabler/icons-react";
5
- import { Suspense as ee, memo as F, useCallback as I, useEffect as te, useId as ne, useLayoutEffect as L, useMemo as R, useRef as z, useState as B } from "react";
5
+ import { Suspense as F, memo as I, useCallback as L, useEffect as ee, useId as te, useLayoutEffect as R, useMemo as z, useRef as B, useState as V } from "react";
6
6
  //#region src/components/BuilderFormActions/BuilderFormActions.tsx
7
- var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(y, {
7
+ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(y, {
8
8
  label: e.cancelButtonLabel,
9
9
  onClick: t,
10
10
  disabled: r,
@@ -19,18 +19,18 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
19
19
  "aria-hidden": !0,
20
20
  children: /* @__PURE__ */ O(C, { size: u.SM })
21
21
  }) : void 0
22
- })] }), H = {
22
+ })] }), U = {
23
23
  body: "_body_1xd7h_2",
24
24
  sideColumn: "_sideColumn_1xd7h_6",
25
25
  reservedColumn: "_reservedColumn_1xd7h_10"
26
- }, U = s("flex flex-col desktop:min-h-0 desktop:overflow-y-auto", H.sideColumn), re = ({ left: e, children: t, metadata: n, layout: r }) => {
26
+ }, W = s("flex flex-col desktop:min-h-0 desktop:overflow-y-auto", U.sideColumn), ne = ({ 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__ */ k("div", {
29
- className: s("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden", H.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__ */ O("div", {
33
- className: U,
33
+ className: W,
34
34
  style: a,
35
35
  children: e
36
36
  }),
@@ -39,29 +39,29 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
39
39
  children: t
40
40
  }),
41
41
  n != null && /* @__PURE__ */ O("div", {
42
- className: U,
42
+ className: W,
43
43
  style: a,
44
44
  children: n
45
45
  }),
46
46
  i && /* @__PURE__ */ O("div", {
47
47
  "aria-hidden": !0,
48
48
  style: a,
49
- className: s(H.reservedColumn, H.sideColumn)
49
+ className: s(U.reservedColumn, U.sideColumn)
50
50
  })
51
51
  ]
52
52
  });
53
- }, W = {
53
+ }, G = {
54
54
  header: "_header_lon83_4",
55
55
  actions: "_actions_lon83_18",
56
56
  title: "_title_lon83_27"
57
- }, ie = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, styles: f }) => {
57
+ }, re = ({ 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;
59
59
  return /* @__PURE__ */ k("div", {
60
60
  style: i({
61
61
  "--bfh-border": p?.borderColor,
62
62
  "--bfh-font-family": _ ? void 0 : m?.fontFamily
63
63
  }),
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", W.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__ */ k("div", {
67
67
  className: "flex min-w-0 flex-1 items-center gap-2",
@@ -75,13 +75,13 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
75
75
  "aria-label": e.backButtonLabel,
76
76
  onClick: t
77
77
  }), /* @__PURE__ */ O("h1", {
78
- className: s("truncate", W.title, g),
78
+ className: s("truncate", G.title, g),
79
79
  children: e.title
80
80
  })]
81
81
  }),
82
82
  /* @__PURE__ */ O("div", {
83
- className: s("items-center gap-2", W.actions),
84
- children: /* @__PURE__ */ O(V, {
83
+ className: s("items-center gap-2", G.actions),
84
+ children: /* @__PURE__ */ O(H, {
85
85
  labels: e,
86
86
  onCancel: n,
87
87
  onSubmit: r,
@@ -98,19 +98,19 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
98
98
  })
99
99
  ]
100
100
  });
101
- }, G = {
101
+ }, K = {
102
102
  container: "_container_14mfe_1",
103
103
  footer: "_footer_14mfe_10"
104
- }, 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
+ }, q = ({ 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 }) => {
105
105
  let { colors: g, header: _, cssVars: v } = h ?? {};
106
106
  return /* @__PURE__ */ k("div", {
107
107
  style: {
108
108
  ...i({ "--bfc-bg": g?.background }),
109
109
  ...v
110
110
  },
111
- className: s("flex h-full min-h-0 w-full flex-col overflow-hidden", u, G.container),
111
+ className: s("flex h-full min-h-0 w-full flex-col overflow-hidden", u, K.container),
112
112
  children: [
113
- /* @__PURE__ */ O(ie, {
113
+ /* @__PURE__ */ O(re, {
114
114
  labels: e,
115
115
  onBack: t,
116
116
  onCancel: n,
@@ -121,15 +121,15 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
121
121
  backIcon: l,
122
122
  styles: _
123
123
  }),
124
- /* @__PURE__ */ O(re, {
124
+ /* @__PURE__ */ O(ne, {
125
125
  left: d,
126
126
  metadata: p,
127
127
  layout: m,
128
128
  children: f
129
129
  }),
130
130
  /* @__PURE__ */ O("div", {
131
- className: s("sticky bottom-0 z-10 items-center gap-2 p-3 shadow-sm", G.footer),
132
- children: /* @__PURE__ */ O(V, {
131
+ className: s("sticky bottom-0 z-10 items-center gap-2 p-3 shadow-sm", K.footer),
132
+ children: /* @__PURE__ */ O(H, {
133
133
  labels: e,
134
134
  onCancel: n,
135
135
  onSubmit: r,
@@ -141,13 +141,13 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
141
141
  })
142
142
  ]
143
143
  });
144
- }, q = {
144
+ }, J = {
145
145
  layout: "dial-builder-form-layout",
146
146
  section: "dial-builder-form-section",
147
147
  metadataSection: "dial-builder-form-metadata-section",
148
148
  setupSection: "dial-builder-form-setup-section",
149
149
  asideSection: "dial-builder-form-aside-section"
150
- }, J = {
150
+ }, ie = {
151
151
  section: "_section_l1mnx_1",
152
152
  title: "_title_l1mnx_5"
153
153
  }, Y = ({ title: e, children: t, styles: n, className: r }) => {
@@ -156,10 +156,10 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
156
156
  "--es-title-color": n?.colors?.titleColor
157
157
  });
158
158
  return /* @__PURE__ */ k("section", {
159
- className: s("flex h-full flex-col gap-4 rounded border p-6", J.section, r, q.section),
159
+ className: s("flex h-full flex-col gap-4 rounded border p-6", ie.section, r, J.section),
160
160
  style: a,
161
161
  children: [e != null && /* @__PURE__ */ O("h2", {
162
- className: s("dial-h3-text", J.title),
162
+ className: s("dial-h3-text", ie.title),
163
163
  children: e
164
164
  }), t]
165
165
  });
@@ -168,13 +168,13 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
168
168
  footerBorder: "_footerBorder_1adw2_5",
169
169
  columnBorder: "_columnBorder_1adw2_10"
170
170
  }, ae = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: a, centerContent: o, rightContent: c, isSaving: l = !1, labels: f, styles: p, dir: m }) => {
171
- let g = ne(), _ = l ? f?.savingStatusLabel ?? "Saving" : "", v = i({
171
+ let g = te(), _ = l ? f?.savingStatusLabel ?? "Saving" : "", v = i({
172
172
  "--el-header-border-color": p?.colors?.headerBorderColor,
173
173
  "--el-sidebar-border-color": p?.colors?.sidebarBorderColor
174
174
  });
175
175
  return /* @__PURE__ */ k("div", {
176
176
  dir: m,
177
- className: s("flex min-h-0 flex-1 flex-col", q.layout),
177
+ className: s("flex min-h-0 flex-1 flex-col", J.layout),
178
178
  style: v,
179
179
  children: [
180
180
  /* @__PURE__ */ O("span", {
@@ -229,11 +229,11 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
229
229
  })
230
230
  ]
231
231
  });
232
- }, Z = {
232
+ }, oe = {
233
233
  box: "_box_c9as8_1",
234
234
  icon: "_icon_c9as8_6",
235
235
  caption: "_caption_c9as8_10"
236
- }, oe = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: a = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: o, styles: c, className: l }) => {
236
+ }, se = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: a = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: o, styles: c, className: l }) => {
237
237
  let f = i({
238
238
  "--aa-box-bg": c?.colors?.boxBackgroundColor,
239
239
  "--aa-box-border": c?.colors?.boxBorderColor,
@@ -246,7 +246,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
246
246
  children: [/* @__PURE__ */ O(_, { label: e }), /* @__PURE__ */ k("div", {
247
247
  className: "flex items-start gap-3",
248
248
  children: [/* @__PURE__ */ O("div", {
249
- className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Z.box),
249
+ className: s("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", oe.box),
250
250
  children: t ? /* @__PURE__ */ O("img", {
251
251
  src: t,
252
252
  alt: n,
@@ -255,7 +255,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
255
255
  size: u.LG,
256
256
  stroke: d,
257
257
  "aria-hidden": !0,
258
- className: Z.icon
258
+ className: oe.icon
259
259
  })
260
260
  }), /* @__PURE__ */ k("div", {
261
261
  className: "flex flex-col gap-3",
@@ -270,14 +270,14 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
270
270
  label: r,
271
271
  onClick: o
272
272
  }), /* @__PURE__ */ O("span", {
273
- className: s("dial-tiny-text", Z.caption),
273
+ className: s("dial-tiny-text", oe.caption),
274
274
  children: a
275
275
  })]
276
276
  })]
277
277
  })]
278
278
  });
279
- }, se = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
280
- let c = I((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = I((e) => /* @__PURE__ */ O("div", {
279
+ }, ce = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
280
+ let c = L((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = L((e) => /* @__PURE__ */ O("div", {
281
281
  className: "dial-small-text px-6 py-3",
282
282
  children: /* @__PURE__ */ O("p", {
283
283
  className: "mb-3 text-secondary",
@@ -310,7 +310,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
310
310
  s.deleteConfirmMultipleText,
311
311
  s.deleteConfirmItemsLabel
312
312
  ]);
313
- return /* @__PURE__ */ O(ee, {
313
+ return /* @__PURE__ */ O(F, {
314
314
  fallback: null,
315
315
  children: e && /* @__PURE__ */ O(i, {
316
316
  isOpen: e,
@@ -343,48 +343,48 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
343
343
  deleteCancelLabel: s.deleteCancelLabel
344
344
  })
345
345
  });
346
- }, Q = /* @__PURE__ */ function(e) {
346
+ }, Z = /* @__PURE__ */ function(e) {
347
347
  return e.Avatar = "avatar", e.Name = "name", e.Version = "version", e.Description = "description", e.Locales = "locales", e.Tags = "tags", e;
348
- }({}), ce = [
348
+ }({}), le = [
349
349
  "avatar",
350
350
  "name",
351
351
  "version",
352
352
  "description",
353
353
  "locales",
354
354
  "tags"
355
- ], le = (e, t, n) => ({
355
+ ], ue = (e, t, n) => ({
356
356
  id: e,
357
357
  language: n.find((e) => !t.has(e.code))?.code ?? "",
358
358
  name: "",
359
359
  description: ""
360
- }), ue = ({ value: e, onChange: t, availableLocaleOptions: r = [], labels: i, className: a, summaryClassName: o = "dial-body-text text-secondary", rowLabelClassName: m = "dial-tiny-lead-text text-secondary" }) => {
361
- let { summaryLabel: h, addLabel: _, editLabel: y, popupTitle: x, addLocaleLabel: C, localeRowLabel: w = "Locale", languageLabel: D, nameLabel: A, namePlaceholder: j, descriptionLabel: M, descriptionPlaceholder: ee, deleteAriaLabel: F, cancelLabel: I = "Cancel", saveLabel: ne = "Save" } = i, [L, R] = B(!1), [V, H] = B([]), U = z(0);
362
- te(() => {
363
- L && H(e.length > 0 ? e : [le(`locale-row-${++U.current}`, /* @__PURE__ */ new Set(), r)]);
360
+ }), de = ({ value: e, onChange: t, availableLocaleOptions: r = [], labels: i, className: a, summaryClassName: o = "dial-body-text text-secondary", rowLabelClassName: m = "dial-tiny-lead-text text-secondary" }) => {
361
+ let { summaryLabel: h, addLabel: _, editLabel: y, popupTitle: x, addLocaleLabel: C, localeRowLabel: w = "Locale", languageLabel: D, nameLabel: A, namePlaceholder: j, descriptionLabel: M, descriptionPlaceholder: F, deleteAriaLabel: I, cancelLabel: L = "Cancel", saveLabel: te = "Save" } = i, [R, z] = V(!1), [H, U] = V([]), W = B(0);
362
+ ee(() => {
363
+ R && U(e.length > 0 ? e : [ue(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), r)]);
364
364
  }, [
365
- L,
365
+ R,
366
366
  e,
367
367
  r
368
368
  ]);
369
- let re = () => R(!0), W = () => R(!1), ie = () => {
370
- t(V.filter((e) => e.language && e.name)), R(!1);
371
- }, G = () => {
372
- let e = new Set(V.map((e) => e.language).filter(Boolean));
373
- H((t) => [...t, le(`locale-row-${++U.current}`, e, r)]);
374
- }, K = (e, t) => {
375
- H((n) => n.map((n) => n.id === e ? {
369
+ let ne = () => z(!0), G = () => z(!1), re = () => {
370
+ t(H.filter((e) => e.language && e.name)), z(!1);
371
+ }, K = () => {
372
+ let e = new Set(H.map((e) => e.language).filter(Boolean));
373
+ U((t) => [...t, ue(`locale-row-${++W.current}`, e, r)]);
374
+ }, q = (e, t) => {
375
+ U((n) => n.map((n) => n.id === e ? {
376
376
  ...n,
377
377
  ...t
378
378
  } : n));
379
- }, q = (e) => {
380
- H((t) => t.filter((t) => t.id !== e));
381
- }, J = (e) => r.find((t) => t.code === e)?.label ?? e.toUpperCase(), Y = V.some((e) => !e.language || !e.name);
379
+ }, J = (e) => {
380
+ U((t) => t.filter((t) => t.id !== e));
381
+ }, ie = (e) => r.find((t) => t.code === e)?.label ?? e.toUpperCase(), Y = H.some((e) => !e.language || !e.name);
382
382
  return r.length === 0 ? null : /* @__PURE__ */ k("div", {
383
383
  className: s("flex items-center gap-2", a),
384
384
  children: [
385
385
  e.length > 0 && /* @__PURE__ */ O("span", {
386
386
  className: o,
387
- children: `${h}: ${e.map((e) => `[${J(e.language)}]`).join(", ")}`
387
+ children: `${h}: ${e.map((e) => `[${ie(e.language)}]`).join(", ")}`
388
388
  }),
389
389
  /* @__PURE__ */ O(v, {
390
390
  label: e.length > 0 ? y : _,
@@ -394,25 +394,25 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
394
394
  stroke: d
395
395
  }),
396
396
  className: "!px-0",
397
- onClick: re
397
+ onClick: ne
398
398
  }),
399
399
  /* @__PURE__ */ O(b, {
400
- open: L,
400
+ open: R,
401
401
  header: x,
402
- onClose: W,
402
+ onClose: G,
403
403
  mainButtons: [{
404
- label: I,
405
- onClick: W
404
+ label: L,
405
+ onClick: G
406
406
  }, {
407
- label: ne,
407
+ label: te,
408
408
  variant: l.Primary,
409
409
  disabled: Y,
410
- onClick: ie
410
+ onClick: re
411
411
  }],
412
412
  children: /* @__PURE__ */ k("div", {
413
413
  className: "flex flex-col gap-8 px-6 py-3",
414
- children: [V.map((e, t) => {
415
- let i = new Set(V.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
414
+ children: [H.map((e, t) => {
415
+ let i = new Set(H.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
416
416
  return /* @__PURE__ */ k("div", {
417
417
  className: "flex flex-col gap-2",
418
418
  children: [/* @__PURE__ */ k("div", {
@@ -432,8 +432,8 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
432
432
  "aria-hidden": !0,
433
433
  stroke: d
434
434
  }),
435
- "aria-label": `${F} ${t + 1}`,
436
- onClick: () => q(e.id)
435
+ "aria-label": `${I} ${t + 1}`,
436
+ onClick: () => J(e.id)
437
437
  })]
438
438
  }), /* @__PURE__ */ k("div", {
439
439
  role: "group",
@@ -454,13 +454,13 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
454
454
  disabled: i.has(e.code)
455
455
  })),
456
456
  value: e.language,
457
- onChange: (t) => K(e.id, { language: t })
457
+ onChange: (t) => q(e.id, { language: t })
458
458
  }), /* @__PURE__ */ O(g, {
459
459
  id: `${e.id}-name`,
460
460
  containerClassName: "min-w-0 flex-1",
461
461
  required: !0,
462
462
  value: e.name,
463
- onChange: (t) => K(e.id, { name: t ?? "" }),
463
+ onChange: (t) => q(e.id, { name: t ?? "" }),
464
464
  labelProps: {
465
465
  label: A,
466
466
  required: !0
@@ -472,9 +472,9 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
472
472
  className: n,
473
473
  resize: E.Vertical,
474
474
  value: e.description,
475
- onChange: (t) => K(e.id, { description: t }),
475
+ onChange: (t) => q(e.id, { description: t }),
476
476
  labelProps: { label: M },
477
- placeholder: ee
477
+ placeholder: F
478
478
  })]
479
479
  })]
480
480
  }, e.id);
@@ -486,45 +486,47 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
486
486
  stroke: d
487
487
  }),
488
488
  className: "self-start",
489
- onClick: G,
490
- disabled: V.length >= r.length
489
+ onClick: K,
490
+ disabled: H.length >= r.length
491
491
  })]
492
492
  })
493
493
  })
494
494
  ]
495
495
  });
496
- }, de = "Add tags, comma separated", fe = "deployment-creation-form-description", pe = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = ce, isNameReadOnly: m = !1, nameCaption: h, isDescriptionRequired: _ = !1, renderDescription: v, focusRequestKey: y }) => {
497
- let b = z(null), x = z(null), S = z(null), C = z(!1), D = (e) => p.includes(e), A = D(Q.Name), j = D(Q.Version), M = !!(t.name || t.version || t.description), N = z(y);
498
- te(() => {
496
+ }, fe = "Add tags, comma separated", pe = "deployment-creation-form-description", me = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = le, isNameReadOnly: m = !1, nameCaption: h, isDescriptionRequired: _ = !1, descriptionMaxLength: v, descriptionCaption: y, renderDescription: b, focusRequestKey: x }) => {
497
+ let S = B(null), C = B(null), D = B(null), A = B(!1), j = (e) => p.includes(e), M = j(Z.Name), N = j(Z.Version), P = !!(t.name || t.version || t.description), F = B(x);
498
+ ee(() => {
499
499
  let e = () => {
500
- t.name ? b.current?.focus() : t.version ? x.current?.focus() : t.description && S.current?.focus();
500
+ t.name ? S.current?.focus() : t.version ? C.current?.focus() : t.description && D.current?.focus();
501
501
  };
502
- if (y !== void 0) {
503
- y !== N.current && (N.current = y, e());
502
+ if (x !== void 0) {
503
+ x !== F.current && (F.current = x, e());
504
504
  return;
505
505
  }
506
- M && !C.current && e(), C.current = M;
506
+ P && !A.current && e(), A.current = P;
507
507
  }, [
508
- y,
509
- M,
508
+ x,
509
+ P,
510
510
  t.name,
511
511
  t.version,
512
512
  t.description
513
513
  ]);
514
- let P = /* @__PURE__ */ O(T, {
515
- id: fe,
516
- ref: S,
514
+ let I = /* @__PURE__ */ O(T, {
515
+ id: pe,
516
+ ref: D,
517
517
  value: e.description,
518
518
  onChange: (e) => i({ description: e }),
519
519
  "aria-required": _ || void 0,
520
- labelProps: v ? void 0 : {
520
+ labelProps: b ? void 0 : {
521
521
  label: u.description.label,
522
522
  required: _
523
523
  },
524
524
  placeholder: u.description.placeholder,
525
+ maxLength: v,
526
+ caption: y,
525
527
  error: t.description || void 0,
526
528
  invalid: !!t.description,
527
- containerClassName: v ? void 0 : d?.field,
529
+ containerClassName: b ? void 0 : d?.field,
528
530
  className: n,
529
531
  resize: E.Vertical
530
532
  });
@@ -533,7 +535,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
533
535
  "aria-label": u.ariaLabel,
534
536
  className: s("flex flex-col gap-4", d?.root),
535
537
  children: [
536
- D(Q.Avatar) && /* @__PURE__ */ O(oe, {
538
+ j(Z.Avatar) && /* @__PURE__ */ O(se, {
537
539
  label: u.iconUrl.label,
538
540
  avatarUrl: c,
539
541
  addAvatarLabel: u.iconUrl.addAvatarLabel,
@@ -541,11 +543,11 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
541
543
  onAddAvatarClick: l,
542
544
  className: d?.field
543
545
  }),
544
- (A || j) && /* @__PURE__ */ k("div", {
546
+ (M || N) && /* @__PURE__ */ k("div", {
545
547
  className: s("flex items-start gap-4", d?.field),
546
- children: [A && /* @__PURE__ */ O(g, {
548
+ children: [M && /* @__PURE__ */ O(g, {
547
549
  id: "deployment-creation-form-name",
548
- inputRef: b,
550
+ inputRef: S,
549
551
  value: e.name,
550
552
  onChange: (e) => i({ name: e ?? "" }),
551
553
  onBlur: a,
@@ -558,10 +560,10 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
558
560
  caption: h,
559
561
  error: t.name || void 0,
560
562
  invalid: !!t.name,
561
- containerClassName: j ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
562
- }), j && /* @__PURE__ */ O(g, {
563
+ containerClassName: N ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
564
+ }), N && /* @__PURE__ */ O(g, {
563
565
  id: "deployment-creation-form-version",
564
- inputRef: x,
566
+ inputRef: C,
565
567
  value: e.version,
566
568
  onChange: (e) => i({ version: e ?? "" }),
567
569
  onBlur: o,
@@ -569,26 +571,26 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
569
571
  placeholder: u.version.placeholder,
570
572
  error: t.version || void 0,
571
573
  invalid: !!t.version,
572
- containerClassName: A ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
574
+ containerClassName: M ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
573
575
  })]
574
576
  }),
575
- D(Q.Description) && (v ? /* @__PURE__ */ O("div", {
577
+ j(Z.Description) && (b ? /* @__PURE__ */ O("div", {
576
578
  className: d?.field,
577
- children: v(P, fe)
578
- }) : P),
579
- D(Q.Locales) && /* @__PURE__ */ O(ue, {
579
+ children: b(I, pe)
580
+ }) : I),
581
+ j(Z.Locales) && /* @__PURE__ */ O(de, {
580
582
  value: e.otherLocales,
581
583
  onChange: (e) => i({ otherLocales: e }),
582
584
  availableLocaleOptions: f,
583
585
  labels: u.otherLocales,
584
586
  className: d?.field
585
587
  }),
586
- D(Q.Tags) && /* @__PURE__ */ O("div", {
588
+ j(Z.Tags) && /* @__PURE__ */ O("div", {
587
589
  className: d?.field,
588
590
  children: /* @__PURE__ */ O(w, {
589
591
  id: "deployment-creation-form-topics",
590
592
  labelProps: { label: u.topics.label },
591
- placeholder: u.topics.placeholder ?? de,
593
+ placeholder: u.topics.placeholder ?? fe,
592
594
  value: e.topics,
593
595
  onChange: (e) => i({ topics: e }),
594
596
  tagClassName: r
@@ -596,10 +598,10 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
596
598
  })
597
599
  ]
598
600
  });
599
- }, me = "border-0 p-4 desktop:p-8", he = "desktop:flex-1", ge = "px-4 pt-4 desktop:px-6 desktop:pt-6", _e = F(({ 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, metadataSectionClassName: b, setupSectionClassName: S, labels: C, styles: w, dir: T }) => {
601
+ }, he = "border-0 p-4 desktop:p-8", ge = "desktop:flex-1", _e = "px-4 pt-4 desktop:px-6 desktop:pt-6", ve = I(({ 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, metadataSectionClassName: b, setupSectionClassName: S, labels: C, styles: w, dir: T }) => {
600
602
  let E = v == null ? null : /* @__PURE__ */ O("div", {
601
603
  role: "alert",
602
- className: ge,
604
+ className: _e,
603
605
  children: v
604
606
  }), A = p != null;
605
607
  return /* @__PURE__ */ O(ae, {
@@ -611,7 +613,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
611
613
  rightContent: h == null ? void 0 : /* @__PURE__ */ O(Y, {
612
614
  title: g,
613
615
  styles: w?.section,
614
- className: s(me, _, q.asideSection),
616
+ className: s(he, _, J.asideSection),
615
617
  children: h
616
618
  }),
617
619
  styles: w?.layout,
@@ -630,7 +632,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
630
632
  /* @__PURE__ */ O(Y, {
631
633
  title: d === null ? void 0 : d ?? C?.metadataTitle ?? "Metadata",
632
634
  styles: w?.section,
633
- className: s(me, b, q.metadataSection),
635
+ className: s(he, b, J.metadataSection),
634
636
  children: u
635
637
  }),
636
638
  f
@@ -638,11 +640,11 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
638
640
  centerContent: A ? /* @__PURE__ */ k(D, { children: [E, /* @__PURE__ */ O(Y, {
639
641
  title: m === null ? void 0 : m ?? C?.setupTitle ?? "Setup",
640
642
  styles: w?.section,
641
- className: s(me, he, S, q.setupSection),
643
+ className: s(he, ge, S, J.setupSection),
642
644
  children: p
643
645
  })] }) : void 0
644
646
  });
645
- }), ve = {
647
+ }), ye = {
646
648
  name: {
647
649
  label: "Name",
648
650
  placeholder: "Enter name"
@@ -681,7 +683,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
681
683
  saveLabel: "Save"
682
684
  },
683
685
  ariaLabel: "Metadata"
684
- }, ye = {
686
+ }, be = {
685
687
  title: "Add avatar",
686
688
  attachLabel: "Attach",
687
689
  emptyTitle: "This folder is empty",
@@ -705,95 +707,97 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
705
707
  deleteConfirmItemsLabel: "items?",
706
708
  deleteConfirmLabel: "Delete",
707
709
  deleteCancelLabel: "Cancel"
708
- }, be = F(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = ce, isNameReadOnly: c, nameCaption: l, isDescriptionRequired: u, renderDescription: d, focusRequestKey: f, labels: p }) => {
709
- let [m, h] = B(!1), g = R(() => a ? s : s.filter((e) => e !== Q.Avatar), [a, s]), _ = e.iconUrl, v = a?.resolveIconUrl, y = R(() => v ? v(_) : void 0, [_, v]), b = I(() => h(!0), []), x = I(() => h(!1), []), S = a?.resolveAttachedIconUrl, C = I((e) => {
710
- let t = S?.(e);
711
- t && n({ iconUrl: t }), h(!1);
712
- }, [n, S]);
713
- return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(pe, {
710
+ }, xe = I(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = le, isNameReadOnly: c, nameCaption: l, isDescriptionRequired: u, descriptionMaxLength: d, descriptionCaption: f, renderDescription: p, focusRequestKey: m, labels: h }) => {
711
+ let [g, _] = V(!1), v = z(() => a ? s : s.filter((e) => e !== Z.Avatar), [a, s]), y = e.iconUrl, b = a?.resolveIconUrl, x = z(() => b ? b(y) : void 0, [y, b]), S = L(() => _(!0), []), C = L(() => _(!1), []), w = a?.resolveAttachedIconUrl, T = L((e) => {
712
+ let t = w?.(e);
713
+ t && n({ iconUrl: t }), _(!1);
714
+ }, [n, w]);
715
+ return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(me, {
714
716
  values: e,
715
717
  errors: t,
716
718
  onChange: n,
717
719
  onNameBlur: r,
718
720
  onVersionBlur: i,
719
- iconPreviewUrl: y,
720
- onAddAvatarClick: b,
721
- labels: p?.form ?? ve,
721
+ iconPreviewUrl: x,
722
+ onAddAvatarClick: S,
723
+ labels: h?.form ?? ye,
722
724
  availableLocaleOptions: o,
723
- fields: g,
725
+ fields: v,
724
726
  isNameReadOnly: c,
725
727
  nameCaption: l,
726
728
  isDescriptionRequired: u,
727
- renderDescription: d,
728
- focusRequestKey: f
729
- }), a && /* @__PURE__ */ O(se, {
730
- isOpen: m,
731
- onClose: x,
732
- onAttach: C,
729
+ descriptionMaxLength: d,
730
+ descriptionCaption: f,
731
+ renderDescription: p,
732
+ focusRequestKey: m
733
+ }), a && /* @__PURE__ */ O(ce, {
734
+ isOpen: g,
735
+ onClose: C,
736
+ onAttach: T,
733
737
  bucket: a.bucket,
734
738
  FileManagerModal: a.FileManagerModal,
735
739
  allowedMimeTypes: a.allowedMimeTypes,
736
740
  maxFileSizeBytes: a.maxFileSizeBytes,
737
- labels: p?.avatarPicker ?? ye
741
+ labels: h?.avatarPicker ?? be
738
742
  })] });
739
- }), $ = /* @__PURE__ */ function(e) {
743
+ }), Q = /* @__PURE__ */ function(e) {
740
744
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
741
- }({}), xe = (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), Se = (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]) && xe(e.otherLocales, t.otherLocales), Ce = (e) => Object.values(e).every((e) => e == null), we = /^[a-zA-Z0-9 _.-]+$/, Te = /^[a-zA-Z0-9._-]+$/, Ee = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/, De = (n, r = {}) => {
745
+ }({}), Se = (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), Ce = (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]) && Se(e.otherLocales, t.otherLocales), we = (e) => Object.values(e).every((e) => e == null), Te = /^[a-zA-Z0-9 _.-]+$/, Ee = /^[a-zA-Z0-9._-]+$/, De = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/, Oe = "1.0.0", ke = (n, r = {}) => {
742
746
  let i = {}, s = n.name.trim();
743
- s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !we.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
747
+ s ? a(s, t) ? i.name = Q.TooLong : r.validateNamePattern && !Te.test(s) ? i.name = Q.InvalidFormat : o(s) && (i.name = Q.ControlCharacters) : i.name = Q.Required, a(n.description, e) && (i.description = Q.TooLong);
744
748
  let c = n.version.trim();
745
- return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Te).test(c) || (i.version = $.InvalidFormat)), i;
746
- }, Oe = new Set([$.TooLong, $.ControlCharacters]), ke = (e, t) => ({
749
+ return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Ee).test(c) || (i.version = Q.InvalidFormat)), i;
750
+ }, Ae = new Set([Q.TooLong, Q.ControlCharacters]), $ = (e, t) => ({
747
751
  reseedKey: t,
748
752
  values: e,
749
753
  baseline: e,
750
754
  touched: {},
751
755
  hasAttemptedSubmit: !1,
752
756
  submitAttemptCount: 0
753
- }), Ae = ({ initialValues: e, validationOptions: t, reseedKey: n }) => {
754
- let [r, i] = B(() => ke(e, n));
755
- r.reseedKey !== n && i(ke(e, n));
756
- let a = t?.validateNamePattern, o = t?.validateVersionPattern, s = R(() => De(r.values, {
757
+ }), je = ({ initialValues: e, validationOptions: t, reseedKey: n }) => {
758
+ let [r, i] = V(() => $(e, n));
759
+ r.reseedKey !== n && i($(e, n));
760
+ let a = t?.validateNamePattern, o = t?.validateVersionPattern, s = z(() => ke(r.values, {
757
761
  validateNamePattern: a,
758
762
  validateVersionPattern: o
759
763
  }), [
760
764
  r.values,
761
765
  a,
762
766
  o
763
- ]), c = R(() => {
767
+ ]), c = z(() => {
764
768
  if (r.hasAttemptedSubmit) return s;
765
- let e = (e, t) => e && (t || Oe.has(e)) ? e : void 0;
769
+ let e = (e, t) => e && (t || Ae.has(e)) ? e : void 0;
766
770
  return {
767
- name: e(s.name, r.touched[Q.Name]),
768
- version: e(s.version, r.touched[Q.Version]),
769
- description: e(s.description, r.touched[Q.Description])
771
+ name: e(s.name, r.touched[Z.Name]),
772
+ version: e(s.version, r.touched[Z.Version]),
773
+ description: e(s.description, r.touched[Z.Description])
770
774
  };
771
775
  }, [
772
776
  s,
773
777
  r.hasAttemptedSubmit,
774
778
  r.touched
775
- ]), l = z(s), u = z(e);
776
- L(() => {
779
+ ]), l = B(s), u = B(e);
780
+ R(() => {
777
781
  l.current = s, u.current = e;
778
782
  });
779
- let d = I((e) => i((t) => ({
783
+ let d = L((e) => i((t) => ({
780
784
  ...t,
781
785
  values: {
782
786
  ...t.values,
783
787
  ...e
784
788
  }
785
- })), []), f = I((e) => i((t) => t.touched[e] ? t : {
789
+ })), []), f = L((e) => i((t) => t.touched[e] ? t : {
786
790
  ...t,
787
791
  touched: {
788
792
  ...t.touched,
789
793
  [e]: !0
790
794
  }
791
- }), []), p = I(() => (i((e) => ({
795
+ }), []), p = L(() => (i((e) => ({
792
796
  ...e,
793
797
  hasAttemptedSubmit: !0,
794
798
  submitAttemptCount: e.submitAttemptCount + 1
795
- })), Ce(l.current)), []), m = I((e) => i((t) => ke(e ?? u.current, t.reseedKey)), []), h = R(() => !Se(r.values, r.baseline), [r.values, r.baseline]);
796
- return R(() => ({
799
+ })), we(l.current)), []), m = L((e) => i((t) => $(e ?? u.current, t.reseedKey)), []), h = z(() => !Ce(r.values, r.baseline), [r.values, r.baseline]);
800
+ return z(() => ({
797
801
  values: r.values,
798
802
  setValues: d,
799
803
  touched: r.touched,
@@ -818,4 +822,4 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
818
822
  ]);
819
823
  };
820
824
  //#endregion
821
- export { oe as AddAvatar, se as AvatarPickerModal, q as BUILDER_FORM_CLASS, K as BuilderFormContainer, ve as DEFAULT_METADATA_FORM_LABELS, $ as DeploymentCreationFieldErrorCode, pe as DeploymentCreationForm, ue as DeploymentLocalesField, ae as EditorLayout, Y as EditorSection, _e as EntityEditor, Q as MetadataField, be as MetadataForm, we as NAME_PATTERN, Ee as SEMVER_VERSION_PATTERN, Te as VERSION_PATTERN, Ae as useMetadataForm, De as validateDeploymentCreationFields };
825
+ export { se as AddAvatar, ce as AvatarPickerModal, J as BUILDER_FORM_CLASS, q as BuilderFormContainer, Oe as DEFAULT_DEPLOYMENT_VERSION, ye as DEFAULT_METADATA_FORM_LABELS, Q as DeploymentCreationFieldErrorCode, me as DeploymentCreationForm, de as DeploymentLocalesField, ae as EditorLayout, Y as EditorSection, ve as EntityEditor, Z as MetadataField, xe as MetadataForm, Te as NAME_PATTERN, De as SEMVER_VERSION_PATTERN, Ee as VERSION_PATTERN, je as useMetadataForm, ke as validateDeploymentCreationFields };
@@ -138,6 +138,10 @@ export interface DeploymentCreationFormProps {
138
138
  nameCaption?: string;
139
139
  /** Marks the description field as required. The host still owns the validation. */
140
140
  isDescriptionRequired?: boolean;
141
+ /** Hard limit on the description length; the textarea stops accepting input at it. */
142
+ descriptionMaxLength?: number;
143
+ /** Helper text rendered under the description field, e.g. a `120/2000` counter. */
144
+ descriptionCaption?: string;
141
145
  /**
142
146
  * Wraps the Description textarea, e.g. in a label row with extra actions.
143
147
  * When set, the textarea renders without its own label, so the returned node
@@ -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,CA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rB,mFAAmF;IACnF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;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,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,s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C,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
  nameCaption?: string;
53
53
  /** Marks the Description field as required. Defaults to `false`. */
54
54
  isDescriptionRequired?: boolean;
55
+ /** Hard limit on the Description length; see `DeploymentCreationFormProps.descriptionMaxLength`. */
56
+ descriptionMaxLength?: number;
57
+ /** Helper text rendered under the Description field, e.g. a character counter. */
58
+ descriptionCaption?: string;
55
59
  /** Wraps the Description textarea, which then renders without its own label; see `DeploymentCreationFormProps.renderDescription`. */
56
60
  renderDescription?: (textarea: ReactNode, fieldId: string) => ReactNode;
57
61
  /** Changes on every submit attempt to move focus to the first invalid field; see `DeploymentCreationFormProps.focusRequestKey`. */
@@ -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,CAA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CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAC;IACjE,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,2GAA2G;IAC3G,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,mFAAmF;IACnF,sBAAsB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC9D,iEAAiE;IACjE,MAAM,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC,6DAA6D;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oGAAoG;IACpG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC;IACxE,mIAAmI;IACnI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-builder-form",
3
3
  "description": "Presentational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
4
- "version": "1.3.0-dev.5",
4
+ "version": "1.3.0-dev.55",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,8 +20,8 @@
20
20
  "@tabler/icons-react": "^3.44.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.3.0-dev.5",
24
- "@epam/ai-dial-ui-kit": "^0.15.0",
23
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.55",
24
+ "@epam/ai-dial-ui-kit": "^0.15.4",
25
25
  "react": "^19.2.8"
26
26
  },
27
27
  "repository": {
@@ -11,6 +11,8 @@ export declare const VERSION_PATTERN: RegExp;
11
11
  * accepted here is accepted when the same entity is edited there.
12
12
  */
13
13
  export declare const SEMVER_VERSION_PATTERN: RegExp;
14
+ /** Version a new deployment's create form opens with; a SemVer 2.0.0 value the host seeds into its create-mode metadata. */
15
+ export declare const DEFAULT_DEPLOYMENT_VERSION = "1.0.0";
14
16
  /** Validates the General-step fields and returns untranslated error codes; has no side effects. */
15
17
  export declare const validateDeploymentCreationFields: (values: DeploymentCreationFormValues, options?: DeploymentCreationFormValidationOptions) => DeploymentCreationFormErrorCodes;
16
18
  //# sourceMappingURL=validate-deployment-creation-fields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QACgJ,CAAC;AAEpL,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}
1
+ {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QACgJ,CAAC;AAEpL,4HAA4H;AAC5H,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAElD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}