@orangelogic/design-system 2.53.0 → 2.54.0-ci.2

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.
@@ -4,14 +4,14 @@ import { C as pt, s as ht, a as ut, b as Q } from "./tree.82OigIgE.js";
4
4
  import { n as p, C as Y, x as r, c as K, i as gt, E as bt } from "./custom-element.vnXBMQxc.js";
5
5
  import { c as xt } from "./component.styles.CI-v8BZa.js";
6
6
  import { L as Z } from "./i18n.C3Z8Xe8q.js";
7
- import { k as $t, h as mt, i as ft, w as L, j as wt, l as St, f as It, g as Ct, d as At, m as Dt, n as Tt } from "./watch.BCJD77bD.js";
7
+ import { k as $t, h as mt, i as _t, w as L, j as wt, l as St, f as It, g as Ct, d as At, m as Dt, n as Tt } from "./watch.BCJD77bD.js";
8
8
  import { p as P } from "./string.D6poLUEC.js";
9
9
  import { r as x } from "./state.Cw55xXlb.js";
10
10
  import { e as R } from "./query.BBf1UFkC.js";
11
11
  import { e as A } from "./class-map.CoZTSvbM.js";
12
12
  import { c as F } from "./repeat.CauKaXyy.js";
13
13
  import { n as g } from "./when.Dr1es41R.js";
14
- import { a as zt, i as _t, c as Et, b as tt } from "./_baseUniq.BUihBa8c.js";
14
+ import { a as zt, i as ft, c as Et, b as tt } from "./_baseUniq.BUihBa8c.js";
15
15
  import Lt from "../components/avatar.js";
16
16
  import { C as Rt } from "./button.CiWlWCNb.js";
17
17
  import { C as Pt } from "./dialog.C28qzMSQ.js";
@@ -75,7 +75,7 @@ function re(t, e, i, o) {
75
75
  }
76
76
  function ne(t, e) {
77
77
  return function(i, o) {
78
- var s = ft(i) ? te : re, a = e ? e() : {};
78
+ var s = _t(i) ? te : re, a = e ? e() : {};
79
79
  return s(i, t, zt(o), a);
80
80
  };
81
81
  }
@@ -142,7 +142,7 @@ const le = {
142
142
  return { data: [], totalCount: 0 };
143
143
  let h = d;
144
144
  h.endsWith("/") && (h = h.slice(0, -1));
145
- const _ = de.GET_CONTENT, f = [
145
+ const f = de.GET_CONTENT, _ = [
146
146
  ["Token", u],
147
147
  [
148
148
  "extraFilters",
@@ -162,8 +162,8 @@ const le = {
162
162
  ["seeThru", a?.trim() || l ? "true" : "false"],
163
163
  ["limit", s.toString()],
164
164
  ["start", m.toString()]
165
- ], z = new URL(`${h}${_}`);
166
- f.forEach(([S, E]) => {
165
+ ], z = new URL(`${h}${f}`);
166
+ _.forEach(([S, E]) => {
167
167
  z.searchParams.append(S, E);
168
168
  });
169
169
  const I = await fetch(z.toString(), {
@@ -251,14 +251,14 @@ const q = "-", $ = (t) => {
251
251
  s && e.add(s);
252
252
  }
253
253
  return e;
254
- }, fe = (t, e) => {
254
+ }, _e = (t, e) => {
255
255
  const i = t.split("/"), o = e.split("/");
256
256
  return i.slice(0, o.length + 1).join("/");
257
257
  };
258
- var _e = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, D = (t, e, i, o) => {
258
+ var fe = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, D = (t, e, i, o) => {
259
259
  for (var s = o > 1 ? void 0 : o ? ve(e, i) : e, a = t.length - 1, l; a >= 0; a--)
260
260
  (l = t[a]) && (s = (o ? l(e, i, s) : l(s)) || s);
261
- return o && s && _e(e, i, s), s;
261
+ return o && s && fe(e, i, s), s;
262
262
  };
263
263
  let v = class extends Y {
264
264
  constructor() {
@@ -327,12 +327,12 @@ let v = class extends Y {
327
327
  return;
328
328
  let t = !1;
329
329
  const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), o = ot(this.folder?.path ?? [], this.folder?.fullPath ?? ""), s = [...this.currentRootIDsSet], a = (u, h) => {
330
- u.forEach((_) => {
331
- const f = $(_);
332
- if (!f.path.trim() || !f.id.trim())
330
+ u.forEach((f) => {
331
+ const _ = $(f);
332
+ if (!_.path.trim() || !_.id.trim())
333
333
  return !1;
334
- const z = P(f.path), I = P(o);
335
- o && z.startsWith(I) && z !== I && h.add(fe(f.path, o));
334
+ const z = P(_.path), I = P(o);
335
+ o && z.startsWith(I) && z !== I && h.add(_e(_.path, o));
336
336
  });
337
337
  };
338
338
  a(this.removedIDs, i), a(s, e);
@@ -340,10 +340,10 @@ let v = class extends Y {
340
340
  const h = $(u);
341
341
  if (!h.path.trim() || !h.id.trim())
342
342
  return !1;
343
- const _ = k({
343
+ const f = k({
344
344
  id: this.folder?.id ?? "",
345
345
  path: o
346
- }), f = P(h.path), z = P(o), I = h.id === this.folder?.id, j = !this.removedIDs.includes(_) && z.startsWith(f);
346
+ }), _ = P(h.path), z = P(o), I = h.id === this.folder?.id, j = !this.removedIDs.includes(f) && z.startsWith(_);
347
347
  return I || j;
348
348
  });
349
349
  const d = this.folder?.childCount && e.size === this.folder?.childCount;
@@ -735,7 +735,7 @@ var nt = function() {
735
735
  value: Ae(e),
736
736
  writable: !0
737
737
  });
738
- } : _t, Te = 800, ze = 16, Ee = Date.now;
738
+ } : ft, Te = 800, ze = 16, Ee = Date.now;
739
739
  function Le(t) {
740
740
  var e = 0, i = 0;
741
741
  return function() {
@@ -750,7 +750,7 @@ function Le(t) {
750
750
  }
751
751
  var Re = Le(De);
752
752
  function Pe(t, e) {
753
- return Re(Ce(t, e, _t), t + "");
753
+ return Re(Ce(t, e, ft), t + "");
754
754
  }
755
755
  var Fe = 200;
756
756
  function Ue(t, e, i, o) {
@@ -760,19 +760,19 @@ function Ue(t, e, i, o) {
760
760
  i && (e = Jt(e, St(i))), e.length >= Fe && (a = Ct, l = !1, e = new It(e));
761
761
  t:
762
762
  for (; ++s < d; ) {
763
- var h = t[s], _ = i == null ? h : i(h);
764
- if (h = h !== 0 ? h : 0, l && _ === _) {
765
- for (var f = u; f--; )
766
- if (e[f] === _)
763
+ var h = t[s], f = i == null ? h : i(h);
764
+ if (h = h !== 0 ? h : 0, l && f === f) {
765
+ for (var _ = u; _--; )
766
+ if (e[_] === f)
767
767
  continue t;
768
768
  m.push(h);
769
- } else a(e, _, o) || m.push(h);
769
+ } else a(e, f, o) || m.push(h);
770
770
  }
771
771
  return m;
772
772
  }
773
773
  var ct = et ? et.isConcatSpreadable : void 0;
774
774
  function ke(t) {
775
- return ft(t) || At(t) || !!(ct && t && t[ct]);
775
+ return _t(t) || At(t) || !!(ct && t && t[ct]);
776
776
  }
777
777
  function Oe(t, e, i, o, s) {
778
778
  var a = -1, l = t.length;
@@ -1238,6 +1238,17 @@ const Me = gt`
1238
1238
  line-height: var(--cx-line-height-medium);
1239
1239
  }
1240
1240
 
1241
+ .uploads__list .asset-group__label {
1242
+ display: flex;
1243
+ justify-content: space-between;
1244
+ align-items: center;
1245
+ }
1246
+
1247
+ .asset-group__clear-button::part(base) {
1248
+ color: var(--cx-color-primary-500);
1249
+ font-size: var(--cx-font-size-x-small);
1250
+ }
1251
+
1241
1252
  .asset-group__label {
1242
1253
  padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
1243
1254
  color: var(--cx-color-neutral-400);
@@ -1680,6 +1691,9 @@ let n = class extends Y {
1680
1691
  }
1681
1692
  });
1682
1693
  }
1694
+ clearUpload() {
1695
+ this.emit("cx-clear-upload");
1696
+ }
1683
1697
  saveSettings() {
1684
1698
  this.emit("cx-save-settings", {
1685
1699
  detail: {
@@ -1934,9 +1948,9 @@ let n = class extends Y {
1934
1948
  </cx-tooltip>`
1935
1949
  )} `, h = () => {
1936
1950
  t.uploadId && this.retryUpload(t.uploadId);
1937
- }, _ = () => {
1951
+ }, f = () => {
1938
1952
  t.uploadId && (t.isPaused ? this.resumeUpload(t.uploadId) : this.pauseUpload(t.uploadId));
1939
- }, f = r`</cx-tooltip
1953
+ }, _ = r`</cx-tooltip
1940
1954
  ><cx-tooltip content=${this.localize.term("retry")} hoist>
1941
1955
  <cx-icon-button
1942
1956
  data-testid="asset__retry-button"
@@ -1951,7 +1965,7 @@ let n = class extends Y {
1951
1965
  data-testid=${t.isPaused ? "asset__resume-button" : "asset__pause-button"}
1952
1966
  name=${t.isPaused ? "play_arrow" : "pause"}
1953
1967
  variant="filled"
1954
- @click=${_}
1968
+ @click=${f}
1955
1969
  ></cx-icon-button>
1956
1970
  </cx-tooltip>`;
1957
1971
  return r`
@@ -2006,7 +2020,7 @@ let n = class extends Y {
2006
2020
  )}
2007
2021
  ${g(
2008
2022
  [T.Failed].includes(t.uploadStatus),
2009
- () => f
2023
+ () => _
2010
2024
  )}
2011
2025
  </div>
2012
2026
  </div>
@@ -2168,7 +2182,7 @@ let n = class extends Y {
2168
2182
  </cx-line-clamp>
2169
2183
  </cx-typography>
2170
2184
  </div>
2171
- `, _ = r`
2185
+ `, f = r`
2172
2186
  <div class="completed-progress">
2173
2187
  <cx-icon name="check"></cx-icon>
2174
2188
  <cx-typography variant="small">
@@ -2184,7 +2198,7 @@ let n = class extends Y {
2184
2198
  </cx-line-clamp>
2185
2199
  </cx-typography>
2186
2200
  </div>
2187
- `, f = r`
2201
+ `, _ = r`
2188
2202
  <div class="failed-progress">
2189
2203
  <cx-typography variant="small">
2190
2204
  <cx-line-clamp lines="1">
@@ -2236,8 +2250,8 @@ let n = class extends Y {
2236
2250
  l === T.PendingComplete,
2237
2251
  () => h
2238
2252
  )}
2239
- ${g(l === T.Success, () => _)}
2240
- ${g(l === T.Failed, () => f)}
2253
+ ${g(l === T.Success, () => f)}
2254
+ ${g(l === T.Failed, () => _)}
2241
2255
  ${g(l === T.Canceled, () => z)}
2242
2256
  `;
2243
2257
  }
@@ -2264,6 +2278,14 @@ let n = class extends Y {
2264
2278
  <cx-typography variant="small">
2265
2279
  ${this.localize.term("today")}
2266
2280
  </cx-typography>
2281
+ <cx-button
2282
+ class="asset-group__clear-button"
2283
+ variant="text"
2284
+ size="small"
2285
+ @click=${this.clearUpload}
2286
+ >
2287
+ ${this.localize.term("clearAll")}
2288
+ </cx-button>
2267
2289
  </div>
2268
2290
  ${F(
2269
2291
  e,
@@ -2385,18 +2407,18 @@ let n = class extends Y {
2385
2407
  );
2386
2408
  if (u.length > 0) {
2387
2409
  const { totalCount: h } = await this.fetchFolders({
2388
- excludes: u.map((f) => $(f).id),
2410
+ excludes: u.map((_) => $(_).id),
2389
2411
  folderId: $(d).id,
2390
2412
  start: 0
2391
- }), { data: _ } = await this.fetchFolders({
2392
- excludes: u.map((f) => $(f).id),
2413
+ }), { data: f } = await this.fetchFolders({
2414
+ excludes: u.map((_) => $(_).id),
2393
2415
  folderId: $(d).id,
2394
2416
  limit: h || 10,
2395
2417
  start: 0
2396
2418
  });
2397
- _.forEach((f) => {
2419
+ f.forEach((_) => {
2398
2420
  a.add(
2399
- k({ id: f.id, path: f.fullPath })
2421
+ k({ id: _.id, path: _.fullPath })
2400
2422
  );
2401
2423
  }), a.delete(d);
2402
2424
  }
@@ -2404,8 +2426,8 @@ let n = class extends Y {
2404
2426
  const l = Array.from(a);
2405
2427
  this.updateActiveFolderIdentifiers(l), this.removedIds = l.filter(
2406
2428
  (d) => [...l].some((m) => {
2407
- const u = $(d), h = $(m), _ = P(h.path);
2408
- return m !== d && u.path.startsWith(_);
2429
+ const u = $(d), h = $(m), f = P(h.path);
2430
+ return m !== d && u.path.startsWith(f);
2409
2431
  })
2410
2432
  ), e(), this.isAddingRootIDs = !1;
2411
2433
  }, o = (s) => {
@@ -1,22 +1,24 @@
1
- import { C as l, T as d } from "./typography.BFpl0WMA.js";
2
- import { i as y, n as s, C as f, E as g, x as u, c as x } from "./custom-element.vnXBMQxc.js";
3
- import { c as v } from "./component.styles.CI-v8BZa.js";
1
+ import { C as l, T as y } from "./typography.BFpl0WMA.js";
2
+ import { i as f, n as m, C as d, E as g, x as u, c as v } from "./custom-element.vnXBMQxc.js";
3
+ import { c as x } from "./component.styles.CI-v8BZa.js";
4
4
  import { T as b, f as c } from "./string.D6poLUEC.js";
5
5
  import { w as h } from "./watch.BCJD77bD.js";
6
6
  import { r as S } from "./state.Cw55xXlb.js";
7
7
  const C = {
8
- fromAttribute: (r) => r?.split(" ").map((e) => {
8
+ fromAttribute: (i) => i?.split(" ").map((e) => {
9
9
  const o = Number.parseFloat(e);
10
10
  if (!Number.isNaN(o))
11
11
  return o;
12
12
  }).filter((e) => e !== void 0) ?? [],
13
- toAttribute: (r) => Array.isArray(r) ? r.join(" ").trim() : ""
14
- }, T = y`
13
+ toAttribute: (i) => Array.isArray(i) ? i.join(" ").trim() : ""
14
+ }, T = f`
15
15
  :host {
16
16
  display: inline;
17
17
  white-space: normal;
18
+ }
19
+ :host([is-preview]) {
18
20
  background-color: var(--cx-color-primary-50, #e5f1ff);
19
- padding-inline: var(--cx-spacing-2x-small);
21
+ padding-inline: var(--cx-spacing-2x-small, 4px);
20
22
  }
21
23
  .time {
22
24
  --color: var(--cx-color-primary);
@@ -25,14 +27,14 @@ const C = {
25
27
  display: inline;
26
28
  }
27
29
  `;
28
- var R = Object.defineProperty, M = Object.getOwnPropertyDescriptor, a = (r, e, o, m) => {
29
- for (var i = m > 1 ? void 0 : m ? M(e, o) : e, n = r.length - 1, p; n >= 0; n--)
30
- (p = r[n]) && (i = (m ? p(e, o, i) : p(i)) || i);
31
- return m && i && R(e, o, i), i;
30
+ var w = Object.defineProperty, R = Object.getOwnPropertyDescriptor, r = (i, e, o, s) => {
31
+ for (var a = s > 1 ? void 0 : s ? R(e, o) : e, n = i.length - 1, p; n >= 0; n--)
32
+ (p = i[n]) && (a = (s ? p(e, o, a) : p(a)) || a);
33
+ return s && a && w(e, o, a), a;
32
34
  };
33
- let t = class extends f {
35
+ let t = class extends d {
34
36
  constructor() {
35
- super(...arguments), this.time = [], this.timecodeMode = b.Standard, this.frameRate = 24, this.typographyVariant = d.Small, this.timeString = "";
37
+ super(...arguments), this.time = [], this.timecodeMode = b.Standard, this.frameRate = 24, this.isPreview = !1, this.typographyVariant = y.Small, this.timeString = "";
36
38
  }
37
39
  handleTimeChange() {
38
40
  if (!this.time?.length) {
@@ -62,37 +64,40 @@ let t = class extends f {
62
64
  ` : g;
63
65
  }
64
66
  };
65
- t.styles = [v, T];
67
+ t.styles = [x, T];
66
68
  t.dependencies = {
67
69
  "cx-typography": l
68
70
  };
69
- a([
70
- s({
71
+ r([
72
+ m({
71
73
  attribute: "time",
72
74
  converter: C,
73
75
  reflect: !0,
74
76
  type: String
75
77
  })
76
78
  ], t.prototype, "time", 2);
77
- a([
78
- s({ attribute: "timecode-mode", reflect: !0, type: String })
79
+ r([
80
+ m({ attribute: "timecode-mode", reflect: !0, type: String })
79
81
  ], t.prototype, "timecodeMode", 2);
80
- a([
81
- s({ attribute: "frame-rate", reflect: !0, type: Number })
82
+ r([
83
+ m({ attribute: "frame-rate", reflect: !0, type: Number })
82
84
  ], t.prototype, "frameRate", 2);
83
- a([
84
- s({ attribute: "typography-variant", type: String })
85
+ r([
86
+ m({ attribute: "is-preview", reflect: !0, type: Boolean })
87
+ ], t.prototype, "isPreview", 2);
88
+ r([
89
+ m({ attribute: "typography-variant", type: String })
85
90
  ], t.prototype, "typographyVariant", 2);
86
- a([
91
+ r([
87
92
  S()
88
93
  ], t.prototype, "timeString", 2);
89
- a([
94
+ r([
90
95
  h("time"),
91
96
  h("timecodeMode"),
92
97
  h("frameRate")
93
98
  ], t.prototype, "handleTimeChange", 1);
94
- t = a([
95
- x("cx-timecode")
99
+ t = r([
100
+ v("cx-timecode")
96
101
  ], t);
97
102
  export {
98
103
  t as C,
@@ -71,7 +71,7 @@ import { C as No } from "../chunks/table.C8gqB3Ym.js";
71
71
  import { default as Eo } from "./tab-panel.js";
72
72
  import { default as Vo } from "./tag.js";
73
73
  import { default as Qo } from "./textarea.js";
74
- import { C as Jo } from "../chunks/timecode.D4_FNCCI.js";
74
+ import { C as Jo } from "../chunks/timecode.PY1bymeS.js";
75
75
  import { default as Uo } from "./tooltip.js";
76
76
  import { a as Xo, C as Yo } from "../chunks/tree.82OigIgE.js";
77
77
  import { C as _o } from "../chunks/typography.BFpl0WMA.js";
@@ -238,14 +238,11 @@ let t = class extends f {
238
238
  this.input.click();
239
239
  }
240
240
  handleChange() {
241
- this.checked = !this.checked, this.indeterminate = !1, this.emit("cx-change");
241
+ this.checked = !this.checked, this.indeterminate = !1, this.emit("cx-input"), this.emit("cx-change");
242
242
  }
243
243
  handleBlur() {
244
244
  this.hasFocus = !1, this.emit("cx-blur");
245
245
  }
246
- handleInput() {
247
- this.emit("cx-input");
248
- }
249
246
  handleInvalid(e) {
250
247
  this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
251
248
  }
@@ -1,4 +1,4 @@
1
- import { C as J } from "../chunks/file-on-demand.UNUgyyno.js";
1
+ import { C as J } from "../chunks/file-on-demand.Cr7E_KqH.js";
2
2
  import "./avatar.js";
3
3
  import "../chunks/button.CiWlWCNb.js";
4
4
  import "../chunks/dialog.C28qzMSQ.js";
@@ -1,6 +1,6 @@
1
1
  import { default as a } from "./asset-link-format.js";
2
2
  import { C as t } from "../chunks/color-swatch-group.CG_PUG1X.js";
3
- import { C } from "../chunks/file-on-demand.UNUgyyno.js";
3
+ import { C } from "../chunks/file-on-demand.Cr7E_KqH.js";
4
4
  export {
5
5
  a as CxAssetLinkFormat,
6
6
  t as CxColorSwatchGroup,
@@ -2,7 +2,7 @@ import "../chunks/typography.BFpl0WMA.js";
2
2
  import "../chunks/custom-element.vnXBMQxc.js";
3
3
  import "../chunks/component.styles.CI-v8BZa.js";
4
4
  import "../chunks/string.D6poLUEC.js";
5
- import { C as f } from "../chunks/timecode.D4_FNCCI.js";
5
+ import { C as f } from "../chunks/timecode.PY1bymeS.js";
6
6
  import "../chunks/watch.BCJD77bD.js";
7
7
  import "../chunks/state.Cw55xXlb.js";
8
8
  export {
@@ -71,7 +71,7 @@ import { C as PR, f as Hh, i as NR, r as pY, m as hY, a as K7, g as Y7 } from ".
71
71
  import x9 from "./tab-panel.js";
72
72
  import { default as CGt } from "./tag.js";
73
73
  import gY from "./textarea.js";
74
- import { C as mY, t as fY } from "../chunks/timecode.D4_FNCCI.js";
74
+ import { C as mY, t as fY } from "../chunks/timecode.PY1bymeS.js";
75
75
  import ya from "./tooltip.js";
76
76
  import { d as vY, v as Qf } from "../chunks/tree.82OigIgE.js";
77
77
  import { a as EGt, C as TGt } from "../chunks/tree.82OigIgE.js";
@@ -114,8 +114,8 @@ import { F as Ku, C as O9, a as Y_ } from "../chunks/folder-select.ELghy6Qk.js";
114
114
  import { a as Io, E as Fn, b as qm, O as Ld, T as Fu, G as aO } from "../chunks/index.Cpamj0jB.js";
115
115
  import { C as jGt } from "../chunks/index.Cpamj0jB.js";
116
116
  import { g as I9, c as iy } from "../chunks/_commonjsHelpers.ByX85dGu.js";
117
- import { b as ev, a as WR, d as sO, c as ck, s as QY, o as eX, U as D9, e as GR, i as Kd, f as tX } from "../chunks/file-on-demand.UNUgyyno.js";
118
- import { C as UGt } from "../chunks/file-on-demand.UNUgyyno.js";
117
+ import { b as ev, a as WR, d as sO, c as ck, s as QY, o as eX, U as D9, e as GR, i as Kd, f as tX } from "../chunks/file-on-demand.Cr7E_KqH.js";
118
+ import { C as UGt } from "../chunks/file-on-demand.Cr7E_KqH.js";
119
119
  import { e as nX, t as rX } from "../chunks/directive.oAbCiebi.js";
120
120
  import { f as iX, n as kl, e as _l } from "../chunks/ref.BaCjlzLO.js";
121
121
  import oX from "./masonry.js";
@@ -11637,8 +11637,10 @@ const cg = 30, pC = 75, Ek = {
11637
11637
  --checked-icon-display: none;
11638
11638
  --submenu-icon-display: none;
11639
11639
 
11640
- flex: 1;
11640
+ align-items: center;
11641
11641
  display: flex;
11642
+ flex: 1;
11643
+ gap: var(--cx-spacing-small);
11642
11644
  justify-content: flex-end;
11643
11645
  }
11644
11646
 
@@ -11651,7 +11653,7 @@ const cg = 30, pC = 75, Ek = {
11651
11653
  transition: opacity 0.1s;
11652
11654
  }
11653
11655
 
11654
- .node:hover > .header > .actions > .actions__dropdown > .actions__dropdown-trigger {
11656
+ .node:hover > .header > .actions .actions__dropdown > .actions__dropdown-trigger {
11655
11657
  opacity: 1;
11656
11658
  }
11657
11659
 
@@ -13513,11 +13515,12 @@ const hae = (n) => n.data?.unordered && n.data?.unorderedText ? {
13513
13515
  default: {
13514
13516
  b.current?.emit("cx-node-action-select", {
13515
13517
  detail: { id: B, targetNode: n.id }
13516
- });
13518
+ }), b.current?.hide();
13517
13519
  break;
13518
13520
  }
13519
13521
  }
13520
- }
13522
+ } else
13523
+ b.current?.hide();
13521
13524
  }, [n, D]), $ = qe.useCallback((q) => {
13522
13525
  const B = b.current;
13523
13526
  q.target === B && (B?.emit("cx-action-dropdown-show", {
@@ -13597,16 +13600,8 @@ const hae = (n) => n.data?.unordered && n.data?.unorderedText ? {
13597
13600
  ),
13598
13601
  /* @__PURE__ */ _e.jsx("div", { className: "description", children: /* @__PURE__ */ _e.jsx("cx-line-clamp", { lines: 1, children: n.description }, n.description) })
13599
13602
  ] }),
13600
- s && /* @__PURE__ */ _e.jsxs(_e.Fragment, { children: [
13601
- /* @__PURE__ */ _e.jsx(
13602
- "div",
13603
- {
13604
- style: {
13605
- flex: 1
13606
- }
13607
- }
13608
- ),
13609
- /* @__PURE__ */ _e.jsx(
13603
+ /* @__PURE__ */ _e.jsxs("div", { className: "actions", children: [
13604
+ s && /* @__PURE__ */ _e.jsx(
13610
13605
  "cx-icon",
13611
13606
  {
13612
13607
  class: "icon",
@@ -13615,48 +13610,48 @@ const hae = (n) => n.data?.unordered && n.data?.unorderedText ? {
13615
13610
  "--color": "var(--cx-color-danger-500)"
13616
13611
  }
13617
13612
  }
13618
- )
13619
- ] }),
13620
- n.actions && n.actions.length > 0 && A && A.length > 0 && /* @__PURE__ */ _e.jsx("div", { className: "actions", children: /* @__PURE__ */ _e.jsxs(
13621
- "cx-dropdown",
13622
- {
13623
- ref: b,
13624
- class: "actions__dropdown",
13625
- placement: "bottom-start",
13626
- "stay-open-on-select": !0,
13627
- hoist: !0,
13628
- "oncx-select": F,
13629
- "oncx-show": $,
13630
- "oncx-hide": j,
13631
- children: [
13632
- /* @__PURE__ */ _e.jsx("cx-icon-button", { slot: "trigger", class: "actions__dropdown-trigger", name: "more_horiz", style: w ? { opacity: 1 } : {} }),
13633
- /* @__PURE__ */ _e.jsx("cx-menu", { role: "menu", variant: "default", children: A.map((q) => "type" in q && q.type === "divider" ? /* @__PURE__ */ _e.jsx("cx-divider", {}, q.key) : "id" in q ? /* @__PURE__ */ _e.jsxs(
13634
- "cx-menu-item",
13635
- {
13636
- "data-id": q.id,
13637
- style: {
13638
- "--label-color": q.style?.color,
13639
- "--prefix-color": q.style?.color
13613
+ ),
13614
+ n.actions && n.actions.length > 0 && A && A.length > 0 && /* @__PURE__ */ _e.jsxs(
13615
+ "cx-dropdown",
13616
+ {
13617
+ ref: b,
13618
+ class: "actions__dropdown",
13619
+ placement: "bottom-start",
13620
+ "stay-open-on-select": !0,
13621
+ hoist: !0,
13622
+ "oncx-select": F,
13623
+ "oncx-show": $,
13624
+ "oncx-hide": j,
13625
+ children: [
13626
+ /* @__PURE__ */ _e.jsx("cx-icon-button", { slot: "trigger", class: "actions__dropdown-trigger", name: "more_horiz", style: w ? { opacity: 1 } : {} }),
13627
+ /* @__PURE__ */ _e.jsx("cx-menu", { role: "menu", variant: "default", children: A.map((q) => "type" in q && q.type === "divider" ? /* @__PURE__ */ _e.jsx("cx-divider", {}, q.key) : "id" in q ? /* @__PURE__ */ _e.jsxs(
13628
+ "cx-menu-item",
13629
+ {
13630
+ "data-id": q.id,
13631
+ style: {
13632
+ "--label-color": q.style?.color,
13633
+ "--prefix-color": q.style?.color
13634
+ },
13635
+ children: [
13636
+ /* @__PURE__ */ _e.jsx("cx-icon", { slot: "prefix", name: q.icon }),
13637
+ q.name,
13638
+ q.controlType === "switch" && /* @__PURE__ */ _e.jsx(
13639
+ "cx-switch",
13640
+ {
13641
+ slot: "suffix",
13642
+ checked: !!n[q.id] || !1,
13643
+ "show-icon": !0,
13644
+ onClick: L
13645
+ }
13646
+ )
13647
+ ]
13640
13648
  },
13641
- children: [
13642
- /* @__PURE__ */ _e.jsx("cx-icon", { slot: "prefix", name: q.icon }),
13643
- q.name,
13644
- q.controlType === "switch" && /* @__PURE__ */ _e.jsx(
13645
- "cx-switch",
13646
- {
13647
- slot: "suffix",
13648
- checked: !!n[q.id] || !1,
13649
- "show-icon": !0,
13650
- onClick: L
13651
- }
13652
- )
13653
- ]
13654
- },
13655
- q.id
13656
- ) : null) })
13657
- ]
13658
- }
13659
- ) })
13649
+ q.id
13650
+ ) : null) })
13651
+ ]
13652
+ }
13653
+ )
13654
+ ] })
13660
13655
  ] }),
13661
13656
  a && /* @__PURE__ */ _e.jsx("div", { className: "metadata", children: (n.summaries || []).map((q, B) => /* @__PURE__ */ _e.jsxs(
13662
13657
  "div",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.53.0",
4
+ "version": "2.54.0-ci.2",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -73,9 +73,8 @@ export default class CxCheckbox extends CortexElement implements CortexFormContr
73
73
  connectedCallback(): void;
74
74
  private handleHostKeydown;
75
75
  private handleHostClick;
76
- handleChange(): void;
76
+ private handleChange;
77
77
  private handleBlur;
78
- private handleInput;
79
78
  private handleInvalid;
80
79
  private handleFocus;
81
80
  handleDisabledChange(): void;
@@ -24,6 +24,10 @@ export default class CxTimecode extends CortexElement {
24
24
  * The frame rate for the time based feature.
25
25
  */
26
26
  frameRate: number;
27
+ /**
28
+ * When true, applies the preview background and padding styles.
29
+ */
30
+ isPreview: boolean;
27
31
  /**
28
32
  * The typography variant for the timecode.
29
33
  */
@@ -0,0 +1,6 @@
1
+ export type CxClearUploadEvent = CustomEvent<Record<PropertyKey, unknown>>;
2
+ declare global {
3
+ interface GlobalEventHandlersEventMap {
4
+ 'cx-clear-upload': CxClearUploadEvent;
5
+ }
6
+ }
@@ -24,6 +24,7 @@ export * from './cx-cancel-upload';
24
24
  export * from './cx-change';
25
25
  export * from './cx-clear';
26
26
  export * from './cx-clear-cache';
27
+ export * from './cx-clear-upload';
27
28
  export * from './cx-close';
28
29
  export * from './cx-collapse';
29
30
  export * from './cx-color-swatch-picker-add';
@@ -207,6 +207,7 @@ export default class CxFileOnDemand extends CortexElement {
207
207
  private pauseUpload;
208
208
  private resumeUpload;
209
209
  private cancelUpload;
210
+ private clearUpload;
210
211
  private saveSettings;
211
212
  private markFavorite;
212
213
  private unmarkFavorite;
@@ -4658,6 +4658,10 @@
4658
4658
  * The frame rate for the time based feature.
4659
4659
  */
4660
4660
  frameRate?: number;
4661
+ /**
4662
+ * When true, applies the preview background and padding styles.
4663
+ */
4664
+ isPreview?: boolean;
4661
4665
  /**
4662
4666
  * The typography variant for the timecode.
4663
4667
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.53.0",
4
+ "version": "2.54.0-ci.2",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {