@orangelogic/design-system 2.50.0 → 2.51.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.DCaz7tVb.js → button.CVc2wJ0B.js} +1 -1
- package/library/chunks/{color-swatch-group.18TICCVX.js → color-swatch-group.CUtNUbRn.js} +4 -4
- package/library/chunks/{color-swatch.BVFmLzfK.js → color-swatch.EAiUOc_J.js} +2 -2
- package/library/chunks/{confirm-popover.BvRVjl2b.js → confirm-popover.DfkoLeR6.js} +3 -3
- package/library/chunks/{dialog.Cj9XqgFc.js → dialog.CLn29MZF.js} +2 -2
- package/library/chunks/{dot-pagination.Bl8K-G8Q.js → dot-pagination.BMZxEk73.js} +1 -1
- package/library/chunks/{file-on-demand.BQR4rKDc.js → file-on-demand.CoA1eDl7.js} +9 -9
- package/library/chunks/{folder-select.ez3fKPUF.js → folder-select.Bq-NKzjL.js} +5 -5
- package/library/chunks/{header.BZiLoNKd.js → header.DiOD6K3N.js} +1 -1
- package/library/chunks/{i18n.CXUGdxzx.js → i18n.GsJkEfVA.js} +13 -10
- package/library/chunks/{iframe.BULqQVyL.js → iframe.BO6qSFJP.js} +1 -1
- package/library/chunks/{image.CRz6QPaa.js → image.Dqq3RyRZ.js} +2 -2
- package/library/chunks/{list-editor.c__KOqBj.js → list-editor.H4eJhYPV.js} +6 -6
- package/library/chunks/{option.Bx0TQ3Aw.js → option.CPTRiPaF.js} +1 -1
- package/library/chunks/{popup.DjWAljHx.js → popup.d45CSCf5.js} +1 -1
- package/library/chunks/{select.kCK7Ljie.js → select.ByWIHETd.js} +3 -3
- package/library/chunks/{tab-group.D5JZyPZM.js → tab-group.B6aKJLVZ.js} +2 -2
- package/library/chunks/{table.D_DSVLyS.js → table.91X28qCm.js} +4 -4
- package/library/chunks/{tree.DmH2Ckn-.js → tree.DQDSYKYi.js} +1 -1
- package/library/components/alert.js +1 -1
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +12 -12
- 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 +1 -1
- 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/radio-group.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +50 -37
- 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 +1 -1
- 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 +5655 -5523
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/relative-time/relative-time.d.ts +6 -0
- package/library/packages/atoms/src/components/relative-time/relative-time.styles.d.ts +2 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.api.d.ts +7 -1
- package/library/packages/organisms/src/text-to-speech/text-to-speech.d.ts +26 -9
- package/library/packages/types/src/text-to-speech.d.ts +6 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/react-web-component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as Ab, c as ps, g as kn } from "../chunks/_commonjsHelpers.ByX85dGu.js";
|
|
2
|
-
import { r as Tb, C as Eb, R as wb } from "../chunks/image.
|
|
2
|
+
import { r as Tb, C as Eb, R as wb } from "../chunks/image.Dqq3RyRZ.js";
|
|
3
3
|
import Sb from "./resize-observer.js";
|
|
4
4
|
import { c as Cb } from "../chunks/component.styles.CI-v8BZa.js";
|
|
5
5
|
import { b as Mb } from "../chunks/browser.Va59Ix3P.js";
|
|
6
6
|
import { i as Db, n as ki, x as Kc, c as Pb } from "../chunks/custom-element.vnXBMQxc.js";
|
|
7
|
-
import { L as Lb } from "../chunks/i18n.
|
|
7
|
+
import { L as Lb } from "../chunks/i18n.GsJkEfVA.js";
|
|
8
8
|
import { w as Bn } from "../chunks/watch.BCJD77bD.js";
|
|
9
9
|
import { r as Fn } from "../chunks/state.Cw55xXlb.js";
|
|
10
10
|
import { e as ao } from "../chunks/query.BBf1UFkC.js";
|
package/library/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as CortexElement } from '../../../../base/src/cortex-element.ts';
|
|
2
|
+
import { CSSResultGroup } from 'lit';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @summary Outputs a localized time phrase relative to the current date and time.
|
|
@@ -6,8 +7,13 @@ import { default as CortexElement } from '../../../../base/src/cortex-element.ts
|
|
|
6
7
|
* @description Localization is handled by the browser's
|
|
7
8
|
* [`Intl.RelativeTimeFormat` API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat).
|
|
8
9
|
* No language packs are required.
|
|
10
|
+
*
|
|
11
|
+
* @cssproperty --cx-relative-time-color - Text color of the relative time.
|
|
12
|
+
* @cssproperty --cx-relative-time-font-size - Font size of the relative time.
|
|
13
|
+
* @cssproperty --cx-relative-time-font-weight - Font weight of the relative time.
|
|
9
14
|
*/
|
|
10
15
|
export default class CxRelativeTime extends CortexElement {
|
|
16
|
+
static readonly styles: CSSResultGroup;
|
|
11
17
|
private readonly localize;
|
|
12
18
|
private updateTimeout;
|
|
13
19
|
private isoTime;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { Voice } from '../../../types/src/text-to-speech';
|
|
1
|
+
import { JobStatus, Voice, VoiceInfo } from '../../../types/src/text-to-speech';
|
|
2
2
|
|
|
3
3
|
export declare function getVoiceList(languageCode?: string, provider?: string): Promise<Voice[]>;
|
|
4
|
+
export declare function getVoiceInfo({ languageCode, name, provider, }: {
|
|
5
|
+
languageCode: string;
|
|
6
|
+
name: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
}): Promise<VoiceInfo>;
|
|
9
|
+
export declare function getSynthesizeJobStatus(recordID: string): Promise<JobStatus>;
|
|
4
10
|
export declare function previewVoice(text: string, languageCode: string | undefined, provider: string | undefined, voiceName: string, gender: 'MALE' | 'FEMALE'): Promise<Blob | {
|
|
5
11
|
errorMessage: string;
|
|
6
12
|
}>;
|
|
@@ -21,7 +21,7 @@ import { default as CxSpinner } from '../../../atoms/src/components/spinner/spin
|
|
|
21
21
|
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
22
22
|
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
23
23
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
24
|
-
import { TextToSpeechData } from '../../../types/src/text-to-speech';
|
|
24
|
+
import { TextToSpeechData, Voice } from '../../../types/src/text-to-speech';
|
|
25
25
|
import { TemplateResult } from 'lit';
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -60,12 +60,14 @@ export default class CxTextToSpeech extends CortexElement {
|
|
|
60
60
|
private readonly form;
|
|
61
61
|
private readonly bubbleMenu;
|
|
62
62
|
private readonly importDialog;
|
|
63
|
+
private readonly requestInProgressDialog;
|
|
63
64
|
private readonly fileInput;
|
|
65
|
+
private readonly container;
|
|
64
66
|
data: TextToSpeechData | null;
|
|
65
67
|
editable: boolean;
|
|
66
68
|
autoFocus: boolean;
|
|
67
|
-
recordId:
|
|
68
|
-
fileName:
|
|
69
|
+
recordId: string;
|
|
70
|
+
fileName: string;
|
|
69
71
|
componentTitle: string;
|
|
70
72
|
height: undefined;
|
|
71
73
|
width: undefined;
|
|
@@ -78,7 +80,8 @@ export default class CxTextToSpeech extends CortexElement {
|
|
|
78
80
|
characterLimit: number;
|
|
79
81
|
textEditor: Editor;
|
|
80
82
|
private voices;
|
|
81
|
-
private
|
|
83
|
+
private _voice;
|
|
84
|
+
get voice(): string;
|
|
82
85
|
private gender;
|
|
83
86
|
private language;
|
|
84
87
|
private speed;
|
|
@@ -92,6 +95,17 @@ export default class CxTextToSpeech extends CortexElement {
|
|
|
92
95
|
private timeCode;
|
|
93
96
|
private savedData;
|
|
94
97
|
private isEventListenerAdded;
|
|
98
|
+
/**
|
|
99
|
+
* Whether previous job(s) is unfinished.
|
|
100
|
+
*/
|
|
101
|
+
private _isPreviousJobUnfinished;
|
|
102
|
+
get isPreviousJobUnfinished(): boolean;
|
|
103
|
+
private _isTextSupportedOnly;
|
|
104
|
+
get isTextSupportedOnly(): boolean;
|
|
105
|
+
private _unsupportedSsmlTags;
|
|
106
|
+
get unsupportedSsmlTags(): string[];
|
|
107
|
+
private _selectedVoice;
|
|
108
|
+
get selectedVoice(): Voice | null;
|
|
95
109
|
private readonly provider;
|
|
96
110
|
get 'is-unsaved'(): boolean | null;
|
|
97
111
|
get isUnsaved(): boolean | null;
|
|
@@ -106,13 +120,14 @@ export default class CxTextToSpeech extends CortexElement {
|
|
|
106
120
|
private saveData;
|
|
107
121
|
private onKeyDown;
|
|
108
122
|
private onBubbleMenuOpened;
|
|
123
|
+
private fetchJobStatus;
|
|
109
124
|
resetAudio(): void;
|
|
110
125
|
handleDataChange(): void;
|
|
111
126
|
handleVoicesChange(): void;
|
|
127
|
+
handleVoiceChange(): Promise<void>;
|
|
128
|
+
handleRecordIdChange(): void;
|
|
112
129
|
handleDisabledChange(): void;
|
|
113
|
-
private
|
|
114
|
-
private get unsupportedSsmlTags();
|
|
115
|
-
private get isTextSupportedOnly();
|
|
130
|
+
private handleSubmit;
|
|
116
131
|
openImportDialog(event: any): void;
|
|
117
132
|
closeImportDialog(): void;
|
|
118
133
|
confirmImport(): void;
|
|
@@ -135,8 +150,9 @@ export default class CxTextToSpeech extends CortexElement {
|
|
|
135
150
|
private handleBreakKeydown;
|
|
136
151
|
private handleBreakChange;
|
|
137
152
|
private handleBreakUnitChange;
|
|
138
|
-
private
|
|
153
|
+
private handleVoiceSelectChange;
|
|
139
154
|
private handleSpeedChange;
|
|
155
|
+
private handleContainerClick;
|
|
140
156
|
private renderControls;
|
|
141
157
|
private renderBreakControls;
|
|
142
158
|
private renderBreakMenu;
|
|
@@ -146,7 +162,8 @@ export default class CxTextToSpeech extends CortexElement {
|
|
|
146
162
|
private renderGlobalControls;
|
|
147
163
|
private renderInfo;
|
|
148
164
|
private renderImportFileConfirmDialog;
|
|
149
|
-
private
|
|
165
|
+
private renderRequestInProgressDialog;
|
|
166
|
+
private renderPreviousJobStatus;
|
|
150
167
|
render(): TemplateResult;
|
|
151
168
|
}
|
|
152
169
|
declare global {
|
|
@@ -487,6 +487,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
487
487
|
previewText: string;
|
|
488
488
|
previewTooltip: string;
|
|
489
489
|
previous: string;
|
|
490
|
+
previousJobUnfinished: string;
|
|
490
491
|
previousSlide: string;
|
|
491
492
|
primary: string;
|
|
492
493
|
progress: string;
|
|
@@ -504,6 +505,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
504
505
|
removeBlock: string;
|
|
505
506
|
removeFolder: (num: number) => string;
|
|
506
507
|
renderAudio: string;
|
|
508
|
+
requestInProgress: string;
|
|
507
509
|
reset: string;
|
|
508
510
|
resetPosition: string;
|
|
509
511
|
resize: string;
|
|
@@ -616,6 +618,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
616
618
|
textEditor: string;
|
|
617
619
|
textInput: string;
|
|
618
620
|
textReveal: string;
|
|
621
|
+
textToSpeechRequestInProgress: string;
|
|
619
622
|
textToSpeechUserGuide: string;
|
|
620
623
|
textures: string;
|
|
621
624
|
thickness: string;
|