@epam/ai-dial-scheduled-tasks 1.2.0-dev.152 → 1.2.0-dev.154
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 +6 -5
- package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
- package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
- package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -1
- package/components/ScheduledTaskStatusPill/ScheduledTaskStatusPill.d.ts +16 -0
- package/components/ScheduledTaskStatusPill/ScheduledTaskStatusPill.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +513 -452
- package/models/scheduled-task-card-props.d.ts +6 -5
- package/models/scheduled-task-card-props.d.ts.map +1 -1
- package/models/scheduled-task-detail-view-props.d.ts +10 -2
- 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-item.d.ts +14 -1
- package/models/scheduled-task-item.d.ts.map +1 -1
- package/package.json +3 -3
- package/types/scheduled-task-status.d.ts +15 -0
- package/types/scheduled-task-status.d.ts.map +1 -0
- package/utils/scheduled-task-status.d.ts +5 -0
- package/utils/scheduled-task-status.d.ts.map +1 -0
|
@@ -5,6 +5,7 @@ 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'`. */
|
|
8
9
|
completedBadgeLabel?: string;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
@@ -14,10 +15,6 @@ export interface ScheduledTaskCardLabels {
|
|
|
14
15
|
export interface ScheduledTaskCardColors {
|
|
15
16
|
/** Card title text color. Fallback: `--text-primary`. */
|
|
16
17
|
titleText?: string;
|
|
17
|
-
/** Paused title color. Falls back to titleText and the theme. */
|
|
18
|
-
pausedTitleText?: string;
|
|
19
|
-
/** Completed title color. Falls back to titleText and the theme. */
|
|
20
|
-
completedTitleText?: string;
|
|
21
18
|
/** Description/prompt-preview text color. Fallback: `--text-control-disable-primary`. */
|
|
22
19
|
descriptionText?: string;
|
|
23
20
|
/** Schedule pill background. Fallback: `--bg-layer-sunken`. */
|
|
@@ -36,14 +33,17 @@ export interface ScheduledTaskCardColors {
|
|
|
36
33
|
newBadgeText?: string;
|
|
37
34
|
/** Divider border color above the location breadcrumb. Fallback: `--stroke-tertiary`. */
|
|
38
35
|
locationDividerBorder?: string;
|
|
39
|
-
/** "Paused" badge background.
|
|
36
|
+
/** "Paused" badge background. Defaults to transparent. */
|
|
40
37
|
pausedBadgeBackground?: string;
|
|
41
38
|
/** "Paused" badge border color. Fallback: `--stroke-tertiary`. */
|
|
42
39
|
pausedBadgeBorder?: string;
|
|
43
40
|
/** "Paused" badge icon and text color. Fallback: `--text-control-disable-primary`. */
|
|
44
41
|
pausedBadgeText?: string;
|
|
42
|
+
/** "Completed" badge background. Defaults to transparent. */
|
|
45
43
|
completedBadgeBackground?: string;
|
|
44
|
+
/** "Completed" badge border color. Fallback: `--stroke-tertiary`. */
|
|
46
45
|
completedBadgeBorder?: string;
|
|
46
|
+
/** "Completed" badge icon and text color. Fallback: `--text-secondary`. */
|
|
47
47
|
completedBadgeText?: string;
|
|
48
48
|
}
|
|
49
49
|
/** Typography overrides for the {@link ScheduledTaskCard} component. */
|
|
@@ -64,6 +64,7 @@ export interface ScheduledTaskCardTypography {
|
|
|
64
64
|
newBadgeClassName?: string;
|
|
65
65
|
/** CSS class applied to the "Paused" badge's label text. Defaults to `'dial-tiny-text'`. */
|
|
66
66
|
pausedBadgeClassName?: string;
|
|
67
|
+
/** CSS class applied to the "Completed" badge's label text. Defaults to `'dial-tiny-text'`. */
|
|
67
68
|
completedBadgeClassName?: string;
|
|
68
69
|
}
|
|
69
70
|
/** Style overrides for the {@link ScheduledTaskCard} component. */
|
|
@@ -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;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,
|
|
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,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xD,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"}
|
|
@@ -23,8 +23,10 @@ export interface ScheduledTaskDetailViewLabels {
|
|
|
23
23
|
repeatsLabel: string;
|
|
24
24
|
/** Label for the activity-window field, e.g. "Active". Shown only for a recurring task whose window is bounded. */
|
|
25
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
|
|
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 and `isCompleted`/`isDeleted` are not `true`. */
|
|
27
27
|
activeStatusLabel: string;
|
|
28
|
+
/** Label for the completed-state field in the Details section, e.g. "Status". */
|
|
29
|
+
completedFieldLabel: string;
|
|
28
30
|
/** Announced via `aria-live` after a pause/resume mutation completes, separate from the switch's own accessible name. Empty string announces nothing. */
|
|
29
31
|
activeStatusAnnouncement?: string;
|
|
30
32
|
/** Title of the Configuration section. */
|
|
@@ -120,12 +122,16 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
120
122
|
isDeleting?: boolean;
|
|
121
123
|
/** 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`. */
|
|
122
124
|
isDeleted?: boolean;
|
|
123
|
-
/**
|
|
125
|
+
/** 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`. */
|
|
126
|
+
isCompleted?: boolean;
|
|
127
|
+
/** Whether the schedule is currently active (resumed) or paused. When `undefined`, the Active switch does not render. Suppressed while `isDeleted` or `isCompleted` is `true`. */
|
|
124
128
|
isActive?: boolean;
|
|
125
129
|
/** When `true`, the Active switch renders disabled while a pause/resume request is in flight. Defaults to `false`. */
|
|
126
130
|
isActiveUpdating?: boolean;
|
|
127
131
|
/** When `true`, the Active switch renders disabled (e.g. a completed one-time schedule that cannot be resumed), independent of `isActiveUpdating`. Defaults to `false`. */
|
|
128
132
|
isActiveDisabled?: boolean;
|
|
133
|
+
/** 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. */
|
|
134
|
+
activeDisabledReason?: string;
|
|
129
135
|
/** Called with the newly requested value when the user toggles the Active switch. The component performs no network call or optimistic update itself. */
|
|
130
136
|
onActiveChange?: (nextActive: boolean) => void;
|
|
131
137
|
/** Task title shown in the header and used as the page's accessible name. */
|
|
@@ -144,6 +150,8 @@ export interface ScheduledTaskDetailViewProps {
|
|
|
144
150
|
repeatsLabel?: string;
|
|
145
151
|
/** Pre-formatted activity-window label, e.g. "Aug 1, 2026 – Dec 31, 2026". Omit to hide (unbounded or one-shot schedule). */
|
|
146
152
|
activeWindowLabel?: string;
|
|
153
|
+
/** 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. */
|
|
154
|
+
completedLabel?: string;
|
|
147
155
|
/** Raw instructions markdown, passed to `renderInstructions` when supplied, or rendered via the default `MDMessageViewer` otherwise. Omit to hide the field entirely. */
|
|
148
156
|
instructionsMarkdown?: string;
|
|
149
157
|
/** Resolved skill name or full saved reference; omit to hide the field. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-task-detail-view-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-detail-view-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,8EAA8E;AAC9E,MAAM,WAAW,6BAA6B;IAC5C,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB,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,
|
|
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,C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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"}
|
|
@@ -14,12 +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 display status; takes precedence over
|
|
17
|
+
/** Optional explicit display status; takes precedence over the derived `isCompleted`/`isActive` statuses. */
|
|
18
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;
|
|
19
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
|
+
*/
|
|
20
30
|
export declare enum ScheduledTaskPresentationStatus {
|
|
31
|
+
/** Resolves to `ScheduledTaskStatus.Scheduled` (the schedule pill). */
|
|
21
32
|
Active = "active",
|
|
33
|
+
/** Resolves to `ScheduledTaskStatus.Paused` (the "Paused" badge). */
|
|
22
34
|
Paused = "paused",
|
|
35
|
+
/** Resolves to `ScheduledTaskStatus.Completed` (the "Completed" badge). */
|
|
23
36
|
Completed = "completed"
|
|
24
37
|
}
|
|
25
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;IACnB,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-scheduled-tasks",
|
|
3
3
|
"description": "Presentational Scheduled Tasks page shell — header, toolbar, and empty state",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.154",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@tabler/icons-react": "^3.44.0",
|
|
26
26
|
"@uiw/react-markdown-preview": "^5.2.1",
|
|
27
27
|
"@uiw/react-md-editor": "^4.1.1",
|
|
28
|
-
"@epam/ai-dial-builder-form": "1.2.0-dev.
|
|
28
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.154"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
31
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.154",
|
|
32
32
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.19",
|
|
33
33
|
"react": "^19.2.8"
|
|
34
34
|
},
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolved visual status of a scheduled-task card, returned by
|
|
3
|
+
* `getScheduledTaskStatus`. Distinct from the host-supplied input
|
|
4
|
+
* `ScheduledTaskPresentationStatus` (the optional override on
|
|
5
|
+
* `ScheduledTaskItem`), which maps onto this enum: `Active` → `Scheduled`.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum ScheduledTaskStatus {
|
|
8
|
+
/** The schedule pill with the task's schedule label. */
|
|
9
|
+
Scheduled = "scheduled",
|
|
10
|
+
/** The "Paused" badge, for a task the user deactivated. */
|
|
11
|
+
Paused = "paused",
|
|
12
|
+
/** The "Completed" badge, for a one-time task that has finished running. */
|
|
13
|
+
Completed = "completed"
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=scheduled-task-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-status.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-task-status.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,mBAAmB;IAC7B,wDAAwD;IACxD,SAAS,cAAc;IACvB,2DAA2D;IAC3D,MAAM,WAAW;IACjB,4EAA4E;IAC5E,SAAS,cAAc;CACxB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ScheduledTaskItem } from '../models/scheduled-task-item';
|
|
2
|
+
import { ScheduledTaskStatus } from '../types/scheduled-task-status';
|
|
3
|
+
/** Resolves a card's visual status: an explicit `presentationStatus` wins, then `Completed` over `Paused`, over the schedule pill. */
|
|
4
|
+
export declare const getScheduledTaskStatus: (item: ScheduledTaskItem) => ScheduledTaskStatus;
|
|
5
|
+
//# sourceMappingURL=scheduled-task-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-task-status.d.ts","sourceRoot":"","sources":["../../src/utils/scheduled-task-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,sIAAsI;AACtI,eAAO,MAAM,sBAAsB,GACjC,MAAM,iBAAiB,KACtB,mBAgBF,CAAC"}
|