@orangelogic/design-system 2.104.0 → 2.106.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/{AxisLabelRadial.Bs1P_q_F.js → AxisLabelRadial.C4AH2ZWx.js} +1 -1
- package/library/chunks/{BaseColumnSeries.C7jwOxIJ.js → BaseColumnSeries.BV8sY1Da.js} +1 -1
- package/library/chunks/{CandlestickSeries.CkXGtRWE.js → CandlestickSeries.C8BE8OT-.js} +2 -2
- package/library/chunks/{Circle.DBa5Ok8V.js → Circle.BaJWdg6Z.js} +1 -1
- package/library/chunks/{ColumnSeries.DGazbfza.js → ColumnSeries.BGUw3nLY.js} +2 -2
- package/library/chunks/{EditableAxisLabel.wN0t_G2B.js → EditableAxisLabel.CsgqEVmA.js} +2 -2
- package/library/chunks/{EditableLabel.BWeq6fgX.js → EditableLabel.gd9mjKfA.js} +1 -1
- package/library/chunks/{Gradient.CdcsPIru.js → Gradient.Sa3COx_2.js} +1 -1
- package/library/chunks/{LinearGradient.B1z9AGUt.js → LinearGradient.BM0pPmvI.js} +2 -2
- package/library/chunks/{Picture.YSPC0l0Q.js → Picture.DVyGQOmS.js} +1 -1
- package/library/chunks/{Polygon.BwMvXN2H.js → Polygon.Du2DRvxU.js} +1 -1
- package/library/chunks/{ProgressPie.DlCwXN17.js → ProgressPie.D3FRfVo5.js} +5 -5
- package/library/chunks/{RadialLabel.DyVOf2K8.js → RadialLabel.Dgipjivh.js} +1 -1
- package/library/chunks/{Scrollbar.BdZVb_Z-.js → Scrollbar.BDbLJ_xZ.js} +1 -1
- package/library/chunks/{Slice.DiEswWa6.js → Slice.BIXpM75a.js} +1 -1
- package/library/chunks/{Slider.C20No2z5.js → Slider.BZNFS2HS.js} +1 -1
- package/library/chunks/{SpriteResizer.DFnmcy0h.js → SpriteResizer.awVrrc-n.js} +1 -1
- package/library/chunks/{Triangle.BaOef7HV.js → Triangle.DW7bUiPK.js} +1 -1
- package/library/chunks/{ZoomTools.D5JPehoL.js → ZoomTools.CSBkRpSo.js} +1 -1
- package/library/chunks/_baseIteratee.DpzDid58.js +152 -0
- package/library/chunks/_baseUniq.HFKneygy.js +53 -0
- package/library/chunks/{am-chart.H2jnOzFc.js → am-chart.sBfZlJdc.js} +252 -252
- package/library/chunks/{animation.7ifl4x2S.js → animation.8MjXJybe.js} +1 -1
- package/library/chunks/asset-link-format.B0c92pSs.js +6 -0
- package/library/chunks/{asset.DmOI7fQJ.js → asset.Tjoo0ngC.js} +63 -57
- package/library/chunks/{button.CAa1kvwe.js → button.CZ-e_TGN.js} +2 -2
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.i-sHIcnm.js} +1 -1
- package/library/chunks/{color-swatch-group.pyN7NkEj.js → color-swatch-group.BTwy546N.js} +6 -6
- package/library/chunks/{color-swatch.DfJDZHlk.js → color-swatch.DHxppzoQ.js} +2 -2
- package/library/chunks/{colorPicker.06n6P3aK.js → colorPicker.r8zsh6Oj.js} +5 -5
- package/library/chunks/{confirm-popover.DffsrEEf.js → confirm-popover.DknitT29.js} +3 -3
- package/library/chunks/{content-builder.CcgZciZN.js → content-builder.B-bd8FaV.js} +2 -2
- package/library/chunks/{cropper.Bib8Abm3.js → cropper.CMfBGsNv.js} +1 -1
- package/library/chunks/{dialog.08JIK4Kd.js → dialog.BOWFhWcd.js} +3 -3
- package/library/chunks/{dot-pagination.-nDdQxJN.js → dot-pagination.CBRkADz0.js} +2 -2
- package/library/chunks/{asset.types.KXRZEtBr.js → endpoints.DBlquU2-.js} +417 -418
- package/library/chunks/{exporting.Chnl3UWi.js → exporting.B3VErmmW.js} +2 -2
- package/library/chunks/{file-on-demand.D5xRAZKN.js → file-on-demand.BVA_s4TR.js} +40 -39
- package/library/chunks/{flow.D2CqFQa7.js → flow.gWPD-GN_.js} +5 -5
- package/library/chunks/{folder-select.D4haLI38.js → folder-select.EVuyDx55.js} +98 -98
- package/library/chunks/{gantt.DSHD2gjO.js → gantt.D_6T9w75.js} +8 -8
- package/library/chunks/{header.BZxyeLPK.js → header.inh-TC_q.js} +2 -2
- package/library/chunks/{hierarchy.DwVsMmsP.js → hierarchy.BeJLXp9N.js} +5 -5
- package/library/chunks/{hub-connection.Ot2odiCz.js → hub-connection.Dri0ZNfh.js} +1 -1
- package/library/chunks/{i18n.BABe9hN4.js → i18n.DmmFsjwP.js} +7 -1
- package/library/chunks/{icon-button.C2s3pHG4.js → icon-button.CHh2iNJJ.js} +1 -1
- package/library/chunks/{iframe.DPccxsnE.js → iframe.duVt7WWc.js} +2 -2
- package/library/chunks/image.DdtDzup6.js +821 -0
- package/library/chunks/{index.C9khsiad.js → index.CnBD7_1u.js} +17 -17
- package/library/chunks/{json.zyETMOw-.js → json.BTCD_bjV.js} +3 -3
- package/library/chunks/{list-editor.CJQ6AEs1.js → list-editor.DKEh6VBL.js} +12 -12
- package/library/chunks/{map.CqM2O6LB.js → map.HWubaOh9.js} +2 -2
- package/library/chunks/{option.DGXQzdtb.js → option.B6cSZiX6.js} +2 -2
- package/library/chunks/{pagination.DhtwOCF6.js → pagination.RXrwBaR8.js} +5 -5
- package/library/chunks/{percent.DuQwbCCg.js → percent.0CeOGNP1.js} +3 -3
- package/library/chunks/{radar.FpYl3UH5.js → radar.CDUzjkcg.js} +4 -4
- package/library/chunks/resizable-component.styles.sAhMVN1H.js +283 -0
- package/library/chunks/{responsive.Oz9HWjyQ.js → responsive.Aigicabj.js} +1 -1
- package/library/chunks/{sliceGrouper.BsE7fGMt.js → sliceGrouper.nPe6eWIh.js} +1 -1
- package/library/chunks/{stock.BR-ag4Pt.js → stock.CmWtnkxv.js} +9 -9
- package/library/chunks/{tab-group.BhCf9Smq.js → tab-group.BA4PlJhR.js} +5 -5
- package/library/chunks/{table.CRDY_C9O.js → table.Dh2C2f1c.js} +6 -6
- package/library/chunks/{timeline.DkzkmgEM.js → timeline.DDCHQ84a.js} +5 -5
- package/library/chunks/{toString.CL_lYXbK.js → toString.CAY8lys2.js} +1 -1
- package/library/chunks/{transformation.Dir8s_wm.js → transformation.BlQCWMfI.js} +1 -1
- package/library/chunks/{tree.CJculPt6.js → tree.BO4oLcdB.js} +2 -2
- package/library/chunks/{venn.D739bOV3.js → venn.BZgn9wxo.js} +1 -1
- package/library/chunks/{watch.BCJD77bD.js → watch.CThbualB.js} +8 -8
- package/library/chunks/wavesurfer.esm.Cwi1pz64.js +1276 -0
- package/library/chunks/{wc.DzW311D-.js → wc.BUEDSaz-.js} +1 -1
- package/library/chunks/{xy.DCRDfTsa.js → xy.Wbux-yPv.js} +10 -10
- package/library/components/alert.js +3 -3
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +1 -1
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +16 -11
- package/library/components/atoms.js +166 -164
- package/library/components/audio.d.ts +3 -0
- package/library/components/audio.js +237 -0
- package/library/components/avatar.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +7 -7
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +2 -2
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +1 -1
- package/library/components/dot-pagination.js +3 -3
- package/library/components/drawer.js +4 -4
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +8 -7
- package/library/components/e-chart.js +2 -2
- package/library/components/element-clamp.js +3 -3
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +5 -5
- 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 +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +3 -3
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +1 -1
- package/library/components/iframe.js +3 -3
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +5 -4
- package/library/components/include.js +1 -1
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +3 -3
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- 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/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +2 -2
- package/library/components/relative-time.js +1 -1
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +2 -2
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +2 -2
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +3 -3
- package/library/components/table.js +6 -6
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +3 -3
- package/library/components/tree.js +3 -3
- package/library/components/typeface.js +3 -3
- package/library/components/types.js +17027 -16754
- package/library/components/video.js +9 -8
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +114 -0
- package/library/packages/atoms/src/components/audio/audio.styles.d.ts +2 -0
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +5 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +28 -0
- package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/audio.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/plugins/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +2 -0
- package/library/packages/types/src/asset-link-format.d.ts +1 -0
- package/library/packages/types/src/content-builder.d.ts +3 -2
- package/library/packages/types/src/gallery-item.d.ts +2 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +6 -0
- package/library/react-web-component.d.ts +206 -96
- package/library/utils.js +5 -5
- package/package.json +1 -1
- package/library/chunks/_baseUniq.BUihBa8c.js +0 -202
- package/library/chunks/asset-link-format.BSRDqHg7.js +0 -6
- package/library/chunks/image.DB68R-yp.js +0 -1095
- package/library/packages/services/src/api/asset/asset.types.d.ts +0 -233
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { r as m, R as y } from "../chunks/resizable-component.styles.sAhMVN1H.js";
|
|
2
|
+
import { c as v } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as g } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as S } from "../chunks/i18n.DmmFsjwP.js";
|
|
5
|
+
import { w as f } from "../chunks/watch.CThbualB.js";
|
|
6
|
+
import { i as w, x as p } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
|
+
import { n as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
+
import { r as u } from "../chunks/state.CSDxrqLd.js";
|
|
9
|
+
import { r as x } from "../chunks/query-async.CTgXGyQ5.js";
|
|
10
|
+
import { e as C } from "../chunks/class-map.BiVq-cVR.js";
|
|
11
|
+
import { n as d } from "../chunks/when.Dr1es41R.js";
|
|
12
|
+
import { C as b } from "../chunks/icon-button.CHh2iNJJ.js";
|
|
13
|
+
import { C as W } from "../chunks/typography.DJC_UXgs.js";
|
|
14
|
+
const _ = w`:host{background-color:var(--background-color,var(--cx-color-neutral-0));border-radius:var(--border-radius,0px);border:var(--border,0px);box-sizing:border-box;color:var(--text-color,var(--cx-color-neutral));height:var(--height,auto);width:var(--width,100%);border-style:solid;display:block;position:relative}.audio{border-radius:inherit;gap:var(--cx-spacing-x-small,4px);height:100%;padding:var(--cx-spacing-small,8px);flex-direction:column;justify-content:center;display:flex;overflow:hidden}.audio--empty{height:var(--height,200px);min-height:var(--min-height,100%);padding:0}.audio--empty:before{background-color:var(--cx-color-neutral-1000);color:var(--cx-color-neutral-0);content:attr(data-empty-label);font-family:var(--cx-font-sans);font-size:clamp(var(--cx-font-size-x-small), 4cqw, var(--cx-font-size-large));font-weight:var(--cx-font-weight-semibold);text-align:center;height:100%;text-shadow:.05em .05em .1em var(--cx-color-neutral-1000);justify-content:center;align-items:center;width:100%;line-height:1;display:flex}.audio__play-button{--cx-input-border-width:2px;--cx-input-border-color:var(--text-color,var(--cx-color-neutral))}.audio__play-button::part(base){width:50px;height:50px;color:var(--text-color,var(--cx-color-neutral))!important}.audio__player{align-items:center;gap:var(--cx-spacing-small,8px);display:flex}.audio__waveform{flex:1;min-width:0;overflow:hidden}.audio__footer{font-size:var(--cx-font-size-x-small,11px);color:var(--text-color,var(--cx-color-neutral));flex-direction:column;gap:0;padding-left:2px;display:flex}.audio__time{color:var(--text-color,var(--cx-color-neutral));font-variant-numeric:tabular-nums}.audio__filename{opacity:.75;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}`;
|
|
15
|
+
var P = Object.defineProperty, z = Object.getOwnPropertyDescriptor, n = (e, t, r, o) => {
|
|
16
|
+
for (var i = o > 1 ? void 0 : o ? z(t, r) : t, s = e.length - 1, l; s >= 0; s--)
|
|
17
|
+
(l = e[s]) && (i = (o ? l(t, r, i) : l(i)) || i);
|
|
18
|
+
return o && i && P(t, r, i), i;
|
|
19
|
+
};
|
|
20
|
+
function $(e) {
|
|
21
|
+
const t = "light-dark(";
|
|
22
|
+
if (!e.startsWith(t) || !e.endsWith(")"))
|
|
23
|
+
return null;
|
|
24
|
+
const r = e.slice(t.length, -1);
|
|
25
|
+
let o = 0, i = -1;
|
|
26
|
+
for (let h = 0; h < r.length; h++)
|
|
27
|
+
if (r[h] === "(")
|
|
28
|
+
o++;
|
|
29
|
+
else if (r[h] === ")")
|
|
30
|
+
o--;
|
|
31
|
+
else if (r[h] === "," && o === 0) {
|
|
32
|
+
i = h;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
if (i === -1)
|
|
36
|
+
return null;
|
|
37
|
+
const s = r.slice(0, i).trim(), l = r.slice(i + 1).trim();
|
|
38
|
+
return !CSS.supports("color", s) || !CSS.supports("color", l) ? null : [s, l];
|
|
39
|
+
}
|
|
40
|
+
let a = class extends y {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(), this.localize = new S(this), this.waveSurfer = null, this.srcLoadVersion = 0, this.src = "", this.name = "", this.autoplay = !1, this.loop = !1, this.waveColor = ["", ""], this.isPlaying = !1, this.isLoaded = !1, this.isError = !1, this.currentTimeSeconds = 0, this.durationSeconds = 0, this.onWaveSurferReady = this.onWaveSurferReady.bind(this), this.onWaveSurferPlay = this.onWaveSurferPlay.bind(this), this.onWaveSurferPause = this.onWaveSurferPause.bind(this), this.onWaveSurferTimeUpdate = this.onWaveSurferTimeUpdate.bind(this), this.onWaveSurferFinish = this.onWaveSurferFinish.bind(this), this.onWaveSurferError = this.onWaveSurferError.bind(this);
|
|
43
|
+
}
|
|
44
|
+
runConnectedCallback() {
|
|
45
|
+
this.hasUpdated && this.requestUpdate("src");
|
|
46
|
+
}
|
|
47
|
+
disconnectedCallback() {
|
|
48
|
+
super.disconnectedCallback(), this.srcLoadVersion++, this.cleanUp();
|
|
49
|
+
}
|
|
50
|
+
async handleSrcChange() {
|
|
51
|
+
await this.applySrc(this.src);
|
|
52
|
+
}
|
|
53
|
+
async applySrc(e) {
|
|
54
|
+
const t = ++this.srcLoadVersion;
|
|
55
|
+
if (this.isLoaded = !1, this.isPlaying = !1, !e) {
|
|
56
|
+
this.cleanUp();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
await this.waveformContainerAsync, !(t !== this.srcLoadVersion || !this.isConnected) && await this.setupWaveSurfer(e, t);
|
|
60
|
+
}
|
|
61
|
+
async handleWaveColorThemeChange() {
|
|
62
|
+
this.src && this.waveSurfer && (await this.updateComplete, this.waveSurfer.setOptions(this.setupColors()));
|
|
63
|
+
}
|
|
64
|
+
updated(e) {
|
|
65
|
+
super.updated(e), (e.has("width") || e.has("height") || e.has("resizeSize")) && this.handleSizeChange();
|
|
66
|
+
}
|
|
67
|
+
onWaveSurferReady() {
|
|
68
|
+
this.isLoaded = !0, this.durationSeconds = this.waveSurfer.getDuration();
|
|
69
|
+
}
|
|
70
|
+
onWaveSurferPlay() {
|
|
71
|
+
this.isPlaying = !0, this.emit("cx-play");
|
|
72
|
+
}
|
|
73
|
+
onWaveSurferPause() {
|
|
74
|
+
this.isPlaying = !1, this.emit("cx-pause");
|
|
75
|
+
}
|
|
76
|
+
onWaveSurferTimeUpdate(e) {
|
|
77
|
+
this.currentTimeSeconds = e, this.emit("cx-time-update", {
|
|
78
|
+
detail: {
|
|
79
|
+
time: e
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
onWaveSurferFinish() {
|
|
84
|
+
this.isPlaying = !1, this.emit("cx-ended");
|
|
85
|
+
}
|
|
86
|
+
onWaveSurferError() {
|
|
87
|
+
this.isError = !0, this.emit("cx-error");
|
|
88
|
+
}
|
|
89
|
+
resolveColorValue(e) {
|
|
90
|
+
if (!e.startsWith("var("))
|
|
91
|
+
return e;
|
|
92
|
+
const t = e.match(/var\(\s*(--[\w-]+)/)?.[1];
|
|
93
|
+
return t && getComputedStyle(this).getPropertyValue(t).trim() || e;
|
|
94
|
+
}
|
|
95
|
+
computeCursorColor(e) {
|
|
96
|
+
const t = document.createElement("canvas");
|
|
97
|
+
t.width = 1, t.height = 1;
|
|
98
|
+
const r = t.getContext("2d");
|
|
99
|
+
if (!r)
|
|
100
|
+
return e;
|
|
101
|
+
r.fillStyle = e, r.fillRect(0, 0, 1, 1);
|
|
102
|
+
const [o, i, s] = r.getImageData(0, 0, 1, 1).data;
|
|
103
|
+
return (0.299 * o + 0.587 * i + 0.114 * s) / 255 > 0.5 ? `rgb(${Math.round(o * 0.5)}, ${Math.round(i * 0.5)}, ${Math.round(s * 0.5)})` : `rgb(${Math.round(o + (255 - o) * 0.5)}, ${Math.round(i + (255 - i) * 0.5)}, ${Math.round(s + (255 - s) * 0.5)})`;
|
|
104
|
+
}
|
|
105
|
+
setupColors() {
|
|
106
|
+
const t = getComputedStyle(this).getPropertyValue("--cx-color-primary").trim(), r = (this.theme === "dark" ? this.waveColor[1] : this.waveColor[0]) || t, o = this.resolveColorValue(r), i = this.resolveColorValue(
|
|
107
|
+
this.theme === "dark" ? this.waveColor[1] : this.waveColor[0]
|
|
108
|
+
), s = this.computeCursorColor(o);
|
|
109
|
+
return {
|
|
110
|
+
cursorColor: s,
|
|
111
|
+
progressColor: s,
|
|
112
|
+
waveColor: i
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
async setupWaveSurfer(e, t = this.srcLoadVersion) {
|
|
116
|
+
this.cleanUp();
|
|
117
|
+
const r = await this.waveformContainerAsync;
|
|
118
|
+
if (t !== this.srcLoadVersion || !r || !e || !this.isConnected)
|
|
119
|
+
return;
|
|
120
|
+
const { default: o } = await import("../chunks/wavesurfer.esm.Cwi1pz64.js");
|
|
121
|
+
t !== this.srcLoadVersion || !this.isConnected || (this.waveSurfer = o.create({
|
|
122
|
+
barGap: 1,
|
|
123
|
+
barRadius: 2,
|
|
124
|
+
barWidth: 2,
|
|
125
|
+
container: r,
|
|
126
|
+
height: "auto",
|
|
127
|
+
normalize: !0,
|
|
128
|
+
url: e,
|
|
129
|
+
...this.setupColors()
|
|
130
|
+
}), this.attachWaveSurferEvents(), this.autoplay && this.waveSurfer.play());
|
|
131
|
+
}
|
|
132
|
+
attachWaveSurferEvents() {
|
|
133
|
+
this.waveSurfer && (this.waveSurfer.on("ready", this.onWaveSurferReady), this.waveSurfer.on("play", this.onWaveSurferPlay), this.waveSurfer.on("pause", this.onWaveSurferPause), this.waveSurfer.on("timeupdate", this.onWaveSurferTimeUpdate), this.waveSurfer.on("finish", this.onWaveSurferFinish), this.waveSurfer.on("error", this.onWaveSurferError));
|
|
134
|
+
}
|
|
135
|
+
cleanUp() {
|
|
136
|
+
this.waveSurfer && (this.waveSurfer.destroy(), this.waveSurfer = null), this.isLoaded = !1, this.isPlaying = !1, this.currentTimeSeconds = 0, this.durationSeconds = 0;
|
|
137
|
+
}
|
|
138
|
+
handleSizeChange() {
|
|
139
|
+
const e = this.isResizing ? `${this.resizeSize.width}px` : this.width, t = this.isResizing ? `${this.resizeSize.height}px` : this.height;
|
|
140
|
+
this.width || this.isResizing ? this.style.setProperty("--width", e) : this.style.removeProperty("--width"), this.height || this.isResizing ? this.style.setProperty("--height", t) : this.style.removeProperty("--height");
|
|
141
|
+
}
|
|
142
|
+
/** Starts audio playback. */
|
|
143
|
+
play() {
|
|
144
|
+
this.waveSurfer?.play();
|
|
145
|
+
}
|
|
146
|
+
/** Pauses audio playback. */
|
|
147
|
+
pause() {
|
|
148
|
+
this.waveSurfer?.pause();
|
|
149
|
+
}
|
|
150
|
+
/** Toggles between play and pause. */
|
|
151
|
+
togglePlay() {
|
|
152
|
+
this.isPlaying ? this.pause() : this.play();
|
|
153
|
+
}
|
|
154
|
+
formatTime(e) {
|
|
155
|
+
const t = Math.floor(e / 60), r = Math.floor(e % 60);
|
|
156
|
+
return `${t}:${r.toString().padStart(2, "0")}`;
|
|
157
|
+
}
|
|
158
|
+
handlePlayButtonKeyDown(e) {
|
|
159
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.togglePlay());
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
const e = !this.src, t = this.formatTime(this.currentTimeSeconds), r = this.formatTime(this.durationSeconds);
|
|
163
|
+
return p`<div part="base" class=${C({ audio: !0, "audio--empty": e })} data-empty-label=${this.localize.term("emptyAudio")} @click=${this.startResizing}>${d(
|
|
164
|
+
!e,
|
|
165
|
+
() => p`<div part="player" class="audio__player"><cx-icon-button part="play-button" class="audio__play-button" aria-pressed=${String(this.isPlaying)} circle label=${this.localize.term(this.isPlaying ? "pause" : "play")} name=${this.isPlaying ? "pause" : "play_arrow"} variant="filled" outline @click=${this.togglePlay} @keydown=${this.handlePlayButtonKeyDown}></cx-icon-button><div part="waveform" class="audio__waveform"></div></div><div part="footer" class="audio__footer"><cx-typography part="time" variant="small" class="audio__time">${t} / ${r}</cx-typography>${d(
|
|
166
|
+
this.name,
|
|
167
|
+
() => p`<cx-typography part="filename" class="audio__filename">${this.name}</cx-typography>`
|
|
168
|
+
)}</div>`
|
|
169
|
+
)}</div>${d(this.resizable && this.isResizeActive, () => this.renderResizer())}
|
|
170
|
+
`;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
a.styles = [v, m, _];
|
|
174
|
+
a.dependencies = {
|
|
175
|
+
"cx-icon-button": b,
|
|
176
|
+
"cx-typography": W
|
|
177
|
+
};
|
|
178
|
+
n([
|
|
179
|
+
x(".audio__waveform")
|
|
180
|
+
], a.prototype, "waveformContainerAsync", 2);
|
|
181
|
+
n([
|
|
182
|
+
c({ reflect: !0, type: String })
|
|
183
|
+
], a.prototype, "src", 2);
|
|
184
|
+
n([
|
|
185
|
+
c({ reflect: !0, type: String })
|
|
186
|
+
], a.prototype, "name", 2);
|
|
187
|
+
n([
|
|
188
|
+
c({ reflect: !0, type: Boolean })
|
|
189
|
+
], a.prototype, "autoplay", 2);
|
|
190
|
+
n([
|
|
191
|
+
c({ reflect: !0, type: Boolean })
|
|
192
|
+
], a.prototype, "loop", 2);
|
|
193
|
+
n([
|
|
194
|
+
c({
|
|
195
|
+
attribute: "wave-color",
|
|
196
|
+
converter: {
|
|
197
|
+
fromAttribute(e) {
|
|
198
|
+
if (!e)
|
|
199
|
+
return ["", ""];
|
|
200
|
+
const t = $(e);
|
|
201
|
+
return t || (CSS.supports("color", e) ? [e, e] : ["", ""]);
|
|
202
|
+
},
|
|
203
|
+
toAttribute([e, t]) {
|
|
204
|
+
return e === t ? e : `light-dark(${e}, ${t})`;
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
reflect: !0
|
|
208
|
+
})
|
|
209
|
+
], a.prototype, "waveColor", 2);
|
|
210
|
+
n([
|
|
211
|
+
u()
|
|
212
|
+
], a.prototype, "isPlaying", 2);
|
|
213
|
+
n([
|
|
214
|
+
u()
|
|
215
|
+
], a.prototype, "isLoaded", 2);
|
|
216
|
+
n([
|
|
217
|
+
u()
|
|
218
|
+
], a.prototype, "isError", 2);
|
|
219
|
+
n([
|
|
220
|
+
u()
|
|
221
|
+
], a.prototype, "currentTimeSeconds", 2);
|
|
222
|
+
n([
|
|
223
|
+
u()
|
|
224
|
+
], a.prototype, "durationSeconds", 2);
|
|
225
|
+
n([
|
|
226
|
+
f("src")
|
|
227
|
+
], a.prototype, "handleSrcChange", 1);
|
|
228
|
+
n([
|
|
229
|
+
f("theme", { waitUntilFirstUpdate: !0 }),
|
|
230
|
+
f("waveColor", { waitUntilFirstUpdate: !0 })
|
|
231
|
+
], a.prototype, "handleWaveColorThemeChange", 1);
|
|
232
|
+
a = n([
|
|
233
|
+
g("cx-audio")
|
|
234
|
+
], a);
|
|
235
|
+
export {
|
|
236
|
+
a as default
|
|
237
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as i, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as d } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as v } from "../chunks/watch.
|
|
4
|
+
import { w as v } from "../chunks/watch.CThbualB.js";
|
|
5
5
|
import { i as g, x as l } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { r as u } from "../chunks/state.CSDxrqLd.js";
|
|
7
7
|
import { e as f } from "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -3,7 +3,7 @@ import p from "./space.js";
|
|
|
3
3
|
import { n as u, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import { c as h } from "../chunks/component.styles.CRO4Odto.js";
|
|
5
5
|
import { c as d } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as x } from "../chunks/i18n.
|
|
6
|
+
import { L as x } from "../chunks/i18n.DmmFsjwP.js";
|
|
7
7
|
import { i as v, x as b } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import f from "./bicolor-picker.js";
|
|
9
9
|
const g = v`.border-width{width:72px}`;
|
|
@@ -2,7 +2,7 @@ import { n as p, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as f } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as d } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { H as h } from "../chunks/slot.j5oheLJC.js";
|
|
5
|
-
import { w as u } from "../chunks/watch.
|
|
5
|
+
import { w as u } from "../chunks/watch.CThbualB.js";
|
|
6
6
|
import { i as x, x as o } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
7
|
import { r as _ } from "../chunks/state.CSDxrqLd.js";
|
|
8
8
|
import { e as g } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as p, C as h } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as d } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as u } from "../chunks/i18n.
|
|
4
|
+
import { L as u } from "../chunks/i18n.DmmFsjwP.js";
|
|
5
5
|
import { i as f, x as b } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { e as c } from "../chunks/query.BBf1UFkC.js";
|
|
7
7
|
import g from "./icon.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import { C as h } from "../chunks/button.
|
|
3
|
+
import { C as h } from "../chunks/button.CZ-e_TGN.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/form.Ch1cwYzO.js";
|
|
6
|
-
import "../chunks/i18n.
|
|
6
|
+
import "../chunks/i18n.DmmFsjwP.js";
|
|
7
7
|
import "../chunks/slot.j5oheLJC.js";
|
|
8
|
-
import "../chunks/watch.
|
|
8
|
+
import "../chunks/watch.CThbualB.js";
|
|
9
9
|
import "../chunks/state.CSDxrqLd.js";
|
|
10
10
|
import "../chunks/query.BBf1UFkC.js";
|
|
11
11
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -5,7 +5,7 @@ import { c as g } from "../chunks/custom-element.L4WJXn1j.js";
|
|
|
5
5
|
import { d as y } from "../chunks/default-value.COZopaet.js";
|
|
6
6
|
import { F as _ } from "../chunks/form.Ch1cwYzO.js";
|
|
7
7
|
import { H as C } from "../chunks/slot.j5oheLJC.js";
|
|
8
|
-
import { w as b } from "../chunks/watch.
|
|
8
|
+
import { w as b } from "../chunks/watch.CThbualB.js";
|
|
9
9
|
import { i as w, x as n } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as $ } from "../chunks/state.CSDxrqLd.js";
|
|
11
11
|
import { e as z } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -5,9 +5,9 @@ import { d as C } from "../chunks/debounce.CIEhztrj.js";
|
|
|
5
5
|
import { d as z } from "../chunks/default-value.COZopaet.js";
|
|
6
6
|
import { d as y } from "../chunks/drag.DXEXVXPv.js";
|
|
7
7
|
import { F as D } from "../chunks/form.Ch1cwYzO.js";
|
|
8
|
-
import { L as I } from "../chunks/i18n.
|
|
8
|
+
import { L as I } from "../chunks/i18n.DmmFsjwP.js";
|
|
9
9
|
import { c as u } from "../chunks/math.DqTA6ya4.js";
|
|
10
|
-
import { w as k } from "../chunks/watch.
|
|
10
|
+
import { w as k } from "../chunks/watch.CThbualB.js";
|
|
11
11
|
import { i as E, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
12
12
|
import { r as g } from "../chunks/state.CSDxrqLd.js";
|
|
13
13
|
import { t as H } from "../chunks/event-options.CYHYGOd8.js";
|
|
@@ -16,7 +16,7 @@ import { e as b } from "../chunks/class-map.BiVq-cVR.js";
|
|
|
16
16
|
import { o as x } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
17
17
|
import { o as f } from "../chunks/style-map.llVFPd__.js";
|
|
18
18
|
import { n as d } from "../chunks/when.Dr1es41R.js";
|
|
19
|
-
import { C as M } from "../chunks/button.
|
|
19
|
+
import { C as M } from "../chunks/button.CZ-e_TGN.js";
|
|
20
20
|
import O from "./button-group.js";
|
|
21
21
|
import A from "./dropdown.js";
|
|
22
22
|
import B from "./icon.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./space.js";
|
|
2
|
-
import "../chunks/table.
|
|
2
|
+
import "../chunks/table.Dh2C2f1c.js";
|
|
3
3
|
import "../chunks/typography.DJC_UXgs.js";
|
|
4
4
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
|
-
import "../chunks/color-swatch.
|
|
5
|
+
import "../chunks/color-swatch.DHxppzoQ.js";
|
|
6
6
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
7
|
-
import { C as w } from "../chunks/color-swatch-group.
|
|
8
|
-
import "../chunks/content-builder.
|
|
7
|
+
import { C as w } from "../chunks/color-swatch-group.BTwy546N.js";
|
|
8
|
+
import "../chunks/content-builder.B-bd8FaV.js";
|
|
9
9
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
10
10
|
import "../chunks/debounce.CIEhztrj.js";
|
|
11
|
-
import "../chunks/i18n.
|
|
12
|
-
import "../chunks/watch.
|
|
13
|
-
import "../chunks/responsive.
|
|
11
|
+
import "../chunks/i18n.DmmFsjwP.js";
|
|
12
|
+
import "../chunks/watch.CThbualB.js";
|
|
13
|
+
import "../chunks/responsive.Aigicabj.js";
|
|
14
14
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
15
15
|
import "../chunks/state.CSDxrqLd.js";
|
|
16
16
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -5,12 +5,12 @@ import "./space.js";
|
|
|
5
5
|
import "../chunks/typography.DJC_UXgs.js";
|
|
6
6
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
7
7
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
8
|
-
import { C as q } from "../chunks/color-swatch.
|
|
8
|
+
import { C as q } from "../chunks/color-swatch.DHxppzoQ.js";
|
|
9
9
|
import "../chunks/color.vLD2sNTs.js";
|
|
10
10
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
11
11
|
import "../chunks/debounce.CIEhztrj.js";
|
|
12
|
-
import "../chunks/i18n.
|
|
13
|
-
import "../chunks/watch.
|
|
12
|
+
import "../chunks/i18n.DmmFsjwP.js";
|
|
13
|
+
import "../chunks/watch.CThbualB.js";
|
|
14
14
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
15
15
|
import "../chunks/state.CSDxrqLd.js";
|
|
16
16
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../chunks/button.
|
|
2
|
-
import "../chunks/dialog.
|
|
1
|
+
import "../chunks/button.CZ-e_TGN.js";
|
|
2
|
+
import "../chunks/dialog.BOWFhWcd.js";
|
|
3
3
|
import "./dropdown.js";
|
|
4
4
|
import "../chunks/typography.DJC_UXgs.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
7
|
-
import { C as x } from "../chunks/confirm-popover.
|
|
7
|
+
import { C as x } from "../chunks/confirm-popover.DknitT29.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
|
-
import "../chunks/i18n.
|
|
9
|
+
import "../chunks/i18n.DmmFsjwP.js";
|
|
10
10
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as r, C as y } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as f } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as g } from "../chunks/i18n.
|
|
4
|
+
import { L as g } from "../chunks/i18n.DmmFsjwP.js";
|
|
5
5
|
import { H as x } from "../chunks/slot.j5oheLJC.js";
|
|
6
|
-
import { w as v } from "../chunks/watch.
|
|
6
|
+
import { w as v } from "../chunks/watch.CThbualB.js";
|
|
7
7
|
import { i as _, x as b } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as u } from "../chunks/state.CSDxrqLd.js";
|
|
9
9
|
import { e as p } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import u from "./input.js";
|
|
2
|
-
import { C as h } from "../chunks/option.
|
|
2
|
+
import { C as h } from "../chunks/option.B6cSZiX6.js";
|
|
3
3
|
import m from "./select.js";
|
|
4
4
|
import x from "./space.js";
|
|
5
5
|
import { n as l, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as C } from "../chunks/component.styles.CRO4Odto.js";
|
|
7
7
|
import { C as o } from "../chunks/index.Cpamj0jB.js";
|
|
8
8
|
import { c as d } from "../chunks/custom-element.L4WJXn1j.js";
|
|
9
|
-
import { L as _ } from "../chunks/i18n.
|
|
9
|
+
import { L as _ } from "../chunks/i18n.DmmFsjwP.js";
|
|
10
10
|
import { i as v, x as y } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
const $ = v`:host{width:100%;display:block}.corner-position-input-group__inputs{width:100%}.corner-position-input-group__input{flex:1}`;
|
|
12
12
|
var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, r = (e, t, f, n) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import "../chunks/asset-link-format.
|
|
3
|
+
import "../chunks/asset-link-format.B0c92pSs.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import "../chunks/state.CSDxrqLd.js";
|
|
7
7
|
import "../chunks/query.BBf1UFkC.js";
|
|
8
8
|
import "../chunks/when.Dr1es41R.js";
|
|
9
|
-
import { C as l } from "../chunks/cropper.
|
|
9
|
+
import { C as l } from "../chunks/cropper.CMfBGsNv.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default
|
|
12
12
|
};
|
|
@@ -2,8 +2,8 @@ import { n as l, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as v } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { s as h, a as p, b as m, w as u } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as _ } from "../chunks/i18n.
|
|
6
|
-
import { w as g } from "../chunks/watch.
|
|
5
|
+
import { L as _ } from "../chunks/i18n.DmmFsjwP.js";
|
|
6
|
+
import { w as g } from "../chunks/watch.CThbualB.js";
|
|
7
7
|
import { i as w, x as k } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import { e as d } from "../chunks/query.BBf1UFkC.js";
|
|
9
9
|
import { e as C } from "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/overlayscrollbars.BMav4RQ4.js";
|
|
4
|
-
import { C as v } from "../chunks/dialog.
|
|
4
|
+
import { C as v } from "../chunks/dialog.BOWFhWcd.js";
|
|
5
5
|
import "../chunks/event.BeKOsirN.js";
|
|
6
6
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
7
|
-
import "../chunks/i18n.
|
|
7
|
+
import "../chunks/i18n.DmmFsjwP.js";
|
|
8
8
|
import "../chunks/modal.U1QltQKe.js";
|
|
9
9
|
import "../chunks/scroll.xtO5yojm.js";
|
|
10
10
|
import "../chunks/slot.j5oheLJC.js";
|
|
11
|
-
import "../chunks/watch.
|
|
11
|
+
import "../chunks/watch.CThbualB.js";
|
|
12
12
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
13
13
|
import "../chunks/state.CSDxrqLd.js";
|
|
14
14
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -18,7 +18,7 @@ import "../chunks/style-map.llVFPd__.js";
|
|
|
18
18
|
import "../chunks/when.Dr1es41R.js";
|
|
19
19
|
import "../chunks/animation-registry.HmpwNuGH.js";
|
|
20
20
|
import "./divider.js";
|
|
21
|
-
import "../chunks/icon-button.
|
|
21
|
+
import "../chunks/icon-button.CHh2iNJJ.js";
|
|
22
22
|
import "./popup.js";
|
|
23
23
|
export {
|
|
24
24
|
v as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as c, C as d } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as p } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { w as h } from "../chunks/watch.
|
|
4
|
+
import { w as h } from "../chunks/watch.CThbualB.js";
|
|
5
5
|
import { i as b, x as g } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { n as f } from "../chunks/when.Dr1es41R.js";
|
|
7
7
|
const m = b`:host{--color:var(--cx-panel-border-color);--label-color:var(--cx-color-neutral-600);--label-font-size:var(--cx-font-size-small);--width:var(--cx-panel-border-width);--spacing:var(--cx-spacing-medium);--border-style:solid;--padding:var(--spacing)}:host(:not([vertical])){width:100%;display:block}:host(:not([vertical]):not([use-padding])){padding:var(--spacing) 0}.divider__label{text-align:center;margin-bottom:var(--cx-spacing-2x-small);color:var(--label-color);font-size:var(--label-font-size);display:block}:host(:not([vertical])):after{content:" ";border-top:var(--border-style) var(--width) var(--color);display:block}:host([vertical]){height:100%;display:inline-block}:host([vertical]:not([use-padding])){padding:0 var(--spacing)}:host([vertical]):after{content:" ";border-left:var(--border-style) var(--width) var(--color);height:100%;display:inline-block}:host([use-padding]){padding:var(--padding)}`;
|
|
@@ -2,8 +2,8 @@ import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import "../chunks/i18n.
|
|
6
|
-
import "../chunks/watch.
|
|
5
|
+
import "../chunks/i18n.DmmFsjwP.js";
|
|
6
|
+
import "../chunks/watch.CThbualB.js";
|
|
7
7
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import "../chunks/state.CSDxrqLd.js";
|
|
9
9
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -13,7 +13,7 @@ import "../chunks/if-defined.BRoBj_Rp.js";
|
|
|
13
13
|
import "../chunks/map.D8heArFD.js";
|
|
14
14
|
import "../chunks/when.Dr1es41R.js";
|
|
15
15
|
import "./tooltip.js";
|
|
16
|
-
import { C as g } from "../chunks/dot-pagination
|
|
16
|
+
import { C as g } from "../chunks/dot-pagination.CBRkADz0.js";
|
|
17
17
|
export {
|
|
18
18
|
g as default
|
|
19
19
|
};
|
|
@@ -2,20 +2,20 @@ import { n as s, C as k } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as z } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { a as d, s as p, w as v } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as P } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as O } from "../chunks/i18n.
|
|
5
|
+
import { L as O } from "../chunks/i18n.DmmFsjwP.js";
|
|
6
6
|
import { M as $ } from "../chunks/modal.U1QltQKe.js";
|
|
7
7
|
import { l as w, u } from "../chunks/scroll.xtO5yojm.js";
|
|
8
8
|
import { H as B } from "../chunks/slot.j5oheLJC.js";
|
|
9
|
-
import { w as C } from "../chunks/watch.
|
|
9
|
+
import { w as C } from "../chunks/watch.CThbualB.js";
|
|
10
10
|
import { i as S, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as A } from "../chunks/state.CSDxrqLd.js";
|
|
12
12
|
import { e as y } from "../chunks/query.BBf1UFkC.js";
|
|
13
13
|
import { e as g } from "../chunks/class-map.BiVq-cVR.js";
|
|
14
14
|
import { o as _ } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
15
15
|
import { n as b } from "../chunks/when.Dr1es41R.js";
|
|
16
|
-
import { c as x } from "../chunks/capitalize.
|
|
16
|
+
import { c as x } from "../chunks/capitalize.i-sHIcnm.js";
|
|
17
17
|
import { s as o, g as c } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
18
|
-
import { C as q } from "../chunks/icon-button.
|
|
18
|
+
import { C as q } from "../chunks/icon-button.CHh2iNJJ.js";
|
|
19
19
|
const D = S`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spacing:var(--cx-spacing-large);--footer-spacing:var(--cx-spacing-large);--font-family:var(--cx-font-sans);display:contents}.drawer{top:0;pointer-events:none;width:0;height:0;inset-inline-start:0;overflow:hidden}.drawer--open{width:100%;height:100%}.drawer--persistent.drawer--open{width:var(--size);min-width:var(--size)}.drawer--contained{z-index:initial;position:absolute}.drawer--persistent{position:relative}.drawer--fixed{z-index:var(--cx-z-index-drawer);position:fixed}.drawer__panel{z-index:2;background-color:var(--cx-panel-background-color);max-width:100%;max-height:100%;box-shadow:var(--cx-shadow-large);pointer-events:all;flex-direction:column;display:flex;position:absolute;overflow:auto}.drawer__panel:focus{outline:none}.drawer--top .drawer__panel{top:0;inset-inline-end:auto;bottom:auto;width:100%;height:var(--size);inset-inline-start:0}.drawer--end .drawer__panel{top:0;inset-inline-end:0;bottom:auto;width:var(--size);height:100%;inset-inline-start:auto}.drawer--bottom .drawer__panel{top:auto;inset-inline-end:auto;bottom:0;width:100%;height:var(--size);inset-inline-start:0}.drawer--start .drawer__panel{top:0;inset-inline-end:auto;bottom:auto;width:var(--size);height:100%;inset-inline-start:0}.drawer__header{gap:var(--cx-spacing-small);padding:var(--header-spacing);border-bottom:solid 1px var(--cx-input-border-color);font-family:var(--font-family);display:flex}.drawer__header__content{flex:auto}.drawer__title{font:inherit;font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--cx-line-height-medium);align-items:center;margin:0;display:flex}.drawer__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.drawer__header-actions cx-icon-button,.drawer__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-medium);flex:none;align-items:center;display:flex}.drawer__description{font-family:var(--font-family);font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-700)}.drawer__description ::slotted(*){margin:0}.drawer__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-family:var(--font-family);flex:auto;display:block;overflow:auto}.drawer__footer{text-align:right;padding:var(--footer-spacing);font-family:var(--font-family)}.drawer__footer ::slotted(cx-button:not(:last-of-type)){margin-inline-end:var(--cx-spacing-x-small)}.drawer:not(.drawer--has-footer) .drawer__footer{display:none}.drawer__overlay{background-color:var(--cx-overlay-background-color);pointer-events:all;display:block;position:fixed;inset:0}.drawer--contained .drawer__overlay{opacity:0;position:absolute}.drawer--contained.drawer--ignore-parent-width.drawer--open{width:0;overflow:visible}.drawer--ignore-parent-width .drawer__panel{max-width:none}.drawer__overlay--disabled{display:none}@media (forced-colors:active){.drawer__panel{border:solid 1px var(--cx-color-neutral-0)}}`;
|
|
20
20
|
var E = Object.defineProperty, L = Object.getOwnPropertyDescriptor, r = (e, a, i, l) => {
|
|
21
21
|
for (var n = l > 1 ? void 0 : l ? L(a, i) : a, f = e.length - 1, m; f >= 0; f--)
|
|
@@ -2,10 +2,10 @@ import { n as s, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { w as c, s as u, a as m } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as v } from "../chunks/i18n.
|
|
5
|
+
import { L as v } from "../chunks/i18n.DmmFsjwP.js";
|
|
6
6
|
import { H as k } from "../chunks/slot.j5oheLJC.js";
|
|
7
7
|
import { g as f } from "../chunks/tabbable.CcMz3mIL.js";
|
|
8
|
-
import { w as E } from "../chunks/watch.
|
|
8
|
+
import { w as E } from "../chunks/watch.CThbualB.js";
|
|
9
9
|
import { i as C, x as D } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { e as h } from "../chunks/query.BBf1UFkC.js";
|
|
11
11
|
import { e as T } from "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { C as y } from "../chunks/button.
|
|
2
|
-
import { C as b } from "../chunks/icon-button.
|
|
3
|
-
import { C as l, a as g } from "../chunks/option.
|
|
1
|
+
import { C as y } from "../chunks/button.CZ-e_TGN.js";
|
|
2
|
+
import { C as b } from "../chunks/icon-button.CHh2iNJJ.js";
|
|
3
|
+
import { C as l, a as g } from "../chunks/option.B6cSZiX6.js";
|
|
4
4
|
import $ from "./select.js";
|
|
5
5
|
import { n as o, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
7
|
import { d as O } from "../chunks/debounce.CIEhztrj.js";
|
|
8
|
-
import { L as w } from "../chunks/i18n.
|
|
9
|
-
import { w as f } from "../chunks/watch.
|
|
8
|
+
import { L as w } from "../chunks/i18n.DmmFsjwP.js";
|
|
9
|
+
import { w as f } from "../chunks/watch.CThbualB.js";
|
|
10
10
|
import { x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as p } from "../chunks/state.CSDxrqLd.js";
|
|
12
12
|
import { e as C } from "../chunks/query.BBf1UFkC.js";
|
|
13
13
|
import { o as d } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
14
|
import { c as B } from "../chunks/repeat.DbF2p5ae.js";
|
|
15
15
|
import { n as m } from "../chunks/when.Dr1es41R.js";
|
|
16
|
-
import { b as S
|
|
16
|
+
import { b as S } from "../chunks/_baseIteratee.DpzDid58.js";
|
|
17
|
+
import { b as E } from "../chunks/_baseUniq.HFKneygy.js";
|
|
17
18
|
function T(i, r) {
|
|
18
|
-
return i && i.length ?
|
|
19
|
+
return i && i.length ? E(i, S(r)) : [];
|
|
19
20
|
}
|
|
20
21
|
var D = Object.defineProperty, z = Object.getOwnPropertyDescriptor, e = (i, r, s, n) => {
|
|
21
22
|
for (var a = n > 1 ? void 0 : n ? z(r, s) : r, u = i.length - 1, c; u >= 0; u--)
|
|
@@ -3,8 +3,8 @@ import EP from "./spinner.js";
|
|
|
3
3
|
import { n as lm, C as PP } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import { c as NP } from "../chunks/component.styles.CRO4Odto.js";
|
|
5
5
|
import { c as RP } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as kP } from "../chunks/i18n.
|
|
7
|
-
import { w as OP } from "../chunks/watch.
|
|
6
|
+
import { L as kP } from "../chunks/i18n.DmmFsjwP.js";
|
|
7
|
+
import { w as OP } from "../chunks/watch.CThbualB.js";
|
|
8
8
|
import { i as VP, x as A_ } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { e as BP } from "../chunks/query.BBf1UFkC.js";
|
|
10
10
|
import { e as zP } from "../chunks/class-map.BiVq-cVR.js";
|
|
@@ -2,14 +2,14 @@ import { n as a, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as w } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { s as d, a as c, b as m, w as u } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as v } from "../chunks/i18n.
|
|
6
|
-
import { w as y } from "../chunks/watch.
|
|
5
|
+
import { L as v } from "../chunks/i18n.DmmFsjwP.js";
|
|
6
|
+
import { w as y } from "../chunks/watch.CThbualB.js";
|
|
7
7
|
import { i as C, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as k } from "../chunks/state.CSDxrqLd.js";
|
|
9
9
|
import { e as E } from "../chunks/query.BBf1UFkC.js";
|
|
10
10
|
import { e as H } from "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import { a as p, g } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
12
|
-
import { C as B } from "../chunks/button.
|
|
12
|
+
import { C as B } from "../chunks/button.CZ-e_TGN.js";
|
|
13
13
|
const T = C`:host{--toggler-color:var(--cx-color-primary);display:block;overflow:hidden}.element-clamp{overflow-anchor:none}.element-clamp--disabled{opacity:.5}.element-clamp-icon{transition:var(--cx-transition-medium) rotate ease;flex:none;align-items:center;display:flex}.details--open .element-clamp-icon{rotate:90deg}.details--open.details--rtl .element-clamp-icon{rotate:-90deg}.element-clamp--open slot[name=expand-icon],.element-clamp:not(.element-clamp--open) slot[name=collapse-icon]{display:none}.element-clamp__content{display:block;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`;
|
|
14
14
|
var z = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (e, t, i, r) => {
|
|
15
15
|
for (var s = r > 1 ? void 0 : r ? O(t, i) : t, h = e.length - 1, l; h >= 0; h--)
|