@pega/cosmos-react-core 7.0.0-build.7.2 → 7.0.0-build.8.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/lib/components/File/FileDisplay.d.ts.map +1 -1
- package/lib/components/File/FileDisplay.js +1 -1
- package/lib/components/File/FileDisplay.js.map +1 -1
- package/lib/components/File/FileInput.d.ts.map +1 -1
- package/lib/components/File/FileInput.js +35 -21
- package/lib/components/File/FileInput.js.map +1 -1
- package/lib/components/File/FileItem.d.ts +2 -4
- package/lib/components/File/FileItem.d.ts.map +1 -1
- package/lib/components/File/FileItem.js +3 -4
- package/lib/components/File/FileItem.js.map +1 -1
- package/lib/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/lib/components/Lightbox/Lightbox.js +8 -6
- package/lib/components/Lightbox/Lightbox.js.map +1 -1
- package/lib/i18n/default.js +1 -1
- package/lib/i18n/default.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/File/FileDisplay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,YAAY,CAAC,EAC5D,SAAS,EACT,cAAc;IAChB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,iBAAiB,GAAG,eAAe,CAAC,CAAC;CACjE;AAED,QAAA,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"FileDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/File/FileDisplay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,YAAY,CAAC,EAC5D,SAAS,EACT,cAAc;IAChB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,iBAAiB,GAAG,eAAe,CAAC,CAAC;CACjE;AAED,QAAA,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,YAAY,CA0CnE,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -9,7 +9,7 @@ const FileDisplay = forwardRef(function FileDisplay({ id, displayText, value, va
|
|
|
9
9
|
}
|
|
10
10
|
if (variant === 'link')
|
|
11
11
|
return (_jsx(Link, { ref: ref, ...restProps, href: value, children: displayText || value }));
|
|
12
|
-
return (_jsx(FileItem, { ...restProps, id: id, ref: ref, format: value.split('.').pop() ?? value, name: displayText || value,
|
|
12
|
+
return (_jsx(FileItem, { ...restProps, id: id, ref: ref, format: value.split('.').pop() ?? value, name: displayText || value, thumbnail: thumbnail, onDownload: onDownload, onPreview: onPreview }));
|
|
13
13
|
});
|
|
14
14
|
export default FileDisplay;
|
|
15
15
|
//# sourceMappingURL=FileDisplay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileDisplay.js","sourceRoot":"","sources":["../../../src/components/File/FileDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAsBlC,MAAM,WAAW,GAAuD,UAAU,CAChF,SAAS,WAAW,CAClB,EACE,EAAE,EACF,WAAW,EACX,KAAK,EACL,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,GAAG,SAAS,EACsB,EACpC,GAA4B;IAE5B,IAAI,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,EAAE;QAChC,OAAO,CACL,eAAM,GAAG,EAAE,GAAG,KAAM,SAAS,YAC1B,KAAK,CAAC,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,KAAG,GACtC,CACR,CAAC;KACH;IAED,IAAI,OAAO,KAAK,MAAM;QACpB,OAAO,CACL,KAAC,IAAI,IAAC,GAAG,EAAE,GAA6B,KAAM,SAAS,EAAE,IAAI,EAAE,KAAK,YACjE,WAAW,IAAI,KAAK,GAChB,CACR,CAAC;IAEJ,OAAO,CACL,KAAC,QAAQ,OACH,SAAS,EACb,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,GAA0B,EAC/B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,EACvC,IAAI,EAAE,WAAW,IAAI,KAAK,EAC1B,
|
|
1
|
+
{"version":3,"file":"FileDisplay.js","sourceRoot":"","sources":["../../../src/components/File/FileDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAsBlC,MAAM,WAAW,GAAuD,UAAU,CAChF,SAAS,WAAW,CAClB,EACE,EAAE,EACF,WAAW,EACX,KAAK,EACL,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,GAAG,SAAS,EACsB,EACpC,GAA4B;IAE5B,IAAI,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,EAAE;QAChC,OAAO,CACL,eAAM,GAAG,EAAE,GAAG,KAAM,SAAS,YAC1B,KAAK,CAAC,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,CAAC,CAAC,KAAC,OAAO,KAAG,GACtC,CACR,CAAC;KACH;IAED,IAAI,OAAO,KAAK,MAAM;QACpB,OAAO,CACL,KAAC,IAAI,IAAC,GAAG,EAAE,GAA6B,KAAM,SAAS,EAAE,IAAI,EAAE,KAAK,YACjE,WAAW,IAAI,KAAK,GAChB,CACR,CAAC;IAEJ,OAAO,CACL,KAAC,QAAQ,OACH,SAAS,EACb,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,GAA0B,EAC/B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,EACvC,IAAI,EAAE,WAAW,IAAI,KAAK,EAC1B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,GACpB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { forwardRef } from 'react';\nimport type { FunctionComponent, PropsWithoutRef, Ref } from 'react';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp } from '../../types';\nimport Link from '../Link';\nimport NoValue from '../NoValue/NoValue';\n\nimport FileItem from './FileItem';\nimport type { FileItemProps } from './FileItem';\n\nexport interface FileDisplayProps\n extends Pick<FileItemProps, 'id' | 'onPreview' | 'onDownload'>,\n BaseProps,\n NoChildrenProp {\n /** URL address */\n value?: string;\n /** The text to be displayed. */\n displayText?: string;\n /**\n * Display value either as file, link only or textual representation.\n * @default 'file'\n */\n variant?: 'file' | 'link' | 'text';\n /** Thumbnail image. */\n thumbnail?: string;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement | HTMLAnchorElement | HTMLSpanElement>;\n}\n\nconst FileDisplay: FunctionComponent<FileDisplayProps & ForwardProps> = forwardRef(\n function FileDisplay(\n {\n id,\n displayText,\n value,\n variant,\n thumbnail,\n onPreview,\n onDownload,\n ...restProps\n }: PropsWithoutRef<FileDisplayProps>,\n ref: FileDisplayProps['ref']\n ) {\n if (variant === 'text' || !value) {\n return (\n <span ref={ref} {...restProps}>\n {value ? displayText || value : <NoValue />}\n </span>\n );\n }\n\n if (variant === 'link')\n return (\n <Link ref={ref as Ref<HTMLAnchorElement>} {...restProps} href={value}>\n {displayText || value}\n </Link>\n );\n\n return (\n <FileItem\n {...restProps}\n id={id}\n ref={ref as Ref<HTMLDivElement>}\n format={value.split('.').pop() ?? value}\n name={displayText || value}\n thumbnail={thumbnail}\n onDownload={onDownload}\n onPreview={onPreview}\n />\n );\n }\n);\n\nexport default FileDisplay;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/File/FileInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAA2C,MAAM,OAAO,CAAC;AAI7F,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,cAAc,EAEd,UAAU,EACX,MAAM,aAAa,CAAC;AAU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AC,CAAC;IAChC,8EAA8E;IAC9E,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IACpD,sEAAsE;IACtE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc;cAAmC,OAAO;SAoBpE,CAAC;AAIF,eAAO,MAAM,eAAe,wMAc3B,CAAC;;;;AA8KF,wBAA2D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement as _createElement } from "react";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef, useCallback, useState } from 'react';
|
|
3
|
+
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { hideVisually } from 'polished';
|
|
6
6
|
import { useConsolidatedRef, useI18n, useUID, useDirection, useTestIds, useTheme } from '../../hooks';
|
|
@@ -12,23 +12,24 @@ import Icon, { registerIcon } from '../Icon';
|
|
|
12
12
|
import * as paperClipIcon from '../Icon/icons/paper-clip.icon';
|
|
13
13
|
import FormField from '../FormField';
|
|
14
14
|
import Grid from '../Grid';
|
|
15
|
-
import { withTestIds } from '../../utils';
|
|
15
|
+
import { getFocusables, withTestIds } from '../../utils';
|
|
16
16
|
import FileItem from './FileItem';
|
|
17
17
|
import { getFileInputTestIds } from './File.test-ids';
|
|
18
18
|
registerIcon(paperClipIcon);
|
|
19
|
-
export const StyledDropZone = styled(FormControl)(({ dragOver, theme }) => {
|
|
19
|
+
export const StyledDropZone = styled(FormControl)(({ dragOver, theme: { base: { spacing }, components } }) => {
|
|
20
20
|
return css `
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
padding: calc(2 * ${spacing});
|
|
22
|
+
height: ${components.input.height};
|
|
23
|
+
border-style: dashed;
|
|
24
|
+
cursor: pointer;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
${dragOver &&
|
|
27
27
|
css `
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
border-style: solid;
|
|
29
|
+
`}
|
|
30
|
+
`;
|
|
31
31
|
});
|
|
32
|
+
StyledDropZone.defaultProps = defaultThemeProp;
|
|
32
33
|
export const StyledFileInput = styled.div(({ theme }) => {
|
|
33
34
|
return css `
|
|
34
35
|
position: relative;
|
|
@@ -40,10 +41,6 @@ export const StyledFileInput = styled.div(({ theme }) => {
|
|
|
40
41
|
input:enabled:focus + ${StyledDropZone} {
|
|
41
42
|
box-shadow: ${theme.components['form-control'][':focus']['box-shadow']};
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
input[hidden] + ${StyledDropZone} {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
44
|
`;
|
|
48
45
|
});
|
|
49
46
|
StyledFileInput.defaultProps = defaultThemeProp;
|
|
@@ -60,6 +57,9 @@ const FileInput = forwardRef(function FileInput(props, ref) {
|
|
|
60
57
|
const testIds = useTestIds(testId, getFileInputTestIds);
|
|
61
58
|
const icon = _jsx(Icon, { name: 'paper-clip' });
|
|
62
59
|
const inputRef = useConsolidatedRef(ref);
|
|
60
|
+
const fileItemListRef = useRef(null);
|
|
61
|
+
// Tracks whether at least one file is uploaded -- used for updating the focus to DropZone when the files are deleted
|
|
62
|
+
const isFilesAdded = useRef(false);
|
|
63
63
|
const onChange = useCallback((e) => {
|
|
64
64
|
if (e.target.files) {
|
|
65
65
|
onFilesAdded?.(Array.from(e.target.files));
|
|
@@ -78,6 +78,7 @@ const FileInput = forwardRef(function FileInput(props, ref) {
|
|
|
78
78
|
const t = useI18n();
|
|
79
79
|
const [dragOver, setDragOver] = useState(false);
|
|
80
80
|
const { ltr, rtl } = useDirection();
|
|
81
|
+
const hideFileInput = !multiple && files && files.length > 0;
|
|
81
82
|
const fileInput = (_jsxs(StyledFileInput, { children: [_jsx("input", { "data-testid": testIds.control, ...restProps, ref: inputRef, type: 'file', id: id, disabled: disabled, onChange: onChange, multiple: multiple, accept: Array.isArray(accept) ? accept.join(',') : accept }), _jsxs(Flex, { container: { alignItems: 'center', justify: 'center' }, item: { grow: 1 }, as: StyledDropZone, dragOver: dragOver, onClick: () => {
|
|
82
83
|
inputRef.current?.focus();
|
|
83
84
|
inputRef.current?.click();
|
|
@@ -90,12 +91,25 @@ const FileInput = forwardRef(function FileInput(props, ref) {
|
|
|
90
91
|
}, children: [ltr && icon, _jsxs(Text, { variant: 'primary', children: ["\u00A0", t('file_upload_text_main', [
|
|
91
92
|
_jsx(StyledInteractiveText, { children: t(multiple ? 'file_upload_text_multiple' : 'file_upload_text_one') })
|
|
92
93
|
]), "\u00A0"] }), rtl && icon] })] }));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
const fileItemList = (_jsx(Grid, { "data-testid": testIds.files, container: {
|
|
95
|
+
gap: 1,
|
|
96
|
+
cols: `repeat(auto-fill, minmax(min(${md}, 100%), 1fr));`
|
|
97
|
+
}, as: 'ul', ref: fileItemListRef, children: files?.map(file => {
|
|
98
|
+
return _createElement(FileItem, { ...file, key: file.id });
|
|
99
|
+
}) }));
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
if (files && files.length > 0 && !isFilesAdded.current)
|
|
102
|
+
isFilesAdded.current = true;
|
|
103
|
+
else if (files?.length === 0 && isFilesAdded.current) {
|
|
104
|
+
isFilesAdded.current = false;
|
|
105
|
+
inputRef.current?.focus();
|
|
106
|
+
}
|
|
107
|
+
if (hideFileInput && fileItemListRef.current) {
|
|
108
|
+
getFocusables(fileItemListRef)[0]?.focus();
|
|
109
|
+
}
|
|
110
|
+
}, [files]);
|
|
111
|
+
const renderElement = hideFileInput ? fileItemList : fileInput;
|
|
112
|
+
return (_jsxs(Grid, { container: { rowGap: hideFileInput ? undefined : 1 }, children: [label ? (_jsx(FormField, { testId: testIds, label: label, labelHidden: labelHidden, id: id, info: info, required: required, disabled: !hideFileInput && disabled, status: status, additionalInfo: additionalInfo, children: renderElement })) : (renderElement), !hideFileInput && fileItemList] }));
|
|
99
113
|
});
|
|
100
114
|
export default withTestIds(FileInput, getFileInputTestIds);
|
|
101
115
|
//# sourceMappingURL=FileInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.js","sourceRoot":"","sources":["../../../src/components/File/FileInput.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AASxC,OAAO,EACL,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,YAAY,CAAC,aAAa,CAAC,CAAC;AA8C5B,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,CAAwB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/F,OAAO,GAAG,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7B,SAAS,GACA,CACb,CAAC,CAAC,CAAC,CACF,SAAS,CACV,EACA,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,CAClB,KAAC,IAAI,mBACU,OAAO,CAAC,KAAK,EAC1B,SAAS,EAAE;oBACT,GAAG,EAAE,CAAC;oBACN,IAAI,EAAE,gCAAgC,EAAE,iBAAiB;iBAC1D,EACD,EAAE,EAAC,IAAI,YAEN,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAChB,OAAO,eAAC,QAAQ,OAAK,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAI,CAAC;gBAC9C,CAAC,CAAC,GACG,CACR,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import { forwardRef, useCallback, useState } from 'react';\nimport type { FunctionComponent, Ref, ChangeEvent, PropsWithoutRef, DragEvent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { hideVisually } from 'polished';\n\nimport type {\n BaseProps,\n ForwardProps,\n NoChildrenProp,\n PropsWithDefaults,\n TestIdProp\n} from '../../types';\nimport {\n useConsolidatedRef,\n useI18n,\n useUID,\n useDirection,\n useTestIds,\n useTheme\n} from '../../hooks';\nimport FormControl from '../FormControl';\nimport type { FormControlProps } from '../FormControl';\nimport { defaultThemeProp } from '../../theme';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Icon, { registerIcon } from '../Icon';\nimport * as paperClipIcon from '../Icon/icons/paper-clip.icon';\nimport FormField from '../FormField';\nimport Grid from '../Grid';\nimport { withTestIds } from '../../utils';\n\nimport FileItem from './FileItem';\nimport type { FileItemProps } from './FileItem';\nimport { getFileInputTestIds } from './File.test-ids';\n\nregisterIcon(paperClipIcon);\n\ntype FileInputPropsWithDefaults = PropsWithDefaults<FileInputProps>;\n\nexport interface FileInputProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** Called when files are added either via the input or drop zone. */\n onFilesAdded?: (files: File[]) => void;\n /**\n * Allow multiple files to be selected from the OS specific file browser.\n * NOTE: This does not restrict multiple files from being added via drag and drop.\n * Restrict multi file drag and drop via onFilesAdded and custom info message.\n * @default false\n */\n multiple?: boolean;\n /** An array of files that have been uploaded. */\n files?: FileItemProps[];\n /**\n * Specify allowed file types.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept}\n */\n accept?: string | string[];\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Visually hides the label region. */\n labelHidden?: FormControlProps['labelHidden'];\n /** It is recommended to pass a simple string to offer guidance. Text will be styled based on status prop. */\n info?: FormControlProps['info'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n /** Ref for the input element within the component's dom structure. */\n ref?: Ref<HTMLInputElement>;\n}\n\nexport const StyledDropZone = styled(FormControl)<{ dragOver: boolean }>(({ dragOver, theme }) => {\n return css`\n padding: calc(2 * ${theme.base.spacing});\n min-height: 4rem;\n border-style: dashed;\n cursor: pointer;\n\n ${dragOver &&\n css`\n border-style: solid;\n `}\n `;\n});\n\nexport const StyledFileInput = styled.div<FileInputPropsWithDefaults & ForwardProps>(\n ({ theme }) => {\n return css`\n position: relative;\n\n input {\n ${hideVisually}\n }\n\n input:enabled:focus + ${StyledDropZone} {\n box-shadow: ${theme.components['form-control'][':focus']['box-shadow']};\n }\n\n input[hidden] + ${StyledDropZone} {\n display: none;\n }\n `;\n }\n);\n\nStyledFileInput.defaultProps = defaultThemeProp;\n\nconst StyledInteractiveText = styled.span(({ theme }) => {\n return css`\n color: ${theme.base.palette.interactive};\n `;\n});\n\nStyledInteractiveText.defaultProps = defaultThemeProp;\n\nconst FileInput: FunctionComponent<FileInputProps & ForwardProps> = forwardRef(function FileInput(\n props: PropsWithoutRef<FileInputProps>,\n ref: FileInputProps['ref']\n) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n label,\n labelHidden,\n info,\n required = false,\n disabled = false,\n files,\n onFilesAdded,\n multiple = false,\n status,\n additionalInfo,\n accept,\n ...restProps\n } = props;\n\n const {\n base: {\n 'content-width': { md }\n }\n } = useTheme();\n\n const testIds = useTestIds(testId, getFileInputTestIds);\n\n const icon = <Icon name='paper-clip' />;\n const inputRef = useConsolidatedRef(ref);\n\n const onChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (e.target.files) {\n onFilesAdded?.(Array.from(e.target.files));\n }\n /**\n * WHY are we doing this?\n * We are not working with the \"value\" prop of the input but rather the File instances that are created.\n * The consumer of this component should manage an array or File(s) and allow for a user to remove a selected file.\n * Since we can not modify the input value of files for browser security reasons,\n * and since setting the files property is less than ideal, we reset/toggle the input to a fresh state after a render.\n * This enables onChange to fire even if the user had just previously selected a file, removed it, and selected it again.\n */\n if (inputRef.current) inputRef.current.value = '';\n },\n [onFilesAdded]\n );\n\n const t = useI18n();\n const [dragOver, setDragOver] = useState(false);\n const { ltr, rtl } = useDirection();\n\n const fileInput = (\n <StyledFileInput>\n <input\n data-testid={testIds.control}\n {...restProps}\n ref={inputRef}\n type='file'\n id={id}\n disabled={disabled}\n onChange={onChange}\n multiple={multiple}\n accept={Array.isArray(accept) ? accept.join(',') : accept}\n />\n <Flex\n container={{ alignItems: 'center', justify: 'center' }}\n item={{ grow: 1 }}\n as={StyledDropZone}\n dragOver={dragOver}\n onClick={() => {\n inputRef.current?.focus();\n inputRef.current?.click();\n }}\n onDragOver={(e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n }}\n onDragEnter={() => setDragOver(true)}\n onDragLeave={() => setDragOver(false)}\n onDrop={(e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n setDragOver(false);\n onFilesAdded?.(Array.from(e.dataTransfer.files));\n }}\n >\n {ltr && icon}\n <Text variant='primary'>\n \n {t('file_upload_text_main', [\n <StyledInteractiveText>\n {t(multiple ? 'file_upload_text_multiple' : 'file_upload_text_one')}\n </StyledInteractiveText>\n ])}\n \n </Text>\n {rtl && icon}\n </Flex>\n </StyledFileInput>\n );\n\n return (\n <Grid container={{ rowGap: 1 }}>\n {label ? (\n <FormField\n testId={testIds}\n label={label}\n labelHidden={labelHidden}\n id={id}\n info={info}\n required={required}\n disabled={disabled}\n status={status}\n additionalInfo={additionalInfo}\n >\n {fileInput}\n </FormField>\n ) : (\n fileInput\n )}\n {!!files?.length && (\n <Grid\n data-testid={testIds.files}\n container={{\n gap: 1,\n cols: `repeat(auto-fill, minmax(min(${md}, 100%), 1fr));`\n }}\n as='ul'\n >\n {files.map(file => {\n return <FileItem {...file} key={file.id} />;\n })}\n </Grid>\n )}\n </Grid>\n );\n});\n\nexport default withTestIds(FileInput, getFileInputTestIds);\n"]}
|
|
1
|
+
{"version":3,"file":"FileInput.js","sourceRoot":"","sources":["../../../src/components/File/FileInput.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AASxC,OAAO,EACL,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,MA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I,aAAa,IAAI,eAAe,CAAC,OAAO,EAAE;YAC5C,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;SAC5C;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,MAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAE/D,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,aACvD,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,SAAS,IACR,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,CAAC,aAAa,IAAI,QAAQ,EACpC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,YAE7B,aAAa,GACJ,CACb,CAAC,CAAC,CAAC,CACF,aAAa,CACd,EACA,CAAC,aAAa,IAAI,YAAY,IAC1B,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';\nimport type { FunctionComponent, Ref, ChangeEvent, PropsWithoutRef, DragEvent } from 'react';\nimport styled, { css } from 'styled-components';\nimport { hideVisually } from 'polished';\n\nimport type {\n BaseProps,\n ForwardProps,\n NoChildrenProp,\n PropsWithDefaults,\n TestIdProp\n} from '../../types';\nimport {\n useConsolidatedRef,\n useI18n,\n useUID,\n useDirection,\n useTestIds,\n useTheme\n} from '../../hooks';\nimport FormControl from '../FormControl';\nimport type { FormControlProps } from '../FormControl';\nimport { defaultThemeProp } from '../../theme';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Icon, { registerIcon } from '../Icon';\nimport * as paperClipIcon from '../Icon/icons/paper-clip.icon';\nimport FormField from '../FormField';\nimport Grid from '../Grid';\nimport { getFocusables, withTestIds } from '../../utils';\n\nimport FileItem from './FileItem';\nimport type { FileItemProps } from './FileItem';\nimport { getFileInputTestIds } from './File.test-ids';\n\nregisterIcon(paperClipIcon);\n\ntype FileInputPropsWithDefaults = PropsWithDefaults<FileInputProps>;\n\nexport interface FileInputProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** Called when files are added either via the input or drop zone. */\n onFilesAdded?: (files: File[]) => void;\n /**\n * Allow multiple files to be selected from the OS specific file browser.\n * NOTE: This does not restrict multiple files from being added via drag and drop.\n * Restrict multi file drag and drop via onFilesAdded and custom info message.\n * @default false\n */\n multiple?: boolean;\n /** An array of files that have been uploaded. */\n files?: FileItemProps[];\n /**\n * Specify allowed file types.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept}\n */\n accept?: string | string[];\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Visually hides the label region. */\n labelHidden?: FormControlProps['labelHidden'];\n /** It is recommended to pass a simple string to offer guidance. Text will be styled based on status prop. */\n info?: FormControlProps['info'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n /** Ref for the input element within the component's dom structure. */\n ref?: Ref<HTMLInputElement>;\n}\n\nexport const StyledDropZone = styled(FormControl)<{ dragOver: boolean }>(\n ({\n dragOver,\n theme: {\n base: { spacing },\n components\n }\n }) => {\n return css`\n padding: calc(2 * ${spacing});\n height: ${components.input.height};\n border-style: dashed;\n cursor: pointer;\n\n ${dragOver &&\n css`\n border-style: solid;\n `}\n `;\n }\n);\n\nStyledDropZone.defaultProps = defaultThemeProp;\n\nexport const StyledFileInput = styled.div<FileInputPropsWithDefaults & ForwardProps>(\n ({ theme }) => {\n return css`\n position: relative;\n\n input {\n ${hideVisually}\n }\n\n input:enabled:focus + ${StyledDropZone} {\n box-shadow: ${theme.components['form-control'][':focus']['box-shadow']};\n }\n `;\n }\n);\n\nStyledFileInput.defaultProps = defaultThemeProp;\n\nconst StyledInteractiveText = styled.span(({ theme }) => {\n return css`\n color: ${theme.base.palette.interactive};\n `;\n});\n\nStyledInteractiveText.defaultProps = defaultThemeProp;\n\nconst FileInput: FunctionComponent<FileInputProps & ForwardProps> = forwardRef(function FileInput(\n props: PropsWithoutRef<FileInputProps>,\n ref: FileInputProps['ref']\n) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n label,\n labelHidden,\n info,\n required = false,\n disabled = false,\n files,\n onFilesAdded,\n multiple = false,\n status,\n additionalInfo,\n accept,\n ...restProps\n } = props;\n\n const {\n base: {\n 'content-width': { md }\n }\n } = useTheme();\n\n const testIds = useTestIds(testId, getFileInputTestIds);\n\n const icon = <Icon name='paper-clip' />;\n const inputRef = useConsolidatedRef(ref);\n const fileItemListRef = useRef<HTMLElement | null>(null);\n\n // Tracks whether at least one file is uploaded -- used for updating the focus to DropZone when the files are deleted\n const isFilesAdded = useRef(false);\n\n const onChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n if (e.target.files) {\n onFilesAdded?.(Array.from(e.target.files));\n }\n /**\n * WHY are we doing this?\n * We are not working with the \"value\" prop of the input but rather the File instances that are created.\n * The consumer of this component should manage an array or File(s) and allow for a user to remove a selected file.\n * Since we can not modify the input value of files for browser security reasons,\n * and since setting the files property is less than ideal, we reset/toggle the input to a fresh state after a render.\n * This enables onChange to fire even if the user had just previously selected a file, removed it, and selected it again.\n */\n if (inputRef.current) inputRef.current.value = '';\n },\n [onFilesAdded]\n );\n\n const t = useI18n();\n const [dragOver, setDragOver] = useState(false);\n const { ltr, rtl } = useDirection();\n const hideFileInput = !multiple && files && files.length > 0;\n\n const fileInput = (\n <StyledFileInput>\n <input\n data-testid={testIds.control}\n {...restProps}\n ref={inputRef}\n type='file'\n id={id}\n disabled={disabled}\n onChange={onChange}\n multiple={multiple}\n accept={Array.isArray(accept) ? accept.join(',') : accept}\n />\n <Flex\n container={{ alignItems: 'center', justify: 'center' }}\n item={{ grow: 1 }}\n as={StyledDropZone}\n dragOver={dragOver}\n onClick={() => {\n inputRef.current?.focus();\n inputRef.current?.click();\n }}\n onDragOver={(e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n }}\n onDragEnter={() => setDragOver(true)}\n onDragLeave={() => setDragOver(false)}\n onDrop={(e: DragEvent<HTMLDivElement>) => {\n e.preventDefault();\n setDragOver(false);\n onFilesAdded?.(Array.from(e.dataTransfer.files));\n }}\n >\n {ltr && icon}\n <Text variant='primary'>\n \n {t('file_upload_text_main', [\n <StyledInteractiveText>\n {t(multiple ? 'file_upload_text_multiple' : 'file_upload_text_one')}\n </StyledInteractiveText>\n ])}\n \n </Text>\n {rtl && icon}\n </Flex>\n </StyledFileInput>\n );\n\n const fileItemList = (\n <Grid\n data-testid={testIds.files}\n container={{\n gap: 1,\n cols: `repeat(auto-fill, minmax(min(${md}, 100%), 1fr));`\n }}\n as='ul'\n ref={fileItemListRef}\n >\n {files?.map(file => {\n return <FileItem {...file} key={file.id} />;\n })}\n </Grid>\n );\n\n useEffect(() => {\n if (files && files.length > 0 && !isFilesAdded.current) isFilesAdded.current = true;\n else if (files?.length === 0 && isFilesAdded.current) {\n isFilesAdded.current = false;\n inputRef.current?.focus();\n }\n\n if (hideFileInput && fileItemListRef.current) {\n getFocusables(fileItemListRef)[0]?.focus();\n }\n }, [files]);\n\n const renderElement = hideFileInput ? fileItemList : fileInput;\n\n return (\n <Grid container={{ rowGap: hideFileInput ? undefined : 1 }}>\n {label ? (\n <FormField\n testId={testIds}\n label={label}\n labelHidden={labelHidden}\n id={id}\n info={info}\n required={required}\n disabled={!hideFileInput && disabled}\n status={status}\n additionalInfo={additionalInfo}\n >\n {renderElement}\n </FormField>\n ) : (\n renderElement\n )}\n {!hideFileInput && fileItemList}\n </Grid>\n );\n});\n\nexport default withTestIds(FileInput, getFileInputTestIds);\n"]}
|
|
@@ -6,8 +6,6 @@ export interface FileItemProps extends BaseProps {
|
|
|
6
6
|
id: string;
|
|
7
7
|
/** Name of the file. */
|
|
8
8
|
name: string;
|
|
9
|
-
/** Url of the file. */
|
|
10
|
-
url: string;
|
|
11
9
|
/** A string to be used as an image src for a attachment thumbnail. Falls back to a provided icon or the default attachment icon. */
|
|
12
10
|
thumbnail?: FileVisualProps['thumbnail'];
|
|
13
11
|
/** File extension. Use 'url' for link */
|
|
@@ -16,9 +14,9 @@ export interface FileItemProps extends BaseProps {
|
|
|
16
14
|
onCancel?: (id: FileItemProps['id']) => void;
|
|
17
15
|
/** When passed, will render a single icon button or within a MenuButton if other actions are defined. */
|
|
18
16
|
onEdit?: (id: FileItemProps['id']) => void;
|
|
19
|
-
/** When passed, will be called on click of the name. Passes file
|
|
17
|
+
/** When passed, will be called on click of the name. Passes file id as the parameter. */
|
|
20
18
|
onPreview?: (id: FileItemProps['id']) => void;
|
|
21
|
-
/** When passed, will render a single icon button or within a MenuButton if other actions are defined. Passes file
|
|
19
|
+
/** When passed, will render a single icon button or within a MenuButton if other actions are defined. Passes file id as the parameter. */
|
|
22
20
|
onDownload?: (id: FileItemProps['id']) => void;
|
|
23
21
|
/** When passed, will render a single icon button or within a MenuButton if other actions are defined. */
|
|
24
22
|
onDelete?: (id: FileItemProps['id']) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["../../../src/components/File/FileItem.tsx"],"names":[],"mappings":"AACA,OAAO,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AC;IAC/C,yGAAyG;IACzG,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC7C,gIAAgI;IAChI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oGAAoG;IACpG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAqFD,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,GAAG,YAAY,CAwJ7C,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -76,14 +76,13 @@ const StyledFileItem = styled.div(({ theme: { base: { palette, 'border-radius':
|
|
|
76
76
|
});
|
|
77
77
|
StyledFileItem.defaultProps = defaultThemeProp;
|
|
78
78
|
const FileItem = forwardRef(function FileItem(props, ref) {
|
|
79
|
-
const { id, name,
|
|
79
|
+
const { id, name, thumbnail, format, error, onCancel, onEdit, onPreview, onDownload, onDelete, progress, ...restProps } = props;
|
|
80
80
|
const [thumbnailError, setThumbnailError] = useState(false);
|
|
81
81
|
const [textTarget, setTextTarget] = useElement();
|
|
82
82
|
const [metaTarget, setMetaTarget] = useElement();
|
|
83
83
|
const { locale } = useConfiguration();
|
|
84
84
|
const t = useI18n();
|
|
85
85
|
const uploading = typeof progress === 'number' && progress < 100;
|
|
86
|
-
const text = name || url;
|
|
87
86
|
let metaMessage;
|
|
88
87
|
if (uploading) {
|
|
89
88
|
metaMessage = formatNumber(progress, {
|
|
@@ -123,7 +122,7 @@ const FileItem = forwardRef(function FileItem(props, ref) {
|
|
|
123
122
|
visual = _jsx(StyledErrorIcon, { name: 'warn-solid' });
|
|
124
123
|
}
|
|
125
124
|
else {
|
|
126
|
-
visual =
|
|
125
|
+
visual = (_jsx(FileVisual, { type: format === 'url' ? 'link' : getKindFromMimeType(getMimeTypeFromFile(format ?? '') ?? ''), thumbnail: thumbnailError ? undefined : thumbnail, onThumbnailError: () => {
|
|
127
126
|
setThumbnailError(true);
|
|
128
127
|
} }));
|
|
129
128
|
}
|
|
@@ -134,7 +133,7 @@ const FileItem = forwardRef(function FileItem(props, ref) {
|
|
|
134
133
|
gap: 1
|
|
135
134
|
}, ref: ref, children: [visual, onPreview && !(error || uploading) ? (_jsxs(Button, { ...restProps, as: StyledPreviewTitle, variant: 'link', ref: setTextTarget, onClick: () => {
|
|
136
135
|
onPreview(id);
|
|
137
|
-
}, "aria-label": t('preview_file', [
|
|
136
|
+
}, "aria-label": t('preview_file', [name]), children: [name, format === 'url' && _jsx(Icon, { name: 'open' })] })) : (_jsx(Text, { ...restProps, as: StyledTextTitle, ref: setTextTarget, children: name })), metaMessage && (_jsxs(_Fragment, { children: [_jsx(Text, { as: StyledMeta, variant: 'secondary', error: error && !uploading, ref: setMetaTarget, children: metaMessage }), metaTarget && (_jsx(Tooltip, { target: metaTarget, describeTarget: false, smart: true, children: metaMessage }))] })), (error || uploading) && onCancel && (_jsx(StyledActionsWrapper, { meta: !!metaMessage, children: _jsx(Button, { label: t('cancel'), "aria-label": `${t('cancel')} - ${name}`, variant: 'simple', compact: true, icon: true, onClick: () => onCancel(id), children: _jsx(Icon, { name: 'times' }) }) })), !(error || uploading) && !!definedActions.length && (_jsx(StyledActionsWrapper, { meta: !!metaMessage, children: _jsx(Actions, { items: definedActions, compact: true, iconOnly: true, contextualLabel: name }) })), textTarget && (_jsx(Tooltip, { target: textTarget, smart: true, describeTarget: false, children: name }))] }));
|
|
138
137
|
});
|
|
139
138
|
export default FileItem;
|
|
140
139
|
//# sourceMappingURL=FileItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileItem.js","sourceRoot":"","sources":["../../../src/components/File/FileItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAE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,OAAO,GAAG,GACd,GACY,CACxB,EAEA,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,MAAM,IAAI,CACnD,KAAC,oBAAoB,IAAC,IAAI,EAAE,CAAC,CAAC,WAAW,YACvC,KAAC,OAAO,IAAC,KAAK,EAAE,cAAc,EAAE,OAAO,QAAC,QAAQ,QAAC,eAAe,EAAE,IAAI,GAAI,GACrD,CACxB,EAEA,UAAU,IAAI,CACb,KAAC,OAAO,IAAC,MAAM,EAAE,UAAU,EAAE,KAAK,QAAC,cAAc,EAAE,KAAK,YACrD,IAAI,GACG,CACX,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, useState } from 'react';\nimport type { PropsWithoutRef, FC, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Text, { StyledText } from '../Text';\nimport Icon from '../Icon';\nimport Tooltip from '../Tooltip';\nimport type { ForwardProps, BaseProps, Action } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Button from '../Button';\nimport { useI18n, useElement, useConfiguration } from '../../hooks';\nimport Actions from '../Actions';\nimport Progress from '../Progress';\nimport { StyledProgressRing } from '../Progress/Progress.styles';\nimport { formatNumber } from '../Number';\nimport Flex from '../Flex';\nimport { StyledIconShape } from '../Icon/Icon';\n\nimport { getKindFromMimeType, getMimeTypeFromFile } from './utils';\nimport FileVisual, { StyledFileVisual } from './FileVisual';\nimport type { FileVisualProps } from './FileVisual';\n\nexport interface FileItemProps extends BaseProps {\n /** Unique id for item. */\n id: string;\n /** Name of the file. */\n name: string;\n /** Url of the file. */\n url: string;\n /** A string to be used as an image src for a attachment thumbnail. Falls back to a provided icon or the default attachment icon. */\n thumbnail?: FileVisualProps['thumbnail'];\n /** File extension. Use 'url' for link */\n format?: string;\n /** When passed, will render a single icon button for yet to be or in progress uploads. Use this action to trigger xhr request termination. */\n onCancel?: (id: FileItemProps['id']) => void;\n /** When passed, will render a single icon button or within a MenuButton if other actions are defined. */\n onEdit?: (id: FileItemProps['id']) => void;\n /** When passed, will be called on click of the name. Passes file url as the parameter. */\n onPreview?: (id: FileItemProps['id']) => void;\n /** When passed, will render a single icon button or within a MenuButton if other actions are defined. Passes file url as the parameter. */\n onDownload?: (id: FileItemProps['id']) => void;\n /** When passed, will render a single icon button or within a MenuButton if other actions are defined. */\n onDelete?: (id: FileItemProps['id']) => void;\n /** If the attachment is in an upload state, pass progress as a number between 0-100 representing the percentage of progress. */\n progress?: number;\n /** Set if there is an error uploading the file. Applies error styling to the meta string passed. */\n error?: string;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst StyledErrorIcon = styled(Icon)(({ theme }) => {\n return css`\n color: ${theme.base.palette.urgent};\n margin-inline-start: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledErrorIcon.defaultProps = defaultThemeProp;\n\nconst titleEllipsisStyle = css`\n flex-shrink: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst StyledPreviewTitle = styled(Button)`\n ${titleEllipsisStyle}\n`;\n\nconst StyledTextTitle = styled(Text)`\n ${titleEllipsisStyle}\n`;\n\nconst StyledMeta = styled(StyledText)<{ error: boolean }>(({ theme, error }) => {\n return css`\n /* min width to show percentage in full */\n min-width: 4ch;\n margin-inline-start: auto;\n ${titleEllipsisStyle}\n ${error &&\n css`\n color: ${theme.base.palette.urgent};\n `}\n `;\n});\n\nStyledMeta.defaultProps = defaultThemeProp;\n\nconst StyledActionsWrapper = styled.div<{ meta: boolean }>(({ meta }) => {\n return css`\n margin-inline-start: ${meta ? 'unset' : 'auto'};\n `;\n});\n\nStyledActionsWrapper.defaultProps = defaultThemeProp;\n\nconst StyledFileItem = styled.div(\n ({\n theme: {\n base: {\n palette,\n 'border-radius': borderRadius,\n spacing,\n 'hit-area': { compact }\n },\n components\n }\n }) => {\n return css`\n border-radius: calc(0.5 * ${borderRadius});\n border: 0.0625rem solid ${palette['border-line']};\n background-color: ${palette['primary-background']};\n height: ${components.input.height};\n min-width: calc(${components.input.height} + 12ch + 1.5 * ${spacing} + ${compact});\n > ${StyledProgressRing} {\n margin-inline-start: calc(0.5 * ${spacing});\n }\n\n > ${StyledFileVisual}, > ${StyledIconShape} {\n border-start-start-radius: inherit;\n border-end-start-radius: inherit;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n width: ${components.input.height};\n flex-shrink: 0;\n }\n `;\n }\n);\n\nStyledFileItem.defaultProps = defaultThemeProp;\n\nconst FileItem: FC<FileItemProps & ForwardProps> = forwardRef(function FileItem(\n props: PropsWithoutRef<FileItemProps>,\n ref: FileItemProps['ref']\n) {\n const {\n id,\n name,\n url,\n thumbnail,\n format,\n error,\n onCancel,\n onEdit,\n onPreview,\n onDownload,\n onDelete,\n progress,\n ...restProps\n } = props;\n\n const [thumbnailError, setThumbnailError] = useState(false);\n const [textTarget, setTextTarget] = useElement();\n const [metaTarget, setMetaTarget] = useElement();\n const { locale } = useConfiguration();\n const t = useI18n();\n\n const uploading = typeof progress === 'number' && progress < 100;\n\n const text = name || url;\n\n let metaMessage;\n\n if (uploading) {\n metaMessage = formatNumber(progress, {\n locale,\n options: {\n style: 'unit',\n unit: 'percent',\n maximumFractionDigits: 0\n }\n });\n } else if (error) {\n metaMessage = error;\n }\n\n const definedActions: Action[] = [\n { onClick: onEdit, text: t('edit'), icon: 'pencil' },\n { onClick: onDownload, text: t('download'), icon: 'download' },\n { onClick: onDelete, text: t('delete'), icon: 'trash' }\n ]\n .filter(action => {\n return !!action.onClick;\n })\n .map(({ text: actiontext, icon, onClick }) => ({\n id: actiontext,\n text: actiontext,\n icon,\n onClick: () => {\n if (onClick) onClick(id);\n }\n }));\n\n let visual;\n\n if (uploading) {\n visual = <Progress variant='ring' placement='inline' value={progress} />;\n } else if (error) {\n visual = <StyledErrorIcon name='warn-solid' />;\n } else {\n visual = format && (\n <FileVisual\n type={format === 'url' ? 'link' : getKindFromMimeType(getMimeTypeFromFile(format) ?? '')}\n thumbnail={thumbnailError ? undefined : thumbnail}\n onThumbnailError={() => {\n setThumbnailError(true);\n }}\n />\n );\n }\n\n return (\n <Flex\n as={StyledFileItem}\n container={{\n pad: [undefined, 0.5, undefined, undefined],\n alignItems: 'center',\n justify: 'start',\n gap: 1\n }}\n ref={ref}\n >\n {visual}\n\n {onPreview && !(error || uploading) ? (\n <Button\n {...restProps}\n as={StyledPreviewTitle}\n variant='link'\n ref={setTextTarget}\n onClick={() => {\n onPreview(id);\n }}\n aria-label={t('preview_file', [text])}\n >\n {text}\n {format === 'url' && <Icon name='open' />}\n </Button>\n ) : (\n <Text {...restProps} as={StyledTextTitle} ref={setTextTarget}>\n {text}\n </Text>\n )}\n {metaMessage && (\n <>\n <Text as={StyledMeta} variant='secondary' error={error && !uploading} ref={setMetaTarget}>\n {metaMessage}\n </Text>\n\n {metaTarget && (\n <Tooltip target={metaTarget} describeTarget={false} smart>\n {metaMessage}\n </Tooltip>\n )}\n </>\n )}\n\n {(error || uploading) && onCancel && (\n <StyledActionsWrapper meta={!!metaMessage}>\n <Button\n label={t('cancel')}\n aria-label={`${t('cancel')} - ${text}`}\n variant='simple'\n compact\n icon\n onClick={() => onCancel(id)}\n >\n <Icon name='times' />\n </Button>\n </StyledActionsWrapper>\n )}\n\n {!(error || uploading) && !!definedActions.length && (\n <StyledActionsWrapper meta={!!metaMessage}>\n <Actions items={definedActions} compact iconOnly contextualLabel={name} />\n </StyledActionsWrapper>\n )}\n\n {textTarget && (\n <Tooltip target={textTarget} smart describeTarget={false}>\n {text}\n </Tooltip>\n )}\n </Flex>\n );\n});\n\nexport default FileItem;\n"]}
|
|
1
|
+
{"version":3,"file":"FileItem.js","sourceRoot":"","sources":["../../../src/components/File/FileItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,M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,CAAC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,MAAM,IAAI,CACnD,KAAC,oBAAoB,IAAC,IAAI,EAAE,CAAC,CAAC,WAAW,YACvC,KAAC,OAAO,IAAC,KAAK,EAAE,cAAc,EAAE,OAAO,QAAC,QAAQ,QAAC,eAAe,EAAE,IAAI,GAAI,GACrD,CACxB,EAEA,UAAU,IAAI,CACb,KAAC,OAAO,IAAC,MAAM,EAAE,UAAU,EAAE,KAAK,QAAC,cAAc,EAAE,KAAK,YACrD,IAAI,GACG,CACX,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, useState } from 'react';\nimport type { PropsWithoutRef, FC, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Text, { StyledText } from '../Text';\nimport Icon from '../Icon';\nimport Tooltip from '../Tooltip';\nimport type { ForwardProps, BaseProps, Action } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Button from '../Button';\nimport { useI18n, useElement, useConfiguration } from '../../hooks';\nimport Actions from '../Actions';\nimport Progress from '../Progress';\nimport { StyledProgressRing } from '../Progress/Progress.styles';\nimport { formatNumber } from '../Number';\nimport Flex from '../Flex';\nimport { StyledIconShape } from '../Icon/Icon';\n\nimport { getKindFromMimeType, getMimeTypeFromFile } from './utils';\nimport FileVisual, { StyledFileVisual } from './FileVisual';\nimport type { FileVisualProps } from './FileVisual';\n\nexport interface FileItemProps extends BaseProps {\n /** Unique id for item. */\n id: string;\n /** Name of the file. */\n name: string;\n /** A string to be used as an image src for a attachment thumbnail. Falls back to a provided icon or the default attachment icon. */\n thumbnail?: FileVisualProps['thumbnail'];\n /** File extension. Use 'url' for link */\n format?: string;\n /** When passed, will render a single icon button for yet to be or in progress uploads. Use this action to trigger xhr request termination. */\n onCancel?: (id: FileItemProps['id']) => void;\n /** When passed, will render a single icon button or within a MenuButton if other actions are defined. */\n onEdit?: (id: FileItemProps['id']) => void;\n /** When passed, will be called on click of the name. Passes file id as the parameter. */\n onPreview?: (id: FileItemProps['id']) => void;\n /** When passed, will render a single icon button or within a MenuButton if other actions are defined. Passes file id as the parameter. */\n onDownload?: (id: FileItemProps['id']) => void;\n /** When passed, will render a single icon button or within a MenuButton if other actions are defined. */\n onDelete?: (id: FileItemProps['id']) => void;\n /** If the attachment is in an upload state, pass progress as a number between 0-100 representing the percentage of progress. */\n progress?: number;\n /** Set if there is an error uploading the file. Applies error styling to the meta string passed. */\n error?: string;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst StyledErrorIcon = styled(Icon)(({ theme }) => {\n return css`\n color: ${theme.base.palette.urgent};\n margin-inline-start: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledErrorIcon.defaultProps = defaultThemeProp;\n\nconst titleEllipsisStyle = css`\n flex-shrink: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst StyledPreviewTitle = styled(Button)`\n ${titleEllipsisStyle}\n`;\n\nconst StyledTextTitle = styled(Text)`\n ${titleEllipsisStyle}\n`;\n\nconst StyledMeta = styled(StyledText)<{ error: boolean }>(({ theme, error }) => {\n return css`\n /* min width to show percentage in full */\n min-width: 4ch;\n margin-inline-start: auto;\n ${titleEllipsisStyle}\n ${error &&\n css`\n color: ${theme.base.palette.urgent};\n `}\n `;\n});\n\nStyledMeta.defaultProps = defaultThemeProp;\n\nconst StyledActionsWrapper = styled.div<{ meta: boolean }>(({ meta }) => {\n return css`\n margin-inline-start: ${meta ? 'unset' : 'auto'};\n `;\n});\n\nStyledActionsWrapper.defaultProps = defaultThemeProp;\n\nconst StyledFileItem = styled.div(\n ({\n theme: {\n base: {\n palette,\n 'border-radius': borderRadius,\n spacing,\n 'hit-area': { compact }\n },\n components\n }\n }) => {\n return css`\n border-radius: calc(0.5 * ${borderRadius});\n border: 0.0625rem solid ${palette['border-line']};\n background-color: ${palette['primary-background']};\n height: ${components.input.height};\n min-width: calc(${components.input.height} + 12ch + 1.5 * ${spacing} + ${compact});\n > ${StyledProgressRing} {\n margin-inline-start: calc(0.5 * ${spacing});\n }\n\n > ${StyledFileVisual}, > ${StyledIconShape} {\n border-start-start-radius: inherit;\n border-end-start-radius: inherit;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n width: ${components.input.height};\n flex-shrink: 0;\n }\n `;\n }\n);\n\nStyledFileItem.defaultProps = defaultThemeProp;\n\nconst FileItem: FC<FileItemProps & ForwardProps> = forwardRef(function FileItem(\n props: PropsWithoutRef<FileItemProps>,\n ref: FileItemProps['ref']\n) {\n const {\n id,\n name,\n thumbnail,\n format,\n error,\n onCancel,\n onEdit,\n onPreview,\n onDownload,\n onDelete,\n progress,\n ...restProps\n } = props;\n\n const [thumbnailError, setThumbnailError] = useState(false);\n const [textTarget, setTextTarget] = useElement();\n const [metaTarget, setMetaTarget] = useElement();\n const { locale } = useConfiguration();\n const t = useI18n();\n const uploading = typeof progress === 'number' && progress < 100;\n\n let metaMessage;\n\n if (uploading) {\n metaMessage = formatNumber(progress, {\n locale,\n options: {\n style: 'unit',\n unit: 'percent',\n maximumFractionDigits: 0\n }\n });\n } else if (error) {\n metaMessage = error;\n }\n\n const definedActions: Action[] = [\n { onClick: onEdit, text: t('edit'), icon: 'pencil' },\n { onClick: onDownload, text: t('download'), icon: 'download' },\n { onClick: onDelete, text: t('delete'), icon: 'trash' }\n ]\n .filter(action => {\n return !!action.onClick;\n })\n .map(({ text: actiontext, icon, onClick }) => ({\n id: actiontext,\n text: actiontext,\n icon,\n onClick: () => {\n if (onClick) onClick(id);\n }\n }));\n\n let visual;\n\n if (uploading) {\n visual = <Progress variant='ring' placement='inline' value={progress} />;\n } else if (error) {\n visual = <StyledErrorIcon name='warn-solid' />;\n } else {\n visual = (\n <FileVisual\n type={\n format === 'url' ? 'link' : getKindFromMimeType(getMimeTypeFromFile(format ?? '') ?? '')\n }\n thumbnail={thumbnailError ? undefined : thumbnail}\n onThumbnailError={() => {\n setThumbnailError(true);\n }}\n />\n );\n }\n\n return (\n <Flex\n as={StyledFileItem}\n container={{\n pad: [undefined, 0.5, undefined, undefined],\n alignItems: 'center',\n justify: 'start',\n gap: 1\n }}\n ref={ref}\n >\n {visual}\n\n {onPreview && !(error || uploading) ? (\n <Button\n {...restProps}\n as={StyledPreviewTitle}\n variant='link'\n ref={setTextTarget}\n onClick={() => {\n onPreview(id);\n }}\n aria-label={t('preview_file', [name])}\n >\n {name}\n {format === 'url' && <Icon name='open' />}\n </Button>\n ) : (\n <Text {...restProps} as={StyledTextTitle} ref={setTextTarget}>\n {name}\n </Text>\n )}\n {metaMessage && (\n <>\n <Text as={StyledMeta} variant='secondary' error={error && !uploading} ref={setMetaTarget}>\n {metaMessage}\n </Text>\n\n {metaTarget && (\n <Tooltip target={metaTarget} describeTarget={false} smart>\n {metaMessage}\n </Tooltip>\n )}\n </>\n )}\n\n {(error || uploading) && onCancel && (\n <StyledActionsWrapper meta={!!metaMessage}>\n <Button\n label={t('cancel')}\n aria-label={`${t('cancel')} - ${name}`}\n variant='simple'\n compact\n icon\n onClick={() => onCancel(id)}\n >\n <Icon name='times' />\n </Button>\n </StyledActionsWrapper>\n )}\n\n {!(error || uploading) && !!definedActions.length && (\n <StyledActionsWrapper meta={!!metaMessage}>\n <Actions items={definedActions} compact iconOnly contextualLabel={name} />\n </StyledActionsWrapper>\n )}\n\n {textTarget && (\n <Tooltip target={textTarget} smart describeTarget={false}>\n {name}\n </Tooltip>\n )}\n </Flex>\n );\n});\n\nexport default FileItem;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lightbox.d.ts","sourceRoot":"","sources":["../../../src/components/Lightbox/Lightbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAsChD,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"Lightbox.d.ts","sourceRoot":"","sources":["../../../src/components/Lightbox/Lightbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAsChD,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;;;;AA+WpE,wBAAyD"}
|
|
@@ -97,10 +97,10 @@ const Lightbox = forwardRef(function Lightbox({ testId, items, defaultIndex = 0,
|
|
|
97
97
|
};
|
|
98
98
|
}, [currentItem]);
|
|
99
99
|
let media;
|
|
100
|
-
let validContent;
|
|
100
|
+
let validContent = true;
|
|
101
101
|
let attachmentType = 'generic';
|
|
102
|
-
if (currentItem.format === undefined
|
|
103
|
-
validContent =
|
|
102
|
+
if (currentItem.format === undefined) {
|
|
103
|
+
validContent = !currentItem.error;
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
106
|
const extractMimeType = mimeTypes[currentItem.format.toLowerCase()];
|
|
@@ -108,11 +108,13 @@ const Lightbox = forwardRef(function Lightbox({ testId, items, defaultIndex = 0,
|
|
|
108
108
|
attachmentType = extractMimeType ? getKindFromMimeType(extractMimeType) : getType;
|
|
109
109
|
const previewableAttachmentTypes = ['pdf', 'image', 'link', 'video', 'audio'];
|
|
110
110
|
validContent = previewableAttachmentTypes.includes(attachmentType)
|
|
111
|
-
? currentItem.src
|
|
112
|
-
: attachmentType;
|
|
111
|
+
? !!currentItem.src
|
|
112
|
+
: !!attachmentType;
|
|
113
113
|
}
|
|
114
114
|
if (validContent) {
|
|
115
|
-
const nonPreviewableContent = (_jsxs(_Fragment, { children: [_jsx(Text, { children: t('non_previewable', [
|
|
115
|
+
const nonPreviewableContent = (_jsxs(_Fragment, { children: [_jsx(Text, { children: t('non_previewable', [
|
|
116
|
+
currentItem.format ? currentItem.format.toUpperCase() : currentItem.name
|
|
117
|
+
]) }), onItemDownload && (_jsx(Button, { "aria-label": t('download'), onClick: () => onItemDownload(currentItem.id), "data-testid": testIds.nonPreviewableDownload, children: t('download') }))] }));
|
|
116
118
|
const defaultContent = (_jsxs(Flex, { container: { direction: 'column', gap: 2, alignItems: 'center' }, as: StyledInfo, "data-testid": testIds.content, children: [_jsx(FileVisual, { type: attachmentType, size: 'l' }), attachmentType === 'link' && currentItem.src ? (_jsx(Link, { href: currentItem.src, "data-testid": testIds.link, children: currentItem.name })) : (nonPreviewableContent)] }));
|
|
117
119
|
switch (attachmentType) {
|
|
118
120
|
case 'image':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lightbox.js","sourceRoot":"","sources":["../../../src/components/Lightbox/Lightbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAS7E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,eAAe,EACf,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,SAAS,MA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,IAAI,IACH,SAAS,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EACtD,WAAW,EAAE,CAAC,CAA6B,EAAE,EAAE;gCAC7C,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;oCAAE,OAAO;gCAC3B,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,aAAa;oCAAE,KAAK,EAAE,CAAC;4BAC5C,CAAC,YAEA,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,OAAO,EAAE,CAAC,CAAC,oBAAoB,CAAC,GAAI,CAAC,CAAC,CAAC,KAAK,GACxE,GACF,EAEN,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CACnB,KAAC,eAAe,mBACD,OAAO,CAAC,IAAI,EACzB,GAAG,EAAE,aAAa,EAClB,OAAO,EAAC,QAAQ,gBACJ,CAAC,CAAC,iBAAiB,CAAC,EAChC,MAAM,EAAE,CAAC,KAAK,IAAI,YAAY,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,EACnD,IAAI,QACJ,OAAO,EAAE,GAAG,EAAE;4BACZ,QAAQ,CAAC,CAAC,CAAC,CAAC;wBACd,CAAC,YAED,yBACE,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,GACtB,GACS,CACnB,IACI,EACP,KAAC,gBAAgB,iBAAW,QAAQ,gBAAa,QAAQ,GAAI,IAC9C,CAClB,CAAC;IAEF,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC","sourcesContent":["import { useEffect, useRef, useState, forwardRef, useCallback } from 'react';\nimport type {\n FunctionComponent,\n PropsWithoutRef,\n Ref,\n MouseEvent,\n SyntheticEvent,\n RefObject\n} from 'react';\nimport { createPortal } from 'react-dom';\n\nimport type { ForwardProps } from '../../types';\nimport { cap, withTestIds } from '../../utils';\nimport Flex from '../Flex';\nimport MetaList from '../MetaList';\nimport Icon from '../Icon';\nimport Image from '../Image';\nimport Text from '../Text';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useDirection,\n useEvent,\n useFocusTrap,\n useI18n,\n useScrollToggle,\n useTestIds\n} from '../../hooks';\nimport ErrorState from '../ErrorState';\nimport Progress from '../Progress';\nimport FileVisual from '../File/FileVisual';\nimport Button from '../Button';\nimport Link from '../Link/Link';\nimport mimeTypes from '../File/mimeTypes.json';\nimport { getKindFromMimeType } from '../File/utils';\nimport type { AttachmentType } from '../File/utils';\n\nimport {\n StyledHeader,\n StyledCountTracker,\n StyledInfo,\n StyledPreviewRegion,\n StyledNavButton,\n StyledMediaContainer,\n StyledLiveRegion,\n StyledLightbox,\n StyledContainer,\n StyledObject\n} from './Lightbox.styles';\nimport type { LightboxProps, MediaElement } from './Lightbox.types';\nimport { getLightboxTestIds } from './Lightbox.test-ids';\n\nconst Lightbox: FunctionComponent<LightboxProps & ForwardProps> = forwardRef(function Lightbox(\n {\n testId,\n items,\n defaultIndex = 0,\n cycle = false,\n onItemLoad,\n onItemError,\n onNavigate,\n onItemDownload,\n onAfterClose,\n ...restProps\n }: PropsWithoutRef<LightboxProps>,\n refArg: Ref<HTMLDivElement>\n) {\n const t = useI18n();\n const { start, end } = useDirection();\n const { portalTarget } = useConfiguration();\n const [currentIndex, setCurrentIndex] = useState(defaultIndex);\n const currentItem = items[currentIndex];\n const { disableScroll, enableScroll } = useScrollToggle();\n const lightboxRef = useConsolidatedRef(refArg);\n const headerRef = useRef<HTMLDivElement>(null);\n const closeButtonRef = useRef<HTMLButtonElement>(null);\n const prevButtonRef = useRef<HTMLButtonElement>(null);\n const nextButtonRef = useRef<HTMLButtonElement>(null);\n const [open, setOpen] = useState(true);\n const mediaRef = useConsolidatedRef(currentItem.ref);\n const [liveText, setLiveText] = useState('');\n const countTrackerText = items.length > 1 ? t('x_of_y', [currentIndex + 1, items.length]) : '';\n const testIds = useTestIds(testId, getLightboxTestIds);\n\n const close = () => {\n setOpen(false);\n };\n\n const navigate = (direction: 1 | -1) => {\n if (direction === 1) {\n if (currentIndex < items.length - 1) {\n setCurrentIndex(cur => cur + 1);\n } else if (cycle) {\n setCurrentIndex(0);\n }\n } else if (currentIndex > 0) {\n setCurrentIndex(cur => cur - 1);\n } else if (cycle) {\n setCurrentIndex(items.length - 1);\n }\n };\n const keyDownHandler = (e: KeyboardEvent) => {\n if (e.repeat) return;\n\n if (e.key === 'Escape') {\n close();\n } else if (e.key === `Arrow${cap(end)}`) {\n navigate(1);\n } else if (e.key === `Arrow${cap(start)}`) {\n navigate(-1);\n }\n };\n\n useEvent('keydown', keyDownHandler);\n useFocusTrap(lightboxRef);\n\n useEffect(() => {\n setLiveText(\n `${currentItem.name}. ${countTrackerText ? `${countTrackerText}.` : ''} ${\n currentItem.description\n }.`\n );\n }, [currentItem.name, countTrackerText, currentItem.description]);\n\n useEffect(() => {\n onNavigate?.(currentItem.id, currentIndex);\n }, [currentIndex]);\n\n useEffect(() => {\n lightboxRef.current?.focus();\n }, []);\n\n const handleLoad = useCallback(\n (e: SyntheticEvent<MediaElement> | Event) => {\n onItemLoad?.(currentItem.id, e);\n },\n [onItemLoad, currentItem.id]\n );\n\n const handleError = useCallback(\n (e: SyntheticEvent<MediaElement> | Event) => {\n onItemError?.(currentItem.id, e);\n },\n [onItemError, currentItem.id]\n );\n\n // Object elements appear to need native event handlers bound as JSX does not work.\n // TODO: Follow up on reason why.\n useEffect(() => {\n if (!mediaRef.current || currentItem.format !== 'pdf') return;\n const pdfObject = mediaRef.current;\n pdfObject.addEventListener('load', handleLoad);\n pdfObject.addEventListener('error', handleError);\n\n return () => {\n pdfObject.removeEventListener('load', handleLoad);\n pdfObject.removeEventListener('error', handleError);\n };\n }, [currentItem]);\n\n let media;\n let validContent;\n let attachmentType: AttachmentType = 'generic';\n if (currentItem.format === undefined || currentItem.error) {\n validContent = false;\n } else {\n const extractMimeType = (mimeTypes as Record<string, string>)[currentItem.format.toLowerCase()];\n const getType = currentItem.format === 'url' ? 'link' : 'generic';\n attachmentType = extractMimeType ? getKindFromMimeType(extractMimeType) : getType;\n const previewableAttachmentTypes = ['pdf', 'image', 'link', 'video', 'audio'];\n validContent = previewableAttachmentTypes.includes(attachmentType)\n ? currentItem.src\n : attachmentType;\n }\n\n if (validContent) {\n const nonPreviewableContent = (\n <>\n <Text>\n {t('non_previewable', [currentItem.format ? currentItem.format.toUpperCase() : ''])}\n </Text>\n {onItemDownload && (\n <Button\n aria-label={t('download')}\n onClick={() => onItemDownload(currentItem.id)}\n data-testid={testIds.nonPreviewableDownload}\n >\n {t('download')}\n </Button>\n )}\n </>\n );\n\n const defaultContent = (\n <Flex\n container={{ direction: 'column', gap: 2, alignItems: 'center' }}\n as={StyledInfo}\n data-testid={testIds.content}\n >\n <FileVisual type={attachmentType} size='l' />\n {attachmentType === 'link' && currentItem.src ? (\n <Link href={currentItem.src} data-testid={testIds.link}>\n {currentItem.name}\n </Link>\n ) : (\n nonPreviewableContent\n )}\n </Flex>\n );\n\n switch (attachmentType) {\n case 'image':\n media = currentItem.src && (\n <Image\n data-testid={testIds.content}\n src={currentItem.src}\n alt={currentItem.description}\n onLoad={handleLoad}\n onError={handleError}\n ref={mediaRef as RefObject<HTMLImageElement>}\n />\n );\n break;\n case 'pdf':\n media = currentItem.src && (\n <>\n {navigator.pdfViewerEnabled ? (\n <StyledObject\n data-testid={testIds.content}\n data={currentItem.src}\n type='application/pdf'\n ref={mediaRef as RefObject<HTMLObjectElement>}\n >\n {currentItem.description}\n </StyledObject>\n ) : (\n { defaultContent }\n )}\n </>\n );\n break;\n case 'video':\n media = currentItem.src && (\n // eslint-disable-next-line jsx-a11y/media-has-caption\n <video\n data-testid={testIds.content}\n src={currentItem.src}\n controls\n onLoadedData={handleLoad}\n onError={handleError}\n ref={mediaRef as RefObject<HTMLVideoElement>}\n />\n );\n break;\n case 'audio':\n media = currentItem.src && (\n // eslint-disable-next-line jsx-a11y/media-has-caption\n <audio\n data-testid={testIds.content}\n src={currentItem.src}\n controls\n onLoadedData={handleLoad}\n onError={handleError}\n ref={mediaRef as RefObject<HTMLAudioElement>}\n />\n );\n break;\n default: {\n media = defaultContent;\n }\n }\n } else {\n media = <Progress placement='block' delay />;\n }\n\n const content = (\n <StyledLightbox\n data-testid={testIds.root}\n {...restProps}\n tabIndex={-1}\n ref={lightboxRef}\n open={open}\n role='dialog'\n aria-modal='true'\n container={{ alignItems: 'start', justify: 'start', direction: 'column' }}\n alpha={0.9}\n variant='dark'\n transitionSpeed='slow'\n onBeforeTransitionIn={disableScroll}\n onAfterTransitionOut={() => {\n enableScroll();\n onAfterClose?.();\n }}\n >\n <Flex\n as={StyledHeader}\n ref={headerRef}\n container={{\n justify: 'between',\n alignItems: 'center',\n gap: 2\n }}\n onMouseDown={(e: MouseEvent<HTMLDivElement>) => {\n if (e.button !== 0) return;\n if (e.target === e.currentTarget) close();\n }}\n >\n <StyledCountTracker data-testid={testIds.pagination} aria-hidden='true'>\n {countTrackerText}\n </StyledCountTracker>\n\n <Flex\n as={StyledInfo}\n container={{\n wrap: 'wrap',\n alignItems: 'center',\n justify: 'center',\n colGap: 2,\n rowGap: 0.5\n }}\n >\n <Text data-testid={testIds.name} variant='primary' as='h2'>\n {currentItem.name}\n </Text>\n {currentItem.metadata && (\n <MetaList data-testid={testIds.metadata} items={currentItem.metadata} />\n )}\n </Flex>\n\n <Flex container as={StyledContainer}>\n {attachmentType !== 'link' && onItemDownload && (\n <Button\n data-testid={testIds.download}\n variant='simple'\n aria-label={t('download')}\n icon\n onClick={() => onItemDownload(currentItem.id)}\n >\n <Icon name='download' />\n </Button>\n )}\n <Button\n data-testid={testIds.close}\n variant='simple'\n ref={closeButtonRef}\n aria-label={t('close')}\n icon\n onClick={close}\n >\n <Icon name='times' />\n </Button>\n </Flex>\n </Flex>\n\n <Flex\n container={{ justify: 'between' }}\n as={StyledPreviewRegion}\n item={{ grow: 1, shrink: 0 }}\n >\n {items.length > 1 && (\n <StyledNavButton\n data-testid={testIds.prev}\n ref={prevButtonRef}\n variant='simple'\n aria-label={t('pagination_prev')}\n hidden={!cycle && currentIndex === 0}\n icon\n onClick={() => {\n navigate(-1);\n }}\n >\n <span>\n <Icon name='caret-left' />\n </span>\n </StyledNavButton>\n )}\n\n <Flex item={{ grow: 1 }} as={StyledMediaContainer}>\n <Flex\n container={{ alignItems: 'center', justify: 'center' }}\n onMouseDown={(e: MouseEvent<HTMLDivElement>) => {\n if (e.button !== 0) return;\n if (e.target === e.currentTarget) close();\n }}\n >\n {currentItem.error ? <ErrorState message={t('content_load_error')} /> : media}\n </Flex>\n </Flex>\n\n {items.length > 1 && (\n <StyledNavButton\n data-testid={testIds.next}\n ref={nextButtonRef}\n variant='simple'\n aria-label={t('pagination_next')}\n hidden={!cycle && currentIndex === items.length - 1}\n icon\n onClick={() => {\n navigate(1);\n }}\n >\n <span>\n <Icon name='caret-right' />\n </span>\n </StyledNavButton>\n )}\n </Flex>\n <StyledLiveRegion aria-live='polite' aria-label={liveText} />\n </StyledLightbox>\n );\n\n return portalTarget ? createPortal(content, portalTarget) : content;\n});\n\nexport default withTestIds(Lightbox, getLightboxTestIds);\n"]}
|
|
1
|
+
{"version":3,"file":"Lightbox.js","sourceRoot":"","sources":["../../../src/components/Lightbox/Lightbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAS7E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,KAAK,MAAM,UAAU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AG,GACtB,GACS,CACnB,IACI,EACP,KAAC,gBAAgB,iBAAW,QAAQ,gBAAa,QAAQ,GAAI,IAC9C,CAClB,CAAC;IAEF,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC","sourcesContent":["import { useEffect, useRef, useState, forwardRef, useCallback } from 'react';\nimport type {\n FunctionComponent,\n PropsWithoutRef,\n Ref,\n MouseEvent,\n SyntheticEvent,\n RefObject\n} from 'react';\nimport { createPortal } from 'react-dom';\n\nimport type { ForwardProps } from '../../types';\nimport { cap, withTestIds } from '../../utils';\nimport Flex from '../Flex';\nimport MetaList from '../MetaList';\nimport Icon from '../Icon';\nimport Image from '../Image';\nimport Text from '../Text';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useDirection,\n useEvent,\n useFocusTrap,\n useI18n,\n useScrollToggle,\n useTestIds\n} from '../../hooks';\nimport ErrorState from '../ErrorState';\nimport Progress from '../Progress';\nimport FileVisual from '../File/FileVisual';\nimport Button from '../Button';\nimport Link from '../Link/Link';\nimport mimeTypes from '../File/mimeTypes.json';\nimport { getKindFromMimeType } from '../File/utils';\nimport type { AttachmentType } from '../File/utils';\n\nimport {\n StyledHeader,\n StyledCountTracker,\n StyledInfo,\n StyledPreviewRegion,\n StyledNavButton,\n StyledMediaContainer,\n StyledLiveRegion,\n StyledLightbox,\n StyledContainer,\n StyledObject\n} from './Lightbox.styles';\nimport type { LightboxProps, MediaElement } from './Lightbox.types';\nimport { getLightboxTestIds } from './Lightbox.test-ids';\n\nconst Lightbox: FunctionComponent<LightboxProps & ForwardProps> = forwardRef(function Lightbox(\n {\n testId,\n items,\n defaultIndex = 0,\n cycle = false,\n onItemLoad,\n onItemError,\n onNavigate,\n onItemDownload,\n onAfterClose,\n ...restProps\n }: PropsWithoutRef<LightboxProps>,\n refArg: Ref<HTMLDivElement>\n) {\n const t = useI18n();\n const { start, end } = useDirection();\n const { portalTarget } = useConfiguration();\n const [currentIndex, setCurrentIndex] = useState(defaultIndex);\n const currentItem = items[currentIndex];\n const { disableScroll, enableScroll } = useScrollToggle();\n const lightboxRef = useConsolidatedRef(refArg);\n const headerRef = useRef<HTMLDivElement>(null);\n const closeButtonRef = useRef<HTMLButtonElement>(null);\n const prevButtonRef = useRef<HTMLButtonElement>(null);\n const nextButtonRef = useRef<HTMLButtonElement>(null);\n const [open, setOpen] = useState(true);\n const mediaRef = useConsolidatedRef(currentItem.ref);\n const [liveText, setLiveText] = useState('');\n const countTrackerText = items.length > 1 ? t('x_of_y', [currentIndex + 1, items.length]) : '';\n const testIds = useTestIds(testId, getLightboxTestIds);\n\n const close = () => {\n setOpen(false);\n };\n\n const navigate = (direction: 1 | -1) => {\n if (direction === 1) {\n if (currentIndex < items.length - 1) {\n setCurrentIndex(cur => cur + 1);\n } else if (cycle) {\n setCurrentIndex(0);\n }\n } else if (currentIndex > 0) {\n setCurrentIndex(cur => cur - 1);\n } else if (cycle) {\n setCurrentIndex(items.length - 1);\n }\n };\n const keyDownHandler = (e: KeyboardEvent) => {\n if (e.repeat) return;\n\n if (e.key === 'Escape') {\n close();\n } else if (e.key === `Arrow${cap(end)}`) {\n navigate(1);\n } else if (e.key === `Arrow${cap(start)}`) {\n navigate(-1);\n }\n };\n\n useEvent('keydown', keyDownHandler);\n useFocusTrap(lightboxRef);\n\n useEffect(() => {\n setLiveText(\n `${currentItem.name}. ${countTrackerText ? `${countTrackerText}.` : ''} ${\n currentItem.description\n }.`\n );\n }, [currentItem.name, countTrackerText, currentItem.description]);\n\n useEffect(() => {\n onNavigate?.(currentItem.id, currentIndex);\n }, [currentIndex]);\n\n useEffect(() => {\n lightboxRef.current?.focus();\n }, []);\n\n const handleLoad = useCallback(\n (e: SyntheticEvent<MediaElement> | Event) => {\n onItemLoad?.(currentItem.id, e);\n },\n [onItemLoad, currentItem.id]\n );\n\n const handleError = useCallback(\n (e: SyntheticEvent<MediaElement> | Event) => {\n onItemError?.(currentItem.id, e);\n },\n [onItemError, currentItem.id]\n );\n\n // Object elements appear to need native event handlers bound as JSX does not work.\n // TODO: Follow up on reason why.\n useEffect(() => {\n if (!mediaRef.current || currentItem.format !== 'pdf') return;\n const pdfObject = mediaRef.current;\n pdfObject.addEventListener('load', handleLoad);\n pdfObject.addEventListener('error', handleError);\n\n return () => {\n pdfObject.removeEventListener('load', handleLoad);\n pdfObject.removeEventListener('error', handleError);\n };\n }, [currentItem]);\n\n let media;\n let validContent = true;\n let attachmentType: AttachmentType = 'generic';\n if (currentItem.format === undefined) {\n validContent = !currentItem.error;\n } else {\n const extractMimeType = (mimeTypes as Record<string, string>)[currentItem.format.toLowerCase()];\n const getType = currentItem.format === 'url' ? 'link' : 'generic';\n attachmentType = extractMimeType ? getKindFromMimeType(extractMimeType) : getType;\n const previewableAttachmentTypes = ['pdf', 'image', 'link', 'video', 'audio'];\n validContent = previewableAttachmentTypes.includes(attachmentType)\n ? !!currentItem.src\n : !!attachmentType;\n }\n\n if (validContent) {\n const nonPreviewableContent = (\n <>\n <Text>\n {t('non_previewable', [\n currentItem.format ? currentItem.format.toUpperCase() : currentItem.name\n ])}\n </Text>\n {onItemDownload && (\n <Button\n aria-label={t('download')}\n onClick={() => onItemDownload(currentItem.id)}\n data-testid={testIds.nonPreviewableDownload}\n >\n {t('download')}\n </Button>\n )}\n </>\n );\n\n const defaultContent = (\n <Flex\n container={{ direction: 'column', gap: 2, alignItems: 'center' }}\n as={StyledInfo}\n data-testid={testIds.content}\n >\n <FileVisual type={attachmentType} size='l' />\n {attachmentType === 'link' && currentItem.src ? (\n <Link href={currentItem.src} data-testid={testIds.link}>\n {currentItem.name}\n </Link>\n ) : (\n nonPreviewableContent\n )}\n </Flex>\n );\n\n switch (attachmentType) {\n case 'image':\n media = currentItem.src && (\n <Image\n data-testid={testIds.content}\n src={currentItem.src}\n alt={currentItem.description}\n onLoad={handleLoad}\n onError={handleError}\n ref={mediaRef as RefObject<HTMLImageElement>}\n />\n );\n break;\n case 'pdf':\n media = currentItem.src && (\n <>\n {navigator.pdfViewerEnabled ? (\n <StyledObject\n data-testid={testIds.content}\n data={currentItem.src}\n type='application/pdf'\n ref={mediaRef as RefObject<HTMLObjectElement>}\n >\n {currentItem.description}\n </StyledObject>\n ) : (\n { defaultContent }\n )}\n </>\n );\n break;\n case 'video':\n media = currentItem.src && (\n // eslint-disable-next-line jsx-a11y/media-has-caption\n <video\n data-testid={testIds.content}\n src={currentItem.src}\n controls\n onLoadedData={handleLoad}\n onError={handleError}\n ref={mediaRef as RefObject<HTMLVideoElement>}\n />\n );\n break;\n case 'audio':\n media = currentItem.src && (\n // eslint-disable-next-line jsx-a11y/media-has-caption\n <audio\n data-testid={testIds.content}\n src={currentItem.src}\n controls\n onLoadedData={handleLoad}\n onError={handleError}\n ref={mediaRef as RefObject<HTMLAudioElement>}\n />\n );\n break;\n default: {\n media = defaultContent;\n }\n }\n } else {\n media = <Progress placement='block' delay />;\n }\n\n const content = (\n <StyledLightbox\n data-testid={testIds.root}\n {...restProps}\n tabIndex={-1}\n ref={lightboxRef}\n open={open}\n role='dialog'\n aria-modal='true'\n container={{ alignItems: 'start', justify: 'start', direction: 'column' }}\n alpha={0.9}\n variant='dark'\n transitionSpeed='slow'\n onBeforeTransitionIn={disableScroll}\n onAfterTransitionOut={() => {\n enableScroll();\n onAfterClose?.();\n }}\n >\n <Flex\n as={StyledHeader}\n ref={headerRef}\n container={{\n justify: 'between',\n alignItems: 'center',\n gap: 2\n }}\n onMouseDown={(e: MouseEvent<HTMLDivElement>) => {\n if (e.button !== 0) return;\n if (e.target === e.currentTarget) close();\n }}\n >\n <StyledCountTracker data-testid={testIds.pagination} aria-hidden='true'>\n {countTrackerText}\n </StyledCountTracker>\n\n <Flex\n as={StyledInfo}\n container={{\n wrap: 'wrap',\n alignItems: 'center',\n justify: 'center',\n colGap: 2,\n rowGap: 0.5\n }}\n >\n <Text data-testid={testIds.name} variant='primary' as='h2'>\n {currentItem.name}\n </Text>\n {currentItem.metadata && (\n <MetaList data-testid={testIds.metadata} items={currentItem.metadata} />\n )}\n </Flex>\n\n <Flex container as={StyledContainer}>\n {attachmentType !== 'link' && onItemDownload && (\n <Button\n data-testid={testIds.download}\n variant='simple'\n aria-label={t('download')}\n icon\n onClick={() => onItemDownload(currentItem.id)}\n >\n <Icon name='download' />\n </Button>\n )}\n <Button\n data-testid={testIds.close}\n variant='simple'\n ref={closeButtonRef}\n aria-label={t('close')}\n icon\n onClick={close}\n >\n <Icon name='times' />\n </Button>\n </Flex>\n </Flex>\n\n <Flex\n container={{ justify: 'between' }}\n as={StyledPreviewRegion}\n item={{ grow: 1, shrink: 0 }}\n >\n {items.length > 1 && (\n <StyledNavButton\n data-testid={testIds.prev}\n ref={prevButtonRef}\n variant='simple'\n aria-label={t('pagination_prev')}\n hidden={!cycle && currentIndex === 0}\n icon\n onClick={() => {\n navigate(-1);\n }}\n >\n <span>\n <Icon name='caret-left' />\n </span>\n </StyledNavButton>\n )}\n\n <Flex item={{ grow: 1 }} as={StyledMediaContainer}>\n <Flex\n container={{ alignItems: 'center', justify: 'center' }}\n onMouseDown={(e: MouseEvent<HTMLDivElement>) => {\n if (e.button !== 0) return;\n if (e.target === e.currentTarget) close();\n }}\n >\n {currentItem.error ? <ErrorState message={t('content_load_error')} /> : media}\n </Flex>\n </Flex>\n\n {items.length > 1 && (\n <StyledNavButton\n data-testid={testIds.next}\n ref={nextButtonRef}\n variant='simple'\n aria-label={t('pagination_next')}\n hidden={!cycle && currentIndex === items.length - 1}\n icon\n onClick={() => {\n navigate(1);\n }}\n >\n <span>\n <Icon name='caret-right' />\n </span>\n </StyledNavButton>\n )}\n </Flex>\n <StyledLiveRegion aria-live='polite' aria-label={liveText} />\n </StyledLightbox>\n );\n\n return portalTarget ? createPortal(content, portalTarget) : content;\n});\n\nexport default withTestIds(Lightbox, getLightboxTestIds);\n"]}
|
package/lib/i18n/default.js
CHANGED
|
@@ -301,7 +301,7 @@ export default {
|
|
|
301
301
|
/* core:Tabs */
|
|
302
302
|
tab_error_tooltip: '{0} has errors',
|
|
303
303
|
/* core:LightBox */
|
|
304
|
-
non_previewable: "{0} file can't be previewed
|
|
304
|
+
non_previewable: "{0} file can't be previewed",
|
|
305
305
|
content_load_error: 'Error loading content',
|
|
306
306
|
/* work:Assignments */
|
|
307
307
|
assignments: 'Assignments',
|
package/lib/i18n/default.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,gFAAgF;IAChF,6BAA6B;IAC7B,gFAAgF;IAEhF,0CAA0C;IAC1C,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,iBAAiB;IAClC,0BAA0B,EAAE,SAAS;IACrC,0BAA0B,EAAE,SAAS;IACrC,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,oBAAoB;IACxC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IAEd,WAAW;IACX,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ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E,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,mBAAmB,EAAE,qBAAqB;IAC1C,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,mBAAmB;IAC/B,QAAQ,EAAE,iBAAiB;IAC3B,YAAY,EAAE,qBAAqB;IACnC,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,iBAAiB,EAAE,mBAAmB;IACtC,SAAS,EAAE,WAAW;CACvB,CAAC","sourcesContent":["export default {\n // -----------------------------------------------------------------------------\n // Common translation entries\n // -----------------------------------------------------------------------------\n\n /* Nouns, Types, Terms, Phrases, etc... */\n yes: 'Yes',\n no: 'No',\n filters: 'Filters',\n actions: 'Actions',\n status: 'Status',\n additional_info: 'Additional info',\n search_placeholder_default: 'Search…',\n select_placeholder_default: 'Select…',\n description: 'Description',\n all: 'All',\n default: 'default',\n app_default: 'app default',\n sitewide: 'Sitewide',\n opens_in_a_new_tab: 'Opens in a new tab',\n summary: 'Summary',\n utilities: 'Utilities',\n search: 'Search',\n menu: 'menu',\n new: 'New',\n info: 'info',\n shortcuts: 'Shortcuts',\n label: 'Label',\n\n /* Verbs */\n remove: 'Remove',\n follow: 'Follow',\n unfollow: 'Unfollow',\n add: 'Add',\n cancel: 'Cancel',\n try_again: 'Try again',\n update: 'Update',\n submit: 'Submit',\n apply: 'Apply',\n select: 'Select',\n edit: 'Edit',\n preview: 'Preview',\n decline: 'Decline',\n delete: 'Delete',\n close: 'Close',\n activate: 'Activate',\n expand: 'Expand',\n collapse: 'Collapse',\n accept: 'Accept',\n clear: 'Clear',\n use: 'Use',\n undo: 'Undo',\n redo: 'Redo',\n filter: 'Filter',\n sort: 'Sort',\n group: 'Group',\n go: 'Go',\n configure: 'Configure',\n dismiss: 'Dismiss',\n due: 'Due',\n\n /* Static verb noun */\n view_all: 'View all',\n view_less: 'View less',\n show_more: 'Show more',\n show_less: 'Show less',\n show_all: 'Show all',\n clear_all: 'Clear all',\n link_open_in_tab_text: 'Open in tab',\n edit_details: 'Edit details',\n add_emoji: 'Add emoji',\n create_new: 'Create new',\n submit_and_open: 'Submit and open',\n add_condition: 'Add condition',\n\n /* Dynamic verb {noun} */\n open_noun: 'Open {0}',\n close_noun: 'Close {0}',\n view_all_noun: 'View all {0}',\n view_less_noun: 'View less {0}',\n expand_noun: 'Expand {0}',\n add_noun: 'Add {0}',\n collapse_noun: 'Collapse {0}',\n checked_noun: '{0} checked',\n selected_noun: '{0} selected',\n unselected_noun: '{0} unselected',\n use_input_value: 'Use {0}',\n preview_of_noun: 'Preview of {0}',\n go_to_noun: 'Go to {0}',\n insert_noun: 'Insert {0}',\n delete_noun: 'Delete {0}',\n actions_for: 'Actions for {0}',\n\n /* States */\n edited: 'Edited {0}',\n done: 'Done',\n uploading: 'Uploading',\n loading: 'Loading…',\n loaded: 'Loaded',\n submitting: 'Submitting…',\n no_items: 'No items',\n unknown_error: 'Unknown error',\n image_load_error: 'Error loading image',\n selected: 'Selected',\n selected_count: {\n zero: '{0} selected',\n one: '{0} selected',\n two: '{0} selected',\n few: '{0} selected',\n many: '{0} selected',\n other: '{0} selected'\n },\n completed: 'Completed',\n current: 'Current',\n previous: 'Previous',\n not_started: 'Not started',\n empty_value: 'Empty value',\n no_value: 'no value',\n delivered: 'Delivered',\n sent: 'Sent',\n active: 'Active',\n read_only: 'Read only',\n information: 'Information',\n error: 'Error',\n warning: 'Warning',\n success: 'Success',\n pass: 'Pass',\n fail: 'Fail',\n did_not_ask: 'Did not ask',\n\n /* Date and time */\n day_placeholder: 'DD',\n month_placeholder: 'MM',\n year_placeholder: 'YYYY',\n hour_placeholder: 'hh',\n minute_placeholder: 'mm',\n second_placeholder: 'ss',\n meridiem_value_am: 'AM',\n meridiem_value_pm: 'PM',\n week_placeholder: 'WW',\n seconds_text: 'Seconds',\n minutes_text: 'Minutes',\n hours_text: 'Hours',\n days_text: 'Days',\n time_text: 'Time',\n time_format_info: 'hh:mm:ss',\n date_quarter_q1: 'Q1 {0}',\n date_quarter_q2: 'Q2 {0}',\n date_quarter_q3: 'Q3 {0}',\n date_quarter_q4: 'Q4 {0}',\n time_unit: 'Time Unit',\n\n /* Count based types */\n attachments_count: {\n zero: 'No attachments',\n one: '{0} attachment',\n two: '{0} attachments',\n few: '{0} attachments',\n many: '{0} attachments',\n other: '{0} attachments'\n },\n results_count: {\n zero: 'No results',\n one: '{0} result',\n two: '{0} results',\n few: '{0} results',\n many: '{0} results',\n other: '{0} results'\n },\n recent_results_count: {\n zero: 'No recent results',\n one: '{0} recent result',\n two: '{0} recent results',\n few: '{0} recent results',\n many: '{0} recent results',\n other: '{0} recent results'\n },\n new_emails_count: {\n zero: 'No new emails',\n one: '{0} new email',\n two: '{0} new emails',\n few: '{0} new emails',\n many: '{0} new emails',\n other: '{0} new emails'\n },\n\n /* Pagination */\n pagination_page_of: 'Page {0} of {1}',\n pagination_next: 'Next',\n pagination_prev: 'Previous',\n\n /* Range */\n range_from_datetime: 'Since',\n range_to_datetime: 'Until',\n range_from_numeric: 'From',\n range_to_numeric: 'To',\n\n /* Miscellaneous */\n x_of_y: '{0} of {1}',\n\n // -----------------------------------------------------------------------------\n // {pkg}:{ComponentDir} entries\n // -----------------------------------------------------------------------------\n\n /* core:Link */\n preview_link_instruction: 'Press {0} and p to open this link in a preview.',\n\n /* core:LiveLog */\n polite_announcements: 'Polite Announcements',\n assertive_announcements: 'Assertive Announcements',\n\n /* core:SkipLinks */\n go_to_main_content: 'Go to main content',\n main_content: 'Main content',\n\n /* core:AppShell */\n app_shell_create: 'Create',\n app_shell_open_nav: 'Open navigation menu',\n app_shell_main_navigation_label: 'Main',\n shortcut_NextRegion: 'Next region',\n shortcut_PrevRegion: 'Previous region',\n app_shell_user_account: 'Account',\n\n /* core:ComboBox */\n combobox_open_close: 'Arrow down to open, press escape to close.',\n combobox_search_instructions: 'Start typing to search',\n combobox_open_list_button_a11y: 'Open combobox list',\n combobox_close_list_button_a11y: 'Close combobox list',\n multiselect_instructions: 'Arrow {0} from start to review selected items',\n selected_items: 'Selected items',\n\n /* core:Menu */\n menu_selection_instructions: 'Press enter to select items.',\n menu_item_expand_arrow: '{0}. Arrow right to expand.',\n menu_item_collapse_arrow: 'Arrow left to collapse.',\n menu_item_collapse_shift_space: 'Press shift space to collapse.',\n menu_item_shift_space_expand_collapse: '{0}. Press shift space to expand and collapse.',\n menu_option_list: 'Options list',\n menu_item_count: 'Contains {0} items.',\n menu_collapsed: '{0} collapsed',\n menu_expanded: '{0} expanded.',\n\n /* core:Modal */\n modal_minimize: 'Minimize modal',\n modal_maximize: 'Maximize modal',\n modal_dock: 'Dock modal',\n modal_close: 'Close modal',\n minimize: 'Minimize',\n maximize: 'Maximize',\n dock: 'Dock',\n\n /* core:Datetime */\n selected_date_a11y: 'Selected date:',\n open_calendar_button_a11y: 'Open calendar',\n close_calendar_button_a11y: 'Close calendar',\n open_time_button_a11y: 'Open time picker',\n close_time_button_a11y: 'Close time picker',\n set_current_date_and_time_a11y: 'Set current date and time',\n set_current_date_a11y: 'Set current date',\n clear_current_date_and_time: 'Clear current date and time',\n clear_current_date: 'Clear current date',\n picker_next_month: 'Next month',\n picker_prev_month: 'Previous month',\n picker_jump_to_month_and_year: 'Jump to month and year selection',\n calendar_assist: 'Use cursor keys to navigate dates',\n calendar: 'Calendar',\n choose_date: 'Choose date',\n choose_date_and_time: 'Choose date and time',\n choose_week: 'Choose week',\n\n /* core:Boolean */\n boolean_display_true_label: 'Yes',\n boolean_display_false_label: 'No',\n\n /* core:MultiStepForm */\n step_changed_to_name: 'Step changed to {0}',\n\n /* core:Number */\n measured_in: 'measured in {0}',\n\n /* core:Banner */\n banner_dismiss_button_label_a11y: 'Dismiss banner',\n\n /* core:File */\n file_upload_text_main: 'Drag and drop or {0}',\n file_upload_text_one: 'choose a file',\n file_upload_text_multiple: 'choose files',\n download_file: 'Download {0}',\n preview_file: 'Preview {0}',\n open_file_in_new_tab: 'Open {0} in new tab',\n\n /* core:Location */\n my_current_location_button_a11y: 'Use my current location',\n location_input_placeholder: 'Enter a location',\n location_not_found_text: 'Location not found',\n exact_location: 'Exact location',\n allow_location_permissions_text:\n 'To get current location, allow location permissions for this app',\n\n /* core:SearchInput */\n advanced_search: 'Advanced search',\n select_search_filter: 'Select search filter',\n recent_searches: 'Recent searches',\n clear_search: 'Clear search',\n search_instructions: 'Use arrow keys to move up and down the suggested results.',\n\n /* core:SummaryList */\n action_from_summarylist_heading: '{0} from {1}',\n selected_search_filter: 'Filter search by: {0}',\n\n /* work:CaseView */\n utilities_label: 'Utilities',\n utilities_summary: 'Utilities summary',\n expand_summary: 'Expand summary',\n collapse_summary: 'Collapse summary',\n expand_utilities_panel: 'Expand utilities',\n collapse_utilities_panel: 'Collapse utilities',\n primary_summary_fields: 'Primary summary fields',\n summary_fields: 'Summary fields',\n\n /* core:FormField */\n accept_suggestion_button_a11y: 'Accept AI suggestion',\n reject_suggestion_button_a11y: 'Reject AI suggestion',\n suggestion_info: 'Accept AI suggestion?',\n suggestion_assist:\n 'Either press Enter to accept the AI suggestion or edit the value to reject it',\n\n /* core:Phone Input */\n select_country_code: 'Select country code',\n enter_a_number: 'Enter a number',\n\n /* core:SkipLinks */\n skip_navigation_menu_label: 'Skip navigation menu',\n\n /* core:Tabs */\n tab_error_tooltip: '{0} has errors',\n\n /* core:LightBox */\n non_previewable: \"{0} file can't be previewed in your browser\",\n content_load_error: 'Error loading content',\n\n /* work:Assignments */\n assignments: 'Assignments',\n\n /* work:ArticleList */\n article_list_label_a11y: 'Article list',\n article_list_filter_label_a11y: 'Article lists filter',\n article_list_header_submit_label: 'Submit',\n clear_filters: 'Clear filters',\n suggest_article: 'Suggest article',\n suggested: 'Suggested',\n followed: 'Followed',\n buddy: 'Buddy',\n disclaimer: 'Disclaimer',\n references: 'References',\n result_available: 'Result available',\n ask: 'Ask',\n error_message: 'Unable to retrieve data at the moment. Please try again.',\n add_a_comment: 'Add a comment',\n\n /* work:Article */\n article_label_a11y: 'Article',\n article_related_links: 'Related links',\n article_more_like_this: 'More like this',\n article_was_this_helpful: 'Was this helpful?',\n article_thank_you_for_your_feedback: 'Thank you for your feedback',\n article_attachments: 'Attachments',\n likes: 'Likes',\n dislikes: 'Dislikes',\n like: 'Like',\n dislike: 'Dislike',\n\n /* work:CasePreview */\n close_preview: 'Close preview',\n\n /* work:Confirmation */\n confirmation_whats_next: \"What's next\",\n confirmation_open_tasks: 'Open tasks',\n\n /* work:Stakeholders */\n add_stakeholders: 'Add stakeholder',\n edit_stakeholder: 'Edit stakeholder',\n view_stakeholders: 'Stakeholders',\n stakeholders_role: 'Role',\n stakeholders: {\n zero: '{0} stakeholders',\n one: '{0} stakeholder',\n two: '{0} stakeholders',\n few: '{0} stakeholders',\n many: '{0} stakeholders',\n other: '{0} stakeholders'\n },\n\n /* work:Tags */\n edit_tags: 'Edit tags',\n tags: 'Tags',\n\n /* work:Glimpse */\n view_profile: 'View profile',\n\n /* work:Timeline */\n timeline_toolbar_sort_descending: 'Newest first',\n timeline_toolbar_sort_ascending: 'Oldest first',\n timeline_toolbar_group_date: 'By day',\n timeline_toolbar_group_monthyear: 'By month',\n timeline_toolbar_group_quarteryear: 'By quarter',\n timeline_toolbar_group_year: 'By year',\n timeline_toolbar_group_none: 'Off',\n\n /* work:AppAnnouncement */\n app_announcement_dismiss_button_label_a11y: 'Hide until next update',\n app_announcement_details_list_header: 'Announcements',\n app_announcement_whats_new_button_label: \"See what's new\",\n\n /* work:Stages */\n stages_label: 'Case stages',\n stages_see_full_lifecycle: 'See full lifecycle',\n stages_case_lifecycle: '{0} lifecycle',\n stages_default_case_lifecycle: 'Case lifecycle',\n stages_stage_label: 'Stage {0}, {1}',\n stages_description: 'Use horizontal arrow keys to navigate.',\n\n /* work:Predictions */\n predictions: 'Predictions',\n all_predictions: 'All predictions',\n learn_more: 'Learn more',\n\n /* work:TaskList */\n tasks_added: {\n zero: 'No tasks added',\n one: '{0} task added',\n two: '{0} tasks added',\n few: '{0} tasks added',\n many: '{0} tasks added',\n other: '{0} tasks added'\n },\n tasks_removed: {\n zero: 'No tasks removed',\n one: '{0} task removed',\n two: '{0} tasks removed',\n few: '{0} tasks removed',\n many: '{0} tasks removed',\n other: '{0} tasks removed'\n },\n\n /* work:InteractionNotification */\n interaction_time_expired: 'The time to accept the interaction has expired.',\n interaction_time_remaining: {\n zero: 'The time to accept the interaction has expired.',\n one: '{0} second remaining to accept the interaction.',\n two: '{0} seconds remaining to accept the interaction.',\n few: '{0} seconds remaining to accept the interaction.',\n many: '{0} seconds remaining to accept the interaction.',\n other: '{0} seconds remaining to accept the interaction.'\n },\n interaction_shortcut_goto_info: 'Press {0} to review.',\n interaction_shortcut_dismiss_info: 'Press {0} to dismiss.',\n shortcut_GoToIncomingInteraction: 'Go to incoming interaction popup.',\n shortcut_DismissIncomingInteraction: 'Dismiss incoming interaction popup.',\n\n /* rte:RichTextEditor */\n rte_heading_style: 'Heading style',\n rte_heading_style_normal: 'Normal',\n rte_heading_style_heading_1: 'Heading 1',\n rte_heading_style_heading_2: 'Heading 2',\n rte_heading_style_heading_3: 'Heading 3',\n rte_heading_style_heading_4: 'Heading 4',\n rte_bold: 'Bold',\n rte_italic: 'Italic',\n rte_strike_through: 'Strike-through',\n rte_cut: 'Cut',\n rte_copy: 'Copy',\n rte_paste: 'Paste',\n rte_bulleted_list: 'Bulleted list',\n rte_numbered_list: 'Numbered list',\n rte_indent: 'Indent',\n rte_unindent: 'Unindent',\n rte_table: 'Table',\n rte_link: 'Link',\n rte_image: 'Insert image',\n rte_invalid_html: 'Invalid HTML',\n rte_insert_field: 'Insert field',\n rte_invalid_url: 'Invalid URL',\n rte_change_text_format: 'Change text format to',\n rte_toggle_unordered_list: 'Toggle unordered list',\n rte_indent_selection: 'Indent selection',\n rte_unindent_selection: 'Unindent selection',\n rte_toolbar_instructions: 'Hit tab to enter the editor toolbar',\n rte_text_formatting_toolbar: 'Text formatting toolbar',\n rte_image_description_info: 'Provides an alternate (ALT) description for the visually impaired',\n rte_image_custom_size: 'Custom size',\n rte_width_in_pixels: 'Width (in pixels)',\n rte_height_in_pixels: 'Height (in pixels)',\n rte_image_settings: 'Image settings',\n rte_image_key_command: 'Press enter to edit the image',\n\n /* social:Email */\n expand_forwarded_message: 'Expand forwarded message',\n collapse_forwarded_message: 'Collapse forwarded message',\n copy_to: 'Copy to',\n subject_label: 'Subject: {0}',\n search_results: 'Search results',\n\n /* social:Feed */\n feed_new_post: 'Start a conversation',\n feed_new_post_submit: 'Post',\n feed_new_comment: 'New comment',\n feed_new_comment_submit: 'Comment',\n feed_attach_files: 'Attach files',\n feed_post_actions_menu: 'More',\n feed_edit_post: 'Edit post',\n feed_edit_comment: 'Edit comment',\n feed_context: 'in {0}',\n feed_liked_by: 'Liked by {0}',\n feed_likes: 'Likes',\n feed_private_post: 'Private post',\n feed_public_post: 'Public post',\n feed_recipients: 'Recipients',\n feed_like_label: 'Like',\n feed_unlike_label: 'Unlike',\n feed_post_likes: {\n zero: 'No likes',\n one: '{0} like',\n two: '{0} likes',\n few: '{0} likes',\n many: '{0} likes',\n other: '{0} likes'\n },\n feed_comment_label: 'Comment',\n feed_post_comments: {\n zero: 'No comments',\n one: '{0} comment',\n two: '{0} comments',\n few: '{0} comments',\n many: '{0} comments',\n other: '{0} comments'\n },\n feed_attachments_added: {\n zero: 'No attachments added',\n one: '{0} attachment added',\n two: '{0} attachments added',\n few: '{0} attachments added',\n many: '{0} attachments added',\n other: '{0} attachments added'\n },\n feed_attachments_removed: {\n zero: 'No attachments removed',\n one: '{0} attachment removed',\n two: '{0} attachments removed',\n few: '{0} attachments removed',\n many: '{0} attachments removed',\n other: '{0} attachments removed'\n },\n feed_post_liked: 'Post has been liked',\n feed_post_deliked: 'Post has been deliked',\n feed_post_removed: 'Post has been removed',\n feed_comment_removed: 'Comment has been removed',\n showing_num_of_num: 'Showing {0} of {1}',\n feed_new_post_added: {\n zero: 'No posts added',\n one: '{0} post added',\n two: '{0} posts added',\n few: '{0} posts added',\n many: '{0} posts added',\n other: '{0} posts added'\n },\n new_item_added: {\n zero: 'No items added',\n one: '{0} new item added',\n two: '{0} new items added',\n few: '{0} new items added',\n many: '{0} new items added',\n other: '{0} new items added'\n },\n loading_post: 'Loading post',\n mention_type: 'Mention a {0}',\n\n /* cs:Chat */\n scroll_to_latest_message: 'Scroll to latest message',\n scroll_to_unread_messages: 'Scroll to unread messages',\n suggested_replies_current_of_total: 'Suggested reply {0} of {1}',\n suggested_replies: 'Suggested replies',\n confidence_percentage: '{0}% confidence',\n next_suggested_reply: 'Next suggested reply',\n prev_suggested_reply: 'Previous suggested reply',\n dismiss_suggested_replies: 'Dismiss suggested replies',\n message_sent: 'Message sent',\n temporarilyUnavailable: 'Temporarily unavailable',\n available: 'Available',\n unavailable: 'Unavailable',\n authenticated: 'Authenticated',\n not_authenticated: 'Not authenticated',\n context: 'Context',\n chat_context: 'Chat context',\n bot: 'Bot',\n is_typing: '{0} is typing {1}',\n chat_message_at_timestamp: '{0} at {1}.',\n sender_replied_message: '{0} replied {1}',\n chat_attachments: '{0} with {1} attachments',\n chat_links: '{0} with {1} links',\n chat_message_status: 'Message {0}',\n opened: 'Opened',\n undeliverable: 'Undeliverable',\n new_message: 'New message',\n attachments: 'attachments',\n attachments_x_of_y: 'attachment {0} of {1}',\n edit_current_template: 'Edit suggested reply {0} of {1}',\n send_current_template: 'Send suggested reply {0} of {1}',\n expand_suggested_replies: 'Expand suggested replies',\n collapse_suggested_replies: 'Collapse suggested replies',\n replies_count: '{0} of {1}',\n no_suggestion: 'No suggestions',\n suggestion: 'Suggestion',\n suggested_reply_copied_to_input_field: 'Suggested reply copied to input field',\n dialogue: 'Dialogue',\n pega_genAI: 'Pega GenAI',\n suggest_reply: 'Suggest reply',\n\n /* cs:Email */\n unique_entities: {\n zero: 'No unique entities',\n one: '{0} unique entity',\n two: '{0} unique entities',\n few: '{0} unique entities',\n many: '{0} unique entities',\n other: '{0} unique entities'\n },\n more_count: '{0} more…',\n other_responses: 'Other responses',\n empty_search: 'Enter a search term',\n new_messages: 'New messages',\n earlier_transcripts: 'Earlier transcripts',\n send: 'Send',\n compose_label: 'Compose',\n save_as_draft: 'Save as draft',\n enter_message: 'Enter message',\n download: 'Download',\n close_chat_utility: 'Close chat utility',\n email_account: 'Email account',\n subject: 'Subject',\n to: 'To',\n from: 'From',\n cc: 'Cc',\n bcc: 'Bcc',\n date: 'Date',\n reply: 'Reply',\n reply_all: 'Reply all',\n response_templates: 'Response templates',\n forward: 'Forward',\n email: 'Email',\n email_message: 'Email message',\n email_filters: 'Email filters',\n unread_email_count: '{0} of {1} unread',\n priority: 'Priority',\n inbox: 'Inbox',\n insert: 'Insert',\n email_add_attachment: 'Add attachment, the maximum number of attachments allowed is {0}.',\n email_disable_attachment:\n 'Adding attachments are disabled, the maximum number of attachments allowed is {0}.',\n email_remove_attachment: 'Remove attachment',\n loading_email: 'Loading email',\n draft: {\n zero: 'No drafts',\n one: '{0} draft',\n two: '{0} drafts',\n few: '{0} drafts',\n many: '{0} drafts',\n other: '{0} drafts'\n },\n undelivered: 'Undelivered',\n drafts: 'drafts',\n unread: 'unread',\n\n /* cs:CallControlPanel */\n call_panel_heading: 'Pega call',\n call_panel_make_new_call: 'Make new call',\n call_panel_agent_status: 'Status',\n call_panel_pause_call_menu_item: 'Pause call',\n call_panel_resume_call_menu_item: 'Resume call',\n call_panel_mute_mic_menu_item: 'Mute microphone',\n call_panel_unmute_mic_menu_item: 'Unmute microphone',\n call_panel_call_on_hold: 'On hold {0}',\n call_panel_consult_call_menu_item: 'Consult',\n call_panel_transfer_call_menu_item: 'Transfer',\n call_panel_menu_item_call_only: 'Call only',\n call_panel_menu_item_call_with_interaction: 'Call and interaction',\n call_panel_send_dtmf_menu_item: 'Send DTMF',\n call_panel_conference_call_menu_item: 'Conference',\n call_panel_hangup_call_menu_item: 'Hang up',\n call_panel_disconnect_participant: 'Disconnect participant',\n call_panel_contacts_add_to_favorites: 'Add to favorites',\n call_panel_contacts_remove_from_favorites: 'Remove from favorites',\n call_panel_contacts_call_button_label: 'Call',\n call_panel_contacts_list_heading: 'Contacts',\n call_panel_contacts_favorites_heading: 'Favorites',\n call_panel_contacts_dial_pad_heading: 'Dial pad',\n call_panel_new_call_heading: 'New call',\n call_panel_interaction_transfer_heading: 'Transfer initiated',\n call_panel_interaction_transfer_complete_button_label: 'Complete transfer',\n call_panel_incoming_call: 'Incoming call…',\n call_panel_answer_call: 'Answer',\n\n call_panel_conference_heading: 'Conference call',\n call_panel_conference_call_and_interactions_heading: 'Conference by call and interaction',\n call_panel_consult_heading: 'Consult by call',\n call_panel_consult_call_and_interactions_heading: 'Consult by call and interaction',\n call_panel_transfer_heading: 'Transfer call',\n call_panel_transfer_call_and_interactions_heading: 'Transfer call and interaction',\n\n call_panel_conference_submit: 'Conference',\n call_panel_transfer_submit: 'Transfer',\n call_panel_consult_submit: 'Consult',\n\n call_panel_handover_reason_label: 'Reason',\n call_panel_handover_to_label: 'To',\n call_panel_handover_comments_label: 'Comments',\n call_panel_handover_call_option_label: 'Call option',\n call_panel_handover_call_only_option: 'Call only',\n call_panel_handover_call_and_interaction_option: 'Call and interaction',\n call_panel_handover_interaction_label: 'Interaction',\n call_panel_merge_call_menu_item: 'Merge',\n call_panel_handoff_call_menu_item: 'Hand off',\n call_panel_send_dtmf_heading: 'Send DTMF',\n call_panel_expand: 'Expand call control panel',\n call_panel_collapse: 'Collapse call control panel',\n call_panel_nav_label: 'Phone panel',\n\n /* cs:DialPad */\n dial_pad_keyboard: 'Dial pad keyboard',\n dial_pad_phone_number_input_label: 'Phone number input',\n dial_pad_call_button_label: 'Call {0}',\n\n /* cs:TaskManager */\n select_multiple: 'Select multiple',\n dismiss_case: 'Dismiss case',\n task_manager_add_case: 'Add case',\n task_manager_wrap_up: 'Wrap up',\n task_manager_cases: 'Cases',\n add_cases: 'Add cases',\n open_cases: 'Open cases',\n resolved_cases: 'Resolved cases',\n no_picker_items: 'No {0}',\n selected_picker_items: 'Selected {0}',\n no_selected_picker_items: 'No selected {0}',\n search_picker_items: 'Search {0}',\n case_picker_close: 'Close case picker',\n case_manager_overflow_menu: 'All cases',\n continue_label: 'Continue',\n continue_label_a11y: 'Continue with {0}',\n review_label: 'Review',\n review_label_a11y: 'Review {0}',\n dismiss_label: 'Dismiss',\n dismiss_label_a11y: 'Dismiss {0}',\n task_manager_picker_add_label: {\n zero: 'No items to add',\n one: 'Add {0} new item',\n two: 'Add {0} new items',\n few: 'Add {0} new items',\n many: 'Add {0} new items',\n other: 'Add {0} new items'\n },\n show_detected_entities: 'Show detected entities',\n nothing_detected_yet: 'Nothing detected yet',\n ai_detected_entities: 'AI detected entities',\n close_conversation: 'Close conversation',\n shortcut_AddTask: 'Open task picker',\n shortcut_WrapUp: 'Wrap up interaction',\n live_transcript: 'Live transcript',\n open_live_transcript: 'Open live transcript',\n close_live_transcript: 'Close live transcript',\n download_live_transcript: 'Download live transcript',\n transcripts: 'Transcripts',\n verbatim: 'Verbatim',\n dialog: 'Dialog',\n download_transcript: 'Download transcript',\n follow_up_tasks: 'Follow-up tasks',\n add_follow_up_task: 'Add follow-up task',\n agents_utterance: \"Agent's commitment in context\",\n detected_entities: 'Detected entities',\n\n /* cs:FollowUpTask */\n due_on: 'Due on {0}',\n\n /* cs:Sentiment */\n sentiment_positive: 'Positive',\n sentiment_negative: 'Negative',\n sentiment_neutral: 'Neutral',\n\n /* cs:IntelligentGuidance */\n no_recommendations: 'No recommendations',\n items_added_to_previous_list: 'Items added to previous list',\n items_added_to_current_list: 'Items added to current list',\n\n /* condition-builder:ConditionBuilder */\n condition_builder_advanced_condition_label: 'Advanced condition',\n condition_builder_advanced_condition_placeholder: 'Advanced condition',\n condition_builder_advanced_mode_button_label: 'Advanced mode',\n condition_builder_basic_mode_button_label: 'Basic mode',\n condition_builder_advanced_mode_button_aria_label: 'Switch to advanced mode',\n condition_builder_basic_mode_button_aria_label: 'Switch to basic mode',\n condition_builder_mode_switch: 'Mode switched',\n condition_builder_advanced_condition_tooltip:\n 'A logical expression representing an advanced condition. Use numbers like 1,2,3,… to represent different condition rows. Use {0} operators and parentheses to construct advanced conditions. Example: {1}',\n condition_builder_condition_select_info_default: 'No selection',\n condition_builder_possible_values_label: 'Values',\n condition_builder_possible_values_error: 'Error retrieving values',\n condition_builder_multi_selection_text_default: 'Select values',\n condition_builder_single_selection_text_default: 'Select value',\n condition_builder_switch_banner_text:\n 'Switching from advanced mode can reset all AND/OR/NOT operators. Do you want to continue?',\n condition_builder_confirm_button_label: 'OK',\n condition_builder_empty_selection_error_text: 'No selection',\n condition_builder_empty_value_text: 'Empty value',\n condition_builder_compare_with: 'Compare with {0}',\n condition_builder_compare_with_another_field: 'Another field',\n condition_builder_compare_with_parameter: 'Parameter',\n condition_builder_compare_with_relative_date: 'Relative date',\n condition_builder_compare_with_text_value: 'Text value',\n condition_builder_compare_with_numeric_value: 'Numeric value',\n condition_builder_compare_with_date_value: 'Date value',\n condition_builder_compare_with_time_value: 'Time value',\n condition_builder_invalid_time_period: 'Invalid time period',\n condition_builder_invalid_relative_date: 'Invalid relative date',\n condition_builder_invalid_value: 'Invalid value',\n condition_builder_invalid_values: 'Invalid values',\n condition_builder_invalid_time: 'Invalid time',\n condition_builder_invalid_date: 'Invalid date',\n condition_builder_invalid_number: 'Invalid number',\n condition_builder_invalid_date_range: 'Invalid date range',\n condition_builder_invalid_time_range: 'Invalid time range',\n condition_builder_invalid_number_range: 'Invalid range',\n condition_builder_select_placeholder: 'Select…',\n condition_builder_hour_number_of_day: '{0} (hour of day)',\n condition_builder_rhs_with_time_only_input: 'Rhs with Time only input',\n condition_builder_rhs_with_date_only_input: 'Rhs with Date only input',\n condition_builder_rhs_with_date_time_input: 'Rhs with Date Time input',\n condition_builder_rhs_with_csv_input: 'Rhs with csv input',\n condition_builder_no_selection: 'No selection',\n condition_builder_enter_csv_placeholder: 'Enter comma separated values',\n condition_builder_day_number_of_month: {\n zero: '{0}th day of the month',\n one: '{0}st day of the month',\n two: '{0}nd day of the month',\n few: '{0}rd day of the month',\n many: '{0}th day of the month',\n other: '{0}th day of the month'\n },\n condition_builder_year: 'Year(s)',\n condition_builder_quarter: 'Quarter(s)',\n condition_builder_month: 'Month(s)',\n condition_builder_week: 'Week(s)',\n condition_builder_day: 'Day(s)',\n condition_builder_hour: 'Hour(s)',\n condition_builder_minute: 'Minute(s)',\n condition_builder_second: 'Second(s)',\n condition_builder_date_function_hour_of_day: 'Hour of day',\n condition_builder_date_function_month_of_year: 'Month of year',\n condition_builder_date_function_day_of_month: 'Day of month',\n condition_builder_date_function_day_of_week: 'Day of week',\n condition_builder_date_part: 'Date part',\n condition_builder_current_second: 'Current second',\n condition_builder_current_minute: 'Current minute',\n condition_builder_current_hour: 'Current hour',\n condition_builder_current_day: 'Current day',\n condition_builder_current_week: 'Current week',\n condition_builder_current_month: 'Current month',\n condition_builder_current_quarter: 'Current quarter',\n condition_builder_current_year: 'Current year',\n condition_builder_last_X_seconds: {\n zero: 'Current second',\n one: 'Last second',\n two: 'Last {0} seconds',\n few: 'Last {0} seconds',\n many: 'Last {0} seconds',\n other: 'Last {0} seconds'\n },\n condition_builder_last_X_minutes: {\n zero: 'Current minute',\n one: 'Last minute',\n two: 'Last {0} minutes',\n few: 'Last {0} minutes',\n many: 'Last {0} minutes',\n other: 'Last {0} minutes'\n },\n condition_builder_last_X_hours: {\n zero: 'Current hour',\n one: 'Last hour',\n two: 'Last {0} hours',\n few: 'Last {0} hours',\n many: 'Last {0} hours',\n other: 'Last {0} hours'\n },\n condition_builder_last_X_days: {\n zero: 'Current day',\n one: 'Last day',\n two: 'Last {0} days',\n few: 'Last {0} days',\n many: 'Last {0} days',\n other: 'Last {0} days'\n },\n condition_builder_last_X_weeks: {\n zero: 'Current week',\n one: 'Last week',\n two: 'Last {0} weeks',\n few: 'Last {0} weeks',\n many: 'Last {0} weeks',\n other: 'Last {0} weeks'\n },\n condition_builder_last_X_months: {\n zero: 'Current month',\n one: 'Last month',\n two: 'Last {0} months',\n few: 'Last {0} months',\n many: 'Last {0} months',\n other: 'Last {0} months'\n },\n condition_builder_last_X_quarters: {\n zero: 'Current quarter',\n one: 'Last quarter',\n two: 'Last {0} quarters',\n few: 'Last {0} quarters',\n many: 'Last {0} quarters',\n other: 'Last {0} quarters'\n },\n condition_builder_last_X_years: {\n zero: 'Current year',\n one: 'Last year',\n two: 'Last {0} years',\n few: 'Last {0} years',\n many: 'Last {0} years',\n other: 'Last {0} years'\n },\n condition_builder_next_X_seconds: {\n zero: 'Current second',\n one: 'Next second',\n two: 'Next {0} seconds',\n few: 'Next {0} seconds',\n many: 'Next {0} seconds',\n other: 'Next {0} seconds'\n },\n condition_builder_next_X_minutes: {\n zero: 'Current minute',\n one: 'Next minute',\n two: 'Next {0} minutes',\n few: 'Next {0} minutes',\n many: 'Next {0} minutes',\n other: 'Next {0} minutes'\n },\n condition_builder_next_X_hours: {\n zero: 'Current hour',\n one: 'Next hour',\n two: 'Next {0} hours',\n few: 'Next {0} hours',\n many: 'Next {0} hours',\n other: 'Next {0} hours'\n },\n condition_builder_next_X_days: {\n zero: 'Current day',\n one: 'Next day',\n two: 'Next {0} days',\n few: 'Next {0} days',\n many: 'Next {0} days',\n other: 'Next {0} days'\n },\n condition_builder_next_X_weeks: {\n zero: 'Current week',\n one: 'Next week',\n two: 'Next {0} weeks',\n few: 'Next {0} weeks',\n many: 'Next {0} weeks',\n other: 'Next {0} weeks'\n },\n condition_builder_next_X_months: {\n zero: 'Current month',\n one: 'Next month',\n two: 'Next {0} months',\n few: 'Next {0} months',\n many: 'Next {0} months',\n other: 'Next {0} months'\n },\n condition_builder_next_X_quarters: {\n zero: 'Current quarter',\n one: 'Next quarter',\n two: 'Next {0} quarters',\n few: 'Next {0} quarters',\n many: 'Next {0} quarters',\n other: 'Next {0} quarters'\n },\n condition_builder_next_X_years: {\n zero: 'Current year',\n one: 'Next year',\n two: 'Next {0} years',\n few: 'Next {0} years',\n many: 'Next {0} years',\n other: 'Next {0} years'\n },\n condition_builder_previous_X_seconds: {\n zero: 'Current second',\n one: 'Previous second',\n two: 'Previous {0} seconds',\n few: 'Previous {0} seconds',\n many: 'Previous {0} seconds',\n other: 'Previous {0} seconds'\n },\n condition_builder_previous_X_minutes: {\n zero: 'Current minute',\n one: 'Previous minute',\n two: 'Previous {0} minutes',\n few: 'Previous {0} minutes',\n many: 'Previous {0} minutes',\n other: 'Previous {0} minutes'\n },\n condition_builder_previous_X_hours: {\n zero: 'Current hour',\n one: 'Previous hour',\n two: 'Previous {0} hours',\n few: 'Previous {0} hours',\n many: 'Previous {0} hours',\n other: 'Previous {0} hours'\n },\n condition_builder_previous_X_days: {\n zero: 'Current day',\n one: 'Previous day',\n two: 'Previous {0} days',\n few: 'Previous {0} days',\n many: 'Previous {0} days',\n other: 'Previous {0} days'\n },\n condition_builder_previous_X_weeks: {\n zero: 'Current week',\n one: 'Previous week',\n two: 'Previous {0} weeks',\n few: 'Previous {0} weeks',\n many: 'Previous {0} weeks',\n other: 'Previous {0} weeks'\n },\n condition_builder_previous_X_months: {\n zero: 'Current month',\n one: 'Previous month',\n two: 'Previous {0} months',\n few: 'Previous {0} months',\n many: 'Previous {0} months',\n other: 'Previous {0} months'\n },\n condition_builder_previous_X_quarters: {\n zero: 'Current quarter',\n one: 'Previous quarter',\n two: 'Previous {0} quarters',\n few: 'Previous {0} quarters',\n many: 'Previous {0} quarters',\n other: 'Previous {0} quarters'\n },\n condition_builder_previous_X_years: {\n zero: 'Current year',\n one: 'Previous year',\n two: 'Previous {0} years',\n few: 'Previous {0} years',\n many: 'Previous {0} years',\n other: 'Previous {0} years'\n },\n condition_builder_time_period_label: 'Time period',\n condition_builder_time_period_last: 'Last',\n condition_builder_time_period_current: 'Current',\n condition_builder_time_period_previous: 'Previous',\n condition_builder_time_period_next: 'Next',\n condition_builder_value_label: 'Value',\n condition_builder_field_label: 'Field',\n condition_builder_comparator_label: 'Conditional operator',\n\n /* condition-builder:PromotedFilters */\n promoted_filters_clear_all_button_label: 'Clear all filters',\n\n /* build:AppShell */\n dev_mode: 'Dev mode',\n expand_navigation: 'Expand navigation',\n collapse_navigation: 'Collapse navigation',\n switch_to: 'Switch to…',\n expand_search: 'Expand search',\n collapse_search: 'Collapse search',\n\n /* build:BranchButton */\n branch_with_no_changes: '{0} with no changes',\n branch_with_no_potential_conflicts: '{0} with no potential conflicts and {1} unmerged changes',\n branch_with_potential_conflicts: '{0} with potential conflicts',\n\n /* build:Lifecycle */\n parallel: 'Parallel',\n stage: 'Stage',\n alternate_stage: 'Alternate stage',\n add_stage: 'Add stage',\n add_process: 'Add process',\n add_alternate_stage: 'Add alternate stage',\n stage_name: '{0} stage',\n process_name: '{0} process',\n step_name: '{0} step',\n item_error: '{0} error',\n step_name_error: '{0} step has configuration error',\n stage_name_error: '{0} stage has configuration error',\n process_name_error: '{0} process has configuration error',\n\n /* build:FlowModeller */\n add_node: 'Add node',\n search_nodes: 'Search nodes',\n delete_step: 'This step has multiple outcomes, are you sure want to delete this step?',\n delete_decision_step:\n 'Select outcome that you want to retain. The remaining highlighted outcomes will be deleted',\n delete_step_title: 'Delete step',\n delete_step_outcome: 'Outcome to keep',\n delete_all_outcomes: 'None (delete all outcomes)',\n delete_step_error: 'This step can\\'t be deleted as the outcome selected has a \"Go to\" step.',\n delete_referenced_step_error:\n 'This step can\\'t be deleted as it is referenced by a \"Go to\" step.',\n delete_connector_error:\n 'Connector cannot be deleted unless Goto step is deleted from all branches',\n\n /* build:Workbench */\n zoom_level: 'Zoom level',\n close_configuration_panel: 'Close configuration panel',\n\n /* build:ObjectSelect */\n clear_object_summary: 'Clear {0} selection',\n create_in_new_tab: 'Create new, opens in new tab',\n\n /* build:ExpressionBuilder */\n expression_editor: 'Expression editor',\n output_parameters: 'Output parameters',\n input_parameters: 'Input parameters',\n\n /* build:MobileBuildSummary */\n no_app_build: 'There is no app build',\n build_app: 'Build app',\n build_in_progress: 'Building…',\n rebuild_app: 'Rebuild app',\n download_app: 'Download app',\n qr_code_not_available: 'No QR code available yet',\n qr_code: 'QR code',\n\n /* wss:AppHeader */\n app_header_notifications_empty: 'No notifications',\n app_header_notifications_loading: 'Loading notifications',\n open_app_header_notifications: 'Open notifications',\n open_app_header_drawer: 'Open navigation menu',\n\n /* tools: PreviewShell */\n preview_frame: 'Preview frame',\n open_in_new_window_text: 'Open in new window',\n more_options: 'More options',\n dev_tools: 'dev tools',\n\n /* tools: DevTools */\n active_session_info: 'Debugging for this session is active in another window',\n continue_debugging: 'Continue debugging',\n\n /* Launchpad: IconTiles */\n action_task: 'Action task',\n task_object: 'Task object',\n view_rule: 'View rule',\n system_rule: 'System rule',\n record_rule: 'Record rule',\n portal_rule: 'Portal rule',\n persona_rule: 'Persona rule',\n permission_rule: 'Permission rule',\n live_data_rule: 'Live data rule',\n integration_system_rule: 'Integration system rule',\n insight_rule: 'Insight rule',\n field_rule: 'Field rule',\n data_page_rule: 'Data page rule',\n connector_rule: 'Connector rule',\n configuration_rule: 'Configuration rule',\n authenticate_rule: 'Authenticate rule',\n when_logic: 'When logic',\n validation_logic: 'Validation logic',\n function_logic: 'Function logic',\n decision_step_logic: 'Decision step logic',\n case_wait: 'Case wait object',\n case_stage: 'Case stage object',\n case_sla: 'Case SLA object',\n case_process: 'Case process object',\n case_go_to: 'Case go-to object',\n case_object: 'Case object',\n set_automation: 'Set automation',\n return_automation: 'Return automation',\n for_each_automation: 'For each automation',\n call_automation: 'Call automation',\n append_automation: 'Append automation',\n automation_object: 'Automation object',\n ai_object: 'AI object'\n};\n"]}
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,gFAAgF;IAChF,6BAA6B;IAC7B,gFAAgF;IAEhF,0CAA0C;IAC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tC,SAAS,EAAE,WAAW;CACvB,CAAC","sourcesContent":["export default {\n // -----------------------------------------------------------------------------\n // Common translation entries\n // -----------------------------------------------------------------------------\n\n /* Nouns, Types, Terms, Phrases, etc... */\n yes: 'Yes',\n no: 'No',\n filters: 'Filters',\n actions: 'Actions',\n status: 'Status',\n additional_info: 'Additional info',\n search_placeholder_default: 'Search…',\n select_placeholder_default: 'Select…',\n description: 'Description',\n all: 'All',\n default: 'default',\n app_default: 'app default',\n sitewide: 'Sitewide',\n opens_in_a_new_tab: 'Opens in a new tab',\n summary: 'Summary',\n utilities: 'Utilities',\n search: 'Search',\n menu: 'menu',\n new: 'New',\n info: 'info',\n shortcuts: 'Shortcuts',\n label: 'Label',\n\n /* Verbs */\n remove: 'Remove',\n follow: 'Follow',\n unfollow: 'Unfollow',\n add: 'Add',\n cancel: 'Cancel',\n try_again: 'Try again',\n update: 'Update',\n submit: 'Submit',\n apply: 'Apply',\n select: 'Select',\n edit: 'Edit',\n preview: 'Preview',\n decline: 'Decline',\n delete: 'Delete',\n close: 'Close',\n activate: 'Activate',\n expand: 'Expand',\n collapse: 'Collapse',\n accept: 'Accept',\n clear: 'Clear',\n use: 'Use',\n undo: 'Undo',\n redo: 'Redo',\n filter: 'Filter',\n sort: 'Sort',\n group: 'Group',\n go: 'Go',\n configure: 'Configure',\n dismiss: 'Dismiss',\n due: 'Due',\n\n /* Static verb noun */\n view_all: 'View all',\n view_less: 'View less',\n show_more: 'Show more',\n show_less: 'Show less',\n show_all: 'Show all',\n clear_all: 'Clear all',\n link_open_in_tab_text: 'Open in tab',\n edit_details: 'Edit details',\n add_emoji: 'Add emoji',\n create_new: 'Create new',\n submit_and_open: 'Submit and open',\n add_condition: 'Add condition',\n\n /* Dynamic verb {noun} */\n open_noun: 'Open {0}',\n close_noun: 'Close {0}',\n view_all_noun: 'View all {0}',\n view_less_noun: 'View less {0}',\n expand_noun: 'Expand {0}',\n add_noun: 'Add {0}',\n collapse_noun: 'Collapse {0}',\n checked_noun: '{0} checked',\n selected_noun: '{0} selected',\n unselected_noun: '{0} unselected',\n use_input_value: 'Use {0}',\n preview_of_noun: 'Preview of {0}',\n go_to_noun: 'Go to {0}',\n insert_noun: 'Insert {0}',\n delete_noun: 'Delete {0}',\n actions_for: 'Actions for {0}',\n\n /* States */\n edited: 'Edited {0}',\n done: 'Done',\n uploading: 'Uploading',\n loading: 'Loading…',\n loaded: 'Loaded',\n submitting: 'Submitting…',\n no_items: 'No items',\n unknown_error: 'Unknown error',\n image_load_error: 'Error loading image',\n selected: 'Selected',\n selected_count: {\n zero: '{0} selected',\n one: '{0} selected',\n two: '{0} selected',\n few: '{0} selected',\n many: '{0} selected',\n other: '{0} selected'\n },\n completed: 'Completed',\n current: 'Current',\n previous: 'Previous',\n not_started: 'Not started',\n empty_value: 'Empty value',\n no_value: 'no value',\n delivered: 'Delivered',\n sent: 'Sent',\n active: 'Active',\n read_only: 'Read only',\n information: 'Information',\n error: 'Error',\n warning: 'Warning',\n success: 'Success',\n pass: 'Pass',\n fail: 'Fail',\n did_not_ask: 'Did not ask',\n\n /* Date and time */\n day_placeholder: 'DD',\n month_placeholder: 'MM',\n year_placeholder: 'YYYY',\n hour_placeholder: 'hh',\n minute_placeholder: 'mm',\n second_placeholder: 'ss',\n meridiem_value_am: 'AM',\n meridiem_value_pm: 'PM',\n week_placeholder: 'WW',\n seconds_text: 'Seconds',\n minutes_text: 'Minutes',\n hours_text: 'Hours',\n days_text: 'Days',\n time_text: 'Time',\n time_format_info: 'hh:mm:ss',\n date_quarter_q1: 'Q1 {0}',\n date_quarter_q2: 'Q2 {0}',\n date_quarter_q3: 'Q3 {0}',\n date_quarter_q4: 'Q4 {0}',\n time_unit: 'Time Unit',\n\n /* Count based types */\n attachments_count: {\n zero: 'No attachments',\n one: '{0} attachment',\n two: '{0} attachments',\n few: '{0} attachments',\n many: '{0} attachments',\n other: '{0} attachments'\n },\n results_count: {\n zero: 'No results',\n one: '{0} result',\n two: '{0} results',\n few: '{0} results',\n many: '{0} results',\n other: '{0} results'\n },\n recent_results_count: {\n zero: 'No recent results',\n one: '{0} recent result',\n two: '{0} recent results',\n few: '{0} recent results',\n many: '{0} recent results',\n other: '{0} recent results'\n },\n new_emails_count: {\n zero: 'No new emails',\n one: '{0} new email',\n two: '{0} new emails',\n few: '{0} new emails',\n many: '{0} new emails',\n other: '{0} new emails'\n },\n\n /* Pagination */\n pagination_page_of: 'Page {0} of {1}',\n pagination_next: 'Next',\n pagination_prev: 'Previous',\n\n /* Range */\n range_from_datetime: 'Since',\n range_to_datetime: 'Until',\n range_from_numeric: 'From',\n range_to_numeric: 'To',\n\n /* Miscellaneous */\n x_of_y: '{0} of {1}',\n\n // -----------------------------------------------------------------------------\n // {pkg}:{ComponentDir} entries\n // -----------------------------------------------------------------------------\n\n /* core:Link */\n preview_link_instruction: 'Press {0} and p to open this link in a preview.',\n\n /* core:LiveLog */\n polite_announcements: 'Polite Announcements',\n assertive_announcements: 'Assertive Announcements',\n\n /* core:SkipLinks */\n go_to_main_content: 'Go to main content',\n main_content: 'Main content',\n\n /* core:AppShell */\n app_shell_create: 'Create',\n app_shell_open_nav: 'Open navigation menu',\n app_shell_main_navigation_label: 'Main',\n shortcut_NextRegion: 'Next region',\n shortcut_PrevRegion: 'Previous region',\n app_shell_user_account: 'Account',\n\n /* core:ComboBox */\n combobox_open_close: 'Arrow down to open, press escape to close.',\n combobox_search_instructions: 'Start typing to search',\n combobox_open_list_button_a11y: 'Open combobox list',\n combobox_close_list_button_a11y: 'Close combobox list',\n multiselect_instructions: 'Arrow {0} from start to review selected items',\n selected_items: 'Selected items',\n\n /* core:Menu */\n menu_selection_instructions: 'Press enter to select items.',\n menu_item_expand_arrow: '{0}. Arrow right to expand.',\n menu_item_collapse_arrow: 'Arrow left to collapse.',\n menu_item_collapse_shift_space: 'Press shift space to collapse.',\n menu_item_shift_space_expand_collapse: '{0}. Press shift space to expand and collapse.',\n menu_option_list: 'Options list',\n menu_item_count: 'Contains {0} items.',\n menu_collapsed: '{0} collapsed',\n menu_expanded: '{0} expanded.',\n\n /* core:Modal */\n modal_minimize: 'Minimize modal',\n modal_maximize: 'Maximize modal',\n modal_dock: 'Dock modal',\n modal_close: 'Close modal',\n minimize: 'Minimize',\n maximize: 'Maximize',\n dock: 'Dock',\n\n /* core:Datetime */\n selected_date_a11y: 'Selected date:',\n open_calendar_button_a11y: 'Open calendar',\n close_calendar_button_a11y: 'Close calendar',\n open_time_button_a11y: 'Open time picker',\n close_time_button_a11y: 'Close time picker',\n set_current_date_and_time_a11y: 'Set current date and time',\n set_current_date_a11y: 'Set current date',\n clear_current_date_and_time: 'Clear current date and time',\n clear_current_date: 'Clear current date',\n picker_next_month: 'Next month',\n picker_prev_month: 'Previous month',\n picker_jump_to_month_and_year: 'Jump to month and year selection',\n calendar_assist: 'Use cursor keys to navigate dates',\n calendar: 'Calendar',\n choose_date: 'Choose date',\n choose_date_and_time: 'Choose date and time',\n choose_week: 'Choose week',\n\n /* core:Boolean */\n boolean_display_true_label: 'Yes',\n boolean_display_false_label: 'No',\n\n /* core:MultiStepForm */\n step_changed_to_name: 'Step changed to {0}',\n\n /* core:Number */\n measured_in: 'measured in {0}',\n\n /* core:Banner */\n banner_dismiss_button_label_a11y: 'Dismiss banner',\n\n /* core:File */\n file_upload_text_main: 'Drag and drop or {0}',\n file_upload_text_one: 'choose a file',\n file_upload_text_multiple: 'choose files',\n download_file: 'Download {0}',\n preview_file: 'Preview {0}',\n open_file_in_new_tab: 'Open {0} in new tab',\n\n /* core:Location */\n my_current_location_button_a11y: 'Use my current location',\n location_input_placeholder: 'Enter a location',\n location_not_found_text: 'Location not found',\n exact_location: 'Exact location',\n allow_location_permissions_text:\n 'To get current location, allow location permissions for this app',\n\n /* core:SearchInput */\n advanced_search: 'Advanced search',\n select_search_filter: 'Select search filter',\n recent_searches: 'Recent searches',\n clear_search: 'Clear search',\n search_instructions: 'Use arrow keys to move up and down the suggested results.',\n\n /* core:SummaryList */\n action_from_summarylist_heading: '{0} from {1}',\n selected_search_filter: 'Filter search by: {0}',\n\n /* work:CaseView */\n utilities_label: 'Utilities',\n utilities_summary: 'Utilities summary',\n expand_summary: 'Expand summary',\n collapse_summary: 'Collapse summary',\n expand_utilities_panel: 'Expand utilities',\n collapse_utilities_panel: 'Collapse utilities',\n primary_summary_fields: 'Primary summary fields',\n summary_fields: 'Summary fields',\n\n /* core:FormField */\n accept_suggestion_button_a11y: 'Accept AI suggestion',\n reject_suggestion_button_a11y: 'Reject AI suggestion',\n suggestion_info: 'Accept AI suggestion?',\n suggestion_assist:\n 'Either press Enter to accept the AI suggestion or edit the value to reject it',\n\n /* core:Phone Input */\n select_country_code: 'Select country code',\n enter_a_number: 'Enter a number',\n\n /* core:SkipLinks */\n skip_navigation_menu_label: 'Skip navigation menu',\n\n /* core:Tabs */\n tab_error_tooltip: '{0} has errors',\n\n /* core:LightBox */\n non_previewable: \"{0} file can't be previewed\",\n content_load_error: 'Error loading content',\n\n /* work:Assignments */\n assignments: 'Assignments',\n\n /* work:ArticleList */\n article_list_label_a11y: 'Article list',\n article_list_filter_label_a11y: 'Article lists filter',\n article_list_header_submit_label: 'Submit',\n clear_filters: 'Clear filters',\n suggest_article: 'Suggest article',\n suggested: 'Suggested',\n followed: 'Followed',\n buddy: 'Buddy',\n disclaimer: 'Disclaimer',\n references: 'References',\n result_available: 'Result available',\n ask: 'Ask',\n error_message: 'Unable to retrieve data at the moment. Please try again.',\n add_a_comment: 'Add a comment',\n\n /* work:Article */\n article_label_a11y: 'Article',\n article_related_links: 'Related links',\n article_more_like_this: 'More like this',\n article_was_this_helpful: 'Was this helpful?',\n article_thank_you_for_your_feedback: 'Thank you for your feedback',\n article_attachments: 'Attachments',\n likes: 'Likes',\n dislikes: 'Dislikes',\n like: 'Like',\n dislike: 'Dislike',\n\n /* work:CasePreview */\n close_preview: 'Close preview',\n\n /* work:Confirmation */\n confirmation_whats_next: \"What's next\",\n confirmation_open_tasks: 'Open tasks',\n\n /* work:Stakeholders */\n add_stakeholders: 'Add stakeholder',\n edit_stakeholder: 'Edit stakeholder',\n view_stakeholders: 'Stakeholders',\n stakeholders_role: 'Role',\n stakeholders: {\n zero: '{0} stakeholders',\n one: '{0} stakeholder',\n two: '{0} stakeholders',\n few: '{0} stakeholders',\n many: '{0} stakeholders',\n other: '{0} stakeholders'\n },\n\n /* work:Tags */\n edit_tags: 'Edit tags',\n tags: 'Tags',\n\n /* work:Glimpse */\n view_profile: 'View profile',\n\n /* work:Timeline */\n timeline_toolbar_sort_descending: 'Newest first',\n timeline_toolbar_sort_ascending: 'Oldest first',\n timeline_toolbar_group_date: 'By day',\n timeline_toolbar_group_monthyear: 'By month',\n timeline_toolbar_group_quarteryear: 'By quarter',\n timeline_toolbar_group_year: 'By year',\n timeline_toolbar_group_none: 'Off',\n\n /* work:AppAnnouncement */\n app_announcement_dismiss_button_label_a11y: 'Hide until next update',\n app_announcement_details_list_header: 'Announcements',\n app_announcement_whats_new_button_label: \"See what's new\",\n\n /* work:Stages */\n stages_label: 'Case stages',\n stages_see_full_lifecycle: 'See full lifecycle',\n stages_case_lifecycle: '{0} lifecycle',\n stages_default_case_lifecycle: 'Case lifecycle',\n stages_stage_label: 'Stage {0}, {1}',\n stages_description: 'Use horizontal arrow keys to navigate.',\n\n /* work:Predictions */\n predictions: 'Predictions',\n all_predictions: 'All predictions',\n learn_more: 'Learn more',\n\n /* work:TaskList */\n tasks_added: {\n zero: 'No tasks added',\n one: '{0} task added',\n two: '{0} tasks added',\n few: '{0} tasks added',\n many: '{0} tasks added',\n other: '{0} tasks added'\n },\n tasks_removed: {\n zero: 'No tasks removed',\n one: '{0} task removed',\n two: '{0} tasks removed',\n few: '{0} tasks removed',\n many: '{0} tasks removed',\n other: '{0} tasks removed'\n },\n\n /* work:InteractionNotification */\n interaction_time_expired: 'The time to accept the interaction has expired.',\n interaction_time_remaining: {\n zero: 'The time to accept the interaction has expired.',\n one: '{0} second remaining to accept the interaction.',\n two: '{0} seconds remaining to accept the interaction.',\n few: '{0} seconds remaining to accept the interaction.',\n many: '{0} seconds remaining to accept the interaction.',\n other: '{0} seconds remaining to accept the interaction.'\n },\n interaction_shortcut_goto_info: 'Press {0} to review.',\n interaction_shortcut_dismiss_info: 'Press {0} to dismiss.',\n shortcut_GoToIncomingInteraction: 'Go to incoming interaction popup.',\n shortcut_DismissIncomingInteraction: 'Dismiss incoming interaction popup.',\n\n /* rte:RichTextEditor */\n rte_heading_style: 'Heading style',\n rte_heading_style_normal: 'Normal',\n rte_heading_style_heading_1: 'Heading 1',\n rte_heading_style_heading_2: 'Heading 2',\n rte_heading_style_heading_3: 'Heading 3',\n rte_heading_style_heading_4: 'Heading 4',\n rte_bold: 'Bold',\n rte_italic: 'Italic',\n rte_strike_through: 'Strike-through',\n rte_cut: 'Cut',\n rte_copy: 'Copy',\n rte_paste: 'Paste',\n rte_bulleted_list: 'Bulleted list',\n rte_numbered_list: 'Numbered list',\n rte_indent: 'Indent',\n rte_unindent: 'Unindent',\n rte_table: 'Table',\n rte_link: 'Link',\n rte_image: 'Insert image',\n rte_invalid_html: 'Invalid HTML',\n rte_insert_field: 'Insert field',\n rte_invalid_url: 'Invalid URL',\n rte_change_text_format: 'Change text format to',\n rte_toggle_unordered_list: 'Toggle unordered list',\n rte_indent_selection: 'Indent selection',\n rte_unindent_selection: 'Unindent selection',\n rte_toolbar_instructions: 'Hit tab to enter the editor toolbar',\n rte_text_formatting_toolbar: 'Text formatting toolbar',\n rte_image_description_info: 'Provides an alternate (ALT) description for the visually impaired',\n rte_image_custom_size: 'Custom size',\n rte_width_in_pixels: 'Width (in pixels)',\n rte_height_in_pixels: 'Height (in pixels)',\n rte_image_settings: 'Image settings',\n rte_image_key_command: 'Press enter to edit the image',\n\n /* social:Email */\n expand_forwarded_message: 'Expand forwarded message',\n collapse_forwarded_message: 'Collapse forwarded message',\n copy_to: 'Copy to',\n subject_label: 'Subject: {0}',\n search_results: 'Search results',\n\n /* social:Feed */\n feed_new_post: 'Start a conversation',\n feed_new_post_submit: 'Post',\n feed_new_comment: 'New comment',\n feed_new_comment_submit: 'Comment',\n feed_attach_files: 'Attach files',\n feed_post_actions_menu: 'More',\n feed_edit_post: 'Edit post',\n feed_edit_comment: 'Edit comment',\n feed_context: 'in {0}',\n feed_liked_by: 'Liked by {0}',\n feed_likes: 'Likes',\n feed_private_post: 'Private post',\n feed_public_post: 'Public post',\n feed_recipients: 'Recipients',\n feed_like_label: 'Like',\n feed_unlike_label: 'Unlike',\n feed_post_likes: {\n zero: 'No likes',\n one: '{0} like',\n two: '{0} likes',\n few: '{0} likes',\n many: '{0} likes',\n other: '{0} likes'\n },\n feed_comment_label: 'Comment',\n feed_post_comments: {\n zero: 'No comments',\n one: '{0} comment',\n two: '{0} comments',\n few: '{0} comments',\n many: '{0} comments',\n other: '{0} comments'\n },\n feed_attachments_added: {\n zero: 'No attachments added',\n one: '{0} attachment added',\n two: '{0} attachments added',\n few: '{0} attachments added',\n many: '{0} attachments added',\n other: '{0} attachments added'\n },\n feed_attachments_removed: {\n zero: 'No attachments removed',\n one: '{0} attachment removed',\n two: '{0} attachments removed',\n few: '{0} attachments removed',\n many: '{0} attachments removed',\n other: '{0} attachments removed'\n },\n feed_post_liked: 'Post has been liked',\n feed_post_deliked: 'Post has been deliked',\n feed_post_removed: 'Post has been removed',\n feed_comment_removed: 'Comment has been removed',\n showing_num_of_num: 'Showing {0} of {1}',\n feed_new_post_added: {\n zero: 'No posts added',\n one: '{0} post added',\n two: '{0} posts added',\n few: '{0} posts added',\n many: '{0} posts added',\n other: '{0} posts added'\n },\n new_item_added: {\n zero: 'No items added',\n one: '{0} new item added',\n two: '{0} new items added',\n few: '{0} new items added',\n many: '{0} new items added',\n other: '{0} new items added'\n },\n loading_post: 'Loading post',\n mention_type: 'Mention a {0}',\n\n /* cs:Chat */\n scroll_to_latest_message: 'Scroll to latest message',\n scroll_to_unread_messages: 'Scroll to unread messages',\n suggested_replies_current_of_total: 'Suggested reply {0} of {1}',\n suggested_replies: 'Suggested replies',\n confidence_percentage: '{0}% confidence',\n next_suggested_reply: 'Next suggested reply',\n prev_suggested_reply: 'Previous suggested reply',\n dismiss_suggested_replies: 'Dismiss suggested replies',\n message_sent: 'Message sent',\n temporarilyUnavailable: 'Temporarily unavailable',\n available: 'Available',\n unavailable: 'Unavailable',\n authenticated: 'Authenticated',\n not_authenticated: 'Not authenticated',\n context: 'Context',\n chat_context: 'Chat context',\n bot: 'Bot',\n is_typing: '{0} is typing {1}',\n chat_message_at_timestamp: '{0} at {1}.',\n sender_replied_message: '{0} replied {1}',\n chat_attachments: '{0} with {1} attachments',\n chat_links: '{0} with {1} links',\n chat_message_status: 'Message {0}',\n opened: 'Opened',\n undeliverable: 'Undeliverable',\n new_message: 'New message',\n attachments: 'attachments',\n attachments_x_of_y: 'attachment {0} of {1}',\n edit_current_template: 'Edit suggested reply {0} of {1}',\n send_current_template: 'Send suggested reply {0} of {1}',\n expand_suggested_replies: 'Expand suggested replies',\n collapse_suggested_replies: 'Collapse suggested replies',\n replies_count: '{0} of {1}',\n no_suggestion: 'No suggestions',\n suggestion: 'Suggestion',\n suggested_reply_copied_to_input_field: 'Suggested reply copied to input field',\n dialogue: 'Dialogue',\n pega_genAI: 'Pega GenAI',\n suggest_reply: 'Suggest reply',\n\n /* cs:Email */\n unique_entities: {\n zero: 'No unique entities',\n one: '{0} unique entity',\n two: '{0} unique entities',\n few: '{0} unique entities',\n many: '{0} unique entities',\n other: '{0} unique entities'\n },\n more_count: '{0} more…',\n other_responses: 'Other responses',\n empty_search: 'Enter a search term',\n new_messages: 'New messages',\n earlier_transcripts: 'Earlier transcripts',\n send: 'Send',\n compose_label: 'Compose',\n save_as_draft: 'Save as draft',\n enter_message: 'Enter message',\n download: 'Download',\n close_chat_utility: 'Close chat utility',\n email_account: 'Email account',\n subject: 'Subject',\n to: 'To',\n from: 'From',\n cc: 'Cc',\n bcc: 'Bcc',\n date: 'Date',\n reply: 'Reply',\n reply_all: 'Reply all',\n response_templates: 'Response templates',\n forward: 'Forward',\n email: 'Email',\n email_message: 'Email message',\n email_filters: 'Email filters',\n unread_email_count: '{0} of {1} unread',\n priority: 'Priority',\n inbox: 'Inbox',\n insert: 'Insert',\n email_add_attachment: 'Add attachment, the maximum number of attachments allowed is {0}.',\n email_disable_attachment:\n 'Adding attachments are disabled, the maximum number of attachments allowed is {0}.',\n email_remove_attachment: 'Remove attachment',\n loading_email: 'Loading email',\n draft: {\n zero: 'No drafts',\n one: '{0} draft',\n two: '{0} drafts',\n few: '{0} drafts',\n many: '{0} drafts',\n other: '{0} drafts'\n },\n undelivered: 'Undelivered',\n drafts: 'drafts',\n unread: 'unread',\n\n /* cs:CallControlPanel */\n call_panel_heading: 'Pega call',\n call_panel_make_new_call: 'Make new call',\n call_panel_agent_status: 'Status',\n call_panel_pause_call_menu_item: 'Pause call',\n call_panel_resume_call_menu_item: 'Resume call',\n call_panel_mute_mic_menu_item: 'Mute microphone',\n call_panel_unmute_mic_menu_item: 'Unmute microphone',\n call_panel_call_on_hold: 'On hold {0}',\n call_panel_consult_call_menu_item: 'Consult',\n call_panel_transfer_call_menu_item: 'Transfer',\n call_panel_menu_item_call_only: 'Call only',\n call_panel_menu_item_call_with_interaction: 'Call and interaction',\n call_panel_send_dtmf_menu_item: 'Send DTMF',\n call_panel_conference_call_menu_item: 'Conference',\n call_panel_hangup_call_menu_item: 'Hang up',\n call_panel_disconnect_participant: 'Disconnect participant',\n call_panel_contacts_add_to_favorites: 'Add to favorites',\n call_panel_contacts_remove_from_favorites: 'Remove from favorites',\n call_panel_contacts_call_button_label: 'Call',\n call_panel_contacts_list_heading: 'Contacts',\n call_panel_contacts_favorites_heading: 'Favorites',\n call_panel_contacts_dial_pad_heading: 'Dial pad',\n call_panel_new_call_heading: 'New call',\n call_panel_interaction_transfer_heading: 'Transfer initiated',\n call_panel_interaction_transfer_complete_button_label: 'Complete transfer',\n call_panel_incoming_call: 'Incoming call…',\n call_panel_answer_call: 'Answer',\n\n call_panel_conference_heading: 'Conference call',\n call_panel_conference_call_and_interactions_heading: 'Conference by call and interaction',\n call_panel_consult_heading: 'Consult by call',\n call_panel_consult_call_and_interactions_heading: 'Consult by call and interaction',\n call_panel_transfer_heading: 'Transfer call',\n call_panel_transfer_call_and_interactions_heading: 'Transfer call and interaction',\n\n call_panel_conference_submit: 'Conference',\n call_panel_transfer_submit: 'Transfer',\n call_panel_consult_submit: 'Consult',\n\n call_panel_handover_reason_label: 'Reason',\n call_panel_handover_to_label: 'To',\n call_panel_handover_comments_label: 'Comments',\n call_panel_handover_call_option_label: 'Call option',\n call_panel_handover_call_only_option: 'Call only',\n call_panel_handover_call_and_interaction_option: 'Call and interaction',\n call_panel_handover_interaction_label: 'Interaction',\n call_panel_merge_call_menu_item: 'Merge',\n call_panel_handoff_call_menu_item: 'Hand off',\n call_panel_send_dtmf_heading: 'Send DTMF',\n call_panel_expand: 'Expand call control panel',\n call_panel_collapse: 'Collapse call control panel',\n call_panel_nav_label: 'Phone panel',\n\n /* cs:DialPad */\n dial_pad_keyboard: 'Dial pad keyboard',\n dial_pad_phone_number_input_label: 'Phone number input',\n dial_pad_call_button_label: 'Call {0}',\n\n /* cs:TaskManager */\n select_multiple: 'Select multiple',\n dismiss_case: 'Dismiss case',\n task_manager_add_case: 'Add case',\n task_manager_wrap_up: 'Wrap up',\n task_manager_cases: 'Cases',\n add_cases: 'Add cases',\n open_cases: 'Open cases',\n resolved_cases: 'Resolved cases',\n no_picker_items: 'No {0}',\n selected_picker_items: 'Selected {0}',\n no_selected_picker_items: 'No selected {0}',\n search_picker_items: 'Search {0}',\n case_picker_close: 'Close case picker',\n case_manager_overflow_menu: 'All cases',\n continue_label: 'Continue',\n continue_label_a11y: 'Continue with {0}',\n review_label: 'Review',\n review_label_a11y: 'Review {0}',\n dismiss_label: 'Dismiss',\n dismiss_label_a11y: 'Dismiss {0}',\n task_manager_picker_add_label: {\n zero: 'No items to add',\n one: 'Add {0} new item',\n two: 'Add {0} new items',\n few: 'Add {0} new items',\n many: 'Add {0} new items',\n other: 'Add {0} new items'\n },\n show_detected_entities: 'Show detected entities',\n nothing_detected_yet: 'Nothing detected yet',\n ai_detected_entities: 'AI detected entities',\n close_conversation: 'Close conversation',\n shortcut_AddTask: 'Open task picker',\n shortcut_WrapUp: 'Wrap up interaction',\n live_transcript: 'Live transcript',\n open_live_transcript: 'Open live transcript',\n close_live_transcript: 'Close live transcript',\n download_live_transcript: 'Download live transcript',\n transcripts: 'Transcripts',\n verbatim: 'Verbatim',\n dialog: 'Dialog',\n download_transcript: 'Download transcript',\n follow_up_tasks: 'Follow-up tasks',\n add_follow_up_task: 'Add follow-up task',\n agents_utterance: \"Agent's commitment in context\",\n detected_entities: 'Detected entities',\n\n /* cs:FollowUpTask */\n due_on: 'Due on {0}',\n\n /* cs:Sentiment */\n sentiment_positive: 'Positive',\n sentiment_negative: 'Negative',\n sentiment_neutral: 'Neutral',\n\n /* cs:IntelligentGuidance */\n no_recommendations: 'No recommendations',\n items_added_to_previous_list: 'Items added to previous list',\n items_added_to_current_list: 'Items added to current list',\n\n /* condition-builder:ConditionBuilder */\n condition_builder_advanced_condition_label: 'Advanced condition',\n condition_builder_advanced_condition_placeholder: 'Advanced condition',\n condition_builder_advanced_mode_button_label: 'Advanced mode',\n condition_builder_basic_mode_button_label: 'Basic mode',\n condition_builder_advanced_mode_button_aria_label: 'Switch to advanced mode',\n condition_builder_basic_mode_button_aria_label: 'Switch to basic mode',\n condition_builder_mode_switch: 'Mode switched',\n condition_builder_advanced_condition_tooltip:\n 'A logical expression representing an advanced condition. Use numbers like 1,2,3,… to represent different condition rows. Use {0} operators and parentheses to construct advanced conditions. Example: {1}',\n condition_builder_condition_select_info_default: 'No selection',\n condition_builder_possible_values_label: 'Values',\n condition_builder_possible_values_error: 'Error retrieving values',\n condition_builder_multi_selection_text_default: 'Select values',\n condition_builder_single_selection_text_default: 'Select value',\n condition_builder_switch_banner_text:\n 'Switching from advanced mode can reset all AND/OR/NOT operators. Do you want to continue?',\n condition_builder_confirm_button_label: 'OK',\n condition_builder_empty_selection_error_text: 'No selection',\n condition_builder_empty_value_text: 'Empty value',\n condition_builder_compare_with: 'Compare with {0}',\n condition_builder_compare_with_another_field: 'Another field',\n condition_builder_compare_with_parameter: 'Parameter',\n condition_builder_compare_with_relative_date: 'Relative date',\n condition_builder_compare_with_text_value: 'Text value',\n condition_builder_compare_with_numeric_value: 'Numeric value',\n condition_builder_compare_with_date_value: 'Date value',\n condition_builder_compare_with_time_value: 'Time value',\n condition_builder_invalid_time_period: 'Invalid time period',\n condition_builder_invalid_relative_date: 'Invalid relative date',\n condition_builder_invalid_value: 'Invalid value',\n condition_builder_invalid_values: 'Invalid values',\n condition_builder_invalid_time: 'Invalid time',\n condition_builder_invalid_date: 'Invalid date',\n condition_builder_invalid_number: 'Invalid number',\n condition_builder_invalid_date_range: 'Invalid date range',\n condition_builder_invalid_time_range: 'Invalid time range',\n condition_builder_invalid_number_range: 'Invalid range',\n condition_builder_select_placeholder: 'Select…',\n condition_builder_hour_number_of_day: '{0} (hour of day)',\n condition_builder_rhs_with_time_only_input: 'Rhs with Time only input',\n condition_builder_rhs_with_date_only_input: 'Rhs with Date only input',\n condition_builder_rhs_with_date_time_input: 'Rhs with Date Time input',\n condition_builder_rhs_with_csv_input: 'Rhs with csv input',\n condition_builder_no_selection: 'No selection',\n condition_builder_enter_csv_placeholder: 'Enter comma separated values',\n condition_builder_day_number_of_month: {\n zero: '{0}th day of the month',\n one: '{0}st day of the month',\n two: '{0}nd day of the month',\n few: '{0}rd day of the month',\n many: '{0}th day of the month',\n other: '{0}th day of the month'\n },\n condition_builder_year: 'Year(s)',\n condition_builder_quarter: 'Quarter(s)',\n condition_builder_month: 'Month(s)',\n condition_builder_week: 'Week(s)',\n condition_builder_day: 'Day(s)',\n condition_builder_hour: 'Hour(s)',\n condition_builder_minute: 'Minute(s)',\n condition_builder_second: 'Second(s)',\n condition_builder_date_function_hour_of_day: 'Hour of day',\n condition_builder_date_function_month_of_year: 'Month of year',\n condition_builder_date_function_day_of_month: 'Day of month',\n condition_builder_date_function_day_of_week: 'Day of week',\n condition_builder_date_part: 'Date part',\n condition_builder_current_second: 'Current second',\n condition_builder_current_minute: 'Current minute',\n condition_builder_current_hour: 'Current hour',\n condition_builder_current_day: 'Current day',\n condition_builder_current_week: 'Current week',\n condition_builder_current_month: 'Current month',\n condition_builder_current_quarter: 'Current quarter',\n condition_builder_current_year: 'Current year',\n condition_builder_last_X_seconds: {\n zero: 'Current second',\n one: 'Last second',\n two: 'Last {0} seconds',\n few: 'Last {0} seconds',\n many: 'Last {0} seconds',\n other: 'Last {0} seconds'\n },\n condition_builder_last_X_minutes: {\n zero: 'Current minute',\n one: 'Last minute',\n two: 'Last {0} minutes',\n few: 'Last {0} minutes',\n many: 'Last {0} minutes',\n other: 'Last {0} minutes'\n },\n condition_builder_last_X_hours: {\n zero: 'Current hour',\n one: 'Last hour',\n two: 'Last {0} hours',\n few: 'Last {0} hours',\n many: 'Last {0} hours',\n other: 'Last {0} hours'\n },\n condition_builder_last_X_days: {\n zero: 'Current day',\n one: 'Last day',\n two: 'Last {0} days',\n few: 'Last {0} days',\n many: 'Last {0} days',\n other: 'Last {0} days'\n },\n condition_builder_last_X_weeks: {\n zero: 'Current week',\n one: 'Last week',\n two: 'Last {0} weeks',\n few: 'Last {0} weeks',\n many: 'Last {0} weeks',\n other: 'Last {0} weeks'\n },\n condition_builder_last_X_months: {\n zero: 'Current month',\n one: 'Last month',\n two: 'Last {0} months',\n few: 'Last {0} months',\n many: 'Last {0} months',\n other: 'Last {0} months'\n },\n condition_builder_last_X_quarters: {\n zero: 'Current quarter',\n one: 'Last quarter',\n two: 'Last {0} quarters',\n few: 'Last {0} quarters',\n many: 'Last {0} quarters',\n other: 'Last {0} quarters'\n },\n condition_builder_last_X_years: {\n zero: 'Current year',\n one: 'Last year',\n two: 'Last {0} years',\n few: 'Last {0} years',\n many: 'Last {0} years',\n other: 'Last {0} years'\n },\n condition_builder_next_X_seconds: {\n zero: 'Current second',\n one: 'Next second',\n two: 'Next {0} seconds',\n few: 'Next {0} seconds',\n many: 'Next {0} seconds',\n other: 'Next {0} seconds'\n },\n condition_builder_next_X_minutes: {\n zero: 'Current minute',\n one: 'Next minute',\n two: 'Next {0} minutes',\n few: 'Next {0} minutes',\n many: 'Next {0} minutes',\n other: 'Next {0} minutes'\n },\n condition_builder_next_X_hours: {\n zero: 'Current hour',\n one: 'Next hour',\n two: 'Next {0} hours',\n few: 'Next {0} hours',\n many: 'Next {0} hours',\n other: 'Next {0} hours'\n },\n condition_builder_next_X_days: {\n zero: 'Current day',\n one: 'Next day',\n two: 'Next {0} days',\n few: 'Next {0} days',\n many: 'Next {0} days',\n other: 'Next {0} days'\n },\n condition_builder_next_X_weeks: {\n zero: 'Current week',\n one: 'Next week',\n two: 'Next {0} weeks',\n few: 'Next {0} weeks',\n many: 'Next {0} weeks',\n other: 'Next {0} weeks'\n },\n condition_builder_next_X_months: {\n zero: 'Current month',\n one: 'Next month',\n two: 'Next {0} months',\n few: 'Next {0} months',\n many: 'Next {0} months',\n other: 'Next {0} months'\n },\n condition_builder_next_X_quarters: {\n zero: 'Current quarter',\n one: 'Next quarter',\n two: 'Next {0} quarters',\n few: 'Next {0} quarters',\n many: 'Next {0} quarters',\n other: 'Next {0} quarters'\n },\n condition_builder_next_X_years: {\n zero: 'Current year',\n one: 'Next year',\n two: 'Next {0} years',\n few: 'Next {0} years',\n many: 'Next {0} years',\n other: 'Next {0} years'\n },\n condition_builder_previous_X_seconds: {\n zero: 'Current second',\n one: 'Previous second',\n two: 'Previous {0} seconds',\n few: 'Previous {0} seconds',\n many: 'Previous {0} seconds',\n other: 'Previous {0} seconds'\n },\n condition_builder_previous_X_minutes: {\n zero: 'Current minute',\n one: 'Previous minute',\n two: 'Previous {0} minutes',\n few: 'Previous {0} minutes',\n many: 'Previous {0} minutes',\n other: 'Previous {0} minutes'\n },\n condition_builder_previous_X_hours: {\n zero: 'Current hour',\n one: 'Previous hour',\n two: 'Previous {0} hours',\n few: 'Previous {0} hours',\n many: 'Previous {0} hours',\n other: 'Previous {0} hours'\n },\n condition_builder_previous_X_days: {\n zero: 'Current day',\n one: 'Previous day',\n two: 'Previous {0} days',\n few: 'Previous {0} days',\n many: 'Previous {0} days',\n other: 'Previous {0} days'\n },\n condition_builder_previous_X_weeks: {\n zero: 'Current week',\n one: 'Previous week',\n two: 'Previous {0} weeks',\n few: 'Previous {0} weeks',\n many: 'Previous {0} weeks',\n other: 'Previous {0} weeks'\n },\n condition_builder_previous_X_months: {\n zero: 'Current month',\n one: 'Previous month',\n two: 'Previous {0} months',\n few: 'Previous {0} months',\n many: 'Previous {0} months',\n other: 'Previous {0} months'\n },\n condition_builder_previous_X_quarters: {\n zero: 'Current quarter',\n one: 'Previous quarter',\n two: 'Previous {0} quarters',\n few: 'Previous {0} quarters',\n many: 'Previous {0} quarters',\n other: 'Previous {0} quarters'\n },\n condition_builder_previous_X_years: {\n zero: 'Current year',\n one: 'Previous year',\n two: 'Previous {0} years',\n few: 'Previous {0} years',\n many: 'Previous {0} years',\n other: 'Previous {0} years'\n },\n condition_builder_time_period_label: 'Time period',\n condition_builder_time_period_last: 'Last',\n condition_builder_time_period_current: 'Current',\n condition_builder_time_period_previous: 'Previous',\n condition_builder_time_period_next: 'Next',\n condition_builder_value_label: 'Value',\n condition_builder_field_label: 'Field',\n condition_builder_comparator_label: 'Conditional operator',\n\n /* condition-builder:PromotedFilters */\n promoted_filters_clear_all_button_label: 'Clear all filters',\n\n /* build:AppShell */\n dev_mode: 'Dev mode',\n expand_navigation: 'Expand navigation',\n collapse_navigation: 'Collapse navigation',\n switch_to: 'Switch to…',\n expand_search: 'Expand search',\n collapse_search: 'Collapse search',\n\n /* build:BranchButton */\n branch_with_no_changes: '{0} with no changes',\n branch_with_no_potential_conflicts: '{0} with no potential conflicts and {1} unmerged changes',\n branch_with_potential_conflicts: '{0} with potential conflicts',\n\n /* build:Lifecycle */\n parallel: 'Parallel',\n stage: 'Stage',\n alternate_stage: 'Alternate stage',\n add_stage: 'Add stage',\n add_process: 'Add process',\n add_alternate_stage: 'Add alternate stage',\n stage_name: '{0} stage',\n process_name: '{0} process',\n step_name: '{0} step',\n item_error: '{0} error',\n step_name_error: '{0} step has configuration error',\n stage_name_error: '{0} stage has configuration error',\n process_name_error: '{0} process has configuration error',\n\n /* build:FlowModeller */\n add_node: 'Add node',\n search_nodes: 'Search nodes',\n delete_step: 'This step has multiple outcomes, are you sure want to delete this step?',\n delete_decision_step:\n 'Select outcome that you want to retain. The remaining highlighted outcomes will be deleted',\n delete_step_title: 'Delete step',\n delete_step_outcome: 'Outcome to keep',\n delete_all_outcomes: 'None (delete all outcomes)',\n delete_step_error: 'This step can\\'t be deleted as the outcome selected has a \"Go to\" step.',\n delete_referenced_step_error:\n 'This step can\\'t be deleted as it is referenced by a \"Go to\" step.',\n delete_connector_error:\n 'Connector cannot be deleted unless Goto step is deleted from all branches',\n\n /* build:Workbench */\n zoom_level: 'Zoom level',\n close_configuration_panel: 'Close configuration panel',\n\n /* build:ObjectSelect */\n clear_object_summary: 'Clear {0} selection',\n create_in_new_tab: 'Create new, opens in new tab',\n\n /* build:ExpressionBuilder */\n expression_editor: 'Expression editor',\n output_parameters: 'Output parameters',\n input_parameters: 'Input parameters',\n\n /* build:MobileBuildSummary */\n no_app_build: 'There is no app build',\n build_app: 'Build app',\n build_in_progress: 'Building…',\n rebuild_app: 'Rebuild app',\n download_app: 'Download app',\n qr_code_not_available: 'No QR code available yet',\n qr_code: 'QR code',\n\n /* wss:AppHeader */\n app_header_notifications_empty: 'No notifications',\n app_header_notifications_loading: 'Loading notifications',\n open_app_header_notifications: 'Open notifications',\n open_app_header_drawer: 'Open navigation menu',\n\n /* tools: PreviewShell */\n preview_frame: 'Preview frame',\n open_in_new_window_text: 'Open in new window',\n more_options: 'More options',\n dev_tools: 'dev tools',\n\n /* tools: DevTools */\n active_session_info: 'Debugging for this session is active in another window',\n continue_debugging: 'Continue debugging',\n\n /* Launchpad: IconTiles */\n action_task: 'Action task',\n task_object: 'Task object',\n view_rule: 'View rule',\n system_rule: 'System rule',\n record_rule: 'Record rule',\n portal_rule: 'Portal rule',\n persona_rule: 'Persona rule',\n permission_rule: 'Permission rule',\n live_data_rule: 'Live data rule',\n integration_system_rule: 'Integration system rule',\n insight_rule: 'Insight rule',\n field_rule: 'Field rule',\n data_page_rule: 'Data page rule',\n connector_rule: 'Connector rule',\n configuration_rule: 'Configuration rule',\n authenticate_rule: 'Authenticate rule',\n when_logic: 'When logic',\n validation_logic: 'Validation logic',\n function_logic: 'Function logic',\n decision_step_logic: 'Decision step logic',\n case_wait: 'Case wait object',\n case_stage: 'Case stage object',\n case_sla: 'Case SLA object',\n case_process: 'Case process object',\n case_go_to: 'Case go-to object',\n case_object: 'Case object',\n set_automation: 'Set automation',\n return_automation: 'Return automation',\n for_each_automation: 'For each automation',\n call_automation: 'Call automation',\n append_automation: 'Append automation',\n automation_object: 'Automation object',\n ai_object: 'AI object'\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-core",
|
|
3
|
-
"version": "7.0.0-build.
|
|
3
|
+
"version": "7.0.0-build.8.0",
|
|
4
4
|
"description": "Cosmos is a visual design system and UI component collection. Its goal is to empower application developers in their pursuit to create engaging and rewarding user experiences.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|