@epam/ai-dial-scheduled-tasks 1.2.0-dev.3 → 1.2.0-dev.300
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/calendar-value-B41Uk26Z.js +24 -0
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts +6 -5
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
- package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts +1 -1
- package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
- package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts +1 -1
- package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -1
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts +7 -6
- package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
- package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts +59 -0
- package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts.map +1 -0
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
- package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -1
- package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
- package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts +16 -0
- package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -0
- package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
- package/components/ScheduledTaskStatusPill/ScheduledTaskStatusPill.d.ts +16 -0
- package/components/ScheduledTaskStatusPill/ScheduledTaskStatusPill.d.ts.map +1 -0
- package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +12 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +13 -2
- package/index.d.ts.map +1 -1
- package/index.js +998 -629
- package/models/scheduled-task-card-grid-props.d.ts +12 -5
- package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
- package/models/scheduled-task-card-props.d.ts +11 -1
- package/models/scheduled-task-card-props.d.ts.map +1 -1
- package/models/scheduled-task-configuration-section-props.d.ts +7 -0
- package/models/scheduled-task-configuration-section-props.d.ts.map +1 -1
- package/models/scheduled-task-create-form-props.d.ts +51 -4
- package/models/scheduled-task-create-form-props.d.ts.map +1 -1
- package/models/scheduled-task-detail-view-props.d.ts +52 -3
- package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
- package/models/scheduled-task-details-section-props.d.ts +4 -0
- package/models/scheduled-task-details-section-props.d.ts.map +1 -1
- package/models/scheduled-task-details-summary-props.d.ts +7 -0
- package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
- package/models/scheduled-task-history-section-props.d.ts +21 -2
- package/models/scheduled-task-history-section-props.d.ts.map +1 -1
- package/models/scheduled-task-instructions.d.ts +18 -0
- package/models/scheduled-task-instructions.d.ts.map +1 -0
- package/models/scheduled-task-item.d.ts +20 -0
- package/models/scheduled-task-item.d.ts.map +1 -1
- package/models/scheduled-task-run-history-list-props.d.ts +8 -0
- package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
- package/models/scheduled-tasks-props.d.ts +9 -1
- package/models/scheduled-tasks-props.d.ts.map +1 -1
- package/package.json +9 -4
- package/types/scheduled-task-status.d.ts +15 -0
- package/types/scheduled-task-status.d.ts.map +1 -0
- package/utils/calendar-value.d.ts +2 -0
- package/utils/calendar-value.d.ts.map +1 -1
- package/utils/scheduled-task-form-values.d.ts +4 -0
- package/utils/scheduled-task-form-values.d.ts.map +1 -0
- package/utils/scheduled-task-status.d.ts +5 -0
- package/utils/scheduled-task-status.d.ts.map +1 -0
- package/validation/index.d.ts +3 -0
- package/validation/index.d.ts.map +1 -0
- package/validation/scheduled-task-validation.d.ts +57 -0
- package/validation/scheduled-task-validation.d.ts.map +1 -0
- package/validation.d.ts +3 -0
- package/validation.d.ts.map +1 -0
- package/validation.js +34 -0
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { ScheduledTaskCardStyles } from './scheduled-task-card-props';
|
|
1
|
+
import { ScheduledTaskCardLabels, ScheduledTaskCardStyles } from './scheduled-task-card-props';
|
|
2
2
|
import { ScheduledTaskCardSkeletonStyles } from './scheduled-task-card-skeleton-props';
|
|
3
3
|
import { ScheduledTaskItem } from './scheduled-task-item';
|
|
4
4
|
/** Localized labels for the {@link ScheduledTaskCardGrid} component's cards. All have English defaults. */
|
|
5
|
-
export
|
|
6
|
-
/** Label shown in a card's "new" badge. Defaults to `'NEW'`. */
|
|
7
|
-
newBadgeLabel?: string;
|
|
8
|
-
}
|
|
5
|
+
export type ScheduledTaskCardGridLabels = ScheduledTaskCardLabels;
|
|
9
6
|
/** Props for the {@link ScheduledTaskCardGrid} component. */
|
|
10
7
|
export interface ScheduledTaskCardGridProps {
|
|
11
8
|
/** Items to render as cards, in display order. */
|
|
@@ -22,5 +19,15 @@ export interface ScheduledTaskCardGridProps {
|
|
|
22
19
|
trailingSkeletonCount?: number;
|
|
23
20
|
/** Style overrides forwarded to each trailing skeleton card. */
|
|
24
21
|
skeletonStyles?: ScheduledTaskCardSkeletonStyles;
|
|
22
|
+
layout?: ScheduledTaskCardGridLayout;
|
|
23
|
+
}
|
|
24
|
+
export interface ScheduledTaskCardGridLayout {
|
|
25
|
+
/** Maximum column count. Defaults to 3; fewer columns fit narrower containers. */
|
|
26
|
+
maxColumns?: 1 | 2 | 3;
|
|
27
|
+
/** Maximum grid width. Defaults to '1180px'. */
|
|
28
|
+
maxWidth?: string;
|
|
29
|
+
minCardWidth?: string;
|
|
30
|
+
gap?: string;
|
|
31
|
+
cardHeight?: string;
|
|
25
32
|
}
|
|
26
33
|
//# 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,
|
|
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,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,2GAA2G;AAC3G,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAAC;AAElE,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;IACjD,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACvB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -5,6 +5,8 @@ export interface ScheduledTaskCardLabels {
|
|
|
5
5
|
newBadgeLabel?: string;
|
|
6
6
|
/** Label shown in the "Paused" badge when `item.isActive` is `false`. Defaults to `'Paused'`. */
|
|
7
7
|
pausedBadgeLabel?: string;
|
|
8
|
+
/** Label shown in the "Completed" badge when `item.isCompleted` is `true`. Defaults to `'Completed'`. */
|
|
9
|
+
completedBadgeLabel?: string;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Color overrides for the {@link ScheduledTaskCard} component, applied as CSS
|
|
@@ -31,12 +33,18 @@ export interface ScheduledTaskCardColors {
|
|
|
31
33
|
newBadgeText?: string;
|
|
32
34
|
/** Divider border color above the location breadcrumb. Fallback: `--stroke-tertiary`. */
|
|
33
35
|
locationDividerBorder?: string;
|
|
34
|
-
/** "Paused" badge background.
|
|
36
|
+
/** "Paused" badge background. Defaults to transparent. */
|
|
35
37
|
pausedBadgeBackground?: string;
|
|
36
38
|
/** "Paused" badge border color. Fallback: `--stroke-tertiary`. */
|
|
37
39
|
pausedBadgeBorder?: string;
|
|
38
40
|
/** "Paused" badge icon and text color. Fallback: `--text-control-disable-primary`. */
|
|
39
41
|
pausedBadgeText?: string;
|
|
42
|
+
/** "Completed" badge background. Defaults to transparent. */
|
|
43
|
+
completedBadgeBackground?: string;
|
|
44
|
+
/** "Completed" badge border color. Fallback: `--stroke-tertiary`. */
|
|
45
|
+
completedBadgeBorder?: string;
|
|
46
|
+
/** "Completed" badge icon and text color. Fallback: `--text-secondary`. */
|
|
47
|
+
completedBadgeText?: string;
|
|
40
48
|
}
|
|
41
49
|
/** Typography overrides for the {@link ScheduledTaskCard} component. */
|
|
42
50
|
export interface ScheduledTaskCardTypography {
|
|
@@ -56,6 +64,8 @@ export interface ScheduledTaskCardTypography {
|
|
|
56
64
|
newBadgeClassName?: string;
|
|
57
65
|
/** CSS class applied to the "Paused" badge's label text. Defaults to `'dial-tiny-text'`. */
|
|
58
66
|
pausedBadgeClassName?: string;
|
|
67
|
+
/** CSS class applied to the "Completed" badge's label text. Defaults to `'dial-tiny-text'`. */
|
|
68
|
+
completedBadgeClassName?: string;
|
|
59
69
|
}
|
|
60
70
|
/** Style overrides for the {@link ScheduledTaskCard} component. */
|
|
61
71
|
export interface ScheduledTaskCardStyles {
|
|
@@ -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,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,MAAM,CAAC;
|
|
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;IAC1B,yGAAyG;IACzG,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;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,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;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,19 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ScheduledTaskInstructionsMarkdownLabels } from './scheduled-task-instructions';
|
|
2
3
|
/** Props for the {@link ScheduledTaskConfigurationSection} component. */
|
|
3
4
|
export interface ScheduledTaskConfigurationSectionProps {
|
|
5
|
+
/** Localized label of the optional skill field. */
|
|
6
|
+
skillLabel?: string;
|
|
7
|
+
/** Resolved skill names or full saved references, in selection order; omit or pass [] to hide the field. */
|
|
8
|
+
skillDisplayNames?: string[];
|
|
4
9
|
/** Label for the instructions field. */
|
|
5
10
|
instructionsLabel: string;
|
|
6
11
|
/** Raw instructions markdown, passed to `renderInstructions` when supplied, or rendered via `MDMessageViewer` otherwise. Omit to hide the field entirely. */
|
|
7
12
|
instructionsMarkdown?: string;
|
|
8
13
|
/** Renders `instructionsMarkdown` as a ReactNode. When omitted, `instructionsMarkdown` is rendered via `MDMessageViewer` (the same markdown stack chat assistant messages use). */
|
|
9
14
|
renderInstructions?: (markdown: string) => ReactNode;
|
|
15
|
+
/** Code-block, table and formula labels for the built-in `MDMessageViewer`. Ignored when `renderInstructions` is supplied. */
|
|
16
|
+
markdownLabels?: ScheduledTaskInstructionsMarkdownLabels;
|
|
10
17
|
/** CSS class applied to the instructions field label. Defaults to `'dial-tiny-text'`. */
|
|
11
18
|
fieldLabelClassName?: string;
|
|
12
19
|
}
|
|
@@ -1 +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;
|
|
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;AACvC,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAC;AAE7F,yEAAyE;AACzE,MAAM,WAAW,sCAAsC;IACrD,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,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,8HAA8H;IAC9H,cAAc,CAAC,EAAE,uCAAuC,CAAC;IACzD,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TextRefinementLabels } from '@epam/ai-dial-chat-shared';
|
|
1
2
|
import { EditorThemes } from '@epam/ai-dial-ui-kit';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
import { ScheduledTaskRepeat } from '../types/scheduled-task-schedule';
|
|
@@ -32,8 +33,10 @@ export interface ScheduledTaskCreateFormValues {
|
|
|
32
33
|
modelId: string;
|
|
33
34
|
/** Optional human-readable summary sent to the BFF as `description` (max 500 characters). */
|
|
34
35
|
description?: string;
|
|
35
|
-
/** Prompt text
|
|
36
|
+
/** Prompt text; may be empty when a skill is selected. */
|
|
36
37
|
prompt: string;
|
|
38
|
+
/** Optional selected skill references, independent of its display metadata. */
|
|
39
|
+
skillUrls?: string[];
|
|
37
40
|
}
|
|
38
41
|
/** Validation error messages keyed by {@link ScheduledTaskCreateFormValues} field. */
|
|
39
42
|
export interface ScheduledTaskCreateFormErrors {
|
|
@@ -59,9 +62,11 @@ export interface ScheduledTaskCreateFormErrors {
|
|
|
59
62
|
description?: string;
|
|
60
63
|
/** Error shown under the prompt field. */
|
|
61
64
|
prompt?: string;
|
|
65
|
+
/** Error shown under the skill field, or at form level when the slot is hidden. */
|
|
66
|
+
skillUrls?: string;
|
|
62
67
|
}
|
|
63
68
|
/** Localized labels used by the {@link ScheduledTaskCreateForm} component. */
|
|
64
|
-
export interface ScheduledTaskCreateFormLabels {
|
|
69
|
+
export interface ScheduledTaskCreateFormLabels extends TextRefinementLabels {
|
|
65
70
|
/** Page/header title, e.g. "New task". */
|
|
66
71
|
pageTitle: string;
|
|
67
72
|
/** Accessible label for the header's back control. */
|
|
@@ -80,12 +85,14 @@ export interface ScheduledTaskCreateFormLabels {
|
|
|
80
85
|
displayNameRequired: string;
|
|
81
86
|
/** Run-at field label (shown when `repeat` is "oneTime"). */
|
|
82
87
|
runAtLabel: string;
|
|
88
|
+
/** Time-of-day field label (shown when `repeat` is "daily", "weekly", or "monthly"). */
|
|
89
|
+
timeLabel: string;
|
|
90
|
+
/** Validation message shown under the time field when its visible draft is not a complete `HH:mm` value. */
|
|
91
|
+
timeInvalidLabel: string;
|
|
83
92
|
/** Accessible label for the Repeat dropdown. */
|
|
84
93
|
repeatLabel: string;
|
|
85
94
|
/** Options rendered in the Repeat dropdown. */
|
|
86
95
|
repeatOptions: ScheduledTaskRepeatOption[];
|
|
87
|
-
/** Time field label (shown when `repeat` is "daily", "weekly", or "monthly"). */
|
|
88
|
-
timeLabel: string;
|
|
89
96
|
/** Day-of-week field label (shown when `repeat` is "weekly"). */
|
|
90
97
|
dayOfWeekLabel: string;
|
|
91
98
|
/** Day-of-month field label (shown when `repeat` is "monthly"). */
|
|
@@ -106,18 +113,34 @@ export interface ScheduledTaskCreateFormLabels {
|
|
|
106
113
|
descriptionLabel: string;
|
|
107
114
|
/** Accessible label for the Instructions markdown editor. */
|
|
108
115
|
instructionsLabel: string;
|
|
116
|
+
/** Optional label above the host-composed skill selector. */
|
|
117
|
+
skillLabel?: string;
|
|
118
|
+
/** Optional placeholder forwarded to the Instructions editor. */
|
|
119
|
+
instructionsPlaceholder?: string;
|
|
109
120
|
/** Label for the Cancel action. */
|
|
110
121
|
cancelButtonLabel: string;
|
|
111
122
|
/** Label for the Save action (submits the create form). */
|
|
112
123
|
createButtonLabel: string;
|
|
113
124
|
/** Accessible name for the Save action's busy indicator, announced while `isSubmitting` is `true`. Defaults to `'Saving'`. */
|
|
114
125
|
submittingLabel?: string;
|
|
126
|
+
/** Title of the discard confirmation. Defaults to `'Discard unsaved changes?'`. */
|
|
127
|
+
discardTitle?: string;
|
|
128
|
+
/** Body of the discard confirmation. Defaults to `'You have unsaved changes. Leaving now will discard them.'`. */
|
|
129
|
+
discardMessage?: string;
|
|
130
|
+
/** Label of the discard confirmation's confirming action. Defaults to `'Discard changes'`. */
|
|
131
|
+
discardConfirmLabel?: string;
|
|
132
|
+
/** Label of the discard confirmation's cancel action. Defaults to `'Keep editing'`. */
|
|
133
|
+
discardCancelLabel?: string;
|
|
115
134
|
}
|
|
116
135
|
/**
|
|
117
136
|
* Color overrides for the {@link ScheduledTaskCreateForm} component, applied
|
|
118
137
|
* as CSS custom properties with app theme fallbacks.
|
|
119
138
|
*/
|
|
120
139
|
export interface ScheduledTaskCreateFormColors {
|
|
140
|
+
/** Refinement status text color. Defaults to the kit `CaptionText` color (`--text-secondary`). */
|
|
141
|
+
refineActionText?: string;
|
|
142
|
+
/** Refinement error color. Defaults to --text-error. */
|
|
143
|
+
refineErrorText?: string;
|
|
121
144
|
/** Root container background. Fallback: `--bg-layer-base`. */
|
|
122
145
|
background?: string;
|
|
123
146
|
/** Header row's bottom border color. Fallback: `--stroke-tertiary`. */
|
|
@@ -131,6 +154,8 @@ export interface ScheduledTaskCreateFormColors {
|
|
|
131
154
|
}
|
|
132
155
|
/** Typography overrides for the {@link ScheduledTaskCreateForm} component. */
|
|
133
156
|
export interface ScheduledTaskCreateFormTypography {
|
|
157
|
+
/** Refinement feedback typography. Defaults to the kit `CaptionText` class (`'dial-tiny-text'`). */
|
|
158
|
+
refineFeedbackClassName?: string;
|
|
134
159
|
/** CSS class applied to the title. Defaults to `'dial-h1-text'`. */
|
|
135
160
|
titleClassName?: string;
|
|
136
161
|
/** CSS class applied to a section heading. Defaults to `'dial-body-semi-text'`. */
|
|
@@ -148,13 +173,29 @@ export interface ScheduledTaskCreateFormStyles {
|
|
|
148
173
|
colors?: ScheduledTaskCreateFormColors;
|
|
149
174
|
/** Typography class overrides. */
|
|
150
175
|
typography?: ScheduledTaskCreateFormTypography;
|
|
176
|
+
/** Layout values scoped to this form instance. */
|
|
177
|
+
layout?: {
|
|
178
|
+
detailsWidth?: string;
|
|
179
|
+
columnGap?: string;
|
|
180
|
+
};
|
|
151
181
|
}
|
|
152
182
|
/** Props for the {@link ScheduledTaskCreateForm} component. */
|
|
153
183
|
export interface ScheduledTaskCreateFormProps {
|
|
184
|
+
/** Optional Description rewrite callback; omission hides its action. */
|
|
185
|
+
onRefineDescription?: (value: string, signal: AbortSignal) => Promise<string>;
|
|
186
|
+
/** Optional Instructions rewrite callback; omission hides its action. */
|
|
187
|
+
onRefineInstructions?: (value: string, signal: AbortSignal) => Promise<string>;
|
|
154
188
|
/** Localized labels. */
|
|
155
189
|
labels: ScheduledTaskCreateFormLabels;
|
|
156
190
|
/** Current field values. */
|
|
157
191
|
values: ScheduledTaskCreateFormValues;
|
|
192
|
+
/**
|
|
193
|
+
* Values the form was opened with. When set, Back and Cancel ask for
|
|
194
|
+
* confirmation while `values` differs from it (see
|
|
195
|
+
* `hasScheduledTaskFormChanges`), and the browser warns before the page
|
|
196
|
+
* unloads. Omit it to leave unsaved-change handling to the host.
|
|
197
|
+
*/
|
|
198
|
+
initialValues?: ScheduledTaskCreateFormValues;
|
|
158
199
|
/** Current per-field validation errors. */
|
|
159
200
|
errors: ScheduledTaskCreateFormErrors;
|
|
160
201
|
/**
|
|
@@ -170,6 +211,8 @@ export interface ScheduledTaskCreateFormProps {
|
|
|
170
211
|
* linked without a literal id that could collide across form instances.
|
|
171
212
|
*/
|
|
172
213
|
modelLabelId: string;
|
|
214
|
+
/** Optional host-composed skill control, rendered above Instructions. */
|
|
215
|
+
skillSelector?: ReactNode;
|
|
173
216
|
/** Called with the changed field key and its new value whenever any field is edited. */
|
|
174
217
|
onFieldChange: <K extends keyof ScheduledTaskCreateFormValues>(field: K, value: ScheduledTaskCreateFormValues[K]) => void;
|
|
175
218
|
/** Called when the user activates the header's back control. */
|
|
@@ -182,6 +225,10 @@ export interface ScheduledTaskCreateFormProps {
|
|
|
182
225
|
isSubmitting?: boolean;
|
|
183
226
|
/** Color theme applied to the Instructions markdown editor. Defaults to the editor's own default (`EditorThemes.light`). */
|
|
184
227
|
markdownEditorTheme?: EditorThemes;
|
|
228
|
+
/** Optional replacement for the default back icon. */
|
|
229
|
+
backIcon?: ReactNode;
|
|
230
|
+
/** Additional class name on the form root. */
|
|
231
|
+
className?: string;
|
|
185
232
|
/** Style overrides. */
|
|
186
233
|
styles?: ScheduledTaskCreateFormStyles;
|
|
187
234
|
}
|
|
@@ -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,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,0HAA0H;IAC1H,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wHAAwH;IACxH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;
|
|
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,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,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;I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EAAE,MAAM,IAAI,CAAC;IACrB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iGAAiG;IACjG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4HAA4H;IAC5H,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ScheduledTaskRunStatus } from '../types/scheduled-task-run-status';
|
|
3
|
+
import { ScheduledTaskInstructionsMarkdownLabels } from './scheduled-task-instructions';
|
|
3
4
|
import { ScheduledTaskRunItem } from './scheduled-task-run-item';
|
|
4
5
|
/** Localized labels used by the {@link ScheduledTaskDetailView} component. */
|
|
5
|
-
export interface ScheduledTaskDetailViewLabels {
|
|
6
|
+
export interface ScheduledTaskDetailViewLabels extends ScheduledTaskInstructionsMarkdownLabels {
|
|
6
7
|
/** Accessible label for the back-navigation control. */
|
|
7
8
|
backAriaLabel: string;
|
|
8
9
|
/** Label for the header's Edit action. Shown only when `onEdit` is supplied. */
|
|
9
10
|
editButtonLabel: string;
|
|
11
|
+
/** Label for the header's manual execution action. Shown only when `onStartNow` is supplied. */
|
|
12
|
+
startNowButtonLabel?: string;
|
|
13
|
+
/** Label displayed while a manual execution request is pending. */
|
|
14
|
+
startingLabel?: string;
|
|
15
|
+
/** Reason shown as the tooltip and accessible description of the disabled manual execution action while `isStartNowBusy` is `true`. When omitted, no reason is exposed. */
|
|
16
|
+
startNowBusyLabel?: string;
|
|
10
17
|
/** Label for the header's destructive Delete action. Shown only when `onDelete` is supplied. */
|
|
11
18
|
deleteButtonLabel: string;
|
|
12
19
|
/** Label of the read-only indicator shown next to the title when `isDeleted` is `true`. */
|
|
@@ -23,14 +30,20 @@ export interface ScheduledTaskDetailViewLabels {
|
|
|
23
30
|
repeatsLabel: string;
|
|
24
31
|
/** Label for the activity-window field, e.g. "Active". Shown only for a recurring task whose window is bounded. */
|
|
25
32
|
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
|
|
33
|
+
/** 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 and `isCompleted`/`isDeleted` are not `true`. */
|
|
27
34
|
activeStatusLabel: string;
|
|
35
|
+
/** Label for the completed-state field in the Details section, e.g. "Status". */
|
|
36
|
+
completedFieldLabel: string;
|
|
28
37
|
/** Announced via `aria-live` after a pause/resume mutation completes, separate from the switch's own accessible name. Empty string announces nothing. */
|
|
29
38
|
activeStatusAnnouncement?: string;
|
|
39
|
+
/** Announced via `aria-live` after a manual run is accepted. Empty string announces nothing. */
|
|
40
|
+
startStatusAnnouncement?: string;
|
|
30
41
|
/** Title of the Configuration section. */
|
|
31
42
|
configurationTitle: string;
|
|
32
43
|
/** Label for the instructions field. */
|
|
33
44
|
instructionsLabel: string;
|
|
45
|
+
/** Label of the optional skill field in Configuration. */
|
|
46
|
+
skillLabel?: string;
|
|
34
47
|
/** Label for the page-level retry action shown alongside `error`. */
|
|
35
48
|
retryLabel: string;
|
|
36
49
|
/** Title of the History panel. */
|
|
@@ -39,6 +52,8 @@ export interface ScheduledTaskDetailViewLabels {
|
|
|
39
52
|
historyEmptyLabel: string;
|
|
40
53
|
/** Message shown alongside the retry action when `runsError` is set. */
|
|
41
54
|
historyErrorLabel: string;
|
|
55
|
+
/** Next-page failure message; falls back to historyErrorLabel. */
|
|
56
|
+
historyLoadMoreErrorLabel?: string;
|
|
42
57
|
/** Label for the History retry action. */
|
|
43
58
|
historyRetryLabel: string;
|
|
44
59
|
/** Announced via `aria-live` while a load-more runs fetch is in flight. */
|
|
@@ -96,6 +111,12 @@ export interface ScheduledTaskDetailViewStyles {
|
|
|
96
111
|
/** Typography class overrides. */
|
|
97
112
|
typography?: ScheduledTaskDetailViewTypography;
|
|
98
113
|
}
|
|
114
|
+
export interface ScheduledTaskDetailViewLayout {
|
|
115
|
+
detailsWidth?: string;
|
|
116
|
+
historyWidth?: string;
|
|
117
|
+
historyMaxHeight?: string;
|
|
118
|
+
configurationMinWidth?: string;
|
|
119
|
+
}
|
|
99
120
|
/** Props for the {@link ScheduledTaskDetailView} component. */
|
|
100
121
|
export interface ScheduledTaskDetailViewProps {
|
|
101
122
|
/** Localized labels. */
|
|
@@ -104,18 +125,30 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
104
125
|
onBack: () => void;
|
|
105
126
|
/** Called when the user activates the header's Edit action. When omitted, no Edit action renders. Suppressed while `isDeleted` is `true`. */
|
|
106
127
|
onEdit?: () => void;
|
|
128
|
+
/** Called when the user activates the header's manual execution action. When omitted, no Start now action renders. */
|
|
129
|
+
onStartNow?: () => void;
|
|
130
|
+
/** When `true`, the manual execution action is pending and renders disabled. Defaults to `false`. */
|
|
131
|
+
isStarting?: boolean;
|
|
132
|
+
/** When `true`, the manual execution action renders disabled for host-owned eligibility state. Defaults to `false`. */
|
|
133
|
+
isStartNowDisabled?: boolean;
|
|
134
|
+
/** When `true`, a run is already in progress: the manual execution action renders disabled and exposes `labels.startNowBusyLabel` as its reason. Defaults to `false`. */
|
|
135
|
+
isStartNowBusy?: boolean;
|
|
107
136
|
/** 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
137
|
onDelete?: () => void;
|
|
109
138
|
/** When `true`, the Delete action, Edit action, and Active switch render disabled rather than being removed. Defaults to `false`. */
|
|
110
139
|
isDeleting?: boolean;
|
|
111
140
|
/** 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
141
|
isDeleted?: boolean;
|
|
113
|
-
/**
|
|
142
|
+
/** When `true`, the Active switch does not render at all — the task can no longer produce a future run, and the completed line in the Details summary carries the state. Defaults to `false`. */
|
|
143
|
+
isCompleted?: boolean;
|
|
144
|
+
/** Whether the schedule is currently active (resumed) or paused. When `undefined`, the Active switch does not render. Suppressed while `isDeleted` or `isCompleted` is `true`. */
|
|
114
145
|
isActive?: boolean;
|
|
115
146
|
/** When `true`, the Active switch renders disabled while a pause/resume request is in flight. Defaults to `false`. */
|
|
116
147
|
isActiveUpdating?: boolean;
|
|
117
148
|
/** 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
149
|
isActiveDisabled?: boolean;
|
|
150
|
+
/** Pre-formatted reason text shown next to the Active switch when `isActiveDisabled` is `true`, explaining why resuming is unavailable (e.g. a one-time schedule that already ran). Per-task value, not a stable label. Omit to hide. */
|
|
151
|
+
activeDisabledReason?: string;
|
|
119
152
|
/** Called with the newly requested value when the user toggles the Active switch. The component performs no network call or optimistic update itself. */
|
|
120
153
|
onActiveChange?: (nextActive: boolean) => void;
|
|
121
154
|
/** Task title shown in the header and used as the page's accessible name. */
|
|
@@ -134,8 +167,12 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
134
167
|
repeatsLabel?: string;
|
|
135
168
|
/** Pre-formatted activity-window label, e.g. "Aug 1, 2026 – Dec 31, 2026". Omit to hide (unbounded or one-shot schedule). */
|
|
136
169
|
activeWindowLabel?: string;
|
|
170
|
+
/** Pre-formatted completed-state value shown as a field in the Details section, e.g. "Completed" — for a task that can no longer produce a future run. Omit to hide. */
|
|
171
|
+
completedLabel?: string;
|
|
137
172
|
/** Raw instructions markdown, passed to `renderInstructions` when supplied, or rendered via the default `MDMessageViewer` otherwise. Omit to hide the field entirely. */
|
|
138
173
|
instructionsMarkdown?: string;
|
|
174
|
+
/** Resolved skill names or full saved references, in selection order; omit or pass [] to hide the field. */
|
|
175
|
+
skillDisplayNames?: string[];
|
|
139
176
|
/** Renders `instructionsMarkdown` as a ReactNode. When omitted, `instructionsMarkdown` is rendered via `MDMessageViewer` (the same markdown stack chat assistant messages use). */
|
|
140
177
|
renderInstructions?: (markdown: string) => ReactNode;
|
|
141
178
|
/** 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). */
|
|
@@ -152,6 +189,10 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
152
189
|
runsError?: Error | null;
|
|
153
190
|
/** Called when the user activates the History retry action shown alongside `runsError`. */
|
|
154
191
|
onRunsRetry?: () => void;
|
|
192
|
+
/** Next-page failure, displayed beneath existing runs. */
|
|
193
|
+
runsLoadMoreError?: Error | null;
|
|
194
|
+
/** Retries the failed history page. */
|
|
195
|
+
onRunsRetryLoadMore?: () => void;
|
|
155
196
|
/** Whether another page of `runs` is available beyond what has been loaded so far. Defaults to `false`. */
|
|
156
197
|
runsHasMore?: boolean;
|
|
157
198
|
/** Called when the user activates the "Show more" button, rendered below the loaded runs while `runsHasMore` is `true`. Omit to hide the button entirely. */
|
|
@@ -160,5 +201,13 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
160
201
|
onRunClick?: (run: ScheduledTaskRunItem) => void;
|
|
161
202
|
/** Style overrides. */
|
|
162
203
|
styles?: ScheduledTaskDetailViewStyles;
|
|
204
|
+
/** Additional class names on the view root. */
|
|
205
|
+
className?: string;
|
|
206
|
+
/** Replacement for the directional default back icon. `null` hides it. */
|
|
207
|
+
backIcon?: ReactNode | null;
|
|
208
|
+
/** Desktop column and history sizing. */
|
|
209
|
+
layout?: ScheduledTaskDetailViewLayout;
|
|
210
|
+
/** Forwarded history presentation settings. */
|
|
211
|
+
historyStyles?: import('./scheduled-task-history-section-props').ScheduledTaskHistorySectionStyles;
|
|
163
212
|
}
|
|
164
213
|
//# sourceMappingURL=scheduled-task-detail-view-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-detail-view-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-detail-view-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,8EAA8E;AAC9E,MAAM,WAAW,
|
|
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,uCAAuC,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,8EAA8E;AAC9E,MAAM,WAAW,6BAA8B,SAAQ,uCAAuC;IAC5F,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB,gGAAgG;IAChG,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2KAA2K;IAC3K,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,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,EA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label for the activity-window field, e.g. "Active". */
|
|
10
10
|
activeWindowLabel: string;
|
|
11
|
+
/** Label for the completed-state field, e.g. "Status". */
|
|
12
|
+
completedFieldLabel: string;
|
|
11
13
|
}
|
|
12
14
|
/** Props for the {@link ScheduledTaskDetailsSection} component. */
|
|
13
15
|
export interface ScheduledTaskDetailsSectionProps {
|
|
@@ -21,6 +23,8 @@ export interface ScheduledTaskDetailsSectionProps {
|
|
|
21
23
|
repeatsLabel?: string;
|
|
22
24
|
/** Pre-formatted activity-window label, e.g. "Aug 1, 2026 – Dec 31, 2026". Omit to hide the field (unbounded or one-shot schedule). */
|
|
23
25
|
activeWindowLabel?: string;
|
|
26
|
+
/** Pre-formatted completed-state value, e.g. "Completed" — for a task that can no longer produce a future run. Omit to hide the field. */
|
|
27
|
+
completedLabel?: string;
|
|
24
28
|
/** CSS class applied to each field label. Defaults to `'dial-tiny-text'`. */
|
|
25
29
|
fieldLabelClassName?: string;
|
|
26
30
|
/** CSS class applied to each field value. Defaults to `'dial-small-text'`. */
|
|
@@ -1 +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;
|
|
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;IAC1B,0DAA0D;IAC1D,mBAAmB,EAAE,MAAM,CAAC;CAC7B;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,0IAA0I;IAC1I,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ScheduledTaskInstructionsMarkdownLabels } from './scheduled-task-instructions';
|
|
2
3
|
/** Typography overrides for the {@link ScheduledTaskDetailsSummary} component. */
|
|
3
4
|
export interface ScheduledTaskDetailsSummaryTypography {
|
|
4
5
|
/** CSS class applied to the "Model"/"Instructions" field labels. Defaults to `'dial-tiny-text'`. */
|
|
@@ -13,6 +14,10 @@ export interface ScheduledTaskDetailsSummaryStyles {
|
|
|
13
14
|
}
|
|
14
15
|
/** Props for the {@link ScheduledTaskDetailsSummary} component. */
|
|
15
16
|
export interface ScheduledTaskDetailsSummaryProps {
|
|
17
|
+
/** Localized label of the optional skill field. */
|
|
18
|
+
skillLabel?: string;
|
|
19
|
+
/** Resolved skill names or full saved references, in selection order; omit or pass [] to hide the field. */
|
|
20
|
+
skillDisplayNames?: string[];
|
|
16
21
|
/** Label for the model field, e.g. "Model". */
|
|
17
22
|
modelLabel: string;
|
|
18
23
|
/** Label for the instructions field, e.g. "Instructions". */
|
|
@@ -23,6 +28,8 @@ export interface ScheduledTaskDetailsSummaryProps {
|
|
|
23
28
|
instructionsMarkdown?: string;
|
|
24
29
|
/** Renders `instructionsMarkdown` as a ReactNode. When omitted, `instructionsMarkdown` is rendered via `MDMessageViewer` (the same markdown stack chat assistant messages use). */
|
|
25
30
|
renderInstructions?: (markdown: string) => ReactNode;
|
|
31
|
+
/** Code-block, table and formula labels for the built-in `MDMessageViewer`. Ignored when `renderInstructions` is supplied. */
|
|
32
|
+
markdownLabels?: ScheduledTaskInstructionsMarkdownLabels;
|
|
26
33
|
/** Style overrides. */
|
|
27
34
|
styles?: ScheduledTaskDetailsSummaryStyles;
|
|
28
35
|
}
|
|
@@ -1 +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;
|
|
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;AACvC,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAC;AAE7F,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,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,+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,8HAA8H;IAC9H,cAAc,CAAC,EAAE,uCAAuC,CAAC;IACzD,uBAAuB;IACvB,MAAM,CAAC,EAAE,iCAAiC,CAAC;CAC5C"}
|
|
@@ -9,6 +9,8 @@ export interface ScheduledTaskHistorySectionLabels {
|
|
|
9
9
|
historyEmptyLabel: string;
|
|
10
10
|
/** Message shown alongside the retry action when `error` is set. */
|
|
11
11
|
historyErrorLabel: string;
|
|
12
|
+
/** Next-page failure message; falls back to historyErrorLabel. */
|
|
13
|
+
historyLoadMoreErrorLabel?: string;
|
|
12
14
|
/** Label for the retry action shown alongside `error`. */
|
|
13
15
|
historyRetryLabel: string;
|
|
14
16
|
/** Announced via `aria-live` while a load-more runs fetch is in flight. */
|
|
@@ -21,7 +23,7 @@ export interface ScheduledTaskHistorySectionLabels {
|
|
|
21
23
|
unreadIndicatorLabel?: string;
|
|
22
24
|
}
|
|
23
25
|
/** Status-icon and unread-dot color overrides forwarded to the run list. */
|
|
24
|
-
interface ScheduledTaskHistorySectionColors {
|
|
26
|
+
export interface ScheduledTaskHistorySectionColors {
|
|
25
27
|
/** Success status icon color. Fallback: `--text-success`. */
|
|
26
28
|
successIconColor?: string;
|
|
27
29
|
/** Error status icon color. Fallback: `--text-error`. */
|
|
@@ -31,6 +33,19 @@ interface ScheduledTaskHistorySectionColors {
|
|
|
31
33
|
/** Unread-dot indicator fill color. Fallback: `--text-accent`. */
|
|
32
34
|
unreadDotColor?: string;
|
|
33
35
|
}
|
|
36
|
+
export interface ScheduledTaskHistorySectionStyles {
|
|
37
|
+
colors?: ScheduledTaskHistorySectionColors;
|
|
38
|
+
/** Maximum height of the scrollable History card. Fallback: `70vh`. */
|
|
39
|
+
maxHeight?: string;
|
|
40
|
+
/** Minimum row height. Fallback: `32px`. */
|
|
41
|
+
rowMinHeight?: string;
|
|
42
|
+
/** Background of an interactive run row on hover. Defaults to `--bg-control-accent-alpha`. */
|
|
43
|
+
rowHoverBackground?: string;
|
|
44
|
+
/** Background of an interactive run row on keyboard focus. Defaults to `rowHoverBackground`. */
|
|
45
|
+
rowFocusBackground?: string;
|
|
46
|
+
/** Outline color of an interactive run row on keyboard focus. Defaults to `--text-accent`. */
|
|
47
|
+
rowFocusOutline?: string;
|
|
48
|
+
}
|
|
34
49
|
/** Props for the {@link ScheduledTaskHistorySection} component. */
|
|
35
50
|
export interface ScheduledTaskHistorySectionProps {
|
|
36
51
|
/** Chrome the section renders: the desktop card or the mobile/tablet page flow. */
|
|
@@ -51,6 +66,10 @@ export interface ScheduledTaskHistorySectionProps {
|
|
|
51
66
|
error?: Error | null;
|
|
52
67
|
/** Called when the user activates the retry action shown alongside `error`. */
|
|
53
68
|
onRetry?: () => void;
|
|
69
|
+
/** Next-page failure, displayed beneath existing runs. */
|
|
70
|
+
loadMoreError?: Error | null;
|
|
71
|
+
/** Retries the failed page without clearing existing runs. */
|
|
72
|
+
onRetryLoadMore?: () => void;
|
|
54
73
|
/** Whether another page of `items` is available beyond what has been loaded. Defaults to `false`. */
|
|
55
74
|
hasMore?: boolean;
|
|
56
75
|
/** Called when the user activates the "Show more" button, rendered while `hasMore` is `true`. Omit to hide the button entirely. */
|
|
@@ -63,6 +82,6 @@ export interface ScheduledTaskHistorySectionProps {
|
|
|
63
82
|
sectionTitleClassName?: string;
|
|
64
83
|
/** Status-icon and unread-dot color overrides forwarded to the run list. */
|
|
65
84
|
colors?: ScheduledTaskHistorySectionColors;
|
|
85
|
+
styles?: ScheduledTaskHistorySectionStyles;
|
|
66
86
|
}
|
|
67
|
-
export {};
|
|
68
87
|
//# sourceMappingURL=scheduled-task-history-section-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-history-section-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-history-section-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAC1G,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,kFAAkF;AAClF,MAAM,WAAW,iCAAiC;IAChD,gFAAgF;IAChF,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oEAAoE;IACpE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,wIAAwI;IACxI,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,2GAA2G;IAC3G,eAAe,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;IACxD,oIAAoI;IACpI,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,4EAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"scheduled-task-history-section-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-history-section-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAC1G,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,kFAAkF;AAClF,MAAM,WAAW,iCAAiC;IAChD,gFAAgF;IAChF,YAAY,EAAE,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AC;IACtB,qFAAqF;IACrF,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,2IAA2I;IAC3I,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sIAAsI;IACtI,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0DAA0D;IAC1D,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,qGAAqG;IACrG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mIAAmI;IACnI,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,6KAA6K;IAC7K,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACjD,kFAAkF;IAClF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uGAAuG;IACvG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4EAA4E;IAC5E,MAAM,CAAC,EAAE,iCAAiC,CAAC;IAC3C,MAAM,CAAC,EAAE,iCAAiC,CAAC;CAC5C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Labels for the built-in instructions markdown viewer (`MDMessageViewer`),
|
|
3
|
+
* used when the host does not supply `renderInstructions`. Ignored when
|
|
4
|
+
* `renderInstructions` is supplied — the host's renderer owns its own labels.
|
|
5
|
+
*/
|
|
6
|
+
export interface ScheduledTaskInstructionsMarkdownLabels {
|
|
7
|
+
/** Accessible label for the copy button on a fenced code block. Defaults to `'Copy code'`. */
|
|
8
|
+
codeBlockCopyLabel?: string;
|
|
9
|
+
/** Status announced after a fenced code block has been copied. Defaults to `'Copied!'`. */
|
|
10
|
+
codeBlockCopiedLabel?: string;
|
|
11
|
+
/** Accessible label for the download button on a fenced code block. Defaults to `'Download code'`. */
|
|
12
|
+
codeBlockDownloadLabel?: string;
|
|
13
|
+
/** Accessible label for a table's horizontally scrollable region. Defaults to `'Scrollable table'`. */
|
|
14
|
+
tableScrollRegionAriaLabel?: string;
|
|
15
|
+
/** Accessible label for a block formula's horizontally scrollable region. Defaults to `'Scrollable formula'`. */
|
|
16
|
+
mathScrollRegionAriaLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=scheduled-task-instructions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-instructions.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,uCAAuC;IACtD,8FAA8F;IAC9F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2FAA2F;IAC3F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sGAAsG;IACtG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uGAAuG;IACvG,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,iHAAiH;IACjH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC"}
|
|
@@ -14,5 +14,25 @@ export interface ScheduledTaskItem {
|
|
|
14
14
|
isNew?: boolean;
|
|
15
15
|
/** When explicitly `false`, the card shows a "Paused" badge in place of the schedule pill. `true` or `undefined` renders the schedule pill as usual. */
|
|
16
16
|
isActive?: boolean;
|
|
17
|
+
/** Optional explicit display status; takes precedence over the derived `isCompleted`/`isActive` statuses. */
|
|
18
|
+
presentationStatus?: ScheduledTaskPresentationStatus;
|
|
19
|
+
/** When `true`, the card shows a "Completed" badge in place of the schedule pill — a task that can no longer produce a future run (a finished one-time task, or a recurring task whose activity window has closed). Pre-resolved by the host app; the lib performs no completion derivation. Takes precedence over `isActive` when both are set. */
|
|
20
|
+
isCompleted?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Host-supplied explicit status override for a card. Not the same enum as
|
|
24
|
+
* `ScheduledTaskStatus`: this is the optional input on `ScheduledTaskItem`,
|
|
25
|
+
* mapped onto the resolved output by `getScheduledTaskStatus` (`Active` →
|
|
26
|
+
* `Scheduled`). Not deprecated — it is the deliberate escape hatch for a host
|
|
27
|
+
* whose own status source disagrees with the derived `isCompleted`/`isActive`
|
|
28
|
+
* fields, and it wins over both.
|
|
29
|
+
*/
|
|
30
|
+
export declare enum ScheduledTaskPresentationStatus {
|
|
31
|
+
/** Resolves to `ScheduledTaskStatus.Scheduled` (the schedule pill). */
|
|
32
|
+
Active = "active",
|
|
33
|
+
/** Resolves to `ScheduledTaskStatus.Paused` (the "Paused" badge). */
|
|
34
|
+
Paused = "paused",
|
|
35
|
+
/** Resolves to `ScheduledTaskStatus.Completed` (the "Completed" badge). */
|
|
36
|
+
Completed = "completed"
|
|
17
37
|
}
|
|
18
38
|
//# sourceMappingURL=scheduled-task-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-item.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-item.ts"],"names":[],"mappings":"AAAA,0KAA0K;AAC1K,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+JAA+J;IAC/J,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wJAAwJ;IACxJ,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"scheduled-task-item.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-item.ts"],"names":[],"mappings":"AAAA,0KAA0K;AAC1K,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+JAA+J;IAC/J,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wJAAwJ;IACxJ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,+BAA+B,CAAC;IAErD,oVAAoV;IACpV,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD;;;;;;;GAOG;AACH,oBAAY,+BAA+B;IACzC,uEAAuE;IACvE,MAAM,WAAW;IACjB,qEAAqE;IACrE,MAAM,WAAW;IACjB,2EAA2E;IAC3E,SAAS,cAAc;CACxB"}
|