@pega/cosmos-react-core 2.1.4 → 3.0.0-dev.1.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/AppShell/Operator.d.ts.map +1 -1
- package/lib/components/AppShell/Operator.js +1 -1
- package/lib/components/AppShell/Operator.js.map +1 -1
- package/lib/components/Avatar/Avatar.d.ts +5 -1
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +13 -8
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Configuration/Configuration.js +1 -1
- package/lib/components/Configuration/Configuration.js.map +1 -1
- package/lib/components/Number/NumberDisplay.js +1 -1
- package/lib/components/Number/NumberDisplay.js.map +1 -1
- package/lib/hooks/useArrows.d.ts +2 -2
- package/lib/hooks/useArrows.d.ts.map +1 -1
- package/lib/hooks/useArrows.js +19 -12
- package/lib/hooks/useArrows.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +6 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/i18n/default.d.ts +6 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +8 -1
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +12 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/utils/utils.d.ts.map +1 -1
- package/lib/utils/utils.js +3 -1
- package/lib/utils/utils.js.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/Operator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAO,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAA,MAAM,QAAQ;cAQE,SAAS;aACV,aAAa,CAAC,SAAS,CAAC;;
|
|
1
|
+
{"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/Operator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAO,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAA,MAAM,QAAQ;cAQE,SAAS;aACV,aAAa,CAAC,SAAS,CAAC;;8DA+DtC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -21,7 +21,7 @@ const Operator = forwardRef(({ children, actions, popover, as }, ref) => {
|
|
|
21
21
|
if (!navOpen)
|
|
22
22
|
setShowMenu(false);
|
|
23
23
|
}, [navOpen]);
|
|
24
|
-
return (_jsxs(_Fragment, { children: [_jsx(BareButton, { as: as, ref: buttonRef, onClick: () => {
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx(BareButton, { as: as, ref: buttonRef, "aria-expanded": showMenu ? 'true' : 'false', "aria-haspopup": 'menu', onClick: () => {
|
|
25
25
|
setShowMenu(cur => !cur);
|
|
26
26
|
}, onKeyDown: (e) => {
|
|
27
27
|
if (e.key === 'Escape')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../src/components/AppShell/Operator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAG7E,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,IAAI,MA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AC,EACD,SAAS,EAAE,CAAC,CAAgB,EAAE,EAAE;oBAC9B,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ;wBAAE,WAAW,CAAC,KAAK,CAAC,CAAC;gBAC7C,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;oBACX,WAAW,CAAC,KAAK,CAAC,CAAC;gBACrB,CAAC,YAEA,QAAQ,WACE,EACb,KAAC,OAAO,OAAK,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,OAAO,YAC7D,KAAC,IAAI,IACH,cAAc,EAAE,SAAS,CAAC,OAAO,IAAI,SAAS,EAC9C,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,iBAAiB;oBACxB;;uBAEG;oBACH,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;wBACpB,IACG,CAAgF;6BAC9E,MAAM,GAAG,CAAC,EACb;4BACA,WAAW,CAAC,KAAK,CAAC,CAAC;yBACpB;oBACH,CAAC,WACD,WACM,YACT,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, useState, useEffect, useContext, useMemo } from 'react';\nimport type { Ref, ReactNode, MouseEvent, UIEvent } from 'react';\n\nimport BareButton from '../Button/BareButton';\nimport Popover from '../Popover';\nimport type { PopoverProps } from '../Popover';\nimport Menu from '../Menu';\nimport type { AcceptedMouseEventElement } from '../Menu/Menu.types';\nimport { useConsolidatedRef } from '../../hooks';\nimport type { AsProp, OmitStrict } from '../../types';\n\nimport AppShellContext from './AppShellContext';\nimport { OperatorProps } from './AppShell.types';\n\nconst Operator = forwardRef(\n (\n {\n children,\n actions,\n popover,\n as\n }: {\n children: ReactNode;\n actions: OperatorProps['actions'];\n popover?: OmitStrict<PopoverProps, 'show' | 'target' | 'children'>;\n } & AsProp,\n ref: Ref<HTMLButtonElement> | undefined\n ) => {\n const { navOpen } = useContext(AppShellContext);\n const buttonRef = useConsolidatedRef(ref);\n\n const operatorMenuItems = useMemo(() => {\n return actions.flat().map(({ id, text, onClick: click, ...rest }) => ({\n id,\n primary: text,\n onClick: click,\n ...rest\n }));\n }, [actions]);\n\n const [showMenu, setShowMenu] = useState(false);\n\n useEffect(() => {\n if (!navOpen) setShowMenu(false);\n }, [navOpen]);\n\n return (\n <>\n <BareButton\n as={as}\n ref={buttonRef}\n aria-expanded={showMenu ? 'true' : 'false'}\n aria-haspopup='menu'\n onClick={() => {\n setShowMenu(cur => !cur);\n }}\n onKeyDown={(e: KeyboardEvent) => {\n if (e.key === 'Escape') setShowMenu(false);\n }}\n onBlur={() => {\n setShowMenu(false);\n }}\n >\n {children}\n </BareButton>\n <Popover {...popover} show={showMenu} target={buttonRef.current}>\n <Menu\n focusControlEl={buttonRef.current ?? undefined}\n mode='action'\n items={operatorMenuItems}\n /**\n * @see {@link MenuButton} implementation for explanation of conditions. This is in essence duplicated.\n */\n onItemClick={(_, e) => {\n if (\n (e as MouseEvent<AcceptedMouseEventElement> & UIEvent<AcceptedMouseEventElement>)\n .detail > 0\n ) {\n setShowMenu(false);\n }\n }}\n />\n </Popover>\n </>\n );\n }\n);\n\nexport default Operator;\n"]}
|
|
@@ -7,6 +7,10 @@ export interface AvatarProps extends BaseProps, NoChildrenProp {
|
|
|
7
7
|
imageSrc?: string;
|
|
8
8
|
/** An icon to render as the content of the avatar. imageSrc will take precedence if passed. */
|
|
9
9
|
icon?: string;
|
|
10
|
+
/** Optional color for the icon to be rendered */
|
|
11
|
+
color?: string;
|
|
12
|
+
/** Optional background color for the avatar. Will be auto computed if not passed */
|
|
13
|
+
backgroundColor?: string;
|
|
10
14
|
/**
|
|
11
15
|
* Shape of the Avatar.
|
|
12
16
|
* @default "circle"
|
|
@@ -16,7 +20,7 @@ export interface AvatarProps extends BaseProps, NoChildrenProp {
|
|
|
16
20
|
* Avatar size.
|
|
17
21
|
* @default "m"
|
|
18
22
|
*/
|
|
19
|
-
size?: 's' | 'm' | 'l';
|
|
23
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
20
24
|
/** If defined, will render status icon on the avatar. */
|
|
21
25
|
status?: 'active';
|
|
22
26
|
/** Optional error handler in the event an image fails to load. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,GAAG,EAEH,cAAc,EAIf,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,UAAU,EACX,MAAM,aAAa,CAAC;AAOrB,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,cAAc;IAC5D,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,GAAG,EAEH,cAAc,EAIf,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,UAAU,EACX,MAAM,aAAa,CAAC;AAOrB,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,cAAc;IAC5D,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;IAC9B,yDAAyD;IACzD,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,gBAAgB,CAAC,CAAC;CAC9C;AAED,aAAK,uBAAuB,GAAG,iBAAiB,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAuBhF,eAAO,MAAM,iBAAiB,mKAM7B,CAAC;AAEF,eAAO,MAAM,YAAY;;;SAuExB,CAAC;AAIF,eAAO,MAAM,YAAY,4IA0BvB,CAAC;AAmBH;;;;GAIG;AACH,QAAA,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,GAAG,YAAY,CAyDzD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -11,17 +11,20 @@ import { tryCatch } from '../../utils';
|
|
|
11
11
|
const sizeToRem = {
|
|
12
12
|
s: 1,
|
|
13
13
|
m: 2,
|
|
14
|
-
l: 2.5
|
|
14
|
+
l: 2.5,
|
|
15
|
+
xl: 4
|
|
15
16
|
};
|
|
16
17
|
const fontSizeToRem = {
|
|
17
18
|
s: 0.5625,
|
|
18
19
|
m: 0.8125,
|
|
19
|
-
l: 1
|
|
20
|
+
l: 1,
|
|
21
|
+
xl: 1.5
|
|
20
22
|
};
|
|
21
23
|
const sizeToBorderRadius = {
|
|
22
24
|
s: 0.25,
|
|
23
25
|
m: 0.5,
|
|
24
|
-
l: 1
|
|
26
|
+
l: 1,
|
|
27
|
+
xl: 1
|
|
25
28
|
};
|
|
26
29
|
export const StyledAvatarImage = styled(Image) `
|
|
27
30
|
min-height: 100%;
|
|
@@ -30,16 +33,18 @@ export const StyledAvatarImage = styled(Image) `
|
|
|
30
33
|
object-fit: cover;
|
|
31
34
|
border-radius: inherit;
|
|
32
35
|
`;
|
|
33
|
-
export const StyledAvatar = styled.div(({ hasBrokenImage, hasSrc, size, shape, theme: { base: { palette: { 'foreground-color': foregroundColor, 'primary-background': primaryBackground } }, components: { avatar } } }) => {
|
|
36
|
+
export const StyledAvatar = styled.div(({ hasBrokenImage, hasSrc, size, shape, color, backgroundColor, theme: { base: { palette: { 'foreground-color': foregroundColor, 'primary-background': primaryBackground } }, components: { avatar } } }) => {
|
|
34
37
|
const sizeRem = sizeToRem[size];
|
|
35
38
|
const fontSize = fontSizeToRem[size];
|
|
36
|
-
|
|
39
|
+
let bgColor = hasSrc && !hasBrokenImage ? primaryBackground : backgroundColor || avatar['background-color'];
|
|
40
|
+
if (color && !backgroundColor && !(hasSrc && !hasBrokenImage))
|
|
41
|
+
bgColor = tryCatch(() => readableColor(color), () => avatar['background-color']);
|
|
37
42
|
const shadowColor = tryCatch(() => rgba(foregroundColor, 0.1));
|
|
38
|
-
const
|
|
43
|
+
const iconColor = color || tryCatch(() => readableColor(bgColor));
|
|
39
44
|
return css `
|
|
40
45
|
position: relative;
|
|
41
|
-
background-color: ${
|
|
42
|
-
color: ${
|
|
46
|
+
background-color: ${bgColor};
|
|
47
|
+
color: ${iconColor};
|
|
43
48
|
width: ${sizeRem}rem;
|
|
44
49
|
height: ${sizeRem}rem;
|
|
45
50
|
min-width: ${sizeRem}rem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAIV,QAAQ,EACR,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,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B,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;oBACX,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBAC3B,CAAC,WACD,CACH,CAAC;SACH;QACD,OAAO,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC;IAE/D,OAAO,CACL,MAAC,YAAY,IACX,IAAI,EAAC,KAAK,EACV,MAAM,EAAE,CAAC,CAAC,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,gBACI,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KAC7D,SAAS,aAEZ,OAAO,EACP,MAAM,KAAK,QAAQ,IAAI,KAAC,KAAK,IAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,SAAS,WAAG,YACpE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import {\n FunctionComponent,\n forwardRef,\n Ref,\n PropsWithoutRef,\n SyntheticEvent,\n useState,\n useEffect,\n useMemo\n} from 'react';\nimport styled, { css } from 'styled-components';\nimport { readableColor, rgba } from 'polished';\n\nimport Image from '../Image';\nimport {\n BaseProps,\n ForwardProps,\n PropsWithDefaults,\n NoChildrenProp,\n OmitStrict\n} from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Icon, { StyledIcon } from '../Icon';\nimport { Alert } from '../Badges';\nimport { useI18n } from '../../hooks';\nimport { tryCatch } from '../../utils';\n\nexport interface AvatarProps extends BaseProps, NoChildrenProp {\n /** The name of the identity the Avatar represents. */\n name: string;\n /** Content of the Avatar as an image source url. */\n imageSrc?: string;\n /** An icon to render as the content of the avatar. imageSrc will take precedence if passed. */\n icon?: string;\n /**\n * Shape of the Avatar.\n * @default \"circle\"\n */\n shape?: 'circle' | 'squircle';\n /**\n * Avatar size.\n * @default \"m\"\n */\n size?: 's' | 'm' | 'l';\n /** If defined, will render status icon on the avatar. */\n status?: 'active';\n /** Optional error handler in the event an image fails to load. */\n onImageError?: (err: SyntheticEvent<HTMLImageElement>) => void;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement | HTMLImageElement>;\n}\n\ntype AvatarPropsWithDefaults = PropsWithDefaults<AvatarProps, 'shape' | 'size'>;\n\nconst sizeToRem = {\n s: 1,\n m: 2,\n l: 2.5\n};\n\nconst fontSizeToRem = {\n s: 0.5625,\n m: 0.8125,\n l: 1\n};\n\nconst sizeToBorderRadius = {\n s: 0.25,\n m: 0.5,\n l: 1\n};\n\nexport const StyledAvatarImage = styled(Image)`\n min-height: 100%;\n min-width: 100%;\n aspect-ratio: 1 / 1;\n object-fit: cover;\n border-radius: inherit;\n`;\n\nexport const StyledAvatar = styled.div<\n OmitStrict<AvatarPropsWithDefaults, 'name' | 'children'> & {\n hasSrc?: boolean;\n hasBrokenImage?: boolean;\n }\n>(\n ({\n hasBrokenImage,\n hasSrc,\n size,\n shape,\n theme: {\n base: {\n palette: { 'foreground-color': foregroundColor, 'primary-background': primaryBackground }\n },\n components: { avatar }\n }\n }) => {\n const sizeRem = sizeToRem[size];\n const fontSize = fontSizeToRem[size];\n const backgroundColor =\n hasSrc && !hasBrokenImage ? primaryBackground : avatar['background-color'];\n const shadowColor = tryCatch(() => rgba(foregroundColor, 0.1));\n const color = tryCatch(() => readableColor(avatar['background-color']));\n\n return css`\n position: relative;\n background-color: ${backgroundColor};\n color: ${color};\n width: ${sizeRem}rem;\n height: ${sizeRem}rem;\n min-width: ${sizeRem}rem;\n min-height: ${sizeRem}rem;\n font-size: ${fontSize}rem;\n text-transform: uppercase;\n line-height: ${sizeRem}rem;\n text-align: center;\n vertical-align: top;\n display: inline-block;\n border-radius: 100%;\n user-select: none;\n -webkit-user-select: none;\n\n ${shape === 'squircle' &&\n css`\n border-radius: calc(${sizeToBorderRadius[size]} * ${avatar['border-radius']});\n `}\n\n ${StyledIcon} {\n width: 50%;\n height: 100%;\n vertical-align: initial;\n }\n\n ::after {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n box-shadow: inset 0 0 0 0.0625rem ${shadowColor};\n }\n `;\n }\n);\n\nStyledAvatar.defaultProps = defaultThemeProp;\n\nexport const StyledStatus = styled.div<Pick<AvatarPropsWithDefaults, 'size'>>(({ size, theme }) => {\n /** Scales alert badge dimensions based on size of avatar */\n const sizeDimensions = (0.625 * sizeToRem[size]) / sizeToRem.m;\n\n return css`\n position: absolute;\n height: ${sizeDimensions}rem;\n width: ${sizeDimensions}rem;\n inset-block-end: 0;\n inset-inline-end: 0;\n z-index: 1;\n animation: pop calc(${theme.base.animation.speed} * 2) cubic-bezier(1, 1.65, 0.3, 1.24);\n\n @keyframes pop {\n 0% {\n opacity: 0;\n transform: scale(0);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n }\n }\n `;\n});\n\nStyledStatus.defaultProps = defaultThemeProp;\n\n/**\n * Helper function to construct a two or one letter initial from the title prop.\n * This text will be displayed if no valid image source is provided.\n * @param name\n * @param size\n */\nconst getInitials = (name: AvatarProps['name'], size: AvatarProps['size']) => {\n const words = name.split(' ');\n const firstInitial = words[0].slice(0, 1);\n\n return words.length === 1 || size === 's'\n ? firstInitial\n : `${firstInitial}${words[1].slice(0, 1)}`;\n};\n\n/**\n * Generally, avatars are used to distinguish between different operators and\n * objects when they are shown in a list or in a small space. Users of applications\n * can upload a custom avatar of their choice.\n */\nconst Avatar: FunctionComponent<AvatarProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<AvatarProps>, ref: Ref<HTMLDivElement | HTMLImageElement>) => {\n const {\n shape = 'circle',\n size = 'm',\n imageSrc,\n icon,\n name,\n status,\n onImageError,\n ...restProps\n } = props;\n const [hasBrokenImage, setHasBrokenImage] = useState<undefined | boolean>();\n const t = useI18n();\n\n useEffect(() => {\n setHasBrokenImage(undefined);\n }, [imageSrc]);\n\n const content = useMemo(() => {\n if (icon) {\n return <Icon name={icon} />;\n }\n if (imageSrc && !hasBrokenImage) {\n return (\n <StyledAvatarImage\n src={imageSrc}\n alt={name}\n onError={(e: SyntheticEvent<HTMLImageElement>) => {\n setHasBrokenImage(true);\n onImageError?.(e);\n }}\n onLoad={() => {\n setHasBrokenImage(false);\n }}\n />\n );\n }\n return getInitials(name, size);\n }, [imageSrc, name, size, icon, hasBrokenImage, onImageError]);\n\n return (\n <StyledAvatar\n role='img'\n hasSrc={!!imageSrc}\n hasBrokenImage={hasBrokenImage}\n shape={shape}\n size={size}\n ref={ref}\n aria-label={`${name}${status ? ` ${t('status')} ${status}` : ''}`}\n {...restProps}\n >\n {content}\n {status === 'active' && <Alert as={StyledStatus} size={size} variant='success' />}\n </StyledAvatar>\n );\n }\n);\n\nexport default Avatar;\n"]}
|
|
1
|
+
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAIV,QAAQ,EACR,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,KAAK,MAAM,UAAU,CAAC;AAQ7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,E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CAAC,KAAK,CAAC,CAAC;gBAC3B,CAAC,WACD,CACH,CAAC;SACH;QACD,OAAO,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC;IAE/D,OAAO,CACL,MAAC,YAAY,IACX,IAAI,EAAC,KAAK,EACV,MAAM,EAAE,CAAC,CAAC,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,gBACI,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,KAC7D,SAAS,aAEZ,OAAO,EACP,MAAM,KAAK,QAAQ,IAAI,KAAC,KAAK,IAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,SAAS,WAAG,YACpE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import {\n FunctionComponent,\n forwardRef,\n Ref,\n PropsWithoutRef,\n SyntheticEvent,\n useState,\n useEffect,\n useMemo\n} from 'react';\nimport styled, { css } from 'styled-components';\nimport { readableColor, rgba } from 'polished';\n\nimport Image from '../Image';\nimport {\n BaseProps,\n ForwardProps,\n PropsWithDefaults,\n NoChildrenProp,\n OmitStrict\n} from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Icon, { StyledIcon } from '../Icon';\nimport { Alert } from '../Badges';\nimport { useI18n } from '../../hooks';\nimport { tryCatch } from '../../utils';\n\nexport interface AvatarProps extends BaseProps, NoChildrenProp {\n /** The name of the identity the Avatar represents. */\n name: string;\n /** Content of the Avatar as an image source url. */\n imageSrc?: string;\n /** An icon to render as the content of the avatar. imageSrc will take precedence if passed. */\n icon?: string;\n /** Optional color for the icon to be rendered */\n color?: string;\n /** Optional background color for the avatar. Will be auto computed if not passed */\n backgroundColor?: string;\n /**\n * Shape of the Avatar.\n * @default \"circle\"\n */\n shape?: 'circle' | 'squircle';\n /**\n * Avatar size.\n * @default \"m\"\n */\n size?: 's' | 'm' | 'l' | 'xl';\n /** If defined, will render status icon on the avatar. */\n status?: 'active';\n /** Optional error handler in the event an image fails to load. */\n onImageError?: (err: SyntheticEvent<HTMLImageElement>) => void;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement | HTMLImageElement>;\n}\n\ntype AvatarPropsWithDefaults = PropsWithDefaults<AvatarProps, 'shape' | 'size'>;\n\nconst sizeToRem = {\n s: 1,\n m: 2,\n l: 2.5,\n xl: 4\n};\n\nconst fontSizeToRem = {\n s: 0.5625,\n m: 0.8125,\n l: 1,\n xl: 1.5\n};\n\nconst sizeToBorderRadius = {\n s: 0.25,\n m: 0.5,\n l: 1,\n xl: 1\n};\n\nexport const StyledAvatarImage = styled(Image)`\n min-height: 100%;\n min-width: 100%;\n aspect-ratio: 1 / 1;\n object-fit: cover;\n border-radius: inherit;\n`;\n\nexport const StyledAvatar = styled.div<\n OmitStrict<AvatarPropsWithDefaults, 'name' | 'children'> & {\n hasSrc?: boolean;\n hasBrokenImage?: boolean;\n }\n>(\n ({\n hasBrokenImage,\n hasSrc,\n size,\n shape,\n color,\n backgroundColor,\n theme: {\n base: {\n palette: { 'foreground-color': foregroundColor, 'primary-background': primaryBackground }\n },\n components: { avatar }\n }\n }) => {\n const sizeRem = sizeToRem[size];\n const fontSize = fontSizeToRem[size];\n let bgColor =\n hasSrc && !hasBrokenImage ? primaryBackground : backgroundColor || avatar['background-color'];\n if (color && !backgroundColor && !(hasSrc && !hasBrokenImage))\n bgColor = tryCatch(\n () => readableColor(color),\n () => avatar['background-color']\n );\n const shadowColor = tryCatch(() => rgba(foregroundColor, 0.1));\n const iconColor = color || tryCatch(() => readableColor(bgColor));\n\n return css`\n position: relative;\n background-color: ${bgColor};\n color: ${iconColor};\n width: ${sizeRem}rem;\n height: ${sizeRem}rem;\n min-width: ${sizeRem}rem;\n min-height: ${sizeRem}rem;\n font-size: ${fontSize}rem;\n text-transform: uppercase;\n line-height: ${sizeRem}rem;\n text-align: center;\n vertical-align: top;\n display: inline-block;\n border-radius: 100%;\n user-select: none;\n -webkit-user-select: none;\n\n ${shape === 'squircle' &&\n css`\n border-radius: calc(${sizeToBorderRadius[size]} * ${avatar['border-radius']});\n `}\n\n ${StyledIcon} {\n width: 50%;\n height: 100%;\n vertical-align: initial;\n }\n\n ::after {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n box-shadow: inset 0 0 0 0.0625rem ${shadowColor};\n }\n `;\n }\n);\n\nStyledAvatar.defaultProps = defaultThemeProp;\n\nexport const StyledStatus = styled.div<Pick<AvatarPropsWithDefaults, 'size'>>(({ size, theme }) => {\n /** Scales alert badge dimensions based on size of avatar */\n const sizeDimensions = (0.625 * sizeToRem[size]) / sizeToRem.m;\n\n return css`\n position: absolute;\n height: ${sizeDimensions}rem;\n width: ${sizeDimensions}rem;\n inset-block-end: 0;\n inset-inline-end: 0;\n z-index: 1;\n animation: pop calc(${theme.base.animation.speed} * 2) cubic-bezier(1, 1.65, 0.3, 1.24);\n\n @keyframes pop {\n 0% {\n opacity: 0;\n transform: scale(0);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n }\n }\n `;\n});\n\nStyledStatus.defaultProps = defaultThemeProp;\n\n/**\n * Helper function to construct a two or one letter initial from the title prop.\n * This text will be displayed if no valid image source is provided.\n * @param name\n * @param size\n */\nconst getInitials = (name: AvatarProps['name'], size: AvatarProps['size']) => {\n const words = name.split(' ');\n const firstInitial = words[0].slice(0, 1);\n\n return words.length === 1 || size === 's'\n ? firstInitial\n : `${firstInitial}${words[1].slice(0, 1)}`;\n};\n\n/**\n * Generally, avatars are used to distinguish between different operators and\n * objects when they are shown in a list or in a small space. Users of applications\n * can upload a custom avatar of their choice.\n */\nconst Avatar: FunctionComponent<AvatarProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<AvatarProps>, ref: Ref<HTMLDivElement | HTMLImageElement>) => {\n const {\n shape = 'circle',\n size = 'm',\n imageSrc,\n icon,\n name,\n status,\n onImageError,\n ...restProps\n } = props;\n const [hasBrokenImage, setHasBrokenImage] = useState<undefined | boolean>();\n const t = useI18n();\n\n useEffect(() => {\n setHasBrokenImage(undefined);\n }, [imageSrc]);\n\n const content = useMemo(() => {\n if (icon) {\n return <Icon name={icon} />;\n }\n if (imageSrc && !hasBrokenImage) {\n return (\n <StyledAvatarImage\n src={imageSrc}\n alt={name}\n onError={(e: SyntheticEvent<HTMLImageElement>) => {\n setHasBrokenImage(true);\n onImageError?.(e);\n }}\n onLoad={() => {\n setHasBrokenImage(false);\n }}\n />\n );\n }\n return getInitials(name, size);\n }, [imageSrc, name, size, icon, hasBrokenImage, onImageError]);\n\n return (\n <StyledAvatar\n role='img'\n hasSrc={!!imageSrc}\n hasBrokenImage={hasBrokenImage}\n shape={shape}\n size={size}\n ref={ref}\n aria-label={`${name}${status ? ` ${t('status')} ${status}` : ''}`}\n {...restProps}\n >\n {content}\n {status === 'active' && <Alert as={StyledStatus} size={size} variant='success' />}\n </StyledAvatar>\n );\n }\n);\n\nexport default Avatar;\n"]}
|
|
@@ -25,7 +25,7 @@ if (windowIsAvailable) {
|
|
|
25
25
|
if (!window[metaKey]) {
|
|
26
26
|
window[metaKey] = [];
|
|
27
27
|
}
|
|
28
|
-
window[metaKey].push({ version: '
|
|
28
|
+
window[metaKey].push({ version: '3.0.0-dev.1.0' });
|
|
29
29
|
}
|
|
30
30
|
const Configuration = ({ context = ConfigurationContext, children, locale, direction, translations: customTranslations, theme, disableDefaultFontLoading, styleSheetTarget, portalTarget, overrideMap, renderNativeControls }) => {
|
|
31
31
|
const ctx = useContext(context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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AAe,WAAiB,WAC7C,CACjC,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,YAAY,CAAC;AAE1C,eAAe,aAAa,CAAC","sourcesContent":["import {\n createContext,\n useContext,\n FunctionComponent,\n ComponentType,\n ReactNode,\n useMemo,\n useState,\n useEffect,\n Context\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { ThemeProvider, StyleSheetManager } from 'styled-components';\n\nimport { GlobalStyle } from '../../styles';\nimport {\n ThemeMachine,\n BaseThemeMachine,\n DefaultSettableTheme,\n DefaultThemeDefinition\n} from '../../theme';\nimport {\n createTranslationPack,\n Translation,\n TranslationPack,\n DefaultTranslation,\n direction as directionOfLocale\n} from '../../i18n';\nimport { FileInputProps } from '../File';\nimport { windowIsAvailable, navigatorIsAvailable, documentIsAvailable } from '../../utils';\n\nexport interface ConfigurationProps {\n /**\n * Any components or nodes that should be impacted by the settings applied by this Configuration component.\n */\n children: ReactNode;\n /**\n * Context to read previous configuration values from.\n */\n context?: Context<ConfigurationContextValue>;\n /**\n * User locale as defined in [BCP-47](https://www.techonthenet.com/js/language_tags.php).\n */\n locale?: string;\n /**\n * Override rendering direction of the document. Direction will be based on the locale if now provided.\n */\n direction?: 'ltr' | 'rtl';\n /**\n * Object with (partial) translations.\n */\n translations?: Translation;\n /**\n * Theme object used to override any or all Cosmos theme properties.\n */\n theme?: DefaultSettableTheme;\n /**\n * Disables loading Open Sans from Google Fonts. Only takes effect on the root configuration.\n */\n disableDefaultFontLoading?: boolean;\n /**\n * Target element for loading styles related to `styled-components`.\n */\n styleSheetTarget?: HTMLElement;\n /**\n * Target element for rendering a `ReactDOM` portal.\n */\n portalTarget?: Element;\n /**\n * Override map to replace Cosmos components.\n */\n overrideMap?: {\n FileInput?: ComponentType<FileInputProps>;\n };\n /**\n * Use native HTML5 controls for inputs instead of rich ones.\n * @default false\n */\n renderNativeControls?: boolean;\n}\n\nconst initializedKey = Symbol.for('@pega/cosmos-react-core.configuration.initialized');\n\nexport interface ConfigurationContextValue {\n [initializedKey]: boolean;\n locale: string;\n direction: ConfigurationProps['direction'];\n translations: TranslationPack;\n themeMachine: ThemeMachine<DefaultThemeDefinition>;\n styleSheetTarget?: HTMLElement;\n portalTarget?: Element;\n overrideMap: NonNullable<ConfigurationProps['overrideMap']>;\n renderNativeControls: boolean;\n}\n\nconst defaultProps: Partial<ConfigurationProps> = {};\nconst defaultLocale = navigatorIsAvailable ? navigator.language : 'en';\n\nexport const ConfigurationContext = createContext<ConfigurationContextValue>({\n [initializedKey]: false,\n locale: defaultLocale,\n direction: directionOfLocale(defaultLocale),\n translations: DefaultTranslation,\n themeMachine: BaseThemeMachine,\n styleSheetTarget: documentIsAvailable ? document.head : undefined,\n portalTarget: documentIsAvailable ? document.body : undefined,\n overrideMap: {},\n renderNativeControls: false\n});\n\nconst metaKey = Symbol.for('@pega/cosmos-react-core.metadata');\n\ninterface CosmosMetadata {\n version: string;\n}\n\ndeclare global {\n interface Window {\n [metaKey]: CosmosMetadata[];\n }\n}\n\nif (windowIsAvailable) {\n if (!window[metaKey]) {\n window[metaKey] = [];\n }\n\n window[metaKey].push({ version: '3.0.0-dev.1.0' });\n}\n\nconst Configuration: FunctionComponent<ConfigurationProps> = ({\n context = ConfigurationContext,\n children,\n locale,\n direction,\n translations: customTranslations,\n theme,\n disableDefaultFontLoading,\n styleSheetTarget,\n portalTarget,\n overrideMap,\n renderNativeControls\n}: ConfigurationProps) => {\n const ctx = useContext(context);\n const themeMachine = theme\n ? new ThemeMachine<DefaultThemeDefinition>({ theme, parent: ctx.themeMachine })\n : ctx.themeMachine;\n const translations = useMemo(\n () => createTranslationPack({ ...ctx.translations, ...customTranslations }),\n [ctx.translations, customTranslations]\n );\n\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n setMounted(true);\n }, []);\n\n const wrappedChildren = ctx[initializedKey] ? (\n children\n ) : (\n <StyleSheetManager disableVendorPrefixes target={styleSheetTarget ?? ctx.styleSheetTarget}>\n <>\n {!disableDefaultFontLoading &&\n mounted &&\n documentIsAvailable &&\n createPortal(\n <link\n rel='stylesheet'\n href='https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap'\n />,\n document.head\n )}\n <GlobalStyle />\n {children}\n </>\n </StyleSheetManager>\n );\n return (\n <ConfigurationContext.Provider\n value={{\n locale: locale ?? ctx.locale,\n direction: direction ?? (locale !== undefined ? directionOfLocale(locale) : ctx.direction),\n translations,\n themeMachine,\n [initializedKey]: true,\n styleSheetTarget: styleSheetTarget ?? ctx.styleSheetTarget,\n portalTarget: portalTarget ?? ctx.portalTarget,\n overrideMap: overrideMap ? { ...ctx.overrideMap, ...overrideMap } : ctx.overrideMap,\n renderNativeControls: renderNativeControls ?? ctx.renderNativeControls\n }}\n >\n <ThemeProvider theme={themeMachine.theme}>{wrappedChildren}</ThemeProvider>\n </ConfigurationContext.Provider>\n );\n};\n\nConfiguration.defaultProps = defaultProps;\n\nexport default Configuration;\n"]}
|
|
@@ -6,7 +6,7 @@ import { NUMBER_MAX_DECIMAL_PLACES } from './NumberInput.types';
|
|
|
6
6
|
const NumberDisplay = forwardRef(({ value = '', unit = '', unitPlacement = 'after', formattingOptions = {}, ...restProps }, ref) => {
|
|
7
7
|
const { locale } = useConfiguration();
|
|
8
8
|
const { showDecimal = true, numberOfDecimals = NUMBER_MAX_DECIMAL_PLACES, showGroupSeparators = true } = formattingOptions;
|
|
9
|
-
return (_jsx("span", { ref: ref, ...restProps, children: value ? (`${unit && unitPlacement === 'before' ?
|
|
9
|
+
return (_jsx("span", { ref: ref, ...restProps, children: value ? (`${unit && unitPlacement === 'before' ? unit : ''}${getFormattedValue(!showDecimal ? getInteger(value) : value, locale, showGroupSeparators, numberOfDecimals)}${unit && unitPlacement === 'after' ? unit : ''}`) : (_jsx("span", { "aria-hidden": 'true', children: "\u2013\u2013" }, void 0)) }, void 0));
|
|
10
10
|
});
|
|
11
11
|
export default NumberDisplay;
|
|
12
12
|
//# sourceMappingURL=NumberDisplay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberDisplay.js","sourceRoot":"","sources":["../../../src/components/Number/NumberDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA2C,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA8BhE,MAAM,aAAa,GAAyD,UAAU,CACpF,CACE,EACE,KAAK,GAAG,EAAE,EACV,IAAI,GAAG,EAAE,EACT,aAAa,GAAG,OAAO,EACvB,iBAAiB,GAAG,EAAE,EACtB,GAAG,SAAS,EACwB,EACtC,GAA8B,EAC9B,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACtC,MAAM,EACJ,WAAW,GAAG,IAAI,EAClB,gBAAgB,GAAG,yBAAyB,EAC5C,mBAAmB,GAAG,IAAI,EAC3B,GAAG,iBAAiB,CAAC;IAEtB,OAAO,CACL,eAAM,GAAG,EAAE,GAAG,KAAM,SAAS,YAC1B,KAAK,CAAC,CAAC,CAAC,CACP,GAAG,IAAI,IAAI,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"NumberDisplay.js","sourceRoot":"","sources":["../../../src/components/Number/NumberDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA2C,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA8BhE,MAAM,aAAa,GAAyD,UAAU,CACpF,CACE,EACE,KAAK,GAAG,EAAE,EACV,IAAI,GAAG,EAAE,EACT,aAAa,GAAG,OAAO,EACvB,iBAAiB,GAAG,EAAE,EACtB,GAAG,SAAS,EACwB,EACtC,GAA8B,EAC9B,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACtC,MAAM,EACJ,WAAW,GAAG,IAAI,EAClB,gBAAgB,GAAG,yBAAyB,EAC5C,mBAAmB,GAAG,IAAI,EAC3B,GAAG,iBAAiB,CAAC;IAEtB,OAAO,CACL,eAAM,GAAG,EAAE,GAAG,KAAM,SAAS,YAC1B,KAAK,CAAC,CAAC,CAAC,CACP,GAAG,IAAI,IAAI,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,iBAAiB,CACnE,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EACxC,MAAM,EACN,mBAAmB,EACnB,gBAAgB,CACjB,GAAG,IAAI,IAAI,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACpD,CAAC,CAAC,CAAC,CACF,8BAAkB,MAAM,qCAAsB,CAC/C,WACI,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, PropsWithoutRef, Ref } from 'react';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp } from '../../types';\nimport { useConfiguration } from '../../hooks';\n\nimport { getFormattedValue, getInteger } from './utils';\nimport { NUMBER_MAX_DECIMAL_PLACES } from './NumberInput.types';\n\nexport interface NumberDisplayProps extends BaseProps, NoChildrenProp {\n /** Number value */\n value?: string;\n /** Unit to be included in the text, for example '%' */\n unit?: string;\n /**\n * Determines the placement of the unit.\n * @default \"after\"\n */\n unitPlacement?: 'before' | 'after';\n formattingOptions?: {\n /** Determines whether decimal places should be shown. The value is simply truncated if true.\n * @default true\n */\n showDecimal?: boolean;\n /** Determines the maximum number of decimal places. The value is simply truncated to the number of places.\n * @default variable NUMBER_MAX_DECIMAL_PLACES. Recommended minimum: 1.\n */\n numberOfDecimals?: number;\n /** Determines whether group separators should be shown.\n * @default true\n */\n showGroupSeparators?: boolean;\n };\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLAnchorElement>;\n}\n\nconst NumberDisplay: FunctionComponent<NumberDisplayProps & ForwardProps> = forwardRef(\n (\n {\n value = '',\n unit = '',\n unitPlacement = 'after',\n formattingOptions = {},\n ...restProps\n }: PropsWithoutRef<NumberDisplayProps>,\n ref: NumberDisplayProps['ref']\n ) => {\n const { locale } = useConfiguration();\n const {\n showDecimal = true,\n numberOfDecimals = NUMBER_MAX_DECIMAL_PLACES,\n showGroupSeparators = true\n } = formattingOptions;\n\n return (\n <span ref={ref} {...restProps}>\n {value ? (\n `${unit && unitPlacement === 'before' ? unit : ''}${getFormattedValue(\n !showDecimal ? getInteger(value) : value,\n locale,\n showGroupSeparators,\n numberOfDecimals\n )}${unit && unitPlacement === 'after' ? unit : ''}`\n ) : (\n <span aria-hidden='true'>––</span>\n )}\n </span>\n );\n }\n);\n\nexport default NumberDisplay;\n"]}
|
package/lib/hooks/useArrows.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { RefObject, DependencyList } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* @example useArrows(ref, { cycle, selector });
|
|
4
4
|
* @param ref - A reference to the element that will be navigated through. [React RefObject](https://reactjs.org/docs/refs-and-the-dom.html)
|
|
@@ -7,6 +7,6 @@ declare const useArrows: (ref: RefObject<HTMLElement>, { cycle, selector, dir }?
|
|
|
7
7
|
cycle?: boolean | undefined;
|
|
8
8
|
selector?: string | undefined;
|
|
9
9
|
dir?: "up-down" | "left-right" | undefined;
|
|
10
|
-
}) => void;
|
|
10
|
+
}, dependencies?: DependencyList) => void;
|
|
11
11
|
export default useArrows;
|
|
12
12
|
//# sourceMappingURL=useArrows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArrows.d.ts","sourceRoot":"","sources":["../../src/hooks/useArrows.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useArrows.d.ts","sourceRoot":"","sources":["../../src/hooks/useArrows.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAW1E;;;GAGG;AACH,QAAA,MAAM,SAAS,QACR,UAAU,WAAW,CAAC;;;;yCAqG5B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/hooks/useArrows.js
CHANGED
|
@@ -16,20 +16,27 @@ cycle = true,
|
|
|
16
16
|
/** A query selector that will determine which elements to cycle through with the arrow keys. The selector will be used in conjunction with [querySelectorAll](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll#selectors). */
|
|
17
17
|
selector = focusable,
|
|
18
18
|
/** Which keys are used to navigate through the list */
|
|
19
|
-
dir = 'up-down' } = {}
|
|
19
|
+
dir = 'up-down' } = {},
|
|
20
|
+
/** Pass this prop in the internal dependencies when list is dynamic */
|
|
21
|
+
dependencies = []) => {
|
|
20
22
|
const [NextKey, PrevKey] = dir === 'up-down' ? ['ArrowDown', 'ArrowUp'] : ['ArrowRight', 'ArrowLeft'];
|
|
21
23
|
const setTabIndexes = useCallback((el) => {
|
|
22
24
|
// don't set tabindex -1 for first element, or an element with a checked input inside of it to be able to focus it
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
item
|
|
25
|
+
// 0 second timeout added because DOM needs to be up to date after list is updated before running query
|
|
26
|
+
setTimeout(() => {
|
|
27
|
+
const focusableElements = Array.from(el.querySelectorAll(selector));
|
|
28
|
+
if (focusableElements.length > 0) {
|
|
29
|
+
focusableElements[0].tabIndex = 0;
|
|
30
|
+
focusableElements.slice(1).forEach(item => {
|
|
31
|
+
if (item instanceof HTMLElement) {
|
|
32
|
+
const checked = item.checked;
|
|
33
|
+
if (!checked)
|
|
34
|
+
item.tabIndex = -1;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
30
37
|
}
|
|
31
|
-
});
|
|
32
|
-
}, [selector]);
|
|
38
|
+
}, 0);
|
|
39
|
+
}, [selector, ...dependencies]);
|
|
33
40
|
const listener = useCallback((e) => {
|
|
34
41
|
if (['Home', 'End', NextKey, PrevKey].includes(e.key))
|
|
35
42
|
e.preventDefault();
|
|
@@ -81,7 +88,7 @@ dir = 'up-down' } = {}) => {
|
|
|
81
88
|
return;
|
|
82
89
|
}
|
|
83
90
|
items[newFocusIdx].focus();
|
|
84
|
-
}, [ref.current, cycle, selector]);
|
|
91
|
+
}, [ref.current, cycle, selector, ...dependencies]);
|
|
85
92
|
useEffect(() => {
|
|
86
93
|
const el = ref.current;
|
|
87
94
|
if (!el)
|
|
@@ -91,7 +98,7 @@ dir = 'up-down' } = {}) => {
|
|
|
91
98
|
return () => {
|
|
92
99
|
el.removeEventListener('keydown', listener);
|
|
93
100
|
};
|
|
94
|
-
}, [ref.current, selector, listener]);
|
|
101
|
+
}, [ref.current, selector, listener, ...dependencies]);
|
|
95
102
|
};
|
|
96
103
|
export default useArrows;
|
|
97
104
|
//# sourceMappingURL=useArrows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArrows.js","sourceRoot":"","sources":["../../src/hooks/useArrows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"useArrows.js","sourceRoot":"","sources":["../../src/hooks/useArrows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAA6B,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,mBAAmB,EAAE,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AAa,CAAC,EAAE,CAAC,CAAC;YAClB,OAAO;SACR;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE;YAC5B,IAAI,QAAQ,KAAK,OAAO,EAAE;gBACxB,IAAI,CAAC,KAAK;oBAAE,OAAO;gBACnB,WAAW,GAAG,CAAC,CAAC;aACjB;iBAAM;gBACL,WAAW,GAAG,QAAQ,GAAG,CAAC,CAAC;aAC5B;SACF;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE;YAC5B,IAAI,QAAQ,KAAK,CAAC,EAAE;gBAClB,IAAI,CAAC,KAAK;oBAAE,OAAO;gBACnB,WAAW,GAAG,OAAO,CAAC;aACvB;iBAAM;gBACL,WAAW,GAAG,QAAQ,GAAG,CAAC,CAAC;aAC5B;SACF;aAAM;YACL,OAAO;SACR;QAED,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC,EACD,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC,CAChD,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE;YAAE,OAAO;QAEhB,aAAa,CAAC,EAAE,CAAC,CAAC;QAClB,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAEzC,OAAO,GAAG,EAAE;YACV,EAAE,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAC9C,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import { useEffect, useCallback, RefObject, DependencyList } from 'react';\n\nimport { documentIsAvailable } from '../utils';\n\nconst focusable = `\n a[href],\n button:enabled,\n input[type='checkbox']:enabled,\n input[type='radio']:enabled\n`;\n\n/**\n * @example useArrows(ref, { cycle, selector });\n * @param ref - A reference to the element that will be navigated through. [React RefObject](https://reactjs.org/docs/refs-and-the-dom.html)\n */\nconst useArrows = (\n ref: RefObject<HTMLElement>,\n {\n /** If true, the down or up arrow key will navigate to the first or last element if the element currently focused is the last or first index of the selected elements. */\n cycle = true,\n /** A query selector that will determine which elements to cycle through with the arrow keys. The selector will be used in conjunction with [querySelectorAll](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll#selectors). */\n selector = focusable,\n /** Which keys are used to navigate through the list */\n dir = 'up-down'\n }: { cycle?: boolean; selector?: string; dir?: 'up-down' | 'left-right' } = {},\n /** Pass this prop in the internal dependencies when list is dynamic */\n dependencies: DependencyList = []\n) => {\n const [NextKey, PrevKey] =\n dir === 'up-down' ? ['ArrowDown', 'ArrowUp'] : ['ArrowRight', 'ArrowLeft'];\n\n const setTabIndexes = useCallback(\n (el: HTMLElement) => {\n // don't set tabindex -1 for first element, or an element with a checked input inside of it to be able to focus it\n\n // 0 second timeout added because DOM needs to be up to date after list is updated before running query\n setTimeout(() => {\n const focusableElements = Array.from(el.querySelectorAll(selector));\n\n if (focusableElements.length > 0) {\n (focusableElements[0] as HTMLElement).tabIndex = 0;\n focusableElements.slice(1).forEach(item => {\n if (item instanceof HTMLElement) {\n const checked = (item as HTMLInputElement).checked;\n if (!checked) item.tabIndex = -1;\n }\n });\n }\n }, 0);\n },\n [selector, ...dependencies]\n );\n\n const listener = useCallback(\n (e: KeyboardEvent) => {\n if (['Home', 'End', NextKey, PrevKey].includes(e.key)) e.preventDefault();\n\n if (!documentIsAvailable) return;\n\n const el = ref.current;\n if (!el) return;\n\n const items = Array.from(el.querySelectorAll(selector)).filter(\n (item): item is HTMLElement => item instanceof HTMLElement\n );\n\n if (!items.length) return;\n\n const rootNode = el.getRootNode();\n\n if (!(rootNode instanceof Document) && !(rootNode instanceof ShadowRoot)) return;\n\n const focusIdx = items.indexOf(rootNode.activeElement as HTMLElement);\n const lastIdx = items.length - 1;\n let newFocusIdx;\n\n if (e.key === 'Home' || (e.key === NextKey && focusIdx === -1)) {\n newFocusIdx = 0;\n } else if (e.key === 'End' || (e.key === PrevKey && focusIdx === -1)) {\n newFocusIdx = lastIdx;\n } else if (e.key === 'Enter') {\n setTabIndexes(el);\n return;\n } else if (e.key === NextKey) {\n if (focusIdx === lastIdx) {\n if (!cycle) return;\n newFocusIdx = 0;\n } else {\n newFocusIdx = focusIdx + 1;\n }\n } else if (e.key === PrevKey) {\n if (focusIdx === 0) {\n if (!cycle) return;\n newFocusIdx = lastIdx;\n } else {\n newFocusIdx = focusIdx - 1;\n }\n } else {\n return;\n }\n\n items[newFocusIdx].focus();\n },\n [ref.current, cycle, selector, ...dependencies]\n );\n\n useEffect(() => {\n const el = ref.current;\n if (!el) return;\n\n setTabIndexes(el);\n el.addEventListener('keydown', listener);\n\n return () => {\n el.removeEventListener('keydown', listener);\n };\n }, [ref.current, selector, listener, ...dependencies]);\n};\n\nexport default useArrows;\n"]}
|
package/lib/hooks/useI18n.d.ts
CHANGED
|
@@ -318,11 +318,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
318
318
|
dial_pad_keyboard: string;
|
|
319
319
|
dial_pad_phone_number_input_label: string;
|
|
320
320
|
dial_pad_call_button_label: string;
|
|
321
|
+
select_multiple: string;
|
|
321
322
|
dismiss_case: string;
|
|
322
323
|
task_manager_add_task: string;
|
|
323
324
|
task_manager_wrap_up: string;
|
|
324
325
|
task_manager_tasks: string;
|
|
325
326
|
add_tasks: string;
|
|
327
|
+
open_tasks: string;
|
|
328
|
+
resolved_tasks: string;
|
|
326
329
|
selected_tasks: string;
|
|
327
330
|
no_selected_tasks: string;
|
|
328
331
|
task_picker_close: string;
|
|
@@ -586,6 +589,9 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
586
589
|
dev_mode: string;
|
|
587
590
|
expand_navigation: string;
|
|
588
591
|
collapse_navigation: string;
|
|
592
|
+
branch_with_no_changes: string;
|
|
593
|
+
branch_with_no_potential_conflicts: string;
|
|
594
|
+
branch_with_potential_conflicts: string;
|
|
589
595
|
parallel: string;
|
|
590
596
|
stage: string;
|
|
591
597
|
alternate_stage: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/lib/i18n/default.d.ts
CHANGED
|
@@ -314,11 +314,14 @@ declare const _default: {
|
|
|
314
314
|
dial_pad_keyboard: string;
|
|
315
315
|
dial_pad_phone_number_input_label: string;
|
|
316
316
|
dial_pad_call_button_label: string;
|
|
317
|
+
select_multiple: string;
|
|
317
318
|
dismiss_case: string;
|
|
318
319
|
task_manager_add_task: string;
|
|
319
320
|
task_manager_wrap_up: string;
|
|
320
321
|
task_manager_tasks: string;
|
|
321
322
|
add_tasks: string;
|
|
323
|
+
open_tasks: string;
|
|
324
|
+
resolved_tasks: string;
|
|
322
325
|
selected_tasks: string;
|
|
323
326
|
no_selected_tasks: string;
|
|
324
327
|
task_picker_close: string;
|
|
@@ -582,6 +585,9 @@ declare const _default: {
|
|
|
582
585
|
dev_mode: string;
|
|
583
586
|
expand_navigation: string;
|
|
584
587
|
collapse_navigation: string;
|
|
588
|
+
branch_with_no_changes: string;
|
|
589
|
+
branch_with_no_potential_conflicts: string;
|
|
590
|
+
branch_with_potential_conflicts: string;
|
|
585
591
|
parallel: string;
|
|
586
592
|
stage: string;
|
|
587
593
|
alternate_stage: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwrBE"}
|
package/lib/i18n/default.js
CHANGED
|
@@ -355,15 +355,18 @@ export default {
|
|
|
355
355
|
dial_pad_phone_number_input_label: 'Phone number input',
|
|
356
356
|
dial_pad_call_button_label: 'Call {0}',
|
|
357
357
|
/* cs:TaskManager */
|
|
358
|
+
select_multiple: 'Select multiple',
|
|
358
359
|
dismiss_case: 'Dismiss case',
|
|
359
360
|
task_manager_add_task: 'Add task',
|
|
360
361
|
task_manager_wrap_up: 'Wrap up',
|
|
361
362
|
task_manager_tasks: 'Tasks',
|
|
362
363
|
add_tasks: 'Add tasks',
|
|
364
|
+
open_tasks: 'Open tasks',
|
|
365
|
+
resolved_tasks: 'Resolved tasks',
|
|
363
366
|
selected_tasks: 'Selected tasks',
|
|
364
367
|
no_selected_tasks: 'No selected tasks',
|
|
365
368
|
task_picker_close: 'Close task picker',
|
|
366
|
-
task_manager_overflow_menu: '
|
|
369
|
+
task_manager_overflow_menu: 'All tasks',
|
|
367
370
|
go_label: 'Go',
|
|
368
371
|
go_label_a11y: 'Go to {0}',
|
|
369
372
|
continue_label: 'Continue',
|
|
@@ -627,6 +630,10 @@ export default {
|
|
|
627
630
|
dev_mode: 'Dev mode',
|
|
628
631
|
expand_navigation: 'Expand navigation',
|
|
629
632
|
collapse_navigation: 'Collapse navigation',
|
|
633
|
+
/* build:BranchButton */
|
|
634
|
+
branch_with_no_changes: '{0} with no changes',
|
|
635
|
+
branch_with_no_potential_conflicts: '{0} with no potential conflicts and {1} unmerged changes',
|
|
636
|
+
branch_with_potential_conflicts: '{0} with potential conflicts',
|
|
630
637
|
/* build:Lifecycle */
|
|
631
638
|
parallel: 'Parallel',
|
|
632
639
|
stage: 'Stage',
|
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,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,iBAAiB;IAClC,0BAA0B,EAAE,SAAS;IAErC,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;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IAEZ,sBAAsB;IACtB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,qBAAqB,EAAE,aAAa;IACpC,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IAEtB,yBAAyB;IACzB,UA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I,EAAE,eAAe;QACrB,GAAG,EAAE,gBAAgB;QACrB,GAAG,EAAE,qBAAqB;QAC1B,GAAG,EAAE,qBAAqB;QAC1B,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,qBAAqB;KAC7B;IACD,qCAAqC,EAAE;QACrC,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,kBAAkB;QACvB,GAAG,EAAE,uBAAuB;QAC5B,GAAG,EAAE,uBAAuB;QAC5B,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,uBAAuB;KAC/B;IACD,kCAAkC,EAAE;QAClC,IAAI,EAAE,cAAc;QACpB,GAAG,EAAE,eAAe;QACpB,GAAG,EAAE,oBAAoB;QACzB,GAAG,EAAE,oBAAoB;QACzB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,oBAAoB;KAC5B;IACD,mCAAmC,EAAE,aAAa;IAClD,kCAAkC,EAAE,MAAM;IAC1C,qCAAqC,EAAE,SAAS;IAChD,sCAAsC,EAAE,UAAU;IAClD,kCAAkC,EAAE,MAAM;IAC1C,6BAA6B,EAAE,OAAO;IAEtC,oBAAoB;IACpB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAE1C,qBAAqB;IACrB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,eAAe,EAAE,iBAAiB;IAClC,wBAAwB,EAAE,oBAAoB;IAC9C,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,WAAW;IACtB,mBAAmB,EAAE,qBAAqB;IAE1C,wBAAwB;IACxB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAE5B,qBAAqB;IACrB,UAAU,EAAE,YAAY;CACzB,CAAC","sourcesContent":["export default {\n // -----------------------------------------------------------------------------\n // Common translation entries\n // -----------------------------------------------------------------------------\n\n /* Nouns, Types, Terms, Phrases, etc... */\n filters: 'Filters',\n actions: 'Actions',\n status: 'Status',\n additional_info: 'Additional info',\n search_placeholder_default: 'Search…',\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 edit: 'Edit',\n preview: 'Preview',\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\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 clear_all: 'Clear all',\n link_open_in_tab_text: 'Open in tab',\n edit_details: 'Edit details',\n add_emoji: 'Add emoji',\n\n /* Dynamic verb {noun} */\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 deselected_noun: '{0}: unselected',\n use_input_value: 'Use {0}',\n preview_of_noun: 'Preview of: {0}',\n\n /* States */\n edited: 'Edited',\n done: 'Done',\n uploading: 'Uploading',\n loading: 'Loading…',\n submitting: 'Submitting…',\n no_items: 'No items',\n unknown_error: 'Unknown error',\n image_load_error: 'Error loading image',\n selected: 'Selected',\n\n /* Date and time */\n day_label_a11y: 'Day',\n day_placeholder: 'DD',\n quarter_label_a11y: 'Quarter',\n month_label_a11y: 'Month',\n month_placeholder: 'MM',\n year_label_a11y: 'Year',\n year_placeholder: 'YYYY',\n hour_label_a11y: 'Hour',\n hour_placeholder: 'hh',\n minute_label_a11y: 'Minute',\n minute_placeholder: 'mm',\n second_label_a11y: 'Second',\n second_placeholder: 'ss',\n meridiem_label_a11y: 'Meridiem',\n meridiem_value_am: 'AM',\n meridiem_value_pm: 'PM',\n week_label_a11y: 'Week',\n week_placeholder: 'ww',\n week_text: 'Week',\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 week_text_short: 'Wk',\n day_text_short: 'd',\n hour_text_short: 'h',\n minute_text_short: 'm',\n second_text_short: 's',\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\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 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 /* Miscellaneous */\n x_of_y: '{0} of {1}',\n\n // -----------------------------------------------------------------------------\n // {pkg}:{ComponentDir} entries\n // -----------------------------------------------------------------------------\n\n /* core:Link */\n preview_link_arrow_navigation: 'Arrow left or right for link options',\n\n /* core:SkipLinks */\n go_to_main_content: 'Go to main content',\n\n /* core:AppShell */\n app_shell_create: 'Create',\n app_shell_open_nav: 'Open navigation menu',\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\n /* core:Menu */\n menu_selection_instructions: 'Press enter to select items.',\n menu_item_expand_arrow: '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: 'Press shift space to expand and collapse.',\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\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 picker_next_month: 'Next month',\n picker_prev_month: 'Previous month',\n picker_jump_to_month: 'Jump to month',\n calendar_assist: 'Use cursor keys to navigate dates',\n\n /* core:Boolean */\n boolean_display_true_label: 'Yes',\n boolean_display_false_label: 'No',\n\n /* core:Number */\n measured_in: 'measured in {0}',\n number_increment_value_by: 'Increment value by {0}',\n number_decrement_value_by: 'Decrement value by {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 file',\n file_upload_text_multiple: 'choose files',\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 allow_location_permissions_text:\n 'To get current location, allow location permissions for this app',\n\n /* work:CaseView */\n utilities_summary: 'Utilities summary',\n expand_summary_panel: 'Expand summary panel',\n collapse_summary_panel: 'Collapse summary panel',\n expand_utilities_panel: 'Expand utilities panel',\n collapse_utilities_panel: 'Collapse utilities panel',\n\n /* work:CasePreview */\n close_preview: 'Close preview',\n\n /* work:Confirmation */\n confirmation_details: 'Details',\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: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 /* rte:RichTextEditor */\n rte_heading_style: 'Heading style',\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_anchor: 'Anchor',\n rte_image: 'Image',\n rte_invalid_html: 'Invalid HTML',\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\n /* social:Feed */\n feed_new_post: 'New post',\n feed_cancel_conversation: 'Cancel conversation',\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_edit_post: 'Edit post',\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_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_reply_removed: 'Reply has been removed',\n showing_num_of_num: 'Showing {0} of {1}',\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 replies {0} of {1}',\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\n /* cs:Email */\n more_count: '{0} more…',\n empty_search: 'Enter a search term',\n new_messages: 'New messages',\n earlier_transcripts: 'Earlier transcripts',\n send_label: 'Send',\n enter_message: 'Enter message',\n download: 'Download',\n close_chat_utility: 'Close chat utility',\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 auto_reply: 'Auto-Reply',\n forward: 'Forward',\n email: 'Email',\n email_message: 'Email message',\n email_filters: 'Email filters',\n unread_email_count: 'unread email count is {0}',\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\n /* cs: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\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_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_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_consult_with_heading: 'Consult with',\n call_panel_conference_heading: 'Conference',\n call_panel_transfer_button_label: 'Transfer',\n call_panel_transfer_call_heading: 'Transfer call',\n call_panel_transfer_reason_label: 'Reason',\n call_panel_transfer_to_label: 'Transfer to',\n call_panel_transfer_comments_label: 'Comments',\n call_panel_transfer_call_option_label: 'Call option',\n call_panel_transfer_call_only_option: 'Call only',\n call_panel_transfer_call_and_interaction_option: 'Call and interaction',\n call_panel_merge_call_menu_item: 'Merge',\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\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 dismiss_case: 'Dismiss case',\n task_manager_add_task: 'Add task',\n task_manager_wrap_up: 'Wrap up',\n task_manager_tasks: 'Tasks',\n add_tasks: 'Add tasks',\n selected_tasks: 'Selected tasks',\n no_selected_tasks: 'No selected tasks',\n task_picker_close: 'Close task picker',\n task_manager_overflow_menu: 'Menu for added tasks',\n go_label: 'Go',\n go_label_a11y: 'Go to {0}',\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_search_results_empty_text: 'No tasks',\n task_manager_delete_task: 'Delete {0}',\n search_tasks: 'Search tasks…',\n task_manager_picker_add_label: {\n zero: 'No items to add',\n one: 'Add {0} new item',\n two: 'Add {0} new item',\n few: 'Add {0} new item',\n many: 'Add {0} new item',\n other: 'Add {0} new item'\n },\n\n /* cs:Sentiment */\n sentiment_positive: 'Positive',\n sentiment_negative: 'Negative',\n sentiment_neutral: 'Neutral',\n\n /* cs:IntelligentGuidance */\n expand_intelligent_guidance_button_a11y: 'Expand intelligent guidance',\n collapse_intelligent_guidance_button_a11y: 'Collapse intelligent guidance',\n no_recommendations: 'No recommendations',\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_condition_select_info_default: 'No selection',\n condition_builder_possible_values_label: 'Values',\n condition_builder_selection_text_default: 'Select values',\n condition_builder_submit_button_label: 'Submit',\n condition_builder_add_button_label: 'Add new condition',\n condition_builder_remove_button_label: 'Remove condition',\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_compare_with: 'Compare with',\n condition_builder_compare_with_another_field: 'Another field',\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_number: 'Invalid number',\n condition_builder_date_function_year: 'Year',\n condition_builder_date_function_quarter: 'Quarter',\n condition_builder_select_placeholder: 'Select…',\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_date_function_month: 'Month',\n condition_builder_date_function_week: 'Week',\n condition_builder_date_function_day: 'Day',\n condition_builder_date_function_hour: 'Hour',\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_relative_dates_minute: 'Minute(s)',\n condition_builder_relative_dates_hour: 'Hour(s)',\n condition_builder_relative_dates_day: 'Day(s)',\n condition_builder_relative_dates_week: 'Week(s)',\n condition_builder_relative_dates_month: 'Month(s)',\n condition_builder_relative_dates_quarter: 'Quarter(s)',\n condition_builder_relative_dates_year: 'Year(s)',\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_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_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_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\n /* build:AppShell */\n dev_mode: 'Dev mode',\n expand_navigation: 'Expand navigation',\n collapse_navigation: 'Collapse navigation',\n\n /* build:Lifecycle */\n parallel: 'Parallel',\n stage: 'Stage',\n alternate_stage: 'Alternate stage',\n stage_see_full_lifecycle: 'See full lifecycle',\n lifecycle: '{0} lifecycle',\n add_stage: 'Add stage',\n add_alternate_stage: 'Add alternate stage',\n\n /* build:FlowModeller */\n add_node: 'Add node',\n search_nodes: 'Search nodes',\n\n /* build:Workbench */\n zoom_level: 'Zoom level'\n};\n"]}
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,gFAAgF;IAChF,6BAA6B;IAC7B,gFAA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E,uBAAuB;QAC5B,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,uBAAuB;KAC/B;IACD,kCAAkC,EAAE;QAClC,IAAI,EAAE,cAAc;QACpB,GAAG,EAAE,eAAe;QACpB,GAAG,EAAE,oBAAoB;QACzB,GAAG,EAAE,oBAAoB;QACzB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,oBAAoB;KAC5B;IACD,mCAAmC,EAAE,aAAa;IAClD,kCAAkC,EAAE,MAAM;IAC1C,qCAAqC,EAAE,SAAS;IAChD,sCAAsC,EAAE,UAAU;IAClD,kCAAkC,EAAE,MAAM;IAC1C,6BAA6B,EAAE,OAAO;IAEtC,oBAAoB;IACpB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAE1C,wBAAwB;IACxB,sBAAsB,EAAE,qBAAqB;IAC7C,kCAAkC,EAAE,0DAA0D;IAC9F,+BAA+B,EAAE,8BAA8B;IAE/D,qBAAqB;IACrB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,eAAe,EAAE,iBAAiB;IAClC,wBAAwB,EAAE,oBAAoB;IAC9C,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,WAAW;IACtB,mBAAmB,EAAE,qBAAqB;IAE1C,wBAAwB;IACxB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAE5B,qBAAqB;IACrB,UAAU,EAAE,YAAY;CACzB,CAAC","sourcesContent":["export default {\n // -----------------------------------------------------------------------------\n // Common translation entries\n // -----------------------------------------------------------------------------\n\n /* Nouns, Types, Terms, Phrases, etc... */\n filters: 'Filters',\n actions: 'Actions',\n status: 'Status',\n additional_info: 'Additional info',\n search_placeholder_default: 'Search…',\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 edit: 'Edit',\n preview: 'Preview',\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\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 clear_all: 'Clear all',\n link_open_in_tab_text: 'Open in tab',\n edit_details: 'Edit details',\n add_emoji: 'Add emoji',\n\n /* Dynamic verb {noun} */\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 deselected_noun: '{0}: unselected',\n use_input_value: 'Use {0}',\n preview_of_noun: 'Preview of: {0}',\n\n /* States */\n edited: 'Edited',\n done: 'Done',\n uploading: 'Uploading',\n loading: 'Loading…',\n submitting: 'Submitting…',\n no_items: 'No items',\n unknown_error: 'Unknown error',\n image_load_error: 'Error loading image',\n selected: 'Selected',\n\n /* Date and time */\n day_label_a11y: 'Day',\n day_placeholder: 'DD',\n quarter_label_a11y: 'Quarter',\n month_label_a11y: 'Month',\n month_placeholder: 'MM',\n year_label_a11y: 'Year',\n year_placeholder: 'YYYY',\n hour_label_a11y: 'Hour',\n hour_placeholder: 'hh',\n minute_label_a11y: 'Minute',\n minute_placeholder: 'mm',\n second_label_a11y: 'Second',\n second_placeholder: 'ss',\n meridiem_label_a11y: 'Meridiem',\n meridiem_value_am: 'AM',\n meridiem_value_pm: 'PM',\n week_label_a11y: 'Week',\n week_placeholder: 'ww',\n week_text: 'Week',\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 week_text_short: 'Wk',\n day_text_short: 'd',\n hour_text_short: 'h',\n minute_text_short: 'm',\n second_text_short: 's',\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\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 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 /* Miscellaneous */\n x_of_y: '{0} of {1}',\n\n // -----------------------------------------------------------------------------\n // {pkg}:{ComponentDir} entries\n // -----------------------------------------------------------------------------\n\n /* core:Link */\n preview_link_arrow_navigation: 'Arrow left or right for link options',\n\n /* core:SkipLinks */\n go_to_main_content: 'Go to main content',\n\n /* core:AppShell */\n app_shell_create: 'Create',\n app_shell_open_nav: 'Open navigation menu',\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\n /* core:Menu */\n menu_selection_instructions: 'Press enter to select items.',\n menu_item_expand_arrow: '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: 'Press shift space to expand and collapse.',\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\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 picker_next_month: 'Next month',\n picker_prev_month: 'Previous month',\n picker_jump_to_month: 'Jump to month',\n calendar_assist: 'Use cursor keys to navigate dates',\n\n /* core:Boolean */\n boolean_display_true_label: 'Yes',\n boolean_display_false_label: 'No',\n\n /* core:Number */\n measured_in: 'measured in {0}',\n number_increment_value_by: 'Increment value by {0}',\n number_decrement_value_by: 'Decrement value by {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 file',\n file_upload_text_multiple: 'choose files',\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 allow_location_permissions_text:\n 'To get current location, allow location permissions for this app',\n\n /* work:CaseView */\n utilities_summary: 'Utilities summary',\n expand_summary_panel: 'Expand summary panel',\n collapse_summary_panel: 'Collapse summary panel',\n expand_utilities_panel: 'Expand utilities panel',\n collapse_utilities_panel: 'Collapse utilities panel',\n\n /* work:CasePreview */\n close_preview: 'Close preview',\n\n /* work:Confirmation */\n confirmation_details: 'Details',\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: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 /* rte:RichTextEditor */\n rte_heading_style: 'Heading style',\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_anchor: 'Anchor',\n rte_image: 'Image',\n rte_invalid_html: 'Invalid HTML',\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\n /* social:Feed */\n feed_new_post: 'New post',\n feed_cancel_conversation: 'Cancel conversation',\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_edit_post: 'Edit post',\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_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_reply_removed: 'Reply has been removed',\n showing_num_of_num: 'Showing {0} of {1}',\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 replies {0} of {1}',\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\n /* cs:Email */\n more_count: '{0} more…',\n empty_search: 'Enter a search term',\n new_messages: 'New messages',\n earlier_transcripts: 'Earlier transcripts',\n send_label: 'Send',\n enter_message: 'Enter message',\n download: 'Download',\n close_chat_utility: 'Close chat utility',\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 auto_reply: 'Auto-Reply',\n forward: 'Forward',\n email: 'Email',\n email_message: 'Email message',\n email_filters: 'Email filters',\n unread_email_count: 'unread email count is {0}',\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\n /* cs: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\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_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_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_consult_with_heading: 'Consult with',\n call_panel_conference_heading: 'Conference',\n call_panel_transfer_button_label: 'Transfer',\n call_panel_transfer_call_heading: 'Transfer call',\n call_panel_transfer_reason_label: 'Reason',\n call_panel_transfer_to_label: 'Transfer to',\n call_panel_transfer_comments_label: 'Comments',\n call_panel_transfer_call_option_label: 'Call option',\n call_panel_transfer_call_only_option: 'Call only',\n call_panel_transfer_call_and_interaction_option: 'Call and interaction',\n call_panel_merge_call_menu_item: 'Merge',\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\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_task: 'Add task',\n task_manager_wrap_up: 'Wrap up',\n task_manager_tasks: 'Tasks',\n add_tasks: 'Add tasks',\n open_tasks: 'Open tasks',\n resolved_tasks: 'Resolved tasks',\n selected_tasks: 'Selected tasks',\n no_selected_tasks: 'No selected tasks',\n task_picker_close: 'Close task picker',\n task_manager_overflow_menu: 'All tasks',\n go_label: 'Go',\n go_label_a11y: 'Go to {0}',\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_search_results_empty_text: 'No tasks',\n task_manager_delete_task: 'Delete {0}',\n search_tasks: 'Search tasks…',\n task_manager_picker_add_label: {\n zero: 'No items to add',\n one: 'Add {0} new item',\n two: 'Add {0} new item',\n few: 'Add {0} new item',\n many: 'Add {0} new item',\n other: 'Add {0} new item'\n },\n\n /* cs:Sentiment */\n sentiment_positive: 'Positive',\n sentiment_negative: 'Negative',\n sentiment_neutral: 'Neutral',\n\n /* cs:IntelligentGuidance */\n expand_intelligent_guidance_button_a11y: 'Expand intelligent guidance',\n collapse_intelligent_guidance_button_a11y: 'Collapse intelligent guidance',\n no_recommendations: 'No recommendations',\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_condition_select_info_default: 'No selection',\n condition_builder_possible_values_label: 'Values',\n condition_builder_selection_text_default: 'Select values',\n condition_builder_submit_button_label: 'Submit',\n condition_builder_add_button_label: 'Add new condition',\n condition_builder_remove_button_label: 'Remove condition',\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_compare_with: 'Compare with',\n condition_builder_compare_with_another_field: 'Another field',\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_number: 'Invalid number',\n condition_builder_date_function_year: 'Year',\n condition_builder_date_function_quarter: 'Quarter',\n condition_builder_select_placeholder: 'Select…',\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_date_function_month: 'Month',\n condition_builder_date_function_week: 'Week',\n condition_builder_date_function_day: 'Day',\n condition_builder_date_function_hour: 'Hour',\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_relative_dates_minute: 'Minute(s)',\n condition_builder_relative_dates_hour: 'Hour(s)',\n condition_builder_relative_dates_day: 'Day(s)',\n condition_builder_relative_dates_week: 'Week(s)',\n condition_builder_relative_dates_month: 'Month(s)',\n condition_builder_relative_dates_quarter: 'Quarter(s)',\n condition_builder_relative_dates_year: 'Year(s)',\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_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_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_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\n /* build:AppShell */\n dev_mode: 'Dev mode',\n expand_navigation: 'Expand navigation',\n collapse_navigation: 'Collapse navigation',\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 stage_see_full_lifecycle: 'See full lifecycle',\n lifecycle: '{0} lifecycle',\n add_stage: 'Add stage',\n add_alternate_stage: 'Add alternate stage',\n\n /* build:FlowModeller */\n add_node: 'Add node',\n search_nodes: 'Search nodes',\n\n /* build:Workbench */\n zoom_level: 'Zoom level'\n};\n"]}
|
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -317,11 +317,14 @@ declare const create: (translations?: Partial<{
|
|
|
317
317
|
dial_pad_keyboard: string;
|
|
318
318
|
dial_pad_phone_number_input_label: string;
|
|
319
319
|
dial_pad_call_button_label: string;
|
|
320
|
+
select_multiple: string;
|
|
320
321
|
dismiss_case: string;
|
|
321
322
|
task_manager_add_task: string;
|
|
322
323
|
task_manager_wrap_up: string;
|
|
323
324
|
task_manager_tasks: string;
|
|
324
325
|
add_tasks: string;
|
|
326
|
+
open_tasks: string;
|
|
327
|
+
resolved_tasks: string;
|
|
325
328
|
selected_tasks: string;
|
|
326
329
|
no_selected_tasks: string;
|
|
327
330
|
task_picker_close: string;
|
|
@@ -585,6 +588,9 @@ declare const create: (translations?: Partial<{
|
|
|
585
588
|
dev_mode: string;
|
|
586
589
|
expand_navigation: string;
|
|
587
590
|
collapse_navigation: string;
|
|
591
|
+
branch_with_no_changes: string;
|
|
592
|
+
branch_with_no_potential_conflicts: string;
|
|
593
|
+
branch_with_potential_conflicts: string;
|
|
588
594
|
parallel: string;
|
|
589
595
|
stage: string;
|
|
590
596
|
alternate_stage: string;
|
|
@@ -913,11 +919,14 @@ export declare const DefaultTranslation: Readonly<Readonly<{
|
|
|
913
919
|
dial_pad_keyboard: string;
|
|
914
920
|
dial_pad_phone_number_input_label: string;
|
|
915
921
|
dial_pad_call_button_label: string;
|
|
922
|
+
select_multiple: string;
|
|
916
923
|
dismiss_case: string;
|
|
917
924
|
task_manager_add_task: string;
|
|
918
925
|
task_manager_wrap_up: string;
|
|
919
926
|
task_manager_tasks: string;
|
|
920
927
|
add_tasks: string;
|
|
928
|
+
open_tasks: string;
|
|
929
|
+
resolved_tasks: string;
|
|
921
930
|
selected_tasks: string;
|
|
922
931
|
no_selected_tasks: string;
|
|
923
932
|
task_picker_close: string;
|
|
@@ -1181,6 +1190,9 @@ export declare const DefaultTranslation: Readonly<Readonly<{
|
|
|
1181
1190
|
dev_mode: string;
|
|
1182
1191
|
expand_navigation: string;
|
|
1183
1192
|
collapse_navigation: string;
|
|
1193
|
+
branch_with_no_changes: string;
|
|
1194
|
+
branch_with_no_potential_conflicts: string;
|
|
1195
|
+
branch_with_potential_conflicts: string;
|
|
1184
1196
|
parallel: string;
|
|
1185
1197
|
stage: string;
|
|
1186
1198
|
alternate_stage: string;
|
package/lib/i18n/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,WAAW,CAAC;AAE3C,oBAAY,eAAe,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAClE,oBAAY,WAAW,GAAG,OAAO,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE7D,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,WAAW,CAAC;AAE3C,oBAAY,eAAe,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAClE,oBAAY,WAAW,GAAG,OAAO,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE7D,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC,GAAG,CAAC,CAAC;AACpF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAC9B,KAAK,EAAE,MAAM,CAAC,EACd,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,CAAC,CAAC,GAAG,SAAS,EAC1C,SAAS,EAAE,MAAM,CAAC,GACjB,CAAC,CAAC;AAgBL;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,wFAO7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,kBAAmB,UAAU,WAAW,CAAC,kBAWlE,CAAC;AAEF;;;;GAIG;AACH,wBAAiB,MAAM,CAAC,CAAC,EACvB,KAAK,EAAE,CAAC,EAAE,GACT,SAAS,CAAC;IAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAKnE;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,MAAO,MAAM,KAAG,MAA0D,CAAC;AAEpG;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,MAC3B,MAAM,SACH,UAAU,GAAG,OAAO,GAAG,UAAU,UAChC,MAAM,KACZ,MAWF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,SAC7B,MAAM,EAAE,KACX,oBAAoB,eAAe,CAAC,UAC/B,MAAM;;;YAiBf,CAAC"}
|
package/lib/utils/utils.js
CHANGED
|
@@ -191,7 +191,9 @@ export const getFocusables = (focusablesRef) => {
|
|
|
191
191
|
if (!focusablesRef.current)
|
|
192
192
|
return [];
|
|
193
193
|
const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
|
|
194
|
-
return [...focusablesRef.current.querySelectorAll(selector)].filter(el => el instanceof HTMLElement &&
|
|
194
|
+
return [...focusablesRef.current.querySelectorAll(selector)].filter(el => el instanceof HTMLElement &&
|
|
195
|
+
!el.hasAttribute('disabled') &&
|
|
196
|
+
el.getAttribute('tabindex') !== '-1');
|
|
195
197
|
};
|
|
196
198
|
/**
|
|
197
199
|
* Generator that returns triple of subsequent values in the given array.
|
package/lib/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AAI5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;AAC/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,SAAS,KAAK,WAAW,CAAC;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC;AAEnE,gFAAgF;AAChF,MAAM,UAAU,QAAQ,CAEtB,IAAO,EACP,QAAgB;IAEhB,IAAI,OAAY,CAAC;IACjB,OAAO,CAAC,GAAG,IAAI,EAAE,EAAE;QACjB,MAAM,QAAQ,GAAG,GAAG,EAAE;YACpB,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;QACF,YAAY,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAC;AACJ,CAAC;AAED,qCAAqC;AACrC,MAAM,UAAU,OAAO,CACrB,GAAM,EACN,IAAO;IAEP,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AACzD,CAAC;AAED,sBAAsB;AACtB,MAAM,UAAU,OAAO,CAAsC,GAAM,EAAE,KAAU;IAC7E,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QACjB,GAAG,CAAC,EAAE,CAAC,GAAI,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AAO,EAAE,KAAK,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,IAAc,EACd,CAAuC,EACvC,MAAc,EACd,EACE,KAAK,GAAG,IAAI,CAAC,MAAM,EACnB,SAAS,KAIP,EAAE,EACN,EAAE;IACF,MAAM,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;IAEtC,MAAM,QAAQ,GACZ,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEvF,IAAI,SAAS,IAAI,CAAC,CAAC,YAAY,IAAI,IAAI,CAAC;QAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;IAElF,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACzE,CAAC,CAAC","sourcesContent":["import { Fragment, RefObject } from 'react';\n\nimport { TranslationFunction, TranslationPack } from '../i18n';\n\nexport const windowIsAvailable = typeof window !== 'undefined';\nexport const navigatorIsAvailable = typeof navigator !== 'undefined';\nexport const documentIsAvailable = typeof document !== 'undefined';\n\n/** @returns Debounced function that can be called only once in given timeout */\nexport function debounce<F extends (...args: any[]) => any>(\n this: any,\n func: F,\n waitTime: number\n): (...args: Parameters<F>) => void {\n let timeout: any;\n return (...args) => {\n const waitFunc = () => {\n timeout = null;\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(waitFunc, waitTime);\n };\n}\n\n/** Check for an existence of prop */\nexport function hasProp<T extends object, P extends PropertyKey>(\n obj: T,\n prop: P\n): obj is T & { [key in P]: unknown } {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n// Add some context...\nexport function bindAll<T extends object, K extends keyof T>(obj: T, names: K[]): void {\n names.forEach(fn => {\n obj[fn] = (obj[fn] as unknown as Function).bind(obj);\n });\n}\n\n// Capitalize\nexport function cap(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/** Generate unique id for elements */\nexport function createUID(): string {\n return `_${Math.random().toString(36).substr(2, 9)}`;\n}\n\n/** Returns array with numbers from given range */\nexport function range(start: number, end: number): number[] {\n return Array(end - start + 1)\n .fill(0)\n .map((_: any, idx: number) => start + idx);\n}\n\n/** Return an array of strings and regex replaced components */\nexport function replaceMatchWithElement(\n str: string,\n re: RegExp,\n render: (match: string) => JSX.Element\n) {\n const arr: (string | JSX.Element)[] = [];\n\n // Only loop for stateful regexes.\n if (re.global || re.sticky) {\n let currIdx = 0;\n let match: RegExpExecArray | null;\n\n // eslint-disable-next-line no-cond-assign\n while ((match = re.exec(str))) {\n arr.push(str.slice(currIdx, match.index), render(match[0]));\n\n currIdx = match.index + match[0].length;\n }\n\n arr.push(str.slice(currIdx));\n } else {\n const match = re.exec(str);\n if (!match) arr.push(str);\n else {\n arr.push(\n str.slice(0, match.index),\n render(match[0]),\n str.slice(match.index + match[0].length)\n );\n }\n }\n\n return arr.flatMap((item, idx) => {\n if (!item) return [];\n\n return <Fragment key={idx}>{item}</Fragment>;\n });\n}\n\n/** Get scrollbar width */\nexport function getScrollbarWidth(): number {\n const scrollDiv = document.createElement('div');\n const divSize = '50px';\n let size = 0;\n\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = `-${divSize}`;\n scrollDiv.style.width = divSize;\n scrollDiv.style.height = divSize;\n scrollDiv.style.overflow = 'scroll';\n\n document.body.appendChild(scrollDiv);\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n\n return size;\n}\n\n/** Test element for overflow */\nexport function testElForOverflow(el: Element) {\n return [el.scrollWidth > el.clientWidth, el.scrollHeight > el.clientHeight];\n}\n\n/** Used mostly to trigger css transition after DOM append */\nexport function reflow(node?: HTMLElement | null): number {\n node = node ?? document.body;\n return node.offsetWidth;\n}\n\nexport function loadScript(\n src: string,\n onLoad: (this: HTMLScriptElement, ev: Event) => any,\n onError: (this: HTMLScriptElement, ev: ErrorEvent) => any\n) {\n const scriptElem = document.createElement('script');\n scriptElem.src = src;\n\n scriptElem.addEventListener('load', onLoad);\n scriptElem.addEventListener('error', onError);\n document.head.appendChild(scriptElem);\n}\n\nexport function deepGet(obj: object, keys: PropertyKey[]): any {\n let rtn: any = obj;\n\n const found = keys.every(key => {\n if (typeof rtn === 'object' && rtn) {\n rtn = rtn[key];\n return true;\n }\n return false;\n });\n\n if (found) return rtn;\n\n return undefined;\n}\n\n/** Compares two objects by comparing each key value regardless of order. */\nexport function deepObjectComparison(valueA: any, valueB: any): boolean {\n // If the values are strictly equal, return true\n if (valueA === valueB) return true;\n\n // If the values are not objects and are not equal, return false\n if (\n typeof valueA !== 'object' ||\n typeof valueB !== 'object' ||\n valueA === null ||\n valueB === null\n )\n return false;\n\n const keysA = Object.keys(valueA);\n const keysB = Object.keys(valueB);\n\n // If the objects have different numbers of keys, return false\n if (keysA.length !== keysB.length) return false;\n\n for (let i = 0; i < keysA.length; i += 1) {\n const key = keysA[i];\n // If there is not a 1:1 mapping of keys between the objects, return false\n if (!keysB.includes(key)) return false;\n\n if (typeof valueA[key] === 'function' || typeof valueB[key] === 'function') {\n // If the value of a given key is a function, and the functions are not equivalent between the objects, return false\n if (valueA[key].toString() !== valueB[key].toString()) return false;\n // If all checks have passed thus far, compare the next set of nested values\n } else if (!deepObjectComparison(valueA[key], valueB[key])) return false;\n }\n\n // If all checks have passed, the objects are deeply equal\n return true;\n}\n\nexport function defineSmartGetter(\n obj: Record<string, any>,\n key: string,\n valueFn: (...args: any[]) => any\n) {\n Object.defineProperty(obj, key, {\n get: () => {\n delete obj[key];\n obj[key] = valueFn();\n return obj[key];\n },\n enumerable: true,\n configurable: true\n });\n\n return obj;\n}\n\nexport function tryCatch<T>(tryFn: () => T): T | undefined;\nexport function tryCatch<T, C>(tryFn: () => T, catchFn: (err: unknown) => C): T | C;\nexport function tryCatch<T, C, F>(\n tryFn: () => T,\n catchFn: ((err: unknown) => C) | undefined,\n finallyFn: () => F\n): F;\nexport function tryCatch<T, C, F>(\n tryFn: () => T,\n catchFn?: (err: unknown) => C,\n finallyFn?: () => F\n): T | C | F | undefined {\n try {\n return tryFn();\n } catch (err) {\n if (catchFn) return catchFn(err);\n } finally {\n // eslint-disable-next-line no-unsafe-finally\n if (finallyFn) return finallyFn();\n }\n}\n\n/**\n * Returns normalized list of elements, ie. it de-reference the element from the Ref if needed.\n * @param els a list of elements or refs to normalize.\n * @returns a new list of the same length with the de-referenced elements.\n */\nexport const normalizeElements = <T extends Element = Element>(\n els: (T | null | RefObject<T | null>)[]\n) => {\n return els.map((el: T | null | RefObject<T | null>) => {\n if (!el) return null;\n return el instanceof Element ? el : el.current;\n });\n};\n\n/**\n * Returns all valid focusable elements within a given ref.\n * @param focusablesRef The ref containing the element to search for focusable elements within.\n * @returns a list of valid focusable elements within the given ref.\n */\nexport const getFocusables = (focusablesRef: RefObject<HTMLElement>) => {\n if (!focusablesRef.current) return [];\n\n const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])';\n\n return ([...focusablesRef.current.querySelectorAll(selector)] as HTMLElement[]).filter(\n el => el instanceof HTMLElement && !el.hasAttribute('disabled')\n );\n};\n\n/**\n * Generator that returns triple of subsequent values in the given array.\n * @param array source array\n * @returns triple of previous, current and next value on every call\n */\nexport function* triple<T>(\n array: T[]\n): Generator<{ prev?: T; current: T; next?: T }, undefined, unknown> {\n for (let i = 0; i < array.length; i += 1) {\n yield { prev: array[i - 1], current: array[i], next: array[i + 1] };\n }\n return undefined;\n}\n\n/**\n * Escape special characters in order to pass a string to the RegExp constructor.\n * @param s a string.\n * @returns a string with special characters escaped.\n */\nexport const escapeRegExp = (s: string): string => String(s).replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\n/**\n * Generate a RegExp with a string parameter.\n * @param s The string to match.\n * @param type How to match.\n * @param flags Standard RegExp flags.\n * @returns A RegExp with the match pattern.\n */\nexport const createStringMatcher = (\n s: string,\n type: 'contains' | 'start' | 'boundary' = 'contains',\n flags: string = 'i'\n): RegExp => {\n const escaped = escapeRegExp(s);\n let pattern: string = escaped;\n\n if (type === 'start') {\n pattern = `^${escaped}`;\n } else if (type === 'boundary') {\n pattern = `(?:^|\\\\s)${escaped}`;\n }\n\n return new RegExp(pattern, flags);\n};\n\n/**\n * Function generates string representation of the given list accordingly to localization rules of given locale.\n * @param list list of strings to format\n * @param t translation function used internally\n * @param locale locale tag to get the localization rules for\n * @param options formatting options\n * @returns\n */\nexport const formatListToLocaleString = (\n list: string[],\n t: TranslationFunction<TranslationPack>,\n locale: string,\n {\n count = list.length,\n separator\n }: {\n count?: number;\n separator?: string;\n } = {}\n) => {\n const remainder = count - list.length;\n\n const toFormat =\n remainder > 0 ? [...list, t('more_count', [remainder], { count: remainder })] : list;\n\n if (separator || !('ListFormat' in Intl)) return toFormat.join(separator ?? ', ');\n\n return new Intl.ListFormat(locale, { style: 'long' }).format(toFormat);\n};\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AAI5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;AAC/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,SAAS,KAAK,WAAW,CAAC;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC;AAEnE,gFAAgF;AAChF,MAAM,UAAU,QAAQ,CAEtB,IAAO,EACP,QAAgB;IAEhB,IAAI,OAAY,CAAC;IACjB,OAAO,CA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IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;IAElF,OAAO,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACzE,CAAC,CAAC","sourcesContent":["import { Fragment, RefObject } from 'react';\n\nimport { TranslationFunction, TranslationPack } from '../i18n';\n\nexport const windowIsAvailable = typeof window !== 'undefined';\nexport const navigatorIsAvailable = typeof navigator !== 'undefined';\nexport const documentIsAvailable = typeof document !== 'undefined';\n\n/** @returns Debounced function that can be called only once in given timeout */\nexport function debounce<F extends (...args: any[]) => any>(\n this: any,\n func: F,\n waitTime: number\n): (...args: Parameters<F>) => void {\n let timeout: any;\n return (...args) => {\n const waitFunc = () => {\n timeout = null;\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(waitFunc, waitTime);\n };\n}\n\n/** Check for an existence of prop */\nexport function hasProp<T extends object, P extends PropertyKey>(\n obj: T,\n prop: P\n): obj is T & { [key in P]: unknown } {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n// Add some context...\nexport function bindAll<T extends object, K extends keyof T>(obj: T, names: K[]): void {\n names.forEach(fn => {\n obj[fn] = (obj[fn] as unknown as Function).bind(obj);\n });\n}\n\n// Capitalize\nexport function cap(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/** Generate unique id for elements */\nexport function createUID(): string {\n return `_${Math.random().toString(36).substr(2, 9)}`;\n}\n\n/** Returns array with numbers from given range */\nexport function range(start: number, end: number): number[] {\n return Array(end - start + 1)\n .fill(0)\n .map((_: any, idx: number) => start + idx);\n}\n\n/** Return an array of strings and regex replaced components */\nexport function replaceMatchWithElement(\n str: string,\n re: RegExp,\n render: (match: string) => JSX.Element\n) {\n const arr: (string | JSX.Element)[] = [];\n\n // Only loop for stateful regexes.\n if (re.global || re.sticky) {\n let currIdx = 0;\n let match: RegExpExecArray | null;\n\n // eslint-disable-next-line no-cond-assign\n while ((match = re.exec(str))) {\n arr.push(str.slice(currIdx, match.index), render(match[0]));\n\n currIdx = match.index + match[0].length;\n }\n\n arr.push(str.slice(currIdx));\n } else {\n const match = re.exec(str);\n if (!match) arr.push(str);\n else {\n arr.push(\n str.slice(0, match.index),\n render(match[0]),\n str.slice(match.index + match[0].length)\n );\n }\n }\n\n return arr.flatMap((item, idx) => {\n if (!item) return [];\n\n return <Fragment key={idx}>{item}</Fragment>;\n });\n}\n\n/** Get scrollbar width */\nexport function getScrollbarWidth(): number {\n const scrollDiv = document.createElement('div');\n const divSize = '50px';\n let size = 0;\n\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = `-${divSize}`;\n scrollDiv.style.width = divSize;\n scrollDiv.style.height = divSize;\n scrollDiv.style.overflow = 'scroll';\n\n document.body.appendChild(scrollDiv);\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n\n return size;\n}\n\n/** Test element for overflow */\nexport function testElForOverflow(el: Element) {\n return [el.scrollWidth > el.clientWidth, el.scrollHeight > el.clientHeight];\n}\n\n/** Used mostly to trigger css transition after DOM append */\nexport function reflow(node?: HTMLElement | null): number {\n node = node ?? document.body;\n return node.offsetWidth;\n}\n\nexport function loadScript(\n src: string,\n onLoad: (this: HTMLScriptElement, ev: Event) => any,\n onError: (this: HTMLScriptElement, ev: ErrorEvent) => any\n) {\n const scriptElem = document.createElement('script');\n scriptElem.src = src;\n\n scriptElem.addEventListener('load', onLoad);\n scriptElem.addEventListener('error', onError);\n document.head.appendChild(scriptElem);\n}\n\nexport function deepGet(obj: object, keys: PropertyKey[]): any {\n let rtn: any = obj;\n\n const found = keys.every(key => {\n if (typeof rtn === 'object' && rtn) {\n rtn = rtn[key];\n return true;\n }\n return false;\n });\n\n if (found) return rtn;\n\n return undefined;\n}\n\n/** Compares two objects by comparing each key value regardless of order. */\nexport function deepObjectComparison(valueA: any, valueB: any): boolean {\n // If the values are strictly equal, return true\n if (valueA === valueB) return true;\n\n // If the values are not objects and are not equal, return false\n if (\n typeof valueA !== 'object' ||\n typeof valueB !== 'object' ||\n valueA === null ||\n valueB === null\n )\n return false;\n\n const keysA = Object.keys(valueA);\n const keysB = Object.keys(valueB);\n\n // If the objects have different numbers of keys, return false\n if (keysA.length !== keysB.length) return false;\n\n for (let i = 0; i < keysA.length; i += 1) {\n const key = keysA[i];\n // If there is not a 1:1 mapping of keys between the objects, return false\n if (!keysB.includes(key)) return false;\n\n if (typeof valueA[key] === 'function' || typeof valueB[key] === 'function') {\n // If the value of a given key is a function, and the functions are not equivalent between the objects, return false\n if (valueA[key].toString() !== valueB[key].toString()) return false;\n // If all checks have passed thus far, compare the next set of nested values\n } else if (!deepObjectComparison(valueA[key], valueB[key])) return false;\n }\n\n // If all checks have passed, the objects are deeply equal\n return true;\n}\n\nexport function defineSmartGetter(\n obj: Record<string, any>,\n key: string,\n valueFn: (...args: any[]) => any\n) {\n Object.defineProperty(obj, key, {\n get: () => {\n delete obj[key];\n obj[key] = valueFn();\n return obj[key];\n },\n enumerable: true,\n configurable: true\n });\n\n return obj;\n}\n\nexport function tryCatch<T>(tryFn: () => T): T | undefined;\nexport function tryCatch<T, C>(tryFn: () => T, catchFn: (err: unknown) => C): T | C;\nexport function tryCatch<T, C, F>(\n tryFn: () => T,\n catchFn: ((err: unknown) => C) | undefined,\n finallyFn: () => F\n): F;\nexport function tryCatch<T, C, F>(\n tryFn: () => T,\n catchFn?: (err: unknown) => C,\n finallyFn?: () => F\n): T | C | F | undefined {\n try {\n return tryFn();\n } catch (err) {\n if (catchFn) return catchFn(err);\n } finally {\n // eslint-disable-next-line no-unsafe-finally\n if (finallyFn) return finallyFn();\n }\n}\n\n/**\n * Returns normalized list of elements, ie. it de-reference the element from the Ref if needed.\n * @param els a list of elements or refs to normalize.\n * @returns a new list of the same length with the de-referenced elements.\n */\nexport const normalizeElements = <T extends Element = Element>(\n els: (T | null | RefObject<T | null>)[]\n) => {\n return els.map((el: T | null | RefObject<T | null>) => {\n if (!el) return null;\n return el instanceof Element ? el : el.current;\n });\n};\n\n/**\n * Returns all valid focusable elements within a given ref.\n * @param focusablesRef The ref containing the element to search for focusable elements within.\n * @returns a list of valid focusable elements within the given ref.\n */\nexport const getFocusables = (focusablesRef: RefObject<HTMLElement>) => {\n if (!focusablesRef.current) return [];\n\n const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])';\n\n return ([...focusablesRef.current.querySelectorAll(selector)] as HTMLElement[]).filter(\n el =>\n el instanceof HTMLElement &&\n !el.hasAttribute('disabled') &&\n el.getAttribute('tabindex') !== '-1'\n );\n};\n\n/**\n * Generator that returns triple of subsequent values in the given array.\n * @param array source array\n * @returns triple of previous, current and next value on every call\n */\nexport function* triple<T>(\n array: T[]\n): Generator<{ prev?: T; current: T; next?: T }, undefined, unknown> {\n for (let i = 0; i < array.length; i += 1) {\n yield { prev: array[i - 1], current: array[i], next: array[i + 1] };\n }\n return undefined;\n}\n\n/**\n * Escape special characters in order to pass a string to the RegExp constructor.\n * @param s a string.\n * @returns a string with special characters escaped.\n */\nexport const escapeRegExp = (s: string): string => String(s).replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\n/**\n * Generate a RegExp with a string parameter.\n * @param s The string to match.\n * @param type How to match.\n * @param flags Standard RegExp flags.\n * @returns A RegExp with the match pattern.\n */\nexport const createStringMatcher = (\n s: string,\n type: 'contains' | 'start' | 'boundary' = 'contains',\n flags: string = 'i'\n): RegExp => {\n const escaped = escapeRegExp(s);\n let pattern: string = escaped;\n\n if (type === 'start') {\n pattern = `^${escaped}`;\n } else if (type === 'boundary') {\n pattern = `(?:^|\\\\s)${escaped}`;\n }\n\n return new RegExp(pattern, flags);\n};\n\n/**\n * Function generates string representation of the given list accordingly to localization rules of given locale.\n * @param list list of strings to format\n * @param t translation function used internally\n * @param locale locale tag to get the localization rules for\n * @param options formatting options\n * @returns\n */\nexport const formatListToLocaleString = (\n list: string[],\n t: TranslationFunction<TranslationPack>,\n locale: string,\n {\n count = list.length,\n separator\n }: {\n count?: number;\n separator?: string;\n } = {}\n) => {\n const remainder = count - list.length;\n\n const toFormat =\n remainder > 0 ? [...list, t('more_count', [remainder], { count: remainder })] : list;\n\n if (separator || !('ListFormat' in Intl)) return toFormat.join(separator ?? ', ');\n\n return new Intl.ListFormat(locale, { style: 'long' }).format(toFormat);\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-dev.1.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
|
"author": "Pegasystems",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"styled-components": "^5.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@storybook/addon-a11y": "^6.4.
|
|
37
|
-
"@storybook/addon-actions": "^6.4.
|
|
36
|
+
"@storybook/addon-a11y": "^6.4.12",
|
|
37
|
+
"@storybook/addon-actions": "^6.4.12",
|
|
38
38
|
"@storybook/addon-knobs": "^6.4.0",
|
|
39
|
-
"@storybook/addon-storysource": "^6.4.
|
|
40
|
-
"@storybook/addon-toolbars": "^6.4.
|
|
41
|
-
"@storybook/addons": "^6.4.
|
|
42
|
-
"@storybook/react": "^6.4.
|
|
39
|
+
"@storybook/addon-storysource": "^6.4.12",
|
|
40
|
+
"@storybook/addon-toolbars": "^6.4.12",
|
|
41
|
+
"@storybook/addons": "^6.4.12",
|
|
42
|
+
"@storybook/react": "^6.4.12",
|
|
43
43
|
"@storybook/testing-react": "0.0.18",
|
|
44
|
-
"@storybook/theming": "^6.4.
|
|
44
|
+
"@storybook/theming": "^6.4.12",
|
|
45
45
|
"enzyme": "^3.11.0",
|
|
46
46
|
"typescript": "~4.5.2"
|
|
47
47
|
}
|