@epam/ai-dial-scheduled-tasks 1.3.0-dev.35 → 1.3.0-dev.355

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 (78) hide show
  1. package/calendar-value-WOdrwh6p.js +33 -0
  2. package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts +24 -0
  3. package/components/ScheduledTaskBoundaryField/ScheduledTaskBoundaryField.d.ts.map +1 -0
  4. package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts +3 -1
  5. package/components/ScheduledTaskCard/ScheduledTaskCard.d.ts.map +1 -1
  6. package/components/ScheduledTaskCardGrid/ScheduledTaskCardGrid.d.ts.map +1 -1
  7. package/components/ScheduledTaskConfigurationSection/ScheduledTaskConfigurationSection.d.ts.map +1 -1
  8. package/components/ScheduledTaskConversationBanner/ScheduledTaskConversationBanner.d.ts +5 -0
  9. package/components/ScheduledTaskConversationBanner/ScheduledTaskConversationBanner.d.ts.map +1 -0
  10. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts +82 -0
  11. package/components/ScheduledTaskConversationDetailsSection/ScheduledTaskConversationDetailsSection.d.ts.map +1 -0
  12. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts +80 -0
  13. package/components/ScheduledTaskConversationHistorySection/ScheduledTaskConversationHistorySection.d.ts.map +1 -0
  14. package/components/ScheduledTaskCreateForm/ScheduledTaskCreateForm.d.ts.map +1 -1
  15. package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts +5 -1
  16. package/components/ScheduledTaskDeleteConfirmation/ScheduledTaskDeleteConfirmation.d.ts.map +1 -1
  17. package/components/ScheduledTaskDetailView/ScheduledTaskDetailView.d.ts.map +1 -1
  18. package/components/ScheduledTaskDetailsSection/ScheduledTaskDetailsSection.d.ts.map +1 -1
  19. package/components/ScheduledTaskDetailsSummary/ScheduledTaskDetailsSummary.d.ts.map +1 -1
  20. package/components/ScheduledTaskHistorySection/ScheduledTaskHistorySection.d.ts.map +1 -1
  21. package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts +6 -2
  22. package/components/ScheduledTaskRunAtField/ScheduledTaskRunAtField.d.ts.map +1 -1
  23. package/components/ScheduledTaskRunAtTimeField/ScheduledTaskRunAtTimeField.d.ts +5 -0
  24. package/components/ScheduledTaskRunAtTimeField/ScheduledTaskRunAtTimeField.d.ts.map +1 -0
  25. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts +4 -3
  26. package/components/ScheduledTaskRunHistoryList/ScheduledTaskRunHistoryList.d.ts.map +1 -1
  27. package/components/ScheduledTasks/ScheduledTasks.d.ts.map +1 -1
  28. package/components/ScheduledTasksLimitedAccessBanner/ScheduledTasksLimitedAccessBanner.d.ts +20 -0
  29. package/components/ScheduledTasksLimitedAccessBanner/ScheduledTasksLimitedAccessBanner.d.ts.map +1 -0
  30. package/components/ScheduledTasksLoginBanner/ScheduledTasksLoginBanner.d.ts +32 -0
  31. package/components/ScheduledTasksLoginBanner/ScheduledTasksLoginBanner.d.ts.map +1 -0
  32. package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts +15 -0
  33. package/components/SectionAccordionTitle/SectionAccordionTitle.d.ts.map +1 -0
  34. package/constants/scheduled-task-create-form.d.ts +3 -0
  35. package/constants/scheduled-task-create-form.d.ts.map +1 -1
  36. package/index.css +3 -2
  37. package/index.d.ts +16 -4
  38. package/index.d.ts.map +1 -1
  39. package/index.js +1254 -848
  40. package/models/scheduled-task-card-grid-props.d.ts +3 -1
  41. package/models/scheduled-task-card-grid-props.d.ts.map +1 -1
  42. package/models/scheduled-task-card-props.d.ts +3 -3
  43. package/models/scheduled-task-card-props.d.ts.map +1 -1
  44. package/models/scheduled-task-configuration-section-props.d.ts +2 -0
  45. package/models/scheduled-task-configuration-section-props.d.ts.map +1 -1
  46. package/models/scheduled-task-conversation-banner-props.d.ts +72 -0
  47. package/models/scheduled-task-conversation-banner-props.d.ts.map +1 -0
  48. package/models/scheduled-task-create-form-props.d.ts +30 -7
  49. package/models/scheduled-task-create-form-props.d.ts.map +1 -1
  50. package/models/scheduled-task-detail-view-props.d.ts +12 -0
  51. package/models/scheduled-task-detail-view-props.d.ts.map +1 -1
  52. package/models/scheduled-task-details-section-props.d.ts +4 -1
  53. package/models/scheduled-task-details-section-props.d.ts.map +1 -1
  54. package/models/scheduled-task-details-summary-props.d.ts +19 -1
  55. package/models/scheduled-task-details-summary-props.d.ts.map +1 -1
  56. package/models/scheduled-task-history-section-props.d.ts +17 -3
  57. package/models/scheduled-task-history-section-props.d.ts.map +1 -1
  58. package/models/scheduled-task-item.d.ts +2 -0
  59. package/models/scheduled-task-item.d.ts.map +1 -1
  60. package/models/scheduled-task-run-history-list-props.d.ts +20 -4
  61. package/models/scheduled-task-run-history-list-props.d.ts.map +1 -1
  62. package/models/scheduled-task-run-item.d.ts +5 -1
  63. package/models/scheduled-task-run-item.d.ts.map +1 -1
  64. package/models/scheduled-tasks-props.d.ts +8 -2
  65. package/models/scheduled-tasks-props.d.ts.map +1 -1
  66. package/package.json +6 -6
  67. package/types/scheduled-task-schedule.d.ts +3 -1
  68. package/types/scheduled-task-schedule.d.ts.map +1 -1
  69. package/utils/aria.d.ts +3 -0
  70. package/utils/aria.d.ts.map +1 -0
  71. package/utils/calendar-value.d.ts +3 -1
  72. package/utils/calendar-value.d.ts.map +1 -1
  73. package/validation/index.d.ts +1 -1
  74. package/validation/index.d.ts.map +1 -1
  75. package/validation/scheduled-task-validation.d.ts +9 -4
  76. package/validation/scheduled-task-validation.d.ts.map +1 -1
  77. package/validation.js +13 -13
  78. package/calendar-value-B41Uk26Z.js +0 -24
@@ -7,6 +7,8 @@ export interface ScheduledTaskRunHistoryListLabels {
7
7
  historyTitle: string;
8
8
  /** Message shown when `items` is empty and `isLoading` is `false`. */
9
9
  emptyLabel: string;
10
+ /** Secondary line under `emptyLabel`. Omitted when not set. */
11
+ emptyDescription?: string;
10
12
  /** Message shown alongside the retry action when `error` is set. */
11
13
  errorLabel: string;
12
14
  /** Label for the retry action shown alongside `error`. */
@@ -17,13 +19,15 @@ export interface ScheduledTaskRunHistoryListLabels {
17
19
  currentRunLabel?: string;
18
20
  /** `sr-only` label announced alongside the unread-dot indicator on a row whose `isUnread` is `true`. Defaults to `'Unread'`. */
19
21
  unreadIndicatorLabel?: string;
22
+ /** Label of the link inside an expanded failed run's details that opens its conversation. Defaults to `'Open conversation'`. */
23
+ openConversationLabel?: string;
20
24
  }
21
25
  /**
22
26
  * Color overrides for the {@link ScheduledTaskRunHistoryList} component, applied
23
27
  * as CSS custom properties with app theme fallbacks.
24
28
  */
25
29
  export interface ScheduledTaskRunHistoryListColors {
26
- /** Success status icon color. Fallback: `--text-success`. */
30
+ /** Success status icon color. Fallback: `--text-secondary`. */
27
31
  successIconColor?: string;
28
32
  /** Error status icon color. Fallback: `--text-error`. */
29
33
  errorIconColor?: string;
@@ -33,15 +37,25 @@ export interface ScheduledTaskRunHistoryListColors {
33
37
  subtitleTextColor?: string;
34
38
  /** Current-run row background. Fallback: `--bg-control-accent-alpha-active`. */
35
39
  currentRunBackground?: string;
40
+ /** Duration text color on the current-run row. Fallback: `--text-primary`. */
41
+ currentRunSubtitleTextColor?: string;
36
42
  /** Unread-dot indicator fill color. Fallback: `--text-accent`. */
37
43
  unreadDotColor?: string;
44
+ /** Error text color inside an expanded failed run's details. Fallback: `--text-secondary`. */
45
+ errorDetailsTextColor?: string;
46
+ /** Expand/collapse chevron color on a failed run's row. Fallback: `--text-secondary`. */
47
+ chevronIconColor?: string;
38
48
  }
39
49
  /** Typography overrides for the {@link ScheduledTaskRunHistoryList} component. */
40
50
  export interface ScheduledTaskRunHistoryListTypography {
41
- /** CSS class applied to each run row's timestamp text. Defaults to `'dial-small-text'`. */
51
+ /** CSS class applied to each viewed run row's timestamp text. Defaults to `'dial-small-paragraph-text'`. */
42
52
  runTimestampClassName?: string;
53
+ /** CSS class applied to each not-yet-viewed run row's (`isUnread`) timestamp text, rendered semibold by default. Defaults to `'dial-small-paragraph-semi-text'`. */
54
+ runTimestampUnreadClassName?: string;
43
55
  /** CSS class applied to the error and empty-state messages. Defaults to `'dial-body-text'`. */
44
56
  subtitleClassName?: string;
57
+ /** CSS class applied to the error text inside an expanded failed run's details. Defaults to `'dial-tiny-text'`. */
58
+ errorDetailsClassName?: string;
45
59
  }
46
60
  /** Style overrides for the {@link ScheduledTaskRunHistoryList} component. */
47
61
  export interface ScheduledTaskRunHistoryListStyles {
@@ -51,12 +65,14 @@ export interface ScheduledTaskRunHistoryListStyles {
51
65
  typography?: ScheduledTaskRunHistoryListTypography;
52
66
  /** Minimum row height. Fallback: `32px`. */
53
67
  rowMinHeight?: string;
54
- /** Background of an interactive run row on hover. Defaults to `--bg-control-accent-alpha`. */
68
+ /** Background of an interactive run row on hover. Defaults to `--bg-control-accent-alpha-hover-subtle`. */
55
69
  rowHoverBackground?: string;
56
70
  /** Background of an interactive run row on keyboard focus. Defaults to `rowHoverBackground`. */
57
71
  rowFocusBackground?: string;
58
72
  /** Outline color of an interactive run row on keyboard focus. Defaults to `--text-accent`. */
59
73
  rowFocusOutline?: string;
74
+ /** Header background of an expanded failed run row. Defaults to `--bg-control-accent-alpha-active`. */
75
+ rowExpandedBackground?: string;
60
76
  }
61
77
  /** Props for the {@link ScheduledTaskRunHistoryList} component. */
62
78
  export interface ScheduledTaskRunHistoryListProps {
@@ -74,7 +90,7 @@ export interface ScheduledTaskRunHistoryListProps {
74
90
  onRetry?: () => void;
75
91
  /** The `id` of the run to render with the current-run visual and accessible treatment. Omit to mark no row as current. */
76
92
  currentRunId?: string;
77
- /** 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. */
93
+ /** Called with the run when the user clicks a row whose `conversationId` is set, or the "Open conversation" link in an expanded failed run that has one. Rows without a `conversationId` never invoke this, regardless of whether it is supplied. */
78
94
  onRunClick?: (run: ScheduledTaskRunItem) => void;
79
95
  /** Localized labels. */
80
96
  labels: ScheduledTaskRunHistoryListLabels;
@@ -1 +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;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,2GAA2G;IAC3G,eAAe,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;IACxD,6HAA6H;IAC7H,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gIAAgI;IAChI,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAiC;IAChD,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gFAAgF;IAChF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kFAAkF;AAClF,MAAM,WAAW,qCAAqC;IACpD,2FAA2F;IAC3F,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,+FAA+F;IAC/F,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,6EAA6E;AAC7E,MAAM,WAAW,iCAAiC;IAChD,wDAAwD;IACxD,MAAM,CAAC,EAAE,iCAAiC,CAAC;IAC3C,kCAAkC;IAClC,UAAU,CAAC,EAAE,qCAAqC,CAAC;IACnD,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gGAAgG;IAChG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8FAA8F;IAC9F,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,mEAAmE;AACnE,MAAM,WAAW,gCAAgC;IAC/C,qFAAqF;IACrF,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,oIAAoI;IACpI,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uGAAuG;IACvG,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,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"}
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,C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B;IACvB,MAAM,CAAC,EAAE,iCAAiC,CAAC;CAC5C"}
@@ -9,11 +9,15 @@ export interface ScheduledTaskRunItem {
9
9
  id: string;
10
10
  /** Outcome of this run, driving the row's status icon. */
11
11
  status: ScheduledTaskRunStatus;
12
- /** Pre-formatted timestamp, optionally including a duration suffix, e.g. `"today at 9:01 AM (99s)"`. */
12
+ /** Pre-formatted timestamp, e.g. `"today at 9:01 AM"`. */
13
13
  timestampLabel: string;
14
+ /** Pre-formatted run duration shown after the timestamp in the secondary text color, e.g. `"(99s)"`. */
15
+ durationLabel?: string;
14
16
  /** Id of the conversation this run produced, when one exists. When set together with `onRunClick`, the row renders as interactive. */
15
17
  conversationId?: string;
16
18
  /** Whether this run's conversation is unread. When `true`, the row renders the unread-dot indicator. Defaults to `false`. */
17
19
  isUnread?: boolean;
20
+ /** Pre-formatted failure details for an `Error` run. When non-empty on an `Error` row, the row becomes expandable and reveals this text in its details; it is not part of the row's accessible name. Ignored for every other status. */
21
+ errorText?: string;
18
22
  }
19
23
  //# sourceMappingURL=scheduled-task-run-item.d.ts.map
@@ -1 +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
+ {"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,0DAA0D;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,wGAAwG;IACxG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sIAAsI;IACtI,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6HAA6H;IAC7H,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wOAAwO;IACxO,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -28,12 +28,18 @@ export interface ScheduledTasksLabels {
28
28
  sortOptions: SelectOption[];
29
29
  /** Message shown when the fetched task list is empty. */
30
30
  emptyStateLabel: string;
31
+ /** Secondary line under `emptyStateLabel`. Omitted when not set. */
32
+ emptyStateDescription?: string;
31
33
  /** Message shown when `searchQuery` filters every task out. */
32
34
  noResultsLabel: string;
35
+ /** Secondary line under `noResultsLabel`. Omitted when not set. */
36
+ noResultsDescription?: string;
33
37
  /** Message shown alongside the retry action when `error` is set. */
34
38
  errorLabel: string;
35
39
  /** Label for the retry action shown when `error` is set. */
36
40
  retryLabel: string;
41
+ /** Accessible label of the first-page loading spinner shown while `isLoading` is `true`. Defaults to `'Loading scheduled tasks'`. */
42
+ loadingAriaLabel?: string;
37
43
  /** Announced via `aria-live` while a load-more fetch is in flight (`isLoadingMore`). Optional — no announcement is made when omitted. */
38
44
  loadingMoreLabel?: string;
39
45
  loadMoreErrorLabel?: string;
@@ -72,8 +78,8 @@ export interface ScheduledTasksStyles {
72
78
  export interface ScheduledTasksProps {
73
79
  /** Localized labels. */
74
80
  labels: ScheduledTasksLabels;
75
- /** Called when the user activates the primary "create task" action. */
76
- onCreateClick: () => void;
81
+ /** Called when the user activates the primary "create task" action. Omit it to render no create button (the host withdraws the affordance without the lib knowing why). */
82
+ onCreateClick?: () => void;
77
83
  /** Current value of the toolbar search input. */
78
84
  searchQuery: string;
79
85
  /** Called when the toolbar search input value changes. */
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-tasks-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-tasks-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,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,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,yDAAyD;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,cAAc,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,yIAAyI;IACzI,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE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AC,EAAE,uBAAuB,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,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.3.0-dev.35",
4
+ "version": "1.3.0-dev.355",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -22,14 +22,14 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@tabler/icons-react": "^3.44.0",
25
+ "@tabler/icons-react": "^3.50.0",
26
26
  "@uiw/react-markdown-preview": "^5.2.1",
27
- "@uiw/react-md-editor": "^4.1.1",
28
- "@epam/ai-dial-builder-form": "1.3.0-dev.35"
27
+ "@uiw/react-md-editor": "^4.2.2",
28
+ "@epam/ai-dial-builder-form": "1.3.0-dev.355"
29
29
  },
30
30
  "peerDependencies": {
31
- "@epam/ai-dial-chat-shared": "1.3.0-dev.35",
32
- "@epam/ai-dial-ui-kit": "^0.15.3",
31
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.355",
32
+ "@epam/ai-dial-ui-kit": "^0.16.0",
33
33
  "react": "^19.2.8"
34
34
  },
35
35
  "repository": {
@@ -9,6 +9,8 @@ export declare enum ScheduledTaskRepeat {
9
9
  /** Task runs every week on `dayOfWeek` at the specified `time`. */
10
10
  Weekly = "weekly",
11
11
  /** Task runs every month on `dayOfMonth` at the specified `time`. */
12
- Monthly = "monthly"
12
+ Monthly = "monthly",
13
+ /** Task runs every week on each of `daysOfWeek` at the specified `time`. */
14
+ Custom = "custom"
13
15
  }
14
16
  //# sourceMappingURL=scheduled-task-schedule.d.ts.map
@@ -1 +1 @@
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
+ {"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;IACnB,4EAA4E;IAC5E,MAAM,WAAW;CAClB"}
@@ -0,0 +1,3 @@
1
+ /** Returns the first element whose `aria-labelledby` lists `labelId`, or `null` if none exists. */
2
+ export declare const findElementLabelledBy: (labelId: string) => Element | null;
3
+ //# sourceMappingURL=aria.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../../src/utils/aria.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,GAAI,SAAS,MAAM,KAAG,OAAO,GAAG,IAKvD,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import { CalendarValue } from '@epam/ai-dial-ui-kit';
2
2
  /** 24-hour `HH:mm` time-of-day, matching the `Calendar` time control's value shape. */
3
3
  export declare const TIME_OF_DAY_PATTERN: RegExp;
4
+ /** Separator between the date and time parts of a `datetime-local` value. */
5
+ export declare const DATETIME_LOCAL_SEPARATOR = "T";
4
6
  /** Converts the `datetime-local`-style `values.runAt` string to a `Date` for `Calendar`'s controlled value, or `null` when empty. */
5
7
  export declare const runAtToCalendarValue: (runAt: string | undefined) => Date | null;
6
8
  /** Converts `Calendar`'s `CalendarValue` back to the `datetime-local`-style string `values.runAt` expects. */
7
9
  export declare const calendarValueToRunAt: (value: CalendarValue) => string;
8
- /** Converts a `YYYY-MM-DD` date-only string (`values.startDate`/`endDate`) to a `Date` for `Calendar`'s controlled value, or `null` when empty. */
10
+ /** Converts a date-only `YYYY-MM-DD` window-boundary value to a `Date` for `Calendar`'s controlled value, or `null` when empty. */
9
11
  export declare const dateValueToCalendarValue: (dateValue: string | undefined) => Date | null;
10
12
  /** Converts `Calendar`'s `CalendarValue` back to a `YYYY-MM-DD` date-only string, distinct from `calendarValueToRunAt`'s `datetime-local` output. */
11
13
  export declare const calendarValueToDateValue: (value: CalendarValue) => string;
@@ -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,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,QAAgC,CAAC;AAEjE,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
+ {"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,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,QAAgC,CAAC;AAEjE,6EAA6E;AAC7E,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,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,mIAAmI;AACnI,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,3 +1,3 @@
1
- export { ScheduledTaskValidationErrorCode, validateScheduledTaskFormValues, validateScheduledTaskTextField, } from './scheduled-task-validation';
1
+ export { SCHEDULED_TASK_MINIMUM_LEAD_MS, ScheduledTaskValidationErrorCode, validateScheduledTaskFormValues, validateScheduledTaskTextField, } from './scheduled-task-validation';
2
2
  export type { ScheduledTaskTextField, ScheduledTaskValidationErrors, ScheduledTaskValidationOptions, } from './scheduled-task-validation';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,EAChC,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,6BAA6B,CAAC"}
@@ -19,12 +19,14 @@ export declare enum ScheduledTaskValidationErrorCode {
19
19
  TimeInvalid = "timeInvalid",
20
20
  MinuteInvalid = "minuteInvalid",
21
21
  DayOfWeekInvalid = "dayOfWeekInvalid",
22
+ /** The Custom repeat selects no weekday, an unknown one, or the same one twice. */
23
+ DaysOfWeekInvalid = "daysOfWeekInvalid",
22
24
  DayOfMonthInvalid = "dayOfMonthInvalid",
23
25
  StartDateInvalid = "startDateInvalid",
24
- /** The activity-window start date is earlier than the injected clock's local today and differs from the option's original. */
26
+ /** The activity-window start boundary is earlier than the clock — its day earlier than today for a date-only value, its instant earlier than now for a time-carrying one — and differs from the option's original. */
25
27
  StartDateInPast = "startDateInPast",
26
28
  EndDateInvalid = "endDateInvalid",
27
- /** The activity-window end date is earlier than the injected clock's local today and differs from the option's original. */
29
+ /** The activity-window end boundary is earlier than the clock — its day earlier than today for a date-only value, its instant earlier than now for a time-carrying one — and differs from the option's original. */
28
30
  EndDateInPast = "endDateInPast"
29
31
  }
30
32
  /** Field-keyed validation result for scheduled-task create and edit values. */
@@ -32,12 +34,13 @@ export type ScheduledTaskValidationErrors = Partial<Record<keyof ScheduledTaskCr
32
34
  /** Explicit clock and lead-time inputs make schedule validation deterministic. */
33
35
  export interface ScheduledTaskValidationOptions {
34
36
  now: Date;
37
+ /** Minimum time a one-shot `runAt` must lie ahead of `now`. Defaults to `SCHEDULED_TASK_MINIMUM_LEAD_MS`. */
35
38
  minimumLeadMs?: number;
36
39
  /** Explicit capability of the draft's selected model; omitted means unsupported. */
37
40
  isSkillsSupported?: boolean;
38
- /** Activity-window start date the edit form was hydrated with, in the form's local `YYYY-MM-DD` shape; an unchanged original is exempt from the past-date rule. */
41
+ /** Activity-window start boundary the edit form was hydrated with, in the hydrated boundary's shape (`YYYY-MM-DD`); an unchanged original is exempt from the past-date rule. */
39
42
  originalStartDate?: string;
40
- /** Activity-window end date the edit form was hydrated with, in the form's local `YYYY-MM-DD` shape; an unchanged original is exempt from the past-date rule. */
43
+ /** Activity-window end boundary the edit form was hydrated with, in the hydrated boundary's shape (`YYYY-MM-DD`); an unchanged original is exempt from the past-date rule. */
41
44
  originalEndDate?: string;
42
45
  }
43
46
  /** Scheduled-task form fields that carry free text with a length limit. */
@@ -48,6 +51,8 @@ export type ScheduledTaskTextField = 'displayName' | 'description' | 'prompt';
48
51
  * passes; required checks live in `validateScheduledTaskFormValues`.
49
52
  */
50
53
  export declare const validateScheduledTaskTextField: (field: ScheduledTaskTextField, value: string | undefined) => ScheduledTaskValidationErrorCode | undefined;
54
+ /** Minimum time a one-shot `runAt` must lie ahead of `now`; the default of `minimumLeadMs`. */
55
+ export declare const SCHEDULED_TASK_MINIMUM_LEAD_MS = 60000;
51
56
  /**
52
57
  * Validates only the fields active for the selected repeat cadence. This pure
53
58
  * function deliberately has no translation, DOM, network, or implicit-clock
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-task-validation.d.ts","sourceRoot":"","sources":["../../src/validation/scheduled-task-validation.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAIhG,6EAA6E;AAC7E,oBAAY,gCAAgC;IAC1C,mBAAmB,wBAAwB;IAC3C,oEAAoE;IACpE,kBAAkB,uBAAuB;IACzC,0EAA0E;IAC1E,4BAA4B,iCAAiC;IAC7D,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,oEAAoE;IACpE,aAAa,kBAAkB;IAC/B,qDAAqD;IACrD,2BAA2B,gCAAgC;IAC3D,6DAA6D;IAC7D,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IACrC,8HAA8H;IAC9H,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,4HAA4H;IAC5H,aAAa,kBAAkB;CAChC;AAED,+EAA+E;AAC/E,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,MAAM,CAAC,MAAM,6BAA6B,EAAE,gCAAgC,CAAC,CAC9E,CAAC;AAEF,kFAAkF;AAClF,MAAM,WAAW,8BAA8B;IAC7C,GAAG,EAAE,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mKAAmK;IACnK,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iKAAiK;IACjK,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2EAA2E;AAC3E,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GACzC,OAAO,sBAAsB,EAC7B,OAAO,MAAM,GAAG,SAAS,KACxB,gCAAgC,GAAG,SAoBrC,CAAC;AA+BF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,6BAA6B,EACrC,gFAMG,8BAA8B,KAChC,6BA+GF,CAAC"}
1
+ {"version":3,"file":"scheduled-task-validation.d.ts","sourceRoot":"","sources":["../../src/validation/scheduled-task-validation.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4CA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;AAC/F,eAAO,MAAM,8BAA8B,QAAS,CAAC;AAsCrD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,6BAA6B,EACrC,gFAMG,8BAA8B,KAChC,6BAuHF,CAAC"}
package/validation.js CHANGED
@@ -1,8 +1,8 @@
1
- import { c as e, t } from "./calendar-value-B41Uk26Z.js";
1
+ import { t as e, u as t } from "./calendar-value-WOdrwh6p.js";
2
2
  import { ENTITY_INSTRUCTIONS_MAX_LENGTH as n, ENTITY_NAME_MAX_LENGTH as r, exceedsMaxLength as i, hasControlCharacters as a, isSkillSelectionUnsupported as o } from "@epam/ai-dial-chat-shared";
3
3
  //#region src/validation/scheduled-task-validation.ts
4
4
  var s = /* @__PURE__ */ function(e) {
5
- return e.DisplayNameRequired = "displayNameRequired", e.DisplayNameTooLong = "displayNameTooLong", e.DisplayNameControlCharacters = "displayNameControlCharacters", e.ModelRequired = "modelRequired", e.PromptRequired = "promptRequired", e.PromptTooLong = "promptTooLong", e.InstructionsOrSkillRequired = "instructionsOrSkillRequired", e.SkillUnsupported = "skillUnsupported", e.DescriptionTooLong = "descriptionTooLong", e.RunAtInvalid = "runAtInvalid", e.TimeInvalid = "timeInvalid", e.MinuteInvalid = "minuteInvalid", e.DayOfWeekInvalid = "dayOfWeekInvalid", e.DayOfMonthInvalid = "dayOfMonthInvalid", e.StartDateInvalid = "startDateInvalid", e.StartDateInPast = "startDateInPast", e.EndDateInvalid = "endDateInvalid", e.EndDateInPast = "endDateInPast", e;
5
+ return e.DisplayNameRequired = "displayNameRequired", e.DisplayNameTooLong = "displayNameTooLong", e.DisplayNameControlCharacters = "displayNameControlCharacters", e.ModelRequired = "modelRequired", e.PromptRequired = "promptRequired", e.PromptTooLong = "promptTooLong", e.InstructionsOrSkillRequired = "instructionsOrSkillRequired", e.SkillUnsupported = "skillUnsupported", e.DescriptionTooLong = "descriptionTooLong", e.RunAtInvalid = "runAtInvalid", e.TimeInvalid = "timeInvalid", e.MinuteInvalid = "minuteInvalid", e.DayOfWeekInvalid = "dayOfWeekInvalid", e.DaysOfWeekInvalid = "daysOfWeekInvalid", e.DayOfMonthInvalid = "dayOfMonthInvalid", e.StartDateInvalid = "startDateInvalid", e.StartDateInPast = "startDateInPast", e.EndDateInvalid = "endDateInvalid", e.EndDateInPast = "endDateInPast", e;
6
6
  }({}), c = (e, t) => {
7
7
  let o = t?.trim() ?? "";
8
8
  switch (e) {
@@ -10,25 +10,25 @@ var s = /* @__PURE__ */ function(e) {
10
10
  case "description": return i(o, 500) ? "descriptionTooLong" : void 0;
11
11
  case "prompt": return i(o, n) ? "promptTooLong" : void 0;
12
12
  }
13
- }, l = 6e4, u = /^(?:[0-9]|[1-5][0-9])$/, d = /^[0-6]$/, f = /^(?:[1-9]|[12][0-9]|3[01])$/, p = /^\d{4}-\d{2}-\d{2}$/, m = (e) => {
13
+ }, l = 6e4, u = /^(?:[0-9]|[1-5][0-9])$/, d = /^[0-6]$/, f = /^(?:[1-9]|[12][0-9]|3[01])$/, p = /^\d{4}-\d{2}-\d{2}$/, m = (e) => !!e?.length && e.every((e) => d.test(e)) && new Set(e).size === e.length, h = (e) => {
14
14
  if (!p.test(e)) return !1;
15
15
  let [t, n, r] = e.split("-").map(Number), i = new Date(t, n - 1, r);
16
16
  return i.getFullYear() === t && i.getMonth() === n - 1 && i.getDate() === r;
17
- }, h = (e) => {
17
+ }, g = (e) => {
18
18
  let t = new Date(e).getTime();
19
19
  return Number.isFinite(t);
20
- }, g = (e) => String(e).padStart(2, "0"), _ = (e) => `${e.getFullYear()}-${g(e.getMonth() + 1)}-${g(e.getDate())}`, v = (n, { now: r, minimumLeadMs: i = l, isSkillsSupported: a, originalStartDate: s, originalEndDate: p }) => {
21
- let g = {}, v = (e, t) => {
20
+ }, _ = (e) => String(e).padStart(2, "0"), v = (e) => `${e.getFullYear()}-${_(e.getMonth() + 1)}-${_(e.getDate())}`, y = (e, t) => e < t, b = (n, { now: r, minimumLeadMs: i = l, isSkillsSupported: a, originalStartDate: s, originalEndDate: p }) => {
21
+ let _ = {}, b = (e, t) => {
22
22
  let n = c(e, t);
23
- n && (g[e] = n);
23
+ n && (_[e] = n);
24
24
  };
25
- if (n.displayName.trim() ? v("displayName", n.displayName) : g.displayName = "displayNameRequired", n.modelId.trim() || (g.modelId = "modelRequired"), !n.prompt.trim() && !n.skillUrls?.length ? g.prompt = "instructionsOrSkillRequired" : v("prompt", n.prompt), n.skillUrls?.some((e) => o(e, a)) && (g.skillUrls = "skillUnsupported"), v("description", n.description), n.repeat === e.OneTime) {
25
+ if (n.displayName.trim() ? b("displayName", n.displayName) : _.displayName = "displayNameRequired", n.modelId.trim() || (_.modelId = "modelRequired"), !n.prompt.trim() && !n.skillUrls?.length ? _.prompt = "instructionsOrSkillRequired" : b("prompt", n.prompt), n.skillUrls?.some((e) => o(e, a)) && (_.skillUrls = "skillUnsupported"), b("description", n.description), n.repeat === t.OneTime) {
26
26
  let e = n.runAt ? new Date(n.runAt).getTime() : NaN;
27
- return (!n.runAt || !h(n.runAt) || !Number.isFinite(e) || e < r.getTime() + i) && (g.runAt = "runAtInvalid"), g;
27
+ return (!n.runAt || !g(n.runAt) || !Number.isFinite(e) || e < r.getTime() + i) && (_.runAt = "runAtInvalid"), _;
28
28
  }
29
- n.repeat === e.Hourly ? u.test(n.minute ?? "") || (g.minute = "minuteInvalid") : t.test(n.time) || (g.time = "timeInvalid"), n.repeat === e.Weekly && !d.test(n.dayOfWeek ?? "") && (g.dayOfWeek = "dayOfWeekInvalid"), n.repeat === e.Monthly && !f.test(n.dayOfMonth ?? "") && (g.dayOfMonth = "dayOfMonthInvalid"), n.startDate && !m(n.startDate) && (g.startDate = "startDateInvalid"), n.endDate && !m(n.endDate) && (g.endDate = "endDateInvalid"), n.startDate && n.endDate && m(n.startDate) && m(n.endDate) && n.endDate < n.startDate && (g.endDate = "endDateInvalid");
30
- let y = _(r);
31
- return n.startDate && n.startDate !== s && m(n.startDate) && n.startDate < y && (g.startDate = "startDateInPast"), n.endDate && n.endDate !== p && m(n.endDate) && n.endDate < y && (g.endDate = "endDateInPast"), g;
29
+ n.repeat === t.Hourly ? u.test(n.minute ?? "") || (_.minute = "minuteInvalid") : e.test(n.time) || (_.time = "timeInvalid"), n.repeat === t.Weekly && !d.test(n.dayOfWeek ?? "") && (_.dayOfWeek = "dayOfWeekInvalid"), n.repeat === t.Custom && !m(n.daysOfWeek) && (_.daysOfWeek = "daysOfWeekInvalid"), n.repeat === t.Monthly && !f.test(n.dayOfMonth ?? "") && (_.dayOfMonth = "dayOfMonthInvalid"), n.startDate && !h(n.startDate) && (_.startDate = "startDateInvalid"), n.endDate && !h(n.endDate) && (_.endDate = "endDateInvalid"), n.startDate && n.endDate && h(n.startDate) && h(n.endDate) && n.endDate < n.startDate && (_.endDate = "endDateInvalid");
30
+ let x = v(r);
31
+ return n.startDate && n.startDate !== s && h(n.startDate) && y(n.startDate, x) && (_.startDate = "startDateInPast"), n.endDate && n.endDate !== p && h(n.endDate) && y(n.endDate, x) && (_.endDate = "endDateInPast"), _;
32
32
  };
33
33
  //#endregion
34
- export { s as ScheduledTaskValidationErrorCode, v as validateScheduledTaskFormValues, c as validateScheduledTaskTextField };
34
+ export { l as SCHEDULED_TASK_MINIMUM_LEAD_MS, s as ScheduledTaskValidationErrorCode, b as validateScheduledTaskFormValues, c as validateScheduledTaskTextField };
@@ -1,24 +0,0 @@
1
- //#region src/constants/scheduled-task-create-form.ts
2
- var e = 500, t = /* @__PURE__ */ function(e) {
3
- return e.OneTime = "oneTime", e.Hourly = "hourly", e.Daily = "daily", e.Weekly = "weekly", e.Monthly = "monthly", e;
4
- }({}), n = (e) => String(e).padStart(2, "0"), r = /^([01]\d|2[0-3]):([0-5]\d)$/, i = (e) => e ? new Date(e) : null, a = (e) => {
5
- if (e == null) return "";
6
- let t = e instanceof Date ? e : new Date(e);
7
- return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`;
8
- }, o = (e) => {
9
- if (!e) return null;
10
- let [t, n, r] = e.split("-").map(Number);
11
- return new Date(t, n - 1, r);
12
- }, s = (e) => {
13
- if (e == null) return "";
14
- let t = e instanceof Date ? e : new Date(e);
15
- return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}`;
16
- }, c = (e) => {
17
- let t = Number(e);
18
- return e && Number.isFinite(t) ? String(t + 1) : null;
19
- }, l = (e) => {
20
- let t = typeof e == "string" ? Number(e) : NaN;
21
- return Number.isFinite(t) ? String(t - 1) : "";
22
- };
23
- //#endregion
24
- export { o as a, t as c, a as i, e as l, s as n, c as o, l as r, i as s, r as t };