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