@epam/ai-dial-scheduled-tasks 1.1.0-dev.174 → 1.1.0-dev.176
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/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
- package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
- package/index.js +156 -152
- package/models/scheduled-task-card-props.d.ts +2 -0
- package/models/scheduled-task-card-props.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskCard.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCard/ScheduledTaskCard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGrF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ScheduledTaskCard.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCard/ScheduledTaskCard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGrF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAkJxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskCreateForm.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAuC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduledTaskCreateForm.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAuC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAmB7F;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAkXpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskDetailView.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskDetailView/ScheduledTaskDetailView.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAIlG;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"ScheduledTaskDetailView.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskDetailView/ScheduledTaskDetailView.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAIlG;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CA4RpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTasks.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTasks/ScheduledTasks.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAwCzE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ScheduledTasks.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTasks/ScheduledTasks.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,EAAE,EAAqB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAwCzE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA+MlD,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MDMessageViewer as e, PanelEmptyState as t, buildCssVars as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { SearchBar as i } from "@epam/ai-dial-kit";
|
|
3
|
-
import { ButtonAppearance as a, ButtonDropdown as o, ButtonVariant as s, Calendar as c, CalendarMode as l, CardShell as u, DIAL_ICON_SIZE as d,
|
|
4
|
-
import { IconAlertTriangle as
|
|
3
|
+
import { ButtonAppearance as a, ButtonDropdown as o, ButtonVariant as s, Calendar as c, CalendarMode as l, CardShell as u, DIAL_ICON_SIZE as d, FolderPath as f, GhostButton as p, GhostIconButton as m, Highlight as h, Input as g, Label as _, LazyMarkdownEditor as v, NeutralButton as y, NumberInput as b, PrimaryButton as x, Select as S, Skeleton as C, SkeletonVariant as w, Spinner as T, Switch as ee, Textarea as E } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { IconAlertTriangle as D, IconArrowLeft as O, IconCalendarTime as k, IconCircleCheck as A, IconCircleX as j, IconPencilMinus as te, IconPlayerPause as M, IconPlus as ne } from "@tabler/icons-react";
|
|
5
5
|
import { Suspense as N, lazy as P, useEffect as re, useRef as F } from "react";
|
|
6
6
|
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
7
7
|
import { BuilderFormContainer as z } from "@epam/ai-dial-builder-form";
|
|
@@ -17,21 +17,21 @@ var B = {
|
|
|
17
17
|
pausedLabel: "_pausedLabel_xe5uf_36",
|
|
18
18
|
locationDivider: "_locationDivider_xe5uf_40"
|
|
19
19
|
}, V = ({ item: e, searchQuery: t = "", onCardClick: i, labels: a, styles: o, className: s }) => {
|
|
20
|
-
let c = a?.newBadgeLabel ?? "NEW", l = a?.pausedBadgeLabel ?? "Paused", { colors:
|
|
21
|
-
"--stc-title-text":
|
|
22
|
-
"--stc-desc-text":
|
|
23
|
-
"--stc-pill-bg":
|
|
24
|
-
"--stc-pill-border":
|
|
25
|
-
"--stc-schedule-label-text":
|
|
26
|
-
"--stc-location-label-text":
|
|
27
|
-
"--stc-location-leaf-text":
|
|
28
|
-
"--stc-new-badge-bg":
|
|
29
|
-
"--stc-new-badge-text":
|
|
30
|
-
"--stc-location-divider-border":
|
|
31
|
-
"--stc-paused-bg":
|
|
32
|
-
"--stc-paused-border":
|
|
33
|
-
"--stc-paused-text":
|
|
34
|
-
}),
|
|
20
|
+
let c = a?.newBadgeLabel ?? "NEW", l = a?.pausedBadgeLabel ?? "Paused", { colors: p, typography: m } = o ?? {}, g = m?.titleClassName ?? "dial-body-semi-text", _ = m?.descriptionClassName ?? "dial-small-text", v = m?.descriptionSizeClassName ?? "dial-tiny-text", y = m?.scheduleLabelClassName ?? "dial-tiny-text", b = m?.locationLabelClassName ?? "dial-tiny-text", x = m?.locationLeafClassName ?? "dial-tiny-semi-text", S = m?.newBadgeClassName ?? "dial-tiny-semi-text", C = m?.pausedBadgeClassName ?? "dial-tiny-text", w = n({
|
|
21
|
+
"--stc-title-text": p?.titleText,
|
|
22
|
+
"--stc-desc-text": p?.descriptionText,
|
|
23
|
+
"--stc-pill-bg": p?.schedulePillBackground,
|
|
24
|
+
"--stc-pill-border": p?.schedulePillBorder,
|
|
25
|
+
"--stc-schedule-label-text": p?.scheduleLabelText,
|
|
26
|
+
"--stc-location-label-text": p?.locationLabelText,
|
|
27
|
+
"--stc-location-leaf-text": p?.locationLeafText,
|
|
28
|
+
"--stc-new-badge-bg": p?.newBadgeBackground,
|
|
29
|
+
"--stc-new-badge-text": p?.newBadgeText,
|
|
30
|
+
"--stc-location-divider-border": p?.locationDividerBorder,
|
|
31
|
+
"--stc-paused-bg": p?.pausedBadgeBackground,
|
|
32
|
+
"--stc-paused-border": p?.pausedBadgeBorder,
|
|
33
|
+
"--stc-paused-text": p?.pausedBadgeText
|
|
34
|
+
}), T = i ? {
|
|
35
35
|
tabIndex: 0,
|
|
36
36
|
onClick: () => i(e.id),
|
|
37
37
|
onKeyDown: (t) => {
|
|
@@ -41,24 +41,24 @@ var B = {
|
|
|
41
41
|
return /* @__PURE__ */ R(u, {
|
|
42
42
|
role: i ? "button" : "group",
|
|
43
43
|
"aria-label": e.displayName,
|
|
44
|
-
style:
|
|
44
|
+
style: w,
|
|
45
45
|
className: r("h-[232px]", i && "cursor-pointer", s),
|
|
46
|
-
...
|
|
46
|
+
...T,
|
|
47
47
|
children: [
|
|
48
48
|
/* @__PURE__ */ R("div", {
|
|
49
49
|
className: "flex min-w-0 shrink-0 items-center gap-2",
|
|
50
|
-
children: [/* @__PURE__ */ L(
|
|
50
|
+
children: [/* @__PURE__ */ L(h, {
|
|
51
51
|
text: e.displayName,
|
|
52
52
|
query: t,
|
|
53
53
|
maxLines: 1,
|
|
54
|
-
className: r(
|
|
54
|
+
className: r(g, B.title)
|
|
55
55
|
}), e.isNew && /* @__PURE__ */ L("span", {
|
|
56
|
-
className: r("shrink-0 rounded-full px-2 py-0.5",
|
|
56
|
+
className: r("shrink-0 rounded-full px-2 py-0.5", S, B.newBadge),
|
|
57
57
|
children: c
|
|
58
58
|
})]
|
|
59
59
|
}),
|
|
60
60
|
e.descriptionPreview && /* @__PURE__ */ L("p", {
|
|
61
|
-
className: r("line-clamp-4 min-h-0 flex-1 overflow-hidden
|
|
61
|
+
className: r("line-clamp-4 min-h-0 flex-1 overflow-hidden", v, _, B.description),
|
|
62
62
|
children: e.descriptionPreview
|
|
63
63
|
}),
|
|
64
64
|
/* @__PURE__ */ R("div", {
|
|
@@ -66,19 +66,19 @@ var B = {
|
|
|
66
66
|
children: [/* @__PURE__ */ L("div", {
|
|
67
67
|
className: "flex min-h-[28px] items-center",
|
|
68
68
|
children: e.isActive === !1 ? /* @__PURE__ */ R("span", {
|
|
69
|
-
className: r("inline-flex items-center gap-1.5 rounded-full border px-2 py-1", B.pausedPill,
|
|
70
|
-
children: [/* @__PURE__ */ L(
|
|
69
|
+
className: r("inline-flex items-center gap-1.5 rounded-full border px-2 py-1", B.pausedPill, C, B.pausedLabel),
|
|
70
|
+
children: [/* @__PURE__ */ L(M, {
|
|
71
71
|
size: d.SM,
|
|
72
72
|
"aria-hidden": !0
|
|
73
73
|
}), l]
|
|
74
74
|
}) : /* @__PURE__ */ L("span", {
|
|
75
|
-
className: r("inline-block rounded-lg border px-2 py-1", B.schedulePill,
|
|
75
|
+
className: r("inline-block rounded-lg border px-2 py-1", B.schedulePill, y, B.scheduleLabel),
|
|
76
76
|
children: e.scheduleLabel
|
|
77
77
|
})
|
|
78
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ L(
|
|
78
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ L(f, {
|
|
79
79
|
segments: e.locationSegments,
|
|
80
|
-
labelClassName: r(
|
|
81
|
-
leafClassName: r(
|
|
80
|
+
labelClassName: r(b, B.locationLabel),
|
|
81
|
+
leafClassName: r(x, B.locationLeaf),
|
|
82
82
|
className: r("pt-3", B.locationDivider)
|
|
83
83
|
})]
|
|
84
84
|
})
|
|
@@ -93,8 +93,8 @@ var B = {
|
|
|
93
93
|
style: n({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
|
|
94
94
|
className: r("h-[232px]", H.card),
|
|
95
95
|
children: [
|
|
96
|
-
/* @__PURE__ */ L(
|
|
97
|
-
variant:
|
|
96
|
+
/* @__PURE__ */ L(C, {
|
|
97
|
+
variant: w.Rectangular,
|
|
98
98
|
width: "60%",
|
|
99
99
|
height: "20px",
|
|
100
100
|
color: W,
|
|
@@ -102,15 +102,15 @@ var B = {
|
|
|
102
102
|
}),
|
|
103
103
|
/* @__PURE__ */ L("div", {
|
|
104
104
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
105
|
-
children: U.map((e, t) => /* @__PURE__ */ L(
|
|
106
|
-
variant:
|
|
105
|
+
children: U.map((e, t) => /* @__PURE__ */ L(C, {
|
|
106
|
+
variant: w.Rectangular,
|
|
107
107
|
width: e,
|
|
108
108
|
height: "16px",
|
|
109
109
|
color: W
|
|
110
110
|
}, t))
|
|
111
111
|
}),
|
|
112
|
-
/* @__PURE__ */ L(
|
|
113
|
-
variant:
|
|
112
|
+
/* @__PURE__ */ L(C, {
|
|
113
|
+
variant: w.Rectangular,
|
|
114
114
|
width: "110px",
|
|
115
115
|
height: "28px",
|
|
116
116
|
color: W,
|
|
@@ -136,12 +136,12 @@ var B = {
|
|
|
136
136
|
if (!e || e === document.body) return null;
|
|
137
137
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
138
138
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : ae(e.parentElement);
|
|
139
|
-
}, oe = ({ labels: e, onCreateClick: c, searchQuery: l, onSearchQueryChange: u, sortKey: f, onSortChange:
|
|
140
|
-
let { colors:
|
|
141
|
-
"--st-bg":
|
|
142
|
-
"--st-subtitle-text":
|
|
143
|
-
"--st-sort-text":
|
|
144
|
-
}),
|
|
139
|
+
}, oe = ({ labels: e, onCreateClick: c, searchQuery: l, onSearchQueryChange: u, sortKey: f, onSortChange: m, items: h, isLoading: g = !1, error: _, onRetry: v, hasMore: y = !1, isLoadingMore: b = !1, skeletonCount: S = 6, onLoadMore: C, onCardClick: w, styles: ee }) => {
|
|
140
|
+
let { colors: E, typography: D, emptyStateIconSize: O = 48 } = ee ?? {}, A = D?.titleClassName ?? "dial-h1-text", j = D?.subtitleClassName ?? "dial-body-text", te = n({
|
|
141
|
+
"--st-bg": E?.background,
|
|
142
|
+
"--st-subtitle-text": E?.subtitleText,
|
|
143
|
+
"--st-sort-text": E?.sortButtonText
|
|
144
|
+
}), M = e.sortOptions.find((e) => e.key === f)?.label ?? "", N = ie(g, b, !!_, h.length, l.trim().length > 0, e), P = F(null);
|
|
145
145
|
re(() => {
|
|
146
146
|
let e = P.current;
|
|
147
147
|
if (!e || !C) return;
|
|
@@ -159,22 +159,22 @@ var B = {
|
|
|
159
159
|
g,
|
|
160
160
|
C
|
|
161
161
|
]);
|
|
162
|
-
let I = () => g ? /* @__PURE__ */ L(
|
|
162
|
+
let I = () => g ? /* @__PURE__ */ L(T, {}) : _ ? /* @__PURE__ */ R("div", {
|
|
163
163
|
className: "flex flex-col items-center gap-3",
|
|
164
164
|
children: [/* @__PURE__ */ L("p", {
|
|
165
|
-
className: r(
|
|
165
|
+
className: r(j, q.subtitle),
|
|
166
166
|
children: e.errorLabel
|
|
167
|
-
}), /* @__PURE__ */ L(
|
|
167
|
+
}), /* @__PURE__ */ L(p, {
|
|
168
168
|
label: e.retryLabel,
|
|
169
169
|
onClick: v
|
|
170
170
|
})]
|
|
171
171
|
}) : h.length === 0 ? l.trim() ? /* @__PURE__ */ L("p", {
|
|
172
|
-
className: r(
|
|
172
|
+
className: r(j, q.subtitle),
|
|
173
173
|
children: e.noResultsLabel
|
|
174
174
|
}) : /* @__PURE__ */ L(t, {
|
|
175
|
-
icon: /* @__PURE__ */ L(
|
|
175
|
+
icon: /* @__PURE__ */ L(k, {
|
|
176
176
|
"aria-hidden": !0,
|
|
177
|
-
size:
|
|
177
|
+
size: O,
|
|
178
178
|
stroke: 1
|
|
179
179
|
}),
|
|
180
180
|
label: e.emptyStateLabel
|
|
@@ -185,8 +185,8 @@ var B = {
|
|
|
185
185
|
searchQuery: l,
|
|
186
186
|
onCardClick: w,
|
|
187
187
|
labels: e.cardLabels,
|
|
188
|
-
trailingSkeletonCount: b ?
|
|
189
|
-
skeletonStyles: { colors: { skeletonColor:
|
|
188
|
+
trailingSkeletonCount: b ? S : 0,
|
|
189
|
+
skeletonStyles: { colors: { skeletonColor: E?.skeletonColor } }
|
|
190
190
|
}), /* @__PURE__ */ L("div", {
|
|
191
191
|
ref: P,
|
|
192
192
|
"aria-hidden": !0,
|
|
@@ -194,7 +194,7 @@ var B = {
|
|
|
194
194
|
})]
|
|
195
195
|
}), z = g || !!_ || h.length === 0;
|
|
196
196
|
return /* @__PURE__ */ R("div", {
|
|
197
|
-
style:
|
|
197
|
+
style: te,
|
|
198
198
|
className: r("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", q.container),
|
|
199
199
|
children: [
|
|
200
200
|
/* @__PURE__ */ R("div", {
|
|
@@ -202,13 +202,13 @@ var B = {
|
|
|
202
202
|
children: [/* @__PURE__ */ R("div", {
|
|
203
203
|
className: "min-w-0 gap-2",
|
|
204
204
|
children: [/* @__PURE__ */ L("h1", {
|
|
205
|
-
className: r("truncate",
|
|
205
|
+
className: r("truncate", A),
|
|
206
206
|
children: e.title
|
|
207
207
|
}), /* @__PURE__ */ L("p", {
|
|
208
|
-
className: r("mt-1",
|
|
208
|
+
className: r("mt-1", j, q.subtitle),
|
|
209
209
|
children: e.subtitle
|
|
210
210
|
})]
|
|
211
|
-
}), /* @__PURE__ */ L(
|
|
211
|
+
}), /* @__PURE__ */ L(x, {
|
|
212
212
|
label: e.createButtonLabel,
|
|
213
213
|
iconBefore: /* @__PURE__ */ L(ne, {
|
|
214
214
|
size: d.SM,
|
|
@@ -234,17 +234,16 @@ var B = {
|
|
|
234
234
|
iconStrokeWidth: 1.8,
|
|
235
235
|
styles: {
|
|
236
236
|
containerClassName: "h-[50px] w-full rounded-xl px-[18px]",
|
|
237
|
-
inputClassName: "text-[15px]",
|
|
238
237
|
clearButtonClassName: "size-11 desktop:size-auto"
|
|
239
238
|
}
|
|
240
239
|
})
|
|
241
240
|
}), e.sortOptions.length > 0 && /* @__PURE__ */ L(o, {
|
|
242
|
-
label:
|
|
241
|
+
label: M,
|
|
243
242
|
variant: s.Primary,
|
|
244
243
|
appearance: a.Ghost,
|
|
245
244
|
items: e.sortOptions.map((e) => ({
|
|
246
245
|
...e,
|
|
247
|
-
onClick: () =>
|
|
246
|
+
onClick: () => m(e.key)
|
|
248
247
|
}))
|
|
249
248
|
})]
|
|
250
249
|
}),
|
|
@@ -286,12 +285,12 @@ var B = {
|
|
|
286
285
|
detailsColumn: "_detailsColumn_1mg3v_1",
|
|
287
286
|
sectionSubtitle: "_sectionSubtitle_1mg3v_5",
|
|
288
287
|
instructionsError: "_instructionsError_1mg3v_9"
|
|
289
|
-
}, he =
|
|
290
|
-
let { colors:
|
|
291
|
-
"--stcf-details-border":
|
|
292
|
-
"--stcf-subtitle-text":
|
|
293
|
-
"--stcf-error-text":
|
|
294
|
-
}),
|
|
288
|
+
}, he = P(async () => ({ default: (await v()).MarkdownEditor })), ge = ({ labels: e, values: t, errors: i, modelSelector: a, modelLabelId: o, onFieldChange: s, onBack: u, onCancel: d, onSubmit: f, isSubmitting: p = !1, markdownEditorTheme: m, styles: h }) => {
|
|
289
|
+
let { colors: v, typography: y } = h ?? {}, x = y?.titleClassName ?? "dial-h1-text", C = y?.sectionTitleClassName ?? "dial-body-semi-text", w = y?.sectionSubtitleClassName ?? "dial-tiny-text", ee = y?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", D = y?.instructionsErrorClassName ?? "dial-small-text", O = n({
|
|
290
|
+
"--stcf-details-border": v?.detailsColumnBorder,
|
|
291
|
+
"--stcf-subtitle-text": v?.sectionSubtitleText,
|
|
292
|
+
"--stcf-error-text": v?.instructionsErrorText
|
|
293
|
+
}), k = p || !t.displayName.trim() || !t.modelId || !t.prompt.trim();
|
|
295
294
|
return /* @__PURE__ */ L(z, {
|
|
296
295
|
labels: {
|
|
297
296
|
title: e.pageTitle,
|
|
@@ -303,14 +302,14 @@ var B = {
|
|
|
303
302
|
onCancel: d,
|
|
304
303
|
onSubmit: f,
|
|
305
304
|
isCancelDisabled: p,
|
|
306
|
-
isSubmitDisabled:
|
|
305
|
+
isSubmitDisabled: k,
|
|
307
306
|
styles: {
|
|
308
|
-
colors: { background:
|
|
307
|
+
colors: { background: v?.background },
|
|
309
308
|
header: {
|
|
310
|
-
colors: { borderColor:
|
|
311
|
-
typography: { fontClassName:
|
|
309
|
+
colors: { borderColor: v?.headerBorder },
|
|
310
|
+
typography: { fontClassName: x }
|
|
312
311
|
},
|
|
313
|
-
cssVars:
|
|
312
|
+
cssVars: O
|
|
314
313
|
},
|
|
315
314
|
left: /* @__PURE__ */ R("div", {
|
|
316
315
|
role: "group",
|
|
@@ -320,14 +319,14 @@ var B = {
|
|
|
320
319
|
/* @__PURE__ */ R("div", {
|
|
321
320
|
className: "flex flex-col gap-1",
|
|
322
321
|
children: [/* @__PURE__ */ L("h2", {
|
|
323
|
-
className:
|
|
322
|
+
className: C,
|
|
324
323
|
children: e.detailsSectionTitle
|
|
325
324
|
}), /* @__PURE__ */ L("p", {
|
|
326
325
|
className: r(w, X.sectionSubtitle),
|
|
327
326
|
children: e.detailsSectionSubtitle
|
|
328
327
|
})]
|
|
329
328
|
}),
|
|
330
|
-
/* @__PURE__ */ L(
|
|
329
|
+
/* @__PURE__ */ L(g, {
|
|
331
330
|
id: "scheduled-task-display-name",
|
|
332
331
|
value: t.displayName,
|
|
333
332
|
onChange: (e) => s("displayName", e ?? ""),
|
|
@@ -338,7 +337,7 @@ var B = {
|
|
|
338
337
|
invalid: !!i.displayName,
|
|
339
338
|
error: i.displayName
|
|
340
339
|
}),
|
|
341
|
-
/* @__PURE__ */ L(
|
|
340
|
+
/* @__PURE__ */ L(E, {
|
|
342
341
|
id: "scheduled-task-description",
|
|
343
342
|
value: t.description ?? "",
|
|
344
343
|
onChange: (e) => s("description", e),
|
|
@@ -351,14 +350,14 @@ var B = {
|
|
|
351
350
|
/* @__PURE__ */ R("div", {
|
|
352
351
|
className: "flex flex-col gap-1",
|
|
353
352
|
children: [
|
|
354
|
-
/* @__PURE__ */ L(
|
|
353
|
+
/* @__PURE__ */ L(_, {
|
|
355
354
|
id: o,
|
|
356
355
|
label: e.modelOrAgentLabel,
|
|
357
356
|
required: !0
|
|
358
357
|
}),
|
|
359
358
|
a,
|
|
360
359
|
i.modelId && /* @__PURE__ */ L("p", {
|
|
361
|
-
className: r(
|
|
360
|
+
className: r(D, X.instructionsError),
|
|
362
361
|
children: i.modelId
|
|
363
362
|
})
|
|
364
363
|
]
|
|
@@ -366,7 +365,7 @@ var B = {
|
|
|
366
365
|
/* @__PURE__ */ R("div", {
|
|
367
366
|
className: "flex flex-col gap-3",
|
|
368
367
|
children: [
|
|
369
|
-
/* @__PURE__ */ L(
|
|
368
|
+
/* @__PURE__ */ L(S, {
|
|
370
369
|
labelProps: { label: e.repeatLabel },
|
|
371
370
|
value: t.repeat,
|
|
372
371
|
onChange: (e) => s("repeat", e),
|
|
@@ -382,10 +381,13 @@ var B = {
|
|
|
382
381
|
mode: l.DateTime,
|
|
383
382
|
value: le(t.runAt),
|
|
384
383
|
onChange: (e) => s("runAt", ue(e)),
|
|
385
|
-
|
|
384
|
+
labelProps: {
|
|
385
|
+
label: e.runAtLabel,
|
|
386
|
+
required: !0
|
|
387
|
+
},
|
|
386
388
|
invalid: !!i.runAt
|
|
387
389
|
}), i.runAt && /* @__PURE__ */ L("p", {
|
|
388
|
-
className: r(
|
|
390
|
+
className: r(D, X.instructionsError),
|
|
389
391
|
children: i.runAt
|
|
390
392
|
})]
|
|
391
393
|
}),
|
|
@@ -397,10 +399,13 @@ var B = {
|
|
|
397
399
|
mode: l.Time,
|
|
398
400
|
value: t.time,
|
|
399
401
|
onChange: (e) => s("time", typeof e == "string" ? e : ""),
|
|
400
|
-
|
|
402
|
+
labelProps: {
|
|
403
|
+
label: e.timeLabel,
|
|
404
|
+
required: !0
|
|
405
|
+
},
|
|
401
406
|
invalid: !!i.time
|
|
402
407
|
}), i.time && /* @__PURE__ */ L("p", {
|
|
403
|
-
className: r(
|
|
408
|
+
className: r(D, X.instructionsError),
|
|
404
409
|
children: i.time
|
|
405
410
|
})]
|
|
406
411
|
}),
|
|
@@ -411,14 +416,17 @@ var B = {
|
|
|
411
416
|
mode: l.Weekday,
|
|
412
417
|
value: pe(t.dayOfWeek),
|
|
413
418
|
onChange: (e) => s("dayOfWeek", me(e)),
|
|
414
|
-
|
|
419
|
+
labelProps: {
|
|
420
|
+
label: e.dayOfWeekLabel,
|
|
421
|
+
required: !0
|
|
422
|
+
},
|
|
415
423
|
invalid: !!i.dayOfWeek
|
|
416
424
|
}), i.dayOfWeek && /* @__PURE__ */ L("p", {
|
|
417
|
-
className: r(
|
|
425
|
+
className: r(D, X.instructionsError),
|
|
418
426
|
children: i.dayOfWeek
|
|
419
427
|
})]
|
|
420
428
|
}),
|
|
421
|
-
t.repeat === J.Monthly && /* @__PURE__ */ L(
|
|
429
|
+
t.repeat === J.Monthly && /* @__PURE__ */ L(g, {
|
|
422
430
|
id: "scheduled-task-day-of-month",
|
|
423
431
|
value: t.dayOfMonth ?? "",
|
|
424
432
|
onChange: (e) => s("dayOfMonth", e ?? ""),
|
|
@@ -429,7 +437,7 @@ var B = {
|
|
|
429
437
|
invalid: !!i.dayOfMonth,
|
|
430
438
|
error: i.dayOfMonth
|
|
431
439
|
}),
|
|
432
|
-
t.repeat === J.Hourly && /* @__PURE__ */ L(
|
|
440
|
+
t.repeat === J.Hourly && /* @__PURE__ */ L(b, {
|
|
433
441
|
id: "scheduled-task-minute",
|
|
434
442
|
integer: !0,
|
|
435
443
|
min: 0,
|
|
@@ -452,11 +460,11 @@ var B = {
|
|
|
452
460
|
mode: l.Date,
|
|
453
461
|
value: de(t.startDate),
|
|
454
462
|
onChange: (e) => s("startDate", fe(e)),
|
|
455
|
-
label: e.startDateLabel,
|
|
463
|
+
labelProps: { label: e.startDateLabel },
|
|
456
464
|
placeholder: e.startDatePlaceholder,
|
|
457
465
|
invalid: !!i.startDate
|
|
458
466
|
}), i.startDate && /* @__PURE__ */ L("p", {
|
|
459
|
-
className: r(
|
|
467
|
+
className: r(D, X.instructionsError),
|
|
460
468
|
children: i.startDate
|
|
461
469
|
})]
|
|
462
470
|
}), /* @__PURE__ */ R("div", {
|
|
@@ -466,11 +474,11 @@ var B = {
|
|
|
466
474
|
mode: l.Date,
|
|
467
475
|
value: de(t.endDate),
|
|
468
476
|
onChange: (e) => s("endDate", fe(e)),
|
|
469
|
-
label: e.endDateLabel,
|
|
477
|
+
labelProps: { label: e.endDateLabel },
|
|
470
478
|
placeholder: e.endDatePlaceholder,
|
|
471
479
|
invalid: !!i.endDate
|
|
472
480
|
}), i.endDate && /* @__PURE__ */ L("p", {
|
|
473
|
-
className: r(
|
|
481
|
+
className: r(D, X.instructionsError),
|
|
474
482
|
children: i.endDate
|
|
475
483
|
})]
|
|
476
484
|
})]
|
|
@@ -487,7 +495,7 @@ var B = {
|
|
|
487
495
|
children: [/* @__PURE__ */ R("div", {
|
|
488
496
|
className: "flex flex-col gap-1",
|
|
489
497
|
children: [/* @__PURE__ */ L("h2", {
|
|
490
|
-
className:
|
|
498
|
+
className: C,
|
|
491
499
|
children: e.configurationSectionTitle
|
|
492
500
|
}), /* @__PURE__ */ L("p", {
|
|
493
501
|
className: r(w, X.sectionSubtitle),
|
|
@@ -499,12 +507,12 @@ var B = {
|
|
|
499
507
|
className: "flex flex-1 flex-col gap-1",
|
|
500
508
|
children: [
|
|
501
509
|
/* @__PURE__ */ L("span", {
|
|
502
|
-
className:
|
|
510
|
+
className: ee,
|
|
503
511
|
children: e.instructionsLabel
|
|
504
512
|
}),
|
|
505
513
|
/* @__PURE__ */ L(N, {
|
|
506
|
-
fallback: /* @__PURE__ */ L(
|
|
507
|
-
children: /* @__PURE__ */ L(
|
|
514
|
+
fallback: /* @__PURE__ */ L(T, {}),
|
|
515
|
+
children: /* @__PURE__ */ L(he, {
|
|
508
516
|
value: t.prompt,
|
|
509
517
|
onChange: (e) => s("prompt", e),
|
|
510
518
|
height: 480,
|
|
@@ -512,7 +520,7 @@ var B = {
|
|
|
512
520
|
})
|
|
513
521
|
}),
|
|
514
522
|
i.prompt && /* @__PURE__ */ L("p", {
|
|
515
|
-
className: r(
|
|
523
|
+
className: r(D, X.instructionsError),
|
|
516
524
|
children: i.prompt
|
|
517
525
|
})
|
|
518
526
|
]
|
|
@@ -527,36 +535,36 @@ var B = {
|
|
|
527
535
|
errorIcon: "_errorIcon_8bk8k_9",
|
|
528
536
|
missedIcon: "_missedIcon_8bk8k_13",
|
|
529
537
|
currentRun: "_currentRun_8bk8k_17"
|
|
530
|
-
},
|
|
538
|
+
}, _e = ({ status: e }) => {
|
|
531
539
|
switch (e) {
|
|
532
|
-
case Z.Success: return /* @__PURE__ */ L(
|
|
540
|
+
case Z.Success: return /* @__PURE__ */ L(A, {
|
|
533
541
|
size: d.SM,
|
|
534
542
|
className: Q.successIcon,
|
|
535
543
|
"aria-hidden": !0
|
|
536
544
|
});
|
|
537
|
-
case Z.Error: return /* @__PURE__ */ L(
|
|
545
|
+
case Z.Error: return /* @__PURE__ */ L(j, {
|
|
538
546
|
size: d.SM,
|
|
539
547
|
className: Q.errorIcon,
|
|
540
548
|
"aria-hidden": !0
|
|
541
549
|
});
|
|
542
550
|
case Z.InProgress: return /* @__PURE__ */ L("span", {
|
|
543
551
|
"aria-hidden": !0,
|
|
544
|
-
children: /* @__PURE__ */ L(
|
|
552
|
+
children: /* @__PURE__ */ L(T, { size: d.SM })
|
|
545
553
|
});
|
|
546
|
-
case Z.Missed: return /* @__PURE__ */ L(
|
|
554
|
+
case Z.Missed: return /* @__PURE__ */ L(D, {
|
|
547
555
|
size: d.SM,
|
|
548
556
|
className: Q.missedIcon,
|
|
549
557
|
"aria-hidden": !0
|
|
550
558
|
});
|
|
551
559
|
default: return null;
|
|
552
560
|
}
|
|
553
|
-
},
|
|
554
|
-
let { colors:
|
|
555
|
-
"--strhl-success-icon":
|
|
556
|
-
"--strhl-error-icon":
|
|
557
|
-
"--strhl-missed-icon":
|
|
558
|
-
"--strhl-subtitle-text":
|
|
559
|
-
"--strhl-current-run-bg":
|
|
561
|
+
}, ve = ({ items: e, isLoading: t = !1, isLoadingMore: i = !1, skeletonCount: a = 6, error: o, onRetry: s, currentRunId: c, onRunClick: l, labels: u, footer: d, styles: f }) => {
|
|
562
|
+
let { colors: m, typography: h } = f ?? {}, g = h?.runTimestampClassName ?? "dial-small-text", _ = h?.subtitleClassName ?? "dial-body-text", v = n({
|
|
563
|
+
"--strhl-success-icon": m?.successIconColor,
|
|
564
|
+
"--strhl-error-icon": m?.errorIconColor,
|
|
565
|
+
"--strhl-missed-icon": m?.missedIconColor,
|
|
566
|
+
"--strhl-subtitle-text": m?.subtitleTextColor,
|
|
567
|
+
"--strhl-current-run-bg": m?.currentRunBackground
|
|
560
568
|
}), y = (e) => {
|
|
561
569
|
let t = u.runStatusLabels[e.status], n = e.id === c, i = n && u.currentRunLabel ? `${t} ${e.timestampLabel} — ${u.currentRunLabel}` : `${t} ${e.timestampLabel}`, a = !!l;
|
|
562
570
|
return /* @__PURE__ */ R("li", {
|
|
@@ -576,18 +584,18 @@ var B = {
|
|
|
576
584
|
children: e.timestampLabel
|
|
577
585
|
}), /* @__PURE__ */ L("span", {
|
|
578
586
|
className: "flex h-8 w-14 shrink-0 items-center justify-end",
|
|
579
|
-
children: /* @__PURE__ */ L(
|
|
587
|
+
children: /* @__PURE__ */ L(_e, { status: e.status })
|
|
580
588
|
})]
|
|
581
589
|
}, e.id);
|
|
582
590
|
}, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ R("li", {
|
|
583
591
|
"aria-hidden": "true",
|
|
584
592
|
className: "flex h-8 items-center justify-between gap-2 pe-2 ps-5",
|
|
585
|
-
children: [/* @__PURE__ */ L(
|
|
586
|
-
variant:
|
|
593
|
+
children: [/* @__PURE__ */ L(C, {
|
|
594
|
+
variant: w.Rectangular,
|
|
587
595
|
width: "160px",
|
|
588
596
|
height: "16px"
|
|
589
|
-
}), /* @__PURE__ */ L(
|
|
590
|
-
variant:
|
|
597
|
+
}), /* @__PURE__ */ L(C, {
|
|
598
|
+
variant: w.Rectangular,
|
|
591
599
|
width: "16px",
|
|
592
600
|
height: "16px",
|
|
593
601
|
className: "shrink-0 rounded-full"
|
|
@@ -604,7 +612,7 @@ var B = {
|
|
|
604
612
|
role: "alert",
|
|
605
613
|
className: r(_, Q.subtitleText),
|
|
606
614
|
children: u.errorLabel
|
|
607
|
-
}), /* @__PURE__ */ L(
|
|
615
|
+
}), /* @__PURE__ */ L(p, {
|
|
608
616
|
label: u.retryLabel,
|
|
609
617
|
onClick: s
|
|
610
618
|
})]
|
|
@@ -625,7 +633,7 @@ var B = {
|
|
|
625
633
|
role: "alert",
|
|
626
634
|
className: r(_, Q.subtitleText),
|
|
627
635
|
children: u.errorLabel
|
|
628
|
-
}), /* @__PURE__ */ L(
|
|
636
|
+
}), /* @__PURE__ */ L(p, {
|
|
629
637
|
label: u.retryLabel,
|
|
630
638
|
onClick: s
|
|
631
639
|
})]
|
|
@@ -641,7 +649,7 @@ var B = {
|
|
|
641
649
|
errorIcon: "_errorIcon_1ci42_21",
|
|
642
650
|
missedIcon: "_missedIcon_1ci42_25",
|
|
643
651
|
historyCard: "_historyCard_1ci42_29"
|
|
644
|
-
},
|
|
652
|
+
}, ye = ({ labels: t, onBack: i, onEdit: a, isActive: o, isActiveUpdating: s = !1, isActiveDisabled: c = !1, onActiveChange: l, displayName: u, isLoading: f = !1, error: h, onRetry: g, description: _, modelLabel: v, repeatsLabel: b, activeWindowLabel: x, nextRunLabel: S, instructionsMarkdown: C, renderInstructions: w, runs: E, runsIsLoading: D = !1, runsIsLoadingMore: k = !1, runsSkeletonCount: A = 6, runsError: j, onRunsRetry: M, runsHasMore: ne = !1, onRunsLoadMore: N, onRunClick: P, styles: re }) => {
|
|
645
653
|
let { colors: F, typography: z } = re ?? {}, B = z?.titleClassName ?? "dial-h1-text", V = z?.sectionTitleClassName ?? "dial-body-semi-text", H = z?.fieldLabelClassName ?? "dial-tiny-text", U = z?.fieldValueClassName ?? "dial-body-text", W = z?.runTimestampClassName ?? "dial-small-text", G = n({
|
|
646
654
|
"--stdv-bg": F?.background,
|
|
647
655
|
"--stdv-header-border": F?.headerBorder,
|
|
@@ -653,10 +661,10 @@ var B = {
|
|
|
653
661
|
"--stdv-history-bg": F?.historyCardBackground
|
|
654
662
|
}), K = N && ne && t.historyShowMoreLabel ? /* @__PURE__ */ L("li", {
|
|
655
663
|
className: r("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", $.historyCard),
|
|
656
|
-
children: /* @__PURE__ */ L(
|
|
664
|
+
children: /* @__PURE__ */ L(p, {
|
|
657
665
|
label: t.historyShowMoreLabel,
|
|
658
666
|
onClick: N,
|
|
659
|
-
disabled:
|
|
667
|
+
disabled: k
|
|
660
668
|
})
|
|
661
669
|
}) : void 0;
|
|
662
670
|
return /* @__PURE__ */ R("div", {
|
|
@@ -667,8 +675,8 @@ var B = {
|
|
|
667
675
|
className: r("flex h-16 shrink-0 items-center justify-between gap-2 border-b px-8", $.header),
|
|
668
676
|
children: [/* @__PURE__ */ R("div", {
|
|
669
677
|
className: "flex min-w-0 items-center gap-2",
|
|
670
|
-
children: [/* @__PURE__ */ L(
|
|
671
|
-
icon: /* @__PURE__ */ L(
|
|
678
|
+
children: [/* @__PURE__ */ L(m, {
|
|
679
|
+
icon: /* @__PURE__ */ L(O, {
|
|
672
680
|
size: d.LG,
|
|
673
681
|
className: "rtl:scale-x-[-1]",
|
|
674
682
|
"aria-hidden": !0
|
|
@@ -684,19 +692,15 @@ var B = {
|
|
|
684
692
|
children: [o !== void 0 && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("span", {
|
|
685
693
|
className: U,
|
|
686
694
|
children: t.activeStatusLabel
|
|
687
|
-
}), /* @__PURE__ */ L(
|
|
688
|
-
|
|
689
|
-
"aria-checked": o,
|
|
695
|
+
}), /* @__PURE__ */ L(ee, {
|
|
696
|
+
id: "scheduled-task-active-switch",
|
|
690
697
|
"aria-label": t.activeStatusLabel,
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
onChange: (e) => l?.(e)
|
|
696
|
-
})
|
|
697
|
-
})] }), a && /* @__PURE__ */ L(b, {
|
|
698
|
+
isOn: o,
|
|
699
|
+
disabled: s || c,
|
|
700
|
+
onChange: (e) => l?.(e)
|
|
701
|
+
})] }), a && /* @__PURE__ */ L(y, {
|
|
698
702
|
label: t.editButtonLabel,
|
|
699
|
-
iconBefore: /* @__PURE__ */ L(
|
|
703
|
+
iconBefore: /* @__PURE__ */ L(te, {
|
|
700
704
|
size: d.SM,
|
|
701
705
|
"aria-hidden": !0
|
|
702
706
|
}),
|
|
@@ -711,21 +715,21 @@ var B = {
|
|
|
711
715
|
className: "sr-only",
|
|
712
716
|
children: t.activeStatusAnnouncement
|
|
713
717
|
}),
|
|
714
|
-
|
|
718
|
+
f && /* @__PURE__ */ L("div", {
|
|
715
719
|
className: "flex flex-1 items-center justify-center",
|
|
716
|
-
children: /* @__PURE__ */ L(
|
|
720
|
+
children: /* @__PURE__ */ L(T, {})
|
|
717
721
|
}),
|
|
718
|
-
!
|
|
722
|
+
!f && h && /* @__PURE__ */ R("div", {
|
|
719
723
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
720
724
|
children: [/* @__PURE__ */ L("p", {
|
|
721
725
|
className: r(U, $.subtitleText),
|
|
722
726
|
children: t.errorLabel
|
|
723
|
-
}), /* @__PURE__ */ L(
|
|
727
|
+
}), /* @__PURE__ */ L(p, {
|
|
724
728
|
label: t.retryLabel,
|
|
725
|
-
onClick:
|
|
729
|
+
onClick: g
|
|
726
730
|
})]
|
|
727
731
|
}),
|
|
728
|
-
!
|
|
732
|
+
!f && !h && /* @__PURE__ */ R("div", {
|
|
729
733
|
className: "flex flex-1 flex-col desktop:flex-row",
|
|
730
734
|
children: [
|
|
731
735
|
/* @__PURE__ */ R("div", {
|
|
@@ -737,44 +741,44 @@ var B = {
|
|
|
737
741
|
className: V,
|
|
738
742
|
children: t.detailsTitle
|
|
739
743
|
}),
|
|
740
|
-
|
|
744
|
+
_ && /* @__PURE__ */ R("div", {
|
|
741
745
|
className: "flex flex-col gap-1",
|
|
742
746
|
children: [/* @__PURE__ */ L("span", {
|
|
743
747
|
className: H,
|
|
744
748
|
children: t.descriptionLabel
|
|
745
749
|
}), /* @__PURE__ */ L("p", {
|
|
746
750
|
className: U,
|
|
747
|
-
children:
|
|
751
|
+
children: _
|
|
748
752
|
})]
|
|
749
753
|
}),
|
|
750
|
-
|
|
754
|
+
v && /* @__PURE__ */ R("div", {
|
|
751
755
|
className: "flex flex-col gap-1",
|
|
752
756
|
children: [/* @__PURE__ */ L("span", {
|
|
753
757
|
className: H,
|
|
754
758
|
children: t.modelLabel
|
|
755
759
|
}), /* @__PURE__ */ L("p", {
|
|
756
760
|
className: U,
|
|
757
|
-
children:
|
|
761
|
+
children: v
|
|
758
762
|
})]
|
|
759
763
|
}),
|
|
760
|
-
|
|
764
|
+
b && /* @__PURE__ */ R("div", {
|
|
761
765
|
className: "flex flex-col gap-1",
|
|
762
766
|
children: [/* @__PURE__ */ L("span", {
|
|
763
767
|
className: H,
|
|
764
768
|
children: t.repeatsLabel
|
|
765
769
|
}), /* @__PURE__ */ L("p", {
|
|
766
770
|
className: U,
|
|
767
|
-
children:
|
|
771
|
+
children: b
|
|
768
772
|
})]
|
|
769
773
|
}),
|
|
770
|
-
|
|
774
|
+
x && /* @__PURE__ */ R("div", {
|
|
771
775
|
className: "flex flex-col gap-1",
|
|
772
776
|
children: [/* @__PURE__ */ L("span", {
|
|
773
777
|
className: H,
|
|
774
778
|
children: t.activeWindowLabel
|
|
775
779
|
}), /* @__PURE__ */ L("p", {
|
|
776
780
|
className: U,
|
|
777
|
-
children:
|
|
781
|
+
children: x
|
|
778
782
|
})]
|
|
779
783
|
})
|
|
780
784
|
]
|
|
@@ -791,7 +795,7 @@ var B = {
|
|
|
791
795
|
children: [/* @__PURE__ */ L("span", {
|
|
792
796
|
className: H,
|
|
793
797
|
children: t.instructionsLabel
|
|
794
|
-
}),
|
|
798
|
+
}), C && ((t) => w ? w(t) : /* @__PURE__ */ L(e, { content: t }))(C)]
|
|
795
799
|
})]
|
|
796
800
|
}),
|
|
797
801
|
/* @__PURE__ */ L("div", {
|
|
@@ -805,26 +809,26 @@ var B = {
|
|
|
805
809
|
className: V,
|
|
806
810
|
children: t.historyTitle
|
|
807
811
|
}),
|
|
808
|
-
|
|
812
|
+
S && /* @__PURE__ */ L("p", {
|
|
809
813
|
className: r(W, $.subtitleText),
|
|
810
|
-
children:
|
|
814
|
+
children: S
|
|
811
815
|
}),
|
|
812
816
|
t.historyLoadingMoreLabel && /* @__PURE__ */ L("span", {
|
|
813
817
|
role: "status",
|
|
814
818
|
"aria-live": "polite",
|
|
815
819
|
className: "sr-only",
|
|
816
|
-
children:
|
|
820
|
+
children: k ? t.historyLoadingMoreLabel : ""
|
|
817
821
|
})
|
|
818
822
|
]
|
|
819
823
|
}), /* @__PURE__ */ L("div", {
|
|
820
824
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
821
|
-
children: /* @__PURE__ */ L(
|
|
822
|
-
items:
|
|
823
|
-
isLoading:
|
|
824
|
-
isLoadingMore:
|
|
825
|
-
skeletonCount:
|
|
826
|
-
error:
|
|
827
|
-
onRetry:
|
|
825
|
+
children: /* @__PURE__ */ L(ve, {
|
|
826
|
+
items: E,
|
|
827
|
+
isLoading: D,
|
|
828
|
+
isLoadingMore: k,
|
|
829
|
+
skeletonCount: A,
|
|
830
|
+
error: j,
|
|
831
|
+
onRetry: M,
|
|
828
832
|
onRunClick: P,
|
|
829
833
|
labels: {
|
|
830
834
|
historyTitle: t.historyTitle,
|
|
@@ -850,7 +854,7 @@ var B = {
|
|
|
850
854
|
})
|
|
851
855
|
]
|
|
852
856
|
});
|
|
853
|
-
},
|
|
857
|
+
}, be = ({ modelLabel: t, instructionsLabel: n, modelDisplayName: r, instructionsMarkdown: i, renderInstructions: a, styles: o }) => {
|
|
854
858
|
let s = o?.typography?.fieldLabelClassName ?? "dial-tiny-text", c = o?.typography?.fieldValueClassName ?? "dial-body-text";
|
|
855
859
|
return /* @__PURE__ */ R("div", {
|
|
856
860
|
className: "flex flex-col gap-3",
|
|
@@ -873,4 +877,4 @@ var B = {
|
|
|
873
877
|
});
|
|
874
878
|
};
|
|
875
879
|
//#endregion
|
|
876
|
-
export { ce as DESCRIPTION_MAX_LENGTH, V as ScheduledTaskCard, K as ScheduledTaskCardGrid, G as ScheduledTaskCardSkeleton,
|
|
880
|
+
export { ce as DESCRIPTION_MAX_LENGTH, V as ScheduledTaskCard, K as ScheduledTaskCardGrid, G as ScheduledTaskCardSkeleton, ge as ScheduledTaskCreateForm, ye as ScheduledTaskDetailView, be as ScheduledTaskDetailsSummary, J as ScheduledTaskRepeat, ve as ScheduledTaskRunHistoryList, Z as ScheduledTaskRunStatus, oe as ScheduledTasks, se as ScheduledTasksSortKey };
|
|
@@ -44,6 +44,8 @@ export interface ScheduledTaskCardTypography {
|
|
|
44
44
|
titleClassName?: string;
|
|
45
45
|
/** CSS class applied to the description/prompt-preview line. Defaults to `'dial-small-text'`. */
|
|
46
46
|
descriptionClassName?: string;
|
|
47
|
+
/** CSS class applied to the description's size. Defaults to `'dial-tiny-text'`. */
|
|
48
|
+
descriptionSizeClassName?: string;
|
|
47
49
|
/** CSS class applied to the schedule pill's label text. Defaults to `'dial-tiny-text'`. */
|
|
48
50
|
scheduleLabelClassName?: string;
|
|
49
51
|
/** CSS class applied to non-leaf location breadcrumb segments. Defaults to `'dial-tiny-text'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-card-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gEAAgE;IAChE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6GAA6G;IAC7G,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qKAAqK;IACrK,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wBAAwB;IACxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
1
|
+
{"version":3,"file":"scheduled-task-card-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gEAAgE;IAChE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mFAAmF;IACnF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6GAA6G;IAC7G,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qKAAqK;IACrK,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wBAAwB;IACxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-scheduled-tasks",
|
|
3
3
|
"description": "Presentational Scheduled Tasks page shell — header, toolbar, and empty state",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.176",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@epam/ai-dial-builder-form": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
22
|
-
"@epam/ai-dial-kit": "1.1.0-dev.
|
|
20
|
+
"@epam/ai-dial-builder-form": "1.1.0-dev.176",
|
|
21
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.176",
|
|
22
|
+
"@epam/ai-dial-kit": "1.1.0-dev.176",
|
|
23
23
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
|
|
24
24
|
"@tabler/icons-react": "^3.44.0",
|
|
25
25
|
"react": "^19.0.0"
|