@pega/cosmos-react-core 10.0.0-build.5.2 → 10.0.0-build.5.21

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.
Files changed (131) hide show
  1. package/lib/components/AIRewrite/AIRewrite.styles.d.ts +19 -3
  2. package/lib/components/AIRewrite/AIRewrite.styles.d.ts.map +1 -1
  3. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -1
  4. package/lib/components/AppShell/AppHeader.styles.js +8 -3
  5. package/lib/components/AppShell/AppHeader.styles.js.map +1 -1
  6. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  7. package/lib/components/AppShell/AppShell.js +16 -6
  8. package/lib/components/AppShell/AppShell.js.map +1 -1
  9. package/lib/components/AppShell/AppShell.styles.d.ts +3 -0
  10. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  11. package/lib/components/AppShell/AppShell.styles.js +33 -17
  12. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  13. package/lib/components/AppShell/AppShell.types.d.ts +33 -0
  14. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  15. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  16. package/lib/components/AppShell/DocumentTabs.d.ts +6 -0
  17. package/lib/components/AppShell/DocumentTabs.d.ts.map +1 -0
  18. package/lib/components/AppShell/DocumentTabs.js +409 -0
  19. package/lib/components/AppShell/DocumentTabs.js.map +1 -0
  20. package/lib/components/AppShell/DocumentTabs.styles.d.ts +231 -0
  21. package/lib/components/AppShell/DocumentTabs.styles.d.ts.map +1 -0
  22. package/lib/components/AppShell/DocumentTabs.styles.js +562 -0
  23. package/lib/components/AppShell/DocumentTabs.styles.js.map +1 -0
  24. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
  25. package/lib/components/AppShell/NavigationListItemWrapper.js +6 -5
  26. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
  27. package/lib/components/AppShell/Operator.d.ts.map +1 -1
  28. package/lib/components/AppShell/Operator.js +8 -5
  29. package/lib/components/AppShell/Operator.js.map +1 -1
  30. package/lib/components/AppShell/ThemeSwitcher.d.ts.map +1 -1
  31. package/lib/components/AppShell/ThemeSwitcher.js +1 -0
  32. package/lib/components/AppShell/ThemeSwitcher.js.map +1 -1
  33. package/lib/components/AppShell/index.d.ts +1 -1
  34. package/lib/components/AppShell/index.d.ts.map +1 -1
  35. package/lib/components/AppShell/index.js.map +1 -1
  36. package/lib/components/Backdrop/Backdrop.js +2 -2
  37. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  38. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  39. package/lib/components/DateTime/Input/DateInput.js +15 -9
  40. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  41. package/lib/components/DateTime/Input/DateTime.styles.d.ts +3 -0
  42. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  43. package/lib/components/DateTime/Input/DateTime.styles.js +25 -0
  44. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  45. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  46. package/lib/components/DateTime/Input/DateTimeInput.js +27 -18
  47. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  48. package/lib/components/DateTime/Input/TimeInput.d.ts +6 -3
  49. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  50. package/lib/components/DateTime/Input/TimeInput.js +54 -24
  51. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  52. package/lib/components/DateTime/Input/WeekInput.d.ts +6 -3
  53. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  54. package/lib/components/DateTime/Input/WeekInput.js +29 -16
  55. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  56. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  57. package/lib/components/DateTime/Picker/Calendar.styles.js +5 -0
  58. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  59. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -1
  60. package/lib/components/DateTime/Picker/DatePicker.styles.js +32 -7
  61. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -1
  62. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  63. package/lib/components/DateTime/Picker/TimePicker.js +10 -2
  64. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  65. package/lib/components/Dialog/Dialog.types.d.ts +23 -13
  66. package/lib/components/Dialog/Dialog.types.d.ts.map +1 -1
  67. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  68. package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
  69. package/lib/components/Dialog/FormDialog.js +50 -18
  70. package/lib/components/Dialog/FormDialog.js.map +1 -1
  71. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  72. package/lib/components/Dialog/InfoDialog.js +6 -4
  73. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  74. package/lib/components/Dialog/TouchDialog.js +1 -1
  75. package/lib/components/Dialog/TouchDialog.js.map +1 -1
  76. package/lib/components/Dialog/TouchDialog.styles.d.ts.map +1 -1
  77. package/lib/components/Dialog/TouchDialog.styles.js +2 -1
  78. package/lib/components/Dialog/TouchDialog.styles.js.map +1 -1
  79. package/lib/components/InlineEdit/InlineEdit.d.ts +6 -0
  80. package/lib/components/InlineEdit/InlineEdit.d.ts.map +1 -1
  81. package/lib/components/InlineEdit/InlineEdit.js +45 -4
  82. package/lib/components/InlineEdit/InlineEdit.js.map +1 -1
  83. package/lib/components/InlineEdit/InlineEdit.styles.d.ts +19 -3
  84. package/lib/components/InlineEdit/InlineEdit.styles.d.ts.map +1 -1
  85. package/lib/components/InlineEdit/InlineEdit.styles.js +38 -20
  86. package/lib/components/InlineEdit/InlineEdit.styles.js.map +1 -1
  87. package/lib/components/Link/Link.d.ts +7 -2
  88. package/lib/components/Link/Link.d.ts.map +1 -1
  89. package/lib/components/Link/Link.js +45 -20
  90. package/lib/components/Link/Link.js.map +1 -1
  91. package/lib/components/Link/Link.test-ids.d.ts +1 -1
  92. package/lib/components/Link/Link.test-ids.d.ts.map +1 -1
  93. package/lib/components/Link/Link.test-ids.js +2 -1
  94. package/lib/components/Link/Link.test-ids.js.map +1 -1
  95. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +19 -3
  96. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  97. package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
  98. package/lib/components/Menu/FlyoutMenuList.js +1 -1
  99. package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
  100. package/lib/components/Menu/Menu.js +2 -1
  101. package/lib/components/Menu/Menu.js.map +1 -1
  102. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  103. package/lib/components/MenuButton/MenuButton.js +5 -1
  104. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  105. package/lib/components/Popover/getResolvedTarget.d.ts +11 -0
  106. package/lib/components/Popover/getResolvedTarget.d.ts.map +1 -0
  107. package/lib/components/Popover/getResolvedTarget.js +13 -0
  108. package/lib/components/Popover/getResolvedTarget.js.map +1 -0
  109. package/lib/components/Popover/index.d.ts +1 -0
  110. package/lib/components/Popover/index.d.ts.map +1 -1
  111. package/lib/components/Popover/index.js +1 -0
  112. package/lib/components/Popover/index.js.map +1 -1
  113. package/lib/components/QRCode/QRCode.d.ts.map +1 -1
  114. package/lib/components/QRCode/QRCode.js +2 -0
  115. package/lib/components/QRCode/QRCode.js.map +1 -1
  116. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  117. package/lib/components/Tooltip/Tooltip.js +8 -2
  118. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  119. package/lib/hooks/useI18n.d.ts +18 -0
  120. package/lib/hooks/useI18n.d.ts.map +1 -1
  121. package/lib/i18n/default.d.ts +18 -0
  122. package/lib/i18n/default.d.ts.map +1 -1
  123. package/lib/i18n/default.js +23 -3
  124. package/lib/i18n/default.js.map +1 -1
  125. package/lib/i18n/i18n.d.ts +18 -0
  126. package/lib/i18n/i18n.d.ts.map +1 -1
  127. package/lib/theme/theme.d.ts +25 -0
  128. package/lib/theme/theme.d.ts.map +1 -1
  129. package/lib/theme/themeDefinition.json +18 -3
  130. package/lib/theme/themeOverrides.schema.json +16 -0
  131. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { defaultThemeProp } from '../../theme';
5
5
  import Popover from '../Popover';
6
6
  import { useConsolidatedRef, useTestIds, useTheme, useUID } from '../../hooks';
7
7
  import { calculateFontSize, readableHue } from '../../styles';
8
- import { getActiveElement, mouseState, testElForOverflow, withTestIds } from '../../utils';
8
+ import { getActiveElement, isTouchDevice, mouseState, testElForOverflow, withTestIds } from '../../utils';
9
9
  import { ThemeOverride } from '../Configuration';
10
10
  import { getTooltipTestIds } from './Tooltip.test-ids';
11
11
  export const StyledTooltip = styled.div(({ theme }) => {
@@ -23,7 +23,7 @@ export const StyledTooltip = styled.div(({ theme }) => {
23
23
  `;
24
24
  });
25
25
  StyledTooltip.defaultProps = defaultThemeProp;
26
- const Tooltip = forwardRef(function Tooltip({ testId, children, target, ignoredElements = [], showDelay = 'short', hideDelay = 'long', placement = 'top', describeTarget = true, smart, groupId = 'tooltip', ...restProps }, ref) {
26
+ const RegularTooltip = forwardRef(function RegularTooltip({ testId, children, target, ignoredElements = [], showDelay = 'short', hideDelay = 'long', placement = 'top', describeTarget = true, smart, groupId = 'tooltip', ...restProps }, ref) {
27
27
  const id = useUID();
28
28
  const [show, setShow] = useState(false);
29
29
  const [ignoreDelay, setIgnoreDelay] = useState(false);
@@ -145,5 +145,11 @@ const Tooltip = forwardRef(function Tooltip({ testId, children, target, ignoredE
145
145
  setShow(false);
146
146
  }, strategy: 'fixed', as: StyledTooltip, role: stringContentOnly ? 'tooltip' : 'dialog', target: target, arrow: true, placement: placement, onMouseDown: onMouseDown, hideOnTargetHidden: true, ref: tooltipRef, children: children }) }));
147
147
  });
148
+ const Tooltip = forwardRef(function Tooltip(props, ref) {
149
+ if (isTouchDevice) {
150
+ return null;
151
+ }
152
+ return _jsx(RegularTooltip, { ...props, ref: ref });
153
+ });
148
154
  export default withTestIds(Tooltip, getTooltipTestIds);
149
155
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAgDvD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACpD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAEtF,OAAO,GAAG,CAAA;wBACY,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC;aACvD,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC;iBACxC,QAAQ,CAA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kB,QAClB,GAAG,EAAE,UAAU,YAEd,QAAQ,GACD,GACI,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';\nimport type { MutableRefObject, PropsWithoutRef, ReactNode, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { BaseProps, ForwardRefForwardPropsComponent, TestIdProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Popover from '../Popover';\nimport type { Delay, PopoverProps } from '../Popover';\nimport { useConsolidatedRef, useTestIds, useTheme, useUID } from '../../hooks';\nimport { calculateFontSize, readableHue } from '../../styles';\nimport { getActiveElement, mouseState, testElForOverflow, withTestIds } from '../../utils';\nimport { ThemeOverride } from '../Configuration';\n\nimport { getTooltipTestIds } from './Tooltip.test-ids';\n\nexport interface TooltipProps extends BaseProps, TestIdProp {\n /** Text content for the tooltip. */\n children: ReactNode;\n /** Element to serve as the tooltip's target. */\n target: Element | null;\n /** Elements to ignore from within the tooltip's target. */\n ignoredElements?: TooltipProps['target'][];\n /**\n * Delay showing the tooltip on mouseenter.\n * @default 'short'\n */\n showDelay?: Delay;\n /**\n * Delay hiding the tooltip on mouseleave.\n * @default 'long'\n */\n hideDelay?: Delay;\n /**\n * If true, the Tooltip will render outside of the current DOM hierarchy in a [portal](https://reactjs.org/docs/portals.html).\n * @default true\n */\n portal?: PopoverProps['portal'];\n /**\n * If true, the Tooltip will automatically apply an aria-describedby attribute to its target.\n * @default true\n */\n describeTarget?: boolean;\n /**\n * Sets the placement of the tooltip relative to the target.\n * @default 'bottom'\n */\n placement?: PopoverProps['placement'];\n /**\n * Conditionally renders a tooltip only if the associated element's (or its descendants) text content is truncated.\n * To work, the associated element must be be displayed as a CSS \"block box\" i.e. block, inline-block, etc...\n * @default false\n */\n smart?: boolean;\n /**\n * The group that the Popover belongs to. Popovers in the same group will be closed when others open.\n * @default 'tooltip'\n */\n groupId?: PopoverProps['groupId'];\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StyledTooltip = styled.div(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n background-color: ${theme.components.tooltip['background-color']};\n color: ${theme.components.tooltip['foreground-color']};\n font-size: ${fontSize.xxs};\n max-width: 40ch;\n padding: calc(${theme.base.spacing} / 2);\n white-space: pre-line;\n word-break: break-word;\n --scale-in-size: 0;\n --animation-duration: ${theme.base.animation.speed};\n `;\n});\n\nStyledTooltip.defaultProps = defaultThemeProp;\n\nconst Tooltip: ForwardRefForwardPropsComponent<TooltipProps> = forwardRef(function Tooltip(\n {\n testId,\n children,\n target,\n ignoredElements = [],\n showDelay = 'short',\n hideDelay = 'long',\n placement = 'top',\n describeTarget = true,\n smart,\n groupId = 'tooltip',\n ...restProps\n }: PropsWithoutRef<TooltipProps>,\n ref: TooltipProps['ref']\n) {\n const id = useUID();\n const [show, setShow] = useState(false);\n const [ignoreDelay, setIgnoreDelay] = useState(false);\n const tooltipRef = useConsolidatedRef(ref);\n const lastClickedRef: MutableRefObject<EventTarget | null> = useRef(null);\n const testIds = useTestIds(testId, getTooltipTestIds);\n\n const stringContentOnly =\n typeof children === 'string' ||\n (Array.isArray(children) && children.every(child => typeof child === 'string'));\n\n const onMouseDown = useCallback(\n ({ target: eTarget }: MouseEvent) => {\n lastClickedRef.current = eTarget;\n if (eTarget === tooltipRef.current || eTarget === target) return;\n setShow(false);\n },\n [target]\n );\n\n useEffect(() => {\n if (!target) return;\n\n const showTooltip = () => {\n // This approach may result in a tooltip NOT appearing 1px before it should due to browser specifics. Enhance as needed.\n // https://stackoverflow.com/a/64747288\n\n const checkTruncation = (element: Element): boolean => {\n if (\n testElForOverflow(element).some(Boolean) &&\n !['absolute', 'fixed'].includes(window.getComputedStyle(element).position)\n )\n return true;\n\n for (const child of element.children) {\n if (checkTruncation(child)) return true;\n }\n\n return false;\n };\n\n setShow(smart ? checkTruncation(target) : true);\n };\n\n const onFocusIn = () => {\n showTooltip();\n };\n\n const onFocusOut = () => {\n if (!lastClickedRef.current || lastClickedRef.current !== tooltipRef.current) {\n setShow(false);\n }\n lastClickedRef.current = null;\n };\n\n const onMouseEnter = () => {\n if (ignoredElements.some(exclusion => exclusion?.matches(':hover')) || mouseState.primary) {\n return;\n }\n\n showTooltip();\n };\n\n const onMouseLeave = () => {\n if (getActiveElement() !== target) {\n setShow(false);\n }\n };\n\n const onKeyDown = ({ key }: KeyboardEvent) => {\n if (key === 'Escape' && show) {\n setIgnoreDelay(true);\n setShow(false);\n }\n };\n\n document.addEventListener('keydown', onKeyDown);\n document.addEventListener('mousedown', onMouseDown);\n\n target.addEventListener('focusin', onFocusIn);\n target.addEventListener('focusout', onFocusOut);\n target.addEventListener('mouseenter', onMouseEnter);\n target.addEventListener('mouseleave', onMouseLeave);\n\n return () => {\n document.removeEventListener('keydown', onKeyDown);\n document.removeEventListener('mousedown', onMouseDown);\n\n target.removeEventListener('focusin', onFocusIn);\n target.removeEventListener('focusout', onFocusOut);\n target.removeEventListener('mouseenter', onMouseEnter);\n target.removeEventListener('mouseleave', onMouseLeave);\n };\n }, [target, onMouseDown, smart, show]);\n\n useEffect(() => {\n if (target && describeTarget && show) {\n const describedBy = target.getAttribute('aria-describedby');\n // Set the attribute to the old attribute plus the id\n target.setAttribute('aria-describedby', describedBy ? `${describedBy} ${id}` : id);\n } else if (target) {\n // Get the old attribute\n const describedBy = target.getAttribute('aria-describedby');\n if (describedBy) {\n // If the old attribute matches the id just remove it entirely\n if (describedBy === id) {\n target.removeAttribute('aria-describedby');\n } else {\n // Otherwise we want to just remove the id that was added and reset the attribute to what it was before\n const oldDescribedBy = describedBy.replace(new RegExp(`(?:^|\\\\s+)${id}`), '');\n target.setAttribute('aria-describedby', oldDescribedBy);\n }\n }\n }\n }, [describeTarget, target, show]);\n\n useEffect(() => {\n if (!show && ignoreDelay) {\n setIgnoreDelay(false);\n }\n }, [show, ignoreDelay]);\n\n const theme = useTheme();\n const tooltipTheme = {\n base: {\n palette: {\n 'primary-background': theme.components.tooltip['background-color'],\n 'foreground-color': theme.components.tooltip['foreground-color'],\n interactive: readableHue(\n theme.base.palette.interactive,\n theme.components.tooltip['background-color']\n )\n }\n },\n components: {\n label: {\n 'foreground-color': theme.components.tooltip['foreground-color']\n }\n }\n };\n\n return (\n <ThemeOverride theme={tooltipTheme}>\n <Popover\n data-testid={testIds.root}\n id={id}\n groupId={groupId}\n {...restProps}\n show={show}\n showDelay={ignoreDelay ? 'none' : showDelay}\n hideDelay={ignoreDelay ? 'none' : hideDelay}\n onMouseOver={() => {\n setShow(true);\n }}\n onMouseOut={() => {\n setShow(false);\n }}\n strategy='fixed'\n as={StyledTooltip}\n role={stringContentOnly ? 'tooltip' : 'dialog'}\n target={target}\n arrow\n placement={placement}\n onMouseDown={onMouseDown}\n hideOnTargetHidden\n ref={tooltipRef}\n >\n {children}\n </Popover>\n </ThemeOverride>\n );\n});\n\nexport default withTestIds(Tooltip, getTooltipTestIds);\n"]}
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,WAAW,EACZ,MAAM,a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AAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC3C,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC3C,WAAW,EAAE,GAAG,EAAE;gBAChB,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,EACD,UAAU,EAAE,GAAG,EAAE;gBACf,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC,EACD,QAAQ,EAAC,OAAO,EAChB,EAAE,EAAE,aAAa,EACjB,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAC9C,MAAM,EAAE,MAAM,EACd,KAAK,QACL,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,kBAAkB,QAClB,GAAG,EAAE,UAAU,YAEd,QAAQ,GACD,GACI,CACjB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,OAAO,GAAkD,UAAU,CAAC,SAAS,OAAO,CACxF,KAAoC,EACpC,GAAwB;IAExB,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAC,cAAc,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';\nimport type { MutableRefObject, PropsWithoutRef, ReactNode, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { BaseProps, ForwardRefForwardPropsComponent, TestIdProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Popover from '../Popover';\nimport type { Delay, PopoverProps } from '../Popover';\nimport { useConsolidatedRef, useTestIds, useTheme, useUID } from '../../hooks';\nimport { calculateFontSize, readableHue } from '../../styles';\nimport {\n getActiveElement,\n isTouchDevice,\n mouseState,\n testElForOverflow,\n withTestIds\n} from '../../utils';\nimport { ThemeOverride } from '../Configuration';\n\nimport { getTooltipTestIds } from './Tooltip.test-ids';\n\nexport interface TooltipProps extends BaseProps, TestIdProp {\n /** Text content for the tooltip. */\n children: ReactNode;\n /** Element to serve as the tooltip's target. */\n target: Element | null;\n /** Elements to ignore from within the tooltip's target. */\n ignoredElements?: TooltipProps['target'][];\n /**\n * Delay showing the tooltip on mouseenter.\n * @default 'short'\n */\n showDelay?: Delay;\n /**\n * Delay hiding the tooltip on mouseleave.\n * @default 'long'\n */\n hideDelay?: Delay;\n /**\n * If true, the Tooltip will render outside of the current DOM hierarchy in a [portal](https://reactjs.org/docs/portals.html).\n * @default true\n */\n portal?: PopoverProps['portal'];\n /**\n * If true, the Tooltip will automatically apply an aria-describedby attribute to its target.\n * @default true\n */\n describeTarget?: boolean;\n /**\n * Sets the placement of the tooltip relative to the target.\n * @default 'bottom'\n */\n placement?: PopoverProps['placement'];\n /**\n * Conditionally renders a tooltip only if the associated element's (or its descendants) text content is truncated.\n * To work, the associated element must be be displayed as a CSS \"block box\" i.e. block, inline-block, etc...\n * @default false\n */\n smart?: boolean;\n /**\n * The group that the Popover belongs to. Popovers in the same group will be closed when others open.\n * @default 'tooltip'\n */\n groupId?: PopoverProps['groupId'];\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const StyledTooltip = styled.div(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n background-color: ${theme.components.tooltip['background-color']};\n color: ${theme.components.tooltip['foreground-color']};\n font-size: ${fontSize.xxs};\n max-width: 40ch;\n padding: calc(${theme.base.spacing} / 2);\n white-space: pre-line;\n word-break: break-word;\n --scale-in-size: 0;\n --animation-duration: ${theme.base.animation.speed};\n `;\n});\n\nStyledTooltip.defaultProps = defaultThemeProp;\n\nconst RegularTooltip: ForwardRefForwardPropsComponent<TooltipProps> = forwardRef(\n function RegularTooltip(\n {\n testId,\n children,\n target,\n ignoredElements = [],\n showDelay = 'short',\n hideDelay = 'long',\n placement = 'top',\n describeTarget = true,\n smart,\n groupId = 'tooltip',\n ...restProps\n }: PropsWithoutRef<TooltipProps>,\n ref: TooltipProps['ref']\n ) {\n const id = useUID();\n const [show, setShow] = useState(false);\n const [ignoreDelay, setIgnoreDelay] = useState(false);\n const tooltipRef = useConsolidatedRef(ref);\n const lastClickedRef: MutableRefObject<EventTarget | null> = useRef(null);\n const testIds = useTestIds(testId, getTooltipTestIds);\n\n const stringContentOnly =\n typeof children === 'string' ||\n (Array.isArray(children) && children.every(child => typeof child === 'string'));\n\n const onMouseDown = useCallback(\n ({ target: eTarget }: MouseEvent) => {\n lastClickedRef.current = eTarget;\n if (eTarget === tooltipRef.current || eTarget === target) return;\n setShow(false);\n },\n [target]\n );\n\n useEffect(() => {\n if (!target) return;\n\n const showTooltip = () => {\n // This approach may result in a tooltip NOT appearing 1px before it should due to browser specifics. Enhance as needed.\n // https://stackoverflow.com/a/64747288\n\n const checkTruncation = (element: Element): boolean => {\n if (\n testElForOverflow(element).some(Boolean) &&\n !['absolute', 'fixed'].includes(window.getComputedStyle(element).position)\n )\n return true;\n\n for (const child of element.children) {\n if (checkTruncation(child)) return true;\n }\n\n return false;\n };\n\n setShow(smart ? checkTruncation(target) : true);\n };\n\n const onFocusIn = () => {\n showTooltip();\n };\n\n const onFocusOut = () => {\n if (!lastClickedRef.current || lastClickedRef.current !== tooltipRef.current) {\n setShow(false);\n }\n lastClickedRef.current = null;\n };\n\n const onMouseEnter = () => {\n if (ignoredElements.some(exclusion => exclusion?.matches(':hover')) || mouseState.primary) {\n return;\n }\n\n showTooltip();\n };\n\n const onMouseLeave = () => {\n if (getActiveElement() !== target) {\n setShow(false);\n }\n };\n\n const onKeyDown = ({ key }: KeyboardEvent) => {\n if (key === 'Escape' && show) {\n setIgnoreDelay(true);\n setShow(false);\n }\n };\n\n document.addEventListener('keydown', onKeyDown);\n document.addEventListener('mousedown', onMouseDown);\n\n target.addEventListener('focusin', onFocusIn);\n target.addEventListener('focusout', onFocusOut);\n target.addEventListener('mouseenter', onMouseEnter);\n target.addEventListener('mouseleave', onMouseLeave);\n\n return () => {\n document.removeEventListener('keydown', onKeyDown);\n document.removeEventListener('mousedown', onMouseDown);\n\n target.removeEventListener('focusin', onFocusIn);\n target.removeEventListener('focusout', onFocusOut);\n target.removeEventListener('mouseenter', onMouseEnter);\n target.removeEventListener('mouseleave', onMouseLeave);\n };\n }, [target, onMouseDown, smart, show]);\n\n useEffect(() => {\n if (target && describeTarget && show) {\n const describedBy = target.getAttribute('aria-describedby');\n // Set the attribute to the old attribute plus the id\n target.setAttribute('aria-describedby', describedBy ? `${describedBy} ${id}` : id);\n } else if (target) {\n // Get the old attribute\n const describedBy = target.getAttribute('aria-describedby');\n if (describedBy) {\n // If the old attribute matches the id just remove it entirely\n if (describedBy === id) {\n target.removeAttribute('aria-describedby');\n } else {\n // Otherwise we want to just remove the id that was added and reset the attribute to what it was before\n const oldDescribedBy = describedBy.replace(new RegExp(`(?:^|\\\\s+)${id}`), '');\n target.setAttribute('aria-describedby', oldDescribedBy);\n }\n }\n }\n }, [describeTarget, target, show]);\n\n useEffect(() => {\n if (!show && ignoreDelay) {\n setIgnoreDelay(false);\n }\n }, [show, ignoreDelay]);\n\n const theme = useTheme();\n const tooltipTheme = {\n base: {\n palette: {\n 'primary-background': theme.components.tooltip['background-color'],\n 'foreground-color': theme.components.tooltip['foreground-color'],\n interactive: readableHue(\n theme.base.palette.interactive,\n theme.components.tooltip['background-color']\n )\n }\n },\n components: {\n label: {\n 'foreground-color': theme.components.tooltip['foreground-color']\n }\n }\n };\n\n return (\n <ThemeOverride theme={tooltipTheme}>\n <Popover\n data-testid={testIds.root}\n id={id}\n groupId={groupId}\n {...restProps}\n show={show}\n showDelay={ignoreDelay ? 'none' : showDelay}\n hideDelay={ignoreDelay ? 'none' : hideDelay}\n onMouseOver={() => {\n setShow(true);\n }}\n onMouseOut={() => {\n setShow(false);\n }}\n strategy='fixed'\n as={StyledTooltip}\n role={stringContentOnly ? 'tooltip' : 'dialog'}\n target={target}\n arrow\n placement={placement}\n onMouseDown={onMouseDown}\n hideOnTargetHidden\n ref={tooltipRef}\n >\n {children}\n </Popover>\n </ThemeOverride>\n );\n }\n);\n\nconst Tooltip: ForwardRefForwardPropsComponent<TooltipProps> = forwardRef(function Tooltip(\n props: PropsWithoutRef<TooltipProps>,\n ref: TooltipProps['ref']\n) {\n if (isTouchDevice) {\n return null;\n }\n\n return <RegularTooltip {...props} ref={ref} />;\n});\n\nexport default withTestIds(Tooltip, getTooltipTestIds);\n"]}
@@ -206,6 +206,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
206
206
  sent: string;
207
207
  active: string;
208
208
  inactive: string;
209
+ dismissed: string;
209
210
  read_only: string;
210
211
  information: string;
211
212
  error: string;
@@ -298,6 +299,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
298
299
  text_area_characters_remaining: string;
299
300
  text_area_character_limit: string;
300
301
  preview_link_instruction: string;
302
+ open_link_instruction: string;
301
303
  polite_announcements: string;
302
304
  assertive_announcements: string;
303
305
  go_to_main_content: string;
@@ -1072,6 +1074,12 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
1072
1074
  accept_all: string;
1073
1075
  select_multiple: string;
1074
1076
  dismiss_case: string;
1077
+ document_tabs_overflow_menu: string;
1078
+ document_tabs_pages: string;
1079
+ document_tabs_cases: string;
1080
+ document_tabs_data: string;
1081
+ document_tabs_all: string;
1082
+ document_tabs_close_all: string;
1075
1083
  task_manager_add_case: string;
1076
1084
  task_manager_wrap_up: string;
1077
1085
  task_manager_cases: string;
@@ -1712,6 +1720,9 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
1712
1720
  format_pattern_helper_text: string;
1713
1721
  format_already_exists_error: string;
1714
1722
  override_parameters: string;
1723
+ loading_data_pages: string;
1724
+ choose_data_page: string;
1725
+ choose_rule_reference: string;
1715
1726
  component_not_found_error: string;
1716
1727
  component_not_found_error_with_type: string;
1717
1728
  component_not_found_error_with_subtype: string;
@@ -1768,6 +1779,8 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
1768
1779
  loading_configure_dialog: string;
1769
1780
  insight_datapage_picker_limited_features: string;
1770
1781
  data_page: string;
1782
+ data_source: string;
1783
+ override_data_source_parameters: string;
1771
1784
  delete_parameter_filter: string;
1772
1785
  insight_field_applied_on: string;
1773
1786
  please_fill_the_required_fields: string;
@@ -1858,6 +1871,8 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
1858
1871
  chart_legend_items: string;
1859
1872
  add_to: string;
1860
1873
  namespace: string;
1874
+ selected_view_unavailable: string;
1875
+ choose_view: string;
1861
1876
  decision_rule: string;
1862
1877
  when_rule: string;
1863
1878
  invalid_rule: string;
@@ -1907,6 +1922,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
1907
1922
  decision_table_custom_range_2_header: string;
1908
1923
  ai_assistant: string;
1909
1924
  app_preview_loading: string;
1925
+ app_preview_generating: string;
1910
1926
  app_preview_ready: string;
1911
1927
  app_preview_failed: string;
1912
1928
  app_open_preview: string;
@@ -1943,6 +1959,8 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
1943
1959
  ui_inspector_metadata: string;
1944
1960
  ui_inspector_quick_info: string;
1945
1961
  ui_inspector_field_metadata: string;
1962
+ view_widget_error: string;
1963
+ no_data_available: string;
1946
1964
  ai_tracer: string;
1947
1965
  agent_tracer_select_an_event: string;
1948
1966
  agent_tracer_total_processing_time: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -202,6 +202,7 @@ declare const _default: {
202
202
  sent: string;
203
203
  active: string;
204
204
  inactive: string;
205
+ dismissed: string;
205
206
  read_only: string;
206
207
  information: string;
207
208
  error: string;
@@ -294,6 +295,7 @@ declare const _default: {
294
295
  text_area_characters_remaining: string;
295
296
  text_area_character_limit: string;
296
297
  preview_link_instruction: string;
298
+ open_link_instruction: string;
297
299
  polite_announcements: string;
298
300
  assertive_announcements: string;
299
301
  go_to_main_content: string;
@@ -1068,6 +1070,12 @@ declare const _default: {
1068
1070
  accept_all: string;
1069
1071
  select_multiple: string;
1070
1072
  dismiss_case: string;
1073
+ document_tabs_overflow_menu: string;
1074
+ document_tabs_pages: string;
1075
+ document_tabs_cases: string;
1076
+ document_tabs_data: string;
1077
+ document_tabs_all: string;
1078
+ document_tabs_close_all: string;
1071
1079
  task_manager_add_case: string;
1072
1080
  task_manager_wrap_up: string;
1073
1081
  task_manager_cases: string;
@@ -1709,6 +1717,9 @@ declare const _default: {
1709
1717
  format_pattern_helper_text: string;
1710
1718
  format_already_exists_error: string;
1711
1719
  override_parameters: string;
1720
+ loading_data_pages: string;
1721
+ choose_data_page: string;
1722
+ choose_rule_reference: string;
1712
1723
  component_not_found_error: string;
1713
1724
  component_not_found_error_with_type: string;
1714
1725
  component_not_found_error_with_subtype: string;
@@ -1765,6 +1776,8 @@ declare const _default: {
1765
1776
  loading_configure_dialog: string;
1766
1777
  insight_datapage_picker_limited_features: string;
1767
1778
  data_page: string;
1779
+ data_source: string;
1780
+ override_data_source_parameters: string;
1768
1781
  delete_parameter_filter: string;
1769
1782
  insight_field_applied_on: string;
1770
1783
  please_fill_the_required_fields: string;
@@ -1858,6 +1871,8 @@ declare const _default: {
1858
1871
  chart_legend_items: string;
1859
1872
  add_to: string;
1860
1873
  namespace: string;
1874
+ selected_view_unavailable: string;
1875
+ choose_view: string;
1861
1876
  decision_rule: string;
1862
1877
  when_rule: string;
1863
1878
  invalid_rule: string;
@@ -1910,6 +1925,7 @@ declare const _default: {
1910
1925
  ai_assistant: string;
1911
1926
  /** studio-dx-components: Preview */
1912
1927
  app_preview_loading: string;
1928
+ app_preview_generating: string;
1913
1929
  app_preview_ready: string;
1914
1930
  app_preview_failed: string;
1915
1931
  app_open_preview: string;
@@ -1950,6 +1966,8 @@ declare const _default: {
1950
1966
  ui_inspector_metadata: string;
1951
1967
  ui_inspector_quick_info: string;
1952
1968
  ui_inspector_field_metadata: string;
1969
+ view_widget_error: string;
1970
+ no_data_available: string;
1953
1971
  ai_tracer: string;
1954
1972
  agent_tracer_select_an_event: string;
1955
1973
  agent_tracer_total_processing_time: string;
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyQxB,6CAA6C;;;;;;;;;;;;;;IAgB7C,6CAA6C;;;;;;;;IAS7C,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2GzC,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2C/B,wCAAwC;;IAGxC,oCAAoC;;;;;;;;;;IAYpC,uCAAuC;;;;;;;;;;;IAavC,6CAA6C;;;;;;;IAQ7C,uCAAuC;;;;;;;;IAUvC,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvwE3C,wBA2zEE"}
@@ -212,6 +212,7 @@ export default {
212
212
  sent: 'Sent',
213
213
  active: 'Active',
214
214
  inactive: 'Inactive',
215
+ dismissed: 'Dismissed',
215
216
  read_only: 'Read only',
216
217
  information: 'Information',
217
218
  error: 'Error',
@@ -315,6 +316,7 @@ export default {
315
316
  text_area_character_limit: 'Maximum character limit reached.',
316
317
  /* core:Link */
317
318
  preview_link_instruction: 'Press {0} and p to open this link in a preview.',
319
+ open_link_instruction: 'Press {0} and o to open this link.',
318
320
  /* core:LiveLog */
319
321
  polite_announcements: 'Polite Announcements',
320
322
  assertive_announcements: 'Assertive Announcements',
@@ -1150,6 +1152,12 @@ export default {
1150
1152
  accept_all: 'Accept all',
1151
1153
  select_multiple: 'Select multiple',
1152
1154
  dismiss_case: 'Dismiss case',
1155
+ document_tabs_overflow_menu: 'All documents',
1156
+ document_tabs_pages: 'Pages',
1157
+ document_tabs_cases: 'Cases',
1158
+ document_tabs_data: 'Data',
1159
+ document_tabs_all: 'All documents',
1160
+ document_tabs_close_all: 'Close all',
1153
1161
  task_manager_add_case: 'Add case',
1154
1162
  task_manager_wrap_up: 'Wrap up',
1155
1163
  task_manager_cases: 'Cases',
@@ -1226,8 +1234,8 @@ export default {
1226
1234
  sentiment_neutral: 'Neutral',
1227
1235
  /* cs:IntelligentGuidance */
1228
1236
  no_recommendations: 'No recommendations',
1229
- items_added_to_previous_list: 'Items added to previous list',
1230
- items_added_to_current_list: 'Items added to current list',
1237
+ items_added_to_previous_list: 'Items added to {0} list',
1238
+ items_added_to_current_list: 'Items added to {0} list',
1231
1239
  /* condition-builder:ConditionBuilder */
1232
1240
  condition_builder_advanced_condition_label: 'Advanced condition',
1233
1241
  condition_builder_advanced_condition_placeholder: 'Advanced condition',
@@ -1822,10 +1830,14 @@ export default {
1822
1830
  input_format_label: 'Input format',
1823
1831
  format_name_label: 'Name',
1824
1832
  format_pattern_label: 'Format',
1825
- format_pattern_helper_text: "Use 0 for numbers, * for any character, 'a' for lowercase letters, 'A' for uppercase letters; enclose optional characters in [ ] and add fixed text in curly braces",
1833
+ format_pattern_helper_text: 'Use 0 for numbers, * for any character, "a" for lowercase letters, "A" for uppercase letters; enclose optional characters in [ ] and add fixed text in curly braces',
1826
1834
  format_already_exists_error: 'A format rule named {0} already exists',
1827
1835
  /* authoring-ui-views: DataPage format */
1828
1836
  override_parameters: 'Override parameters',
1837
+ /* authoring-ui-views: DataSource format */
1838
+ loading_data_pages: 'Loading Data Pages...',
1839
+ choose_data_page: 'Choose Data Page',
1840
+ choose_rule_reference: 'Choose {0}...',
1829
1841
  /* authoring-ui-views: ContentPicker */
1830
1842
  component_not_found_error: "The '{0}' component is missing. Check that it is added to the application.",
1831
1843
  component_not_found_error_with_type: "No components of type '{0}' were found.",
@@ -1898,6 +1910,8 @@ export default {
1898
1910
  insight_datapage_picker_limited_features: 'The selected data page is not queryable and supports only limited features.',
1899
1911
  data_page: 'Data page',
1900
1912
  /* authoring-ui-views: InsightContextFilters */
1913
+ data_source: 'Data source',
1914
+ override_data_source_parameters: 'Override data source parameters',
1901
1915
  delete_parameter_filter: 'Delete parameter filter',
1902
1916
  insight_field_applied_on: 'Insight field applied on',
1903
1917
  please_fill_the_required_fields: 'Please fill the required fields',
@@ -2004,6 +2018,8 @@ export default {
2004
2018
  add_to: 'Add to {0}',
2005
2019
  /* authoring-ui-views: ViewPicker */
2006
2020
  namespace: 'Namespace',
2021
+ selected_view_unavailable: 'The previously selected View is no longer available. Choose a new View.',
2022
+ choose_view: 'Choose View...',
2007
2023
  /* authoring-ui-views: WhenPicker */
2008
2024
  decision_rule: 'Decision',
2009
2025
  when_rule: 'When',
@@ -2058,6 +2074,7 @@ export default {
2058
2074
  ai_assistant: 'AI assistant',
2059
2075
  /** studio-dx-components: Preview */
2060
2076
  app_preview_loading: 'Loading preview...',
2077
+ app_preview_generating: 'Generating preview please wait...',
2061
2078
  app_preview_ready: 'Your preview is ready.',
2062
2079
  app_preview_failed: 'Failed to load preview.',
2063
2080
  app_open_preview: 'Open preview',
@@ -2099,6 +2116,9 @@ export default {
2099
2116
  ui_inspector_metadata: 'Metadata',
2100
2117
  ui_inspector_quick_info: 'Quick info',
2101
2118
  ui_inspector_field_metadata: 'Field metadata',
2119
+ /* dx-components: ViewWidget */
2120
+ view_widget_error: 'An error occurred while retrieving this data.',
2121
+ no_data_available: 'No data available.',
2102
2122
  /* AgentTracer */
2103
2123
  ai_tracer: 'AI tracer',
2104
2124
  agent_tracer_select_an_event: 'Select an event',