@epam/ai-dial-scheduled-tasks 1.1.0-dev.69 → 1.1.0-dev.74
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/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
- package/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.d.ts +11 -0
- package/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.d.ts.map +1 -0
- package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +257 -195
- package/models/scheduled-task-card-grid-props.d.ts +5 -0
- package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
- package/models/scheduled-task-card-skeleton-props.d.ts +22 -0
- package/models/scheduled-task-card-skeleton-props.d.ts.map +1 -0
- package/models/scheduled-tasks-props.d.ts +13 -1
- package/models/scheduled-tasks-props.d.ts.map +1 -1
- package/package.json +3 -3
- package/utils/filter-sort.d.ts +0 -2
- package/utils/filter-sort.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTaskCardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduledTaskCardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAI9F,kHAAkH;AAClH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA+BhE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ScheduledTaskCardSkeletonProps } from '../../models/scheduled-task-card-skeleton-props';
|
|
3
|
+
/**
|
|
4
|
+
* Placeholder shown in place of a {@link ScheduledTaskCard} while a subsequent
|
|
5
|
+
* page is loading. `DialSkeleton`'s default `bg-layer-3` color token resolves
|
|
6
|
+
* to a near-white fallback (`#fcfcfc`) in apps that don't override it, which
|
|
7
|
+
* is invisible against the white `CardShell` background — `colors.skeletonColor`
|
|
8
|
+
* (default `var(--bg-layer-4)`) exists so callers always get a visible result.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ScheduledTaskCardSkeleton: FC<ScheduledTaskCardSkeletonProps>;
|
|
11
|
+
//# sourceMappingURL=ScheduledTaskCardSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduledTaskCardSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AAItG;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAoCxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledTasks.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTasks/ScheduledTasks.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ScheduledTasks.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTasks/ScheduledTasks.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,EAAE,EAA8B,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AA8CzE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAiQlD,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ export { ScheduledTaskSection } from './components/ScheduledTaskSection/Schedule
|
|
|
6
6
|
export type { ScheduledTaskSectionProps, ScheduledTaskSectionStyles, ScheduledTaskSectionColors, ScheduledTaskSectionTypography, } from './models/scheduled-task-section-props';
|
|
7
7
|
export { ScheduledTaskCardGrid } from './components/ScheduledTaskCardGrid/ScheduledTaskCardGrid';
|
|
8
8
|
export type { ScheduledTaskCardGridProps, ScheduledTaskCardGridLabels, } from './models/scheduled-task-card-grid-props';
|
|
9
|
+
export { ScheduledTaskCardSkeleton } from './components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton';
|
|
10
|
+
export type { ScheduledTaskCardSkeletonProps, ScheduledTaskCardSkeletonStyles, ScheduledTaskCardSkeletonColors, } from './models/scheduled-task-card-skeleton-props';
|
|
9
11
|
export type { ScheduledTaskItem, ScheduledTaskSortValues, } from './models/scheduled-task-item';
|
|
10
12
|
export { ScheduledTaskSectionKey } from './models/scheduled-task-item';
|
|
11
|
-
export {
|
|
13
|
+
export { sortScheduledTaskItems } from './utils/filter-sort';
|
|
12
14
|
export { ScheduledTasksSortKey } from './types/scheduled-tasks-sort-key';
|
|
13
15
|
export { ScheduledTaskCreateForm } from './components/ScheduledTaskCreateForm/ScheduledTaskCreateForm';
|
|
14
16
|
export type { ScheduledTaskCreateFormProps, ScheduledTaskCreateFormLabels, ScheduledTaskCreateFormValues, ScheduledTaskCreateFormErrors, ScheduledTaskCreateFormStyles, ScheduledTaskCreateFormColors, ScheduledTaskCreateFormTypography, ScheduledTaskCreateFormModelOption, ScheduledTaskFrequencyOption, } from './models/scheduled-task-create-form-props';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,yCAAyC,CAAC;AACjD,YAAY,EACV,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAC7G,YAAY,EACV,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,GAChC,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACV,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AACvG,YAAY,EACV,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import { PanelEmptyState as e, buildCssVars as t, mergeClasses as n } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { GhostIconButton as r, Input as i, SearchBar as a, Textarea as o } from "@epam/ai-dial-kit";
|
|
3
|
-
import { Calendar as s, CalendarMode as c, CardShell as l, DIAL_ICON_SIZE as u, DialDropdown as d, DialSelectField as f,
|
|
4
|
-
import { IconArrowLeft as
|
|
5
|
-
import { Suspense as
|
|
6
|
-
import { Fragment as
|
|
3
|
+
import { Calendar as s, CalendarMode as c, CardShell as l, DIAL_ICON_SIZE as u, DialDropdown as d, DialSelectField as f, DialSkeleton as p, DialSkeletonVariant as m, DialSpinner as h, FolderPath as g, GhostButton as _, Highlight as v, IconButton as y, LazyDialMarkdownEditor as b, NeutralButton as x, PrimaryButton as S } from "@epam/ai-dial-ui-kit";
|
|
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
|
+
import { Suspense as N, lazy as P, useEffect as ee, useMemo as F, useRef as te } from "react";
|
|
6
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
7
7
|
//#region src/models/scheduled-task-item.ts
|
|
8
|
-
var
|
|
8
|
+
var z = /* @__PURE__ */ function(e) {
|
|
9
9
|
return e.Shared = "shared", e.MyTasks = "myTasks", e;
|
|
10
|
-
}({}),
|
|
10
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
|
|
12
|
-
}({}),
|
|
13
|
-
let n = t.trim().toLowerCase();
|
|
14
|
-
return n ? e.filter((e) => e.displayName.toLowerCase().includes(n) || e.descriptionPreview?.toLowerCase().includes(n)) : e;
|
|
15
|
-
}, B = (e, t, n) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 : n * (new Date(e).getTime() - new Date(t).getTime()), V = (e, t) => {
|
|
12
|
+
}({}), V = (e, t, n) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 : n * (new Date(e).getTime() - new Date(t).getTime()), H = (e, t) => {
|
|
16
13
|
let n = [...e];
|
|
17
14
|
switch (t) {
|
|
18
|
-
case
|
|
19
|
-
case
|
|
20
|
-
case
|
|
21
|
-
case
|
|
15
|
+
case B.FirstToRun: return n.sort((e, t) => V(e.sortValues.nextRunAt, t.sortValues.nextRunAt, 1));
|
|
16
|
+
case B.LastToRun: return n.sort((e, t) => V(e.sortValues.nextRunAt, t.sortValues.nextRunAt, -1));
|
|
17
|
+
case B.Newest: return n.sort((e, t) => V(e.sortValues.createdAt, t.sortValues.createdAt, -1));
|
|
18
|
+
case B.NameAZ: return n.sort((e, t) => e.displayName.localeCompare(t.displayName));
|
|
22
19
|
default: return n;
|
|
23
20
|
}
|
|
24
|
-
},
|
|
21
|
+
}, U = {
|
|
25
22
|
title: "_title_10760_1",
|
|
26
23
|
description: "_description_10760_5",
|
|
27
24
|
schedulePill: "_schedulePill_10760_9",
|
|
@@ -29,8 +26,8 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
29
26
|
locationLabel: "_locationLabel_10760_18",
|
|
30
27
|
locationLeaf: "_locationLeaf_10760_22",
|
|
31
28
|
newBadge: "_newBadge_10760_26"
|
|
32
|
-
},
|
|
33
|
-
let p = s?.newBadgeLabel ?? "NEW",
|
|
29
|
+
}, W = ({ item: e, searchQuery: r = "", onEdit: i, onRunNow: a, onDelete: o, labels: s, styles: c, className: f }) => {
|
|
30
|
+
let p = s?.newBadgeLabel ?? "NEW", m = s?.actionsLabel ?? "More actions", h = s?.editActionLabel ?? "Edit", _ = s?.runNowActionLabel ?? "Run now", b = s?.deleteActionLabel ?? "Delete", { colors: x, typography: S } = c ?? {}, 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({
|
|
34
31
|
"--stc-title-text": x?.titleText,
|
|
35
32
|
"--stc-desc-text": x?.descriptionText,
|
|
36
33
|
"--stc-pill-bg": x?.schedulePillBackground,
|
|
@@ -43,16 +40,16 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
43
40
|
}), P = [];
|
|
44
41
|
return i && P.push({
|
|
45
42
|
key: "edit",
|
|
46
|
-
label:
|
|
47
|
-
icon: /* @__PURE__ */
|
|
43
|
+
label: h,
|
|
44
|
+
icon: /* @__PURE__ */ L(k, {
|
|
48
45
|
size: u.SM,
|
|
49
46
|
"aria-hidden": !0
|
|
50
47
|
}),
|
|
51
48
|
onClick: () => i(e.id)
|
|
52
49
|
}), a && P.push({
|
|
53
50
|
key: "runNow",
|
|
54
|
-
label:
|
|
55
|
-
icon: /* @__PURE__ */
|
|
51
|
+
label: _,
|
|
52
|
+
icon: /* @__PURE__ */ L(A, {
|
|
56
53
|
size: u.SM,
|
|
57
54
|
"aria-hidden": !0
|
|
58
55
|
}),
|
|
@@ -60,69 +57,104 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
60
57
|
}), o && P.push({
|
|
61
58
|
key: "delete",
|
|
62
59
|
label: b,
|
|
63
|
-
icon: /* @__PURE__ */
|
|
60
|
+
icon: /* @__PURE__ */ L(M, {
|
|
64
61
|
size: u.SM,
|
|
65
62
|
"aria-hidden": !0
|
|
66
63
|
}),
|
|
67
64
|
danger: !0,
|
|
68
65
|
onClick: () => o(e.id)
|
|
69
|
-
}), /* @__PURE__ */
|
|
66
|
+
}), /* @__PURE__ */ R(l, {
|
|
70
67
|
role: "group",
|
|
71
68
|
"aria-label": e.displayName,
|
|
72
69
|
style: N,
|
|
73
70
|
className: n("h-[232px]", f),
|
|
74
71
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ R("div", {
|
|
76
73
|
className: "flex shrink-0 items-start justify-between gap-2",
|
|
77
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ R("div", {
|
|
78
75
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
79
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ L(v, {
|
|
80
77
|
text: e.displayName,
|
|
81
78
|
query: r,
|
|
82
79
|
maxLines: 1,
|
|
83
|
-
className: n(C,
|
|
84
|
-
}), e.isNew && /* @__PURE__ */
|
|
85
|
-
className: n("shrink-0 rounded-full px-2 py-0.5",
|
|
80
|
+
className: n(C, U.title)
|
|
81
|
+
}), e.isNew && /* @__PURE__ */ L("span", {
|
|
82
|
+
className: n("shrink-0 rounded-full px-2 py-0.5", j, U.newBadge),
|
|
86
83
|
children: p
|
|
87
84
|
})]
|
|
88
|
-
}), P.length > 0 && /* @__PURE__ */
|
|
85
|
+
}), P.length > 0 && /* @__PURE__ */ L(d, {
|
|
89
86
|
items: P,
|
|
90
87
|
matchReferenceWidth: !1,
|
|
91
88
|
placement: "bottom-end",
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
icon: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ L(y, {
|
|
90
|
+
icon: /* @__PURE__ */ L(O, {
|
|
94
91
|
size: u.SM,
|
|
95
92
|
"aria-hidden": !0
|
|
96
93
|
}),
|
|
97
|
-
"aria-label":
|
|
94
|
+
"aria-label": m,
|
|
98
95
|
className: "shrink-0"
|
|
99
96
|
})
|
|
100
97
|
})]
|
|
101
98
|
}),
|
|
102
|
-
e.descriptionPreview && /* @__PURE__ */
|
|
103
|
-
className: n("line-clamp-4 min-h-0 flex-1 overflow-hidden !leading-[22px]", w,
|
|
99
|
+
e.descriptionPreview && /* @__PURE__ */ L("p", {
|
|
100
|
+
className: n("line-clamp-4 min-h-0 flex-1 overflow-hidden !leading-[22px]", w, U.description),
|
|
104
101
|
children: e.descriptionPreview
|
|
105
102
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ R("div", {
|
|
107
104
|
className: "mt-auto flex shrink-0 flex-col gap-3",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ L("div", {
|
|
109
106
|
className: "flex min-h-[28px] items-center",
|
|
110
|
-
children: /* @__PURE__ */
|
|
111
|
-
className: n("inline-block rounded-lg border px-2 py-1",
|
|
107
|
+
children: /* @__PURE__ */ L("span", {
|
|
108
|
+
className: n("inline-block rounded-lg border px-2 py-1", U.schedulePill, T, U.scheduleLabel),
|
|
112
109
|
children: e.scheduleLabel
|
|
113
110
|
})
|
|
114
|
-
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */
|
|
111
|
+
}), e.locationSegments && e.locationSegments.length > 0 && /* @__PURE__ */ L(g, {
|
|
115
112
|
segments: e.locationSegments,
|
|
116
|
-
labelClassName: n(
|
|
117
|
-
leafClassName: n(
|
|
113
|
+
labelClassName: n(E, U.locationLabel),
|
|
114
|
+
leafClassName: n(D, U.locationLeaf),
|
|
118
115
|
className: "border-t border-tertiary pt-3"
|
|
119
116
|
})]
|
|
120
117
|
})
|
|
121
118
|
]
|
|
122
119
|
});
|
|
123
|
-
},
|
|
120
|
+
}, G = [
|
|
121
|
+
"100%",
|
|
122
|
+
"100%",
|
|
123
|
+
"61%"
|
|
124
|
+
], K = ({ styles: e }) => {
|
|
125
|
+
let t = e?.colors?.skeletonColor ?? "var(--bg-layer-4)";
|
|
126
|
+
return /* @__PURE__ */ R(l, {
|
|
127
|
+
"aria-hidden": !0,
|
|
128
|
+
className: "h-[232px]",
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ L(p, {
|
|
131
|
+
variant: m.Rectangular,
|
|
132
|
+
width: "60%",
|
|
133
|
+
height: "20px",
|
|
134
|
+
color: t,
|
|
135
|
+
className: "shrink-0"
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ L("div", {
|
|
138
|
+
className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
|
|
139
|
+
children: G.map((e, n) => /* @__PURE__ */ L(p, {
|
|
140
|
+
variant: m.Rectangular,
|
|
141
|
+
width: e,
|
|
142
|
+
height: "16px",
|
|
143
|
+
color: t
|
|
144
|
+
}, n))
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ L(p, {
|
|
147
|
+
variant: m.Rectangular,
|
|
148
|
+
width: "110px",
|
|
149
|
+
height: "28px",
|
|
150
|
+
color: t,
|
|
151
|
+
className: "shrink-0 rounded-lg"
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
});
|
|
155
|
+
}, ne = ({ items: e, searchQuery: t, onEdit: n, onRunNow: r, onDelete: i, labels: a, cardStyles: o, trailingSkeletonCount: s = 0, skeletonStyles: c }) => /* @__PURE__ */ R("div", {
|
|
124
156
|
className: "grid grid-cols-1 gap-5 desktop:grid-cols-3",
|
|
125
|
-
children: e.map((e) => /* @__PURE__ */
|
|
157
|
+
children: [e.map((e) => /* @__PURE__ */ L(W, {
|
|
126
158
|
item: e,
|
|
127
159
|
searchQuery: t,
|
|
128
160
|
onEdit: n,
|
|
@@ -130,101 +162,131 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
130
162
|
onDelete: i,
|
|
131
163
|
labels: a,
|
|
132
164
|
styles: o
|
|
133
|
-
}, e.id))
|
|
134
|
-
}),
|
|
165
|
+
}, e.id)), Array.from({ length: s }, (e, t) => /* @__PURE__ */ L(K, { styles: c }, `skeleton-${t}`))]
|
|
166
|
+
}), q = { countBadge: "_countBadge_ilfph_1" }, re = ({ title: e, count: r, children: i, styles: a }) => {
|
|
135
167
|
let o = a?.typography?.titleClassName ?? "dial-small-semi-text", s = a?.typography?.countBadgeClassName ?? "dial-tiny-text", c = t({
|
|
136
168
|
"--sts-badge-bg": a?.colors?.countBadgeBackground,
|
|
137
169
|
"--sts-badge-text": a?.colors?.countBadgeText
|
|
138
170
|
});
|
|
139
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ R("section", {
|
|
140
172
|
...e ? { "aria-label": e } : {},
|
|
141
173
|
style: c,
|
|
142
174
|
className: "flex flex-col gap-3",
|
|
143
|
-
children: [e && /* @__PURE__ */
|
|
175
|
+
children: [e && /* @__PURE__ */ R("div", {
|
|
144
176
|
className: "flex items-center gap-2 rtl:flex-row-reverse",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ L("h2", {
|
|
146
178
|
className: o,
|
|
147
179
|
children: e
|
|
148
|
-
}), /* @__PURE__ */
|
|
149
|
-
className: n("rounded-full px-2 py-0.5", s,
|
|
180
|
+
}), /* @__PURE__ */ L("span", {
|
|
181
|
+
className: n("rounded-full px-2 py-0.5", s, q.countBadge),
|
|
150
182
|
children: r
|
|
151
183
|
})]
|
|
152
184
|
}), i]
|
|
153
185
|
});
|
|
154
|
-
},
|
|
186
|
+
}, J = {
|
|
155
187
|
container: "_container_11gjj_1",
|
|
156
188
|
subtitle: "_subtitle_11gjj_5",
|
|
157
189
|
sortButton: "_sortButton_11gjj_9"
|
|
158
|
-
},
|
|
159
|
-
if (!e) return t ?
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
let e = { [
|
|
171
|
-
return
|
|
190
|
+
}, ie = [z.Shared, z.MyTasks], ae = (e, t, n, r, i, a) => {
|
|
191
|
+
if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
|
|
192
|
+
}, oe = (e) => {
|
|
193
|
+
if (!e || e === document.body) return null;
|
|
194
|
+
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
195
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : oe(e.parentElement);
|
|
196
|
+
}, se = ({ labels: r, onCreateClick: i, searchQuery: o, onSearchQueryChange: s, sortKey: c, onSortChange: l, items: f, isLoading: p = !1, error: m, onRetry: g, hasMore: v = !1, isLoadingMore: y = !1, skeletonCount: b = 6, onLoadMore: x, onEdit: C, onRunNow: O, onDelete: k, styles: A }) => {
|
|
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
|
+
"--st-bg": M?.background,
|
|
199
|
+
"--st-subtitle-text": M?.subtitleText,
|
|
200
|
+
"--st-sort-text": M?.sortButtonText
|
|
201
|
+
}), U = r.sortOptions.find((e) => e.key === c)?.label ?? "", W = F(() => H(f, c), [f, c]), G = F(() => {
|
|
202
|
+
let e = { [z.Shared]: r.sharedSectionTitle };
|
|
203
|
+
return ie.map((t) => ({
|
|
172
204
|
key: t,
|
|
173
205
|
title: e[t],
|
|
174
|
-
items:
|
|
206
|
+
items: W.filter((e) => e.sectionKey === t)
|
|
175
207
|
})).filter((e) => e.items.length > 0);
|
|
176
|
-
}, [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
}, [W, r.sharedSectionTitle]), K = ae(p, y, !!m, f.length, o.trim().length > 0, r), q = te(null);
|
|
209
|
+
ee(() => {
|
|
210
|
+
let e = q.current;
|
|
211
|
+
if (!e || !x) return;
|
|
212
|
+
let t = oe(e.parentElement);
|
|
213
|
+
if (!t) return;
|
|
214
|
+
let n = () => {
|
|
215
|
+
if (y || p || !v) return;
|
|
216
|
+
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
217
|
+
r.top < n.bottom && r.bottom > n.top && x();
|
|
218
|
+
};
|
|
219
|
+
return t.addEventListener("scroll", n, { passive: !0 }), n(), () => t.removeEventListener("scroll", n);
|
|
220
|
+
}, [
|
|
221
|
+
v,
|
|
222
|
+
y,
|
|
223
|
+
p,
|
|
224
|
+
x
|
|
225
|
+
]);
|
|
226
|
+
let se = () => {
|
|
227
|
+
if (p) return /* @__PURE__ */ L(h, {});
|
|
228
|
+
if (m) return /* @__PURE__ */ R("div", {
|
|
229
|
+
className: "flex flex-col items-center gap-3",
|
|
230
|
+
children: [/* @__PURE__ */ L("p", {
|
|
231
|
+
className: n(B, J.subtitle),
|
|
232
|
+
children: r.errorLabel
|
|
233
|
+
}), /* @__PURE__ */ L(_, {
|
|
234
|
+
label: r.retryLabel,
|
|
235
|
+
onClick: g
|
|
236
|
+
})]
|
|
237
|
+
});
|
|
238
|
+
if (f.length === 0) return o.trim() ? /* @__PURE__ */ L("p", {
|
|
239
|
+
className: n(B, J.subtitle),
|
|
240
|
+
children: r.noResultsLabel
|
|
241
|
+
}) : /* @__PURE__ */ L(e, {
|
|
242
|
+
icon: /* @__PURE__ */ L(T, {
|
|
243
|
+
"aria-hidden": !0,
|
|
244
|
+
size: P,
|
|
245
|
+
stroke: 1
|
|
246
|
+
}),
|
|
247
|
+
label: r.emptyStateLabel
|
|
248
|
+
});
|
|
249
|
+
let t = G.length - 1;
|
|
250
|
+
return /* @__PURE__ */ R("div", {
|
|
251
|
+
className: "flex w-full flex-col gap-6",
|
|
252
|
+
children: [G.map((e, n) => /* @__PURE__ */ L(re, {
|
|
253
|
+
title: e.title,
|
|
254
|
+
count: e.items.length,
|
|
255
|
+
children: /* @__PURE__ */ L(ne, {
|
|
256
|
+
items: e.items,
|
|
257
|
+
searchQuery: o,
|
|
258
|
+
onEdit: C,
|
|
259
|
+
onRunNow: O,
|
|
260
|
+
onDelete: k,
|
|
261
|
+
labels: r.cardLabels,
|
|
262
|
+
trailingSkeletonCount: y && n === t ? b : 0,
|
|
263
|
+
skeletonStyles: { colors: { skeletonColor: M?.skeletonColor } }
|
|
264
|
+
})
|
|
265
|
+
}, e.key)), /* @__PURE__ */ L("div", {
|
|
266
|
+
ref: q,
|
|
267
|
+
"aria-hidden": !0,
|
|
268
|
+
className: "h-px w-full"
|
|
269
|
+
})]
|
|
270
|
+
});
|
|
271
|
+
}, ce = p || !!m || f.length === 0;
|
|
272
|
+
return /* @__PURE__ */ R("div", {
|
|
273
|
+
style: V,
|
|
274
|
+
className: n("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", J.container),
|
|
213
275
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ R("div", {
|
|
215
277
|
className: "flex items-start justify-between gap-4",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ R("div", {
|
|
217
279
|
className: "min-w-0 gap-2",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
219
|
-
className: n("truncate",
|
|
280
|
+
children: [/* @__PURE__ */ L("h1", {
|
|
281
|
+
className: n("truncate", I),
|
|
220
282
|
children: r.title
|
|
221
|
-
}), /* @__PURE__ */
|
|
222
|
-
className: n("mt-1",
|
|
283
|
+
}), /* @__PURE__ */ L("p", {
|
|
284
|
+
className: n("mt-1", B, J.subtitle),
|
|
223
285
|
children: r.subtitle
|
|
224
286
|
})]
|
|
225
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ L(S, {
|
|
226
288
|
label: r.createButtonLabel,
|
|
227
|
-
iconBefore: /* @__PURE__ */
|
|
289
|
+
iconBefore: /* @__PURE__ */ L(j, {
|
|
228
290
|
size: u.SM,
|
|
229
291
|
"aria-hidden": !0
|
|
230
292
|
}),
|
|
@@ -232,11 +294,11 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
232
294
|
className: "shrink-0"
|
|
233
295
|
})]
|
|
234
296
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ R("div", {
|
|
236
298
|
className: "flex flex-wrap items-center gap-3",
|
|
237
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ L("div", {
|
|
238
300
|
className: "flex-1",
|
|
239
|
-
children: /* @__PURE__ */
|
|
301
|
+
children: /* @__PURE__ */ L(a, {
|
|
240
302
|
value: o,
|
|
241
303
|
onChange: s,
|
|
242
304
|
labels: {
|
|
@@ -252,60 +314,60 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
252
314
|
clearButtonClassName: "size-11 desktop:size-auto"
|
|
253
315
|
}
|
|
254
316
|
})
|
|
255
|
-
}), r.sortOptions.length > 0 && /* @__PURE__ */
|
|
317
|
+
}), r.sortOptions.length > 0 && /* @__PURE__ */ L(d, {
|
|
256
318
|
matchReferenceWidth: !1,
|
|
257
319
|
placement: "bottom-end",
|
|
258
320
|
listClassName: "cp-dropdown-overlay",
|
|
259
321
|
items: r.sortOptions.map((e) => ({
|
|
260
322
|
key: e.key,
|
|
261
|
-
label: /* @__PURE__ */
|
|
323
|
+
label: /* @__PURE__ */ R("span", {
|
|
262
324
|
className: "flex w-full items-center justify-between gap-2",
|
|
263
|
-
children: [e.label, e.key === c && /* @__PURE__ */
|
|
325
|
+
children: [e.label, e.key === c && /* @__PURE__ */ L(E, {
|
|
264
326
|
size: u.SM,
|
|
265
327
|
"aria-hidden": !0
|
|
266
328
|
})]
|
|
267
329
|
}),
|
|
268
330
|
onClick: () => l(e.key)
|
|
269
331
|
})),
|
|
270
|
-
children: /* @__PURE__ */
|
|
271
|
-
label:
|
|
332
|
+
children: /* @__PURE__ */ L(_, {
|
|
333
|
+
label: U,
|
|
272
334
|
"aria-label": r.sortLabel,
|
|
273
|
-
className: n("rounded-[4px]",
|
|
274
|
-
iconBefore: /* @__PURE__ */
|
|
335
|
+
className: n("rounded-[4px]", J.sortButton),
|
|
336
|
+
iconBefore: /* @__PURE__ */ L(w, {
|
|
275
337
|
size: 20,
|
|
276
338
|
"aria-hidden": !0
|
|
277
339
|
}),
|
|
278
|
-
iconAfter: /* @__PURE__ */
|
|
340
|
+
iconAfter: /* @__PURE__ */ L(D, {
|
|
279
341
|
size: 20,
|
|
280
342
|
"aria-hidden": !0
|
|
281
343
|
})
|
|
282
344
|
})
|
|
283
345
|
})]
|
|
284
346
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ L("span", {
|
|
286
348
|
role: "status",
|
|
287
349
|
"aria-live": "polite",
|
|
288
350
|
className: "sr-only",
|
|
289
|
-
children:
|
|
351
|
+
children: K
|
|
290
352
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
className: n("mx-auto flex size-full w-full max-w-[1180px] flex-col",
|
|
293
|
-
children:
|
|
353
|
+
/* @__PURE__ */ L("div", {
|
|
354
|
+
className: n("mx-auto flex size-full w-full max-w-[1180px] flex-col", ce && "items-center justify-center"),
|
|
355
|
+
children: se()
|
|
294
356
|
})
|
|
295
357
|
]
|
|
296
358
|
});
|
|
297
|
-
},
|
|
359
|
+
}, ce = 500, Y = /* @__PURE__ */ function(e) {
|
|
298
360
|
return e.Once = "once", e.Recurring = "recurring", e;
|
|
299
361
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
300
362
|
return e.Daily = "daily", e.Weekly = "weekly", e.Monthly = "monthly", e;
|
|
301
|
-
}({}), Z = (e) => String(e).padStart(2, "0"),
|
|
363
|
+
}({}), Z = (e) => String(e).padStart(2, "0"), le = (e) => e ? new Date(e) : null, ue = (e) => {
|
|
302
364
|
if (e == null) return "";
|
|
303
365
|
let t = e instanceof Date ? e : new Date(e);
|
|
304
366
|
return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${Z(t.getMonth() + 1)}-${Z(t.getDate())}T${Z(t.getHours())}:${Z(t.getMinutes())}`;
|
|
305
|
-
},
|
|
367
|
+
}, de = (e) => {
|
|
306
368
|
let t = Number(e);
|
|
307
369
|
return e && Number.isFinite(t) ? String(t + 1) : null;
|
|
308
|
-
},
|
|
370
|
+
}, fe = (e) => {
|
|
309
371
|
let t = typeof e == "string" ? Number(e) : NaN;
|
|
310
372
|
return Number.isFinite(t) ? String(t - 1) : "";
|
|
311
373
|
}, Q = {
|
|
@@ -314,69 +376,69 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
314
376
|
detailsColumn: "_detailsColumn_pvqly_9",
|
|
315
377
|
sectionSubtitle: "_sectionSubtitle_pvqly_13",
|
|
316
378
|
instructionsError: "_instructionsError_pvqly_17"
|
|
317
|
-
}, $ = (e) => `${e} *`,
|
|
318
|
-
let { colors: w, typography: T } =
|
|
379
|
+
}, $ = (e) => `${e} *`, pe = P(async () => ({ default: (await b()).DialMarkdownEditor })), me = ({ labels: e, values: a, errors: l, modelOptions: d, onFieldChange: p, onBack: m, onCancel: g, onSubmit: _, isSubmitting: v = !1, markdownEditorTheme: y, styles: b }) => {
|
|
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({
|
|
319
381
|
"--stcf-bg": w?.background,
|
|
320
382
|
"--stcf-header-border": w?.headerBorder,
|
|
321
383
|
"--stcf-details-border": w?.detailsColumnBorder,
|
|
322
384
|
"--stcf-subtitle-text": w?.sectionSubtitleText,
|
|
323
385
|
"--stcf-error-text": w?.instructionsErrorText
|
|
324
|
-
}),
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
-
style:
|
|
386
|
+
}), M = v || !a.displayName.trim() || !a.modelId || !a.prompt.trim();
|
|
387
|
+
return /* @__PURE__ */ R("div", {
|
|
388
|
+
style: j,
|
|
327
389
|
className: n("flex h-full w-full flex-col overflow-y-auto", Q.container),
|
|
328
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ R("div", {
|
|
329
391
|
className: n("flex h-16 items-center justify-between gap-6 border-b px-8", Q.header),
|
|
330
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ R("div", {
|
|
331
393
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
332
|
-
children: [/* @__PURE__ */
|
|
333
|
-
icon: /* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ L(r, {
|
|
395
|
+
icon: /* @__PURE__ */ L(C, {
|
|
334
396
|
size: u.LG,
|
|
335
397
|
className: "rtl:scale-x-[-1]",
|
|
336
398
|
"aria-hidden": !0
|
|
337
399
|
}),
|
|
338
400
|
"aria-label": e.backButtonLabel,
|
|
339
|
-
onClick:
|
|
340
|
-
}), /* @__PURE__ */
|
|
401
|
+
onClick: m
|
|
402
|
+
}), /* @__PURE__ */ L("h1", {
|
|
341
403
|
className: n("truncate", E),
|
|
342
404
|
children: e.pageTitle
|
|
343
405
|
})]
|
|
344
|
-
}), /* @__PURE__ */
|
|
406
|
+
}), /* @__PURE__ */ R("div", {
|
|
345
407
|
className: "flex items-center gap-2",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ L(x, {
|
|
347
409
|
type: "button",
|
|
348
410
|
label: e.cancelButtonLabel,
|
|
349
411
|
onClick: g,
|
|
350
412
|
disabled: v
|
|
351
|
-
}), /* @__PURE__ */
|
|
413
|
+
}), /* @__PURE__ */ L(S, {
|
|
352
414
|
type: "button",
|
|
353
415
|
label: e.createButtonLabel,
|
|
354
416
|
onClick: _,
|
|
355
|
-
disabled:
|
|
417
|
+
disabled: M
|
|
356
418
|
})]
|
|
357
419
|
})]
|
|
358
|
-
}), /* @__PURE__ */
|
|
420
|
+
}), /* @__PURE__ */ R("div", {
|
|
359
421
|
className: "flex flex-1 flex-col desktop:flex-row",
|
|
360
422
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ R("div", {
|
|
362
424
|
role: "group",
|
|
363
425
|
"aria-label": e.detailsSectionTitle,
|
|
364
426
|
className: n("flex w-full flex-col gap-5 border-e px-8 py-6 desktop:w-[360px] desktop:shrink-0", Q.detailsColumn),
|
|
365
427
|
children: [
|
|
366
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ R("div", {
|
|
367
429
|
className: "flex flex-col gap-1",
|
|
368
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ L("h2", {
|
|
369
431
|
className: D,
|
|
370
432
|
children: e.detailsSectionTitle
|
|
371
|
-
}), /* @__PURE__ */
|
|
433
|
+
}), /* @__PURE__ */ L("p", {
|
|
372
434
|
className: n(O, Q.sectionSubtitle),
|
|
373
435
|
children: e.detailsSectionSubtitle
|
|
374
436
|
})]
|
|
375
437
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ L(i, {
|
|
377
439
|
id: "scheduled-task-display-name",
|
|
378
440
|
value: a.displayName,
|
|
379
|
-
onChange: (e) =>
|
|
441
|
+
onChange: (e) => p("displayName", e ?? ""),
|
|
380
442
|
labelProps: {
|
|
381
443
|
label: e.displayNameLabel,
|
|
382
444
|
required: !0
|
|
@@ -384,39 +446,39 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
384
446
|
invalid: !!l.displayName,
|
|
385
447
|
error: l.displayName
|
|
386
448
|
}),
|
|
387
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ L(o, {
|
|
388
450
|
id: "scheduled-task-description",
|
|
389
451
|
value: a.description ?? "",
|
|
390
|
-
onChange: (e) =>
|
|
452
|
+
onChange: (e) => p("description", e),
|
|
391
453
|
labelProps: { label: e.descriptionLabel },
|
|
392
454
|
maxLength: 500,
|
|
393
455
|
invalid: !!l.description,
|
|
394
456
|
error: l.description,
|
|
395
457
|
caption: a.description ? `${a.description.length}/500` : void 0
|
|
396
458
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ L(f, {
|
|
398
460
|
label: e.modelOrAgentLabel,
|
|
399
461
|
required: !0,
|
|
400
462
|
value: a.modelId,
|
|
401
463
|
placeholder: e.modelPlaceholder,
|
|
402
|
-
onChange: (e) =>
|
|
464
|
+
onChange: (e) => p("modelId", e),
|
|
403
465
|
error: l.modelId,
|
|
404
466
|
options: d.map((e) => ({
|
|
405
467
|
value: e.id,
|
|
406
468
|
label: e.label
|
|
407
469
|
}))
|
|
408
470
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ R("fieldset", {
|
|
410
472
|
className: "flex flex-col gap-3",
|
|
411
473
|
children: [
|
|
412
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ L("legend", {
|
|
413
475
|
className: k,
|
|
414
476
|
children: e.scheduleSectionLabel
|
|
415
477
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ L(f, {
|
|
417
479
|
label: e.scheduleTypeAriaLabel,
|
|
418
480
|
value: a.scheduleType,
|
|
419
|
-
onChange: (e) =>
|
|
481
|
+
onChange: (e) => p("scheduleType", e),
|
|
420
482
|
options: [{
|
|
421
483
|
value: Y.Once,
|
|
422
484
|
label: e.scheduleTypeOnceLabel
|
|
@@ -425,62 +487,62 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
425
487
|
label: e.scheduleTypeRecurringLabel
|
|
426
488
|
}]
|
|
427
489
|
}),
|
|
428
|
-
a.scheduleType === Y.Once && /* @__PURE__ */
|
|
490
|
+
a.scheduleType === Y.Once && /* @__PURE__ */ R("div", {
|
|
429
491
|
className: "flex flex-col gap-1",
|
|
430
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ L(s, {
|
|
431
493
|
id: "scheduled-task-run-at",
|
|
432
494
|
mode: c.DateTime,
|
|
433
|
-
value:
|
|
434
|
-
onChange: (e) =>
|
|
495
|
+
value: le(a.runAt),
|
|
496
|
+
onChange: (e) => p("runAt", ue(e)),
|
|
435
497
|
label: $(e.runAtLabel),
|
|
436
498
|
invalid: !!l.runAt
|
|
437
|
-
}), l.runAt && /* @__PURE__ */
|
|
499
|
+
}), l.runAt && /* @__PURE__ */ L("p", {
|
|
438
500
|
className: n(A, Q.instructionsError),
|
|
439
501
|
children: l.runAt
|
|
440
502
|
})]
|
|
441
503
|
}),
|
|
442
|
-
a.scheduleType === Y.Recurring && /* @__PURE__ */ I
|
|
443
|
-
/* @__PURE__ */
|
|
504
|
+
a.scheduleType === Y.Recurring && /* @__PURE__ */ R(I, { children: [
|
|
505
|
+
/* @__PURE__ */ L(f, {
|
|
444
506
|
label: e.frequencyLabel,
|
|
445
507
|
value: a.frequency,
|
|
446
|
-
onChange: (e) =>
|
|
508
|
+
onChange: (e) => p("frequency", e),
|
|
447
509
|
options: e.frequencyOptions.map((e) => ({
|
|
448
510
|
value: e.key,
|
|
449
511
|
label: e.label
|
|
450
512
|
}))
|
|
451
513
|
}),
|
|
452
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ R("div", {
|
|
453
515
|
className: "flex flex-col gap-1",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
516
|
+
children: [/* @__PURE__ */ L(s, {
|
|
455
517
|
id: "scheduled-task-time",
|
|
456
518
|
mode: c.Time,
|
|
457
519
|
value: a.time,
|
|
458
|
-
onChange: (e) =>
|
|
520
|
+
onChange: (e) => p("time", typeof e == "string" ? e : ""),
|
|
459
521
|
label: $(e.timeLabel),
|
|
460
522
|
invalid: !!l.time
|
|
461
|
-
}), l.time && /* @__PURE__ */
|
|
523
|
+
}), l.time && /* @__PURE__ */ L("p", {
|
|
462
524
|
className: n(A, Q.instructionsError),
|
|
463
525
|
children: l.time
|
|
464
526
|
})]
|
|
465
527
|
}),
|
|
466
|
-
a.frequency === X.Weekly && /* @__PURE__ */
|
|
528
|
+
a.frequency === X.Weekly && /* @__PURE__ */ R("div", {
|
|
467
529
|
className: "flex flex-col gap-1",
|
|
468
|
-
children: [/* @__PURE__ */
|
|
530
|
+
children: [/* @__PURE__ */ L(s, {
|
|
469
531
|
id: "scheduled-task-day-of-week",
|
|
470
532
|
mode: c.Weekday,
|
|
471
|
-
value:
|
|
472
|
-
onChange: (e) =>
|
|
533
|
+
value: de(a.dayOfWeek),
|
|
534
|
+
onChange: (e) => p("dayOfWeek", fe(e)),
|
|
473
535
|
label: $(e.dayOfWeekLabel),
|
|
474
536
|
invalid: !!l.dayOfWeek
|
|
475
|
-
}), l.dayOfWeek && /* @__PURE__ */
|
|
537
|
+
}), l.dayOfWeek && /* @__PURE__ */ L("p", {
|
|
476
538
|
className: n(A, Q.instructionsError),
|
|
477
539
|
children: l.dayOfWeek
|
|
478
540
|
})]
|
|
479
541
|
}),
|
|
480
|
-
a.frequency === X.Monthly && /* @__PURE__ */
|
|
542
|
+
a.frequency === X.Monthly && /* @__PURE__ */ L(i, {
|
|
481
543
|
id: "scheduled-task-day-of-month",
|
|
482
544
|
value: a.dayOfMonth ?? "",
|
|
483
|
-
onChange: (e) =>
|
|
545
|
+
onChange: (e) => p("dayOfMonth", e ?? ""),
|
|
484
546
|
labelProps: {
|
|
485
547
|
label: e.dayOfMonthLabel,
|
|
486
548
|
required: !0
|
|
@@ -493,45 +555,45 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
493
555
|
})
|
|
494
556
|
]
|
|
495
557
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
558
|
+
/* @__PURE__ */ R("div", {
|
|
497
559
|
role: "group",
|
|
498
560
|
"aria-label": e.configurationSectionTitle,
|
|
499
561
|
className: "flex w-full min-w-0 flex-1 flex-col gap-5 px-8 py-6",
|
|
500
|
-
children: [/* @__PURE__ */
|
|
562
|
+
children: [/* @__PURE__ */ R("div", {
|
|
501
563
|
className: "flex flex-col gap-1",
|
|
502
|
-
children: [/* @__PURE__ */
|
|
564
|
+
children: [/* @__PURE__ */ L("h2", {
|
|
503
565
|
className: D,
|
|
504
566
|
children: e.configurationSectionTitle
|
|
505
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ L("p", {
|
|
506
568
|
className: n(O, Q.sectionSubtitle),
|
|
507
569
|
children: e.configurationSectionSubtitle
|
|
508
570
|
})]
|
|
509
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ R("div", {
|
|
510
572
|
role: "group",
|
|
511
573
|
"aria-label": e.instructionsLabel,
|
|
512
574
|
className: "flex flex-1 flex-col gap-1",
|
|
513
575
|
children: [
|
|
514
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ L("span", {
|
|
515
577
|
className: k,
|
|
516
578
|
children: e.instructionsLabel
|
|
517
579
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
fallback: /* @__PURE__ */
|
|
520
|
-
children: /* @__PURE__ */
|
|
580
|
+
/* @__PURE__ */ L(N, {
|
|
581
|
+
fallback: /* @__PURE__ */ L(h, {}),
|
|
582
|
+
children: /* @__PURE__ */ L(pe, {
|
|
521
583
|
value: a.prompt,
|
|
522
|
-
onChange: (e) =>
|
|
584
|
+
onChange: (e) => p("prompt", e),
|
|
523
585
|
height: 480,
|
|
524
|
-
theme:
|
|
586
|
+
theme: y
|
|
525
587
|
})
|
|
526
588
|
}),
|
|
527
|
-
l.prompt && /* @__PURE__ */
|
|
589
|
+
l.prompt && /* @__PURE__ */ L("p", {
|
|
528
590
|
className: n(A, Q.instructionsError),
|
|
529
591
|
children: l.prompt
|
|
530
592
|
})
|
|
531
593
|
]
|
|
532
594
|
})]
|
|
533
595
|
}),
|
|
534
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ L("div", {
|
|
535
597
|
"aria-hidden": !0,
|
|
536
598
|
className: "hidden desktop:block desktop:w-[360px] desktop:shrink-0"
|
|
537
599
|
})
|
|
@@ -540,4 +602,4 @@ var L = /* @__PURE__ */ function(e) {
|
|
|
540
602
|
});
|
|
541
603
|
};
|
|
542
604
|
//#endregion
|
|
543
|
-
export {
|
|
605
|
+
export { ce as DESCRIPTION_MAX_LENGTH, W as ScheduledTaskCard, ne as ScheduledTaskCardGrid, K as ScheduledTaskCardSkeleton, me as ScheduledTaskCreateForm, X as ScheduledTaskFrequency, Y as ScheduledTaskScheduleType, re as ScheduledTaskSection, z as ScheduledTaskSectionKey, se as ScheduledTasks, B as ScheduledTasksSortKey, H as sortScheduledTaskItems };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ScheduledTaskCardStyles } from './scheduled-task-card-props';
|
|
2
|
+
import { ScheduledTaskCardSkeletonStyles } from './scheduled-task-card-skeleton-props';
|
|
2
3
|
import { ScheduledTaskItem } from './scheduled-task-item';
|
|
3
4
|
/** Localized labels for the {@link ScheduledTaskCardGrid} component's cards. All have English defaults. */
|
|
4
5
|
export interface ScheduledTaskCardGridLabels {
|
|
@@ -29,5 +30,9 @@ export interface ScheduledTaskCardGridProps {
|
|
|
29
30
|
labels?: ScheduledTaskCardGridLabels;
|
|
30
31
|
/** Style overrides forwarded to each card. */
|
|
31
32
|
cardStyles?: ScheduledTaskCardStyles;
|
|
33
|
+
/** Number of placeholder cards rendered after `items`, inside the same grid, so they continue filling the current row instead of starting a new one. */
|
|
34
|
+
trailingSkeletonCount?: number;
|
|
35
|
+
/** Style overrides forwarded to each trailing skeleton card. */
|
|
36
|
+
skeletonStyles?: ScheduledTaskCardSkeletonStyles;
|
|
32
37
|
}
|
|
33
38
|
//# sourceMappingURL=scheduled-task-card-grid-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-card-grid-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-grid-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,2GAA2G;AAC3G,MAAM,WAAW,2BAA2B;IAC1C,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,6DAA6D;AAC7D,MAAM,WAAW,0BAA0B;IACzC,kDAAkD;IAClD,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,gHAAgH;IAChH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"scheduled-task-card-grid-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-grid-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,2GAA2G;AAC3G,MAAM,WAAW,2BAA2B;IAC1C,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,6DAA6D;AAC7D,MAAM,WAAW,0BAA0B;IACzC,kDAAkD;IAClD,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,gHAAgH;IAChH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,wJAAwJ;IACxJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gEAAgE;IAChE,cAAc,CAAC,EAAE,+BAA+B,CAAC;CAClD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color overrides for the {@link ScheduledTaskCardSkeleton} component.
|
|
3
|
+
* `DialSkeleton`'s own default color token (`bg-layer-3`) has no visible
|
|
4
|
+
* contrast against the card background in apps that don't override it, so
|
|
5
|
+
* this component requires an explicit color rather than relying on that
|
|
6
|
+
* default — callers can still override it via this prop.
|
|
7
|
+
*/
|
|
8
|
+
export interface ScheduledTaskCardSkeletonColors {
|
|
9
|
+
/** Background color of each skeleton bar. Fallback: `--bg-layer-4`. */
|
|
10
|
+
skeletonColor?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Style overrides for the {@link ScheduledTaskCardSkeleton} component. */
|
|
13
|
+
export interface ScheduledTaskCardSkeletonStyles {
|
|
14
|
+
/** Color overrides. */
|
|
15
|
+
colors?: ScheduledTaskCardSkeletonColors;
|
|
16
|
+
}
|
|
17
|
+
/** Props for the {@link ScheduledTaskCardSkeleton} component. */
|
|
18
|
+
export interface ScheduledTaskCardSkeletonProps {
|
|
19
|
+
/** Style overrides. */
|
|
20
|
+
styles?: ScheduledTaskCardSkeletonStyles;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=scheduled-task-card-skeleton-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-card-skeleton-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-skeleton-props.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,+BAA+B;IAC9C,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,2EAA2E;AAC3E,MAAM,WAAW,+BAA+B;IAC9C,uBAAuB;IACvB,MAAM,CAAC,EAAE,+BAA+B,CAAC;CAC1C;AAED,iEAAiE;AACjE,MAAM,WAAW,8BAA8B;IAC7C,uBAAuB;IACvB,MAAM,CAAC,EAAE,+BAA+B,CAAC;CAC1C"}
|
|
@@ -36,6 +36,8 @@ export interface ScheduledTasksLabels {
|
|
|
36
36
|
retryLabel: string;
|
|
37
37
|
/** Title for the section grouping items with `sectionKey: 'shared'`. */
|
|
38
38
|
sharedSectionTitle: string;
|
|
39
|
+
/** Announced via `aria-live` while a load-more fetch is in flight (`isLoadingMore`). Optional — no announcement is made when omitted. */
|
|
40
|
+
loadingMoreLabel?: string;
|
|
39
41
|
/** Localized labels forwarded as-is to every card in the grid. */
|
|
40
42
|
cardLabels?: ScheduledTaskCardGridLabels;
|
|
41
43
|
}
|
|
@@ -50,6 +52,8 @@ export interface ScheduledTasksColors {
|
|
|
50
52
|
subtitleText?: string;
|
|
51
53
|
/** Sort control label/icon color. Fallback: `--text-accent-primary`. */
|
|
52
54
|
sortButtonText?: string;
|
|
55
|
+
/** Background color of the load-more placeholder skeleton bars. Fallback: `--bg-layer-4`. */
|
|
56
|
+
skeletonColor?: string;
|
|
53
57
|
}
|
|
54
58
|
/** Typography overrides for the {@link ScheduledTasks} component. */
|
|
55
59
|
export interface ScheduledTasksTypography {
|
|
@@ -81,7 +85,7 @@ export interface ScheduledTasksProps {
|
|
|
81
85
|
sortKey: ScheduledTasksSortKey;
|
|
82
86
|
/** Called when the user selects a different sort option. */
|
|
83
87
|
onSortChange: (key: ScheduledTasksSortKey) => void;
|
|
84
|
-
/**
|
|
88
|
+
/** Tasks to render as cards, already search-matched server-side; grouped by `sectionKey` and sorted client-side by `sortKey`. */
|
|
85
89
|
items: ScheduledTaskItem[];
|
|
86
90
|
/** When `true`, the content region shows a loading spinner instead of `items`. Defaults to `false`. */
|
|
87
91
|
isLoading?: boolean;
|
|
@@ -89,6 +93,14 @@ export interface ScheduledTasksProps {
|
|
|
89
93
|
error?: Error | null;
|
|
90
94
|
/** Called when the user activates the retry action shown alongside `error`. */
|
|
91
95
|
onRetry?: () => void;
|
|
96
|
+
/** Whether another page of `items` is available beyond what has been loaded so far. Defaults to `false`. */
|
|
97
|
+
hasMore?: boolean;
|
|
98
|
+
/** When `true`, `skeletonCount` placeholder cards render below the loaded cards while the next page is fetched. Defaults to `false`. */
|
|
99
|
+
isLoadingMore?: boolean;
|
|
100
|
+
/** Number of placeholder cards shown while `isLoadingMore` is `true`. Defaults to `6`. */
|
|
101
|
+
skeletonCount?: number;
|
|
102
|
+
/** Called when the trailing scroll sentinel becomes visible and `hasMore && !isLoadingMore && !isLoading`. */
|
|
103
|
+
onLoadMore?: () => void;
|
|
92
104
|
/** Called with a task id when the user activates "Edit" on a card. Omit to hide the action on every card. */
|
|
93
105
|
onEdit?: (id: string) => void;
|
|
94
106
|
/** Called with a task id when the user activates "Run now" on a card. Omit to hide the action on every card. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-tasks-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-tasks-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,8EAA8E;AAC9E,MAAM,WAAW,wBAAwB;IACvC,8EAA8E;IAC9E,GAAG,EAAE,qBAAqB,CAAC;IAC3B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qEAAqE;AACrE,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,eAAe,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxC,yDAAyD;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kEAAkE;IAClE,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"scheduled-tasks-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-tasks-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.74",
|
|
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-chat-shared": "1.1.0-dev.
|
|
21
|
-
"@epam/ai-dial-kit": "1.1.0-dev.
|
|
20
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.74",
|
|
21
|
+
"@epam/ai-dial-kit": "1.1.0-dev.74",
|
|
22
22
|
"@epam/ai-dial-ui-kit": "0.13.0-dev.23",
|
|
23
23
|
"@tabler/icons-react": "^3.44.0",
|
|
24
24
|
"react": "^19.0.0"
|
package/utils/filter-sort.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ScheduledTaskItem } from '../models/scheduled-task-item';
|
|
2
|
-
/** Case-insensitive substring match against `displayName` and `descriptionPreview`. */
|
|
3
|
-
export declare const filterScheduledTaskItems: (items: ScheduledTaskItem[], searchQuery: string) => ScheduledTaskItem[];
|
|
4
2
|
/** Sorts a (typically already-filtered) list of items by the given toolbar sort key. */
|
|
5
3
|
export declare const sortScheduledTaskItems: (items: ScheduledTaskItem[], sortKey: string) => ScheduledTaskItem[];
|
|
6
4
|
//# sourceMappingURL=filter-sort.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-sort.d.ts","sourceRoot":"","sources":["../../src/utils/filter-sort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"filter-sort.d.ts","sourceRoot":"","sources":["../../src/utils/filter-sort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAgBvE,wFAAwF;AACxF,eAAO,MAAM,sBAAsB,GACjC,OAAO,iBAAiB,EAAE,EAC1B,SAAS,MAAM,KACd,iBAAiB,EAgCnB,CAAC"}
|