@epam/ai-dial-scheduled-tasks 1.2.0-dev.303 → 1.2.0-dev.306
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/index.js +235 -238
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./calendar-value-B41Uk26Z.js";
|
|
2
|
-
import { ConfirmationDialog as l,
|
|
3
|
-
import { ButtonAppearance as
|
|
2
|
+
import { ConfirmationDialog as l, ConfirmationIdentityRow as u, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as d, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as f, MDMessageViewer as p, PanelEmptyState as m, ResourceSummary as h, TextRefinementField as g, buildCssVars as _, mergeClasses as v, useAvailableHeightCap as y, useIsMobile as b, useTextRefinement as x, useUnsavedChangesGuard as S } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { ButtonAppearance as ee, ButtonDropdown as te, ButtonVariant as ne, Calendar as C, CalendarMode as w, CardShell as T, ConfirmationPopupVariant as E, DIAL_ICON_SIZE as D, DIAL_KIT_ICON_STROKE as O, ElementSize as re, FolderPath as ie, GhostButton as k, GhostIconButton as ae, Highlight as oe, Input as se, Label as ce, MenuItemMark as le, NeutralButton as ue, NumberInput as de, PrimaryButton as fe, Search as A, Select as pe, Skeleton as j, SkeletonVariant as M, Spinner as me, Switch as he, Tabs as ge, Textarea as _e } from "@epam/ai-dial-ui-kit";
|
|
4
4
|
import { IconAlertTriangle as ve, IconArrowNarrowLeft as ye, IconArrowsSort as N, IconCheck as be, IconCircleCheck as xe, IconCircleX as P, IconClipboardX as Se, IconClockHour3 as F, IconPencilMinus as Ce, IconPlayerPause as I, IconPlayerPlay as L, IconPlus as R, IconTrashX as we } from "@tabler/icons-react";
|
|
5
5
|
import { Suspense as Te, lazy as Ee, useCallback as z, useEffect as De, useId as Oe, useLayoutEffect as ke, useMemo as Ae, useRef as B, useState as je } from "react";
|
|
6
6
|
import { Fragment as Me, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
@@ -40,9 +40,9 @@ var W = {
|
|
|
40
40
|
wrapperClassName: q.pausedPill,
|
|
41
41
|
labelClassName: q.pausedLabel,
|
|
42
42
|
renderIcon: () => /* @__PURE__ */ V(I, {
|
|
43
|
-
size:
|
|
43
|
+
size: D.SM,
|
|
44
44
|
"aria-hidden": !0,
|
|
45
|
-
stroke:
|
|
45
|
+
stroke: O
|
|
46
46
|
})
|
|
47
47
|
},
|
|
48
48
|
[G.Completed]: {
|
|
@@ -50,15 +50,15 @@ var W = {
|
|
|
50
50
|
wrapperClassName: q.completedPill,
|
|
51
51
|
labelClassName: q.completedLabel,
|
|
52
52
|
renderIcon: () => /* @__PURE__ */ V(be, {
|
|
53
|
-
size:
|
|
53
|
+
size: D.SM,
|
|
54
54
|
"aria-hidden": !0,
|
|
55
|
-
stroke:
|
|
55
|
+
stroke: O
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
58
|
}, Fe = ({ status: e, text: t, textClassName: n = "dial-tiny-text", className: r }) => {
|
|
59
59
|
let { pillClassName: i, wrapperClassName: a, labelClassName: o, renderIcon: s } = J[e];
|
|
60
60
|
return /* @__PURE__ */ H("span", {
|
|
61
|
-
className:
|
|
61
|
+
className: v(i, n, a, o, r),
|
|
62
62
|
children: [s && s(), t]
|
|
63
63
|
});
|
|
64
64
|
}, Y = {
|
|
@@ -69,20 +69,20 @@ var W = {
|
|
|
69
69
|
newBadge: "_newBadge_ogabr_17",
|
|
70
70
|
locationDivider: "_locationDivider_ogabr_22"
|
|
71
71
|
}, Ie = ({ item: e, searchQuery: t = "", onCardClick: n, labels: r, styles: i, className: a }) => {
|
|
72
|
-
let o = r?.newBadgeLabel ?? "NEW", s = r?.pausedBadgeLabel ?? "Paused", c = r?.completedBadgeLabel ?? "Completed", { colors: l, typography: u } = i ?? {}, d = u?.titleClassName ?? "dial-body-semi-text", f = u?.descriptionClassName ?? "dial-small-text", p = u?.descriptionSizeClassName ?? "dial-tiny-text", m = u?.scheduleLabelClassName ?? "dial-tiny-text",
|
|
72
|
+
let o = r?.newBadgeLabel ?? "NEW", s = r?.pausedBadgeLabel ?? "Paused", c = r?.completedBadgeLabel ?? "Completed", { colors: l, typography: u } = i ?? {}, d = u?.titleClassName ?? "dial-body-semi-text", f = u?.descriptionClassName ?? "dial-small-text", p = u?.descriptionSizeClassName ?? "dial-tiny-text", m = u?.scheduleLabelClassName ?? "dial-tiny-text", h = u?.pausedBadgeClassName ?? "dial-tiny-text", g = u?.completedBadgeClassName ?? "dial-tiny-text", y = u?.locationLabelClassName ?? "dial-tiny-text", b = u?.locationLeafClassName ?? "dial-tiny-semi-text", x = u?.newBadgeClassName ?? "dial-tiny-semi-text", S = Pe(e), { text: ee, textClassName: te } = {
|
|
73
73
|
[G.Scheduled]: {
|
|
74
74
|
text: e.scheduleLabel,
|
|
75
75
|
textClassName: m
|
|
76
76
|
},
|
|
77
77
|
[G.Paused]: {
|
|
78
78
|
text: s,
|
|
79
|
-
textClassName:
|
|
79
|
+
textClassName: h
|
|
80
80
|
},
|
|
81
81
|
[G.Completed]: {
|
|
82
82
|
text: c,
|
|
83
|
-
textClassName:
|
|
83
|
+
textClassName: g
|
|
84
84
|
}
|
|
85
|
-
}[
|
|
85
|
+
}[S], ne = _({
|
|
86
86
|
"--stc-title-text": l?.titleText,
|
|
87
87
|
"--stc-desc-text": l?.descriptionText,
|
|
88
88
|
"--stc-pill-bg": l?.schedulePillBackground,
|
|
@@ -99,19 +99,19 @@ var W = {
|
|
|
99
99
|
"--stc-completed-bg": l?.completedBadgeBackground,
|
|
100
100
|
"--stc-completed-border": l?.completedBadgeBorder,
|
|
101
101
|
"--stc-completed-text": l?.completedBadgeText
|
|
102
|
-
}),
|
|
102
|
+
}), C = n ? {
|
|
103
103
|
tabIndex: 0,
|
|
104
104
|
onClick: () => n(e.id),
|
|
105
105
|
onKeyDown: (t) => {
|
|
106
106
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e.id));
|
|
107
107
|
}
|
|
108
108
|
} : {};
|
|
109
|
-
return /* @__PURE__ */ H(
|
|
109
|
+
return /* @__PURE__ */ H(T, {
|
|
110
110
|
role: n ? "button" : "group",
|
|
111
111
|
"aria-label": e.displayName,
|
|
112
|
-
style:
|
|
113
|
-
className:
|
|
114
|
-
...
|
|
112
|
+
style: ne,
|
|
113
|
+
className: v("h-[var(--st-card-height,232px)]", n && "cursor-pointer", a, W.card),
|
|
114
|
+
...C,
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ H("div", {
|
|
117
117
|
className: "flex min-w-0 shrink-0 items-center gap-2",
|
|
@@ -119,14 +119,14 @@ var W = {
|
|
|
119
119
|
text: e.displayName,
|
|
120
120
|
query: t,
|
|
121
121
|
maxLines: 1,
|
|
122
|
-
className:
|
|
122
|
+
className: v(d, Y.title)
|
|
123
123
|
}), e.isNew && /* @__PURE__ */ V("span", {
|
|
124
|
-
className:
|
|
124
|
+
className: v("shrink-0 rounded-full px-2 py-0.5", x, Y.newBadge),
|
|
125
125
|
children: o
|
|
126
126
|
})]
|
|
127
127
|
}),
|
|
128
128
|
e.descriptionPreview && /* @__PURE__ */ V("p", {
|
|
129
|
-
className:
|
|
129
|
+
className: v("line-clamp-4 min-h-0 flex-1 overflow-hidden", p, f, Y.description),
|
|
130
130
|
children: e.descriptionPreview
|
|
131
131
|
}),
|
|
132
132
|
/* @__PURE__ */ H("div", {
|
|
@@ -134,15 +134,15 @@ var W = {
|
|
|
134
134
|
children: [/* @__PURE__ */ V("div", {
|
|
135
135
|
className: "flex min-h-[28px] items-center",
|
|
136
136
|
children: /* @__PURE__ */ V(Fe, {
|
|
137
|
-
status:
|
|
138
|
-
text:
|
|
139
|
-
textClassName:
|
|
137
|
+
status: S,
|
|
138
|
+
text: ee,
|
|
139
|
+
textClassName: te
|
|
140
140
|
})
|
|
141
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ V(
|
|
141
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ V(ie, {
|
|
142
142
|
segments: e.locationSegments,
|
|
143
|
-
labelClassName:
|
|
144
|
-
leafClassName:
|
|
145
|
-
className:
|
|
143
|
+
labelClassName: v(y, Y.locationLabel),
|
|
144
|
+
leafClassName: v(b, Y.locationLeaf),
|
|
145
|
+
className: v("pt-3", Y.locationDivider)
|
|
146
146
|
})]
|
|
147
147
|
})
|
|
148
148
|
]
|
|
@@ -151,10 +151,10 @@ var W = {
|
|
|
151
151
|
"100%",
|
|
152
152
|
"100%",
|
|
153
153
|
"61%"
|
|
154
|
-
], ze = "var(--stcs-skeleton-bg)", Be = ({ styles: e }) => /* @__PURE__ */ H(
|
|
154
|
+
], ze = "var(--stcs-skeleton-bg)", Be = ({ styles: e }) => /* @__PURE__ */ H(T, {
|
|
155
155
|
"aria-hidden": !0,
|
|
156
|
-
style:
|
|
157
|
-
className:
|
|
156
|
+
style: _({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
|
|
157
|
+
className: v("h-[var(--st-card-height,232px)]", Le.card),
|
|
158
158
|
children: [
|
|
159
159
|
/* @__PURE__ */ V(j, {
|
|
160
160
|
variant: M.Rectangular,
|
|
@@ -190,7 +190,7 @@ var W = {
|
|
|
190
190
|
gap: "var(--st-grid-gap, 20px)",
|
|
191
191
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, max(var(--st-grid-min-card-width, 320px), calc((100% - (var(--st-grid-columns) - 1) * var(--st-grid-gap, 20px)) / var(--st-grid-columns)))), 1fr))"
|
|
192
192
|
},
|
|
193
|
-
className:
|
|
193
|
+
className: v("mx-auto grid w-full min-w-0", W.cardGrid),
|
|
194
194
|
children: [e.map((e) => /* @__PURE__ */ V(Ie, {
|
|
195
195
|
item: e,
|
|
196
196
|
searchQuery: t,
|
|
@@ -215,11 +215,11 @@ var W = {
|
|
|
215
215
|
if (!e || e === document.body) return null;
|
|
216
216
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
217
217
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : We(e.parentElement);
|
|
218
|
-
}, Ge = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick:
|
|
219
|
-
let { colors:
|
|
220
|
-
"--st-bg":
|
|
221
|
-
"--st-subtitle-text":
|
|
222
|
-
"--st-sort-text":
|
|
218
|
+
}, Ge = ({ labels: e, onCreateClick: t, searchQuery: n, onSearchQueryChange: r, sortKey: i, onSortChange: a, items: o, isLoading: s = !1, error: c, onRetry: l, hasMore: u = !1, isLoadingMore: d = !1, skeletonCount: f = 6, onLoadMore: p, onCardClick: h, banner: g, styles: y, sortIcon: b, className: x, gridLayout: S, cardStyles: C, loadMoreError: w, onRetryLoadMore: T }) => {
|
|
219
|
+
let { colors: E, typography: ie } = y ?? {}, ae = ie?.titleClassName ?? "dial-h1-text", oe = ie?.subtitleClassName ?? "dial-body-text", se = _({
|
|
220
|
+
"--st-bg": E?.background,
|
|
221
|
+
"--st-subtitle-text": E?.subtitleText,
|
|
222
|
+
"--st-sort-text": E?.sortButtonText
|
|
223
223
|
}), ce = (e) => {
|
|
224
224
|
r(e ?? "");
|
|
225
225
|
}, [ue, de] = je(!1), [pe, j] = je(!1), M = B(null), he = z(() => {
|
|
@@ -248,7 +248,7 @@ var W = {
|
|
|
248
248
|
let t = We(e.parentElement);
|
|
249
249
|
if (!t) return;
|
|
250
250
|
let n = () => {
|
|
251
|
-
if (d || s ||
|
|
251
|
+
if (d || s || w || !u) return;
|
|
252
252
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
253
253
|
r.top < n.bottom && r.bottom > n.top && p();
|
|
254
254
|
};
|
|
@@ -257,22 +257,22 @@ var W = {
|
|
|
257
257
|
u,
|
|
258
258
|
d,
|
|
259
259
|
s,
|
|
260
|
-
|
|
260
|
+
w,
|
|
261
261
|
p
|
|
262
262
|
]);
|
|
263
263
|
let xe = () => s ? /* @__PURE__ */ V(me, {}) : c ? /* @__PURE__ */ H("div", {
|
|
264
264
|
className: "flex flex-col items-center gap-3",
|
|
265
265
|
children: [/* @__PURE__ */ V("p", {
|
|
266
|
-
className:
|
|
266
|
+
className: v(oe, X.subtitle),
|
|
267
267
|
children: e.errorLabel
|
|
268
268
|
}), /* @__PURE__ */ V(k, {
|
|
269
269
|
label: e.retryLabel,
|
|
270
270
|
onClick: l
|
|
271
271
|
})]
|
|
272
272
|
}) : o.length === 0 ? n.trim() ? /* @__PURE__ */ V("p", {
|
|
273
|
-
className:
|
|
273
|
+
className: v(oe, X.subtitle),
|
|
274
274
|
children: e.noResultsLabel
|
|
275
|
-
}) : /* @__PURE__ */ V(
|
|
275
|
+
}) : /* @__PURE__ */ V(m, {
|
|
276
276
|
label: e.emptyStateLabel,
|
|
277
277
|
icon: He
|
|
278
278
|
}) : /* @__PURE__ */ H("div", {
|
|
@@ -281,22 +281,22 @@ var W = {
|
|
|
281
281
|
/* @__PURE__ */ V(Ve, {
|
|
282
282
|
items: o,
|
|
283
283
|
searchQuery: n,
|
|
284
|
-
onCardClick:
|
|
284
|
+
onCardClick: h,
|
|
285
285
|
labels: e.cardLabels,
|
|
286
286
|
trailingSkeletonCount: d ? f : 0,
|
|
287
|
-
skeletonStyles: { colors: { skeletonColor:
|
|
288
|
-
cardStyles:
|
|
289
|
-
layout:
|
|
287
|
+
skeletonStyles: { colors: { skeletonColor: E?.skeletonColor } },
|
|
288
|
+
cardStyles: C,
|
|
289
|
+
layout: S
|
|
290
290
|
}),
|
|
291
|
-
|
|
291
|
+
w && /* @__PURE__ */ H("div", {
|
|
292
292
|
role: "alert",
|
|
293
293
|
className: "flex items-center gap-3",
|
|
294
294
|
children: [/* @__PURE__ */ V("span", {
|
|
295
|
-
className:
|
|
295
|
+
className: v(oe, X.subtitle),
|
|
296
296
|
children: e.loadMoreErrorLabel ?? e.errorLabel
|
|
297
297
|
}), /* @__PURE__ */ V(k, {
|
|
298
298
|
label: e.retryLabel,
|
|
299
|
-
onClick:
|
|
299
|
+
onClick: T
|
|
300
300
|
})]
|
|
301
301
|
}),
|
|
302
302
|
/* @__PURE__ */ V("div", {
|
|
@@ -308,17 +308,17 @@ var W = {
|
|
|
308
308
|
}), P = s || !!c || o.length === 0;
|
|
309
309
|
return /* @__PURE__ */ H("div", {
|
|
310
310
|
style: se,
|
|
311
|
-
className:
|
|
311
|
+
className: v("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", X.container, x),
|
|
312
312
|
children: [
|
|
313
313
|
/* @__PURE__ */ H("div", {
|
|
314
314
|
className: "flex items-start justify-between gap-4",
|
|
315
315
|
children: [/* @__PURE__ */ H("div", {
|
|
316
316
|
className: "min-w-0 gap-2",
|
|
317
317
|
children: [/* @__PURE__ */ V("h1", {
|
|
318
|
-
className:
|
|
318
|
+
className: v("truncate", ae),
|
|
319
319
|
children: e.title
|
|
320
320
|
}), /* @__PURE__ */ V("p", {
|
|
321
|
-
className:
|
|
321
|
+
className: v("mt-1", oe, X.subtitle),
|
|
322
322
|
children: e.subtitle
|
|
323
323
|
})]
|
|
324
324
|
}), /* @__PURE__ */ V(fe, {
|
|
@@ -326,12 +326,12 @@ var W = {
|
|
|
326
326
|
textClassName: X.createButtonLabel,
|
|
327
327
|
"aria-label": e.createButtonLabel,
|
|
328
328
|
iconBefore: /* @__PURE__ */ V(R, {
|
|
329
|
-
size:
|
|
329
|
+
size: D.SM,
|
|
330
330
|
"aria-hidden": !0,
|
|
331
|
-
stroke:
|
|
331
|
+
stroke: O
|
|
332
332
|
}),
|
|
333
333
|
onClick: t,
|
|
334
|
-
className:
|
|
334
|
+
className: v("shrink-0", X.createButton)
|
|
335
335
|
})]
|
|
336
336
|
}),
|
|
337
337
|
/* @__PURE__ */ H("div", {
|
|
@@ -345,28 +345,28 @@ var W = {
|
|
|
345
345
|
placeholder: e.searchPlaceholder,
|
|
346
346
|
clearLabel: e.clearSearchLabel,
|
|
347
347
|
"aria-label": e.searchAriaLabel,
|
|
348
|
-
size:
|
|
348
|
+
size: re.Large,
|
|
349
349
|
onFocus: he,
|
|
350
350
|
onBlur: ge
|
|
351
351
|
})
|
|
352
352
|
}), e.sortOptions.length > 0 && /* @__PURE__ */ V("div", {
|
|
353
353
|
ref: M,
|
|
354
|
-
className:
|
|
355
|
-
children: /* @__PURE__ */ V(
|
|
354
|
+
className: v(pe && X.sortControlHidden),
|
|
355
|
+
children: /* @__PURE__ */ V(te, {
|
|
356
356
|
items: ve,
|
|
357
357
|
label: _e,
|
|
358
|
-
variant:
|
|
359
|
-
appearance:
|
|
360
|
-
iconBefore:
|
|
361
|
-
size:
|
|
358
|
+
variant: ne.Primary,
|
|
359
|
+
appearance: ee.Ghost,
|
|
360
|
+
iconBefore: b === void 0 ? /* @__PURE__ */ V(N, {
|
|
361
|
+
size: D.SM,
|
|
362
362
|
"aria-hidden": !0,
|
|
363
|
-
stroke:
|
|
364
|
-
}) :
|
|
363
|
+
stroke: O
|
|
364
|
+
}) : b,
|
|
365
365
|
className: X.sortButton
|
|
366
366
|
})
|
|
367
367
|
})]
|
|
368
368
|
}),
|
|
369
|
-
|
|
369
|
+
g,
|
|
370
370
|
/* @__PURE__ */ V("span", {
|
|
371
371
|
role: "status",
|
|
372
372
|
"aria-live": "polite",
|
|
@@ -374,7 +374,7 @@ var W = {
|
|
|
374
374
|
children: ye
|
|
375
375
|
}),
|
|
376
376
|
/* @__PURE__ */ V("div", {
|
|
377
|
-
className:
|
|
377
|
+
className: v("mx-auto flex size-full w-full min-w-0 flex-col", P && "items-center justify-center"),
|
|
378
378
|
children: xe()
|
|
379
379
|
})
|
|
380
380
|
]
|
|
@@ -389,9 +389,9 @@ var W = {
|
|
|
389
389
|
let o = B(/* @__PURE__ */ new Date()).current;
|
|
390
390
|
return /* @__PURE__ */ H("div", {
|
|
391
391
|
className: "flex flex-col gap-1",
|
|
392
|
-
children: [/* @__PURE__ */ V(
|
|
392
|
+
children: [/* @__PURE__ */ V(C, {
|
|
393
393
|
id: "scheduled-task-run-at",
|
|
394
|
-
mode:
|
|
394
|
+
mode: w.DateTime,
|
|
395
395
|
value: s(t),
|
|
396
396
|
onChange: (e) => r(n(e)),
|
|
397
397
|
minDate: o,
|
|
@@ -401,7 +401,7 @@ var W = {
|
|
|
401
401
|
},
|
|
402
402
|
invalid: !!i
|
|
403
403
|
}), i && /* @__PURE__ */ V("p", {
|
|
404
|
-
className:
|
|
404
|
+
className: v(a, Ye.error),
|
|
405
405
|
children: i
|
|
406
406
|
})]
|
|
407
407
|
});
|
|
@@ -412,7 +412,7 @@ var W = {
|
|
|
412
412
|
instructionsError: "_instructionsError_1253x_18",
|
|
413
413
|
refineFeedback: "_refineFeedback_1253x_22",
|
|
414
414
|
refineError: "_refineError_1253x_26"
|
|
415
|
-
}, Ze = Ee(async () => ({ default: (await U()).MarkdownEditor })), Qe = ({ labels: n, values: r, initialValues: s, errors: u, modelSelector:
|
|
415
|
+
}, Ze = Ee(async () => ({ default: (await U()).MarkdownEditor })), Qe = ({ labels: n, values: r, initialValues: s, errors: u, modelSelector: p, modelLabelId: m, skillSelector: h, onFieldChange: b, onBack: ee, onCancel: te, onSubmit: ne, isSubmitting: T = !1, onRefineDescription: re, onRefineInstructions: ie, markdownEditorTheme: k, backIcon: ae, className: oe, styles: le }) => {
|
|
416
416
|
let ue = Oe(), fe = Oe(), A = B(void 0), j = (e) => e ? async (t, n) => {
|
|
417
417
|
if (A.current && !A.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
418
418
|
A.current = n;
|
|
@@ -421,40 +421,40 @@ var W = {
|
|
|
421
421
|
} finally {
|
|
422
422
|
A.current === n && (A.current = void 0);
|
|
423
423
|
}
|
|
424
|
-
} : void 0, M =
|
|
424
|
+
} : void 0, M = x({
|
|
425
425
|
value: r.description ?? "",
|
|
426
|
-
onChange: (e) =>
|
|
427
|
-
onRefine: j(
|
|
428
|
-
disabled:
|
|
429
|
-
}), he =
|
|
426
|
+
onChange: (e) => b("description", e),
|
|
427
|
+
onRefine: j(re),
|
|
428
|
+
disabled: T
|
|
429
|
+
}), he = x({
|
|
430
430
|
value: r.prompt,
|
|
431
|
-
onChange: (e) =>
|
|
432
|
-
onRefine: j(
|
|
433
|
-
disabled:
|
|
431
|
+
onChange: (e) => b("prompt", e),
|
|
432
|
+
onRefine: j(ie),
|
|
433
|
+
disabled: T
|
|
434
434
|
}), ge = M.isPending || he.isPending, ve = () => {
|
|
435
435
|
M.reset(), he.reset();
|
|
436
|
-
}, N =
|
|
437
|
-
ve(),
|
|
436
|
+
}, N = S(!!(s && Je(r, s))), be = () => N.guard(() => {
|
|
437
|
+
ve(), ee();
|
|
438
438
|
}), xe = () => N.guard(() => {
|
|
439
|
-
ve(),
|
|
440
|
-
}), P =
|
|
439
|
+
ve(), te();
|
|
440
|
+
}), P = y(), Se = !r.skillUrls?.length, [F, Ce] = je(), I = B(/* @__PURE__ */ new Date()).current, { colors: L, typography: R, layout: we } = le ?? {}, Ee = R?.titleClassName ?? "dial-h1-text", z = R?.sectionTitleClassName ?? "dial-body-semi-text", ke = R?.sectionSubtitleClassName ?? "dial-tiny-text", Ae = R?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", U = R?.instructionsErrorClassName ?? "dial-small-text", G = _({
|
|
441
441
|
"--stcf-details-border": L?.detailsColumnBorder,
|
|
442
442
|
"--stcf-subtitle-text": L?.sectionSubtitleText,
|
|
443
443
|
"--stcf-error-text": L?.instructionsErrorText,
|
|
444
444
|
"--stcf-refine-action-text": L?.refineActionText,
|
|
445
445
|
"--stcf-refine-error-text": L?.refineErrorText
|
|
446
446
|
}), K = {
|
|
447
|
-
feedbackClassName:
|
|
447
|
+
feedbackClassName: v(L?.refineActionText && Z.refineFeedback, R?.refineFeedbackClassName, W.refineFeedback),
|
|
448
448
|
errorClassName: Z.refineError
|
|
449
449
|
}, Pe = (e) => {
|
|
450
|
-
Ce(c.test(e.target.value) ? void 0 : n.timeInvalidLabel),
|
|
450
|
+
Ce(c.test(e.target.value) ? void 0 : n.timeInvalidLabel), b("time", e.target.value);
|
|
451
451
|
}, q = (e) => {
|
|
452
|
-
Ce(void 0),
|
|
452
|
+
Ce(void 0), b("time", typeof e == "string" ? e : "");
|
|
453
453
|
}, J = r.repeat !== t.OneTime && r.repeat !== t.Hourly;
|
|
454
454
|
De(() => {
|
|
455
455
|
J || Ce(void 0);
|
|
456
456
|
}, [J]);
|
|
457
|
-
let Fe = J ? F ?? u.time : void 0, Y = (e) =>
|
|
457
|
+
let Fe = J ? F ?? u.time : void 0, Y = (e) => b("runAt", e), Ie = T || ge || !r.displayName.trim() || !r.modelId || !r.prompt.trim() && !r.skillUrls?.length || !!u.skillUrls || J && !r.time || !!Fe;
|
|
458
458
|
return /* @__PURE__ */ H(Me, { children: [/* @__PURE__ */ V(Ne, {
|
|
459
459
|
labels: {
|
|
460
460
|
title: n.pageTitle,
|
|
@@ -466,14 +466,14 @@ var W = {
|
|
|
466
466
|
onBack: be,
|
|
467
467
|
onCancel: xe,
|
|
468
468
|
onSubmit: () => {
|
|
469
|
-
!Ie && (!A.current || A.current.aborted) &&
|
|
469
|
+
!Ie && (!A.current || A.current.aborted) && ne();
|
|
470
470
|
},
|
|
471
|
-
isCancelDisabled:
|
|
471
|
+
isCancelDisabled: T,
|
|
472
472
|
isSubmitDisabled: Ie,
|
|
473
|
-
isSubmitting:
|
|
473
|
+
isSubmitting: T,
|
|
474
474
|
backIcon: ae === void 0 ? /* @__PURE__ */ V(ye, {
|
|
475
|
-
size:
|
|
476
|
-
stroke:
|
|
475
|
+
size: D.LG,
|
|
476
|
+
stroke: O,
|
|
477
477
|
"aria-hidden": !0,
|
|
478
478
|
className: "rtl:scale-x-[-1]"
|
|
479
479
|
}) : ae,
|
|
@@ -494,7 +494,7 @@ var W = {
|
|
|
494
494
|
left: /* @__PURE__ */ H("div", {
|
|
495
495
|
role: "group",
|
|
496
496
|
"aria-label": n.detailsSectionTitle,
|
|
497
|
-
className:
|
|
497
|
+
className: v("flex flex-1 flex-col gap-5 border-e py-6", Z.detailsColumn, Z.formColumn),
|
|
498
498
|
children: [
|
|
499
499
|
/* @__PURE__ */ H("div", {
|
|
500
500
|
className: "flex flex-col gap-1",
|
|
@@ -502,14 +502,14 @@ var W = {
|
|
|
502
502
|
className: z,
|
|
503
503
|
children: n.detailsSectionTitle
|
|
504
504
|
}), /* @__PURE__ */ V("p", {
|
|
505
|
-
className:
|
|
505
|
+
className: v(ke, Z.sectionSubtitle),
|
|
506
506
|
children: n.detailsSectionSubtitle
|
|
507
507
|
})]
|
|
508
508
|
}),
|
|
509
509
|
/* @__PURE__ */ V(se, {
|
|
510
510
|
id: "scheduled-task-display-name",
|
|
511
511
|
value: r.displayName,
|
|
512
|
-
onChange: (e) =>
|
|
512
|
+
onChange: (e) => b("displayName", e ?? ""),
|
|
513
513
|
labelProps: {
|
|
514
514
|
label: n.displayNameLabel,
|
|
515
515
|
required: !0
|
|
@@ -517,21 +517,21 @@ var W = {
|
|
|
517
517
|
invalid: !!u.displayName,
|
|
518
518
|
error: u.displayName
|
|
519
519
|
}),
|
|
520
|
-
/* @__PURE__ */ V(
|
|
521
|
-
isEnabled: !!
|
|
520
|
+
/* @__PURE__ */ V(g, {
|
|
521
|
+
isEnabled: !!re,
|
|
522
522
|
fieldId: ue,
|
|
523
523
|
label: n.descriptionLabel,
|
|
524
524
|
labels: n,
|
|
525
525
|
refinement: M,
|
|
526
|
-
disabled:
|
|
526
|
+
disabled: T || ge,
|
|
527
527
|
...K,
|
|
528
528
|
children: /* @__PURE__ */ V(_e, {
|
|
529
529
|
id: ue,
|
|
530
530
|
value: r.description ?? "",
|
|
531
531
|
onChange: (e) => {
|
|
532
|
-
M.reset(),
|
|
532
|
+
M.reset(), b("description", e);
|
|
533
533
|
},
|
|
534
|
-
labelProps:
|
|
534
|
+
labelProps: re ? void 0 : { label: n.descriptionLabel },
|
|
535
535
|
maxLength: 500,
|
|
536
536
|
invalid: !!u.description,
|
|
537
537
|
error: u.description,
|
|
@@ -546,9 +546,9 @@ var W = {
|
|
|
546
546
|
label: n.modelOrAgentLabel,
|
|
547
547
|
required: !0
|
|
548
548
|
}),
|
|
549
|
-
|
|
549
|
+
p,
|
|
550
550
|
u.modelId && /* @__PURE__ */ V("p", {
|
|
551
|
-
className:
|
|
551
|
+
className: v(U, Z.instructionsError),
|
|
552
552
|
children: u.modelId
|
|
553
553
|
})
|
|
554
554
|
]
|
|
@@ -559,7 +559,7 @@ var W = {
|
|
|
559
559
|
/* @__PURE__ */ V(pe, {
|
|
560
560
|
labelProps: { label: n.repeatLabel },
|
|
561
561
|
value: r.repeat,
|
|
562
|
-
onChange: (e) =>
|
|
562
|
+
onChange: (e) => b("repeat", e),
|
|
563
563
|
options: n.repeatOptions.map((e) => ({
|
|
564
564
|
value: e.key,
|
|
565
565
|
label: e.label
|
|
@@ -575,9 +575,9 @@ var W = {
|
|
|
575
575
|
r.repeat !== t.OneTime && /* @__PURE__ */ H(Me, { children: [
|
|
576
576
|
J && /* @__PURE__ */ H("div", {
|
|
577
577
|
className: "flex flex-col gap-1",
|
|
578
|
-
children: [/* @__PURE__ */ V(
|
|
578
|
+
children: [/* @__PURE__ */ V(C, {
|
|
579
579
|
id: "scheduled-task-time",
|
|
580
|
-
mode:
|
|
580
|
+
mode: w.Time,
|
|
581
581
|
value: r.time,
|
|
582
582
|
onChange: q,
|
|
583
583
|
onBlur: Pe,
|
|
@@ -586,27 +586,27 @@ var W = {
|
|
|
586
586
|
required: !0
|
|
587
587
|
},
|
|
588
588
|
invalid: !!Fe,
|
|
589
|
-
disabled:
|
|
589
|
+
disabled: T,
|
|
590
590
|
showTimezone: !0
|
|
591
591
|
}), Fe && /* @__PURE__ */ V("p", {
|
|
592
|
-
className:
|
|
592
|
+
className: v(U, Z.instructionsError),
|
|
593
593
|
children: Fe
|
|
594
594
|
})]
|
|
595
595
|
}),
|
|
596
596
|
r.repeat === t.Weekly && /* @__PURE__ */ H("div", {
|
|
597
597
|
className: "flex flex-col gap-1",
|
|
598
|
-
children: [/* @__PURE__ */ V(
|
|
598
|
+
children: [/* @__PURE__ */ V(C, {
|
|
599
599
|
id: "scheduled-task-day-of-week",
|
|
600
|
-
mode:
|
|
600
|
+
mode: w.Weekday,
|
|
601
601
|
value: a(r.dayOfWeek),
|
|
602
|
-
onChange: (e) =>
|
|
602
|
+
onChange: (e) => b("dayOfWeek", o(e)),
|
|
603
603
|
labelProps: {
|
|
604
604
|
label: n.dayOfWeekLabel,
|
|
605
605
|
required: !0
|
|
606
606
|
},
|
|
607
607
|
invalid: !!u.dayOfWeek
|
|
608
608
|
}), u.dayOfWeek && /* @__PURE__ */ V("p", {
|
|
609
|
-
className:
|
|
609
|
+
className: v(U, Z.instructionsError),
|
|
610
610
|
children: u.dayOfWeek
|
|
611
611
|
})]
|
|
612
612
|
}),
|
|
@@ -616,7 +616,7 @@ var W = {
|
|
|
616
616
|
min: 1,
|
|
617
617
|
max: 31,
|
|
618
618
|
value: r.dayOfMonth ?? "",
|
|
619
|
-
onChange: (e) =>
|
|
619
|
+
onChange: (e) => b("dayOfMonth", e == null ? "" : String(e)),
|
|
620
620
|
labelProps: {
|
|
621
621
|
label: n.dayOfMonthLabel,
|
|
622
622
|
required: !0
|
|
@@ -630,7 +630,7 @@ var W = {
|
|
|
630
630
|
min: 0,
|
|
631
631
|
max: 59,
|
|
632
632
|
value: r.minute ?? "",
|
|
633
|
-
onChange: (e) =>
|
|
633
|
+
onChange: (e) => b("minute", e == null ? "" : String(e)),
|
|
634
634
|
labelProps: {
|
|
635
635
|
label: n.minuteLabel,
|
|
636
636
|
required: !0
|
|
@@ -642,32 +642,32 @@ var W = {
|
|
|
642
642
|
className: "flex flex-row gap-3",
|
|
643
643
|
children: [/* @__PURE__ */ H("div", {
|
|
644
644
|
className: "flex flex-1 flex-col gap-1",
|
|
645
|
-
children: [/* @__PURE__ */ V(
|
|
645
|
+
children: [/* @__PURE__ */ V(C, {
|
|
646
646
|
id: "scheduled-task-start-date",
|
|
647
|
-
mode:
|
|
647
|
+
mode: w.Date,
|
|
648
648
|
value: e(r.startDate),
|
|
649
|
-
onChange: (e) =>
|
|
649
|
+
onChange: (e) => b("startDate", i(e)),
|
|
650
650
|
minDate: I,
|
|
651
651
|
labelProps: { label: n.startDateLabel },
|
|
652
652
|
placeholder: n.startDatePlaceholder,
|
|
653
653
|
invalid: !!u.startDate
|
|
654
654
|
}), u.startDate && /* @__PURE__ */ V("p", {
|
|
655
|
-
className:
|
|
655
|
+
className: v(U, Z.instructionsError),
|
|
656
656
|
children: u.startDate
|
|
657
657
|
})]
|
|
658
658
|
}), /* @__PURE__ */ H("div", {
|
|
659
659
|
className: "flex flex-1 flex-col gap-1",
|
|
660
|
-
children: [/* @__PURE__ */ V(
|
|
660
|
+
children: [/* @__PURE__ */ V(C, {
|
|
661
661
|
id: "scheduled-task-end-date",
|
|
662
|
-
mode:
|
|
662
|
+
mode: w.Date,
|
|
663
663
|
value: e(r.endDate),
|
|
664
|
-
onChange: (e) =>
|
|
664
|
+
onChange: (e) => b("endDate", i(e)),
|
|
665
665
|
minDate: I,
|
|
666
666
|
labelProps: { label: n.endDateLabel },
|
|
667
667
|
placeholder: n.endDatePlaceholder,
|
|
668
668
|
invalid: !!u.endDate
|
|
669
669
|
}), u.endDate && /* @__PURE__ */ V("p", {
|
|
670
|
-
className:
|
|
670
|
+
className: v(U, Z.instructionsError),
|
|
671
671
|
children: u.endDate
|
|
672
672
|
})]
|
|
673
673
|
})]
|
|
@@ -680,7 +680,7 @@ var W = {
|
|
|
680
680
|
children: /* @__PURE__ */ H("div", {
|
|
681
681
|
role: "group",
|
|
682
682
|
"aria-label": n.configurationSectionTitle,
|
|
683
|
-
className:
|
|
683
|
+
className: v("flex flex-1 flex-col gap-5 py-6", Z.formColumn),
|
|
684
684
|
children: [
|
|
685
685
|
/* @__PURE__ */ H("div", {
|
|
686
686
|
className: "flex flex-col gap-1",
|
|
@@ -688,36 +688,36 @@ var W = {
|
|
|
688
688
|
className: z,
|
|
689
689
|
children: n.configurationSectionTitle
|
|
690
690
|
}), /* @__PURE__ */ V("p", {
|
|
691
|
-
className:
|
|
691
|
+
className: v(ke, Z.sectionSubtitle),
|
|
692
692
|
children: n.configurationSectionSubtitle
|
|
693
693
|
})]
|
|
694
694
|
}),
|
|
695
|
-
|
|
695
|
+
h == null ? u.skillUrls && /* @__PURE__ */ V("div", {
|
|
696
696
|
"aria-live": "polite",
|
|
697
697
|
children: /* @__PURE__ */ V("p", {
|
|
698
|
-
className:
|
|
698
|
+
className: v(U, Z.instructionsError),
|
|
699
699
|
children: u.skillUrls
|
|
700
700
|
})
|
|
701
701
|
}) : /* @__PURE__ */ V("div", {
|
|
702
702
|
className: "w-full min-w-0 max-w-[996px]",
|
|
703
|
-
children:
|
|
703
|
+
children: h
|
|
704
704
|
}),
|
|
705
705
|
/* @__PURE__ */ V("div", {
|
|
706
706
|
className: "flex w-full min-w-0 max-w-[996px] flex-col",
|
|
707
|
-
children: /* @__PURE__ */ V(
|
|
708
|
-
isEnabled: !!
|
|
707
|
+
children: /* @__PURE__ */ V(g, {
|
|
708
|
+
isEnabled: !!ie,
|
|
709
709
|
fieldId: fe,
|
|
710
710
|
labelClassName: Ae,
|
|
711
711
|
label: n.instructionsLabel,
|
|
712
712
|
required: Se,
|
|
713
713
|
labels: n,
|
|
714
714
|
refinement: he,
|
|
715
|
-
disabled:
|
|
715
|
+
disabled: T || ge,
|
|
716
716
|
...K,
|
|
717
717
|
children: /* @__PURE__ */ H("div", {
|
|
718
718
|
className: "flex flex-1 flex-col gap-1",
|
|
719
719
|
children: [
|
|
720
|
-
!
|
|
720
|
+
!ie && /* @__PURE__ */ V(ce, {
|
|
721
721
|
htmlFor: fe,
|
|
722
722
|
className: Ae,
|
|
723
723
|
label: n.instructionsLabel,
|
|
@@ -725,14 +725,14 @@ var W = {
|
|
|
725
725
|
}),
|
|
726
726
|
/* @__PURE__ */ V("div", {
|
|
727
727
|
ref: P,
|
|
728
|
-
className:
|
|
728
|
+
className: v("w-full", d, f),
|
|
729
729
|
children: /* @__PURE__ */ V(Te, {
|
|
730
730
|
fallback: /* @__PURE__ */ V(me, {}),
|
|
731
731
|
children: /* @__PURE__ */ V(Ze, {
|
|
732
732
|
id: fe,
|
|
733
733
|
value: r.prompt,
|
|
734
734
|
onChange: (e) => {
|
|
735
|
-
he.reset(),
|
|
735
|
+
he.reset(), b("prompt", e);
|
|
736
736
|
},
|
|
737
737
|
height: 480,
|
|
738
738
|
theme: k,
|
|
@@ -741,7 +741,7 @@ var W = {
|
|
|
741
741
|
})
|
|
742
742
|
}),
|
|
743
743
|
u.prompt && /* @__PURE__ */ V("p", {
|
|
744
|
-
className:
|
|
744
|
+
className: v(U, Z.instructionsError),
|
|
745
745
|
children: u.prompt
|
|
746
746
|
})
|
|
747
747
|
]
|
|
@@ -756,7 +756,7 @@ var W = {
|
|
|
756
756
|
message: n.discardMessage ?? "You have unsaved changes. Leaving now will discard them.",
|
|
757
757
|
confirmLabel: n.discardConfirmLabel ?? "Discard changes",
|
|
758
758
|
cancelLabel: n.discardCancelLabel ?? "Keep editing",
|
|
759
|
-
variant:
|
|
759
|
+
variant: E.Danger,
|
|
760
760
|
onConfirm: N.confirm,
|
|
761
761
|
onClose: N.dismiss
|
|
762
762
|
})] });
|
|
@@ -771,7 +771,7 @@ var W = {
|
|
|
771
771
|
"aria-label": e,
|
|
772
772
|
className: "flex min-w-0 flex-col gap-1",
|
|
773
773
|
children: [/* @__PURE__ */ V("span", {
|
|
774
|
-
className:
|
|
774
|
+
className: v(o, tt.subtitleText),
|
|
775
775
|
children: e
|
|
776
776
|
}), /* @__PURE__ */ V("p", {
|
|
777
777
|
className: "whitespace-normal break-all",
|
|
@@ -785,9 +785,9 @@ var W = {
|
|
|
785
785
|
"aria-label": n,
|
|
786
786
|
className: "flex min-w-0 flex-col gap-1",
|
|
787
787
|
children: [/* @__PURE__ */ V("span", {
|
|
788
|
-
className:
|
|
788
|
+
className: v(o, tt.subtitleText),
|
|
789
789
|
children: n
|
|
790
|
-
}), i ? i(r) : /* @__PURE__ */ V(
|
|
790
|
+
}), i ? i(r) : /* @__PURE__ */ V(p, {
|
|
791
791
|
content: r,
|
|
792
792
|
...a
|
|
793
793
|
})]
|
|
@@ -796,7 +796,7 @@ var W = {
|
|
|
796
796
|
t && /* @__PURE__ */ H("div", {
|
|
797
797
|
className: "flex flex-col gap-1",
|
|
798
798
|
children: [/* @__PURE__ */ V("span", {
|
|
799
|
-
className:
|
|
799
|
+
className: v(o, rt.subtitleText),
|
|
800
800
|
children: e.descriptionLabel
|
|
801
801
|
}), /* @__PURE__ */ V("p", {
|
|
802
802
|
className: s,
|
|
@@ -806,7 +806,7 @@ var W = {
|
|
|
806
806
|
a && /* @__PURE__ */ H("div", {
|
|
807
807
|
className: "flex flex-col gap-1",
|
|
808
808
|
children: [/* @__PURE__ */ V("span", {
|
|
809
|
-
className:
|
|
809
|
+
className: v(o, rt.subtitleText),
|
|
810
810
|
children: e.completedFieldLabel
|
|
811
811
|
}), /* @__PURE__ */ V("p", {
|
|
812
812
|
className: s,
|
|
@@ -816,7 +816,7 @@ var W = {
|
|
|
816
816
|
n && /* @__PURE__ */ H("div", {
|
|
817
817
|
className: "flex flex-col gap-1",
|
|
818
818
|
children: [/* @__PURE__ */ V("span", {
|
|
819
|
-
className:
|
|
819
|
+
className: v(o, rt.subtitleText),
|
|
820
820
|
children: e.modelLabel
|
|
821
821
|
}), /* @__PURE__ */ V("p", {
|
|
822
822
|
className: s,
|
|
@@ -826,7 +826,7 @@ var W = {
|
|
|
826
826
|
r && /* @__PURE__ */ H("div", {
|
|
827
827
|
className: "flex flex-col gap-1",
|
|
828
828
|
children: [/* @__PURE__ */ V("span", {
|
|
829
|
-
className:
|
|
829
|
+
className: v(o, rt.subtitleText),
|
|
830
830
|
children: e.repeatsLabel
|
|
831
831
|
}), /* @__PURE__ */ V("p", {
|
|
832
832
|
className: s,
|
|
@@ -836,7 +836,7 @@ var W = {
|
|
|
836
836
|
i && /* @__PURE__ */ H("div", {
|
|
837
837
|
className: "flex flex-col gap-1",
|
|
838
838
|
children: [/* @__PURE__ */ V("span", {
|
|
839
|
-
className:
|
|
839
|
+
className: v(o, rt.subtitleText),
|
|
840
840
|
children: e.activeWindowLabel
|
|
841
841
|
}), /* @__PURE__ */ V("p", {
|
|
842
842
|
className: s,
|
|
@@ -857,31 +857,31 @@ var W = {
|
|
|
857
857
|
}, ot = ({ status: e }) => {
|
|
858
858
|
switch (e) {
|
|
859
859
|
case at.Success: return /* @__PURE__ */ V(xe, {
|
|
860
|
-
size:
|
|
860
|
+
size: D.SM,
|
|
861
861
|
className: Q.successIcon,
|
|
862
862
|
"aria-hidden": !0,
|
|
863
|
-
stroke:
|
|
863
|
+
stroke: O
|
|
864
864
|
});
|
|
865
865
|
case at.Error: return /* @__PURE__ */ V(P, {
|
|
866
|
-
size:
|
|
866
|
+
size: D.SM,
|
|
867
867
|
className: Q.errorIcon,
|
|
868
868
|
"aria-hidden": !0,
|
|
869
|
-
stroke:
|
|
869
|
+
stroke: O
|
|
870
870
|
});
|
|
871
871
|
case at.InProgress: return /* @__PURE__ */ V("span", {
|
|
872
872
|
"aria-hidden": !0,
|
|
873
|
-
children: /* @__PURE__ */ V(me, { size:
|
|
873
|
+
children: /* @__PURE__ */ V(me, { size: D.SM })
|
|
874
874
|
});
|
|
875
875
|
case at.Missed: return /* @__PURE__ */ V(ve, {
|
|
876
|
-
size:
|
|
876
|
+
size: D.SM,
|
|
877
877
|
className: Q.missedIcon,
|
|
878
878
|
"aria-hidden": !0,
|
|
879
|
-
stroke:
|
|
879
|
+
stroke: O
|
|
880
880
|
});
|
|
881
881
|
default: return null;
|
|
882
882
|
}
|
|
883
883
|
}, st = ({ items: e, isLoading: t = !1, isLoadingMore: n = !1, skeletonCount: r = 6, error: i, onRetry: a, currentRunId: o, onRunClick: s, labels: c, footer: l, styles: u }) => {
|
|
884
|
-
let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-text", m = f?.subtitleClassName ?? "dial-body-text",
|
|
884
|
+
let { colors: d, typography: f } = u ?? {}, p = f?.runTimestampClassName ?? "dial-small-text", m = f?.subtitleClassName ?? "dial-body-text", h = c.unreadIndicatorLabel ?? "Unread", g = _({
|
|
885
885
|
"--strhl-success-icon": d?.successIconColor,
|
|
886
886
|
"--strhl-error-icon": d?.errorIconColor,
|
|
887
887
|
"--strhl-missed-icon": d?.missedIconColor,
|
|
@@ -891,8 +891,8 @@ var W = {
|
|
|
891
891
|
"--strhl-row-hover-bg": u?.rowHoverBackground,
|
|
892
892
|
"--strhl-row-focus-bg": u?.rowFocusBackground,
|
|
893
893
|
"--strhl-row-focus-outline": u?.rowFocusOutline
|
|
894
|
-
}),
|
|
895
|
-
let t = c.runStatusLabels[e.status], n = e.id === o, r = [e.isUnread ?
|
|
894
|
+
}), y = (e) => {
|
|
895
|
+
let t = c.runStatusLabels[e.status], n = e.id === o, r = [e.isUnread ? h : void 0, n ? c.currentRunLabel : void 0].filter((e) => !!e), i = [`${t} ${e.timestampLabel}`, ...r].join(" — "), a = !!e.conversationId && !!s;
|
|
896
896
|
return /* @__PURE__ */ H("li", {
|
|
897
897
|
...a ? {
|
|
898
898
|
role: "button",
|
|
@@ -904,17 +904,17 @@ var W = {
|
|
|
904
904
|
} : {},
|
|
905
905
|
"aria-label": i,
|
|
906
906
|
"aria-current": n ? "true" : void 0,
|
|
907
|
-
className:
|
|
907
|
+
className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 rounded-full pe-2", Q.rowLayout, n && Q.currentRun, a && "cursor-pointer", a && Q.interactiveRow),
|
|
908
908
|
children: [/* @__PURE__ */ H("span", {
|
|
909
909
|
className: "flex items-center gap-2 truncate",
|
|
910
910
|
children: [/* @__PURE__ */ V("span", {
|
|
911
911
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
912
912
|
children: e.isUnread && /* @__PURE__ */ V("span", {
|
|
913
|
-
className:
|
|
913
|
+
className: v("size-[5.33px] rounded-full", Q.unreadDot),
|
|
914
914
|
"aria-hidden": !0
|
|
915
915
|
})
|
|
916
916
|
}), /* @__PURE__ */ V("span", {
|
|
917
|
-
className:
|
|
917
|
+
className: v(p, "truncate"),
|
|
918
918
|
children: e.timestampLabel
|
|
919
919
|
})]
|
|
920
920
|
}), /* @__PURE__ */ V("span", {
|
|
@@ -922,9 +922,9 @@ var W = {
|
|
|
922
922
|
children: /* @__PURE__ */ V(ot, { status: e.status })
|
|
923
923
|
})]
|
|
924
924
|
}, e.id);
|
|
925
|
-
},
|
|
925
|
+
}, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ H("li", {
|
|
926
926
|
"aria-hidden": "true",
|
|
927
|
-
className:
|
|
927
|
+
className: v("flex min-h-[var(--strhl-row-min-height,32px)] max-w-[328px] items-center justify-between gap-2 pe-2", Q.rowLayout),
|
|
928
928
|
children: [/* @__PURE__ */ V(j, {
|
|
929
929
|
variant: M.Rectangular,
|
|
930
930
|
width: "160px",
|
|
@@ -938,29 +938,29 @@ var W = {
|
|
|
938
938
|
}, `history-skeleton-${t}`));
|
|
939
939
|
return t && e.length === 0 ? /* @__PURE__ */ V("ul", {
|
|
940
940
|
style: {
|
|
941
|
-
...
|
|
941
|
+
...g,
|
|
942
942
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
943
943
|
},
|
|
944
944
|
"aria-label": c.historyTitle,
|
|
945
945
|
className: "flex flex-col gap-0.5",
|
|
946
|
-
children:
|
|
946
|
+
children: b(r)
|
|
947
947
|
}) : i && e.length === 0 ? /* @__PURE__ */ H("div", {
|
|
948
|
-
style:
|
|
948
|
+
style: g,
|
|
949
949
|
className: "flex flex-col items-start gap-3",
|
|
950
950
|
children: [/* @__PURE__ */ V("p", {
|
|
951
951
|
role: "alert",
|
|
952
|
-
className:
|
|
952
|
+
className: v(m, Q.subtitleText),
|
|
953
953
|
children: c.errorLabel
|
|
954
954
|
}), /* @__PURE__ */ V(k, {
|
|
955
955
|
label: c.retryLabel,
|
|
956
956
|
onClick: a
|
|
957
957
|
})]
|
|
958
958
|
}) : e.length === 0 ? /* @__PURE__ */ H("div", {
|
|
959
|
-
style:
|
|
959
|
+
style: g,
|
|
960
960
|
className: "flex w-full flex-col items-center justify-center gap-2 py-4",
|
|
961
961
|
children: [/* @__PURE__ */ V(Se, {
|
|
962
962
|
size: 44,
|
|
963
|
-
stroke:
|
|
963
|
+
stroke: O,
|
|
964
964
|
className: Q.subtitleText,
|
|
965
965
|
"aria-hidden": !0
|
|
966
966
|
}), /* @__PURE__ */ V("p", {
|
|
@@ -970,19 +970,19 @@ var W = {
|
|
|
970
970
|
})]
|
|
971
971
|
}) : /* @__PURE__ */ H("ul", {
|
|
972
972
|
style: {
|
|
973
|
-
...
|
|
973
|
+
...g,
|
|
974
974
|
"--strhl-row-min-height": u?.rowMinHeight
|
|
975
975
|
},
|
|
976
976
|
"aria-label": c.historyTitle,
|
|
977
977
|
className: "flex flex-col gap-0.5",
|
|
978
978
|
children: [
|
|
979
|
-
e.map(
|
|
980
|
-
n &&
|
|
979
|
+
e.map(y),
|
|
980
|
+
n && b(r),
|
|
981
981
|
i ? /* @__PURE__ */ H("li", {
|
|
982
982
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
983
983
|
children: [/* @__PURE__ */ V("p", {
|
|
984
984
|
role: "alert",
|
|
985
|
-
className:
|
|
985
|
+
className: v(m, Q.subtitleText),
|
|
986
986
|
children: c.errorLabel
|
|
987
987
|
}), /* @__PURE__ */ V(k, {
|
|
988
988
|
label: c.retryLabel,
|
|
@@ -995,9 +995,9 @@ var W = {
|
|
|
995
995
|
historyCard: "_historyCard_153p9_4",
|
|
996
996
|
subtitleText: "_subtitleText_153p9_8",
|
|
997
997
|
cardLayout: "_cardLayout_153p9_13"
|
|
998
|
-
}, lt = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: a = !1, skeletonCount: o = 6, error: s, onRetry: c, loadMoreError: l, onRetryLoadMore: u, hasMore: d = !1, onLoadMore: f, onRunClick: p, runTimestampClassName: m = "dial-small-text", sectionTitleClassName:
|
|
999
|
-
let
|
|
1000
|
-
className:
|
|
998
|
+
}, lt = ({ variant: e, labels: t, nextRunLabel: n, items: r, isLoading: i = !1, isLoadingMore: a = !1, skeletonCount: o = 6, error: s, onRetry: c, loadMoreError: l, onRetryLoadMore: u, hasMore: d = !1, onLoadMore: f, onRunClick: p, runTimestampClassName: m = "dial-small-text", sectionTitleClassName: h = "dial-body-semi-text", colors: g, styles: _ }) => {
|
|
999
|
+
let y = e === et.Card, b = y ? v("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", ct.historyCard) : "pt-2", x = l ? /* @__PURE__ */ H("li", {
|
|
1000
|
+
className: b,
|
|
1001
1001
|
children: [/* @__PURE__ */ V("p", {
|
|
1002
1002
|
role: "alert",
|
|
1003
1003
|
children: t.historyLoadMoreErrorLabel ?? t.historyErrorLabel
|
|
@@ -1007,21 +1007,21 @@ var W = {
|
|
|
1007
1007
|
disabled: a
|
|
1008
1008
|
})]
|
|
1009
1009
|
}) : f && d && t.historyShowMoreLabel ? /* @__PURE__ */ V("li", {
|
|
1010
|
-
className:
|
|
1010
|
+
className: b,
|
|
1011
1011
|
children: /* @__PURE__ */ V(k, {
|
|
1012
1012
|
label: t.historyShowMoreLabel,
|
|
1013
1013
|
onClick: f,
|
|
1014
1014
|
disabled: a
|
|
1015
1015
|
})
|
|
1016
|
-
}) : void 0,
|
|
1017
|
-
className:
|
|
1016
|
+
}) : void 0, S = n ? /* @__PURE__ */ V("p", {
|
|
1017
|
+
className: v(m, ct.subtitleText),
|
|
1018
1018
|
children: n
|
|
1019
|
-
}) : void 0,
|
|
1019
|
+
}) : void 0, ee = t.historyLoadingMoreLabel ? /* @__PURE__ */ V("span", {
|
|
1020
1020
|
role: "status",
|
|
1021
1021
|
"aria-live": "polite",
|
|
1022
1022
|
className: "sr-only",
|
|
1023
1023
|
children: a ? t.historyLoadingMoreLabel : ""
|
|
1024
|
-
}) : void 0,
|
|
1024
|
+
}) : void 0, te = /* @__PURE__ */ V(st, {
|
|
1025
1025
|
items: r,
|
|
1026
1026
|
isLoading: i,
|
|
1027
1027
|
isLoadingMore: a,
|
|
@@ -1037,39 +1037,39 @@ var W = {
|
|
|
1037
1037
|
runStatusLabels: t.runStatusLabels,
|
|
1038
1038
|
unreadIndicatorLabel: t.unreadIndicatorLabel
|
|
1039
1039
|
},
|
|
1040
|
-
footer:
|
|
1040
|
+
footer: x,
|
|
1041
1041
|
styles: {
|
|
1042
1042
|
typography: { runTimestampClassName: m },
|
|
1043
|
-
colors:
|
|
1044
|
-
rowMinHeight:
|
|
1045
|
-
rowHoverBackground:
|
|
1046
|
-
rowFocusBackground:
|
|
1047
|
-
rowFocusOutline:
|
|
1043
|
+
colors: _?.colors ?? g,
|
|
1044
|
+
rowMinHeight: _?.rowMinHeight,
|
|
1045
|
+
rowHoverBackground: _?.rowHoverBackground,
|
|
1046
|
+
rowFocusBackground: _?.rowFocusBackground,
|
|
1047
|
+
rowFocusOutline: _?.rowFocusOutline
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
|
-
return
|
|
1051
|
-
className:
|
|
1052
|
-
style: { "--st-history-max-height":
|
|
1050
|
+
return y ? /* @__PURE__ */ H("div", {
|
|
1051
|
+
className: v("flex max-h-[var(--st-history-max-height,70vh)] w-full max-w-full flex-col overflow-y-auto rounded-xl shadow-md", ct.historyCard, ct.cardLayout),
|
|
1052
|
+
style: { "--st-history-max-height": _?.maxHeight },
|
|
1053
1053
|
children: [/* @__PURE__ */ H("div", {
|
|
1054
|
-
className:
|
|
1054
|
+
className: v("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5", ct.historyCard),
|
|
1055
1055
|
children: [
|
|
1056
1056
|
/* @__PURE__ */ V("h2", {
|
|
1057
|
-
className:
|
|
1057
|
+
className: h,
|
|
1058
1058
|
children: t.historyTitle
|
|
1059
1059
|
}),
|
|
1060
|
-
|
|
1061
|
-
|
|
1060
|
+
S,
|
|
1061
|
+
ee
|
|
1062
1062
|
]
|
|
1063
1063
|
}), /* @__PURE__ */ V("div", {
|
|
1064
1064
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
1065
|
-
children:
|
|
1065
|
+
children: te
|
|
1066
1066
|
})]
|
|
1067
1067
|
}) : /* @__PURE__ */ H("div", {
|
|
1068
1068
|
className: "flex flex-col gap-4",
|
|
1069
1069
|
children: [
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1070
|
+
S,
|
|
1071
|
+
ee,
|
|
1072
|
+
te
|
|
1073
1073
|
]
|
|
1074
1074
|
});
|
|
1075
1075
|
}, $ = {
|
|
@@ -1081,14 +1081,14 @@ var W = {
|
|
|
1081
1081
|
desktopTitle: "_desktopTitle_1w44s_39",
|
|
1082
1082
|
desktopBadge: "_desktopBadge_1w44s_40",
|
|
1083
1083
|
mobileTitleRow: "_mobileTitleRow_1w44s_44"
|
|
1084
|
-
}, ut = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange:
|
|
1085
|
-
let { colors: F, typography: I } = N ?? {}, R = I?.titleClassName ?? "dial-h2-text", Te = I?.sectionTitleClassName ?? "dial-body-semi-text", Ee = I?.fieldLabelClassName ?? "dial-tiny-text", z = I?.fieldValueClassName ?? "dial-small-text", De = I?.runTimestampClassName ?? "dial-small-text", ke =
|
|
1084
|
+
}, ut = ({ labels: e, onBack: t, onEdit: n, onStartNow: r, isStarting: i = !1, isStartNowDisabled: a = !1, isStartNowBusy: o = !1, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isCompleted: u = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: p = !1, activeDisabledReason: m, onActiveChange: h, displayName: g, isLoading: y = !1, error: x, onRetry: S, description: ee, modelLabel: te, repeatsLabel: C, activeWindowLabel: w, completedLabel: T, nextRunLabel: E, instructionsMarkdown: re, skillDisplayNames: ie, renderInstructions: oe, runs: se, runsIsLoading: ce = !1, runsIsLoadingMore: le = !1, runsSkeletonCount: de = 6, runsError: fe, onRunsRetry: A, runsLoadMoreError: pe, onRunsRetryLoadMore: j, runsHasMore: M = !1, onRunsLoadMore: _e, onRunClick: ve, styles: N, className: be, backIcon: xe, layout: P, historyStyles: Se }) => {
|
|
1085
|
+
let { colors: F, typography: I } = N ?? {}, R = I?.titleClassName ?? "dial-h2-text", Te = I?.sectionTitleClassName ?? "dial-body-semi-text", Ee = I?.fieldLabelClassName ?? "dial-tiny-text", z = I?.fieldValueClassName ?? "dial-small-text", De = I?.runTimestampClassName ?? "dial-small-text", ke = _({
|
|
1086
1086
|
"--stdv-bg": F?.background,
|
|
1087
1087
|
"--stdv-header-border": F?.headerBorder,
|
|
1088
1088
|
"--stdv-details-border": F?.detailsColumnBorder,
|
|
1089
1089
|
"--stdv-subtitle-text": F?.subtitleText,
|
|
1090
1090
|
"--stdv-history-bg": F?.historyCardBackground
|
|
1091
|
-
}), Ae =
|
|
1091
|
+
}), Ae = b(), [B, Ne] = je($e.Details), U = Oe(), W = o && !i ? e.startNowBusyLabel : void 0, G = [
|
|
1092
1092
|
{
|
|
1093
1093
|
id: $e.Details,
|
|
1094
1094
|
label: e.detailsTitle
|
|
@@ -1109,18 +1109,18 @@ var W = {
|
|
|
1109
1109
|
activeWindowLabel: e.activeWindowLabel,
|
|
1110
1110
|
completedFieldLabel: e.completedFieldLabel
|
|
1111
1111
|
},
|
|
1112
|
-
description:
|
|
1113
|
-
modelLabel:
|
|
1114
|
-
repeatsLabel:
|
|
1115
|
-
activeWindowLabel:
|
|
1116
|
-
completedLabel:
|
|
1112
|
+
description: ee,
|
|
1113
|
+
modelLabel: te,
|
|
1114
|
+
repeatsLabel: C,
|
|
1115
|
+
activeWindowLabel: w,
|
|
1116
|
+
completedLabel: T,
|
|
1117
1117
|
fieldLabelClassName: Ee,
|
|
1118
1118
|
fieldValueClassName: z
|
|
1119
1119
|
}), q = /* @__PURE__ */ V(nt, {
|
|
1120
1120
|
instructionsLabel: e.instructionsLabel,
|
|
1121
1121
|
skillLabel: e.skillLabel,
|
|
1122
|
-
skillDisplayNames:
|
|
1123
|
-
instructionsMarkdown:
|
|
1122
|
+
skillDisplayNames: ie,
|
|
1123
|
+
instructionsMarkdown: re,
|
|
1124
1124
|
renderInstructions: oe,
|
|
1125
1125
|
markdownLabels: {
|
|
1126
1126
|
codeBlockCopyLabel: e.codeBlockCopyLabel,
|
|
@@ -1143,7 +1143,7 @@ var W = {
|
|
|
1143
1143
|
runStatusLabels: e.runStatusLabels,
|
|
1144
1144
|
unreadIndicatorLabel: e.unreadIndicatorLabel
|
|
1145
1145
|
},
|
|
1146
|
-
nextRunLabel:
|
|
1146
|
+
nextRunLabel: E,
|
|
1147
1147
|
items: se,
|
|
1148
1148
|
isLoading: ce,
|
|
1149
1149
|
isLoadingMore: le,
|
|
@@ -1162,52 +1162,52 @@ var W = {
|
|
|
1162
1162
|
});
|
|
1163
1163
|
return /* @__PURE__ */ H("div", {
|
|
1164
1164
|
style: ke,
|
|
1165
|
-
className:
|
|
1165
|
+
className: v("flex h-full min-h-0 w-full flex-col overflow-hidden", $.container, be),
|
|
1166
1166
|
children: [
|
|
1167
1167
|
/* @__PURE__ */ H("div", {
|
|
1168
|
-
className:
|
|
1168
|
+
className: v("flex min-h-16 shrink-0 items-center justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:px-8 desktop:py-0", $.header),
|
|
1169
1169
|
children: [/* @__PURE__ */ H("div", {
|
|
1170
1170
|
className: "flex min-w-0 items-center gap-2",
|
|
1171
1171
|
children: [
|
|
1172
1172
|
/* @__PURE__ */ V(ae, {
|
|
1173
1173
|
icon: xe === void 0 ? /* @__PURE__ */ V(ye, {
|
|
1174
|
-
size:
|
|
1174
|
+
size: D.LG,
|
|
1175
1175
|
className: "rtl:scale-x-[-1]",
|
|
1176
1176
|
"aria-hidden": !0,
|
|
1177
|
-
stroke:
|
|
1177
|
+
stroke: O
|
|
1178
1178
|
}) : xe,
|
|
1179
1179
|
"aria-label": e.backAriaLabel,
|
|
1180
1180
|
onClick: t
|
|
1181
1181
|
}),
|
|
1182
1182
|
/* @__PURE__ */ V("h1", {
|
|
1183
|
-
className:
|
|
1184
|
-
children:
|
|
1183
|
+
className: v("truncate", $.desktopTitle, R),
|
|
1184
|
+
children: g
|
|
1185
1185
|
}),
|
|
1186
1186
|
l && /* @__PURE__ */ V("span", {
|
|
1187
|
-
className:
|
|
1187
|
+
className: v("shrink-0", $.desktopBadge, z, $.subtitleText),
|
|
1188
1188
|
children: e.deletedStateLabel
|
|
1189
1189
|
})
|
|
1190
1190
|
]
|
|
1191
1191
|
}), /* @__PURE__ */ H("div", {
|
|
1192
|
-
className:
|
|
1192
|
+
className: v("flex min-w-0 flex-1 flex-wrap items-center justify-end gap-2 desktop:flex-none desktop:flex-nowrap", $.headerActions),
|
|
1193
1193
|
children: [
|
|
1194
1194
|
!l && !u && d !== void 0 && /* @__PURE__ */ H(Me, { children: [/* @__PURE__ */ V(he, {
|
|
1195
1195
|
id: "scheduled-task-active-switch",
|
|
1196
1196
|
labelProps: { label: e.activeStatusLabel },
|
|
1197
1197
|
isOn: d,
|
|
1198
1198
|
disabled: f || p || c,
|
|
1199
|
-
onChange: (e) =>
|
|
1199
|
+
onChange: (e) => h?.(e)
|
|
1200
1200
|
}), p && m && /* @__PURE__ */ V("span", {
|
|
1201
|
-
className:
|
|
1201
|
+
className: v(z, $.subtitleText),
|
|
1202
1202
|
children: m
|
|
1203
1203
|
})] }),
|
|
1204
1204
|
!l && s && /* @__PURE__ */ V(k, {
|
|
1205
|
-
variant:
|
|
1205
|
+
variant: ne.Danger,
|
|
1206
1206
|
label: e.deleteButtonLabel,
|
|
1207
1207
|
iconBefore: /* @__PURE__ */ V(we, {
|
|
1208
|
-
size:
|
|
1208
|
+
size: D.SM,
|
|
1209
1209
|
"aria-hidden": !0,
|
|
1210
|
-
stroke:
|
|
1210
|
+
stroke: O
|
|
1211
1211
|
}),
|
|
1212
1212
|
onClick: s,
|
|
1213
1213
|
disabled: c,
|
|
@@ -1216,9 +1216,9 @@ var W = {
|
|
|
1216
1216
|
!l && n && /* @__PURE__ */ V(ue, {
|
|
1217
1217
|
label: e.editButtonLabel,
|
|
1218
1218
|
iconBefore: /* @__PURE__ */ V(Ce, {
|
|
1219
|
-
size:
|
|
1219
|
+
size: D.SM,
|
|
1220
1220
|
"aria-hidden": !0,
|
|
1221
|
-
stroke:
|
|
1221
|
+
stroke: O
|
|
1222
1222
|
}),
|
|
1223
1223
|
onClick: n,
|
|
1224
1224
|
disabled: c,
|
|
@@ -1233,9 +1233,9 @@ var W = {
|
|
|
1233
1233
|
}), /* @__PURE__ */ V(ue, {
|
|
1234
1234
|
label: i ? e.startingLabel ?? e.startNowButtonLabel : e.startNowButtonLabel,
|
|
1235
1235
|
iconBefore: /* @__PURE__ */ V(L, {
|
|
1236
|
-
size:
|
|
1236
|
+
size: D.SM,
|
|
1237
1237
|
"aria-hidden": !0,
|
|
1238
|
-
stroke:
|
|
1238
|
+
stroke: O
|
|
1239
1239
|
}),
|
|
1240
1240
|
onClick: r,
|
|
1241
1241
|
disabled: c || i || a || o,
|
|
@@ -1248,12 +1248,12 @@ var W = {
|
|
|
1248
1248
|
})]
|
|
1249
1249
|
}),
|
|
1250
1250
|
/* @__PURE__ */ H("div", {
|
|
1251
|
-
className:
|
|
1251
|
+
className: v("min-w-0 items-center gap-2 px-8 py-3", $.mobileTitleRow),
|
|
1252
1252
|
children: [/* @__PURE__ */ V("h1", {
|
|
1253
|
-
className:
|
|
1254
|
-
children:
|
|
1253
|
+
className: v("truncate", R),
|
|
1254
|
+
children: g
|
|
1255
1255
|
}), l && /* @__PURE__ */ V("span", {
|
|
1256
|
-
className:
|
|
1256
|
+
className: v("shrink-0", z, $.subtitleText),
|
|
1257
1257
|
children: e.deletedStateLabel
|
|
1258
1258
|
})]
|
|
1259
1259
|
}),
|
|
@@ -1269,21 +1269,21 @@ var W = {
|
|
|
1269
1269
|
className: "sr-only",
|
|
1270
1270
|
children: e.startStatusAnnouncement
|
|
1271
1271
|
}),
|
|
1272
|
-
|
|
1272
|
+
y && /* @__PURE__ */ V("div", {
|
|
1273
1273
|
className: "flex flex-1 items-center justify-center",
|
|
1274
1274
|
children: /* @__PURE__ */ V(me, {})
|
|
1275
1275
|
}),
|
|
1276
|
-
!
|
|
1276
|
+
!y && x && /* @__PURE__ */ H("div", {
|
|
1277
1277
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
1278
1278
|
children: [/* @__PURE__ */ V("p", {
|
|
1279
|
-
className:
|
|
1279
|
+
className: v(z, $.subtitleText),
|
|
1280
1280
|
children: e.errorLabel
|
|
1281
1281
|
}), /* @__PURE__ */ V(k, {
|
|
1282
1282
|
label: e.retryLabel,
|
|
1283
|
-
onClick:
|
|
1283
|
+
onClick: S
|
|
1284
1284
|
})]
|
|
1285
1285
|
}),
|
|
1286
|
-
!
|
|
1286
|
+
!y && !x && (Ae ? /* @__PURE__ */ H("div", {
|
|
1287
1287
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto",
|
|
1288
1288
|
children: [/* @__PURE__ */ V(ge, {
|
|
1289
1289
|
ariaLabel: e.tabsAriaLabel ?? "Scheduled task sections",
|
|
@@ -1314,7 +1314,7 @@ var W = {
|
|
|
1314
1314
|
flex: `0 1 ${P?.detailsWidth ?? "360px"}`,
|
|
1315
1315
|
maxWidth: "100%"
|
|
1316
1316
|
},
|
|
1317
|
-
className:
|
|
1317
|
+
className: v("flex min-h-0 w-full flex-col gap-5 overflow-y-auto border-e px-8 py-6", $.detailsColumn),
|
|
1318
1318
|
children: [/* @__PURE__ */ V("h2", {
|
|
1319
1319
|
className: Te,
|
|
1320
1320
|
children: e.detailsTitle
|
|
@@ -1376,7 +1376,7 @@ var W = {
|
|
|
1376
1376
|
children: [/* @__PURE__ */ V("span", {
|
|
1377
1377
|
className: l,
|
|
1378
1378
|
children: r
|
|
1379
|
-
}), ((e) => o ? o(e) : /* @__PURE__ */ V(
|
|
1379
|
+
}), ((e) => o ? o(e) : /* @__PURE__ */ V(p, {
|
|
1380
1380
|
content: e,
|
|
1381
1381
|
...s
|
|
1382
1382
|
}))(a)]
|
|
@@ -1385,22 +1385,19 @@ var W = {
|
|
|
1385
1385
|
});
|
|
1386
1386
|
}, ft = ({ taskName: e, icon: t, typeLabel: n, body: r, pendingLabel: i, isDeleting: a = !1, styles: o, ...s }) => /* @__PURE__ */ V(l, {
|
|
1387
1387
|
...s,
|
|
1388
|
-
variant:
|
|
1388
|
+
variant: E.Danger,
|
|
1389
1389
|
popupClassName: o?.popupClassName,
|
|
1390
1390
|
titleClassName: o?.titleClassName,
|
|
1391
1391
|
messageClassName: o?.messageClassName ?? "dial-body-paragraph-text",
|
|
1392
1392
|
message: r,
|
|
1393
1393
|
isLoading: a,
|
|
1394
1394
|
loadingStatusLabel: i,
|
|
1395
|
-
identity: /* @__PURE__ */ V(u, {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
styles: { colors: o?.colors }
|
|
1402
|
-
})
|
|
1403
|
-
})
|
|
1395
|
+
identity: /* @__PURE__ */ V(h, { children: /* @__PURE__ */ V(u, {
|
|
1396
|
+
icon: t,
|
|
1397
|
+
typeLabel: n,
|
|
1398
|
+
name: e,
|
|
1399
|
+
styles: { colors: o?.colors }
|
|
1400
|
+
}) })
|
|
1404
1401
|
});
|
|
1405
1402
|
//#endregion
|
|
1406
1403
|
export { r as DESCRIPTION_MAX_LENGTH, W as SCHEDULED_TASKS_CLASS, Ie as ScheduledTaskCard, Ve as ScheduledTaskCardGrid, Be as ScheduledTaskCardSkeleton, Qe as ScheduledTaskCreateForm, ft as ScheduledTaskDeleteConfirmation, ut as ScheduledTaskDetailView, dt as ScheduledTaskDetailsSummary, lt as ScheduledTaskHistorySection, K as ScheduledTaskPresentationStatus, t as ScheduledTaskRepeat, st as ScheduledTaskRunHistoryList, at as ScheduledTaskRunStatus, G as ScheduledTaskStatus, Ge as ScheduledTasks, Ke as ScheduledTasksSortKey, c as TIME_OF_DAY_PATTERN, Pe as getScheduledTaskStatus, Je as hasScheduledTaskFormChanges };
|
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.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.306",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@tabler/icons-react": "^3.44.0",
|
|
26
26
|
"@uiw/react-markdown-preview": "^5.2.1",
|
|
27
27
|
"@uiw/react-md-editor": "^4.1.1",
|
|
28
|
-
"@epam/ai-dial-builder-form": "1.2.0-dev.
|
|
28
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.306"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
31
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.306",
|
|
32
32
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.39",
|
|
33
33
|
"react": "^19.2.8"
|
|
34
34
|
},
|