@epam/ai-dial-builder-form 1.3.0-dev.195 → 1.3.0-dev.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/DeploymentCreationForm/DeploymentCreationForm.d.ts.map +1 -1
- package/components/MetadataForm/MetadataForm.d.ts.map +1 -1
- package/index.js +54 -52
- package/models/deployment-creation-form.d.ts +3 -1
- package/models/deployment-creation-form.d.ts.map +1 -1
- package/models/metadata-form-props.d.ts +3 -1
- package/models/metadata-form-props.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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,
|
|
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;
|
|
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.js
CHANGED
|
@@ -2,7 +2,7 @@ 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, ResizeHandle as S, Select as C, Spinner as w, TagInput as T, Textarea as E, TextareaResize as D } from "@epam/ai-dial-ui-kit";
|
|
3
3
|
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
4
4
|
import { IconArrowLeft as j, IconArrowNarrowLeft as M, IconPhoto as N, IconPlus as P, IconTrashX as F } from "@tabler/icons-react";
|
|
5
|
-
import { Suspense as
|
|
5
|
+
import { Suspense as I, memo as ee, useCallback as L, useEffect as te, useId as R, useLayoutEffect as z, useMemo as B, useRef as V, useState as H } from "react";
|
|
6
6
|
//#region src/components/BuilderFormActions/BuilderFormActions.tsx
|
|
7
7
|
var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: o }) => /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(y, {
|
|
8
8
|
label: e.cancelButtonLabel,
|
|
@@ -338,7 +338,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
338
338
|
s.deleteConfirmMultipleText,
|
|
339
339
|
s.deleteConfirmItemsLabel
|
|
340
340
|
]);
|
|
341
|
-
return /* @__PURE__ */ k(
|
|
341
|
+
return /* @__PURE__ */ k(I, {
|
|
342
342
|
fallback: null,
|
|
343
343
|
children: e && /* @__PURE__ */ k(i, {
|
|
344
344
|
isOpen: e,
|
|
@@ -386,7 +386,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
386
386
|
name: "",
|
|
387
387
|
description: ""
|
|
388
388
|
}), fe = ({ 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" }) => {
|
|
389
|
-
let { summaryLabel: h, addLabel: _, editLabel: y, popupTitle: x, addLocaleLabel: S, localeRowLabel: w = "Locale", languageLabel: T, nameLabel: O, namePlaceholder: j, descriptionLabel: M, descriptionPlaceholder: N, deleteAriaLabel:
|
|
389
|
+
let { summaryLabel: h, addLabel: _, editLabel: y, popupTitle: x, addLocaleLabel: S, localeRowLabel: w = "Locale", languageLabel: T, nameLabel: O, namePlaceholder: j, descriptionLabel: M, descriptionPlaceholder: N, deleteAriaLabel: I, cancelLabel: ee = "Cancel", saveLabel: L = "Save" } = i, [R, z] = H(!1), [B, U] = H([]), W = V(0);
|
|
390
390
|
te(() => {
|
|
391
391
|
R && U(e.length > 0 ? e : [de(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), r)]);
|
|
392
392
|
}, [
|
|
@@ -429,7 +429,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
429
429
|
header: x,
|
|
430
430
|
onClose: K,
|
|
431
431
|
mainButtons: [{
|
|
432
|
-
label:
|
|
432
|
+
label: ee,
|
|
433
433
|
onClick: K
|
|
434
434
|
}, {
|
|
435
435
|
label: L,
|
|
@@ -460,7 +460,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
460
460
|
"aria-hidden": !0,
|
|
461
461
|
stroke: d
|
|
462
462
|
}),
|
|
463
|
-
"aria-label": `${
|
|
463
|
+
"aria-label": `${I} ${t + 1}`,
|
|
464
464
|
onClick: () => re(e.id)
|
|
465
465
|
})]
|
|
466
466
|
}), /* @__PURE__ */ A("div", {
|
|
@@ -521,35 +521,35 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
521
521
|
})
|
|
522
522
|
]
|
|
523
523
|
});
|
|
524
|
-
}, pe = "Add tags, comma separated", me = "deployment-creation-form-description", he = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = ue, isNameReadOnly: m = !1,
|
|
525
|
-
let
|
|
524
|
+
}, pe = "Add tags, comma separated", me = "deployment-creation-form-description", he = ({ values: e, errors: t, onChange: i, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = ue, isNameReadOnly: m = !1, nameReadOnlyTooltip: h, nameCaption: _, isDescriptionRequired: v = !1, descriptionCaption: y, renderDescription: b, focusRequestKey: x }) => {
|
|
525
|
+
let S = V(null), C = V(null), w = V(null), O = V(!1), j = (e) => p.includes(e), M = j(Q.Name), N = j(Q.Version), P = !!(t.name || t.version || t.description), F = V(x);
|
|
526
526
|
te(() => {
|
|
527
527
|
let e = () => {
|
|
528
|
-
t.name ?
|
|
528
|
+
t.name ? S.current?.focus() : t.version ? C.current?.focus() : t.description && w.current?.focus();
|
|
529
529
|
};
|
|
530
|
-
|
|
530
|
+
x === void 0 ? (P && !O.current && e(), O.current = P) : x !== F.current && (F.current = x, e());
|
|
531
531
|
}, [
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
x,
|
|
533
|
+
P,
|
|
534
534
|
t.name,
|
|
535
535
|
t.version,
|
|
536
536
|
t.description
|
|
537
537
|
]);
|
|
538
|
-
let
|
|
538
|
+
let I = /* @__PURE__ */ k(E, {
|
|
539
539
|
id: me,
|
|
540
|
-
ref:
|
|
540
|
+
ref: w,
|
|
541
541
|
value: e.description,
|
|
542
542
|
onChange: (e) => i({ description: e }),
|
|
543
|
-
"aria-required":
|
|
544
|
-
labelProps:
|
|
543
|
+
"aria-required": v || void 0,
|
|
544
|
+
labelProps: b ? void 0 : {
|
|
545
545
|
label: u.description.label,
|
|
546
|
-
required:
|
|
546
|
+
required: v
|
|
547
547
|
},
|
|
548
548
|
placeholder: u.description.placeholder,
|
|
549
|
-
caption:
|
|
549
|
+
caption: y,
|
|
550
550
|
error: t.description || void 0,
|
|
551
551
|
invalid: !!t.description,
|
|
552
|
-
containerClassName:
|
|
552
|
+
containerClassName: b ? void 0 : d?.field,
|
|
553
553
|
className: n,
|
|
554
554
|
resize: D.Vertical
|
|
555
555
|
});
|
|
@@ -558,7 +558,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
558
558
|
"aria-label": u.ariaLabel,
|
|
559
559
|
className: s("flex flex-col gap-4", d?.root),
|
|
560
560
|
children: [
|
|
561
|
-
|
|
561
|
+
j(Q.Avatar) && /* @__PURE__ */ k(ce, {
|
|
562
562
|
label: u.iconUrl.label,
|
|
563
563
|
avatarUrl: c,
|
|
564
564
|
addAvatarLabel: u.iconUrl.addAvatarLabel,
|
|
@@ -566,27 +566,28 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
566
566
|
onAddAvatarClick: l,
|
|
567
567
|
className: d?.field
|
|
568
568
|
}),
|
|
569
|
-
(
|
|
569
|
+
(M || N) && /* @__PURE__ */ A("div", {
|
|
570
570
|
className: s("flex items-start gap-4", d?.field),
|
|
571
|
-
children: [
|
|
571
|
+
children: [M && /* @__PURE__ */ k(g, {
|
|
572
572
|
id: "deployment-creation-form-name",
|
|
573
|
-
inputRef:
|
|
573
|
+
inputRef: S,
|
|
574
574
|
value: e.name,
|
|
575
575
|
onChange: (e) => i({ name: e ?? "" }),
|
|
576
576
|
onBlur: a,
|
|
577
|
-
|
|
577
|
+
disabled: m,
|
|
578
|
+
tooltipText: m ? h : void 0,
|
|
578
579
|
labelProps: {
|
|
579
580
|
label: u.name.label,
|
|
580
581
|
required: !0
|
|
581
582
|
},
|
|
582
583
|
placeholder: u.name.placeholder,
|
|
583
|
-
caption:
|
|
584
|
+
caption: _,
|
|
584
585
|
error: t.name || void 0,
|
|
585
586
|
invalid: !!t.name,
|
|
586
|
-
containerClassName:
|
|
587
|
-
}),
|
|
587
|
+
containerClassName: N ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
|
|
588
|
+
}), N && /* @__PURE__ */ k(g, {
|
|
588
589
|
id: "deployment-creation-form-version",
|
|
589
|
-
inputRef:
|
|
590
|
+
inputRef: C,
|
|
590
591
|
value: e.version,
|
|
591
592
|
onChange: (e) => i({ version: e ?? "" }),
|
|
592
593
|
onBlur: o,
|
|
@@ -594,21 +595,21 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
594
595
|
placeholder: u.version.placeholder,
|
|
595
596
|
error: t.version || void 0,
|
|
596
597
|
invalid: !!t.version,
|
|
597
|
-
containerClassName:
|
|
598
|
+
containerClassName: M ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
|
|
598
599
|
})]
|
|
599
600
|
}),
|
|
600
|
-
|
|
601
|
+
j(Q.Description) && (b ? /* @__PURE__ */ k("div", {
|
|
601
602
|
className: d?.field,
|
|
602
|
-
children:
|
|
603
|
-
}) :
|
|
604
|
-
|
|
603
|
+
children: b(I, me)
|
|
604
|
+
}) : I),
|
|
605
|
+
j(Q.Locales) && /* @__PURE__ */ k(fe, {
|
|
605
606
|
value: e.otherLocales,
|
|
606
607
|
onChange: (e) => i({ otherLocales: e }),
|
|
607
608
|
availableLocaleOptions: f,
|
|
608
609
|
labels: u.otherLocales,
|
|
609
610
|
className: d?.field
|
|
610
611
|
}),
|
|
611
|
-
|
|
612
|
+
j(Q.Tags) && /* @__PURE__ */ k("div", {
|
|
612
613
|
className: d?.field,
|
|
613
614
|
children: /* @__PURE__ */ k(T, {
|
|
614
615
|
id: "deployment-creation-form-topics",
|
|
@@ -621,7 +622,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
621
622
|
})
|
|
622
623
|
]
|
|
623
624
|
});
|
|
624
|
-
}, ge = "border-0 p-4 desktop:p-8", _e = "desktop:flex-1", ve = "px-4 pt-4 desktop:px-6 desktop:pt-6", ye =
|
|
625
|
+
}, ge = "border-0 p-4 desktop:p-8", _e = "desktop:flex-1", ve = "px-4 pt-4 desktop:px-6 desktop:pt-6", ye = ee(({ 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: S, setupSectionClassName: C, labels: w, styles: T, dir: E }) => {
|
|
625
626
|
let D = v == null ? null : /* @__PURE__ */ k("div", {
|
|
626
627
|
role: "alert",
|
|
627
628
|
className: ve,
|
|
@@ -735,37 +736,38 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
735
736
|
deleteConfirmItemsLabel: "items?",
|
|
736
737
|
deleteConfirmLabel: "Delete",
|
|
737
738
|
deleteCancelLabel: "Cancel"
|
|
738
|
-
}, Se =
|
|
739
|
-
let [
|
|
740
|
-
let t =
|
|
741
|
-
t && n({ iconUrl: t }),
|
|
742
|
-
}, [n,
|
|
739
|
+
}, Se = ee(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = ue, isNameReadOnly: c, nameReadOnlyTooltip: l, nameCaption: u, isDescriptionRequired: d, descriptionCaption: f, renderDescription: p, focusRequestKey: m, labels: h }) => {
|
|
740
|
+
let [g, _] = H(!1), v = B(() => a ? s : s.filter((e) => e !== Q.Avatar), [a, s]), y = e.iconUrl, b = a?.resolveIconUrl, x = B(() => b ? b(y) : void 0, [y, b]), S = L(() => _(!0), []), C = L(() => _(!1), []), w = a?.resolveAttachedIconUrl, T = L((e) => {
|
|
741
|
+
let t = w?.(e);
|
|
742
|
+
t && n({ iconUrl: t }), _(!1);
|
|
743
|
+
}, [n, w]);
|
|
743
744
|
return /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(he, {
|
|
744
745
|
values: e,
|
|
745
746
|
errors: t,
|
|
746
747
|
onChange: n,
|
|
747
748
|
onNameBlur: r,
|
|
748
749
|
onVersionBlur: i,
|
|
749
|
-
iconPreviewUrl:
|
|
750
|
-
onAddAvatarClick:
|
|
751
|
-
labels:
|
|
750
|
+
iconPreviewUrl: x,
|
|
751
|
+
onAddAvatarClick: S,
|
|
752
|
+
labels: h?.form ?? be,
|
|
752
753
|
availableLocaleOptions: o,
|
|
753
|
-
fields:
|
|
754
|
+
fields: v,
|
|
754
755
|
isNameReadOnly: c,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
756
|
+
nameReadOnlyTooltip: l,
|
|
757
|
+
nameCaption: u,
|
|
758
|
+
isDescriptionRequired: d,
|
|
759
|
+
descriptionCaption: f,
|
|
760
|
+
renderDescription: p,
|
|
761
|
+
focusRequestKey: m
|
|
760
762
|
}), a && /* @__PURE__ */ k(le, {
|
|
761
|
-
isOpen:
|
|
762
|
-
onClose:
|
|
763
|
-
onAttach:
|
|
763
|
+
isOpen: g,
|
|
764
|
+
onClose: C,
|
|
765
|
+
onAttach: T,
|
|
764
766
|
bucket: a.bucket,
|
|
765
767
|
FileManagerModal: a.FileManagerModal,
|
|
766
768
|
allowedMimeTypes: a.allowedMimeTypes,
|
|
767
769
|
maxFileSizeBytes: a.maxFileSizeBytes,
|
|
768
|
-
labels:
|
|
770
|
+
labels: h?.avatarPicker ?? xe
|
|
769
771
|
})] });
|
|
770
772
|
}), $ = /* @__PURE__ */ function(e) {
|
|
771
773
|
return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
|
|
@@ -132,8 +132,10 @@ export interface DeploymentCreationFormProps {
|
|
|
132
132
|
* absent, Name takes the full row.
|
|
133
133
|
*/
|
|
134
134
|
fields?: readonly MetadataField[];
|
|
135
|
-
/** Renders the name field
|
|
135
|
+
/** Renders the name field disabled, e.g. when the entity cannot be renamed after creation. */
|
|
136
136
|
isNameReadOnly?: boolean;
|
|
137
|
+
/** Tooltip shown over the name field while `isNameReadOnly` is set. Defaults to the field value. */
|
|
138
|
+
nameReadOnlyTooltip?: string;
|
|
137
139
|
/** Helper text rendered under the name field. */
|
|
138
140
|
nameCaption?: string;
|
|
139
141
|
/** 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,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,C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ACH,MAAM,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC
|
|
1
|
+
{"version":3,"file":"deployment-creation-form.d.ts","sourceRoot":"","sources":["../../src/models/deployment-creation-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,6GAA6G;AAC7G,MAAM,MAAM,iCAAiC,GAAG,kBAAkB,CAAC;AAEnE,iEAAiE;AACjE,MAAM,MAAM,kCAAkC,GAAG,YAAY,CAAC;AAE9D,4EAA4E;AAC5E,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,qGAAqG;IACrG,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uGAAuG;IACvG,YAAY,EAAE,iCAAiC,EAAE,CAAC;CACnD;AAED,kEAAkE;AAClE,MAAM,WAAW,iCAAiC;IAChD,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+EAA+E;AAC/E,MAAM,WAAW,iCAAiC;IAChD,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uEAAuE;AACvE,MAAM,WAAW,gCAAgC;IAC/C,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,cAAc,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ps {
|
|
|
46
46
|
availableLocaleOptions?: DeploymentCreationFormLocaleOption[];
|
|
47
47
|
/** Fields to render, in fixed order. Defaults to every field. */
|
|
48
48
|
fields?: readonly MetadataField[];
|
|
49
|
-
/** Renders the Name field
|
|
49
|
+
/** Renders the Name field disabled. Defaults to `false`. */
|
|
50
50
|
isNameReadOnly?: boolean;
|
|
51
|
+
/** Tooltip shown over the Name field while `isNameReadOnly` is set. Defaults to the field value. */
|
|
52
|
+
nameReadOnlyTooltip?: string;
|
|
51
53
|
/** Helper text rendered under the Name field. */
|
|
52
54
|
nameCaption?: string;
|
|
53
55
|
/** 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;IACjE,gBAAgB,EAAE,aAAa,CAAC,iCAAiC,CAAC,CAAC;IACnE,iFAAiF;IACjF,cAAc,EAAE,CAAC,GAAG,EAA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AAM,CAAC;IACrB,oEAAoE;IACpE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,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.
|
|
4
|
+
"version": "1.3.0-dev.199",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@tabler/icons-react": "^3.44.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.199",
|
|
24
24
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.45",
|
|
25
25
|
"react": "^19.2.8"
|
|
26
26
|
},
|