@epam/ai-dial-scheduled-tasks 1.1.0-dev.74 → 1.1.0-dev.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskCreateForm.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScheduledTaskCreateForm.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAuC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AA2B7F;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CA4UpE,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PanelEmptyState as e, buildCssVars as t, mergeClasses as n } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import {
|
|
3
|
-
import { Calendar as
|
|
2
|
+
import { Input as r, SearchBar as i, Textarea as a } from "@epam/ai-dial-kit";
|
|
3
|
+
import { Calendar as o, CalendarMode as s, CardShell as c, DIAL_ICON_SIZE as l, DialDropdown as u, DialSelectField as d, DialSkeleton as f, DialSkeletonVariant as p, DialSpinner as m, FolderPath as h, GhostButton as g, GhostIconButton as _, Highlight as v, IconButton as y, LazyDialMarkdownEditor as b, NeutralButton as x, PrimaryButton as S } from "@epam/ai-dial-ui-kit";
|
|
4
4
|
import { IconArrowLeft as C, IconArrowsSort as w, IconCalendarTime as T, IconCheck as E, IconChevronUp as D, IconDotsVertical as O, IconEdit as k, IconPlayerPlay as A, IconPlus as j, IconTrash as M } from "@tabler/icons-react";
|
|
5
5
|
import { Suspense as N, lazy as P, useEffect as ee, useMemo as F, useRef as te } from "react";
|
|
6
6
|
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
@@ -26,8 +26,8 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
26
26
|
locationLabel: "_locationLabel_10760_18",
|
|
27
27
|
locationLeaf: "_locationLeaf_10760_22",
|
|
28
28
|
newBadge: "_newBadge_10760_26"
|
|
29
|
-
}, W = ({ item: e, searchQuery: r = "", onEdit: i, onRunNow: a, onDelete: o, labels: s, styles:
|
|
30
|
-
let p = s?.newBadgeLabel ?? "NEW", m = s?.actionsLabel ?? "More actions",
|
|
29
|
+
}, W = ({ item: e, searchQuery: r = "", onEdit: i, onRunNow: a, onDelete: o, labels: s, styles: d, className: f }) => {
|
|
30
|
+
let p = s?.newBadgeLabel ?? "NEW", m = s?.actionsLabel ?? "More actions", g = s?.editActionLabel ?? "Edit", _ = s?.runNowActionLabel ?? "Run now", b = s?.deleteActionLabel ?? "Delete", { colors: x, typography: S } = d ?? {}, C = S?.titleClassName ?? "dial-body-semi-text", w = S?.descriptionClassName ?? "dial-small-text", T = S?.scheduleLabelClassName ?? "dial-tiny-text", E = S?.locationLabelClassName ?? "dial-tiny-text", D = S?.locationLeafClassName ?? "dial-tiny-semi-text", j = S?.newBadgeClassName ?? "dial-tiny-semi-text", N = t({
|
|
31
31
|
"--stc-title-text": x?.titleText,
|
|
32
32
|
"--stc-desc-text": x?.descriptionText,
|
|
33
33
|
"--stc-pill-bg": x?.schedulePillBackground,
|
|
@@ -40,9 +40,9 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
40
40
|
}), P = [];
|
|
41
41
|
return i && P.push({
|
|
42
42
|
key: "edit",
|
|
43
|
-
label:
|
|
43
|
+
label: g,
|
|
44
44
|
icon: /* @__PURE__ */ L(k, {
|
|
45
|
-
size:
|
|
45
|
+
size: l.SM,
|
|
46
46
|
"aria-hidden": !0
|
|
47
47
|
}),
|
|
48
48
|
onClick: () => i(e.id)
|
|
@@ -50,7 +50,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
50
50
|
key: "runNow",
|
|
51
51
|
label: _,
|
|
52
52
|
icon: /* @__PURE__ */ L(A, {
|
|
53
|
-
size:
|
|
53
|
+
size: l.SM,
|
|
54
54
|
"aria-hidden": !0
|
|
55
55
|
}),
|
|
56
56
|
onClick: () => a(e.id)
|
|
@@ -58,12 +58,12 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
58
58
|
key: "delete",
|
|
59
59
|
label: b,
|
|
60
60
|
icon: /* @__PURE__ */ L(M, {
|
|
61
|
-
size:
|
|
61
|
+
size: l.SM,
|
|
62
62
|
"aria-hidden": !0
|
|
63
63
|
}),
|
|
64
64
|
danger: !0,
|
|
65
65
|
onClick: () => o(e.id)
|
|
66
|
-
}), /* @__PURE__ */ R(
|
|
66
|
+
}), /* @__PURE__ */ R(c, {
|
|
67
67
|
role: "group",
|
|
68
68
|
"aria-label": e.displayName,
|
|
69
69
|
style: N,
|
|
@@ -82,13 +82,13 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
82
82
|
className: n("shrink-0 rounded-full px-2 py-0.5", j, U.newBadge),
|
|
83
83
|
children: p
|
|
84
84
|
})]
|
|
85
|
-
}), P.length > 0 && /* @__PURE__ */ L(
|
|
85
|
+
}), P.length > 0 && /* @__PURE__ */ L(u, {
|
|
86
86
|
items: P,
|
|
87
87
|
matchReferenceWidth: !1,
|
|
88
88
|
placement: "bottom-end",
|
|
89
89
|
children: /* @__PURE__ */ L(y, {
|
|
90
90
|
icon: /* @__PURE__ */ L(O, {
|
|
91
|
-
size:
|
|
91
|
+
size: l.SM,
|
|
92
92
|
"aria-hidden": !0
|
|
93
93
|
}),
|
|
94
94
|
"aria-label": m,
|
|
@@ -108,7 +108,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
108
108
|
className: n("inline-block rounded-lg border px-2 py-1", U.schedulePill, T, U.scheduleLabel),
|
|
109
109
|
children: e.scheduleLabel
|
|
110
110
|
})
|
|
111
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ L(
|
|
111
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ L(h, {
|
|
112
112
|
segments: e.locationSegments,
|
|
113
113
|
labelClassName: n(E, U.locationLabel),
|
|
114
114
|
leafClassName: n(D, U.locationLeaf),
|
|
@@ -123,12 +123,12 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
123
123
|
"61%"
|
|
124
124
|
], K = ({ styles: e }) => {
|
|
125
125
|
let t = e?.colors?.skeletonColor ?? "var(--bg-layer-4)";
|
|
126
|
-
return /* @__PURE__ */ R(
|
|
126
|
+
return /* @__PURE__ */ R(c, {
|
|
127
127
|
"aria-hidden": !0,
|
|
128
128
|
className: "h-[232px]",
|
|
129
129
|
children: [
|
|
130
|
-
/* @__PURE__ */ L(
|
|
131
|
-
variant:
|
|
130
|
+
/* @__PURE__ */ L(f, {
|
|
131
|
+
variant: p.Rectangular,
|
|
132
132
|
width: "60%",
|
|
133
133
|
height: "20px",
|
|
134
134
|
color: t,
|
|
@@ -136,15 +136,15 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
136
136
|
}),
|
|
137
137
|
/* @__PURE__ */ L("div", {
|
|
138
138
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
139
|
-
children: G.map((e, n) => /* @__PURE__ */ L(
|
|
140
|
-
variant:
|
|
139
|
+
children: G.map((e, n) => /* @__PURE__ */ L(f, {
|
|
140
|
+
variant: p.Rectangular,
|
|
141
141
|
width: e,
|
|
142
142
|
height: "16px",
|
|
143
143
|
color: t
|
|
144
144
|
}, n))
|
|
145
145
|
}),
|
|
146
|
-
/* @__PURE__ */ L(
|
|
147
|
-
variant:
|
|
146
|
+
/* @__PURE__ */ L(f, {
|
|
147
|
+
variant: p.Rectangular,
|
|
148
148
|
width: "110px",
|
|
149
149
|
height: "28px",
|
|
150
150
|
color: t,
|
|
@@ -193,7 +193,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
193
193
|
if (!e || e === document.body) return null;
|
|
194
194
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
195
195
|
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : oe(e.parentElement);
|
|
196
|
-
}, se = ({ labels: r, onCreateClick:
|
|
196
|
+
}, se = ({ labels: r, onCreateClick: a, searchQuery: o, onSearchQueryChange: s, sortKey: c, onSortChange: d, items: f, isLoading: p = !1, error: h, onRetry: _, hasMore: v = !1, isLoadingMore: y = !1, skeletonCount: b = 6, onLoadMore: x, onEdit: C, onRunNow: O, onDelete: k, styles: A }) => {
|
|
197
197
|
let { colors: M, typography: N, emptyStateIconSize: P = 48 } = A ?? {}, I = N?.titleClassName ?? "dial-h1-text", B = N?.subtitleClassName ?? "dial-body-text", V = t({
|
|
198
198
|
"--st-bg": M?.background,
|
|
199
199
|
"--st-subtitle-text": M?.subtitleText,
|
|
@@ -205,7 +205,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
205
205
|
title: e[t],
|
|
206
206
|
items: W.filter((e) => e.sectionKey === t)
|
|
207
207
|
})).filter((e) => e.items.length > 0);
|
|
208
|
-
}, [W, r.sharedSectionTitle]), K = ae(p, y, !!
|
|
208
|
+
}, [W, r.sharedSectionTitle]), K = ae(p, y, !!h, f.length, o.trim().length > 0, r), q = te(null);
|
|
209
209
|
ee(() => {
|
|
210
210
|
let e = q.current;
|
|
211
211
|
if (!e || !x) return;
|
|
@@ -224,15 +224,15 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
224
224
|
x
|
|
225
225
|
]);
|
|
226
226
|
let se = () => {
|
|
227
|
-
if (p) return /* @__PURE__ */ L(
|
|
228
|
-
if (
|
|
227
|
+
if (p) return /* @__PURE__ */ L(m, {});
|
|
228
|
+
if (h) return /* @__PURE__ */ R("div", {
|
|
229
229
|
className: "flex flex-col items-center gap-3",
|
|
230
230
|
children: [/* @__PURE__ */ L("p", {
|
|
231
231
|
className: n(B, J.subtitle),
|
|
232
232
|
children: r.errorLabel
|
|
233
|
-
}), /* @__PURE__ */ L(
|
|
233
|
+
}), /* @__PURE__ */ L(g, {
|
|
234
234
|
label: r.retryLabel,
|
|
235
|
-
onClick:
|
|
235
|
+
onClick: _
|
|
236
236
|
})]
|
|
237
237
|
});
|
|
238
238
|
if (f.length === 0) return o.trim() ? /* @__PURE__ */ L("p", {
|
|
@@ -268,7 +268,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
268
268
|
className: "h-px w-full"
|
|
269
269
|
})]
|
|
270
270
|
});
|
|
271
|
-
}, ce = p || !!
|
|
271
|
+
}, ce = p || !!h || f.length === 0;
|
|
272
272
|
return /* @__PURE__ */ R("div", {
|
|
273
273
|
style: V,
|
|
274
274
|
className: n("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", J.container),
|
|
@@ -287,10 +287,10 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
287
287
|
}), /* @__PURE__ */ L(S, {
|
|
288
288
|
label: r.createButtonLabel,
|
|
289
289
|
iconBefore: /* @__PURE__ */ L(j, {
|
|
290
|
-
size:
|
|
290
|
+
size: l.SM,
|
|
291
291
|
"aria-hidden": !0
|
|
292
292
|
}),
|
|
293
|
-
onClick:
|
|
293
|
+
onClick: a,
|
|
294
294
|
className: "shrink-0"
|
|
295
295
|
})]
|
|
296
296
|
}),
|
|
@@ -298,7 +298,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
298
298
|
className: "flex flex-wrap items-center gap-3",
|
|
299
299
|
children: [/* @__PURE__ */ L("div", {
|
|
300
300
|
className: "flex-1",
|
|
301
|
-
children: /* @__PURE__ */ L(
|
|
301
|
+
children: /* @__PURE__ */ L(i, {
|
|
302
302
|
value: o,
|
|
303
303
|
onChange: s,
|
|
304
304
|
labels: {
|
|
@@ -314,7 +314,7 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
314
314
|
clearButtonClassName: "size-11 desktop:size-auto"
|
|
315
315
|
}
|
|
316
316
|
})
|
|
317
|
-
}), r.sortOptions.length > 0 && /* @__PURE__ */ L(
|
|
317
|
+
}), r.sortOptions.length > 0 && /* @__PURE__ */ L(u, {
|
|
318
318
|
matchReferenceWidth: !1,
|
|
319
319
|
placement: "bottom-end",
|
|
320
320
|
listClassName: "cp-dropdown-overlay",
|
|
@@ -323,13 +323,13 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
323
323
|
label: /* @__PURE__ */ R("span", {
|
|
324
324
|
className: "flex w-full items-center justify-between gap-2",
|
|
325
325
|
children: [e.label, e.key === c && /* @__PURE__ */ L(E, {
|
|
326
|
-
size:
|
|
326
|
+
size: l.SM,
|
|
327
327
|
"aria-hidden": !0
|
|
328
328
|
})]
|
|
329
329
|
}),
|
|
330
|
-
onClick: () =>
|
|
330
|
+
onClick: () => d(e.key)
|
|
331
331
|
})),
|
|
332
|
-
children: /* @__PURE__ */ L(
|
|
332
|
+
children: /* @__PURE__ */ L(g, {
|
|
333
333
|
label: U,
|
|
334
334
|
"aria-label": r.sortLabel,
|
|
335
335
|
className: n("rounded-[4px]", J.sortButton),
|
|
@@ -376,14 +376,14 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
376
376
|
detailsColumn: "_detailsColumn_pvqly_9",
|
|
377
377
|
sectionSubtitle: "_sectionSubtitle_pvqly_13",
|
|
378
378
|
instructionsError: "_instructionsError_pvqly_17"
|
|
379
|
-
}, $ = (e) => `${e} *`, pe = P(async () => ({ default: (await b()).DialMarkdownEditor })), me = ({ labels: e, values:
|
|
379
|
+
}, $ = (e) => `${e} *`, pe = P(async () => ({ default: (await b()).DialMarkdownEditor })), me = ({ labels: e, values: i, errors: c, modelOptions: u, onFieldChange: f, onBack: p, onCancel: h, onSubmit: g, isSubmitting: v = !1, markdownEditorTheme: y, styles: b }) => {
|
|
380
380
|
let { colors: w, typography: T } = b ?? {}, E = T?.titleClassName ?? "dial-h1-text", D = T?.sectionTitleClassName ?? "dial-body-semi-text", O = T?.sectionSubtitleClassName ?? "dial-tiny-text", k = T?.scheduleSectionLabelClassName ?? "dial-body-semi-text mb-1", A = T?.instructionsErrorClassName ?? "dial-small-text", j = t({
|
|
381
381
|
"--stcf-bg": w?.background,
|
|
382
382
|
"--stcf-header-border": w?.headerBorder,
|
|
383
383
|
"--stcf-details-border": w?.detailsColumnBorder,
|
|
384
384
|
"--stcf-subtitle-text": w?.sectionSubtitleText,
|
|
385
385
|
"--stcf-error-text": w?.instructionsErrorText
|
|
386
|
-
}), M = v || !
|
|
386
|
+
}), M = v || !i.displayName.trim() || !i.modelId || !i.prompt.trim();
|
|
387
387
|
return /* @__PURE__ */ R("div", {
|
|
388
388
|
style: j,
|
|
389
389
|
className: n("flex h-full w-full flex-col overflow-y-auto", Q.container),
|
|
@@ -391,14 +391,14 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
391
391
|
className: n("flex h-16 items-center justify-between gap-6 border-b px-8", Q.header),
|
|
392
392
|
children: [/* @__PURE__ */ R("div", {
|
|
393
393
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
394
|
-
children: [/* @__PURE__ */ L(
|
|
394
|
+
children: [/* @__PURE__ */ L(_, {
|
|
395
395
|
icon: /* @__PURE__ */ L(C, {
|
|
396
|
-
size:
|
|
396
|
+
size: l.LG,
|
|
397
397
|
className: "rtl:scale-x-[-1]",
|
|
398
398
|
"aria-hidden": !0
|
|
399
399
|
}),
|
|
400
400
|
"aria-label": e.backButtonLabel,
|
|
401
|
-
onClick:
|
|
401
|
+
onClick: p
|
|
402
402
|
}), /* @__PURE__ */ L("h1", {
|
|
403
403
|
className: n("truncate", E),
|
|
404
404
|
children: e.pageTitle
|
|
@@ -406,14 +406,12 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
406
406
|
}), /* @__PURE__ */ R("div", {
|
|
407
407
|
className: "flex items-center gap-2",
|
|
408
408
|
children: [/* @__PURE__ */ L(x, {
|
|
409
|
-
type: "button",
|
|
410
409
|
label: e.cancelButtonLabel,
|
|
411
|
-
onClick:
|
|
410
|
+
onClick: h,
|
|
412
411
|
disabled: v
|
|
413
412
|
}), /* @__PURE__ */ L(S, {
|
|
414
|
-
type: "button",
|
|
415
413
|
label: e.createButtonLabel,
|
|
416
|
-
onClick:
|
|
414
|
+
onClick: g,
|
|
417
415
|
disabled: M
|
|
418
416
|
})]
|
|
419
417
|
})]
|
|
@@ -435,35 +433,35 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
435
433
|
children: e.detailsSectionSubtitle
|
|
436
434
|
})]
|
|
437
435
|
}),
|
|
438
|
-
/* @__PURE__ */ L(
|
|
436
|
+
/* @__PURE__ */ L(r, {
|
|
439
437
|
id: "scheduled-task-display-name",
|
|
440
|
-
value:
|
|
441
|
-
onChange: (e) =>
|
|
438
|
+
value: i.displayName,
|
|
439
|
+
onChange: (e) => f("displayName", e ?? ""),
|
|
442
440
|
labelProps: {
|
|
443
441
|
label: e.displayNameLabel,
|
|
444
442
|
required: !0
|
|
445
443
|
},
|
|
446
|
-
invalid: !!
|
|
447
|
-
error:
|
|
444
|
+
invalid: !!c.displayName,
|
|
445
|
+
error: c.displayName
|
|
448
446
|
}),
|
|
449
|
-
/* @__PURE__ */ L(
|
|
447
|
+
/* @__PURE__ */ L(a, {
|
|
450
448
|
id: "scheduled-task-description",
|
|
451
|
-
value:
|
|
452
|
-
onChange: (e) =>
|
|
449
|
+
value: i.description ?? "",
|
|
450
|
+
onChange: (e) => f("description", e),
|
|
453
451
|
labelProps: { label: e.descriptionLabel },
|
|
454
452
|
maxLength: 500,
|
|
455
|
-
invalid: !!
|
|
456
|
-
error:
|
|
457
|
-
caption:
|
|
453
|
+
invalid: !!c.description,
|
|
454
|
+
error: c.description,
|
|
455
|
+
caption: i.description ? `${i.description.length}/500` : void 0
|
|
458
456
|
}),
|
|
459
|
-
/* @__PURE__ */ L(
|
|
457
|
+
/* @__PURE__ */ L(d, {
|
|
460
458
|
label: e.modelOrAgentLabel,
|
|
461
459
|
required: !0,
|
|
462
|
-
value:
|
|
460
|
+
value: i.modelId,
|
|
463
461
|
placeholder: e.modelPlaceholder,
|
|
464
|
-
onChange: (e) =>
|
|
465
|
-
error:
|
|
466
|
-
options:
|
|
462
|
+
onChange: (e) => f("modelId", e),
|
|
463
|
+
error: c.modelId,
|
|
464
|
+
options: u.map((e) => ({
|
|
467
465
|
value: e.id,
|
|
468
466
|
label: e.label
|
|
469
467
|
}))
|
|
@@ -475,10 +473,10 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
475
473
|
className: k,
|
|
476
474
|
children: e.scheduleSectionLabel
|
|
477
475
|
}),
|
|
478
|
-
/* @__PURE__ */ L(
|
|
476
|
+
/* @__PURE__ */ L(d, {
|
|
479
477
|
label: e.scheduleTypeAriaLabel,
|
|
480
|
-
value:
|
|
481
|
-
onChange: (e) =>
|
|
478
|
+
value: i.scheduleType,
|
|
479
|
+
onChange: (e) => f("scheduleType", e),
|
|
482
480
|
options: [{
|
|
483
481
|
value: Y.Once,
|
|
484
482
|
label: e.scheduleTypeOnceLabel
|
|
@@ -487,25 +485,25 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
487
485
|
label: e.scheduleTypeRecurringLabel
|
|
488
486
|
}]
|
|
489
487
|
}),
|
|
490
|
-
|
|
488
|
+
i.scheduleType === Y.Once && /* @__PURE__ */ R("div", {
|
|
491
489
|
className: "flex flex-col gap-1",
|
|
492
|
-
children: [/* @__PURE__ */ L(
|
|
490
|
+
children: [/* @__PURE__ */ L(o, {
|
|
493
491
|
id: "scheduled-task-run-at",
|
|
494
|
-
mode:
|
|
495
|
-
value: le(
|
|
496
|
-
onChange: (e) =>
|
|
492
|
+
mode: s.DateTime,
|
|
493
|
+
value: le(i.runAt),
|
|
494
|
+
onChange: (e) => f("runAt", ue(e)),
|
|
497
495
|
label: $(e.runAtLabel),
|
|
498
|
-
invalid: !!
|
|
499
|
-
}),
|
|
496
|
+
invalid: !!c.runAt
|
|
497
|
+
}), c.runAt && /* @__PURE__ */ L("p", {
|
|
500
498
|
className: n(A, Q.instructionsError),
|
|
501
|
-
children:
|
|
499
|
+
children: c.runAt
|
|
502
500
|
})]
|
|
503
501
|
}),
|
|
504
|
-
|
|
505
|
-
/* @__PURE__ */ L(
|
|
502
|
+
i.scheduleType === Y.Recurring && /* @__PURE__ */ R(I, { children: [
|
|
503
|
+
/* @__PURE__ */ L(d, {
|
|
506
504
|
label: e.frequencyLabel,
|
|
507
|
-
value:
|
|
508
|
-
onChange: (e) =>
|
|
505
|
+
value: i.frequency,
|
|
506
|
+
onChange: (e) => f("frequency", e),
|
|
509
507
|
options: e.frequencyOptions.map((e) => ({
|
|
510
508
|
value: e.key,
|
|
511
509
|
label: e.label
|
|
@@ -513,42 +511,42 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
513
511
|
}),
|
|
514
512
|
/* @__PURE__ */ R("div", {
|
|
515
513
|
className: "flex flex-col gap-1",
|
|
516
|
-
children: [/* @__PURE__ */ L(
|
|
514
|
+
children: [/* @__PURE__ */ L(o, {
|
|
517
515
|
id: "scheduled-task-time",
|
|
518
|
-
mode:
|
|
519
|
-
value:
|
|
520
|
-
onChange: (e) =>
|
|
516
|
+
mode: s.Time,
|
|
517
|
+
value: i.time,
|
|
518
|
+
onChange: (e) => f("time", typeof e == "string" ? e : ""),
|
|
521
519
|
label: $(e.timeLabel),
|
|
522
|
-
invalid: !!
|
|
523
|
-
}),
|
|
520
|
+
invalid: !!c.time
|
|
521
|
+
}), c.time && /* @__PURE__ */ L("p", {
|
|
524
522
|
className: n(A, Q.instructionsError),
|
|
525
|
-
children:
|
|
523
|
+
children: c.time
|
|
526
524
|
})]
|
|
527
525
|
}),
|
|
528
|
-
|
|
526
|
+
i.frequency === X.Weekly && /* @__PURE__ */ R("div", {
|
|
529
527
|
className: "flex flex-col gap-1",
|
|
530
|
-
children: [/* @__PURE__ */ L(
|
|
528
|
+
children: [/* @__PURE__ */ L(o, {
|
|
531
529
|
id: "scheduled-task-day-of-week",
|
|
532
|
-
mode:
|
|
533
|
-
value: de(
|
|
534
|
-
onChange: (e) =>
|
|
530
|
+
mode: s.Weekday,
|
|
531
|
+
value: de(i.dayOfWeek),
|
|
532
|
+
onChange: (e) => f("dayOfWeek", fe(e)),
|
|
535
533
|
label: $(e.dayOfWeekLabel),
|
|
536
|
-
invalid: !!
|
|
537
|
-
}),
|
|
534
|
+
invalid: !!c.dayOfWeek
|
|
535
|
+
}), c.dayOfWeek && /* @__PURE__ */ L("p", {
|
|
538
536
|
className: n(A, Q.instructionsError),
|
|
539
|
-
children:
|
|
537
|
+
children: c.dayOfWeek
|
|
540
538
|
})]
|
|
541
539
|
}),
|
|
542
|
-
|
|
540
|
+
i.frequency === X.Monthly && /* @__PURE__ */ L(r, {
|
|
543
541
|
id: "scheduled-task-day-of-month",
|
|
544
|
-
value:
|
|
545
|
-
onChange: (e) =>
|
|
542
|
+
value: i.dayOfMonth ?? "",
|
|
543
|
+
onChange: (e) => f("dayOfMonth", e ?? ""),
|
|
546
544
|
labelProps: {
|
|
547
545
|
label: e.dayOfMonthLabel,
|
|
548
546
|
required: !0
|
|
549
547
|
},
|
|
550
|
-
invalid: !!
|
|
551
|
-
error:
|
|
548
|
+
invalid: !!c.dayOfMonth,
|
|
549
|
+
error: c.dayOfMonth
|
|
552
550
|
})
|
|
553
551
|
] })
|
|
554
552
|
]
|
|
@@ -578,17 +576,17 @@ var z = /* @__PURE__ */ function(e) {
|
|
|
578
576
|
children: e.instructionsLabel
|
|
579
577
|
}),
|
|
580
578
|
/* @__PURE__ */ L(N, {
|
|
581
|
-
fallback: /* @__PURE__ */ L(
|
|
579
|
+
fallback: /* @__PURE__ */ L(m, {}),
|
|
582
580
|
children: /* @__PURE__ */ L(pe, {
|
|
583
|
-
value:
|
|
584
|
-
onChange: (e) =>
|
|
581
|
+
value: i.prompt,
|
|
582
|
+
onChange: (e) => f("prompt", e),
|
|
585
583
|
height: 480,
|
|
586
584
|
theme: y
|
|
587
585
|
})
|
|
588
586
|
}),
|
|
589
|
-
|
|
587
|
+
c.prompt && /* @__PURE__ */ L("p", {
|
|
590
588
|
className: n(A, Q.instructionsError),
|
|
591
|
-
children:
|
|
589
|
+
children: c.prompt
|
|
592
590
|
})
|
|
593
591
|
]
|
|
594
592
|
})]
|
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.78",
|
|
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-chat-shared": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-kit": "1.1.0-dev.
|
|
22
|
-
"@epam/ai-dial-ui-kit": "0.13.0-dev.
|
|
20
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.78",
|
|
21
|
+
"@epam/ai-dial-kit": "1.1.0-dev.78",
|
|
22
|
+
"@epam/ai-dial-ui-kit": "0.13.0-dev.25",
|
|
23
23
|
"@tabler/icons-react": "^3.44.0",
|
|
24
24
|
"react": "^19.0.0"
|
|
25
25
|
},
|