@epam/ai-dial-scheduled-tasks 1.1.0-dev.113 → 1.1.0-dev.114

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduledTaskCardSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AAItG;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAoCxE,CAAC"}
1
+ {"version":3,"file":"ScheduledTaskCardSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AAStG;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CA0CxE,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,2 @@
1
- ._title_14goq_1{color:var(--stc-title-text,var(--text-primary,#161b2d))}._description_14goq_5{color:var(--stc-desc-text,var(--text-control-disable,#6b7280))}._schedulePill_14goq_9{background:var(--stc-pill-bg,var(--bg-layer-sunken,#eef1f7));border-color:var(--stc-pill-border,var(--stroke-tertiary,#e0e6f0))}._scheduleLabel_14goq_14{color:var(--stc-schedule-label-text,var(--text-control-disable,#6b7280))}._locationLabel_14goq_18{color:var(--stc-location-label-text,var(--text-secondary,#6b7280))}._locationLeaf_14goq_22{color:var(--stc-location-leaf-text,var(--text-secondary,#6b7280))}._newBadge_14goq_26{background:var(--stc-new-badge-bg,var(--bg-control-accent,#124ace));color:var(--stc-new-badge-text,var(--text-control-permanent,#fcfcfc))}._locationDivider_14goq_31{border-top:1px solid var(--stc-location-divider-border,var(--stroke-tertiary,#e0e6f0))}._countBadge_5ysac_1{background:var(--sts-badge-bg,var(--bg-layer-raised,#fcfcfc));color:var(--sts-badge-text,var(--text-secondary,#6b7280))}._container_sac6a_1{background:var(--st-bg,var(--bg-layer-base,#f5f7fa))}._subtitle_sac6a_5{color:var(--st-subtitle-text,var(--text-secondary,#6b7280))}._sortButton_sac6a_9{color:var(--st-sort-text,var(--text-accent,#1d4ed8))}._container_1wply_1{background:var(--stcf-bg,var(--bg-layer-base,#f5f7fa))}._header_1wply_5{border-bottom-color:var(--stcf-header-border,var(--stroke-tertiary,#e0e6f0))}._detailsColumn_1wply_9{border-inline-end-color:var(--stcf-details-border,var(--stroke-tertiary,#e0e6f0))}._sectionSubtitle_1wply_13{color:var(--stcf-subtitle-text,var(--text-secondary,#6b7280))}._instructionsError_1wply_17{color:var(--stcf-error-text,var(--text-error,#ae2f2f))}
1
+ ._title_14goq_1{color:var(--stc-title-text,var(--text-primary,#161b2d))}._description_14goq_5{color:var(--stc-desc-text,var(--text-control-disable,#6b7280))}._schedulePill_14goq_9{background:var(--stc-pill-bg,var(--bg-layer-sunken,#eef1f7));border-color:var(--stc-pill-border,var(--stroke-tertiary,#e0e6f0))}._scheduleLabel_14goq_14{color:var(--stc-schedule-label-text,var(--text-control-disable,#6b7280))}._locationLabel_14goq_18{color:var(--stc-location-label-text,var(--text-secondary,#6b7280))}._locationLeaf_14goq_22{color:var(--stc-location-leaf-text,var(--text-secondary,#6b7280))}._newBadge_14goq_26{background:var(--stc-new-badge-bg,var(--bg-control-accent,#124ace));color:var(--stc-new-badge-text,var(--text-control-permanent,#fcfcfc))}._locationDivider_14goq_31{border-top:1px solid var(--stc-location-divider-border,var(--stroke-tertiary,#e0e6f0))}._card_1a43j_1{--stcs-skeleton-bg:var(--bg-layer-4,#d1dbea)}._countBadge_5ysac_1{background:var(--sts-badge-bg,var(--bg-layer-raised,#fcfcfc));color:var(--sts-badge-text,var(--text-secondary,#6b7280))}._container_sac6a_1{background:var(--st-bg,var(--bg-layer-base,#f5f7fa))}._subtitle_sac6a_5{color:var(--st-subtitle-text,var(--text-secondary,#6b7280))}._sortButton_sac6a_9{color:var(--st-sort-text,var(--text-accent,#1d4ed8))}._container_1wply_1{background:var(--stcf-bg,var(--bg-layer-base,#f5f7fa))}._header_1wply_5{border-bottom-color:var(--stcf-header-border,var(--stroke-tertiary,#e0e6f0))}._detailsColumn_1wply_9{border-inline-end-color:var(--stcf-details-border,var(--stroke-tertiary,#e0e6f0))}._sectionSubtitle_1wply_13{color:var(--stcf-subtitle-text,var(--text-secondary,#6b7280))}._instructionsError_1wply_17{color:var(--stcf-error-text,var(--text-error,#ae2f2f))}
2
2
  /*$vite$:1*/
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { ScheduledTaskCardGrid } from './components/ScheduledTaskCardGrid/Schedu
8
8
  export type { ScheduledTaskCardGridProps, ScheduledTaskCardGridLabels, } from './models/scheduled-task-card-grid-props';
9
9
  export { ScheduledTaskCardSkeleton } from './components/ScheduledTaskCardSkeleton/ScheduledTaskCardSkeleton';
10
10
  export type { ScheduledTaskCardSkeletonProps, ScheduledTaskCardSkeletonStyles, ScheduledTaskCardSkeletonColors, } from './models/scheduled-task-card-skeleton-props';
11
- export type { ScheduledTaskItem, ScheduledTaskSortValues, } from './models/scheduled-task-item';
11
+ export type { ScheduledTaskItem } from './models/scheduled-task-item';
12
12
  export { ScheduledTaskSectionKey } from './models/scheduled-task-item';
13
13
  export { ScheduledTasksSortKey } from './types/scheduled-tasks-sort-key';
14
14
  export { ScheduledTaskCreateForm } from './components/ScheduledTaskCreateForm/ScheduledTaskCreateForm';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA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sB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC"}
package/index.js CHANGED
@@ -108,42 +108,40 @@ var R = /* @__PURE__ */ function(e) {
108
108
  })
109
109
  ]
110
110
  });
111
- }, V = [
111
+ }, V = { card: "_card_1a43j_1" }, H = [
112
112
  "100%",
113
113
  "100%",
114
114
  "61%"
115
- ], H = ({ styles: e }) => {
116
- let t = e?.colors?.skeletonColor ?? "var(--bg-layer-4)";
117
- return /* @__PURE__ */ L(c, {
118
- "aria-hidden": !0,
119
- className: "h-[232px]",
120
- children: [
121
- /* @__PURE__ */ I(f, {
122
- variant: p.Rectangular,
123
- width: "60%",
124
- height: "20px",
125
- color: t,
126
- className: "shrink-0"
127
- }),
128
- /* @__PURE__ */ I("div", {
129
- className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
130
- children: V.map((e, n) => /* @__PURE__ */ I(f, {
131
- variant: p.Rectangular,
132
- width: e,
133
- height: "16px",
134
- color: t
135
- }, n))
136
- }),
137
- /* @__PURE__ */ I(f, {
115
+ ], U = "var(--stcs-skeleton-bg)", W = ({ styles: e }) => /* @__PURE__ */ L(c, {
116
+ "aria-hidden": !0,
117
+ style: t({ "--stcs-skeleton-bg": e?.colors?.skeletonColor }),
118
+ className: n("h-[232px]", V.card),
119
+ children: [
120
+ /* @__PURE__ */ I(f, {
121
+ variant: p.Rectangular,
122
+ width: "60%",
123
+ height: "20px",
124
+ color: U,
125
+ className: "shrink-0"
126
+ }),
127
+ /* @__PURE__ */ I("div", {
128
+ className: "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden",
129
+ children: H.map((e, t) => /* @__PURE__ */ I(f, {
138
130
  variant: p.Rectangular,
139
- width: "110px",
140
- height: "28px",
141
- color: t,
142
- className: "shrink-0 rounded-lg"
143
- })
144
- ]
145
- });
146
- }, U = ({ items: e, searchQuery: t, onEdit: n, onRunNow: r, onDelete: i, labels: a, cardStyles: o, trailingSkeletonCount: s = 0, skeletonStyles: c }) => /* @__PURE__ */ L("div", {
131
+ width: e,
132
+ height: "16px",
133
+ color: U
134
+ }, t))
135
+ }),
136
+ /* @__PURE__ */ I(f, {
137
+ variant: p.Rectangular,
138
+ width: "110px",
139
+ height: "28px",
140
+ color: U,
141
+ className: "shrink-0 rounded-lg"
142
+ })
143
+ ]
144
+ }), G = ({ items: e, searchQuery: t, onEdit: n, onRunNow: r, onDelete: i, labels: a, cardStyles: o, trailingSkeletonCount: s = 0, skeletonStyles: c }) => /* @__PURE__ */ L("div", {
147
145
  className: "grid grid-cols-1 gap-5 desktop:grid-cols-3",
148
146
  children: [e.map((e) => /* @__PURE__ */ I(B, {
149
147
  item: e,
@@ -153,8 +151,8 @@ var R = /* @__PURE__ */ function(e) {
153
151
  onDelete: i,
154
152
  labels: a,
155
153
  styles: o
156
- }, e.id)), Array.from({ length: s }, (e, t) => /* @__PURE__ */ I(H, { styles: c }, `skeleton-${t}`))]
157
- }), W = { countBadge: "_countBadge_5ysac_1" }, G = ({ title: e, count: r, children: i, styles: a }) => {
154
+ }, e.id)), Array.from({ length: s }, (e, t) => /* @__PURE__ */ I(W, { styles: c }, `skeleton-${t}`))]
155
+ }), K = { countBadge: "_countBadge_5ysac_1" }, q = ({ title: e, count: r, children: i, styles: a }) => {
158
156
  let o = a?.typography?.titleClassName ?? "dial-small-semi-text", s = a?.typography?.countBadgeClassName ?? "dial-tiny-text", c = t({
159
157
  "--sts-badge-bg": a?.colors?.countBadgeBackground,
160
158
  "--sts-badge-text": a?.colors?.countBadgeText
@@ -169,22 +167,22 @@ var R = /* @__PURE__ */ function(e) {
169
167
  className: o,
170
168
  children: e
171
169
  }), /* @__PURE__ */ I("span", {
172
- className: n("rounded-full px-2 py-0.5", s, W.countBadge),
170
+ className: n("rounded-full px-2 py-0.5", s, K.countBadge),
173
171
  children: r
174
172
  })]
175
173
  }), i]
176
174
  });
177
- }, K = {
175
+ }, J = {
178
176
  container: "_container_sac6a_1",
179
177
  subtitle: "_subtitle_sac6a_5",
180
178
  sortButton: "_sortButton_sac6a_9"
181
179
  }, re = [R.Shared, R.MyTasks], ie = (e, t, n, r, i, a) => {
182
180
  if (!e) return t ? a.loadingMoreLabel : n ? a.errorLabel : r > 0 ? `${r}` : i ? a.noResultsLabel : a.emptyStateLabel;
183
- }, q = (e) => {
181
+ }, ae = (e) => {
184
182
  if (!e || e === document.body) return null;
185
183
  let { overflow: t, overflowY: n } = getComputedStyle(e);
186
- return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : q(e.parentElement);
187
- }, J = ({ labels: r, onCreateClick: a, searchQuery: o, onSearchQueryChange: s, sortKey: c, onSortChange: d, items: f, isLoading: p = !1, error: h, onRetry: _, hasMore: v = !1, isLoadingMore: y = !1, skeletonCount: b = 6, onLoadMore: x, onEdit: C, onRunNow: O, onDelete: k, styles: A }) => {
184
+ return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : ae(e.parentElement);
185
+ }, oe = ({ labels: r, onCreateClick: a, searchQuery: o, onSearchQueryChange: s, sortKey: c, onSortChange: d, items: f, isLoading: p = !1, error: h, onRetry: _, hasMore: v = !1, isLoadingMore: y = !1, skeletonCount: b = 6, onLoadMore: x, onEdit: C, onRunNow: O, onDelete: k, styles: A }) => {
188
186
  let { colors: M, typography: N, emptyStateIconSize: P = 48 } = A ?? {}, F = N?.titleClassName ?? "dial-h1-text", z = N?.subtitleClassName ?? "dial-body-text", B = t({
189
187
  "--st-bg": M?.background,
190
188
  "--st-subtitle-text": M?.subtitleText,
@@ -196,11 +194,11 @@ var R = /* @__PURE__ */ function(e) {
196
194
  title: e[t],
197
195
  items: f.filter((e) => e.sectionKey === t)
198
196
  })).filter((e) => e.items.length > 0);
199
- }, [f, r.sharedSectionTitle]), W = ie(p, y, !!h, f.length, o.trim().length > 0, r), J = ne(null);
197
+ }, [f, r.sharedSectionTitle]), U = ie(p, y, !!h, f.length, o.trim().length > 0, r), W = ne(null);
200
198
  ee(() => {
201
- let e = J.current;
199
+ let e = W.current;
202
200
  if (!e || !x) return;
203
- let t = q(e.parentElement);
201
+ let t = ae(e.parentElement);
204
202
  if (!t) return;
205
203
  let n = () => {
206
204
  if (y || p || !v) return;
@@ -214,12 +212,12 @@ var R = /* @__PURE__ */ function(e) {
214
212
  p,
215
213
  x
216
214
  ]);
217
- let ae = () => {
215
+ let K = () => {
218
216
  if (p) return /* @__PURE__ */ I(m, {});
219
217
  if (h) return /* @__PURE__ */ L("div", {
220
218
  className: "flex flex-col items-center gap-3",
221
219
  children: [/* @__PURE__ */ I("p", {
222
- className: n(z, K.subtitle),
220
+ className: n(z, J.subtitle),
223
221
  children: r.errorLabel
224
222
  }), /* @__PURE__ */ I(g, {
225
223
  label: r.retryLabel,
@@ -227,7 +225,7 @@ var R = /* @__PURE__ */ function(e) {
227
225
  })]
228
226
  });
229
227
  if (f.length === 0) return o.trim() ? /* @__PURE__ */ I("p", {
230
- className: n(z, K.subtitle),
228
+ className: n(z, J.subtitle),
231
229
  children: r.noResultsLabel
232
230
  }) : /* @__PURE__ */ I(e, {
233
231
  icon: /* @__PURE__ */ I(T, {
@@ -240,10 +238,10 @@ var R = /* @__PURE__ */ function(e) {
240
238
  let t = H.length - 1;
241
239
  return /* @__PURE__ */ L("div", {
242
240
  className: "flex w-full flex-col gap-6",
243
- children: [H.map((e, n) => /* @__PURE__ */ I(G, {
241
+ children: [H.map((e, n) => /* @__PURE__ */ I(q, {
244
242
  title: e.title,
245
243
  count: e.items.length,
246
- children: /* @__PURE__ */ I(U, {
244
+ children: /* @__PURE__ */ I(G, {
247
245
  items: e.items,
248
246
  searchQuery: o,
249
247
  onEdit: C,
@@ -254,7 +252,7 @@ var R = /* @__PURE__ */ function(e) {
254
252
  skeletonStyles: { colors: { skeletonColor: M?.skeletonColor } }
255
253
  })
256
254
  }, e.key)), /* @__PURE__ */ I("div", {
257
- ref: J,
255
+ ref: W,
258
256
  "aria-hidden": !0,
259
257
  className: "h-px w-full"
260
258
  })]
@@ -262,7 +260,7 @@ var R = /* @__PURE__ */ function(e) {
262
260
  }, oe = p || !!h || f.length === 0;
263
261
  return /* @__PURE__ */ L("div", {
264
262
  style: B,
265
- className: n("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", K.container),
263
+ className: n("flex h-full w-full flex-col gap-6 overflow-y-auto px-8 py-4", J.container),
266
264
  children: [
267
265
  /* @__PURE__ */ L("div", {
268
266
  className: "flex items-start justify-between gap-4",
@@ -272,7 +270,7 @@ var R = /* @__PURE__ */ function(e) {
272
270
  className: n("truncate", F),
273
271
  children: r.title
274
272
  }), /* @__PURE__ */ I("p", {
275
- className: n("mt-1", z, K.subtitle),
273
+ className: n("mt-1", z, J.subtitle),
276
274
  children: r.subtitle
277
275
  })]
278
276
  }), /* @__PURE__ */ I(S, {
@@ -323,7 +321,7 @@ var R = /* @__PURE__ */ function(e) {
323
321
  children: /* @__PURE__ */ I(g, {
324
322
  label: V,
325
323
  "aria-label": r.sortLabel,
326
- className: n("rounded-[4px]", K.sortButton),
324
+ className: n("rounded-[4px]", J.sortButton),
327
325
  iconBefore: /* @__PURE__ */ I(w, {
328
326
  size: 20,
329
327
  "aria-hidden": !0
@@ -339,28 +337,28 @@ var R = /* @__PURE__ */ function(e) {
339
337
  role: "status",
340
338
  "aria-live": "polite",
341
339
  className: "sr-only",
342
- children: W
340
+ children: U
343
341
  }),
344
342
  /* @__PURE__ */ I("div", {
345
343
  className: n("mx-auto flex size-full w-full max-w-[1180px] flex-col", oe && "items-center justify-center"),
346
- children: ae()
344
+ children: K()
347
345
  })
348
346
  ]
349
347
  });
350
- }, ae = /* @__PURE__ */ function(e) {
348
+ }, se = /* @__PURE__ */ function(e) {
351
349
  return e.FirstToRun = "firstToRun", e.LastToRun = "lastToRun", e.Newest = "newest", e.NameAZ = "nameAZ", e;
352
- }({}), oe = 500, Y = /* @__PURE__ */ function(e) {
350
+ }({}), ce = 500, Y = /* @__PURE__ */ function(e) {
353
351
  return e.Once = "once", e.Recurring = "recurring", e;
354
352
  }({}), X = /* @__PURE__ */ function(e) {
355
353
  return e.Daily = "daily", e.Weekly = "weekly", e.Monthly = "monthly", e;
356
- }({}), Z = (e) => String(e).padStart(2, "0"), se = (e) => e ? new Date(e) : null, ce = (e) => {
354
+ }({}), Z = (e) => String(e).padStart(2, "0"), le = (e) => e ? new Date(e) : null, ue = (e) => {
357
355
  if (e == null) return "";
358
356
  let t = e instanceof Date ? e : new Date(e);
359
357
  return Number.isNaN(t.getTime()) ? "" : `${t.getFullYear()}-${Z(t.getMonth() + 1)}-${Z(t.getDate())}T${Z(t.getHours())}:${Z(t.getMinutes())}`;
360
- }, le = (e) => {
358
+ }, de = (e) => {
361
359
  let t = Number(e);
362
360
  return e && Number.isFinite(t) ? String(t + 1) : null;
363
- }, ue = (e) => {
361
+ }, fe = (e) => {
364
362
  let t = typeof e == "string" ? Number(e) : NaN;
365
363
  return Number.isFinite(t) ? String(t - 1) : "";
366
364
  }, Q = {
@@ -369,7 +367,7 @@ var R = /* @__PURE__ */ function(e) {
369
367
  detailsColumn: "_detailsColumn_1wply_9",
370
368
  sectionSubtitle: "_sectionSubtitle_1wply_13",
371
369
  instructionsError: "_instructionsError_1wply_17"
372
- }, $ = (e) => `${e} *`, de = P(async () => ({ default: (await b()).DialMarkdownEditor })), fe = ({ labels: e, values: i, errors: c, modelOptions: u, onFieldChange: f, onBack: p, onCancel: h, onSubmit: g, isSubmitting: v = !1, markdownEditorTheme: y, styles: b }) => {
370
+ }, $ = (e) => `${e} *`, pe = P(async () => ({ default: (await b()).DialMarkdownEditor })), me = ({ labels: e, values: i, errors: c, modelOptions: u, onFieldChange: f, onBack: p, onCancel: h, onSubmit: g, isSubmitting: v = !1, markdownEditorTheme: y, styles: b }) => {
373
371
  let { colors: w, typography: T } = b ?? {}, E = T?.titleClassName ?? "dial-h1-text", D = T?.sectionTitleClassName ?? "dial-body-semi-text", O = T?.sectionSubtitleClassName ?? "dial-tiny-text", k = T?.scheduleSectionLabelClassName ?? "dial-body-semi-text mb-1", A = T?.instructionsErrorClassName ?? "dial-small-text", j = t({
374
372
  "--stcf-bg": w?.background,
375
373
  "--stcf-header-border": w?.headerBorder,
@@ -483,8 +481,8 @@ var R = /* @__PURE__ */ function(e) {
483
481
  children: [/* @__PURE__ */ I(o, {
484
482
  id: "scheduled-task-run-at",
485
483
  mode: s.DateTime,
486
- value: se(i.runAt),
487
- onChange: (e) => f("runAt", ce(e)),
484
+ value: le(i.runAt),
485
+ onChange: (e) => f("runAt", ue(e)),
488
486
  label: $(e.runAtLabel),
489
487
  invalid: !!c.runAt
490
488
  }), c.runAt && /* @__PURE__ */ I("p", {
@@ -521,8 +519,8 @@ var R = /* @__PURE__ */ function(e) {
521
519
  children: [/* @__PURE__ */ I(o, {
522
520
  id: "scheduled-task-day-of-week",
523
521
  mode: s.Weekday,
524
- value: le(i.dayOfWeek),
525
- onChange: (e) => f("dayOfWeek", ue(e)),
522
+ value: de(i.dayOfWeek),
523
+ onChange: (e) => f("dayOfWeek", fe(e)),
526
524
  label: $(e.dayOfWeekLabel),
527
525
  invalid: !!c.dayOfWeek
528
526
  }), c.dayOfWeek && /* @__PURE__ */ I("p", {
@@ -570,7 +568,7 @@ var R = /* @__PURE__ */ function(e) {
570
568
  }),
571
569
  /* @__PURE__ */ I(N, {
572
570
  fallback: /* @__PURE__ */ I(m, {}),
573
- children: /* @__PURE__ */ I(de, {
571
+ children: /* @__PURE__ */ I(pe, {
574
572
  value: i.prompt,
575
573
  onChange: (e) => f("prompt", e),
576
574
  height: 480,
@@ -593,4 +591,4 @@ var R = /* @__PURE__ */ function(e) {
593
591
  });
594
592
  };
595
593
  //#endregion
596
- export { oe as DESCRIPTION_MAX_LENGTH, B as ScheduledTaskCard, U as ScheduledTaskCardGrid, H as ScheduledTaskCardSkeleton, fe as ScheduledTaskCreateForm, X as ScheduledTaskFrequency, Y as ScheduledTaskScheduleType, G as ScheduledTaskSection, R as ScheduledTaskSectionKey, J as ScheduledTasks, ae as ScheduledTasksSortKey };
594
+ export { ce as DESCRIPTION_MAX_LENGTH, B as ScheduledTaskCard, G as ScheduledTaskCardGrid, W as ScheduledTaskCardSkeleton, me as ScheduledTaskCreateForm, X as ScheduledTaskFrequency, Y as ScheduledTaskScheduleType, q as ScheduledTaskSection, R as ScheduledTaskSectionKey, oe as ScheduledTasks, se as ScheduledTasksSortKey };
@@ -33,7 +33,7 @@ export interface ScheduledTaskCardColors {
33
33
  locationLeafText?: string;
34
34
  /** "New" badge background. Fallback: `--controls-bg-accent-primary`. */
35
35
  newBadgeBackground?: string;
36
- /** "New" badge text color. Fallback: `--controls-text-permanent`. */
36
+ /** "New" badge text color. Fallback: `--text-control-permanent`. */
37
37
  newBadgeText?: string;
38
38
  /** Divider border color above the location breadcrumb. Fallback: `--stroke-tertiary`. */
39
39
  locationDividerBorder?: string;
@@ -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,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oGAAoG;IACpG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iEAAiE;IACjE,kBAAkB,CAAC,EAA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AAK,IAAI,CAAC;IAChC,wBAAwB;IACxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"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,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oGAAoG;IACpG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0GAA0G;IAC1G,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6GAA6G;IAC7G,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,yFAAyF;IACzF,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,wBAAwB;IACxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -5,13 +5,6 @@ export declare enum ScheduledTaskSectionKey {
5
5
  /** Tasks owned by the current user. */
6
6
  MyTasks = "myTasks"
7
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
8
  /** 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
9
  export interface ScheduledTaskItem {
17
10
  /** Stable identifier for this task. */
@@ -28,7 +21,5 @@ export interface ScheduledTaskItem {
28
21
  isNew?: boolean;
29
22
  /** Section this item is grouped under in the card grid. */
30
23
  sectionKey: ScheduledTaskSectionKey;
31
- /** Values used to sort this item; see {@link ScheduledTaskSortValues}. */
32
- sortValues: ScheduledTaskSortValues;
33
24
  }
34
25
  //# 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,6EAA6E;AAC7E,oBAAY,uBAAuB;IACjC,8EAA8E;IAC9E,MAAM,WAAW;IACjB,uCAAuC;IACvC,OAAO,YAAY;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;CACrC"}
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.113",
4
+ "version": "1.1.0-dev.114",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,8 +17,8 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.1.0-dev.113",
21
- "@epam/ai-dial-kit": "1.1.0-dev.113",
20
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.114",
21
+ "@epam/ai-dial-kit": "1.1.0-dev.114",
22
22
  "@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
23
23
  "@tabler/icons-react": "^3.44.0",
24
24
  "react": "^19.0.0"
@@ -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"}