@orangelogic/design-system 2.52.0 → 2.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{button.CVc2wJ0B.js → button.CiWlWCNb.js} +1 -1
- package/library/chunks/{color-swatch-group.CUtNUbRn.js → color-swatch-group.CG_PUG1X.js} +4 -4
- package/library/chunks/{color-swatch.EAiUOc_J.js → color-swatch.CsKJgvVf.js} +2 -2
- package/library/chunks/{confirm-popover.DfkoLeR6.js → confirm-popover.Bfuw361W.js} +3 -3
- package/library/chunks/{dialog.CLn29MZF.js → dialog.C28qzMSQ.js} +2 -2
- package/library/chunks/{dot-pagination.BMZxEk73.js → dot-pagination.D3RYAiHL.js} +1 -1
- package/library/chunks/{file-on-demand.CoA1eDl7.js → file-on-demand.UNUgyyno.js} +9 -9
- package/library/chunks/{folder-select.Bq-NKzjL.js → folder-select.ELghy6Qk.js} +5 -5
- package/library/chunks/format-time.HdcgoabZ.js +226 -0
- package/library/chunks/{header.DiOD6K3N.js → header.oyZxakKM.js} +1 -1
- package/library/chunks/{i18n.GsJkEfVA.js → i18n.C3Z8Xe8q.js} +1 -0
- package/library/chunks/{iframe.BO6qSFJP.js → iframe.C6CLUrTT.js} +1 -1
- package/library/chunks/{image.Dqq3RyRZ.js → image.BJfasRY_.js} +2 -2
- package/library/chunks/{list-editor.H4eJhYPV.js → list-editor.qPIn_AFA.js} +6 -6
- package/library/chunks/{option.CPTRiPaF.js → option.BOHZB9Sv.js} +1 -1
- package/library/chunks/{popup.d45CSCf5.js → popup.Ba501Rgg.js} +394 -390
- package/library/chunks/{select.ByWIHETd.js → select.oVg7uA-M.js} +3 -3
- package/library/chunks/{tab-group.B6aKJLVZ.js → tab-group.BWYMMhrE.js} +2 -3
- package/library/chunks/{table.91X28qCm.js → table.C8gqB3Ym.js} +2 -2
- package/library/chunks/{tree.DQDSYKYi.js → tree.82OigIgE.js} +1 -1
- package/library/components/alert.js +1 -1
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +28 -28
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +5 -5
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +9 -221
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -3
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +2 -2
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +4 -4
- package/library/components/popup.js +2 -2
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +4 -4
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +3 -3
- package/library/components/tab.js +13 -14
- package/library/components/table.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +16447 -16372
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +49 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.styles.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/react-web-component.d.ts +30 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as o, C as v, c as g } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { c as C } from "./component.styles.CI-v8BZa.js";
|
|
3
3
|
import { F as x, v as w } from "./form.DycFDdkp.js";
|
|
4
|
-
import { L as $ } from "./i18n.
|
|
4
|
+
import { L as $ } from "./i18n.C3Z8Xe8q.js";
|
|
5
5
|
import { H as O, g as S } from "./slot.DJLm4Dig.js";
|
|
6
6
|
import { w as m } from "./watch.BCJD77bD.js";
|
|
7
7
|
import { r as h } from "./state.Cw55xXlb.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _ from "../components/space.js";
|
|
2
|
-
import { C as z } from "./table.
|
|
2
|
+
import { C as z } from "./table.C8gqB3Ym.js";
|
|
3
3
|
import { C as $ } from "./typography.BFpl0WMA.js";
|
|
4
4
|
import { x as h, B as F, i as k, n as p, C as A, c as S } from "./custom-element.vnXBMQxc.js";
|
|
5
|
-
import { C as v, a as m } from "./color-swatch.
|
|
5
|
+
import { C as v, a as m } from "./color-swatch.CsKJgvVf.js";
|
|
6
6
|
import { c as T } from "./component.styles.CI-v8BZa.js";
|
|
7
7
|
import { D as n } from "./content-builder.UlVFSATk.js";
|
|
8
|
-
import { d as E } from "./popup.
|
|
9
|
-
import { L as D } from "./i18n.
|
|
8
|
+
import { d as E } from "./popup.Ba501Rgg.js";
|
|
9
|
+
import { L as D } from "./i18n.C3Z8Xe8q.js";
|
|
10
10
|
import { w as C } from "./watch.BCJD77bD.js";
|
|
11
11
|
import { r as d } from "./state.Cw55xXlb.js";
|
|
12
12
|
import { e as R } from "./query.BBf1UFkC.js";
|
|
@@ -6,8 +6,8 @@ import { C as G } from "./typography.BFpl0WMA.js";
|
|
|
6
6
|
import { i as M, n as l, C as S, x as C, c as U } from "./custom-element.vnXBMQxc.js";
|
|
7
7
|
import { c as W } from "./component.styles.CI-v8BZa.js";
|
|
8
8
|
import { T as v } from "./index.C1chwzNp.js";
|
|
9
|
-
import { d as H } from "./popup.
|
|
10
|
-
import { L as D } from "./i18n.
|
|
9
|
+
import { d as H } from "./popup.Ba501Rgg.js";
|
|
10
|
+
import { L as D } from "./i18n.C3Z8Xe8q.js";
|
|
11
11
|
import { w as h } from "./watch.BCJD77bD.js";
|
|
12
12
|
import { r as d } from "./state.Cw55xXlb.js";
|
|
13
13
|
import { e as L } from "./query.BBf1UFkC.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.CiWlWCNb.js";
|
|
2
|
+
import { C as u, D as h } from "./dialog.C28qzMSQ.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.BFpl0WMA.js";
|
|
5
5
|
import { i as b, n as e, C as y, x as d, c as w } from "./custom-element.vnXBMQxc.js";
|
|
6
6
|
import { c as $ } from "./component.styles.CI-v8BZa.js";
|
|
7
|
-
import { L as z } from "./i18n.
|
|
7
|
+
import { L as z } from "./i18n.C3Z8Xe8q.js";
|
|
8
8
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
9
9
|
import { e as a } from "./class-map.CoZTSvbM.js";
|
|
10
10
|
var v = /* @__PURE__ */ ((t) => (t.Horizontal = "horizontal", t.HorizontalReverse = "horizontal-reverse", t.Vertical = "vertical", t.VerticalReverse = "vertical-reverse", t))(v || {}), f = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Start = "start", t))(f || {});
|
|
@@ -3,7 +3,7 @@ import { c as L } from "./component.styles.CI-v8BZa.js";
|
|
|
3
3
|
import { O, C as P, H as $, z as H, o as E } from "./overlayscrollbars.aFuRG5Rs.js";
|
|
4
4
|
import { s as p, g as h, b as c, a as y } from "./animation-registry.DavRkTTr.js";
|
|
5
5
|
import { w as x } from "./event.mFzZi4sr.js";
|
|
6
|
-
import { L as R } from "./i18n.
|
|
6
|
+
import { L as R } from "./i18n.C3Z8Xe8q.js";
|
|
7
7
|
import { M as W } from "./modal.BqNLxgs1.js";
|
|
8
8
|
import { l as w, u as _ } from "./scroll.DwPiX2Ox.js";
|
|
9
9
|
import { H as q } from "./slot.DJLm4Dig.js";
|
|
@@ -16,7 +16,7 @@ import { o as A } from "./style-map.CZovMmo_.js";
|
|
|
16
16
|
import { n as g } from "./when.Dr1es41R.js";
|
|
17
17
|
import F from "../components/divider.js";
|
|
18
18
|
import I from "../components/icon-button.js";
|
|
19
|
-
import { C as T } from "./popup.
|
|
19
|
+
import { C as T } from "./popup.Ba501Rgg.js";
|
|
20
20
|
var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
|
|
21
21
|
const U = z`
|
|
22
22
|
:host {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as P, n as a, C as F, x as y, c as z } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { c as S } from "./component.styles.CI-v8BZa.js";
|
|
3
3
|
import { O as C } from "./index.Cpamj0jB.js";
|
|
4
|
-
import { L as O } from "./i18n.
|
|
4
|
+
import { L as O } from "./i18n.C3Z8Xe8q.js";
|
|
5
5
|
import { w as h } from "./watch.BCJD77bD.js";
|
|
6
6
|
import { r as j } from "./state.Cw55xXlb.js";
|
|
7
7
|
import { e as H } from "./query.BBf1UFkC.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import lt from "../components/icon.js";
|
|
2
2
|
import dt from "../components/line-clamp.js";
|
|
3
|
-
import { C as pt, s as ht, a as ut, b as Q } from "./tree.
|
|
3
|
+
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
|
-
import { L as Z } from "./i18n.
|
|
6
|
+
import { L as Z } from "./i18n.C3Z8Xe8q.js";
|
|
7
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";
|
|
8
8
|
import { p as P } from "./string.D6poLUEC.js";
|
|
9
9
|
import { r as x } from "./state.Cw55xXlb.js";
|
|
@@ -13,24 +13,24 @@ import { c as F } from "./repeat.CauKaXyy.js";
|
|
|
13
13
|
import { n as g } from "./when.Dr1es41R.js";
|
|
14
14
|
import { a as zt, i as _t, c as Et, b as tt } from "./_baseUniq.BUihBa8c.js";
|
|
15
15
|
import Lt from "../components/avatar.js";
|
|
16
|
-
import { C as Rt } from "./button.
|
|
17
|
-
import { C as Pt } from "./dialog.
|
|
16
|
+
import { C as Rt } from "./button.CiWlWCNb.js";
|
|
17
|
+
import { C as Pt } from "./dialog.C28qzMSQ.js";
|
|
18
18
|
import Ft from "../components/divider.js";
|
|
19
19
|
import Ut from "../components/format-bytes.js";
|
|
20
20
|
import kt from "../components/icon-button.js";
|
|
21
21
|
import Ot from "../components/input.js";
|
|
22
|
-
import { C as Nt } from "./option.
|
|
22
|
+
import { C as Nt } from "./option.BOHZB9Sv.js";
|
|
23
23
|
import jt from "../components/progress-bar.js";
|
|
24
24
|
import Mt from "../components/relative-time.js";
|
|
25
|
-
import { C as Bt } from "./select.
|
|
25
|
+
import { C as Bt } from "./select.oVg7uA-M.js";
|
|
26
26
|
import Vt from "../components/space.js";
|
|
27
27
|
import Ht from "../components/tab.js";
|
|
28
|
-
import { C as Wt } from "./tab-group.
|
|
28
|
+
import { C as Wt } from "./tab-group.BWYMMhrE.js";
|
|
29
29
|
import Gt from "../components/tab-panel.js";
|
|
30
30
|
import qt from "../components/tooltip.js";
|
|
31
31
|
import { C as Yt } from "./typography.BFpl0WMA.js";
|
|
32
|
-
import { C as Kt } from "./confirm-popover.
|
|
33
|
-
import { d as Zt } from "./popup.
|
|
32
|
+
import { C as Kt } from "./confirm-popover.Bfuw361W.js";
|
|
33
|
+
import { d as Zt } from "./popup.Ba501Rgg.js";
|
|
34
34
|
import { a as H } from "./number.CjNxU7Xs.js";
|
|
35
35
|
import { o as Xt } from "./style-map.CZovMmo_.js";
|
|
36
36
|
import { a as Jt } from "./toString.CL_lYXbK.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import G from "../components/icon.js";
|
|
2
2
|
import Z from "../components/input.js";
|
|
3
|
-
import { C as J } from "./select.
|
|
4
|
-
import { C as x, a as K } from "./tree.
|
|
3
|
+
import { C as J } from "./select.oVg7uA-M.js";
|
|
4
|
+
import { C as x, a as K } from "./tree.82OigIgE.js";
|
|
5
5
|
import { n as r, C as I, x as f, c as w, i as X } from "./custom-element.vnXBMQxc.js";
|
|
6
6
|
import { h as k, F as Y, b as A } from "./endpoints.BgyupJys.js";
|
|
7
7
|
import { c as R } from "./component.styles.CI-v8BZa.js";
|
|
8
|
-
import { L as V } from "./i18n.
|
|
8
|
+
import { L as V } from "./i18n.C3Z8Xe8q.js";
|
|
9
9
|
import { w as m } from "./watch.BCJD77bD.js";
|
|
10
10
|
import { r as y } from "./state.Cw55xXlb.js";
|
|
11
11
|
import { e as B } from "./query.BBf1UFkC.js";
|
|
12
12
|
import { r as ee } from "./choose.BTbF6BAn.js";
|
|
13
|
-
import { C as q } from "./button.
|
|
14
|
-
import { d as te } from "./popup.
|
|
13
|
+
import { C as q } from "./button.CiWlWCNb.js";
|
|
14
|
+
import { d as te } from "./popup.Ba501Rgg.js";
|
|
15
15
|
import { o as S } from "./if-defined.MfEgpxEN.js";
|
|
16
16
|
import { c as W } from "./repeat.CauKaXyy.js";
|
|
17
17
|
import { n as O } from "./when.Dr1es41R.js";
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { i as D, n as d, C as g, x as S, c as M } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { c as w } from "./component.styles.CI-v8BZa.js";
|
|
3
|
+
import { L as N } from "./i18n.C3Z8Xe8q.js";
|
|
4
|
+
import { w as m } from "./watch.BCJD77bD.js";
|
|
5
|
+
import { f as b } from "./number.CjNxU7Xs.js";
|
|
6
|
+
import { r as H } from "./state.Cw55xXlb.js";
|
|
7
|
+
var p = /* @__PURE__ */ ((t) => (t.Millisecond = "ms", t.Second = "s", t))(p || {}), e = /* @__PURE__ */ ((t) => (t.Day = "d", t.DayHour = "d-h", t.DayHourMinute = "d-h-m", t.DayHourMinuteSecond = "d-h-m-s", t.Hour = "h", t.HourMinute = "h-m", t.HourMinuteSecond = "h-m-s", t.Minute = "m", t.MinuteSecond = "m-s", t.Second = "s", t))(e || {}), a = /* @__PURE__ */ ((t) => (t.Digital = "digital", t.Long = "long", t.Narrow = "narrow", t.Short = "short", t))(a || {}), y = /* @__PURE__ */ ((t) => (t.English = "en", t))(y || {});
|
|
8
|
+
const _ = [
|
|
9
|
+
{
|
|
10
|
+
key: "days",
|
|
11
|
+
longPlural: "days",
|
|
12
|
+
longSingular: "day",
|
|
13
|
+
narrow: "d",
|
|
14
|
+
short: "day"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: "hours",
|
|
18
|
+
longPlural: "hours",
|
|
19
|
+
longSingular: "hour",
|
|
20
|
+
narrow: "h",
|
|
21
|
+
short: "hr"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "minutes",
|
|
25
|
+
longPlural: "minutes",
|
|
26
|
+
longSingular: "minute",
|
|
27
|
+
narrow: "m",
|
|
28
|
+
short: "min"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: "seconds",
|
|
32
|
+
longPlural: "seconds",
|
|
33
|
+
longSingular: "second",
|
|
34
|
+
narrow: "s",
|
|
35
|
+
short: "sec"
|
|
36
|
+
}
|
|
37
|
+
], P = 1e3, B = 60 * 1e3;
|
|
38
|
+
function v(t, o, n = y.English) {
|
|
39
|
+
const i = Intl.DurationFormat;
|
|
40
|
+
if (typeof i != "function")
|
|
41
|
+
throw new Error("Intl.DurationFormat is not supported");
|
|
42
|
+
return new i(n, { style: o }).format(t);
|
|
43
|
+
}
|
|
44
|
+
function F(t, o) {
|
|
45
|
+
const n = Math.floor(t / 1e3), i = Math.floor(n / 60), r = Math.floor(i / 60), s = Math.floor(r / 24), c = r % 24, h = i % 60, f = n % 60;
|
|
46
|
+
switch (o) {
|
|
47
|
+
case e.Day:
|
|
48
|
+
return { days: s };
|
|
49
|
+
case e.DayHour:
|
|
50
|
+
return { days: s, hours: c };
|
|
51
|
+
case e.DayHourMinute:
|
|
52
|
+
return { days: s, hours: c, minutes: h };
|
|
53
|
+
case e.DayHourMinuteSecond:
|
|
54
|
+
return { days: s, hours: c, minutes: h, seconds: f };
|
|
55
|
+
case e.Hour:
|
|
56
|
+
return { hours: r };
|
|
57
|
+
case e.HourMinute:
|
|
58
|
+
return { hours: r, minutes: h };
|
|
59
|
+
case e.HourMinuteSecond:
|
|
60
|
+
return { hours: r, minutes: h, seconds: f };
|
|
61
|
+
case e.Minute:
|
|
62
|
+
return { minutes: i };
|
|
63
|
+
case e.MinuteSecond:
|
|
64
|
+
return { minutes: i, seconds: f };
|
|
65
|
+
case e.Second:
|
|
66
|
+
return { seconds: n };
|
|
67
|
+
default:
|
|
68
|
+
return { days: s, hours: c, minutes: h };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function I(t) {
|
|
72
|
+
return Object.fromEntries(
|
|
73
|
+
Object.entries(t).filter(([, o]) => o !== 0)
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
function L(t, o) {
|
|
77
|
+
const n = [];
|
|
78
|
+
let i = 0;
|
|
79
|
+
for (const r of _) {
|
|
80
|
+
const s = t[r.key];
|
|
81
|
+
s !== void 0 && (n.push(
|
|
82
|
+
O(s, r, o, i)
|
|
83
|
+
), i += 1);
|
|
84
|
+
}
|
|
85
|
+
if (n.length === 0)
|
|
86
|
+
return "0";
|
|
87
|
+
switch (o) {
|
|
88
|
+
case a.Digital:
|
|
89
|
+
return n.join(":");
|
|
90
|
+
case a.Long:
|
|
91
|
+
case a.Short:
|
|
92
|
+
return n.join(", ");
|
|
93
|
+
case a.Narrow:
|
|
94
|
+
default:
|
|
95
|
+
return n.join(" ");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function O(t, o, n, i) {
|
|
99
|
+
const r = n === a.Digital ? i === 0 ? String(t) : String(t).padStart(2, "0") : b(t);
|
|
100
|
+
switch (n) {
|
|
101
|
+
case a.Digital:
|
|
102
|
+
return r;
|
|
103
|
+
case a.Long:
|
|
104
|
+
return `${r} ${t === 1 ? o.longSingular : o.longPlural}`;
|
|
105
|
+
case a.Short:
|
|
106
|
+
return `${r} ${o.short}`;
|
|
107
|
+
case a.Narrow:
|
|
108
|
+
default:
|
|
109
|
+
return `${r}${o.narrow}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const T = D`
|
|
113
|
+
:host {
|
|
114
|
+
display: contents;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.format-time {
|
|
118
|
+
color: var(--cx-format-time-color, inherit);
|
|
119
|
+
font-size: var(--cx-format-time-font-size, inherit);
|
|
120
|
+
font-weight: var(--cx-format-time-font-weight, inherit);
|
|
121
|
+
}
|
|
122
|
+
`;
|
|
123
|
+
var E = Object.defineProperty, A = Object.getOwnPropertyDescriptor, l = (t, o, n, i) => {
|
|
124
|
+
for (var r = i > 1 ? void 0 : i ? A(o, n) : o, s = t.length - 1, c; s >= 0; s--)
|
|
125
|
+
(c = t[s]) && (r = (i ? c(o, n, r) : c(r)) || r);
|
|
126
|
+
return i && r && E(o, n, r), r;
|
|
127
|
+
};
|
|
128
|
+
function x(t) {
|
|
129
|
+
if (t === null || t === "")
|
|
130
|
+
return null;
|
|
131
|
+
const o = Number(t);
|
|
132
|
+
return Number.isFinite(o) ? o : null;
|
|
133
|
+
}
|
|
134
|
+
function C(t) {
|
|
135
|
+
return t == null ? null : String(t);
|
|
136
|
+
}
|
|
137
|
+
const U = e.DayHourMinute, $ = a.Long, j = /* @__PURE__ */ new Set([
|
|
138
|
+
e.Day,
|
|
139
|
+
e.DayHour,
|
|
140
|
+
e.DayHourMinute,
|
|
141
|
+
e.DayHourMinuteSecond,
|
|
142
|
+
e.Hour,
|
|
143
|
+
e.HourMinute,
|
|
144
|
+
e.HourMinuteSecond,
|
|
145
|
+
e.Minute,
|
|
146
|
+
e.MinuteSecond,
|
|
147
|
+
e.Second
|
|
148
|
+
]), z = /* @__PURE__ */ new Set([
|
|
149
|
+
a.Long,
|
|
150
|
+
a.Short,
|
|
151
|
+
a.Narrow,
|
|
152
|
+
a.Digital
|
|
153
|
+
]);
|
|
154
|
+
let u = class extends g {
|
|
155
|
+
constructor() {
|
|
156
|
+
super(...arguments), this.localize = new N(this), this.duration = null, this.placeholder = "", this.unitsFormat = e.DayHourMinute, this.locale = y.English, this.displayStyle = a.Long, this.inputUnit = p.Millisecond, this.formattedDuration = "0";
|
|
157
|
+
}
|
|
158
|
+
updateFormattedDuration() {
|
|
159
|
+
const t = this.normalizeDurationToMilliseconds();
|
|
160
|
+
if (t == null || t === 0 || !Number.isFinite(t)) {
|
|
161
|
+
this.formattedDuration = "0";
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const o = j.has(this.unitsFormat) ? this.unitsFormat : U, n = z.has(this.displayStyle) ? this.displayStyle : $, i = F(t, o);
|
|
165
|
+
try {
|
|
166
|
+
this.formattedDuration = v(i, n, this.locale) || "0";
|
|
167
|
+
} catch {
|
|
168
|
+
const r = I(i);
|
|
169
|
+
this.formattedDuration = L(r, n);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
normalizeDurationToMilliseconds() {
|
|
173
|
+
return this.duration === null || this.duration === void 0 ? null : Number.isFinite(this.duration) ? this.inputUnit === p.Second ? this.duration * P : this.duration : Number.NaN;
|
|
174
|
+
}
|
|
175
|
+
render() {
|
|
176
|
+
const t = this.placeholder || this.localize.term("ongoing");
|
|
177
|
+
return this.duration == null || Number.isNaN(this.duration) ? S`<span part="base" class="format-time">${t}</span>` : S`<span part="base" class="format-time">${this.formattedDuration}</span>`;
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
u.styles = [w, T];
|
|
181
|
+
u.dependencies = {};
|
|
182
|
+
l([
|
|
183
|
+
d({
|
|
184
|
+
converter: {
|
|
185
|
+
fromAttribute: x,
|
|
186
|
+
toAttribute: C
|
|
187
|
+
},
|
|
188
|
+
reflect: !0
|
|
189
|
+
})
|
|
190
|
+
], u.prototype, "duration", 2);
|
|
191
|
+
l([
|
|
192
|
+
d({ type: String })
|
|
193
|
+
], u.prototype, "placeholder", 2);
|
|
194
|
+
l([
|
|
195
|
+
d({ attribute: "units-format", reflect: !0, type: String })
|
|
196
|
+
], u.prototype, "unitsFormat", 2);
|
|
197
|
+
l([
|
|
198
|
+
d({ type: String })
|
|
199
|
+
], u.prototype, "locale", 2);
|
|
200
|
+
l([
|
|
201
|
+
d({ attribute: "display-style", reflect: !0, type: String })
|
|
202
|
+
], u.prototype, "displayStyle", 2);
|
|
203
|
+
l([
|
|
204
|
+
d({ attribute: "input-unit", type: String })
|
|
205
|
+
], u.prototype, "inputUnit", 2);
|
|
206
|
+
l([
|
|
207
|
+
H()
|
|
208
|
+
], u.prototype, "formattedDuration", 2);
|
|
209
|
+
l([
|
|
210
|
+
m("displayStyle", { waitUntilFirstUpdate: !0 }),
|
|
211
|
+
m("unitsFormat", { waitUntilFirstUpdate: !0 }),
|
|
212
|
+
m("inputUnit", { waitUntilFirstUpdate: !0 }),
|
|
213
|
+
m("locale", { waitUntilFirstUpdate: !0 }),
|
|
214
|
+
m("duration")
|
|
215
|
+
], u.prototype, "updateFormattedDuration", 1);
|
|
216
|
+
u = l([
|
|
217
|
+
M("cx-format-time")
|
|
218
|
+
], u);
|
|
219
|
+
export {
|
|
220
|
+
u as C,
|
|
221
|
+
a as D,
|
|
222
|
+
B as M,
|
|
223
|
+
e as U,
|
|
224
|
+
x as f,
|
|
225
|
+
C as t
|
|
226
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import k from "../components/copy-button.js";
|
|
2
2
|
import { i as u, n as c, C as b, c as x } from "./custom-element.vnXBMQxc.js";
|
|
3
3
|
import { c as v } from "./component.styles.CI-v8BZa.js";
|
|
4
|
-
import { L as y } from "./i18n.
|
|
4
|
+
import { L as y } from "./i18n.C3Z8Xe8q.js";
|
|
5
5
|
import { w } from "./watch.BCJD77bD.js";
|
|
6
6
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
7
7
|
import { e as g } from "./class-map.CoZTSvbM.js";
|
|
@@ -361,6 +361,7 @@ const m = {
|
|
|
361
361
|
environment: "Environment",
|
|
362
362
|
error: "Error",
|
|
363
363
|
errorUpdatingChapters: "Error updating chapters",
|
|
364
|
+
estimatedReadingTime: "Estimated reading time:",
|
|
364
365
|
example: (e) => `Example: ${e}`,
|
|
365
366
|
executeACommand: "Execute a command",
|
|
366
367
|
exitFullscreen: "Exit fullscreen",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as d, n as r, C as h, x as p, c as y } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { c as u } from "./component.styles.CI-v8BZa.js";
|
|
3
|
-
import { L as g } from "./i18n.
|
|
3
|
+
import { L as g } from "./i18n.C3Z8Xe8q.js";
|
|
4
4
|
import { w as v } from "./watch.BCJD77bD.js";
|
|
5
5
|
import { e as b } from "./query.BBf1UFkC.js";
|
|
6
6
|
import { e as x } from "./class-map.CoZTSvbM.js";
|
|
@@ -3,8 +3,8 @@ import { r as H } from "./state.Cw55xXlb.js";
|
|
|
3
3
|
import { e as X } from "./query.BBf1UFkC.js";
|
|
4
4
|
import { E as $e, b as de, a as We } from "./index.Cpamj0jB.js";
|
|
5
5
|
import { c as Ae } from "./component.styles.CI-v8BZa.js";
|
|
6
|
-
import { C as Oe, d as Me } from "./popup.
|
|
7
|
-
import { L as De } from "./i18n.
|
|
6
|
+
import { C as Oe, d as Me } from "./popup.Ba501Rgg.js";
|
|
7
|
+
import { L as De } from "./i18n.C3Z8Xe8q.js";
|
|
8
8
|
import { w as q } from "./watch.BCJD77bD.js";
|
|
9
9
|
import { e as j } from "./class-map.CoZTSvbM.js";
|
|
10
10
|
import { o as je } from "./if-defined.MfEgpxEN.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as z } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.CiWlWCNb.js";
|
|
2
|
+
import { C as z } from "./dialog.C28qzMSQ.js";
|
|
3
3
|
import M from "../components/grid.js";
|
|
4
4
|
import q from "../components/grid-item.js";
|
|
5
5
|
import C from "../components/input.js";
|
|
@@ -7,12 +7,12 @@ import T from "../components/line-clamp.js";
|
|
|
7
7
|
import R from "../components/radio.js";
|
|
8
8
|
import O from "../components/radio-group.js";
|
|
9
9
|
import $ from "../components/space.js";
|
|
10
|
-
import { C as P, H as k } from "./table.
|
|
10
|
+
import { C as P, H as k } from "./table.C8gqB3Ym.js";
|
|
11
11
|
import { C as I } from "./typography.BFpl0WMA.js";
|
|
12
12
|
import { i as A, n, C as w, x as l, c as E } from "./custom-element.vnXBMQxc.js";
|
|
13
13
|
import { c as D } from "./component.styles.CI-v8BZa.js";
|
|
14
|
-
import { d as F } from "./popup.
|
|
15
|
-
import { L as S } from "./i18n.
|
|
14
|
+
import { d as F } from "./popup.Ba501Rgg.js";
|
|
15
|
+
import { L as S } from "./i18n.C3Z8Xe8q.js";
|
|
16
16
|
import { w as g } from "./watch.BCJD77bD.js";
|
|
17
17
|
import { r as x } from "./state.Cw55xXlb.js";
|
|
18
18
|
import { e as b } from "./query.BBf1UFkC.js";
|
|
@@ -22,7 +22,7 @@ import { c as y } from "./repeat.CauKaXyy.js";
|
|
|
22
22
|
import { n as m } from "./when.Dr1es41R.js";
|
|
23
23
|
import { t as B } from "./toString.CL_lYXbK.js";
|
|
24
24
|
import H from "../components/icon-button.js";
|
|
25
|
-
import { C as N } from "./image.
|
|
25
|
+
import { C as N } from "./image.BJfasRY_.js";
|
|
26
26
|
import { t as U, a as G, D as v } from "./asset.Ba-CxnNM.js";
|
|
27
27
|
import { a as V } from "./index.Cpamj0jB.js";
|
|
28
28
|
import { A as u } from "./content-builder.UlVFSATk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as x, n as r, C as v, x as h, c as m } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { c as g } from "./component.styles.CI-v8BZa.js";
|
|
3
|
-
import { L as b } from "./i18n.
|
|
3
|
+
import { L as b } from "./i18n.C3Z8Xe8q.js";
|
|
4
4
|
import { w as d } from "./watch.BCJD77bD.js";
|
|
5
5
|
import { r as f } from "./state.Cw55xXlb.js";
|
|
6
6
|
import { e as _ } from "./query.BBf1UFkC.js";
|