@pega/cosmos-react-core 4.0.0-dev.10.1 → 4.0.0-dev.11.1
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/Actions/Actions.d.ts +1 -0
- package/lib/components/Actions/Actions.d.ts.map +1 -1
- package/lib/components/Actions/Actions.js +3 -3
- package/lib/components/Actions/Actions.js.map +1 -1
- package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -1
- package/lib/components/AdditionalInfo/AdditionalInfo.js +1 -1
- package/lib/components/AdditionalInfo/AdditionalInfo.js.map +1 -1
- package/lib/components/DateTime/DateTime.types.d.ts +1 -5
- package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
- package/lib/components/DateTime/DateTime.types.js.map +1 -1
- package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateInput.js +51 -34
- package/lib/components/DateTime/Input/DateInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.js +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateTime.styles.d.ts +1 -0
- package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateTime.styles.js +8 -0
- package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.js +109 -115
- package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.types.d.ts +16 -0
- package/lib/components/DateTime/Input/DateTimeInput.types.d.ts.map +1 -0
- package/lib/components/DateTime/Input/DateTimeInput.types.js +2 -0
- package/lib/components/DateTime/Input/DateTimeInput.types.js.map +1 -0
- package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/MonthInput.js +37 -35
- package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
- package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/QuarterInput.js +29 -31
- package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
- package/lib/components/DateTime/Input/TimeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/TimeInput.js +49 -30
- package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.js +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -1
- package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/WeekInput.js +23 -29
- package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
- package/lib/components/DateTime/Input/useAutoFocusNextInput.js +1 -1
- package/lib/components/DateTime/Input/useAutoFocusNextInput.js.map +1 -1
- package/lib/components/DateTime/Input/utils.d.ts +3 -1
- package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
- package/lib/components/DateTime/Input/utils.js +14 -3
- package/lib/components/DateTime/Input/utils.js.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.js +4 -0
- package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.styles.js +6 -2
- package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.js +51 -17
- package/lib/components/DateTime/Picker/DatePicker.js.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.styles.js +5 -5
- package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.types.d.ts +18 -1
- package/lib/components/DateTime/Picker/DatePicker.types.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.types.js.map +1 -1
- package/lib/components/DateTime/Picker/DateRangePicker.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/DateRangePicker.js +4 -7
- package/lib/components/DateTime/Picker/DateRangePicker.js.map +1 -1
- package/lib/components/DateTime/Picker/TimePicker.d.ts +1 -1
- package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/TimePicker.js +36 -31
- package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
- package/lib/components/DateTime/Picker/utils.d.ts +2 -0
- package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/utils.js +7 -0
- package/lib/components/DateTime/Picker/utils.js.map +1 -1
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +3 -1
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.js +21 -21
- package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts +1 -0
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.styles.js +9 -5
- package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +1 -1
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/QRCode/QRCode.d.ts.map +1 -1
- package/lib/components/QRCode/QRCode.js +12 -2
- package/lib/components/QRCode/QRCode.js.map +1 -1
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.js +5 -3
- package/lib/components/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/SummaryList/SummaryList.d.ts +3 -2
- package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
- package/lib/components/SummaryList/SummaryList.js +7 -4
- package/lib/components/SummaryList/SummaryList.js.map +1 -1
- package/lib/hooks/useArrows.d.ts +2 -1
- package/lib/hooks/useArrows.d.ts.map +1 -1
- package/lib/hooks/useArrows.js +7 -3
- package/lib/hooks/useArrows.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +21 -2
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/i18n/default.d.ts +21 -2
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +25 -4
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +21 -2
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/theme/theme.d.ts +0 -156
- package/lib/theme/theme.d.ts.map +1 -1
- package/lib/theme/themeDefinition.json +0 -78
- package/lib/theme/themeOverrides.schema.json +2 -2
- package/lib/theme/themes/buildTheme.json +5 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,OAAO,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,
|
|
1
|
+
{"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,OAAO,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,OAAyB,MAAM,YAAY,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MA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AU,CAAC,GACP,GACE,CACd,IACI,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, FC, useMemo } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Actions, { ActionsProps } from '../Actions';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Count from '../Badges/Count';\nimport Icon from '../Icon';\nimport Card, { CardHeader, CardContent, CardFooter } from '../Card';\nimport EmptyState, { EmptyStateProps } from '../EmptyState';\nimport { ForwardProps, NoChildrenProp, OmitStrict, Action } from '../../types';\nimport { omitProps } from '../../styles';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport SummaryItem, { SummaryItemProps } from '../SummaryItem';\nimport Progress from '../Progress';\nimport Button from '../Button';\nimport ErrorState from '../ErrorState';\nimport type { ErrorStateProps } from '../ErrorState';\n\nexport interface SummaryListProps extends NoChildrenProp {\n /** Name of the utility to be used as its heading along with associated actions and aria attributes. */\n name?: string;\n /** Identifier for the icon within Pega icons. */\n icon?: string;\n /** Integer representing the total count of items for a list utility dataset. */\n count?: number;\n /** Top level actions for the utility. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n /** If the utility is in a state of fetching data. */\n loading?: boolean | string;\n /** An array of SummaryListItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */\n items: SummaryListItem[];\n /** User click initiated callback for when to show view all modal. List lengths less than the count prop will display a \"View all\" button with this function is bound to. */\n onViewAll?: (callback: Function) => void;\n /** A simple message to display when there are no items. */\n noItemsText?: EmptyStateProps['message'];\n /**\n * Indicate an error occurred while acquiring data for the list.\n * The default error state may be overridden with custom props.\n */\n error?: boolean | ErrorStateProps;\n /** Ref for the SummaryList's root element. */\n ref?: Ref<HTMLElement>;\n}\n\nexport interface SummaryListItem\n extends OmitStrict<SummaryItemProps, 'actions'>,\n Pick<ActionsProps, 'contextualLabel'>,\n ForwardProps {\n /** A unique id to represent the item. */\n id: string;\n /** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n}\n\nexport const StyledSummaryListContent = styled(CardContent).withConfig<{ loading?: boolean }>(\n omitProps('loading')\n)(\n ({ theme, loading }) => css`\n ${loading &&\n css`\n min-height: 4rem;\n `}\n\n &:not(:last-child) > ul > li:last-child {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListContent.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListItem: typeof SummaryItem = styled(SummaryItem)(\n ({ theme }) =>\n css`\n padding: ${theme.base.spacing} 0;\n\n &:not(:last-child) {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListItem.defaultProps = defaultThemeProp;\n\nexport const SummaryListItems = ({ name, items }: Pick<SummaryListProps, 'items' | 'name'>) => {\n const t = useI18n();\n return (\n <ul>\n {items.map(({ id, actions: itemActions, contextualLabel, ...restItemProps }) => {\n return (\n <StyledSummaryListItem\n key={id}\n {...restItemProps}\n forwardedAs='li'\n actions={\n itemActions && (\n <Actions\n items={itemActions}\n contextualLabel={\n name && contextualLabel\n ? t('action_from_summarylist_heading', [contextualLabel, name])\n : contextualLabel\n }\n />\n )\n }\n />\n );\n })}\n </ul>\n );\n};\n\nconst SummaryList: FC<SummaryListProps & ForwardProps> = forwardRef(\n (\n {\n icon,\n name,\n count,\n actions,\n items,\n onViewAll,\n loading,\n noItemsText,\n error,\n ...restProps\n }: PropsWithoutRef<SummaryListProps>,\n ref: SummaryListProps['ref']\n ) => {\n const t = useI18n();\n\n const content = useMemo(() => {\n if (loading) {\n return (\n <Progress placement='local' message={typeof loading === 'string' ? loading : undefined} />\n );\n }\n\n if (error) {\n return <ErrorState {...(error === true ? {} : error)} />;\n }\n\n return items.length > 0 ? (\n <SummaryListItems name={name} items={items} />\n ) : (\n <EmptyState message={noItemsText} />\n );\n }, [loading, items, noItemsText, error]);\n\n return (\n <Card ref={ref} {...restProps}>\n {(icon || name || typeof count === 'number' || actions) && (\n <CardHeader>\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {name && <Text variant='h2'>{name}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n </Flex>\n {actions && <Actions items={actions} />}\n </CardHeader>\n )}\n\n <StyledSummaryListContent loading={loading}>{content}</StyledSummaryListContent>\n\n {!error && typeof count === 'number' && count > items.length && onViewAll && (\n <CardFooter justify='center'>\n <Button\n variant='link'\n aria-label={name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all')}\n onClick={onViewAll}\n >\n {t('view_all')}\n </Button>\n </CardFooter>\n )}\n </Card>\n );\n }\n);\n\nexport default SummaryList;\n"]}
|
package/lib/hooks/useArrows.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import { RefObject, DependencyList } from 'react';
|
|
|
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)
|
|
5
5
|
*/
|
|
6
|
-
declare const useArrows: (ref: RefObject<HTMLElement>, { cycle, selector, dir, allowTabFocus }?: {
|
|
6
|
+
declare const useArrows: (ref: RefObject<HTMLElement>, { cycle, selector, dir, allowTabFocus, updateTabIndex }?: {
|
|
7
7
|
cycle?: boolean | undefined;
|
|
8
8
|
selector?: string | undefined;
|
|
9
9
|
dir?: "up-down" | "left-right" | undefined;
|
|
10
10
|
allowTabFocus?: boolean | undefined;
|
|
11
|
+
updateTabIndex?: boolean | undefined;
|
|
11
12
|
}, dependencies?: DependencyList) => void;
|
|
12
13
|
export default useArrows;
|
|
13
14
|
//# 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,cAAc,EAAE,MAAM,OAAO,CAAC;AAW1E;;;GAGG;AACH,QAAA,MAAM,SAAS,QACR,UAAU,WAAW,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;;;;;;yCA+G5B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/hooks/useArrows.js
CHANGED
|
@@ -16,7 +16,7 @@ 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', allowTabFocus = true } = {},
|
|
19
|
+
dir = 'up-down', allowTabFocus = true, updateTabIndex = true } = {},
|
|
20
20
|
/** Pass this prop in the internal dependencies when list is dynamic */
|
|
21
21
|
dependencies = []) => {
|
|
22
22
|
const [NextKey, PrevKey] = dir === 'up-down' ? ['ArrowDown', 'ArrowUp'] : ['ArrowRight', 'ArrowLeft'];
|
|
@@ -62,7 +62,9 @@ dependencies = []) => {
|
|
|
62
62
|
newFocusIdx = lastIdx;
|
|
63
63
|
}
|
|
64
64
|
else if (e.key === 'Enter') {
|
|
65
|
-
|
|
65
|
+
if (updateTabIndex) {
|
|
66
|
+
setTabIndexes(el);
|
|
67
|
+
}
|
|
66
68
|
return;
|
|
67
69
|
}
|
|
68
70
|
else if (e.key === NextKey) {
|
|
@@ -94,7 +96,9 @@ dependencies = []) => {
|
|
|
94
96
|
const el = ref.current;
|
|
95
97
|
if (!el)
|
|
96
98
|
return;
|
|
97
|
-
|
|
99
|
+
if (updateTabIndex) {
|
|
100
|
+
setTabIndexes(el);
|
|
101
|
+
}
|
|
98
102
|
el.addEventListener('keydown', listener);
|
|
99
103
|
return () => {
|
|
100
104
|
el.removeEventListener('keydown', listener);
|
|
@@ -1 +1 @@
|
|
|
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,MAAM,UAAU,CAAC;AAE/C,MAAM,SAAS,GAAG;;;;;CAKjB,CAAC;AAEF;;;GAGG;AACH,MAAM,SAAS,GAAG,CAChB,GAA2B,EAC3B;AACE,yKAAyK;AACzK,KAAK,GAAG,IAAI;AACZ,wPAAwP;AACxP,QAAQ,GAAG,SAAS;AACpB,uDAAuD;AACvD,GAAG,GAAG,SAAS,EACf,aAAa,GAAG,IAAI,
|
|
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,MAAM,UAAU,CAAC;AAE/C,MAAM,SAAS,GAAG;;;;;CAKjB,CAAC;AAEF;;;GAGG;AACH,MAAM,SAAS,GAAG,CAChB,GAA2B,EAC3B;AACE,yKAAyK;AACzK,KAAK,GAAG,IAAI;AACZ,wPAAwP;AACxP,QAAQ,GAAG,SAAS;AACpB,uDAAuD;AACvD,GAAG,GAAG,SAAS,EACf,aAAa,GAAG,IAAI,EACpB,cAAc,GAAG,IAAI,KAOnB,EAAE;AACN,wEAAwE;AACxE,eAA+B,EAAE,EACjC,EAAE;IACF,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GACtB,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC,CA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AG,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;QAChB,IAAI,cAAc,EAAE;YAClB,aAAa,CAAC,EAAE,CAAC,CAAC;SACnB;QACD,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 allowTabFocus = true,\n updateTabIndex = true\n }: {\n cycle?: boolean;\n selector?: string;\n dir?: 'up-down' | 'left-right';\n allowTabFocus?: boolean;\n updateTabIndex?: boolean;\n } = {},\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 if (allowTabFocus) (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 const el = ref.current;\n if (!el) return;\n if (['Home', 'End', NextKey, PrevKey].includes(e.key)) e.preventDefault();\n\n if (!documentIsAvailable) 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 if (updateTabIndex) {\n setTabIndexes(el);\n }\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 if (updateTabIndex) {\n setTabIndexes(el);\n }\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
|
@@ -79,6 +79,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
79
79
|
preview_of_noun: string;
|
|
80
80
|
go_to_noun: string;
|
|
81
81
|
insert_noun: string;
|
|
82
|
+
actions_for: string;
|
|
82
83
|
edited: string;
|
|
83
84
|
done: string;
|
|
84
85
|
uploading: string;
|
|
@@ -196,6 +197,10 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
196
197
|
close_calendar_button_a11y: string;
|
|
197
198
|
open_time_button_a11y: string;
|
|
198
199
|
close_time_button_a11y: string;
|
|
200
|
+
set_current_date_and_time_a11y: string;
|
|
201
|
+
set_current_date_a11y: string;
|
|
202
|
+
clear_current_date_and_time: string;
|
|
203
|
+
clear_current_date: string;
|
|
199
204
|
picker_next_month: string;
|
|
200
205
|
picker_prev_month: string;
|
|
201
206
|
picker_jump_to_month_and_year: string;
|
|
@@ -217,9 +222,11 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
217
222
|
select_search_filter: string;
|
|
218
223
|
recent_searches: string;
|
|
219
224
|
clear_search: string;
|
|
225
|
+
search_instructions: string;
|
|
226
|
+
action_from_summarylist_heading: string;
|
|
220
227
|
utilities_summary: string;
|
|
221
|
-
|
|
222
|
-
|
|
228
|
+
expand_summary: string;
|
|
229
|
+
collapse_summary: string;
|
|
223
230
|
expand_utilities_panel: string;
|
|
224
231
|
collapse_utilities_panel: string;
|
|
225
232
|
primary_summary_fields: string;
|
|
@@ -263,6 +270,9 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
263
270
|
stages_case_lifecycle: string;
|
|
264
271
|
stages_default_case_lifecycle: string;
|
|
265
272
|
stages_stage_label: string;
|
|
273
|
+
predictions: string;
|
|
274
|
+
all_predictions: string;
|
|
275
|
+
learn_more: string;
|
|
266
276
|
rte_heading_style: string;
|
|
267
277
|
rte_bold: string;
|
|
268
278
|
rte_italic: string;
|
|
@@ -369,6 +379,15 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
369
379
|
not_authenticated: string;
|
|
370
380
|
context: string;
|
|
371
381
|
chat_context: string;
|
|
382
|
+
bot: string;
|
|
383
|
+
is_typing: string;
|
|
384
|
+
chat_message_at_timestamp: string;
|
|
385
|
+
sender_replied_message: string;
|
|
386
|
+
chat_attachments: string;
|
|
387
|
+
chat_links: string;
|
|
388
|
+
chat_message_status: string;
|
|
389
|
+
opened: string;
|
|
390
|
+
undeliverable: string;
|
|
372
391
|
unique_entities: {
|
|
373
392
|
zero: string;
|
|
374
393
|
one: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/lib/i18n/default.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ declare const _default: {
|
|
|
75
75
|
preview_of_noun: string;
|
|
76
76
|
go_to_noun: string;
|
|
77
77
|
insert_noun: string;
|
|
78
|
+
actions_for: string;
|
|
78
79
|
edited: string;
|
|
79
80
|
done: string;
|
|
80
81
|
uploading: string;
|
|
@@ -192,6 +193,10 @@ declare const _default: {
|
|
|
192
193
|
close_calendar_button_a11y: string;
|
|
193
194
|
open_time_button_a11y: string;
|
|
194
195
|
close_time_button_a11y: string;
|
|
196
|
+
set_current_date_and_time_a11y: string;
|
|
197
|
+
set_current_date_a11y: string;
|
|
198
|
+
clear_current_date_and_time: string;
|
|
199
|
+
clear_current_date: string;
|
|
195
200
|
picker_next_month: string;
|
|
196
201
|
picker_prev_month: string;
|
|
197
202
|
picker_jump_to_month_and_year: string;
|
|
@@ -213,9 +218,11 @@ declare const _default: {
|
|
|
213
218
|
select_search_filter: string;
|
|
214
219
|
recent_searches: string;
|
|
215
220
|
clear_search: string;
|
|
221
|
+
search_instructions: string;
|
|
222
|
+
action_from_summarylist_heading: string;
|
|
216
223
|
utilities_summary: string;
|
|
217
|
-
|
|
218
|
-
|
|
224
|
+
expand_summary: string;
|
|
225
|
+
collapse_summary: string;
|
|
219
226
|
expand_utilities_panel: string;
|
|
220
227
|
collapse_utilities_panel: string;
|
|
221
228
|
primary_summary_fields: string;
|
|
@@ -259,6 +266,9 @@ declare const _default: {
|
|
|
259
266
|
stages_case_lifecycle: string;
|
|
260
267
|
stages_default_case_lifecycle: string;
|
|
261
268
|
stages_stage_label: string;
|
|
269
|
+
predictions: string;
|
|
270
|
+
all_predictions: string;
|
|
271
|
+
learn_more: string;
|
|
262
272
|
rte_heading_style: string;
|
|
263
273
|
rte_bold: string;
|
|
264
274
|
rte_italic: string;
|
|
@@ -365,6 +375,15 @@ declare const _default: {
|
|
|
365
375
|
not_authenticated: string;
|
|
366
376
|
context: string;
|
|
367
377
|
chat_context: string;
|
|
378
|
+
bot: string;
|
|
379
|
+
is_typing: string;
|
|
380
|
+
chat_message_at_timestamp: string;
|
|
381
|
+
sender_replied_message: string;
|
|
382
|
+
chat_attachments: string;
|
|
383
|
+
chat_links: string;
|
|
384
|
+
chat_message_status: string;
|
|
385
|
+
opened: string;
|
|
386
|
+
undeliverable: string;
|
|
368
387
|
unique_entities: {
|
|
369
388
|
zero: string;
|
|
370
389
|
one: 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,wBAm/BE"}
|
package/lib/i18n/default.js
CHANGED
|
@@ -82,6 +82,7 @@ export default {
|
|
|
82
82
|
preview_of_noun: 'Preview of {0}',
|
|
83
83
|
go_to_noun: 'Go to {0}',
|
|
84
84
|
insert_noun: 'Insert {0}',
|
|
85
|
+
actions_for: 'Actions for {0}',
|
|
85
86
|
/* States */
|
|
86
87
|
edited: 'Edited {0}',
|
|
87
88
|
done: 'Done',
|
|
@@ -216,6 +217,10 @@ export default {
|
|
|
216
217
|
close_calendar_button_a11y: 'Close calendar',
|
|
217
218
|
open_time_button_a11y: 'Open time picker',
|
|
218
219
|
close_time_button_a11y: 'Close time picker',
|
|
220
|
+
set_current_date_and_time_a11y: 'Set current date and time',
|
|
221
|
+
set_current_date_a11y: 'Set current date',
|
|
222
|
+
clear_current_date_and_time: 'Clear current date and time',
|
|
223
|
+
clear_current_date: 'Clear current date',
|
|
219
224
|
picker_next_month: 'Next month',
|
|
220
225
|
picker_prev_month: 'Previous month',
|
|
221
226
|
picker_jump_to_month_and_year: 'Jump to month and year selection',
|
|
@@ -244,12 +249,15 @@ export default {
|
|
|
244
249
|
select_search_filter: 'Select search filter',
|
|
245
250
|
recent_searches: 'Recent searches',
|
|
246
251
|
clear_search: 'Clear search',
|
|
252
|
+
search_instructions: 'Use arrow keys to move up and down the suggested results.',
|
|
253
|
+
/* core:SummaryList */
|
|
254
|
+
action_from_summarylist_heading: '{0} from {1}',
|
|
247
255
|
/* work:CaseView */
|
|
248
256
|
utilities_summary: 'Utilities summary',
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
expand_utilities_panel: 'Expand utilities
|
|
252
|
-
collapse_utilities_panel: 'Collapse utilities
|
|
257
|
+
expand_summary: 'Expand summary',
|
|
258
|
+
collapse_summary: 'Collapse summary',
|
|
259
|
+
expand_utilities_panel: 'Expand utilities',
|
|
260
|
+
collapse_utilities_panel: 'Collapse utilities',
|
|
253
261
|
primary_summary_fields: 'Primary summary fields',
|
|
254
262
|
summary_fields: 'Summary fields',
|
|
255
263
|
/* core:FormField */
|
|
@@ -300,6 +308,10 @@ export default {
|
|
|
300
308
|
stages_case_lifecycle: '{0} lifecycle',
|
|
301
309
|
stages_default_case_lifecycle: 'Case lifecycle',
|
|
302
310
|
stages_stage_label: 'Stage {0}, {1}',
|
|
311
|
+
/* work:Predictions */
|
|
312
|
+
predictions: 'Predictions',
|
|
313
|
+
all_predictions: 'All predictions',
|
|
314
|
+
learn_more: 'Learn more',
|
|
303
315
|
/* rte:RichTextEditor */
|
|
304
316
|
rte_heading_style: 'Heading style',
|
|
305
317
|
rte_bold: 'Bold',
|
|
@@ -410,6 +422,15 @@ export default {
|
|
|
410
422
|
not_authenticated: 'Not authenticated',
|
|
411
423
|
context: 'Context',
|
|
412
424
|
chat_context: 'Chat context',
|
|
425
|
+
bot: 'Bot',
|
|
426
|
+
is_typing: '{0} is typing {1}',
|
|
427
|
+
chat_message_at_timestamp: '{0} at {1}.',
|
|
428
|
+
sender_replied_message: '{0} replied {1}',
|
|
429
|
+
chat_attachments: '{0} with {1} attachments',
|
|
430
|
+
chat_links: '{0} with {1} links',
|
|
431
|
+
chat_message_status: 'Message {0}',
|
|
432
|
+
opened: 'Opened',
|
|
433
|
+
undeliverable: 'Undeliverable',
|
|
413
434
|
/* cs:Email */
|
|
414
435
|
unique_entities: {
|
|
415
436
|
zero: 'No unique entities',
|