@epam/ai-dial-scheduled-tasks 1.1.0-dev.99 → 1.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts +2 -2
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
- package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
- package/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.d.ts.map +1 -1
- package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts +5 -0
- package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -0
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts +6 -5
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts +14 -0
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -0
- package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts +5 -0
- package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -0
- package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts +9 -0
- package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -0
- package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts +5 -0
- package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -0
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts +10 -0
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -0
- package/components/ScheduledTasks/ScheduledTasks.d.ts +4 -3
- package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +12 -7
- package/index.d.ts.map +1 -1
- package/index.js +962 -521
- package/models/scheduled-task-card-grid-props.d.ts +2 -14
- package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
- package/models/scheduled-task-card-props.d.ts +17 -17
- package/models/scheduled-task-card-props.d.ts.map +1 -1
- package/models/scheduled-task-card-skeleton-props.d.ts +2 -2
- package/models/scheduled-task-card-skeleton-props.d.ts.map +1 -1
- package/models/scheduled-task-configuration-section-props.d.ts +13 -0
- package/models/scheduled-task-configuration-section-props.d.ts.map +1 -0
- package/models/scheduled-task-create-form-props.d.ts +64 -48
- package/models/scheduled-task-create-form-props.d.ts.map +1 -1
- package/models/scheduled-task-detail-view-props.d.ts +164 -0
- package/models/scheduled-task-detail-view-props.d.ts.map +1 -0
- package/models/scheduled-task-details-section-props.d.ts +30 -0
- package/models/scheduled-task-details-section-props.d.ts.map +1 -0
- package/models/scheduled-task-details-summary-props.d.ts +29 -0
- package/models/scheduled-task-details-summary-props.d.ts.map +1 -0
- package/models/scheduled-task-history-section-props.d.ts +68 -0
- package/models/scheduled-task-history-section-props.d.ts.map +1 -0
- package/models/scheduled-task-item.d.ts +2 -18
- package/models/scheduled-task-item.d.ts.map +1 -1
- package/models/scheduled-task-run-history-list-props.d.ts +82 -0
- package/models/scheduled-task-run-history-list-props.d.ts.map +1 -0
- package/models/scheduled-task-run-item.d.ts +19 -0
- package/models/scheduled-task-run-item.d.ts.map +1 -0
- package/models/scheduled-tasks-props.d.ts +15 -22
- package/models/scheduled-tasks-props.d.ts.map +1 -1
- package/package.json +10 -6
- package/test-setup.d.ts +10 -0
- package/test-setup.d.ts.map +1 -1
- package/types/scheduled-task-detail-tab.d.ts +10 -0
- package/types/scheduled-task-detail-tab.d.ts.map +1 -0
- package/types/scheduled-task-history-section-variant.d.ts +8 -0
- package/types/scheduled-task-history-section-variant.d.ts.map +1 -0
- package/types/scheduled-task-run-status.d.ts +12 -0
- package/types/scheduled-task-run-status.d.ts.map +1 -0
- package/types/scheduled-task-schedule.d.ts +5 -8
- package/types/scheduled-task-schedule.d.ts.map +1 -1
- package/types/scheduled-tasks-sort-key.d.ts +9 -5
- package/types/scheduled-tasks-sort-key.d.ts.map +1 -1
- package/utils/calendar-value.d.ts +4 -0
- package/utils/calendar-value.d.ts.map +1 -1
- package/components/ScheduledTaskSection/ScheduledTaskSection.d.ts +0 -5
- package/components/ScheduledTaskSection/ScheduledTaskSection.d.ts.map +0 -1
- package/models/scheduled-task-section-props.d.ts +0 -37
- package/models/scheduled-task-section-props.d.ts.map +0 -1
|
@@ -5,14 +5,6 @@ import { ScheduledTaskItem } from './scheduled-task-item';
|
|
|
5
5
|
export interface ScheduledTaskCardGridLabels {
|
|
6
6
|
/** Label shown in a card's "new" badge. Defaults to `'NEW'`. */
|
|
7
7
|
newBadgeLabel?: string;
|
|
8
|
-
/** Accessible label for a card's overflow-menu trigger. Defaults to `'More actions'`. */
|
|
9
|
-
actionsLabel?: string;
|
|
10
|
-
/** Label for the "Edit" card menu action. Defaults to `'Edit'`. */
|
|
11
|
-
editActionLabel?: string;
|
|
12
|
-
/** Label for the "Run now" card menu action. Defaults to `'Run now'`. */
|
|
13
|
-
runNowActionLabel?: string;
|
|
14
|
-
/** Label for the "Delete" card menu action. Defaults to `'Delete'`. */
|
|
15
|
-
deleteActionLabel?: string;
|
|
16
8
|
}
|
|
17
9
|
/** Props for the {@link ScheduledTaskCardGrid} component. */
|
|
18
10
|
export interface ScheduledTaskCardGridProps {
|
|
@@ -20,12 +12,8 @@ export interface ScheduledTaskCardGridProps {
|
|
|
20
12
|
items: ScheduledTaskItem[];
|
|
21
13
|
/** Current search query — forwarded to each card to highlight the matching title substring. */
|
|
22
14
|
searchQuery?: string;
|
|
23
|
-
/** Called with a task id when the user activates
|
|
24
|
-
|
|
25
|
-
/** Called with a task id when the user activates "Run now" on a card. Omit to hide the action on every card. */
|
|
26
|
-
onRunNow?: (id: string) => void;
|
|
27
|
-
/** Called with a task id when the user activates "Delete" on a card. Omit to hide the action on every card. */
|
|
28
|
-
onDelete?: (id: string) => void;
|
|
15
|
+
/** Called with a task id when the user activates a card's body. Omit to render cards with no added interactive root semantics. */
|
|
16
|
+
onCardClick?: (id: string) => void;
|
|
29
17
|
/** Localized labels forwarded to each card. */
|
|
30
18
|
labels?: ScheduledTaskCardGridLabels;
|
|
31
19
|
/** Style overrides forwarded to each card. */
|
|
@@ -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,+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;
|
|
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;CACxB;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,kIAAkI;IAClI,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,+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"}
|
|
@@ -3,14 +3,8 @@ import { ScheduledTaskItem } from './scheduled-task-item';
|
|
|
3
3
|
export interface ScheduledTaskCardLabels {
|
|
4
4
|
/** Label shown in the "new" badge when `item.isNew` is set. Defaults to `'NEW'`. */
|
|
5
5
|
newBadgeLabel?: string;
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
/** Label for the "Edit" menu action, shown only when `onEdit` is supplied. Defaults to `'Edit'`. */
|
|
9
|
-
editActionLabel?: string;
|
|
10
|
-
/** Label for the "Run now" menu action, shown only when `onRunNow` is supplied. Defaults to `'Run now'`. */
|
|
11
|
-
runNowActionLabel?: string;
|
|
12
|
-
/** Label for the "Delete" menu action, shown only when `onDelete` is supplied. Defaults to `'Delete'`. */
|
|
13
|
-
deleteActionLabel?: string;
|
|
6
|
+
/** Label shown in the "Paused" badge when `item.isActive` is `false`. Defaults to `'Paused'`. */
|
|
7
|
+
pausedBadgeLabel?: string;
|
|
14
8
|
}
|
|
15
9
|
/**
|
|
16
10
|
* Color overrides for the {@link ScheduledTaskCard} component, applied as CSS
|
|
@@ -19,13 +13,13 @@ export interface ScheduledTaskCardLabels {
|
|
|
19
13
|
export interface ScheduledTaskCardColors {
|
|
20
14
|
/** Card title text color. Fallback: `--text-primary`. */
|
|
21
15
|
titleText?: string;
|
|
22
|
-
/** Description/prompt-preview text color. Fallback: `--text-control-disable`. */
|
|
16
|
+
/** Description/prompt-preview text color. Fallback: `--text-control-disable-primary`. */
|
|
23
17
|
descriptionText?: string;
|
|
24
18
|
/** Schedule pill background. Fallback: `--bg-layer-sunken`. */
|
|
25
19
|
schedulePillBackground?: string;
|
|
26
20
|
/** Schedule pill border color. Fallback: `--stroke-tertiary`. */
|
|
27
21
|
schedulePillBorder?: string;
|
|
28
|
-
/** Schedule pill label text color. Fallback: `--text-control-disable`. */
|
|
22
|
+
/** Schedule pill label text color. Fallback: `--text-control-disable-primary`. */
|
|
29
23
|
scheduleLabelText?: string;
|
|
30
24
|
/** Non-leaf location breadcrumb segment text color. Fallback: `--text-secondary`. */
|
|
31
25
|
locationLabelText?: string;
|
|
@@ -33,10 +27,16 @@ export interface ScheduledTaskCardColors {
|
|
|
33
27
|
locationLeafText?: string;
|
|
34
28
|
/** "New" badge background. Fallback: `--controls-bg-accent-primary`. */
|
|
35
29
|
newBadgeBackground?: string;
|
|
36
|
-
/** "New" badge text color. Fallback: `--
|
|
30
|
+
/** "New" badge text color. Fallback: `--text-control-permanent`. */
|
|
37
31
|
newBadgeText?: string;
|
|
38
32
|
/** Divider border color above the location breadcrumb. Fallback: `--stroke-tertiary`. */
|
|
39
33
|
locationDividerBorder?: string;
|
|
34
|
+
/** "Paused" badge background. Fallback: `--bg-layer-sunken`. */
|
|
35
|
+
pausedBadgeBackground?: string;
|
|
36
|
+
/** "Paused" badge border color. Fallback: `--stroke-tertiary`. */
|
|
37
|
+
pausedBadgeBorder?: string;
|
|
38
|
+
/** "Paused" badge icon and text color. Fallback: `--text-control-disable-primary`. */
|
|
39
|
+
pausedBadgeText?: string;
|
|
40
40
|
}
|
|
41
41
|
/** Typography overrides for the {@link ScheduledTaskCard} component. */
|
|
42
42
|
export interface ScheduledTaskCardTypography {
|
|
@@ -44,6 +44,8 @@ export interface ScheduledTaskCardTypography {
|
|
|
44
44
|
titleClassName?: string;
|
|
45
45
|
/** CSS class applied to the description/prompt-preview line. Defaults to `'dial-small-text'`. */
|
|
46
46
|
descriptionClassName?: string;
|
|
47
|
+
/** CSS class applied to the description's size. Defaults to `'dial-tiny-text'`. */
|
|
48
|
+
descriptionSizeClassName?: string;
|
|
47
49
|
/** CSS class applied to the schedule pill's label text. Defaults to `'dial-tiny-text'`. */
|
|
48
50
|
scheduleLabelClassName?: string;
|
|
49
51
|
/** CSS class applied to non-leaf location breadcrumb segments. Defaults to `'dial-tiny-text'`. */
|
|
@@ -52,6 +54,8 @@ export interface ScheduledTaskCardTypography {
|
|
|
52
54
|
locationLeafClassName?: string;
|
|
53
55
|
/** CSS class applied to the "new" badge text. Defaults to `'dial-tiny-semi-text'`. */
|
|
54
56
|
newBadgeClassName?: string;
|
|
57
|
+
/** CSS class applied to the "Paused" badge's label text. Defaults to `'dial-tiny-text'`. */
|
|
58
|
+
pausedBadgeClassName?: string;
|
|
55
59
|
}
|
|
56
60
|
/** Style overrides for the {@link ScheduledTaskCard} component. */
|
|
57
61
|
export interface ScheduledTaskCardStyles {
|
|
@@ -66,12 +70,8 @@ export interface ScheduledTaskCardProps {
|
|
|
66
70
|
item: ScheduledTaskItem;
|
|
67
71
|
/** Current search query — the matching substring of `item.displayName` is highlighted. */
|
|
68
72
|
searchQuery?: string;
|
|
69
|
-
/** Called with the task id when the user activates
|
|
70
|
-
|
|
71
|
-
/** Called with the task id when the user activates "Run now". Omit to hide the action. */
|
|
72
|
-
onRunNow?: (id: string) => void;
|
|
73
|
-
/** Called with the task id when the user activates "Delete". Omit to hide the action. */
|
|
74
|
-
onDelete?: (id: string) => void;
|
|
73
|
+
/** Called with the task id when the user activates the card body (click or Enter/Space). When omitted, the card renders with no added interactive root semantics. */
|
|
74
|
+
onCardClick?: (id: string) => void;
|
|
75
75
|
/** Localized labels. */
|
|
76
76
|
labels?: ScheduledTaskCardLabels;
|
|
77
77
|
/** Style overrides. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-card-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,
|
|
1
|
+
{"version":3,"file":"scheduled-task-card-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-card-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,mGAAmG;AACnG,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yFAAyF;IACzF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gEAAgE;IAChE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mFAAmF;IACnF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6GAA6G;IAC7G,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qKAAqK;IACrK,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wBAAwB;IACxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Color overrides for the {@link ScheduledTaskCardSkeleton} component.
|
|
3
|
-
* `
|
|
3
|
+
* `Skeleton`'s own default color token (`bg-layer-raised`) has no visible
|
|
4
4
|
* contrast against the card background in apps that don't override it, so
|
|
5
5
|
* this component requires an explicit color rather than relying on that
|
|
6
6
|
* default — callers can still override it via this prop.
|
|
7
7
|
*/
|
|
8
8
|
export interface ScheduledTaskCardSkeletonColors {
|
|
9
|
-
/** Background color of each skeleton bar. Fallback: `--bg-
|
|
9
|
+
/** Background color of each skeleton bar. Fallback: `--bg-control-disable-primary`. */
|
|
10
10
|
skeletonColor?: string;
|
|
11
11
|
}
|
|
12
12
|
/** Style overrides for the {@link ScheduledTaskCardSkeleton} component. */
|
|
@@ -1 +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,
|
|
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,uFAAuF;IACvF,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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Props for the {@link ScheduledTaskConfigurationSection} component. */
|
|
3
|
+
export interface ScheduledTaskConfigurationSectionProps {
|
|
4
|
+
/** Label for the instructions field. */
|
|
5
|
+
instructionsLabel: string;
|
|
6
|
+
/** Raw instructions markdown, passed to `renderInstructions` when supplied, or rendered via `MDMessageViewer` otherwise. Omit to hide the field entirely. */
|
|
7
|
+
instructionsMarkdown?: string;
|
|
8
|
+
/** Renders `instructionsMarkdown` as a ReactNode. When omitted, `instructionsMarkdown` is rendered via `MDMessageViewer` (the same markdown stack chat assistant messages use). */
|
|
9
|
+
renderInstructions?: (markdown: string) => ReactNode;
|
|
10
|
+
/** CSS class applied to the instructions field label. Defaults to `'dial-tiny-text'`. */
|
|
11
|
+
fieldLabelClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=scheduled-task-configuration-section-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-configuration-section-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-configuration-section-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,yEAAyE;AACzE,MAAM,WAAW,sCAAsC;IACrD,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6JAA6J;IAC7J,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mLAAmL;IACnL,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACrD,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** A single model option rendered in the model dropdown. */
|
|
10
|
-
export interface ScheduledTaskCreateFormModelOption {
|
|
11
|
-
/** Deployment id sent to the BFF as `model`. */
|
|
12
|
-
id: string;
|
|
13
|
-
/** Localized display label shown in the dropdown. */
|
|
1
|
+
import { EditorThemes } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ScheduledTaskRepeat } from '../types/scheduled-task-schedule';
|
|
4
|
+
/** A single option rendered in the Repeat dropdown. */
|
|
5
|
+
export interface ScheduledTaskRepeatOption {
|
|
6
|
+
/** Stable identifier for this option, passed back via `onFieldChange('repeat', key)`. */
|
|
7
|
+
key: ScheduledTaskRepeat;
|
|
8
|
+
/** Localized display label for this repeat option. */
|
|
14
9
|
label: string;
|
|
15
10
|
}
|
|
16
11
|
/** Current form field values for the {@link ScheduledTaskCreateForm} component. */
|
|
17
12
|
export interface ScheduledTaskCreateFormValues {
|
|
18
13
|
/** The scheduled task's display name (required). */
|
|
19
14
|
displayName: string;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/** Local datetime-local input value used when `
|
|
15
|
+
/** How often the task repeats. */
|
|
16
|
+
repeat: ScheduledTaskRepeat;
|
|
17
|
+
/** Local datetime-local input value used when `repeat` is `'oneTime'`. */
|
|
23
18
|
runAt?: string;
|
|
24
|
-
/**
|
|
25
|
-
frequency?: ScheduledTaskFrequency;
|
|
26
|
-
/** `HH:mm` time-of-day used when `scheduleType` is `'recurring'`. */
|
|
19
|
+
/** `HH:mm` time-of-day used when `repeat` is `'daily'`, `'weekly'`, or `'monthly'`. */
|
|
27
20
|
time: string;
|
|
28
|
-
/** Day of week (`'0'`-`'6'`) used when `
|
|
21
|
+
/** Day of week (`'0'`-`'6'`) used when `repeat` is `'weekly'`. */
|
|
29
22
|
dayOfWeek?: string;
|
|
30
|
-
/** Day of month (`'1'`-`'31'`) used when `
|
|
23
|
+
/** Day of month (`'1'`-`'31'`) used when `repeat` is `'monthly'`. */
|
|
31
24
|
dayOfMonth?: string;
|
|
25
|
+
/** Minute of the hour (`'0'`-`'59'`) used when `repeat` is `'hourly'`. */
|
|
26
|
+
minute?: string;
|
|
27
|
+
/** Date-only value bounding the start of a recurring schedule's activity window. Ignored when `repeat` is `'oneTime'`. */
|
|
28
|
+
startDate?: string;
|
|
29
|
+
/** Date-only value bounding the end of a recurring schedule's activity window. Ignored when `repeat` is `'oneTime'`. */
|
|
30
|
+
endDate?: string;
|
|
32
31
|
/** Selected deployment id sent to the BFF as `model` (required). */
|
|
33
32
|
modelId: string;
|
|
34
33
|
/** Optional human-readable summary sent to the BFF as `description` (max 500 characters). */
|
|
35
34
|
description?: string;
|
|
36
35
|
/** Prompt text sent to the BFF as `prompt` (required). */
|
|
37
36
|
prompt: string;
|
|
38
|
-
/** Whether the scheduled chat completion streams its response. */
|
|
39
|
-
stream: boolean;
|
|
40
37
|
}
|
|
41
38
|
/** Validation error messages keyed by {@link ScheduledTaskCreateFormValues} field. */
|
|
42
39
|
export interface ScheduledTaskCreateFormErrors {
|
|
@@ -50,6 +47,12 @@ export interface ScheduledTaskCreateFormErrors {
|
|
|
50
47
|
dayOfWeek?: string;
|
|
51
48
|
/** Error shown under the day-of-month field. */
|
|
52
49
|
dayOfMonth?: string;
|
|
50
|
+
/** Error shown under the minute field. */
|
|
51
|
+
minute?: string;
|
|
52
|
+
/** Error shown under the start-date field. */
|
|
53
|
+
startDate?: string;
|
|
54
|
+
/** Error shown under the end-date field. */
|
|
55
|
+
endDate?: string;
|
|
53
56
|
/** Error shown under the model field. */
|
|
54
57
|
modelId?: string;
|
|
55
58
|
/** Error shown under the description field. */
|
|
@@ -75,30 +78,30 @@ export interface ScheduledTaskCreateFormLabels {
|
|
|
75
78
|
displayNameLabel: string;
|
|
76
79
|
/** Display name required-field validation message. */
|
|
77
80
|
displayNameRequired: string;
|
|
78
|
-
/**
|
|
79
|
-
scheduleSectionLabel: string;
|
|
80
|
-
/** Label for the "once" schedule type option. */
|
|
81
|
-
scheduleTypeOnceLabel: string;
|
|
82
|
-
/** Label for the "recurring" schedule type option. */
|
|
83
|
-
scheduleTypeRecurringLabel: string;
|
|
84
|
-
/** Accessible label for the schedule type control. */
|
|
85
|
-
scheduleTypeAriaLabel: string;
|
|
86
|
-
/** Run-at field label (shown when schedule type is "once"). */
|
|
81
|
+
/** Run-at field label (shown when `repeat` is "oneTime"). */
|
|
87
82
|
runAtLabel: string;
|
|
88
|
-
/** Accessible label for the
|
|
89
|
-
|
|
90
|
-
/** Options rendered in the
|
|
91
|
-
|
|
92
|
-
/** Time field label (shown when
|
|
83
|
+
/** Accessible label for the Repeat dropdown. */
|
|
84
|
+
repeatLabel: string;
|
|
85
|
+
/** Options rendered in the Repeat dropdown. */
|
|
86
|
+
repeatOptions: ScheduledTaskRepeatOption[];
|
|
87
|
+
/** Time field label (shown when `repeat` is "daily", "weekly", or "monthly"). */
|
|
93
88
|
timeLabel: string;
|
|
94
|
-
/** Day-of-week field label (shown when
|
|
89
|
+
/** Day-of-week field label (shown when `repeat` is "weekly"). */
|
|
95
90
|
dayOfWeekLabel: string;
|
|
96
|
-
/** Day-of-month field label (shown when
|
|
91
|
+
/** Day-of-month field label (shown when `repeat` is "monthly"). */
|
|
97
92
|
dayOfMonthLabel: string;
|
|
98
|
-
/**
|
|
93
|
+
/** Minute field label (shown when `repeat` is "hourly"). */
|
|
94
|
+
minuteLabel: string;
|
|
95
|
+
/** Start-date field label (shown when `repeat` is not "oneTime"; the field itself is optional, so this label carries no required marker). */
|
|
96
|
+
startDateLabel: string;
|
|
97
|
+
/** Placeholder shown in the start-date picker when unset. */
|
|
98
|
+
startDatePlaceholder: string;
|
|
99
|
+
/** End-date field label (shown when `repeat` is not "oneTime"; the field itself is optional, so this label carries no required marker). */
|
|
100
|
+
endDateLabel: string;
|
|
101
|
+
/** Placeholder shown in the end-date picker when unset. */
|
|
102
|
+
endDatePlaceholder: string;
|
|
103
|
+
/** Label for the Model or Agent field, rendered above `modelSelector`. */
|
|
99
104
|
modelOrAgentLabel: string;
|
|
100
|
-
/** Placeholder shown in the model dropdown trigger when no model is selected. */
|
|
101
|
-
modelPlaceholder: string;
|
|
102
105
|
/** Description textarea label. */
|
|
103
106
|
descriptionLabel: string;
|
|
104
107
|
/** Accessible label for the Instructions markdown editor. */
|
|
@@ -107,6 +110,8 @@ export interface ScheduledTaskCreateFormLabels {
|
|
|
107
110
|
cancelButtonLabel: string;
|
|
108
111
|
/** Label for the Save action (submits the create form). */
|
|
109
112
|
createButtonLabel: string;
|
|
113
|
+
/** Accessible name for the Save action's busy indicator, announced while `isSubmitting` is `true`. Defaults to `'Saving'`. */
|
|
114
|
+
submittingLabel?: string;
|
|
110
115
|
}
|
|
111
116
|
/**
|
|
112
117
|
* Color overrides for the {@link ScheduledTaskCreateForm} component, applied
|
|
@@ -132,8 +137,8 @@ export interface ScheduledTaskCreateFormTypography {
|
|
|
132
137
|
sectionTitleClassName?: string;
|
|
133
138
|
/** CSS class applied to a section subtitle. Defaults to `'dial-tiny-text'`. */
|
|
134
139
|
sectionSubtitleClassName?: string;
|
|
135
|
-
/** CSS class applied to the
|
|
136
|
-
|
|
140
|
+
/** CSS class applied to the Instructions label. Defaults to `'dial-body-semi-text mb-1'`. */
|
|
141
|
+
instructionsLabelClassName?: string;
|
|
137
142
|
/** CSS class applied to the Instructions editor's validation error text. Defaults to `'dial-small-text'`. */
|
|
138
143
|
instructionsErrorClassName?: string;
|
|
139
144
|
}
|
|
@@ -152,8 +157,19 @@ export interface ScheduledTaskCreateFormProps {
|
|
|
152
157
|
values: ScheduledTaskCreateFormValues;
|
|
153
158
|
/** Current per-field validation errors. */
|
|
154
159
|
errors: ScheduledTaskCreateFormErrors;
|
|
155
|
-
/**
|
|
156
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Fully-composed deployment-selector control rendered in the Model or
|
|
162
|
+
* Agent field, in place of a lib-owned control. Opaque to the lib — it is
|
|
163
|
+
* rendered verbatim, wrapped by the lib's own required-label/error markup.
|
|
164
|
+
*/
|
|
165
|
+
modelSelector: ReactNode;
|
|
166
|
+
/**
|
|
167
|
+
* Id applied to the Model or Agent field's `Label` element. The host
|
|
168
|
+
* generates this (e.g. via React `useId()`) and must pass the same value
|
|
169
|
+
* as `modelSelector`'s own `aria-labelledby` target, so the two stay
|
|
170
|
+
* linked without a literal id that could collide across form instances.
|
|
171
|
+
*/
|
|
172
|
+
modelLabelId: string;
|
|
157
173
|
/** Called with the changed field key and its new value whenever any field is edited. */
|
|
158
174
|
onFieldChange: <K extends keyof ScheduledTaskCreateFormValues>(field: K, value: ScheduledTaskCreateFormValues[K]) => void;
|
|
159
175
|
/** Called when the user activates the header's back control. */
|
|
@@ -164,8 +180,8 @@ export interface ScheduledTaskCreateFormProps {
|
|
|
164
180
|
onSubmit: () => void;
|
|
165
181
|
/** When `true`, the Save action is disabled and shows a busy affordance. Defaults to `false`. */
|
|
166
182
|
isSubmitting?: boolean;
|
|
167
|
-
/** Color theme applied to the Instructions markdown editor. Defaults to the editor's own default (`
|
|
168
|
-
markdownEditorTheme?:
|
|
183
|
+
/** Color theme applied to the Instructions markdown editor. Defaults to the editor's own default (`EditorThemes.light`). */
|
|
184
|
+
markdownEditorTheme?: EditorThemes;
|
|
169
185
|
/** Style overrides. */
|
|
170
186
|
styles?: ScheduledTaskCreateFormStyles;
|
|
171
187
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-create-form-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-create-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"scheduled-task-create-form-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-create-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,uDAAuD;AACvD,MAAM,WAAW,yBAAyB;IACxC,yFAAyF;IACzF,GAAG,EAAE,mBAAmB,CAAC;IACzB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,mFAAmF;AACnF,MAAM,WAAW,6BAA6B;IAC5C,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,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atus } from '../types/scheduled-task-run-status';
|
|
3
|
+
import { ScheduledTaskRunItem } from './scheduled-task-run-item';
|
|
4
|
+
/** Localized labels used by the {@link ScheduledTaskDetailView} component. */
|
|
5
|
+
export interface ScheduledTaskDetailViewLabels {
|
|
6
|
+
/** Accessible label for the back-navigation control. */
|
|
7
|
+
backAriaLabel: string;
|
|
8
|
+
/** Label for the header's Edit action. Shown only when `onEdit` is supplied. */
|
|
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;
|
|
14
|
+
/** Message shown alongside the page-level retry action when `error` is set. */
|
|
15
|
+
errorLabel: string;
|
|
16
|
+
/** Title of the Details section. */
|
|
17
|
+
detailsTitle: string;
|
|
18
|
+
/** Label for the description field. */
|
|
19
|
+
descriptionLabel: string;
|
|
20
|
+
/** Label for the model/agent field. */
|
|
21
|
+
modelLabel: string;
|
|
22
|
+
/** Label for the recurrence field, e.g. "Repeats". */
|
|
23
|
+
repeatsLabel: string;
|
|
24
|
+
/** Label for the activity-window field, e.g. "Active". Shown only for a recurring task whose window is bounded. */
|
|
25
|
+
activeWindowLabel: string;
|
|
26
|
+
/** Accessible name and visible label of the header's Active switch. Distinct from `activeWindowLabel`, which describes the cron activity date window. Shown only when `isActive` is defined. */
|
|
27
|
+
activeStatusLabel: string;
|
|
28
|
+
/** Announced via `aria-live` after a pause/resume mutation completes, separate from the switch's own accessible name. Empty string announces nothing. */
|
|
29
|
+
activeStatusAnnouncement?: string;
|
|
30
|
+
/** Title of the Configuration section. */
|
|
31
|
+
configurationTitle: string;
|
|
32
|
+
/** Label for the instructions field. */
|
|
33
|
+
instructionsLabel: string;
|
|
34
|
+
/** Label for the page-level retry action shown alongside `error`. */
|
|
35
|
+
retryLabel: string;
|
|
36
|
+
/** Title of the History panel. */
|
|
37
|
+
historyTitle: string;
|
|
38
|
+
/** Message shown when the task has no runs yet. */
|
|
39
|
+
historyEmptyLabel: string;
|
|
40
|
+
/** Message shown alongside the retry action when `runsError` is set. */
|
|
41
|
+
historyErrorLabel: string;
|
|
42
|
+
/** Label for the History retry action. */
|
|
43
|
+
historyRetryLabel: string;
|
|
44
|
+
/** Announced via `aria-live` while a load-more runs fetch is in flight. */
|
|
45
|
+
historyLoadingMoreLabel?: string;
|
|
46
|
+
/** Label for the "Show more" button rendered below the loaded runs when `runsHasMore` is `true`. Required when `onRunsLoadMore` is supplied. */
|
|
47
|
+
historyShowMoreLabel?: string;
|
|
48
|
+
/** Per-status label used to build each run row's accessible name, e.g. `{ success: 'Succeeded', ... }`. */
|
|
49
|
+
runStatusLabels: Record<ScheduledTaskRunStatus, string>;
|
|
50
|
+
/** `sr-only` label announced alongside the unread-dot indicator on a run row whose `isUnread` is `true`. Defaults to `'Unread'`. */
|
|
51
|
+
unreadIndicatorLabel?: string;
|
|
52
|
+
/** Accessible name for the mobile/tablet body's tab row. Defaults to `'Scheduled task sections'`. */
|
|
53
|
+
tabsAriaLabel?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Color overrides for the {@link ScheduledTaskDetailView} component, applied
|
|
57
|
+
* as CSS custom properties with app theme fallbacks.
|
|
58
|
+
*/
|
|
59
|
+
export interface ScheduledTaskDetailViewColors {
|
|
60
|
+
/** Root container background. Fallback: `--bg-layer-base`. */
|
|
61
|
+
background?: string;
|
|
62
|
+
/** Header divider: below the header at desktop, above it at mobile/tablet. Fallback: `--stroke-tertiary`. */
|
|
63
|
+
headerBorder?: string;
|
|
64
|
+
/** Details/Configuration column end border. Fallback: `--stroke-tertiary`. */
|
|
65
|
+
detailsColumnBorder?: string;
|
|
66
|
+
/** Section subtitle and status-message text color. Fallback: `--text-secondary`. */
|
|
67
|
+
subtitleText?: string;
|
|
68
|
+
/** Success status icon color. Fallback: `--text-success`. */
|
|
69
|
+
successIconColor?: string;
|
|
70
|
+
/** Error status icon color. Fallback: `--text-error`. */
|
|
71
|
+
errorIconColor?: string;
|
|
72
|
+
/** Missed status icon color. Fallback: `--text-secondary`. */
|
|
73
|
+
missedIconColor?: string;
|
|
74
|
+
/** History card background. Fallback: `--bg-layer-raised`. */
|
|
75
|
+
historyCardBackground?: string;
|
|
76
|
+
/** Unread-dot indicator fill color. Fallback: `--text-accent`. */
|
|
77
|
+
unreadDotColor?: string;
|
|
78
|
+
}
|
|
79
|
+
/** Typography overrides for the {@link ScheduledTaskDetailView} component. */
|
|
80
|
+
export interface ScheduledTaskDetailViewTypography {
|
|
81
|
+
/** CSS class applied to the header title. Defaults to `'dial-h2-text'`. */
|
|
82
|
+
titleClassName?: string;
|
|
83
|
+
/** CSS class applied to section titles. Defaults to `'dial-body-semi-text'`. */
|
|
84
|
+
sectionTitleClassName?: string;
|
|
85
|
+
/** CSS class applied to field labels. Defaults to `'dial-tiny-text'`. */
|
|
86
|
+
fieldLabelClassName?: string;
|
|
87
|
+
/** CSS class applied to field values. Defaults to `'dial-small-text'`. */
|
|
88
|
+
fieldValueClassName?: string;
|
|
89
|
+
/** CSS class applied to each run row's timestamp text. Defaults to `'dial-small-text'`. */
|
|
90
|
+
runTimestampClassName?: string;
|
|
91
|
+
}
|
|
92
|
+
/** Style overrides for the {@link ScheduledTaskDetailView} component. */
|
|
93
|
+
export interface ScheduledTaskDetailViewStyles {
|
|
94
|
+
/** Color overrides applied as CSS custom properties. */
|
|
95
|
+
colors?: ScheduledTaskDetailViewColors;
|
|
96
|
+
/** Typography class overrides. */
|
|
97
|
+
typography?: ScheduledTaskDetailViewTypography;
|
|
98
|
+
}
|
|
99
|
+
/** Props for the {@link ScheduledTaskDetailView} component. */
|
|
100
|
+
export interface ScheduledTaskDetailViewProps {
|
|
101
|
+
/** Localized labels. */
|
|
102
|
+
labels: ScheduledTaskDetailViewLabels;
|
|
103
|
+
/** Called when the user activates the back-navigation control. */
|
|
104
|
+
onBack: () => void;
|
|
105
|
+
/** Called when the user activates the header's Edit action. When omitted, no Edit action renders. Suppressed while `isDeleted` is `true`. */
|
|
106
|
+
onEdit?: () => void;
|
|
107
|
+
/** 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. */
|
|
108
|
+
onDelete?: () => void;
|
|
109
|
+
/** When `true`, the Delete action, Edit action, and Active switch render disabled rather than being removed. Defaults to `false`. */
|
|
110
|
+
isDeleting?: boolean;
|
|
111
|
+
/** 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`. */
|
|
112
|
+
isDeleted?: boolean;
|
|
113
|
+
/** Whether the schedule is currently active (resumed) or paused. When `undefined`, the Active switch does not render. Suppressed while `isDeleted` is `true`. */
|
|
114
|
+
isActive?: boolean;
|
|
115
|
+
/** When `true`, the Active switch renders disabled while a pause/resume request is in flight. Defaults to `false`. */
|
|
116
|
+
isActiveUpdating?: boolean;
|
|
117
|
+
/** When `true`, the Active switch renders disabled (e.g. a completed one-time schedule that cannot be resumed), independent of `isActiveUpdating`. Defaults to `false`. */
|
|
118
|
+
isActiveDisabled?: boolean;
|
|
119
|
+
/** Called with the newly requested value when the user toggles the Active switch. The component performs no network call or optimistic update itself. */
|
|
120
|
+
onActiveChange?: (nextActive: boolean) => void;
|
|
121
|
+
/** Task title shown in the header and used as the page's accessible name. */
|
|
122
|
+
displayName: string;
|
|
123
|
+
/** When `true`, the entire body (Details, Configuration, and History) shows a page-level spinner instead of the fields below. Defaults to `false`. */
|
|
124
|
+
isLoading?: boolean;
|
|
125
|
+
/** When set, the entire body (Details, Configuration, and History) shows an error message and retry action instead of the fields below. */
|
|
126
|
+
error?: Error | null;
|
|
127
|
+
/** Called when the user activates the retry action shown alongside `error`. */
|
|
128
|
+
onRetry?: () => void;
|
|
129
|
+
/** Task description. Omit to hide the field. */
|
|
130
|
+
description?: string;
|
|
131
|
+
/** Resolved "Model or Agent" display value (already resolved to a display name, or the raw id as a fallback). */
|
|
132
|
+
modelLabel?: string;
|
|
133
|
+
/** Pre-formatted recurrence label, e.g. "Every Monday 12:00". */
|
|
134
|
+
repeatsLabel?: string;
|
|
135
|
+
/** Pre-formatted activity-window label, e.g. "Aug 1, 2026 – Dec 31, 2026". Omit to hide (unbounded or one-shot schedule). */
|
|
136
|
+
activeWindowLabel?: string;
|
|
137
|
+
/** Raw instructions markdown, passed to `renderInstructions` when supplied, or rendered via the default `MDMessageViewer` otherwise. Omit to hide the field entirely. */
|
|
138
|
+
instructionsMarkdown?: string;
|
|
139
|
+
/** Renders `instructionsMarkdown` as a ReactNode. When omitted, `instructionsMarkdown` is rendered via `MDMessageViewer` (the same markdown stack chat assistant messages use). */
|
|
140
|
+
renderInstructions?: (markdown: string) => ReactNode;
|
|
141
|
+
/** Pre-formatted "Next run" label shown under the History title, e.g. "Next run: Jul 31 at 9:00 AM". Omit to hide (e.g. when the schedule is paused or inactive). */
|
|
142
|
+
nextRunLabel?: string;
|
|
143
|
+
/** Runs to render in the History panel, in the order they should display (server order, newest first). */
|
|
144
|
+
runs: ScheduledTaskRunItem[];
|
|
145
|
+
/** When `true` and `runs` is empty, the History panel shows a loading state (skeleton rows) instead of `historyEmptyLabel`. Defaults to `false`. */
|
|
146
|
+
runsIsLoading?: boolean;
|
|
147
|
+
/** When `true`, `runsSkeletonCount` placeholder rows render below the loaded runs while the next page is fetched. Defaults to `false`. */
|
|
148
|
+
runsIsLoadingMore?: boolean;
|
|
149
|
+
/** Number of placeholder rows shown during initial load and load-more. Defaults to `6`. */
|
|
150
|
+
runsSkeletonCount?: number;
|
|
151
|
+
/** When set, the History panel shows an error message and retry action instead of `runs`. */
|
|
152
|
+
runsError?: Error | null;
|
|
153
|
+
/** Called when the user activates the History retry action shown alongside `runsError`. */
|
|
154
|
+
onRunsRetry?: () => void;
|
|
155
|
+
/** Whether another page of `runs` is available beyond what has been loaded so far. Defaults to `false`. */
|
|
156
|
+
runsHasMore?: boolean;
|
|
157
|
+
/** Called when the user activates the "Show more" button, rendered below the loaded runs while `runsHasMore` is `true`. Omit to hide the button entirely. */
|
|
158
|
+
onRunsLoadMore?: () => void;
|
|
159
|
+
/** Called with the run when the user clicks a row whose `conversationId` is set. Rows without a `conversationId` never invoke this, regardless of whether it is supplied. */
|
|
160
|
+
onRunClick?: (run: ScheduledTaskRunItem) => void;
|
|
161
|
+
/** Style overrides. */
|
|
162
|
+
styles?: ScheduledTaskDetailViewStyles;
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=scheduled-task-detail-view-props.d.ts.map
|
|
@@ -0,0 +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,gGAAgG;IAChG,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,iBAAiB,EAAE,MAAM,CAAC;IAC1B,+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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+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iHAAiH;IACjH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6HAA6H;IAC7H,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yKAAyK;IACzK,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mLAAmL;IACnL,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACrD,qKAAqK;IACrK,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0GAA0G;IAC1G,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,oJAAoJ;IACpJ,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0IAA0I;IAC1I,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,2FAA2F;IAC3F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6FAA6F;IAC7F,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,2FAA2F;IAC3F,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,2GAA2G;IAC3G,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6JAA6J;IAC7J,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,6KAA6K;IAC7K,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACjD,uBAAuB;IACvB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Localized field labels used by the {@link ScheduledTaskDetailsSection} component. */
|
|
2
|
+
interface ScheduledTaskDetailsSectionLabels {
|
|
3
|
+
/** Label for the description field. */
|
|
4
|
+
descriptionLabel: string;
|
|
5
|
+
/** Label for the model/agent field. */
|
|
6
|
+
modelLabel: string;
|
|
7
|
+
/** Label for the recurrence field, e.g. "Repeats". */
|
|
8
|
+
repeatsLabel: string;
|
|
9
|
+
/** Label for the activity-window field, e.g. "Active". */
|
|
10
|
+
activeWindowLabel: string;
|
|
11
|
+
}
|
|
12
|
+
/** Props for the {@link ScheduledTaskDetailsSection} component. */
|
|
13
|
+
export interface ScheduledTaskDetailsSectionProps {
|
|
14
|
+
/** Localized field labels. */
|
|
15
|
+
labels: ScheduledTaskDetailsSectionLabels;
|
|
16
|
+
/** Task description. Omit to hide the field. */
|
|
17
|
+
description?: string;
|
|
18
|
+
/** Resolved "Model or Agent" display value (display name, or the raw id as a fallback). Omit to hide the field. */
|
|
19
|
+
modelLabel?: string;
|
|
20
|
+
/** Pre-formatted recurrence label, e.g. "Every Monday 12:00". Omit to hide the field. */
|
|
21
|
+
repeatsLabel?: string;
|
|
22
|
+
/** Pre-formatted activity-window label, e.g. "Aug 1, 2026 – Dec 31, 2026". Omit to hide the field (unbounded or one-shot schedule). */
|
|
23
|
+
activeWindowLabel?: string;
|
|
24
|
+
/** CSS class applied to each field label. Defaults to `'dial-tiny-text'`. */
|
|
25
|
+
fieldLabelClassName?: string;
|
|
26
|
+
/** CSS class applied to each field value. Defaults to `'dial-small-text'`. */
|
|
27
|
+
fieldValueClassName?: string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=scheduled-task-details-section-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-details-section-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-details-section-props.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,UAAU,iCAAiC;IACzC,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,mEAAmE;AACnE,MAAM,WAAW,gCAAgC;IAC/C,8BAA8B;IAC9B,MAAM,EAAE,iCAAiC,CAAC;IAC1C,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mHAAmH;IACnH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uIAAuI;IACvI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Typography overrides for the {@link ScheduledTaskDetailsSummary} component. */
|
|
3
|
+
export interface ScheduledTaskDetailsSummaryTypography {
|
|
4
|
+
/** CSS class applied to the "Model"/"Instructions" field labels. Defaults to `'dial-tiny-text'`. */
|
|
5
|
+
fieldLabelClassName?: string;
|
|
6
|
+
/** CSS class applied to the resolved model value. Defaults to `'dial-body-text'`. */
|
|
7
|
+
fieldValueClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Style overrides for the {@link ScheduledTaskDetailsSummary} component. */
|
|
10
|
+
export interface ScheduledTaskDetailsSummaryStyles {
|
|
11
|
+
/** Typography class overrides. */
|
|
12
|
+
typography?: ScheduledTaskDetailsSummaryTypography;
|
|
13
|
+
}
|
|
14
|
+
/** Props for the {@link ScheduledTaskDetailsSummary} component. */
|
|
15
|
+
export interface ScheduledTaskDetailsSummaryProps {
|
|
16
|
+
/** Label for the model field, e.g. "Model". */
|
|
17
|
+
modelLabel: string;
|
|
18
|
+
/** Label for the instructions field, e.g. "Instructions". */
|
|
19
|
+
instructionsLabel: string;
|
|
20
|
+
/** Resolved "Model" display value (already resolved to a display name, or the raw id as a fallback). Omit to hide the field. */
|
|
21
|
+
modelDisplayName?: string;
|
|
22
|
+
/** Raw instructions markdown, passed to `renderInstructions` when supplied, or rendered via the default `MDMessageViewer` otherwise. Omit to hide the field entirely. */
|
|
23
|
+
instructionsMarkdown?: string;
|
|
24
|
+
/** Renders `instructionsMarkdown` as a ReactNode. When omitted, `instructionsMarkdown` is rendered via `MDMessageViewer` (the same markdown stack chat assistant messages use). */
|
|
25
|
+
renderInstructions?: (markdown: string) => ReactNode;
|
|
26
|
+
/** Style overrides. */
|
|
27
|
+
styles?: ScheduledTaskDetailsSummaryStyles;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=scheduled-task-details-summary-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-details-summary-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-details-summary-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,kFAAkF;AAClF,MAAM,WAAW,qCAAqC;IACpD,oGAAoG;IACpG,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,6EAA6E;AAC7E,MAAM,WAAW,iCAAiC;IAChD,kCAAkC;IAClC,UAAU,CAAC,EAAE,qCAAqC,CAAC;CACpD;AAED,mEAAmE;AACnE,MAAM,WAAW,gCAAgC;IAC/C,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gIAAgI;IAChI,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yKAAyK;IACzK,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mLAAmL;IACnL,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACrD,uBAAuB;IACvB,MAAM,CAAC,EAAE,iCAAiC,CAAC;CAC5C"}
|