@epam/ai-dial-scheduled-tasks 1.1.0-dev.184 → 1.1.0-dev.188
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/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
- package/index.js +312 -283
- package/models/scheduled-task-detail-view-props.d.ts +14 -4
- package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskDetailView.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskDetailView/ScheduledTaskDetailView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScheduledTaskDetailView.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskDetailView/ScheduledTaskDetailView.tsx"],"names":[],"mappings":"AAmBA,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,CA4UpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskRunHistoryList.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScheduledTaskRunHistoryList.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,EAAsB,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oDAAoD,CAAC;AA0C3G;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAC1C,gCAAgC,CA+JjC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MDMessageViewer as e, PanelEmptyState as t, buildCssVars as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { ButtonAppearance as i, ButtonDropdown as a, ButtonVariant as o, Calendar as s, CalendarMode as c, CardShell as l, DIAL_ICON_SIZE as u, ElementSize 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, Search as S, Select as C, Skeleton as w, SkeletonVariant as T, Spinner as E, Switch as D, Textarea as O } from "@epam/ai-dial-ui-kit";
|
|
3
|
-
import { IconAlertTriangle as k, IconArrowLeft as
|
|
4
|
-
import { Suspense as P, lazy as F, useEffect as I, useRef as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { BuilderFormContainer as
|
|
7
|
-
var
|
|
3
|
+
import { IconAlertTriangle as k, IconArrowLeft as A, IconCalendarTime as ee, IconCircleCheck as j, IconCircleX as M, IconClipboardX as N, IconPencilMinus as te, IconPlayerPause as ne, IconPlus as re, IconTrashX as ie } from "@tabler/icons-react";
|
|
4
|
+
import { Suspense as P, lazy as F, useEffect as I, useRef as ae } from "react";
|
|
5
|
+
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
6
|
+
import { BuilderFormContainer as B } from "@epam/ai-dial-builder-form";
|
|
7
|
+
var V = {
|
|
8
8
|
title: "_title_xe5uf_1",
|
|
9
9
|
description: "_description_xe5uf_5",
|
|
10
10
|
schedulePill: "_schedulePill_xe5uf_9",
|
|
@@ -15,7 +15,7 @@ var H = {
|
|
|
15
15
|
pausedPill: "_pausedPill_xe5uf_31",
|
|
16
16
|
pausedLabel: "_pausedLabel_xe5uf_36",
|
|
17
17
|
locationDivider: "_locationDivider_xe5uf_40"
|
|
18
|
-
},
|
|
18
|
+
}, oe = ({ item: e, searchQuery: t = "", onCardClick: i, labels: a, styles: o, className: s }) => {
|
|
19
19
|
let c = a?.newBadgeLabel ?? "NEW", d = 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({
|
|
20
20
|
"--stc-title-text": p?.titleText,
|
|
21
21
|
"--stc-desc-text": p?.descriptionText,
|
|
@@ -37,116 +37,116 @@ var H = {
|
|
|
37
37
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e.id));
|
|
38
38
|
}
|
|
39
39
|
} : {};
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ z(l, {
|
|
41
41
|
role: i ? "button" : "group",
|
|
42
42
|
"aria-label": e.displayName,
|
|
43
43
|
style: w,
|
|
44
44
|
className: r("h-[232px]", i && "cursor-pointer", s),
|
|
45
45
|
...T,
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ z("div", {
|
|
48
48
|
className: "flex min-w-0 shrink-0 items-center gap-2",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ R(h, {
|
|
50
50
|
text: e.displayName,
|
|
51
51
|
query: t,
|
|
52
52
|
maxLines: 1,
|
|
53
|
-
className: r(g,
|
|
54
|
-
}), e.isNew && /* @__PURE__ */
|
|
55
|
-
className: r("shrink-0 rounded-full px-2 py-0.5", S,
|
|
53
|
+
className: r(g, V.title)
|
|
54
|
+
}), e.isNew && /* @__PURE__ */ R("span", {
|
|
55
|
+
className: r("shrink-0 rounded-full px-2 py-0.5", S, V.newBadge),
|
|
56
56
|
children: c
|
|
57
57
|
})]
|
|
58
58
|
}),
|
|
59
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
60
|
-
className: r("line-clamp-4 min-h-0 flex-1 overflow-hidden", v, _,
|
|
59
|
+
e.descriptionPreview && /* @__PURE__ */ R("p", {
|
|
60
|
+
className: r("line-clamp-4 min-h-0 flex-1 overflow-hidden", v, _, V.description),
|
|
61
61
|
children: e.descriptionPreview
|
|
62
62
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ z("div", {
|
|
64
64
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ R("div", {
|
|
66
66
|
className: "flex min-h-[28px] items-center",
|
|
67
|
-
children: e.isActive === !1 ? /* @__PURE__ */
|
|
68
|
-
className: r("inline-flex items-center gap-1.5 rounded-full border px-2 py-1",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: e.isActive === !1 ? /* @__PURE__ */ z("span", {
|
|
68
|
+
className: r("inline-flex items-center gap-1.5 rounded-full border px-2 py-1", V.pausedPill, C, V.pausedLabel),
|
|
69
|
+
children: [/* @__PURE__ */ R(ne, {
|
|
70
70
|
size: u.SM,
|
|
71
71
|
"aria-hidden": !0
|
|
72
72
|
}), d]
|
|
73
|
-
}) : /* @__PURE__ */
|
|
74
|
-
className: r("inline-block rounded-lg border px-2 py-1",
|
|
73
|
+
}) : /* @__PURE__ */ R("span", {
|
|
74
|
+
className: r("inline-block rounded-lg border px-2 py-1", V.schedulePill, y, V.scheduleLabel),
|
|
75
75
|
children: e.scheduleLabel
|
|
76
76
|
})
|
|
77
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
77
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ R(f, {
|
|
78
78
|
segments: e.locationSegments,
|
|
79
|
-
labelClassName: r(b,
|
|
80
|
-
leafClassName: r(x,
|
|
81
|
-
className: r("pt-3",
|
|
79
|
+
labelClassName: r(b, V.locationLabel),
|
|
80
|
+
leafClassName: r(x, V.locationLeaf),
|
|
81
|
+
className: r("pt-3", V.locationDivider)
|
|
82
82
|
})]
|
|
83
83
|
})
|
|
84
84
|
]
|
|
85
85
|
});
|
|
86
|
-
},
|
|
86
|
+
}, H = { card: "_card_1a43j_1" }, U = [
|
|
87
87
|
"100%",
|
|
88
88
|
"100%",
|
|
89
89
|
"61%"
|
|
90
|
-
],
|
|
90
|
+
], W = "var(--stcs-skeleton-bg)", G = ({ styles: e }) => /* @__PURE__ */ z(l, {
|
|
91
91
|
"aria-hidden": !0,
|
|
92
92
|
style: n({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
|
|
93
|
-
className: r("h-[232px]",
|
|
93
|
+
className: r("h-[232px]", H.card),
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ R(w, {
|
|
96
96
|
variant: T.Rectangular,
|
|
97
97
|
width: "60%",
|
|
98
98
|
height: "20px",
|
|
99
|
-
color:
|
|
99
|
+
color: W,
|
|
100
100
|
className: "shrink-0"
|
|
101
101
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ R("div", {
|
|
103
103
|
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
104
|
-
children:
|
|
104
|
+
children: U.map((e, t) => /* @__PURE__ */ R(w, {
|
|
105
105
|
variant: T.Rectangular,
|
|
106
106
|
width: e,
|
|
107
107
|
height: "16px",
|
|
108
|
-
color:
|
|
108
|
+
color: W
|
|
109
109
|
}, t))
|
|
110
110
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ R(w, {
|
|
112
112
|
variant: T.Rectangular,
|
|
113
113
|
width: "110px",
|
|
114
114
|
height: "28px",
|
|
115
|
-
color:
|
|
115
|
+
color: W,
|
|
116
116
|
className: "shrink-0 rounded-lg"
|
|
117
117
|
})
|
|
118
118
|
]
|
|
119
|
-
}),
|
|
119
|
+
}), K = ({ items: e, searchQuery: t, onCardClick: n, labels: r, cardStyles: i, trailingSkeletonCount: a = 0, skeletonStyles: o }) => /* @__PURE__ */ z("div", {
|
|
120
120
|
className: "grid grid-cols-1 gap-5 desktop:grid-cols-3",
|
|
121
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
121
|
+
children: [e.map((e) => /* @__PURE__ */ R(oe, {
|
|
122
122
|
item: e,
|
|
123
123
|
searchQuery: t,
|
|
124
124
|
onCardClick: n,
|
|
125
125
|
labels: r,
|
|
126
126
|
styles: i
|
|
127
|
-
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */
|
|
127
|
+
}, e.id)), Array.from({ length: a }, (e, t) => /* @__PURE__ */ R(G, { styles: o }, `skeleton-${t}`))]
|
|
128
128
|
}), q = {
|
|
129
129
|
container: "_container_r5sk9_1",
|
|
130
130
|
subtitle: "_subtitle_r5sk9_5",
|
|
131
131
|
sortButton: "_sortButton_r5sk9_9"
|
|
132
|
-
},
|
|
132
|
+
}, se = (e, t, n, r, i, a) => {
|
|
133
133
|
if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
|
|
134
|
-
},
|
|
134
|
+
}, ce = (e) => {
|
|
135
135
|
if (!e || e === document.body) return null;
|
|
136
136
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
137
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
138
|
-
},
|
|
139
|
-
let { colors: O, typography: k, emptyStateIconSize:
|
|
137
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : ce(e.parentElement);
|
|
138
|
+
}, le = ({ labels: e, onCreateClick: s, searchQuery: c, onSearchQueryChange: l, sortKey: f, onSortChange: m, items: h, isLoading: g = !1, error: _, onRetry: v, hasMore: y = !1, isLoadingMore: b = !1, skeletonCount: C = 6, onLoadMore: w, onCardClick: T, styles: D }) => {
|
|
139
|
+
let { colors: O, typography: k, emptyStateIconSize: A = 48 } = D ?? {}, j = k?.titleClassName ?? "dial-h1-text", M = k?.subtitleClassName ?? "dial-body-text", N = n({
|
|
140
140
|
"--st-bg": O?.background,
|
|
141
141
|
"--st-subtitle-text": O?.subtitleText,
|
|
142
142
|
"--st-sort-text": O?.sortButtonText
|
|
143
|
-
}),
|
|
143
|
+
}), te = (e) => {
|
|
144
144
|
l(e ?? "");
|
|
145
|
-
},
|
|
145
|
+
}, ne = e.sortOptions.find((e) => e.key === f)?.label ?? "", ie = se(g, b, !!_, h.length, c.trim().length > 0, e), P = ae(null);
|
|
146
146
|
I(() => {
|
|
147
|
-
let e =
|
|
147
|
+
let e = P.current;
|
|
148
148
|
if (!e || !w) return;
|
|
149
|
-
let t =
|
|
149
|
+
let t = ce(e.parentElement);
|
|
150
150
|
if (!t) return;
|
|
151
151
|
let n = () => {
|
|
152
152
|
if (b || g || !y) return;
|
|
@@ -160,58 +160,58 @@ var H = {
|
|
|
160
160
|
g,
|
|
161
161
|
w
|
|
162
162
|
]);
|
|
163
|
-
let
|
|
163
|
+
let F = () => g ? /* @__PURE__ */ R(E, {}) : _ ? /* @__PURE__ */ z("div", {
|
|
164
164
|
className: "flex flex-col items-center gap-3",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
166
|
-
className: r(
|
|
165
|
+
children: [/* @__PURE__ */ R("p", {
|
|
166
|
+
className: r(M, q.subtitle),
|
|
167
167
|
children: e.errorLabel
|
|
168
|
-
}), /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ R(p, {
|
|
169
169
|
label: e.retryLabel,
|
|
170
170
|
onClick: v
|
|
171
171
|
})]
|
|
172
|
-
}) : h.length === 0 ? c.trim() ? /* @__PURE__ */
|
|
173
|
-
className: r(
|
|
172
|
+
}) : h.length === 0 ? c.trim() ? /* @__PURE__ */ R("p", {
|
|
173
|
+
className: r(M, q.subtitle),
|
|
174
174
|
children: e.noResultsLabel
|
|
175
|
-
}) : /* @__PURE__ */
|
|
176
|
-
icon: /* @__PURE__ */
|
|
175
|
+
}) : /* @__PURE__ */ R(t, {
|
|
176
|
+
icon: /* @__PURE__ */ R(ee, {
|
|
177
177
|
"aria-hidden": !0,
|
|
178
|
-
size:
|
|
178
|
+
size: A,
|
|
179
179
|
stroke: 1
|
|
180
180
|
}),
|
|
181
181
|
label: e.emptyStateLabel
|
|
182
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ z("div", {
|
|
183
183
|
className: "flex w-full flex-col gap-6",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ R(K, {
|
|
185
185
|
items: h,
|
|
186
186
|
searchQuery: c,
|
|
187
187
|
onCardClick: T,
|
|
188
188
|
labels: e.cardLabels,
|
|
189
189
|
trailingSkeletonCount: b ? C : 0,
|
|
190
190
|
skeletonStyles: { colors: { skeletonColor: O?.skeletonColor } }
|
|
191
|
-
}), /* @__PURE__ */
|
|
192
|
-
ref:
|
|
191
|
+
}), /* @__PURE__ */ R("div", {
|
|
192
|
+
ref: P,
|
|
193
193
|
"aria-hidden": !0,
|
|
194
194
|
className: "h-px w-full"
|
|
195
195
|
})]
|
|
196
|
-
}),
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
style:
|
|
196
|
+
}), L = g || !!_ || h.length === 0;
|
|
197
|
+
return /* @__PURE__ */ z("div", {
|
|
198
|
+
style: N,
|
|
199
199
|
className: r("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", q.container),
|
|
200
200
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ z("div", {
|
|
202
202
|
className: "flex items-start justify-between gap-4",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ z("div", {
|
|
204
204
|
className: "min-w-0 gap-2",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
206
|
-
className: r("truncate",
|
|
205
|
+
children: [/* @__PURE__ */ R("h1", {
|
|
206
|
+
className: r("truncate", j),
|
|
207
207
|
children: e.title
|
|
208
|
-
}), /* @__PURE__ */
|
|
209
|
-
className: r("mt-1",
|
|
208
|
+
}), /* @__PURE__ */ R("p", {
|
|
209
|
+
className: r("mt-1", M, q.subtitle),
|
|
210
210
|
children: e.subtitle
|
|
211
211
|
})]
|
|
212
|
-
}), /* @__PURE__ */
|
|
212
|
+
}), /* @__PURE__ */ R(x, {
|
|
213
213
|
label: e.createButtonLabel,
|
|
214
|
-
iconBefore: /* @__PURE__ */
|
|
214
|
+
iconBefore: /* @__PURE__ */ R(re, {
|
|
215
215
|
size: u.SM,
|
|
216
216
|
"aria-hidden": !0
|
|
217
217
|
}),
|
|
@@ -219,21 +219,21 @@ var H = {
|
|
|
219
219
|
className: "shrink-0"
|
|
220
220
|
})]
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ z("div", {
|
|
223
223
|
className: "flex flex-wrap items-center gap-3",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ R("div", {
|
|
225
225
|
role: "search",
|
|
226
226
|
className: "flex-1",
|
|
227
|
-
children: /* @__PURE__ */
|
|
227
|
+
children: /* @__PURE__ */ R(S, {
|
|
228
228
|
value: c,
|
|
229
|
-
onChange:
|
|
229
|
+
onChange: te,
|
|
230
230
|
placeholder: e.searchPlaceholder,
|
|
231
231
|
clearLabel: e.clearSearchLabel,
|
|
232
232
|
"aria-label": e.searchAriaLabel,
|
|
233
233
|
size: d.Large
|
|
234
234
|
})
|
|
235
|
-
}), e.sortOptions.length > 0 && /* @__PURE__ */
|
|
236
|
-
label:
|
|
235
|
+
}), e.sortOptions.length > 0 && /* @__PURE__ */ R(a, {
|
|
236
|
+
label: ne,
|
|
237
237
|
variant: o.Primary,
|
|
238
238
|
appearance: i.Ghost,
|
|
239
239
|
items: e.sortOptions.map((e) => ({
|
|
@@ -242,51 +242,51 @@ var H = {
|
|
|
242
242
|
}))
|
|
243
243
|
})]
|
|
244
244
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ R("span", {
|
|
246
246
|
role: "status",
|
|
247
247
|
"aria-live": "polite",
|
|
248
248
|
className: "sr-only",
|
|
249
|
-
children:
|
|
249
|
+
children: ie
|
|
250
250
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
className: r("mx-auto flex size-full w-full max-w-[1180px] flex-col",
|
|
253
|
-
children:
|
|
251
|
+
/* @__PURE__ */ R("div", {
|
|
252
|
+
className: r("mx-auto flex size-full w-full max-w-[1180px] flex-col", L && "items-center justify-center"),
|
|
253
|
+
children: F()
|
|
254
254
|
})
|
|
255
255
|
]
|
|
256
256
|
});
|
|
257
|
-
},
|
|
257
|
+
}, ue = /* @__PURE__ */ function(e) {
|
|
258
258
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
259
|
-
}({}),
|
|
259
|
+
}({}), de = 500, J = /* @__PURE__ */ function(e) {
|
|
260
260
|
return e.OneTime = "oneTime", e.Hourly = "hourly", e.Daily = "daily", e.Weekly = "weekly", e.Monthly = "monthly", e;
|
|
261
|
-
}({}), Y = (e) => String(e).padStart(2, "0"),
|
|
261
|
+
}({}), Y = (e) => String(e).padStart(2, "0"), fe = (e) => e ? new Date(e) : null, pe = (e) => {
|
|
262
262
|
if (e == null) return "";
|
|
263
263
|
let t = e instanceof Date ? e : new Date(e);
|
|
264
264
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${Y(t.getMonth() + 1)}-${Y(t.getDate())}T${Y(t.getHours())}:${Y(t.getMinutes())}`;
|
|
265
|
-
},
|
|
265
|
+
}, me = (e) => {
|
|
266
266
|
if (!e) return null;
|
|
267
267
|
let [t, n, r] = e.split("-").map(Number);
|
|
268
268
|
return new Date(t, n - 1, r);
|
|
269
|
-
},
|
|
269
|
+
}, he = (e) => {
|
|
270
270
|
if (e == null) return "";
|
|
271
271
|
let t = e instanceof Date ? e : new Date(e);
|
|
272
272
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${Y(t.getMonth() + 1)}-${Y(t.getDate())}`;
|
|
273
|
-
},
|
|
273
|
+
}, ge = (e) => {
|
|
274
274
|
let t = Number(e);
|
|
275
275
|
return e && Number.isFinite(t) ? String(t + 1) : null;
|
|
276
|
-
},
|
|
276
|
+
}, _e = (e) => {
|
|
277
277
|
let t = typeof e == "string" ? Number(e) : NaN;
|
|
278
278
|
return Number.isFinite(t) ? String(t - 1) : "";
|
|
279
279
|
}, X = {
|
|
280
280
|
detailsColumn: "_detailsColumn_1mg3v_1",
|
|
281
281
|
sectionSubtitle: "_sectionSubtitle_1mg3v_5",
|
|
282
282
|
instructionsError: "_instructionsError_1mg3v_9"
|
|
283
|
-
},
|
|
283
|
+
}, ve = F(async () => ({ default: (await v()).MarkdownEditor })), ye = ({ labels: e, values: t, errors: i, modelSelector: a, modelLabelId: o, onFieldChange: l, onBack: u, onCancel: d, onSubmit: f, isSubmitting: p = !1, markdownEditorTheme: m, styles: h }) => {
|
|
284
284
|
let { colors: v, typography: y } = h ?? {}, x = y?.titleClassName ?? "dial-h1-text", S = y?.sectionTitleClassName ?? "dial-body-semi-text", w = y?.sectionSubtitleClassName ?? "dial-tiny-text", T = y?.instructionsLabelClassName ?? "dial-body-semi-text mb-1", D = y?.instructionsErrorClassName ?? "dial-small-text", k = n({
|
|
285
285
|
"--stcf-details-border": v?.detailsColumnBorder,
|
|
286
286
|
"--stcf-subtitle-text": v?.sectionSubtitleText,
|
|
287
287
|
"--stcf-error-text": v?.instructionsErrorText
|
|
288
|
-
}),
|
|
289
|
-
return /* @__PURE__ */
|
|
288
|
+
}), A = p || !t.displayName.trim() || !t.modelId || !t.prompt.trim();
|
|
289
|
+
return /* @__PURE__ */ R(B, {
|
|
290
290
|
labels: {
|
|
291
291
|
title: e.pageTitle,
|
|
292
292
|
backButtonLabel: e.backButtonLabel,
|
|
@@ -297,7 +297,7 @@ var H = {
|
|
|
297
297
|
onCancel: d,
|
|
298
298
|
onSubmit: f,
|
|
299
299
|
isCancelDisabled: p,
|
|
300
|
-
isSubmitDisabled:
|
|
300
|
+
isSubmitDisabled: A,
|
|
301
301
|
styles: {
|
|
302
302
|
colors: { background: v?.background },
|
|
303
303
|
header: {
|
|
@@ -306,22 +306,22 @@ var H = {
|
|
|
306
306
|
},
|
|
307
307
|
cssVars: k
|
|
308
308
|
},
|
|
309
|
-
left: /* @__PURE__ */
|
|
309
|
+
left: /* @__PURE__ */ z("div", {
|
|
310
310
|
role: "group",
|
|
311
311
|
"aria-label": e.detailsSectionTitle,
|
|
312
312
|
className: r("flex flex-1 flex-col gap-5 border-e px-8 py-6", X.detailsColumn),
|
|
313
313
|
children: [
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ z("div", {
|
|
315
315
|
className: "flex flex-col gap-1",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ R("h2", {
|
|
317
317
|
className: S,
|
|
318
318
|
children: e.detailsSectionTitle
|
|
319
|
-
}), /* @__PURE__ */
|
|
319
|
+
}), /* @__PURE__ */ R("p", {
|
|
320
320
|
className: r(w, X.sectionSubtitle),
|
|
321
321
|
children: e.detailsSectionSubtitle
|
|
322
322
|
})]
|
|
323
323
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ R(g, {
|
|
325
325
|
id: "scheduled-task-display-name",
|
|
326
326
|
value: t.displayName,
|
|
327
327
|
onChange: (e) => l("displayName", e ?? ""),
|
|
@@ -332,7 +332,7 @@ var H = {
|
|
|
332
332
|
invalid: !!i.displayName,
|
|
333
333
|
error: i.displayName
|
|
334
334
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ R(O, {
|
|
336
336
|
id: "scheduled-task-description",
|
|
337
337
|
value: t.description ?? "",
|
|
338
338
|
onChange: (e) => l("description", e),
|
|
@@ -342,25 +342,25 @@ var H = {
|
|
|
342
342
|
error: i.description,
|
|
343
343
|
caption: t.description ? `${t.description.length}/500` : void 0
|
|
344
344
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ z("div", {
|
|
346
346
|
className: "flex flex-col gap-1",
|
|
347
347
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ R(_, {
|
|
349
349
|
id: o,
|
|
350
350
|
label: e.modelOrAgentLabel,
|
|
351
351
|
required: !0
|
|
352
352
|
}),
|
|
353
353
|
a,
|
|
354
|
-
i.modelId && /* @__PURE__ */
|
|
354
|
+
i.modelId && /* @__PURE__ */ R("p", {
|
|
355
355
|
className: r(D, X.instructionsError),
|
|
356
356
|
children: i.modelId
|
|
357
357
|
})
|
|
358
358
|
]
|
|
359
359
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ z("div", {
|
|
361
361
|
className: "flex flex-col gap-3",
|
|
362
362
|
children: [
|
|
363
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ R(C, {
|
|
364
364
|
labelProps: { label: e.repeatLabel },
|
|
365
365
|
value: t.repeat,
|
|
366
366
|
onChange: (e) => l("repeat", e),
|
|
@@ -369,27 +369,27 @@ var H = {
|
|
|
369
369
|
label: e.label
|
|
370
370
|
}))
|
|
371
371
|
}),
|
|
372
|
-
t.repeat === J.OneTime && /* @__PURE__ */
|
|
372
|
+
t.repeat === J.OneTime && /* @__PURE__ */ z("div", {
|
|
373
373
|
className: "flex flex-col gap-1",
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ R(s, {
|
|
375
375
|
id: "scheduled-task-run-at",
|
|
376
376
|
mode: c.DateTime,
|
|
377
|
-
value:
|
|
378
|
-
onChange: (e) => l("runAt",
|
|
377
|
+
value: fe(t.runAt),
|
|
378
|
+
onChange: (e) => l("runAt", pe(e)),
|
|
379
379
|
labelProps: {
|
|
380
380
|
label: e.runAtLabel,
|
|
381
381
|
required: !0
|
|
382
382
|
},
|
|
383
383
|
invalid: !!i.runAt
|
|
384
|
-
}), i.runAt && /* @__PURE__ */
|
|
384
|
+
}), i.runAt && /* @__PURE__ */ R("p", {
|
|
385
385
|
className: r(D, X.instructionsError),
|
|
386
386
|
children: i.runAt
|
|
387
387
|
})]
|
|
388
388
|
}),
|
|
389
|
-
t.repeat !== J.OneTime && /* @__PURE__ */
|
|
390
|
-
t.repeat !== J.Hourly && /* @__PURE__ */
|
|
389
|
+
t.repeat !== J.OneTime && /* @__PURE__ */ z(L, { children: [
|
|
390
|
+
t.repeat !== J.Hourly && /* @__PURE__ */ z("div", {
|
|
391
391
|
className: "flex flex-col gap-1",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ R(s, {
|
|
393
393
|
id: "scheduled-task-time",
|
|
394
394
|
mode: c.Time,
|
|
395
395
|
value: t.time,
|
|
@@ -399,29 +399,29 @@ var H = {
|
|
|
399
399
|
required: !0
|
|
400
400
|
},
|
|
401
401
|
invalid: !!i.time
|
|
402
|
-
}), i.time && /* @__PURE__ */
|
|
402
|
+
}), i.time && /* @__PURE__ */ R("p", {
|
|
403
403
|
className: r(D, X.instructionsError),
|
|
404
404
|
children: i.time
|
|
405
405
|
})]
|
|
406
406
|
}),
|
|
407
|
-
t.repeat === J.Weekly && /* @__PURE__ */
|
|
407
|
+
t.repeat === J.Weekly && /* @__PURE__ */ z("div", {
|
|
408
408
|
className: "flex flex-col gap-1",
|
|
409
|
-
children: [/* @__PURE__ */
|
|
409
|
+
children: [/* @__PURE__ */ R(s, {
|
|
410
410
|
id: "scheduled-task-day-of-week",
|
|
411
411
|
mode: c.Weekday,
|
|
412
|
-
value:
|
|
413
|
-
onChange: (e) => l("dayOfWeek",
|
|
412
|
+
value: ge(t.dayOfWeek),
|
|
413
|
+
onChange: (e) => l("dayOfWeek", _e(e)),
|
|
414
414
|
labelProps: {
|
|
415
415
|
label: e.dayOfWeekLabel,
|
|
416
416
|
required: !0
|
|
417
417
|
},
|
|
418
418
|
invalid: !!i.dayOfWeek
|
|
419
|
-
}), i.dayOfWeek && /* @__PURE__ */
|
|
419
|
+
}), i.dayOfWeek && /* @__PURE__ */ R("p", {
|
|
420
420
|
className: r(D, X.instructionsError),
|
|
421
421
|
children: i.dayOfWeek
|
|
422
422
|
})]
|
|
423
423
|
}),
|
|
424
|
-
t.repeat === J.Monthly && /* @__PURE__ */
|
|
424
|
+
t.repeat === J.Monthly && /* @__PURE__ */ R(g, {
|
|
425
425
|
id: "scheduled-task-day-of-month",
|
|
426
426
|
value: t.dayOfMonth ?? "",
|
|
427
427
|
onChange: (e) => l("dayOfMonth", e ?? ""),
|
|
@@ -432,7 +432,7 @@ var H = {
|
|
|
432
432
|
invalid: !!i.dayOfMonth,
|
|
433
433
|
error: i.dayOfMonth
|
|
434
434
|
}),
|
|
435
|
-
t.repeat === J.Hourly && /* @__PURE__ */
|
|
435
|
+
t.repeat === J.Hourly && /* @__PURE__ */ R(b, {
|
|
436
436
|
id: "scheduled-task-minute",
|
|
437
437
|
integer: !0,
|
|
438
438
|
min: 0,
|
|
@@ -446,33 +446,33 @@ var H = {
|
|
|
446
446
|
invalid: !!i.minute,
|
|
447
447
|
error: i.minute
|
|
448
448
|
}),
|
|
449
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ z("div", {
|
|
450
450
|
className: "flex flex-col gap-3 desktop:flex-row",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ z("div", {
|
|
452
452
|
className: "flex flex-1 flex-col gap-1",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ R(s, {
|
|
454
454
|
id: "scheduled-task-start-date",
|
|
455
455
|
mode: c.Date,
|
|
456
|
-
value:
|
|
457
|
-
onChange: (e) => l("startDate",
|
|
456
|
+
value: me(t.startDate),
|
|
457
|
+
onChange: (e) => l("startDate", he(e)),
|
|
458
458
|
labelProps: { label: e.startDateLabel },
|
|
459
459
|
placeholder: e.startDatePlaceholder,
|
|
460
460
|
invalid: !!i.startDate
|
|
461
|
-
}), i.startDate && /* @__PURE__ */
|
|
461
|
+
}), i.startDate && /* @__PURE__ */ R("p", {
|
|
462
462
|
className: r(D, X.instructionsError),
|
|
463
463
|
children: i.startDate
|
|
464
464
|
})]
|
|
465
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ z("div", {
|
|
466
466
|
className: "flex flex-1 flex-col gap-1",
|
|
467
|
-
children: [/* @__PURE__ */
|
|
467
|
+
children: [/* @__PURE__ */ R(s, {
|
|
468
468
|
id: "scheduled-task-end-date",
|
|
469
469
|
mode: c.Date,
|
|
470
|
-
value:
|
|
471
|
-
onChange: (e) => l("endDate",
|
|
470
|
+
value: me(t.endDate),
|
|
471
|
+
onChange: (e) => l("endDate", he(e)),
|
|
472
472
|
labelProps: { label: e.endDateLabel },
|
|
473
473
|
placeholder: e.endDatePlaceholder,
|
|
474
474
|
invalid: !!i.endDate
|
|
475
|
-
}), i.endDate && /* @__PURE__ */
|
|
475
|
+
}), i.endDate && /* @__PURE__ */ R("p", {
|
|
476
476
|
className: r(D, X.instructionsError),
|
|
477
477
|
children: i.endDate
|
|
478
478
|
})]
|
|
@@ -483,38 +483,38 @@ var H = {
|
|
|
483
483
|
})
|
|
484
484
|
]
|
|
485
485
|
}),
|
|
486
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ z("div", {
|
|
487
487
|
role: "group",
|
|
488
488
|
"aria-label": e.configurationSectionTitle,
|
|
489
489
|
className: "flex flex-1 flex-col gap-5 px-8 py-6",
|
|
490
|
-
children: [/* @__PURE__ */
|
|
490
|
+
children: [/* @__PURE__ */ z("div", {
|
|
491
491
|
className: "flex flex-col gap-1",
|
|
492
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ R("h2", {
|
|
493
493
|
className: S,
|
|
494
494
|
children: e.configurationSectionTitle
|
|
495
|
-
}), /* @__PURE__ */
|
|
495
|
+
}), /* @__PURE__ */ R("p", {
|
|
496
496
|
className: r(w, X.sectionSubtitle),
|
|
497
497
|
children: e.configurationSectionSubtitle
|
|
498
498
|
})]
|
|
499
|
-
}), /* @__PURE__ */
|
|
499
|
+
}), /* @__PURE__ */ z("div", {
|
|
500
500
|
role: "group",
|
|
501
501
|
"aria-label": e.instructionsLabel,
|
|
502
502
|
className: "flex flex-1 flex-col gap-1",
|
|
503
503
|
children: [
|
|
504
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ R("span", {
|
|
505
505
|
className: T,
|
|
506
506
|
children: e.instructionsLabel
|
|
507
507
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
fallback: /* @__PURE__ */
|
|
510
|
-
children: /* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ R(P, {
|
|
509
|
+
fallback: /* @__PURE__ */ R(E, {}),
|
|
510
|
+
children: /* @__PURE__ */ R(ve, {
|
|
511
511
|
value: t.prompt,
|
|
512
512
|
onChange: (e) => l("prompt", e),
|
|
513
513
|
height: 480,
|
|
514
514
|
theme: m
|
|
515
515
|
})
|
|
516
516
|
}),
|
|
517
|
-
i.prompt && /* @__PURE__ */
|
|
517
|
+
i.prompt && /* @__PURE__ */ R("p", {
|
|
518
518
|
className: r(D, X.instructionsError),
|
|
519
519
|
children: i.prompt
|
|
520
520
|
})
|
|
@@ -530,30 +530,30 @@ var H = {
|
|
|
530
530
|
errorIcon: "_errorIcon_8bk8k_9",
|
|
531
531
|
missedIcon: "_missedIcon_8bk8k_13",
|
|
532
532
|
currentRun: "_currentRun_8bk8k_17"
|
|
533
|
-
},
|
|
533
|
+
}, be = ({ status: e }) => {
|
|
534
534
|
switch (e) {
|
|
535
|
-
case Z.Success: return /* @__PURE__ */
|
|
535
|
+
case Z.Success: return /* @__PURE__ */ R(j, {
|
|
536
536
|
size: u.SM,
|
|
537
537
|
className: Q.successIcon,
|
|
538
538
|
"aria-hidden": !0
|
|
539
539
|
});
|
|
540
|
-
case Z.Error: return /* @__PURE__ */
|
|
540
|
+
case Z.Error: return /* @__PURE__ */ R(M, {
|
|
541
541
|
size: u.SM,
|
|
542
542
|
className: Q.errorIcon,
|
|
543
543
|
"aria-hidden": !0
|
|
544
544
|
});
|
|
545
|
-
case Z.InProgress: return /* @__PURE__ */
|
|
545
|
+
case Z.InProgress: return /* @__PURE__ */ R("span", {
|
|
546
546
|
"aria-hidden": !0,
|
|
547
|
-
children: /* @__PURE__ */
|
|
547
|
+
children: /* @__PURE__ */ R(E, { size: u.SM })
|
|
548
548
|
});
|
|
549
|
-
case Z.Missed: return /* @__PURE__ */
|
|
549
|
+
case Z.Missed: return /* @__PURE__ */ R(k, {
|
|
550
550
|
size: u.SM,
|
|
551
551
|
className: Q.missedIcon,
|
|
552
552
|
"aria-hidden": !0
|
|
553
553
|
});
|
|
554
554
|
default: return null;
|
|
555
555
|
}
|
|
556
|
-
},
|
|
556
|
+
}, xe = ({ 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 }) => {
|
|
557
557
|
let { colors: m, typography: h } = f ?? {}, g = h?.runTimestampClassName ?? "dial-small-text", _ = h?.subtitleClassName ?? "dial-body-text", v = n({
|
|
558
558
|
"--strhl-success-icon": m?.successIconColor,
|
|
559
559
|
"--strhl-error-icon": m?.errorIconColor,
|
|
@@ -562,7 +562,7 @@ var H = {
|
|
|
562
562
|
"--strhl-current-run-bg": m?.currentRunBackground
|
|
563
563
|
}), y = (e) => {
|
|
564
564
|
let t = u.runStatusLabels[e.status], n = e.id === c, i = n && u.currentRunLabel ? `${t} ${e.timestampLabel} — ${u.currentRunLabel}` : `${t} ${e.timestampLabel}`, a = !!l;
|
|
565
|
-
return /* @__PURE__ */
|
|
565
|
+
return /* @__PURE__ */ z("li", {
|
|
566
566
|
...a ? {
|
|
567
567
|
role: "button",
|
|
568
568
|
tabIndex: 0,
|
|
@@ -574,61 +574,71 @@ var H = {
|
|
|
574
574
|
"aria-label": i,
|
|
575
575
|
"aria-current": n ? "true" : void 0,
|
|
576
576
|
className: r("flex h-8 items-center justify-between gap-2 rounded-full pe-2 ps-5", n && Q.currentRun, a && "cursor-pointer"),
|
|
577
|
-
children: [/* @__PURE__ */
|
|
577
|
+
children: [/* @__PURE__ */ R("span", {
|
|
578
578
|
className: r(g, "truncate"),
|
|
579
579
|
children: e.timestampLabel
|
|
580
|
-
}), /* @__PURE__ */
|
|
580
|
+
}), /* @__PURE__ */ R("span", {
|
|
581
581
|
className: "flex h-8 w-14 shrink-0 items-center justify-end",
|
|
582
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ R(be, { status: e.status })
|
|
583
583
|
})]
|
|
584
584
|
}, e.id);
|
|
585
|
-
}, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */
|
|
585
|
+
}, b = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ z("li", {
|
|
586
586
|
"aria-hidden": "true",
|
|
587
587
|
className: "flex h-8 items-center justify-between gap-2 pe-2 ps-5",
|
|
588
|
-
children: [/* @__PURE__ */
|
|
588
|
+
children: [/* @__PURE__ */ R(w, {
|
|
589
589
|
variant: T.Rectangular,
|
|
590
590
|
width: "160px",
|
|
591
591
|
height: "16px"
|
|
592
|
-
}), /* @__PURE__ */
|
|
592
|
+
}), /* @__PURE__ */ R(w, {
|
|
593
593
|
variant: T.Rectangular,
|
|
594
594
|
width: "16px",
|
|
595
595
|
height: "16px",
|
|
596
596
|
className: "shrink-0 rounded-full"
|
|
597
597
|
})]
|
|
598
598
|
}, `history-skeleton-${t}`));
|
|
599
|
-
return t && e.length === 0 ? /* @__PURE__ */
|
|
599
|
+
return t && e.length === 0 ? /* @__PURE__ */ R("ul", {
|
|
600
600
|
style: v,
|
|
601
601
|
"aria-label": u.historyTitle,
|
|
602
|
+
className: "flex flex-col gap-0.5",
|
|
602
603
|
children: b(a)
|
|
603
|
-
}) : o && e.length === 0 ? /* @__PURE__ */
|
|
604
|
+
}) : o && e.length === 0 ? /* @__PURE__ */ z("div", {
|
|
604
605
|
style: v,
|
|
605
606
|
className: "flex flex-col items-start gap-3",
|
|
606
|
-
children: [/* @__PURE__ */
|
|
607
|
+
children: [/* @__PURE__ */ R("p", {
|
|
607
608
|
role: "alert",
|
|
608
609
|
className: r(_, Q.subtitleText),
|
|
609
610
|
children: u.errorLabel
|
|
610
|
-
}), /* @__PURE__ */
|
|
611
|
+
}), /* @__PURE__ */ R(p, {
|
|
611
612
|
label: u.retryLabel,
|
|
612
613
|
onClick: s
|
|
613
614
|
})]
|
|
614
|
-
}) : e.length === 0 ? /* @__PURE__ */ z("
|
|
615
|
-
role: "status",
|
|
615
|
+
}) : e.length === 0 ? /* @__PURE__ */ z("div", {
|
|
616
616
|
style: v,
|
|
617
|
-
className:
|
|
618
|
-
children:
|
|
619
|
-
|
|
617
|
+
className: "flex w-full flex-col items-center justify-center gap-2 py-4",
|
|
618
|
+
children: [/* @__PURE__ */ R(N, {
|
|
619
|
+
size: 44,
|
|
620
|
+
stroke: 1.5,
|
|
621
|
+
className: Q.subtitleText,
|
|
622
|
+
"aria-hidden": !0
|
|
623
|
+
}), /* @__PURE__ */ R("p", {
|
|
624
|
+
role: "status",
|
|
625
|
+
className: g,
|
|
626
|
+
children: u.emptyLabel
|
|
627
|
+
})]
|
|
628
|
+
}) : /* @__PURE__ */ z("ul", {
|
|
620
629
|
style: v,
|
|
621
630
|
"aria-label": u.historyTitle,
|
|
631
|
+
className: "flex flex-col gap-0.5",
|
|
622
632
|
children: [
|
|
623
633
|
e.map(y),
|
|
624
634
|
i && b(a),
|
|
625
|
-
o ? /* @__PURE__ */
|
|
635
|
+
o ? /* @__PURE__ */ z("li", {
|
|
626
636
|
className: "flex flex-col items-start gap-3 px-5 py-2",
|
|
627
|
-
children: [/* @__PURE__ */
|
|
637
|
+
children: [/* @__PURE__ */ R("p", {
|
|
628
638
|
role: "alert",
|
|
629
639
|
className: r(_, Q.subtitleText),
|
|
630
640
|
children: u.errorLabel
|
|
631
|
-
}), /* @__PURE__ */
|
|
641
|
+
}), /* @__PURE__ */ R(p, {
|
|
632
642
|
label: u.retryLabel,
|
|
633
643
|
onClick: s
|
|
634
644
|
})]
|
|
@@ -644,187 +654,206 @@ var H = {
|
|
|
644
654
|
errorIcon: "_errorIcon_1ci42_21",
|
|
645
655
|
missedIcon: "_missedIcon_1ci42_25",
|
|
646
656
|
historyCard: "_historyCard_1ci42_29"
|
|
647
|
-
},
|
|
648
|
-
let { colors:
|
|
649
|
-
"--stdv-bg":
|
|
650
|
-
"--stdv-header-border":
|
|
651
|
-
"--stdv-details-border":
|
|
652
|
-
"--stdv-subtitle-text":
|
|
653
|
-
"--stdv-success-icon":
|
|
654
|
-
"--stdv-error-icon":
|
|
655
|
-
"--stdv-missed-icon":
|
|
656
|
-
"--stdv-history-bg":
|
|
657
|
-
}),
|
|
657
|
+
}, Se = ({ labels: t, onBack: i, onEdit: a, onDelete: s, isDeleting: c = !1, isDeleted: l = !1, isActive: d, isActiveUpdating: f = !1, isActiveDisabled: h = !1, onActiveChange: g, displayName: _, isLoading: v = !1, error: b, onRetry: x, description: S, modelLabel: C, repeatsLabel: w, activeWindowLabel: T, nextRunLabel: O, instructionsMarkdown: k, renderInstructions: ee, runs: j, runsIsLoading: M = !1, runsIsLoadingMore: N = !1, runsSkeletonCount: ne = 6, runsError: re, onRunsRetry: P, runsHasMore: F = !1, onRunsLoadMore: I, onRunClick: ae, styles: L }) => {
|
|
658
|
+
let { colors: B, typography: V } = L ?? {}, oe = V?.titleClassName ?? "dial-h2-text", H = V?.sectionTitleClassName ?? "dial-body-semi-text", U = V?.fieldLabelClassName ?? "dial-tiny-text", W = V?.fieldValueClassName ?? "dial-small-text", G = V?.runTimestampClassName ?? "dial-small-text", K = n({
|
|
659
|
+
"--stdv-bg": B?.background,
|
|
660
|
+
"--stdv-header-border": B?.headerBorder,
|
|
661
|
+
"--stdv-details-border": B?.detailsColumnBorder,
|
|
662
|
+
"--stdv-subtitle-text": B?.subtitleText,
|
|
663
|
+
"--stdv-success-icon": B?.successIconColor,
|
|
664
|
+
"--stdv-error-icon": B?.errorIconColor,
|
|
665
|
+
"--stdv-missed-icon": B?.missedIconColor,
|
|
666
|
+
"--stdv-history-bg": B?.historyCardBackground
|
|
667
|
+
}), q = I && F && t.historyShowMoreLabel ? /* @__PURE__ */ R("li", {
|
|
658
668
|
className: r("sticky bottom-0 z-10 rounded-b-xl px-6 pb-5 pt-2", $.historyCard),
|
|
659
|
-
children: /* @__PURE__ */
|
|
669
|
+
children: /* @__PURE__ */ R(p, {
|
|
660
670
|
label: t.historyShowMoreLabel,
|
|
661
|
-
onClick:
|
|
662
|
-
disabled:
|
|
671
|
+
onClick: I,
|
|
672
|
+
disabled: N
|
|
663
673
|
})
|
|
664
674
|
}) : void 0;
|
|
665
|
-
return /* @__PURE__ */
|
|
666
|
-
style:
|
|
675
|
+
return /* @__PURE__ */ z("div", {
|
|
676
|
+
style: K,
|
|
667
677
|
className: r("flex h-full w-full flex-col overflow-y-auto", $.container),
|
|
668
678
|
children: [
|
|
669
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ z("div", {
|
|
670
680
|
className: r("flex h-16 shrink-0 items-center justify-between gap-2 border-b px-8", $.header),
|
|
671
|
-
children: [/* @__PURE__ */
|
|
681
|
+
children: [/* @__PURE__ */ z("div", {
|
|
672
682
|
className: "flex min-w-0 items-center gap-2",
|
|
673
|
-
children: [
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ R(m, {
|
|
685
|
+
icon: /* @__PURE__ */ R(A, {
|
|
686
|
+
size: u.LG,
|
|
687
|
+
className: "rtl:scale-x-[-1]",
|
|
688
|
+
"aria-hidden": !0
|
|
689
|
+
}),
|
|
690
|
+
"aria-label": t.backAriaLabel,
|
|
691
|
+
onClick: i
|
|
678
692
|
}),
|
|
679
|
-
"
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
693
|
+
/* @__PURE__ */ R("h1", {
|
|
694
|
+
className: r("truncate", oe),
|
|
695
|
+
children: _
|
|
696
|
+
}),
|
|
697
|
+
l && /* @__PURE__ */ R("span", {
|
|
698
|
+
className: r("shrink-0", W, $.subtitleText),
|
|
699
|
+
children: t.deletedStateLabel
|
|
700
|
+
})
|
|
701
|
+
]
|
|
702
|
+
}), /* @__PURE__ */ z("div", {
|
|
686
703
|
className: "flex shrink-0 items-center gap-2",
|
|
687
|
-
children: [
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
disabled: s || c,
|
|
695
|
-
onChange: (e) => l?.(e)
|
|
696
|
-
})] }), a && /* @__PURE__ */ z(y, {
|
|
697
|
-
label: t.editButtonLabel,
|
|
698
|
-
iconBefore: /* @__PURE__ */ z(ne, {
|
|
699
|
-
size: u.SM,
|
|
700
|
-
"aria-hidden": !0
|
|
704
|
+
children: [
|
|
705
|
+
!l && d !== void 0 && /* @__PURE__ */ R(D, {
|
|
706
|
+
id: "scheduled-task-active-switch",
|
|
707
|
+
labelProps: { label: t.activeStatusLabel },
|
|
708
|
+
isOn: d,
|
|
709
|
+
disabled: f || h || c,
|
|
710
|
+
onChange: (e) => g?.(e)
|
|
701
711
|
}),
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
712
|
+
!l && s && /* @__PURE__ */ R(p, {
|
|
713
|
+
variant: o.Danger,
|
|
714
|
+
label: t.deleteButtonLabel,
|
|
715
|
+
iconBefore: /* @__PURE__ */ R(ie, {
|
|
716
|
+
size: u.SM,
|
|
717
|
+
"aria-hidden": !0
|
|
718
|
+
}),
|
|
719
|
+
onClick: s,
|
|
720
|
+
disabled: c,
|
|
721
|
+
className: "shrink-0"
|
|
722
|
+
}),
|
|
723
|
+
!l && a && /* @__PURE__ */ R(y, {
|
|
724
|
+
label: t.editButtonLabel,
|
|
725
|
+
iconBefore: /* @__PURE__ */ R(te, {
|
|
726
|
+
size: u.SM,
|
|
727
|
+
"aria-hidden": !0
|
|
728
|
+
}),
|
|
729
|
+
onClick: a,
|
|
730
|
+
disabled: c,
|
|
731
|
+
className: "shrink-0"
|
|
732
|
+
})
|
|
733
|
+
]
|
|
705
734
|
})]
|
|
706
735
|
}),
|
|
707
|
-
t.activeStatusAnnouncement != null && /* @__PURE__ */
|
|
736
|
+
t.activeStatusAnnouncement != null && /* @__PURE__ */ R("span", {
|
|
708
737
|
role: "status",
|
|
709
738
|
"aria-live": "polite",
|
|
710
739
|
className: "sr-only",
|
|
711
740
|
children: t.activeStatusAnnouncement
|
|
712
741
|
}),
|
|
713
|
-
|
|
742
|
+
v && /* @__PURE__ */ R("div", {
|
|
714
743
|
className: "flex flex-1 items-center justify-center",
|
|
715
|
-
children: /* @__PURE__ */
|
|
744
|
+
children: /* @__PURE__ */ R(E, {})
|
|
716
745
|
}),
|
|
717
|
-
!
|
|
746
|
+
!v && b && /* @__PURE__ */ z("div", {
|
|
718
747
|
className: "flex flex-1 flex-col items-center justify-center gap-3",
|
|
719
|
-
children: [/* @__PURE__ */
|
|
748
|
+
children: [/* @__PURE__ */ R("p", {
|
|
720
749
|
className: r(W, $.subtitleText),
|
|
721
750
|
children: t.errorLabel
|
|
722
|
-
}), /* @__PURE__ */
|
|
751
|
+
}), /* @__PURE__ */ R(p, {
|
|
723
752
|
label: t.retryLabel,
|
|
724
|
-
onClick:
|
|
753
|
+
onClick: x
|
|
725
754
|
})]
|
|
726
755
|
}),
|
|
727
|
-
!
|
|
756
|
+
!v && !b && /* @__PURE__ */ z("div", {
|
|
728
757
|
className: "flex flex-1 flex-col desktop:flex-row",
|
|
729
758
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
759
|
+
/* @__PURE__ */ z("div", {
|
|
731
760
|
role: "group",
|
|
732
761
|
"aria-label": t.detailsTitle,
|
|
733
762
|
className: r("flex w-full flex-col gap-5 border-e px-8 py-6 desktop:w-[360px] desktop:shrink-0", $.detailsColumn),
|
|
734
763
|
children: [
|
|
735
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ R("h2", {
|
|
736
765
|
className: H,
|
|
737
766
|
children: t.detailsTitle
|
|
738
767
|
}),
|
|
739
|
-
|
|
768
|
+
S && /* @__PURE__ */ z("div", {
|
|
740
769
|
className: "flex flex-col gap-1",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
742
|
-
className: U,
|
|
770
|
+
children: [/* @__PURE__ */ R("span", {
|
|
771
|
+
className: r(U, $.subtitleText),
|
|
743
772
|
children: t.descriptionLabel
|
|
744
|
-
}), /* @__PURE__ */
|
|
773
|
+
}), /* @__PURE__ */ R("p", {
|
|
745
774
|
className: W,
|
|
746
|
-
children:
|
|
775
|
+
children: S
|
|
747
776
|
})]
|
|
748
777
|
}),
|
|
749
|
-
|
|
778
|
+
C && /* @__PURE__ */ z("div", {
|
|
750
779
|
className: "flex flex-col gap-1",
|
|
751
|
-
children: [/* @__PURE__ */
|
|
752
|
-
className: U,
|
|
780
|
+
children: [/* @__PURE__ */ R("span", {
|
|
781
|
+
className: r(U, $.subtitleText),
|
|
753
782
|
children: t.modelLabel
|
|
754
|
-
}), /* @__PURE__ */
|
|
783
|
+
}), /* @__PURE__ */ R("p", {
|
|
755
784
|
className: W,
|
|
756
|
-
children:
|
|
785
|
+
children: C
|
|
757
786
|
})]
|
|
758
787
|
}),
|
|
759
|
-
|
|
788
|
+
w && /* @__PURE__ */ z("div", {
|
|
760
789
|
className: "flex flex-col gap-1",
|
|
761
|
-
children: [/* @__PURE__ */
|
|
762
|
-
className: U,
|
|
790
|
+
children: [/* @__PURE__ */ R("span", {
|
|
791
|
+
className: r(U, $.subtitleText),
|
|
763
792
|
children: t.repeatsLabel
|
|
764
|
-
}), /* @__PURE__ */
|
|
793
|
+
}), /* @__PURE__ */ R("p", {
|
|
765
794
|
className: W,
|
|
766
|
-
children:
|
|
795
|
+
children: w
|
|
767
796
|
})]
|
|
768
797
|
}),
|
|
769
|
-
|
|
798
|
+
T && /* @__PURE__ */ z("div", {
|
|
770
799
|
className: "flex flex-col gap-1",
|
|
771
|
-
children: [/* @__PURE__ */
|
|
772
|
-
className: U,
|
|
800
|
+
children: [/* @__PURE__ */ R("span", {
|
|
801
|
+
className: r(U, $.subtitleText),
|
|
773
802
|
children: t.activeWindowLabel
|
|
774
|
-
}), /* @__PURE__ */
|
|
803
|
+
}), /* @__PURE__ */ R("p", {
|
|
775
804
|
className: W,
|
|
776
|
-
children:
|
|
805
|
+
children: T
|
|
777
806
|
})]
|
|
778
807
|
})
|
|
779
808
|
]
|
|
780
809
|
}),
|
|
781
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ z("div", {
|
|
782
811
|
className: "flex w-full min-w-0 flex-1 flex-col gap-5 px-8 py-6",
|
|
783
|
-
children: [/* @__PURE__ */
|
|
812
|
+
children: [/* @__PURE__ */ R("h2", {
|
|
784
813
|
className: H,
|
|
785
814
|
children: t.configurationTitle
|
|
786
|
-
}), /* @__PURE__ */
|
|
815
|
+
}), /* @__PURE__ */ z("div", {
|
|
787
816
|
role: "group",
|
|
788
817
|
"aria-label": t.instructionsLabel,
|
|
789
818
|
className: "flex flex-col gap-1",
|
|
790
|
-
children: [/* @__PURE__ */
|
|
791
|
-
className: U,
|
|
819
|
+
children: [/* @__PURE__ */ R("span", {
|
|
820
|
+
className: r(U, $.subtitleText),
|
|
792
821
|
children: t.instructionsLabel
|
|
793
|
-
}),
|
|
822
|
+
}), k && ((t) => ee ? ee(t) : /* @__PURE__ */ R(e, { content: t }))(k)]
|
|
794
823
|
})]
|
|
795
824
|
}),
|
|
796
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ R("div", {
|
|
797
826
|
className: "flex w-full justify-center p-6 desktop:w-auto desktop:items-start",
|
|
798
|
-
children: /* @__PURE__ */
|
|
827
|
+
children: /* @__PURE__ */ z("div", {
|
|
799
828
|
className: r("flex max-h-[70vh] w-full flex-col overflow-y-auto rounded-xl shadow-md desktop:w-[360px]", $.historyCard),
|
|
800
|
-
children: [/* @__PURE__ */
|
|
801
|
-
className: r("sticky top-0 z-10 flex flex-col gap-
|
|
829
|
+
children: [/* @__PURE__ */ z("div", {
|
|
830
|
+
className: r("sticky top-0 z-10 flex flex-col gap-4 rounded-t-xl px-6 pb-2 pt-5", $.historyCard),
|
|
802
831
|
children: [
|
|
803
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ R("h2", {
|
|
804
833
|
className: H,
|
|
805
834
|
children: t.historyTitle
|
|
806
835
|
}),
|
|
807
|
-
|
|
808
|
-
className: r(
|
|
809
|
-
children:
|
|
836
|
+
O && /* @__PURE__ */ R("p", {
|
|
837
|
+
className: r(G, $.subtitleText),
|
|
838
|
+
children: O
|
|
810
839
|
}),
|
|
811
|
-
t.historyLoadingMoreLabel && /* @__PURE__ */
|
|
840
|
+
t.historyLoadingMoreLabel && /* @__PURE__ */ R("span", {
|
|
812
841
|
role: "status",
|
|
813
842
|
"aria-live": "polite",
|
|
814
843
|
className: "sr-only",
|
|
815
|
-
children:
|
|
844
|
+
children: N ? t.historyLoadingMoreLabel : ""
|
|
816
845
|
})
|
|
817
846
|
]
|
|
818
|
-
}), /* @__PURE__ */
|
|
847
|
+
}), /* @__PURE__ */ R("div", {
|
|
819
848
|
className: "flex flex-1 flex-col gap-4 px-6 pb-2",
|
|
820
|
-
children: /* @__PURE__ */
|
|
821
|
-
items:
|
|
822
|
-
isLoading:
|
|
823
|
-
isLoadingMore:
|
|
824
|
-
skeletonCount:
|
|
825
|
-
error:
|
|
826
|
-
onRetry:
|
|
827
|
-
onRunClick:
|
|
849
|
+
children: /* @__PURE__ */ R(xe, {
|
|
850
|
+
items: j,
|
|
851
|
+
isLoading: M,
|
|
852
|
+
isLoadingMore: N,
|
|
853
|
+
skeletonCount: ne,
|
|
854
|
+
error: re,
|
|
855
|
+
onRetry: P,
|
|
856
|
+
onRunClick: ae,
|
|
828
857
|
labels: {
|
|
829
858
|
historyTitle: t.historyTitle,
|
|
830
859
|
emptyLabel: t.historyEmptyLabel,
|
|
@@ -832,13 +861,13 @@ var H = {
|
|
|
832
861
|
retryLabel: t.historyRetryLabel,
|
|
833
862
|
runStatusLabels: t.runStatusLabels
|
|
834
863
|
},
|
|
835
|
-
footer:
|
|
864
|
+
footer: q,
|
|
836
865
|
styles: {
|
|
837
|
-
typography: { runTimestampClassName:
|
|
866
|
+
typography: { runTimestampClassName: G },
|
|
838
867
|
colors: {
|
|
839
|
-
successIconColor:
|
|
840
|
-
errorIconColor:
|
|
841
|
-
missedIconColor:
|
|
868
|
+
successIconColor: B?.successIconColor,
|
|
869
|
+
errorIconColor: B?.errorIconColor,
|
|
870
|
+
missedIconColor: B?.missedIconColor
|
|
842
871
|
}
|
|
843
872
|
}
|
|
844
873
|
})
|
|
@@ -849,27 +878,27 @@ var H = {
|
|
|
849
878
|
})
|
|
850
879
|
]
|
|
851
880
|
});
|
|
852
|
-
},
|
|
881
|
+
}, Ce = ({ modelLabel: t, instructionsLabel: n, modelDisplayName: r, instructionsMarkdown: i, renderInstructions: a, styles: o }) => {
|
|
853
882
|
let s = o?.typography?.fieldLabelClassName ?? "dial-tiny-text", c = o?.typography?.fieldValueClassName ?? "dial-body-text";
|
|
854
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ z("div", {
|
|
855
884
|
className: "flex flex-col gap-3",
|
|
856
|
-
children: [r && /* @__PURE__ */
|
|
885
|
+
children: [r && /* @__PURE__ */ z("div", {
|
|
857
886
|
className: "flex flex-col gap-2",
|
|
858
|
-
children: [/* @__PURE__ */
|
|
887
|
+
children: [/* @__PURE__ */ R("span", {
|
|
859
888
|
className: s,
|
|
860
889
|
children: t
|
|
861
|
-
}), /* @__PURE__ */
|
|
890
|
+
}), /* @__PURE__ */ R("p", {
|
|
862
891
|
className: c,
|
|
863
892
|
children: r
|
|
864
893
|
})]
|
|
865
|
-
}), i && /* @__PURE__ */
|
|
894
|
+
}), i && /* @__PURE__ */ z("div", {
|
|
866
895
|
className: "flex flex-col gap-2",
|
|
867
|
-
children: [/* @__PURE__ */
|
|
896
|
+
children: [/* @__PURE__ */ R("span", {
|
|
868
897
|
className: s,
|
|
869
898
|
children: n
|
|
870
|
-
}), ((t) => a ? a(t) : /* @__PURE__ */
|
|
899
|
+
}), ((t) => a ? a(t) : /* @__PURE__ */ R(e, { content: t }))(i)]
|
|
871
900
|
})]
|
|
872
901
|
});
|
|
873
902
|
};
|
|
874
903
|
//#endregion
|
|
875
|
-
export {
|
|
904
|
+
export { de as DESCRIPTION_MAX_LENGTH, oe as ScheduledTaskCard, K as ScheduledTaskCardGrid, G as ScheduledTaskCardSkeleton, ye as ScheduledTaskCreateForm, Se as ScheduledTaskDetailView, Ce as ScheduledTaskDetailsSummary, J as ScheduledTaskRepeat, xe as ScheduledTaskRunHistoryList, Z as ScheduledTaskRunStatus, le as ScheduledTasks, ue as ScheduledTasksSortKey };
|
|
@@ -7,6 +7,10 @@ export interface ScheduledTaskDetailViewLabels {
|
|
|
7
7
|
backAriaLabel: string;
|
|
8
8
|
/** Label for the header's Edit action. Shown only when `onEdit` is supplied. */
|
|
9
9
|
editButtonLabel: string;
|
|
10
|
+
/** Label for the header's destructive Delete action. Shown only when `onDelete` is supplied. */
|
|
11
|
+
deleteButtonLabel: string;
|
|
12
|
+
/** Label of the read-only indicator shown next to the title when `isDeleted` is `true`. */
|
|
13
|
+
deletedStateLabel: string;
|
|
10
14
|
/** Message shown alongside the page-level retry action when `error` is set. */
|
|
11
15
|
errorLabel: string;
|
|
12
16
|
/** Title of the Details section. */
|
|
@@ -68,13 +72,13 @@ export interface ScheduledTaskDetailViewColors {
|
|
|
68
72
|
}
|
|
69
73
|
/** Typography overrides for the {@link ScheduledTaskDetailView} component. */
|
|
70
74
|
export interface ScheduledTaskDetailViewTypography {
|
|
71
|
-
/** CSS class applied to the header title. Defaults to `'dial-
|
|
75
|
+
/** CSS class applied to the header title. Defaults to `'dial-h2-text'`. */
|
|
72
76
|
titleClassName?: string;
|
|
73
77
|
/** CSS class applied to section titles. Defaults to `'dial-body-semi-text'`. */
|
|
74
78
|
sectionTitleClassName?: string;
|
|
75
79
|
/** CSS class applied to field labels. Defaults to `'dial-tiny-text'`. */
|
|
76
80
|
fieldLabelClassName?: string;
|
|
77
|
-
/** CSS class applied to field values. Defaults to `'dial-
|
|
81
|
+
/** CSS class applied to field values. Defaults to `'dial-small-text'`. */
|
|
78
82
|
fieldValueClassName?: string;
|
|
79
83
|
/** CSS class applied to each run row's timestamp text. Defaults to `'dial-small-text'`. */
|
|
80
84
|
runTimestampClassName?: string;
|
|
@@ -92,9 +96,15 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
92
96
|
labels: ScheduledTaskDetailViewLabels;
|
|
93
97
|
/** Called when the user activates the back-navigation control. */
|
|
94
98
|
onBack: () => void;
|
|
95
|
-
/** Called when the user activates the header's Edit action. When omitted, no Edit action renders. */
|
|
99
|
+
/** Called when the user activates the header's Edit action. When omitted, no Edit action renders. Suppressed while `isDeleted` is `true`. */
|
|
96
100
|
onEdit?: () => void;
|
|
97
|
-
/**
|
|
101
|
+
/** Called when the user activates the header's destructive Delete action. When omitted, no Delete action renders. Suppressed while `isDeleted` is `true`. The component opens no dialog and performs no network call itself. */
|
|
102
|
+
onDelete?: () => void;
|
|
103
|
+
/** When `true`, the Delete action, Edit action, and Active switch render disabled rather than being removed. Defaults to `false`. */
|
|
104
|
+
isDeleting?: boolean;
|
|
105
|
+
/** When `true`, the header renders a read-only deleted-state indicator instead of the Delete, Edit, and Active controls, regardless of whether `onDelete`/`onEdit`/`isActive` are supplied. Defaults to `false`. */
|
|
106
|
+
isDeleted?: boolean;
|
|
107
|
+
/** Whether the schedule is currently active (resumed) or paused. When `undefined`, the Active switch does not render. Suppressed while `isDeleted` is `true`. */
|
|
98
108
|
isActive?: boolean;
|
|
99
109
|
/** When `true`, the Active switch renders disabled while a pause/resume request is in flight. Defaults to `false`. */
|
|
100
110
|
isActiveUpdating?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-detail-view-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-detail-view-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,8EAA8E;AAC9E,MAAM,WAAW,6BAA6B;IAC5C,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,mHAAmH;IACnH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gMAAgM;IAChM,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yJAAyJ;IACzJ,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gJAAgJ;IAChJ,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,2GAA2G;IAC3G,eAAe,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;CACzD;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,8EAA8E;AAC9E,MAAM,WAAW,iCAAiC;IAChD,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gFAAgF;IAChF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yEAAyE;IACzE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"scheduled-task-detail-view-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-detail-view-props.ts"],"names":[],"mappings":"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"}
|
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.188",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
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.
|
|
20
|
+
"@epam/ai-dial-builder-form": "1.1.0-dev.188",
|
|
21
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.188",
|
|
22
22
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
|
|
23
23
|
"@tabler/icons-react": "^3.44.0",
|
|
24
24
|
"react": "^19.0.0"
|