@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.
Files changed (69) hide show
  1. package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts +2 -2
  2. package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
  3. package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
  4. package/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.d.ts.map +1 -1
  5. package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts +5 -0
  6. package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -0
  7. package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts +6 -5
  8. package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
  9. package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts +14 -0
  10. package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -0
  11. package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts +5 -0
  12. package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -0
  13. package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts +9 -0
  14. package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -0
  15. package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts +5 -0
  16. package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -0
  17. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts +10 -0
  18. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -0
  19. package/components/ScheduledTasks/ScheduledTasks.d.ts +4 -3
  20. package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
  21. package/index.css +1 -1
  22. package/index.d.ts +12 -7
  23. package/index.d.ts.map +1 -1
  24. package/index.js +962 -521
  25. package/models/scheduled-task-card-grid-props.d.ts +2 -14
  26. package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
  27. package/models/scheduled-task-card-props.d.ts +17 -17
  28. package/models/scheduled-task-card-props.d.ts.map +1 -1
  29. package/models/scheduled-task-card-skeleton-props.d.ts +2 -2
  30. package/models/scheduled-task-card-skeleton-props.d.ts.map +1 -1
  31. package/models/scheduled-task-configuration-section-props.d.ts +13 -0
  32. package/models/scheduled-task-configuration-section-props.d.ts.map +1 -0
  33. package/models/scheduled-task-create-form-props.d.ts +64 -48
  34. package/models/scheduled-task-create-form-props.d.ts.map +1 -1
  35. package/models/scheduled-task-detail-view-props.d.ts +164 -0
  36. package/models/scheduled-task-detail-view-props.d.ts.map +1 -0
  37. package/models/scheduled-task-details-section-props.d.ts +30 -0
  38. package/models/scheduled-task-details-section-props.d.ts.map +1 -0
  39. package/models/scheduled-task-details-summary-props.d.ts +29 -0
  40. package/models/scheduled-task-details-summary-props.d.ts.map +1 -0
  41. package/models/scheduled-task-history-section-props.d.ts +68 -0
  42. package/models/scheduled-task-history-section-props.d.ts.map +1 -0
  43. package/models/scheduled-task-item.d.ts +2 -18
  44. package/models/scheduled-task-item.d.ts.map +1 -1
  45. package/models/scheduled-task-run-history-list-props.d.ts +82 -0
  46. package/models/scheduled-task-run-history-list-props.d.ts.map +1 -0
  47. package/models/scheduled-task-run-item.d.ts +19 -0
  48. package/models/scheduled-task-run-item.d.ts.map +1 -0
  49. package/models/scheduled-tasks-props.d.ts +15 -22
  50. package/models/scheduled-tasks-props.d.ts.map +1 -1
  51. package/package.json +10 -6
  52. package/test-setup.d.ts +10 -0
  53. package/test-setup.d.ts.map +1 -1
  54. package/types/scheduled-task-detail-tab.d.ts +10 -0
  55. package/types/scheduled-task-detail-tab.d.ts.map +1 -0
  56. package/types/scheduled-task-history-section-variant.d.ts +8 -0
  57. package/types/scheduled-task-history-section-variant.d.ts.map +1 -0
  58. package/types/scheduled-task-run-status.d.ts +12 -0
  59. package/types/scheduled-task-run-status.d.ts.map +1 -0
  60. package/types/scheduled-task-schedule.d.ts +5 -8
  61. package/types/scheduled-task-schedule.d.ts.map +1 -1
  62. package/types/scheduled-tasks-sort-key.d.ts +9 -5
  63. package/types/scheduled-tasks-sort-key.d.ts.map +1 -1
  64. package/utils/calendar-value.d.ts +4 -0
  65. package/utils/calendar-value.d.ts.map +1 -1
  66. package/components/ScheduledTaskSection/ScheduledTaskSection.d.ts +0 -5
  67. package/components/ScheduledTaskSection/ScheduledTaskSection.d.ts.map +0 -1
  68. package/models/scheduled-task-section-props.d.ts +0 -37
  69. package/models/scheduled-task-section-props.d.ts.map +0 -1
@@ -0,0 +1,68 @@
1
+ import { ScheduledTaskHistorySectionVariant } from '../types/scheduled-task-history-section-variant';
2
+ import { ScheduledTaskRunStatus } from '../types/scheduled-task-run-status';
3
+ import { ScheduledTaskRunItem } from './scheduled-task-run-item';
4
+ /** Localized labels used by the {@link ScheduledTaskHistorySection} component. */
5
+ export interface ScheduledTaskHistorySectionLabels {
6
+ /** Title of the History panel, rendered in the card variant's sticky header. */
7
+ historyTitle: string;
8
+ /** Message shown when the task has no runs yet. */
9
+ historyEmptyLabel: string;
10
+ /** Message shown alongside the retry action when `error` is set. */
11
+ historyErrorLabel: string;
12
+ /** Label for the retry action shown alongside `error`. */
13
+ historyRetryLabel: string;
14
+ /** Announced via `aria-live` while a load-more runs fetch is in flight. */
15
+ historyLoadingMoreLabel?: string;
16
+ /** Label for the "Show more" button rendered below the loaded runs when `hasMore` is `true`. Required when `onLoadMore` is supplied. */
17
+ historyShowMoreLabel?: string;
18
+ /** Per-status label used to build each run row's accessible name, e.g. `{ success: 'Succeeded', ... }`. */
19
+ runStatusLabels: Record<ScheduledTaskRunStatus, string>;
20
+ /** `sr-only` label announced alongside the unread-dot indicator on a run row whose `isUnread` is `true`. Defaults to `'Unread'`. */
21
+ unreadIndicatorLabel?: string;
22
+ }
23
+ /** Status-icon and unread-dot color overrides forwarded to the run list. */
24
+ interface ScheduledTaskHistorySectionColors {
25
+ /** Success status icon color. Fallback: `--text-success`. */
26
+ successIconColor?: string;
27
+ /** Error status icon color. Fallback: `--text-error`. */
28
+ errorIconColor?: string;
29
+ /** Missed status icon color. Fallback: `--text-secondary`. */
30
+ missedIconColor?: string;
31
+ /** Unread-dot indicator fill color. Fallback: `--text-accent`. */
32
+ unreadDotColor?: string;
33
+ }
34
+ /** Props for the {@link ScheduledTaskHistorySection} component. */
35
+ export interface ScheduledTaskHistorySectionProps {
36
+ /** Chrome the section renders: the desktop card or the mobile/tablet page flow. */
37
+ variant: ScheduledTaskHistorySectionVariant;
38
+ /** Localized labels. */
39
+ labels: ScheduledTaskHistorySectionLabels;
40
+ /** Pre-formatted "Next run" label shown under the History title. Omit to hide (e.g. when the schedule is paused or inactive). */
41
+ nextRunLabel?: string;
42
+ /** Runs to render, in the order they should display (server order, newest first). */
43
+ items: ScheduledTaskRunItem[];
44
+ /** When `true` and `items` is empty, shows `skeletonCount` placeholder rows instead of `labels.historyEmptyLabel`. Defaults to `false`. */
45
+ isLoading?: boolean;
46
+ /** When `true`, `skeletonCount` placeholder rows render below the loaded rows while the next page is fetched. Defaults to `false`. */
47
+ isLoadingMore?: boolean;
48
+ /** Number of placeholder rows shown during `isLoading`/`isLoadingMore`. Defaults to `6`. */
49
+ skeletonCount?: number;
50
+ /** When set, shows an error message and retry action instead of `items`. */
51
+ error?: Error | null;
52
+ /** Called when the user activates the retry action shown alongside `error`. */
53
+ onRetry?: () => void;
54
+ /** Whether another page of `items` is available beyond what has been loaded. Defaults to `false`. */
55
+ hasMore?: boolean;
56
+ /** Called when the user activates the "Show more" button, rendered while `hasMore` is `true`. Omit to hide the button entirely. */
57
+ onLoadMore?: () => void;
58
+ /** 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. */
59
+ onRunClick?: (run: ScheduledTaskRunItem) => void;
60
+ /** CSS class applied to the "Next run" label. Defaults to `'dial-small-text'`. */
61
+ runTimestampClassName?: string;
62
+ /** CSS class applied to the section title in the card variant. Defaults to `'dial-body-semi-text'`. */
63
+ sectionTitleClassName?: string;
64
+ /** Status-icon and unread-dot color overrides forwarded to the run list. */
65
+ colors?: ScheduledTaskHistorySectionColors;
66
+ }
67
+ export {};
68
+ //# sourceMappingURL=scheduled-task-history-section-props.d.ts.map
@@ -0,0 +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,UAAU,iCAAiC;IACzC,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,mEAAmE;AACnE,MAAM,WAAW,gCAAgC;IAC/C,mFAAmF;IACnF,OAAO,EAAE,kCAAkC,CAAC;IAC5C,wBAAwB;IACxB,MAAM,EAAE,iCAAiC,CAAC;IAC1C,iIAAiI;IACjI,YAAY,CAAC,EAAE,MAAM,CAAC;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,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;CAC5C"}
@@ -1,17 +1,3 @@
1
- /** Section a {@link ScheduledTaskItem} is grouped under in the card grid. */
2
- export declare enum ScheduledTaskSectionKey {
3
- /** Tasks shared from another user or accessible at the organization level. */
4
- Shared = "shared",
5
- /** Tasks owned by the current user. */
6
- MyTasks = "myTasks"
7
- }
8
- /** Pre-computed values used to sort a {@link ScheduledTaskItem}; any field may be absent if the source data doesn't provide it, in which case that item sorts last for the corresponding sort key. */
9
- export interface ScheduledTaskSortValues {
10
- /** ISO timestamp of the next scheduled run, used by the `firstToRun`/`lastToRun` sort keys. */
11
- nextRunAt?: string;
12
- /** ISO timestamp the task was created, used by the `newest` sort key. */
13
- createdAt?: string;
14
- }
15
1
  /** A single scheduled task rendered as a card in the Scheduled Tasks grid. All strings are pre-formatted by the host app — the lib performs no date/locale formatting. */
16
2
  export interface ScheduledTaskItem {
17
3
  /** Stable identifier for this task. */
@@ -26,9 +12,7 @@ export interface ScheduledTaskItem {
26
12
  locationSegments?: string[];
27
13
  /** When set, the card shows a "new" badge for this task. */
28
14
  isNew?: boolean;
29
- /** Section this item is grouped under in the card grid. */
30
- sectionKey: ScheduledTaskSectionKey;
31
- /** Values used to sort this item; see {@link ScheduledTaskSortValues}. */
32
- sortValues: ScheduledTaskSortValues;
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
+ isActive?: boolean;
33
17
  }
34
18
  //# 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,6EAA6E;AAC7E,oBAAY,uBAAuB;IACjC,8EAA8E;IAC9E,MAAM,WAAW;IACjB,uCAAuC;IACvC,OAAO,YAAY;CACpB;AAED,sMAAsM;AACtM,MAAM,WAAW,uBAAuB;IACtC,+FAA+F;IAC/F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,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,2DAA2D;IAC3D,UAAU,EAAE,uBAAuB,CAAC;IACpC,0EAA0E;IAC1E,UAAU,EAAE,uBAAuB,CAAC;CACrC"}
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;CACpB"}
@@ -0,0 +1,82 @@
1
+ import { ReactNode } from 'react';
2
+ import { ScheduledTaskRunStatus } from '../types/scheduled-task-run-status';
3
+ import { ScheduledTaskRunItem } from './scheduled-task-run-item';
4
+ /** Localized labels used by the {@link ScheduledTaskRunHistoryList} component. */
5
+ export interface ScheduledTaskRunHistoryListLabels {
6
+ /** Accessible label applied to the row list, e.g. "History". */
7
+ historyTitle: string;
8
+ /** Message shown when `items` is empty and `isLoading` is `false`. */
9
+ emptyLabel: string;
10
+ /** Message shown alongside the retry action when `error` is set. */
11
+ errorLabel: string;
12
+ /** Label for the retry action shown alongside `error`. */
13
+ retryLabel: string;
14
+ /** Per-status label used to build each run row's accessible name, e.g. `{ success: 'Succeeded', ... }`. */
15
+ runStatusLabels: Record<ScheduledTaskRunStatus, string>;
16
+ /** Appended to the current run row's accessible name, e.g. "Current run". Omit to skip the accessible current-run suffix. */
17
+ currentRunLabel?: string;
18
+ /** `sr-only` label announced alongside the unread-dot indicator on a row whose `isUnread` is `true`. Defaults to `'Unread'`. */
19
+ unreadIndicatorLabel?: string;
20
+ }
21
+ /**
22
+ * Color overrides for the {@link ScheduledTaskRunHistoryList} component, applied
23
+ * as CSS custom properties with app theme fallbacks.
24
+ */
25
+ export interface ScheduledTaskRunHistoryListColors {
26
+ /** Success status icon color. Fallback: `--text-success`. */
27
+ successIconColor?: string;
28
+ /** Error status icon color. Fallback: `--text-error`. */
29
+ errorIconColor?: string;
30
+ /** Missed status icon color. Fallback: `--text-secondary`. */
31
+ missedIconColor?: string;
32
+ /** Error/empty message text color. Fallback: `--text-secondary`. */
33
+ subtitleTextColor?: string;
34
+ /** Current-run row background. Fallback: `--bg-control-accent-alpha-active`. */
35
+ currentRunBackground?: string;
36
+ /** Unread-dot indicator fill color. Fallback: `--text-accent`. */
37
+ unreadDotColor?: string;
38
+ }
39
+ /** Typography overrides for the {@link ScheduledTaskRunHistoryList} component. */
40
+ export interface ScheduledTaskRunHistoryListTypography {
41
+ /** CSS class applied to each run row's timestamp text. Defaults to `'dial-small-text'`. */
42
+ runTimestampClassName?: string;
43
+ /** CSS class applied to the error and empty-state messages. Defaults to `'dial-body-text'`. */
44
+ subtitleClassName?: string;
45
+ }
46
+ /** Style overrides for the {@link ScheduledTaskRunHistoryList} component. */
47
+ export interface ScheduledTaskRunHistoryListStyles {
48
+ /** Color overrides applied as CSS custom properties. */
49
+ colors?: ScheduledTaskRunHistoryListColors;
50
+ /** Typography class overrides. */
51
+ typography?: ScheduledTaskRunHistoryListTypography;
52
+ }
53
+ /** Props for the {@link ScheduledTaskRunHistoryList} component. */
54
+ export interface ScheduledTaskRunHistoryListProps {
55
+ /** Runs to render, in the order they should display (server order, newest first). */
56
+ items: ScheduledTaskRunItem[];
57
+ /** When `true` and `items` is empty, shows `skeletonCount` placeholder rows instead of `labels.emptyLabel`. Defaults to `false`. */
58
+ isLoading?: boolean;
59
+ /** When `true`, `skeletonCount` placeholder rows render below the loaded rows. Defaults to `false`. */
60
+ isLoadingMore?: boolean;
61
+ /** Number of placeholder rows shown during `isLoading`/`isLoadingMore`. Defaults to `6`. */
62
+ skeletonCount?: number;
63
+ /** When set, shows an error message and retry action instead of `items`. */
64
+ error?: Error | null;
65
+ /** Called when the user activates the retry action shown alongside `error`. */
66
+ onRetry?: () => void;
67
+ /** The `id` of the run to render with the current-run visual and accessible treatment. Omit to mark no row as current. */
68
+ currentRunId?: string;
69
+ /** 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. */
70
+ onRunClick?: (run: ScheduledTaskRunItem) => void;
71
+ /** Localized labels. */
72
+ labels: ScheduledTaskRunHistoryListLabels;
73
+ /**
74
+ * Rendered after the loaded rows (and any load-more skeletons). Hosts supply
75
+ * their own pagination trigger here — a scroll sentinel, a "Show more"
76
+ * button, or nothing — the component has no built-in pagination mechanism.
77
+ */
78
+ footer?: ReactNode;
79
+ /** Style overrides. */
80
+ styles?: ScheduledTaskRunHistoryListStyles;
81
+ }
82
+ //# sourceMappingURL=scheduled-task-run-history-list-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-run-history-list-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-run-history-list-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,kFAAkF;AAClF,MAAM,WAAW,iCAAiC;IAChD,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1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,EAAE,MAAM,IAAI,CAAC;IACrB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6KAA6K;IAC7K,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACjD,wBAAwB;IACxB,MAAM,EAAE,iCAAiC,CAAC;IAC1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uBAAuB;IACvB,MAAM,CAAC,EAAE,iCAAiC,CAAC;CAC5C"}
@@ -0,0 +1,19 @@
1
+ import { ScheduledTaskRunStatus } from '../types/scheduled-task-run-status';
2
+ /**
3
+ * A single scheduled task run rendered as a row in the History panel. All
4
+ * strings are pre-formatted by the host app — the lib performs no date,
5
+ * duration, or locale formatting.
6
+ */
7
+ export interface ScheduledTaskRunItem {
8
+ /** Stable identifier for this run. */
9
+ id: string;
10
+ /** Outcome of this run, driving the row's status icon. */
11
+ status: ScheduledTaskRunStatus;
12
+ /** Pre-formatted timestamp, optionally including a duration suffix, e.g. `"today at 9:01 AM (99s)"`. */
13
+ timestampLabel: string;
14
+ /** Id of the conversation this run produced, when one exists. When set together with `onRunClick`, the row renders as interactive. */
15
+ conversationId?: string;
16
+ /** Whether this run's conversation is unread. When `true`, the row renders the unread-dot indicator. Defaults to `false`. */
17
+ isUnread?: boolean;
18
+ }
19
+ //# sourceMappingURL=scheduled-task-run-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-run-item.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-run-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAEjF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,0DAA0D;IAC1D,MAAM,EAAE,sBAAsB,CAAC;IAC/B,wGAAwG;IACxG,cAAc,EAAE,MAAM,CAAC;IACvB,sIAAsI;IACtI,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6HAA6H;IAC7H,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1,13 +1,8 @@
1
+ import { SelectOption } from '@epam/ai-dial-ui-kit';
2
+ import { ReactNode } from 'react';
1
3
  import { ScheduledTasksSortKey } from '../types/scheduled-tasks-sort-key';
2
4
  import { ScheduledTaskCardGridLabels } from './scheduled-task-card-grid-props';
3
5
  import { ScheduledTaskItem } from './scheduled-task-item';
4
- /** A single sort option shown in the Scheduled Tasks toolbar sort control. */
5
- export interface ScheduledTasksSortOption {
6
- /** Stable identifier for this sort option, passed back via `onSortChange`. */
7
- key: ScheduledTasksSortKey;
8
- /** Localized display label for this sort option. */
9
- label: string;
10
- }
11
6
  /** Localized labels used by the {@link ScheduledTasks} component. */
12
7
  export interface ScheduledTasksLabels {
13
8
  /** Page title, e.g. "Scheduled tasks". */
@@ -22,10 +17,14 @@ export interface ScheduledTasksLabels {
22
17
  searchAriaLabel: string;
23
18
  /** Accessible label for the toolbar search input's clear action. */
24
19
  clearSearchLabel: string;
25
- /** Accessible label for the toolbar sort control. */
20
+ /** The sort control's own name, prepended to its accessible name. */
26
21
  sortLabel: string;
27
- /** Options rendered in the sort control's dropdown. */
28
- sortOptions: ScheduledTasksSortOption[];
22
+ /**
23
+ * Values the sort menu lists; each `value` is a `ScheduledTasksSortKey`.
24
+ * Only the values — the component owns which one is marked as applied and
25
+ * what a click does.
26
+ */
27
+ sortOptions: SelectOption[];
29
28
  /** Message shown when the fetched task list is empty. */
30
29
  emptyStateLabel: string;
31
30
  /** Message shown when `searchQuery` filters every task out. */
@@ -34,8 +33,6 @@ export interface ScheduledTasksLabels {
34
33
  errorLabel: string;
35
34
  /** Label for the retry action shown when `error` is set. */
36
35
  retryLabel: string;
37
- /** Title for the section grouping items with `sectionKey: 'shared'`. */
38
- sharedSectionTitle: string;
39
36
  /** Announced via `aria-live` while a load-more fetch is in flight (`isLoadingMore`). Optional — no announcement is made when omitted. */
40
37
  loadingMoreLabel?: string;
41
38
  /** Localized labels forwarded as-is to every card in the grid. */
@@ -52,7 +49,7 @@ export interface ScheduledTasksColors {
52
49
  subtitleText?: string;
53
50
  /** Sort control label/icon color. Fallback: `--text-accent`. */
54
51
  sortButtonText?: string;
55
- /** Background color of the load-more placeholder skeleton bars. Fallback: `--bg-layer-4`. */
52
+ /** Background color of the load-more placeholder skeleton bars. Fallback: `--bg-control-disable-primary`. */
56
53
  skeletonColor?: string;
57
54
  }
58
55
  /** Typography overrides for the {@link ScheduledTasks} component. */
@@ -68,8 +65,6 @@ export interface ScheduledTasksStyles {
68
65
  colors?: ScheduledTasksColors;
69
66
  /** Typography class overrides. */
70
67
  typography?: ScheduledTasksTypography;
71
- /** Size (px) of the empty-state icon. Defaults to `48`. */
72
- emptyStateIconSize?: number;
73
68
  }
74
69
  /** Props for the {@link ScheduledTasks} component. */
75
70
  export interface ScheduledTasksProps {
@@ -85,7 +80,7 @@ export interface ScheduledTasksProps {
85
80
  sortKey: ScheduledTasksSortKey;
86
81
  /** Called when the user selects a different sort option. */
87
82
  onSortChange: (key: ScheduledTasksSortKey) => void;
88
- /** Tasks to render as cards, already search-matched server-side; grouped by `sectionKey` and sorted client-side by `sortKey`. */
83
+ /** Tasks to render as cards, already search-matched and sorted server-side; rendered in the order received. */
89
84
  items: ScheduledTaskItem[];
90
85
  /** When `true`, the content region shows a loading spinner instead of `items`. Defaults to `false`. */
91
86
  isLoading?: boolean;
@@ -101,12 +96,10 @@ export interface ScheduledTasksProps {
101
96
  skeletonCount?: number;
102
97
  /** Called when the trailing scroll sentinel becomes visible and `hasMore && !isLoadingMore && !isLoading`. */
103
98
  onLoadMore?: () => void;
104
- /** Called with a task id when the user activates "Edit" on a card. Omit to hide the action on every card. */
105
- onEdit?: (id: string) => void;
106
- /** Called with a task id when the user activates "Run now" on a card. Omit to hide the action on every card. */
107
- onRunNow?: (id: string) => void;
108
- /** Called with a task id when the user activates "Delete" on a card. Omit to hide the action on every card. */
109
- onDelete?: (id: string) => void;
99
+ /** Called with a task id when the user activates a card's body. Omit to render cards with no added interactive root semantics. */
100
+ onCardClick?: (id: string) => void;
101
+ /** Content rendered between the search/sort toolbar and the content region (e.g. a status banner). Renders nothing when omitted. */
102
+ banner?: ReactNode;
110
103
  /** Style overrides. */
111
104
  styles?: ScheduledTasksStyles;
112
105
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-tasks-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-tasks-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,8EAA8E;AAC9E,MAAM,WAAW,wBAAwB;IACvC,8EAA8E;IAC9E,GAAG,EAAE,qBAAqB,CAAC;IAC3B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qEAAqE;AACrE,MAAM,WAAW,oBAAoB;IACnC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,eAAe,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxC,yDAAyD;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,U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AI,CAAC;IAC1B,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,iDAAiD;IACjD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,4DAA4D;IAC5D,YAAY,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACnD,+GAA+G;IAC/G,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,uGAAuG;IACvG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wIAAwI;IACxI,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8GAA8G;IAC9G,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,kIAAkI;IAClI,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oIAAoI;IACpI,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-scheduled-tasks",
3
3
  "description": "Presentational Scheduled Tasks page shell — header, toolbar, and empty state",
4
- "version": "1.1.0-dev.99",
4
+ "version": "1.2.0-dev.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -16,12 +16,16 @@
16
16
  "default": "./index.js"
17
17
  }
18
18
  },
19
- "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.1.0-dev.99",
21
- "@epam/ai-dial-kit": "1.1.0-dev.99",
22
- "@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
19
+ "dependencies": {
23
20
  "@tabler/icons-react": "^3.44.0",
24
- "react": "^19.0.0"
21
+ "@uiw/react-markdown-preview": "^5.2.1",
22
+ "@uiw/react-md-editor": "^4.1.1",
23
+ "@epam/ai-dial-builder-form": "1.2.0-dev.1"
24
+ },
25
+ "peerDependencies": {
26
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.1",
27
+ "@epam/ai-dial-ui-kit": "^0.14.2",
28
+ "react": "^19.2.8"
25
29
  },
26
30
  "repository": {
27
31
  "type": "git",
package/test-setup.d.ts CHANGED
@@ -1 +1,11 @@
1
+ declare class NoopIntersectionObserver implements IntersectionObserver {
2
+ readonly root: Element | Document | null;
3
+ readonly rootMargin: string;
4
+ readonly thresholds: readonly number[];
5
+ readonly scrollMargin: string;
6
+ observe(): void;
7
+ unobserve(): void;
8
+ disconnect(): void;
9
+ takeRecords(): IntersectionObserverEntry[];
10
+ }
1
11
  //# sourceMappingURL=test-setup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../src/test-setup.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../src/test-setup.ts"],"names":[],"mappings":"AAKA,cAAM,wBAAyB,YAAW,oBAAoB;IAC5D,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAQ;IAChD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAM;IACjC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAM;IAC5C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAM;IAEnC,OAAO,IAAI,IAAI;IACf,SAAS,IAAI,IAAI;IACjB,UAAU,IAAI,IAAI;IAElB,WAAW,IAAI,yBAAyB,EAAE;CAG3C"}
@@ -0,0 +1,10 @@
1
+ /** Tabs of the detail view's mobile/tablet body, in canonical display order. */
2
+ export declare enum ScheduledTaskDetailTab {
3
+ /** The Details section tab. */
4
+ Details = "details",
5
+ /** The Configuration section tab. */
6
+ Configuration = "configuration",
7
+ /** The History section tab. */
8
+ History = "history"
9
+ }
10
+ //# sourceMappingURL=scheduled-task-detail-tab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-detail-tab.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-task-detail-tab.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oBAAY,sBAAsB;IAChC,+BAA+B;IAC/B,OAAO,YAAY;IACnB,qCAAqC;IACrC,aAAa,kBAAkB;IAC/B,+BAA+B;IAC/B,OAAO,YAAY;CACpB"}
@@ -0,0 +1,8 @@
1
+ /** Which chrome the History section renders. */
2
+ export declare enum ScheduledTaskHistorySectionVariant {
3
+ /** The desktop self-scrolling raised card with a sticky title/next-run header and a sticky "Show more" footer. */
4
+ Card = "card",
5
+ /** Standard top-to-bottom page flow with an inline "Show more" footer, used in the mobile/tablet tab panel. */
6
+ Flow = "flow"
7
+ }
8
+ //# sourceMappingURL=scheduled-task-history-section-variant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-history-section-variant.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-task-history-section-variant.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,oBAAY,kCAAkC;IAC5C,kHAAkH;IAClH,IAAI,SAAS;IACb,+GAA+G;IAC/G,IAAI,SAAS;CACd"}
@@ -0,0 +1,12 @@
1
+ /** Status of a single scheduled task run, shown as an icon in the History panel. */
2
+ export declare enum ScheduledTaskRunStatus {
3
+ /** The run completed successfully. */
4
+ Success = "success",
5
+ /** The run failed. */
6
+ Error = "error",
7
+ /** The run is currently executing. */
8
+ InProgress = "inProgress",
9
+ /** The scheduled run never started (e.g. the schedule was paused or the runner was unavailable). */
10
+ Missed = "missed"
11
+ }
12
+ //# sourceMappingURL=scheduled-task-run-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-run-status.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-task-run-status.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oBAAY,sBAAsB;IAChC,sCAAsC;IACtC,OAAO,YAAY;IACnB,sBAAsB;IACtB,KAAK,UAAU;IACf,sCAAsC;IACtC,UAAU,eAAe;IACzB,oGAAoG;IACpG,MAAM,WAAW;CAClB"}
@@ -1,12 +1,9 @@
1
- /** Whether a scheduled task runs once at a specific time or repeats on a cadence. */
2
- export declare enum ScheduledTaskScheduleType {
1
+ /** How often a scheduled task repeats. */
2
+ export declare enum ScheduledTaskRepeat {
3
3
  /** Task runs once at the date/time specified by `runAt`. */
4
- Once = "once",
5
- /** Task runs repeatedly on the cadence specified by `frequency`, `time`, `dayOfWeek`, and `dayOfMonth`. */
6
- Recurring = "recurring"
7
- }
8
- /** Recurrence cadence for a {@link ScheduledTaskScheduleType.Recurring} schedule type. */
9
- export declare enum ScheduledTaskFrequency {
4
+ OneTime = "oneTime",
5
+ /** Task runs every hour, at the start of the hour. */
6
+ Hourly = "hourly",
10
7
  /** Task runs every day at the specified `time`. */
11
8
  Daily = "daily",
12
9
  /** Task runs every week on `dayOfWeek` at the specified `time`. */
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-task-schedule.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-task-schedule.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,oBAAY,yBAAyB;IACnC,4DAA4D;IAC5D,IAAI,SAAS;IACb,2GAA2G;IAC3G,SAAS,cAAc;CACxB;AAED,0FAA0F;AAC1F,oBAAY,sBAAsB;IAChC,mDAAmD;IACnD,KAAK,UAAU;IACf,mEAAmE;IACnE,MAAM,WAAW;IACjB,qEAAqE;IACrE,OAAO,YAAY;CACpB"}
1
+ {"version":3,"file":"scheduled-task-schedule.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-task-schedule.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,oBAAY,mBAAmB;IAC7B,4DAA4D;IAC5D,OAAO,YAAY;IACnB,sDAAsD;IACtD,MAAM,WAAW;IACjB,mDAAmD;IACnD,KAAK,UAAU;IACf,mEAAmE;IACnE,MAAM,WAAW;IACjB,qEAAqE;IACrE,OAAO,YAAY;CACpB"}
@@ -1,12 +1,16 @@
1
- /** Sort keys supported by the Scheduled Tasks toolbar. */
1
+ /**
2
+ * Sort keys supported by the Scheduled Tasks toolbar. The lib does not sort —
3
+ * it reports the active key through `onSortChange` and renders `items` in the
4
+ * order the host supplies them.
5
+ */
2
6
  export declare enum ScheduledTasksSortKey {
3
- /** Sort by `sortValues.nextRunAt` ascending — earliest next run first. Items with no `nextRunAt` sort last. */
7
+ /** Earliest next run first. */
4
8
  FirstToRun = "firstToRun",
5
- /** Sort by `sortValues.nextRunAt` descending — latest next run first. Items with no `nextRunAt` sort last. */
9
+ /** Latest next run first. */
6
10
  LastToRun = "lastToRun",
7
- /** Sort by `sortValues.createdAt` descending — most recently created first. Items with no `createdAt` sort last. */
11
+ /** Most recently created first. */
8
12
  Newest = "newest",
9
- /** Sort by `item.displayName` ascending, case-insensitive. */
13
+ /** Task name ascending, case-insensitive. */
10
14
  NameAZ = "nameAZ"
11
15
  }
12
16
  //# sourceMappingURL=scheduled-tasks-sort-key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-tasks-sort-key.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-tasks-sort-key.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,oBAAY,qBAAqB;IAC/B,+GAA+G;IAC/G,UAAU,eAAe;IACzB,8GAA8G;IAC9G,SAAS,cAAc;IACvB,oHAAoH;IACpH,MAAM,WAAW;IACjB,8DAA8D;IAC9D,MAAM,WAAW;CAClB"}
1
+ {"version":3,"file":"scheduled-tasks-sort-key.d.ts","sourceRoot":"","sources":["../../src/types/scheduled-tasks-sort-key.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,qBAAqB;IAC/B,+BAA+B;IAC/B,UAAU,eAAe;IACzB,6BAA6B;IAC7B,SAAS,cAAc;IACvB,mCAAmC;IACnC,MAAM,WAAW;IACjB,6CAA6C;IAC7C,MAAM,WAAW;CAClB"}
@@ -3,6 +3,10 @@ import { CalendarValue } from '@epam/ai-dial-ui-kit';
3
3
  export declare const runAtToCalendarValue: (runAt: string | undefined) => Date | null;
4
4
  /** Converts `Calendar`'s `CalendarValue` back to the `datetime-local`-style string `values.runAt` expects. */
5
5
  export declare const calendarValueToRunAt: (value: CalendarValue) => string;
6
+ /** Converts a `YYYY-MM-DD` date-only string (`values.startDate`/`endDate`) to a `Date` for `Calendar`'s controlled value, or `null` when empty. */
7
+ export declare const dateValueToCalendarValue: (dateValue: string | undefined) => Date | null;
8
+ /** Converts `Calendar`'s `CalendarValue` back to a `YYYY-MM-DD` date-only string, distinct from `calendarValueToRunAt`'s `datetime-local` output. */
9
+ export declare const calendarValueToDateValue: (value: CalendarValue) => string;
6
10
  /** Converts `values.dayOfWeek` (`'0'`=Monday..`'6'`=Sunday) to `Calendar`'s `weekday` mode value (ISO `'1'`=Monday..`'7'`=Sunday), or `null` when unset. */
7
11
  export declare const dayOfWeekToCalendarValue: (dayOfWeek: string | undefined) => string | null;
8
12
  /** Converts `Calendar`'s `weekday` mode `CalendarValue` (ISO `'1'`=Monday..`'7'`=Sunday) back to `values.dayOfWeek` (`'0'`=Monday..`'6'`=Sunday). */
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-value.d.ts","sourceRoot":"","sources":["../../src/utils/calendar-value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,qIAAqI;AACrI,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,IAAI,GAAG,IACxC,CAAC;AAEjC,8GAA8G;AAC9G,eAAO,MAAM,oBAAoB,GAAI,OAAO,aAAa,KAAG,MAS3D,CAAC;AAEF,4JAA4J;AAC5J,eAAO,MAAM,wBAAwB,GACnC,WAAW,MAAM,GAAG,SAAS,KAC5B,MAAM,GAAG,IAGX,CAAC;AAEF,qJAAqJ;AACrJ,eAAO,MAAM,wBAAwB,GAAI,OAAO,aAAa,KAAG,MAG/D,CAAC"}
1
+ {"version":3,"file":"calendar-value.d.ts","sourceRoot":"","sources":["../../src/utils/calendar-value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,qIAAqI;AACrI,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,IAAI,GAAG,IACxC,CAAC;AAEjC,8GAA8G;AAC9G,eAAO,MAAM,oBAAoB,GAAI,OAAO,aAAa,KAAG,MAS3D,CAAC;AAQF,mJAAmJ;AACnJ,eAAO,MAAM,wBAAwB,GACnC,WAAW,MAAM,GAAG,SAAS,KAC5B,IAAI,GAAG,IAMT,CAAC;AAEF,qJAAqJ;AACrJ,eAAO,MAAM,wBAAwB,GAAI,OAAO,aAAa,KAAG,MAS/D,CAAC;AAEF,4JAA4J;AAC5J,eAAO,MAAM,wBAAwB,GACnC,WAAW,MAAM,GAAG,SAAS,KAC5B,MAAM,GAAG,IAGX,CAAC;AAEF,qJAAqJ;AACrJ,eAAO,MAAM,wBAAwB,GAAI,OAAO,aAAa,KAAG,MAG/D,CAAC"}
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- import { ScheduledTaskSectionProps } from '../../models/scheduled-task-section-props';
3
- /** Named group of scheduled-task cards (e.g. "Shared", "My tasks") with a title and a count badge. */
4
- export declare const ScheduledTaskSection: FC<ScheduledTaskSectionProps>;
5
- //# sourceMappingURL=ScheduledTaskSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScheduledTaskSection.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskSection/ScheduledTaskSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAG3F,sGAAsG;AACtG,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAsC9D,CAAC"}
@@ -1,37 +0,0 @@
1
- import { ReactNode } from 'react';
2
- /**
3
- * Color overrides for the {@link ScheduledTaskSection} component, applied as
4
- * CSS custom properties with app theme fallbacks.
5
- */
6
- export interface ScheduledTaskSectionColors {
7
- /** Count badge background. Fallback: `--bg-layer-raised`. */
8
- countBadgeBackground?: string;
9
- /** Count badge text color. Fallback: `--text-secondary`. */
10
- countBadgeText?: string;
11
- }
12
- /** Typography overrides for the {@link ScheduledTaskSection} component. */
13
- export interface ScheduledTaskSectionTypography {
14
- /** CSS class applied to the section title. Defaults to `'dial-small-semi-text'`. */
15
- titleClassName?: string;
16
- /** CSS class applied to the count badge text. Defaults to `'dial-tiny-text'`. */
17
- countBadgeClassName?: string;
18
- }
19
- /** Style overrides for the {@link ScheduledTaskSection} component. */
20
- export interface ScheduledTaskSectionStyles {
21
- /** Color overrides applied as CSS custom properties. */
22
- colors?: ScheduledTaskSectionColors;
23
- /** Typography class overrides. */
24
- typography?: ScheduledTaskSectionTypography;
25
- }
26
- /** Props for the {@link ScheduledTaskSection} component. */
27
- export interface ScheduledTaskSectionProps {
28
- /** Section heading, e.g. "Shared". Omit to render the section without a heading/count row. */
29
- title?: string;
30
- /** Number of items in this section, shown as a count badge next to the title. Ignored when `title` is omitted. */
31
- count: number;
32
- /** Section content, typically a {@link ScheduledTaskCardGrid}. */
33
- children: ReactNode;
34
- /** Style overrides. */
35
- styles?: ScheduledTaskSectionStyles;
36
- }
37
- //# sourceMappingURL=scheduled-task-section-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scheduled-task-section-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-section-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,2EAA2E;AAC3E,MAAM,WAAW,8BAA8B;IAC7C,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,kCAAkC;IAClC,UAAU,CAAC,EAAE,8BAA8B,CAAC;CAC7C;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kHAAkH;IAClH,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,QAAQ,EAAE,SAAS,CAAC;IACpB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC"}