@orangelogic/design-system 2.176.0 → 2.178.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/{abnfDiagram-VRR7QNED.DKqYa5p7.js → abnfDiagram-N423BO3Z.DmbxJEYP.js} +3 -3
- package/library/chunks/architectureDiagram-T3A2C74G.B3-MGxdy.js +4782 -0
- package/library/chunks/{asset-link-format.NhSLWk_Y.js → asset-link-format.Ckb6Eq0e.js} +5 -5
- package/library/chunks/{blockDiagram-677ZJIJ3.CeQxLPwj.js → blockDiagram-VBNYF7ZC.Dw_7h8Aq.js} +3 -3
- package/library/chunks/{button.zWaIO1sl.js → button.Bj14A10c.js} +1 -1
- package/library/chunks/{c4Diagram-LMCZKHZV.B73xdpNh.js → c4Diagram-5PPSVZJV.sgkQad3b.js} +2 -2
- package/library/chunks/{channel.s_XjcUYI.js → channel.BgACV0Fb.js} +1 -1
- package/library/chunks/{chunk-32BRIVSS.BbIrVi3j.js → chunk-2GRJ4B5K.r19kfrEk.js} +1 -1
- package/library/chunks/{chunk-2Q5K7J3B.Dy1Z-bMH.js → chunk-2Q5K7J3B.DR95kRDU.js} +1 -1
- package/library/chunks/{chunk-EX3LRPZG.L693y8d4.js → chunk-5RXB4S5H.4NblUr61.js} +4 -4
- package/library/chunks/{chunk-5VM5RSS4.D0-lddDM.js → chunk-5VM5RSS4.DjAk9wN1.js} +1 -1
- package/library/chunks/{chunk-MOJQB5TN.BZstBMYC.js → chunk-6Q2QTUOP.RrRW6s5_.js} +1 -1
- package/library/chunks/{chunk-V7JOEXUC.DcJlyQO0.js → chunk-GF5L2VYU.DBI3JTKM.js} +5 -5
- package/library/chunks/{chunk-JWPE2WC7.BV0i4LDu.js → chunk-JWPE2WC7.Bw21g4Xj.js} +1 -1
- package/library/chunks/{chunk-VR4S4FIN.BpryBs7q.js → chunk-KBJHAD2P.DfRrJw9t.js} +1 -1
- package/library/chunks/{chunk-RYQCIY6F.BMsuG7ya.js → chunk-RYQCIY6F.DkJNx6hl.js} +1 -1
- package/library/chunks/{chunk-XXDRQBXY.CSOjab1V.js → chunk-XXDRQBXY.CLvgdAsG.js} +1 -1
- package/library/chunks/{classDiagram-OUVF2IWQ.Dvz7CNwe.js → classDiagram-JCYQIIEL.DQ9axGI4.js} +2 -2
- package/library/chunks/{classDiagram-v2-EOCWNBFH.Dvz7CNwe.js → classDiagram-v2-OCEON4UE.DQ9axGI4.js} +2 -2
- package/library/chunks/{color-swatch-group.NJnbc24w.js → color-swatch-group.JIvuSR7O.js} +6 -6
- package/library/chunks/{confirm-popover.Cn1BaP0W.js → confirm-popover.BVWtAu5T.js} +1 -1
- package/library/chunks/{cose-bilkent-JH36ORCC.cfzS2XsK.js → cose-bilkent-JH36ORCC.DaEeg-T2.js} +1 -1
- package/library/chunks/{cynefinDiagram-TSTJHNR4.C8SgNXWI.js → cynefinDiagram-MW4NZA55.BPUjzF-9.js} +2 -2
- package/library/chunks/{dagre-VKFMJZFB.D5B1cAri.js → dagre-VZM6K2ZE.D8ZW6jWn.js} +2 -2
- package/library/chunks/{diagram-OA4YK3LP.Dm5WJs91.js → diagram-7IWD3JNH.DEn-8Nyk.js} +3 -3
- package/library/chunks/{diagram-FQU43EPY.DJukDcLl.js → diagram-B4RE2ZJO.D8OadPQp.js} +2 -2
- package/library/chunks/{diagram-NH7WQ7WH.DOpRwmC2.js → diagram-LBJQPF4R.uE98W6WL.js} +2 -2
- package/library/chunks/{diagram-G47NLZAW.BBOvcbcR.js → diagram-Q27KOJAE.yof_N5m5.js} +3 -3
- package/library/chunks/{diagram-WEI45ONY.COuzdmSR.js → diagram-UB23O5K3.Ch7qaZ8N.js} +66 -64
- package/library/chunks/{document-viewer.DxPw7xHV.js → document-viewer.5jZ0djNd.js} +3 -3
- package/library/chunks/{dom.C5aVLhKS.js → dom.gRV2cDjL.js} +1 -1
- package/library/chunks/{ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js → ebnfDiagram-BXEA7PRR.BCGi4Or-.js} +3 -3
- package/library/chunks/{endpoints.CwgTrs4A.js → endpoints.mJ5S-tIs.js} +51 -52
- package/library/chunks/{erDiagram-Q63AITRT.sSw_w-2B.js → erDiagram-JOGREHBK.Dj_WQ9-P.js} +4 -4
- package/library/chunks/{flowDiagram-23GEKE2U.CMMbuUHf.js → flowDiagram-UKHOOZJN.C0pE4e9K.js} +25 -25
- package/library/chunks/{folder-select.Di9wfqIU.js → folder-select.CXrAwaij.js} +4 -4
- package/library/chunks/{form.CP9KLGjF.js → form.DSsy3Fcy.js} +1 -1
- package/library/chunks/{ganttDiagram-NO4QXBWP.DZdwd0O4.js → ganttDiagram-PKOTCBZU.Cz_H5LNn.js} +1 -1
- package/library/chunks/{gitGraphDiagram-IHSO6WYX.F6mwS3uS.js → gitGraphDiagram-DS77QQ5N.BwyVHdCu.js} +3 -3
- package/library/chunks/{infoDiagram-FWYZ7A6U.BnktKL7i.js → infoDiagram-6WML65LV.D986xkxa.js} +2 -2
- package/library/chunks/{input.B-c9KEAH.js → input.CftMH3MT.js} +1 -1
- package/library/chunks/{ishikawaDiagram-FXEZZL3T.CFp-9Kes.js → ishikawaDiagram-WSZJBQD7.DS_s73xV.js} +1 -1
- package/library/chunks/{journeyDiagram-5HDEW3XC.BxO1aPu_.js → journeyDiagram-NVQOT4AX.CpnBzO_7.js} +3 -3
- package/library/chunks/{kanban-definition-HUTT4EX6.Bk8vmLFK.js → kanban-definition-27J2QSJJ.BWQ1LbN9.js} +2 -2
- package/library/chunks/{markdown.CESgIEEE.js → markdown.ClRfC7SP.js} +665 -653
- package/library/chunks/{mermaid.core.Dspbw7Ig.js → mermaid.core.CPVTuCpJ.js} +1202 -1167
- package/library/chunks/{mindmap-definition-LN4V7U3C.DuCBBYwE.js → mindmap-definition-FAOFIHXS.tV221P-F.js} +3 -3
- package/library/chunks/{pagination.Do36kaZK.js → pagination.CW3yynt_.js} +2 -2
- package/library/chunks/{pegDiagram-2B236MQR.DQrkEdJr.js → pegDiagram-VL7TDLO6.SjdhjwPL.js} +3 -3
- package/library/chunks/{pieDiagram-ENE6RG2P.B6nPW8Pj.js → pieDiagram-7S7Q4E2Y.BCRXd1yD.js} +2 -2
- package/library/chunks/{quadrantDiagram-ABIIQ3AL.BFy9moxz.js → quadrantDiagram-CIZ2JOQS.BMNbRkIQ.js} +1 -1
- package/library/chunks/{railroadDiagram-RFXS5EU6.CSao8YZX.js → railroadDiagram-AXF67PYL.2IwXOeL6.js} +3 -3
- package/library/chunks/{requirementDiagram-TGXJPOKE.CjpliZnF.js → requirementDiagram-LRYGKXZP.BtyA_EuA.js} +3 -3
- package/library/chunks/{sankeyDiagram-HTMAVEWB.D8aAxVGe.js → sankeyDiagram-W5VNT64P.BUBAWIOI.js} +1 -1
- package/library/chunks/{sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js → sequenceDiagram-SI44F4Z6.Cys6U73s.js} +3 -3
- package/library/chunks/{sizeCapture-X5ZJPWSS.BDByEFcW.js → sizeCapture-X5ZJPWSS.CEEU5-VT.js} +1 -1
- package/library/chunks/{stateDiagram-2N3HPSRC.DvrAW9Ck.js → stateDiagram-OKZ733FA.r1-hE_hN.js} +2 -2
- package/library/chunks/{stateDiagram-v2-6OUMAXLB.CFfuaFM1.js → stateDiagram-v2-UEYNNEHI.BMfu2Zly.js} +2 -2
- package/library/chunks/{string.BhJ0Zogu.js → string.CfI2ejyR.js} +60 -63
- package/library/chunks/{swimlanes-5IMT3BWC.AtMD47q7.js → swimlanes-SLNWSIFB.X2WxIaD_.js} +3 -3
- package/library/chunks/{swimlanesDiagram-G3AALYLV.26A1eX7s.js → swimlanesDiagram-ULZ7WXOC.BTivMnAR.js} +2 -2
- package/library/chunks/{tab-group.DYywhd3A.js → tab-group.DvPwuInt.js} +2 -2
- package/library/chunks/{timeline-definition-FHXFAJF6.CYSh6xl5.js → timeline-definition-Z64GVDOM.DFfCN4wg.js} +1 -1
- package/library/chunks/{vennDiagram-L72KCM5P.CSk1WWlu.js → vennDiagram-T6HMQDX7.C-CHsl0o.js} +1 -1
- package/library/chunks/{wardleyDiagram-EHGQE667.C7UzXYG7.js → wardleyDiagram-T6FBY63Y.BauqS3ST.js} +2 -2
- package/library/chunks/{xychartDiagram-FW5EYKEG.idiZWvYS.js → xychartDiagram-ELKLHX3M.BgPK-qcM.js} +76 -73
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +6 -6
- package/library/components/avatar.js +7 -7
- package/library/components/border-input-group.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +2 -2
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +4 -4
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +2 -2
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +3 -3
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +3 -3
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/types.js +48203 -49659
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/avatar/avatar.d.ts +2 -0
- package/library/packages/events/src/cx-video-annotation-layer-change.d.ts +8 -0
- package/library/packages/events/src/cx-video-closed.d.ts +6 -0
- package/library/packages/events/src/cx-video-comment-click.d.ts +8 -0
- package/library/packages/events/src/cx-video-comment-mouseleave.d.ts +8 -0
- package/library/packages/events/src/cx-video-comment-mouseover.d.ts +8 -0
- package/library/packages/events/src/cx-video-context-change.d.ts +27 -0
- package/library/packages/events/src/cx-video-enter-fullscreen.d.ts +6 -0
- package/library/packages/events/src/cx-video-event.d.ts +9 -0
- package/library/packages/events/src/cx-video-exit-fullscreen.d.ts +6 -0
- package/library/packages/events/src/cx-video-next-frame.d.ts +6 -0
- package/library/packages/events/src/cx-video-paused.d.ts +8 -0
- package/library/packages/events/src/cx-video-played.d.ts +8 -0
- package/library/packages/events/src/cx-video-prev-frame.d.ts +6 -0
- package/library/packages/events/src/cx-video-seeked.d.ts +8 -0
- package/library/packages/events/src/cx-video-segment-change.d.ts +9 -0
- package/library/packages/events/src/cx-video-time-update.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +16 -0
- package/library/packages/organisms/src/annotator-comment/annotator-comment.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/telemetry/metrics.d.ts +1 -0
- package/library/packages/organisms/src/index.d.ts +0 -2
- package/library/react-web-component.d.ts +243 -4
- package/library/utils.js +5 -5
- package/package.json +1 -1
- package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +0 -4757
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.d.ts +0 -71
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.styles.d.ts +0 -2
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.utils.d.ts +0 -25
- package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.d.ts +0 -66
- package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.styles.d.ts +0 -2
- package/library/packages/organisms/src/video-editor/components/video-editor-toolbar/video-editor-toolbar.d.ts +0 -84
- package/library/packages/organisms/src/video-editor/components/video-editor-toolbar/video-editor-toolbar.styles.d.ts +0 -2
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +0 -59
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.styles.d.ts +0 -2
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +0 -79
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.styles.d.ts +0 -2
- package/library/packages/organisms/src/video-editor/components/video-editor-transition/video-editor-transition.d.ts +0 -26
- package/library/packages/organisms/src/video-editor/components/video-editor-transition/video-editor-transition.styles.d.ts +0 -2
- package/library/packages/organisms/src/video-editor/video-editor.d.ts +0 -102
- package/library/packages/organisms/src/video-editor/video-editor.styles.d.ts +0 -2
- package/library/packages/services/src/api/chapter/chapter.d.ts +0 -7
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
|
|
2
|
-
import { default as CxDialog } from '../../../atoms/src/components/dialog/dialog.ts';
|
|
3
|
-
import { default as CxDivider } from '../../../atoms/src/components/divider/divider.ts';
|
|
4
|
-
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
5
|
-
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
6
|
-
import { default as CxTable } from '../../../hybrid/table-core/src/index.ts';
|
|
7
|
-
import { VideoChapterInSeconds, VideoChapterInTimecode } from '../../../types/src/video-chapters-manager';
|
|
8
|
-
import { CSSResultGroup } from 'lit';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @summary <cx-video-chapters-manager> is a component that allows the user to edit the chapters of a video.
|
|
12
|
-
*
|
|
13
|
-
* @property {String} video-record-id - The ID of the video record
|
|
14
|
-
* @property {String} label - The label of the dialog
|
|
15
|
-
* @method show - Shows the dialog
|
|
16
|
-
* @method hide - Hides the dialog
|
|
17
|
-
*
|
|
18
|
-
* @event cx-save - Emitted when the chapters are saved
|
|
19
|
-
*/
|
|
20
|
-
export default class CxVideoChaptersManager extends CortexElement {
|
|
21
|
-
static readonly styles: CSSResultGroup;
|
|
22
|
-
static readonly dependencies: {
|
|
23
|
-
'cx-button': typeof CxButton;
|
|
24
|
-
'cx-dialog': typeof CxDialog;
|
|
25
|
-
'cx-divider': typeof CxDivider;
|
|
26
|
-
'cx-space': typeof CxSpace;
|
|
27
|
-
'cx-table': typeof CxTable;
|
|
28
|
-
};
|
|
29
|
-
private dialog;
|
|
30
|
-
private readonly localize;
|
|
31
|
-
private readonly cortexPopupController;
|
|
32
|
-
private readonly columns;
|
|
33
|
-
private readonly hoverMenu;
|
|
34
|
-
private readonly placeholder;
|
|
35
|
-
private _apiGetChapters;
|
|
36
|
-
private _apiUpdateChapters;
|
|
37
|
-
table: CxTable;
|
|
38
|
-
/**
|
|
39
|
-
* The video record ID to use
|
|
40
|
-
*/
|
|
41
|
-
videoRecordID: string;
|
|
42
|
-
/**
|
|
43
|
-
* The label to use for the dialog
|
|
44
|
-
*/
|
|
45
|
-
label: string;
|
|
46
|
-
/**
|
|
47
|
-
* Chapter data fetched from API, with `start` property is a number in seconds.
|
|
48
|
-
*/
|
|
49
|
-
data: VideoChapterInSeconds[];
|
|
50
|
-
/**
|
|
51
|
-
* Chapter data fetched from API, with `start` property is a string in timecode.
|
|
52
|
-
*/
|
|
53
|
-
tableData: VideoChapterInTimecode[];
|
|
54
|
-
isSaving: boolean;
|
|
55
|
-
originalContainer: Element | null;
|
|
56
|
-
show(): void;
|
|
57
|
-
hide(): void;
|
|
58
|
-
get open(): boolean;
|
|
59
|
-
private getChapters;
|
|
60
|
-
private handleAddChapter;
|
|
61
|
-
private handleSave;
|
|
62
|
-
private handleCancel;
|
|
63
|
-
private handleRowActions;
|
|
64
|
-
private handleAfterShow;
|
|
65
|
-
render(): import('lit').TemplateResult<1>;
|
|
66
|
-
}
|
|
67
|
-
declare global {
|
|
68
|
-
interface HTMLElementTagNameMap {
|
|
69
|
-
'cx-video-chapters-manager': CxVideoChaptersManager;
|
|
70
|
-
}
|
|
71
|
-
}
|
package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.utils.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type VideoChapter = {
|
|
2
|
-
identifier: string;
|
|
3
|
-
start: number;
|
|
4
|
-
title: string;
|
|
5
|
-
};
|
|
6
|
-
type DisplayedVideoChapter = Omit<VideoChapter, 'start'> & {
|
|
7
|
-
start: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Parses a chapter string in the format "00:00 - Chapter 1\r\n00:10 - Chapter 2" or "01:30:00 - Chapter 1"
|
|
11
|
-
* and returns an array of DisplayedVideoChapter objects.
|
|
12
|
-
*
|
|
13
|
-
* @param chapterString - The string containing chapters in the specified format
|
|
14
|
-
* @returns Array of DisplayedVideoChapter objects with identifier, start time (as string in HH:MM:SS format), and title
|
|
15
|
-
*/
|
|
16
|
-
export declare function parseChapterString(chapterString: string): DisplayedVideoChapter[];
|
|
17
|
-
/**
|
|
18
|
-
* Converts an array of DisplayedVideoChapter objects back to a chapter string format.
|
|
19
|
-
* This is the reverse operation of parseChapterString.
|
|
20
|
-
*
|
|
21
|
-
* @param chapters - Array of DisplayedVideoChapter objects
|
|
22
|
-
* @returns A string in the format "HH:MM:SS - Chapter Title\r\nHH:MM:SS - Chapter Title"
|
|
23
|
-
*/
|
|
24
|
-
export declare function stringifyChapters(chapters: DisplayedVideoChapter[]): string;
|
|
25
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { default as CxPopup } from '../../../../../atoms/src/components/popup/popup.ts';
|
|
2
|
-
import { default as CxResizeObserver } from '../../../../../atoms/src/components/resize-observer/resize-observer.ts';
|
|
3
|
-
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
4
|
-
import { nothing } from 'lit';
|
|
5
|
-
|
|
6
|
-
export type CxVideoEditorTimelineScaleChangeEvent = CustomEvent<{
|
|
7
|
-
scaleFactor: number;
|
|
8
|
-
}>;
|
|
9
|
-
declare global {
|
|
10
|
-
interface GlobalEventHandlersEventMap {
|
|
11
|
-
'cx-video-editor-timeline-scale-change': CxVideoEditorTimelineScaleChangeEvent;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default class CxVideoEditorTimeline extends CortexElement {
|
|
15
|
-
static readonly styles: import('lit').CSSResult[];
|
|
16
|
-
static readonly dependencies: {
|
|
17
|
-
'cx-popup': typeof CxPopup;
|
|
18
|
-
'cx-resize-observer': typeof CxResizeObserver;
|
|
19
|
-
};
|
|
20
|
-
timeline: HTMLDivElement;
|
|
21
|
-
canvas: HTMLCanvasElement;
|
|
22
|
-
scroller: HTMLDivElement;
|
|
23
|
-
timeMark: HTMLDivElement;
|
|
24
|
-
cursor: HTMLDivElement;
|
|
25
|
-
cursorPopup: CxPopup;
|
|
26
|
-
duration: number;
|
|
27
|
-
currentTime: number;
|
|
28
|
-
hoveredTime: number;
|
|
29
|
-
isHovering: boolean;
|
|
30
|
-
scaleFactor: number;
|
|
31
|
-
/** The width of each second in pixels */
|
|
32
|
-
scale: number;
|
|
33
|
-
isScrolling: boolean;
|
|
34
|
-
isDragging: boolean;
|
|
35
|
-
scrollResumeTimeout: Timer | null;
|
|
36
|
-
private lastScrollLeft;
|
|
37
|
-
constructor();
|
|
38
|
-
runFirstUpdated(): void;
|
|
39
|
-
runConnectedCallback(): void;
|
|
40
|
-
disconnectedCallback(): void;
|
|
41
|
-
private updateTime;
|
|
42
|
-
updateMarks(): void;
|
|
43
|
-
updateTimeMark(): Promise<void>;
|
|
44
|
-
updateCursor(): void;
|
|
45
|
-
handleDurationChange(): Promise<void>;
|
|
46
|
-
handleCurrentTimeChange(): Promise<void>;
|
|
47
|
-
scrollToTimeMark(): Promise<void>;
|
|
48
|
-
handleScaleFactorChange(): Promise<void>;
|
|
49
|
-
private handleScroll;
|
|
50
|
-
private handleScrollerMouseDown;
|
|
51
|
-
private handleScrollerMouseUp;
|
|
52
|
-
private handleCanvasMouseDown;
|
|
53
|
-
private handleCanvasMouseUp;
|
|
54
|
-
private handleCanvasMouseMove;
|
|
55
|
-
private handleTimelineWheel;
|
|
56
|
-
debouncedUpdateScaleFactor(event: WheelEvent): Promise<void>;
|
|
57
|
-
handleCanvasMouseEnter(): void;
|
|
58
|
-
handleCanvasMouseLeave(): void;
|
|
59
|
-
handleResize(): void;
|
|
60
|
-
render(): import('lit').TemplateResult<1> | typeof nothing;
|
|
61
|
-
}
|
|
62
|
-
declare global {
|
|
63
|
-
interface HTMLElementTagNameMap {
|
|
64
|
-
'cx-video-editor-timeline': CxVideoEditorTimeline;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { default as CxButton } from '../../../../../atoms/src/components/button/button.ts';
|
|
2
|
-
import { default as CxButtonGroup } from '../../../../../atoms/src/components/button-group/button-group.ts';
|
|
3
|
-
import { default as CxDivider } from '../../../../../atoms/src/components/divider/divider.ts';
|
|
4
|
-
import { default as CxDropdown } from '../../../../../atoms/src/components/dropdown/dropdown.ts';
|
|
5
|
-
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
6
|
-
import { default as CxMenu } from '../../../../../atoms/src/components/menu/menu.ts';
|
|
7
|
-
import { default as CxSpace } from '../../../../../atoms/src/components/space/space.ts';
|
|
8
|
-
import { default as CxTooltip } from '../../../../../atoms/src/components/tooltip/tooltip.ts';
|
|
9
|
-
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
10
|
-
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
11
|
-
import { Ratio } from '../../../../../types/src/video-editor';
|
|
12
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
13
|
-
|
|
14
|
-
export declare enum VideoEditorToolbarActions {
|
|
15
|
-
Apply = "apply",
|
|
16
|
-
Cancel = "cancel",
|
|
17
|
-
CancelAll = "cancelAll",
|
|
18
|
-
Crop = "crop",
|
|
19
|
-
Delete = "delete",
|
|
20
|
-
Export = "export",
|
|
21
|
-
Redo = "redo",
|
|
22
|
-
Rotate = "rotate",
|
|
23
|
-
Save = "save",
|
|
24
|
-
Transition = "transition",
|
|
25
|
-
Trim = "trim",
|
|
26
|
-
Undo = "undo"
|
|
27
|
-
}
|
|
28
|
-
export type CxVideoEditorToolbarActionEvent = CustomEvent<{
|
|
29
|
-
action: VideoEditorToolbarActions;
|
|
30
|
-
}>;
|
|
31
|
-
export type CxVideoEditorToolbarRatioChangeEvent = CustomEvent<{
|
|
32
|
-
ratio: Ratio;
|
|
33
|
-
}>;
|
|
34
|
-
declare global {
|
|
35
|
-
interface GlobalEventHandlersEventMap {
|
|
36
|
-
'cx-video-editor-toolbar-action': CxVideoEditorToolbarActionEvent;
|
|
37
|
-
'cx-video-editor-toolbar-ratio-change': CxVideoEditorToolbarRatioChangeEvent;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export default class CxVideoEditorToolbar extends CortexElement {
|
|
41
|
-
static readonly styles: CSSResultGroup;
|
|
42
|
-
static readonly dependencies: {
|
|
43
|
-
'cx-button': typeof CxButton;
|
|
44
|
-
'cx-button-group': typeof CxButtonGroup;
|
|
45
|
-
'cx-divider': typeof CxDivider;
|
|
46
|
-
'cx-dropdown': typeof CxDropdown;
|
|
47
|
-
'cx-icon': typeof CxIcon;
|
|
48
|
-
'cx-menu': typeof CxMenu;
|
|
49
|
-
'cx-space': typeof CxSpace;
|
|
50
|
-
'cx-tooltip': typeof CxTooltip;
|
|
51
|
-
'cx-typography': typeof CxTypography;
|
|
52
|
-
};
|
|
53
|
-
private readonly localize;
|
|
54
|
-
ratios: Ratio[];
|
|
55
|
-
activeRatioLabel: string;
|
|
56
|
-
disabled: Partial<Record<VideoEditorToolbarActions, boolean>>;
|
|
57
|
-
cropMode: boolean;
|
|
58
|
-
cropActive: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Indicates whether or not the export button should be shown.
|
|
61
|
-
*/
|
|
62
|
-
showExport: boolean;
|
|
63
|
-
get activeRatio(): Ratio | undefined;
|
|
64
|
-
private handleRatioChange;
|
|
65
|
-
private handleUndoClick;
|
|
66
|
-
private handleRedoClick;
|
|
67
|
-
private handleCancelClick;
|
|
68
|
-
private handleCancelAllClick;
|
|
69
|
-
private handleApplyClick;
|
|
70
|
-
private handleSaveClick;
|
|
71
|
-
private handleExportClick;
|
|
72
|
-
private handleTrimClick;
|
|
73
|
-
private handleTransitionClick;
|
|
74
|
-
private handleCropClick;
|
|
75
|
-
private handleRotateClick;
|
|
76
|
-
private handleDeleteClick;
|
|
77
|
-
private renderRightActions;
|
|
78
|
-
render(): TemplateResult;
|
|
79
|
-
}
|
|
80
|
-
declare global {
|
|
81
|
-
interface HTMLElementTagNameMap {
|
|
82
|
-
'cx-video-editor-toolbar': CxVideoEditorToolbar;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
2
|
-
import { default as CxLineClamp } from '../../../../../atoms/src/components/line-clamp/line-clamp.ts';
|
|
3
|
-
import { default as CxSpinner } from '../../../../../atoms/src/components/spinner/spinner.ts';
|
|
4
|
-
import { default as CxTooltip } from '../../../../../atoms/src/components/tooltip/tooltip.ts';
|
|
5
|
-
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
6
|
-
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
7
|
-
import { CanvasData, FrameCache, FrameCacheItem, SubClip } from '../../../../../types/src/video-editor';
|
|
8
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
9
|
-
|
|
10
|
-
type FrameItem = {
|
|
11
|
-
canvasSrc: string | null;
|
|
12
|
-
currentTime: number;
|
|
13
|
-
frameHeight: number;
|
|
14
|
-
frameWidth: number;
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
};
|
|
18
|
-
export default class CxVideoEditorTrack extends CortexElement {
|
|
19
|
-
static styles: CSSResultGroup;
|
|
20
|
-
static dependencies: {
|
|
21
|
-
'cx-icon': typeof CxIcon;
|
|
22
|
-
'cx-line-clamp': typeof CxLineClamp;
|
|
23
|
-
'cx-spinner': typeof CxSpinner;
|
|
24
|
-
'cx-tooltip': typeof CxTooltip;
|
|
25
|
-
'cx-typography': typeof CxTypography;
|
|
26
|
-
};
|
|
27
|
-
private readonly localize;
|
|
28
|
-
data: Partial<SubClip>;
|
|
29
|
-
selected: boolean;
|
|
30
|
-
scale: number;
|
|
31
|
-
maxScale: number;
|
|
32
|
-
maxDuration: number;
|
|
33
|
-
cache: FrameCache;
|
|
34
|
-
canvasSrc: string;
|
|
35
|
-
canvas: CanvasData | null;
|
|
36
|
-
expectedFrameCount: number;
|
|
37
|
-
frameIterator: AsyncGenerator<FrameCacheItem, void, unknown> | null;
|
|
38
|
-
interval: number;
|
|
39
|
-
video: HTMLVideoElement | null;
|
|
40
|
-
private previousExtractionKey;
|
|
41
|
-
get duration(): number;
|
|
42
|
-
get width(): number;
|
|
43
|
-
get isError(): boolean;
|
|
44
|
-
get items(): FrameItem[];
|
|
45
|
-
runConnectedCallback(): void;
|
|
46
|
-
disconnectedCallback(): void;
|
|
47
|
-
private initVideo;
|
|
48
|
-
private getGenerator;
|
|
49
|
-
handleDataChange(): Promise<void>;
|
|
50
|
-
private renderFrame;
|
|
51
|
-
private handleClick;
|
|
52
|
-
render(): TemplateResult;
|
|
53
|
-
}
|
|
54
|
-
declare global {
|
|
55
|
-
interface HTMLElementTagNameMap {
|
|
56
|
-
'cx-video-editor-track': CxVideoEditorTrack;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
2
|
-
import { default as CxResizeObserver } from '../../../../../atoms/src/components/resize-observer/resize-observer.ts';
|
|
3
|
-
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
4
|
-
import { CanvasData, FrameCache, SubClip, Transition } from '../../../../../types/src/video-editor';
|
|
5
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
6
|
-
import { default as Sortable } from 'sortablejs';
|
|
7
|
-
import { default as CxVideoEditorTrack } from '../video-editor-track/video-editor-track';
|
|
8
|
-
import { default as CxVideoEditorTransition } from '../video-editor-transition/video-editor-transition';
|
|
9
|
-
|
|
10
|
-
export type CxVideoEditorTracksSelectEvent = CustomEvent<{
|
|
11
|
-
ids: string[];
|
|
12
|
-
}>;
|
|
13
|
-
export type CxVideoEditorTracksTransitionSelectEvent = CustomEvent<{
|
|
14
|
-
ids: string[];
|
|
15
|
-
}>;
|
|
16
|
-
export type CxVideoEditorTracksReorderEvent = CustomEvent<{
|
|
17
|
-
subClips: Array<Partial<SubClip>>;
|
|
18
|
-
}>;
|
|
19
|
-
declare global {
|
|
20
|
-
interface GlobalEventHandlersEventMap {
|
|
21
|
-
'cx-video-editor-tracks-reorder': CxVideoEditorTracksReorderEvent;
|
|
22
|
-
'cx-video-editor-tracks-select': CxVideoEditorTracksSelectEvent;
|
|
23
|
-
'cx-video-editor-tracks-transitions-select': CxVideoEditorTracksTransitionSelectEvent;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export default class CxVideoEditorTracks extends CortexElement {
|
|
27
|
-
static readonly styles: CSSResultGroup;
|
|
28
|
-
static readonly dependencies: {
|
|
29
|
-
'cx-icon': typeof CxIcon;
|
|
30
|
-
'cx-resize-observer': typeof CxResizeObserver;
|
|
31
|
-
'cx-video-editor-track': typeof CxVideoEditorTrack;
|
|
32
|
-
'cx-video-editor-transition': typeof CxVideoEditorTransition;
|
|
33
|
-
};
|
|
34
|
-
container: HTMLDivElement;
|
|
35
|
-
scrollable: HTMLDivElement;
|
|
36
|
-
list: HTMLDivElement;
|
|
37
|
-
tracks: SubClip[];
|
|
38
|
-
transitions: Transition[];
|
|
39
|
-
activeTracks: string[];
|
|
40
|
-
activeTransitions: string[];
|
|
41
|
-
currentTime: number;
|
|
42
|
-
videoDuration: number;
|
|
43
|
-
scaleFactor: number;
|
|
44
|
-
maxScaleFactor: number;
|
|
45
|
-
scale: number;
|
|
46
|
-
maxScaleMap: Map<string, number>;
|
|
47
|
-
maxDurationMap: Map<string, number>;
|
|
48
|
-
sortable: Sortable | null;
|
|
49
|
-
previous: Array<ChildNode | null>;
|
|
50
|
-
isDragging: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Cache of frames, keyed by video url
|
|
53
|
-
*/
|
|
54
|
-
cache: FrameCache;
|
|
55
|
-
canvasSrcCache: Record<string, string>;
|
|
56
|
-
canvasDataCache: Record<string, CanvasData>;
|
|
57
|
-
constructor();
|
|
58
|
-
connectedUpdatedCallback(): void;
|
|
59
|
-
disconnectedCallback(): void;
|
|
60
|
-
private initSortable;
|
|
61
|
-
private initCanvas;
|
|
62
|
-
private handleTrackSelect;
|
|
63
|
-
private handleTransitionSelect;
|
|
64
|
-
handleStart(evt: Sortable.SortableEvent): void;
|
|
65
|
-
handleEnd(evt: Sortable.SortableEvent): Promise<void>;
|
|
66
|
-
handleTracksChange(): Promise<void>;
|
|
67
|
-
handleScaleFactorChange(): Promise<void>;
|
|
68
|
-
handleCurrentTimeChange(): void;
|
|
69
|
-
private updateCanvasSrcCache;
|
|
70
|
-
private handleTrackCanvasReady;
|
|
71
|
-
private renderTrack;
|
|
72
|
-
private getTrackKey;
|
|
73
|
-
render(): TemplateResult;
|
|
74
|
-
}
|
|
75
|
-
declare global {
|
|
76
|
-
interface HTMLElementTagNameMap {
|
|
77
|
-
'cx-video-editor-tracks': CxVideoEditorTracks;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
2
|
-
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
3
|
-
import { Transition } from '../../../../../types/src/video-editor';
|
|
4
|
-
import { CSSResultGroup } from 'lit';
|
|
5
|
-
|
|
6
|
-
export default class CxVideoEditorTransition extends CortexElement {
|
|
7
|
-
static readonly styles: CSSResultGroup;
|
|
8
|
-
static readonly dependencies: {
|
|
9
|
-
'cx-icon': typeof CxIcon;
|
|
10
|
-
};
|
|
11
|
-
data: Transition | null;
|
|
12
|
-
selected: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* When true, keeps the indicator fully inside its track instead of straddling the boundary
|
|
15
|
-
* with the previous track. Use this for the first track in the list, which has no preceding
|
|
16
|
-
* track to overlap.
|
|
17
|
-
*/
|
|
18
|
-
inset: boolean;
|
|
19
|
-
private handleClick;
|
|
20
|
-
render(): import('lit').TemplateResult<1>;
|
|
21
|
-
}
|
|
22
|
-
declare global {
|
|
23
|
-
interface HTMLElementTagNameMap {
|
|
24
|
-
'cx-video-editor-transition': CxVideoEditorTransition;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
|
|
2
|
-
import { default as CxButtonGroup } from '../../../atoms/src/components/button-group/button-group.ts';
|
|
3
|
-
import { default as CxDivider } from '../../../atoms/src/components/divider/divider.ts';
|
|
4
|
-
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
5
|
-
import { default as CxRange } from '../../../atoms/src/components/range/range.ts';
|
|
6
|
-
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
7
|
-
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
8
|
-
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
9
|
-
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
10
|
-
import { CxTimeUpdateEvent } from '../../../events/src/events.ts';
|
|
11
|
-
import { ModifiedType, Ratio, SubClip, Transition } from '../../../types/src/video-editor';
|
|
12
|
-
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
13
|
-
import { default as CxVideoEditorTimeline } from './components/video-editor-timeline/video-editor-timeline';
|
|
14
|
-
import { default as CxVideoEditorToolbar, VideoEditorToolbarActions } from './components/video-editor-toolbar/video-editor-toolbar';
|
|
15
|
-
import { default as CxVideoEditorTracks } from './components/video-editor-tracks/video-editor-tracks';
|
|
16
|
-
|
|
17
|
-
export type CxVideoEditorAction = CustomEvent<{
|
|
18
|
-
action: VideoEditorToolbarActions;
|
|
19
|
-
type?: ModifiedType;
|
|
20
|
-
value?: any;
|
|
21
|
-
}>;
|
|
22
|
-
export type CxVideoEditorTrackChange = CustomEvent<{
|
|
23
|
-
track: Pick<SubClip, 'crop' | 'id' | 'rotation' | 'startPosition' | 'stopPosition'>;
|
|
24
|
-
}>;
|
|
25
|
-
declare global {
|
|
26
|
-
interface GlobalEventHandlersEventMap {
|
|
27
|
-
'cx-video-editor-action': CxVideoEditorAction;
|
|
28
|
-
'cx-video-editor-track-change': CxVideoEditorTrackChange;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @summary Video editor component.
|
|
33
|
-
*
|
|
34
|
-
* @event {{ time: number }} cx-time-update - Fired when the user seeks to a new time in the video.
|
|
35
|
-
* @event {{ action: VideoEditorToolbarActions }} cx-video-editor-action - Fired when a toolbar action is triggered.
|
|
36
|
-
* @event {{ ids: string[] }} cx-video-editor-tracks-select - Fired when tracks are selected.
|
|
37
|
-
* @event {{ ids: string[] }} cx-video-editor-tracks-transitions-select - Fired when a transition is selected.
|
|
38
|
-
*
|
|
39
|
-
* @typedef VideoEditorToolbarActions - {'crop' | 'delete' | 'export' | 'redo' | 'rotate' | 'save' | 'transition' | 'trim' | 'undo'}
|
|
40
|
-
*/
|
|
41
|
-
export default class CxVideoEditor extends CortexElement {
|
|
42
|
-
static readonly styles: CSSResultGroup;
|
|
43
|
-
static readonly dependencies: {
|
|
44
|
-
'cx-button': typeof CxButton;
|
|
45
|
-
'cx-button-group': typeof CxButtonGroup;
|
|
46
|
-
'cx-divider': typeof CxDivider;
|
|
47
|
-
'cx-icon-button': typeof CxIconButton;
|
|
48
|
-
'cx-range': typeof CxRange;
|
|
49
|
-
'cx-space': typeof CxSpace;
|
|
50
|
-
'cx-tooltip': typeof CxTooltip;
|
|
51
|
-
'cx-typography': typeof CxTypography;
|
|
52
|
-
'cx-video-editor-timeline': typeof CxVideoEditorTimeline;
|
|
53
|
-
'cx-video-editor-toolbar': typeof CxVideoEditorToolbar;
|
|
54
|
-
'cx-video-editor-tracks': typeof CxVideoEditorTracks;
|
|
55
|
-
};
|
|
56
|
-
data: {
|
|
57
|
-
subClips: Array<Partial<SubClip>>;
|
|
58
|
-
transitions: Transition[];
|
|
59
|
-
};
|
|
60
|
-
ratios: Ratio[];
|
|
61
|
-
activeRatioLabel: string;
|
|
62
|
-
videoContext: any;
|
|
63
|
-
canUndo: boolean;
|
|
64
|
-
canRedo: boolean;
|
|
65
|
-
canCancelAll: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Indicates whether or not the export button should be shown.
|
|
68
|
-
*/
|
|
69
|
-
showExport: boolean;
|
|
70
|
-
scale: number;
|
|
71
|
-
dirty: boolean;
|
|
72
|
-
cropMode: boolean;
|
|
73
|
-
cropActive: boolean;
|
|
74
|
-
activeTracks: string[];
|
|
75
|
-
activeTransitions: string[];
|
|
76
|
-
currentTime: number;
|
|
77
|
-
get videoDuration(): number;
|
|
78
|
-
get disabledControls(): Partial<Record<VideoEditorToolbarActions, boolean>>;
|
|
79
|
-
constructor();
|
|
80
|
-
runConnectedCallback(): void;
|
|
81
|
-
disconnectedCallback(): void;
|
|
82
|
-
private handleKeyDown;
|
|
83
|
-
private handleDelete;
|
|
84
|
-
private moveSelectedTracksToRight;
|
|
85
|
-
private moveSelectedTracksToLeft;
|
|
86
|
-
private handleVideoEditorToolbarAction;
|
|
87
|
-
private handleVideoEditorTracksSelect;
|
|
88
|
-
private handleVideoEditorTracksTransitionSelect;
|
|
89
|
-
private handleVideoEditorTimelineScaleChange;
|
|
90
|
-
private handleScaleChange;
|
|
91
|
-
onTimeUpdate(event: CxTimeUpdateEvent): void;
|
|
92
|
-
updateCropActive(): Promise<void>;
|
|
93
|
-
private handleZoomOutClick;
|
|
94
|
-
private handleZoomInClick;
|
|
95
|
-
private tooltipFormatter;
|
|
96
|
-
render(): TemplateResult;
|
|
97
|
-
}
|
|
98
|
-
declare global {
|
|
99
|
-
interface HTMLElementTagNameMap {
|
|
100
|
-
'cx-video-editor': CxVideoEditor;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GetChaptersResponse } from './chapter.types';
|
|
2
|
-
|
|
3
|
-
export declare function apiGetChapters(videoRecordID: string): Promise<GetChaptersResponse>;
|
|
4
|
-
export declare function apiUpdateChapters(videoRecordID: string, chaptersText: string): Promise<import('axios-cache-interceptor').CacheAxiosResponse<any, {
|
|
5
|
-
chaptersText: string;
|
|
6
|
-
videoRecordID: string;
|
|
7
|
-
}> | import('axios').AxiosResponse<unknown, any> | undefined>;
|