@gen3/frontend 0.11.25 → 0.11.27

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 (151) hide show
  1. package/dist/cjs/index.js +257 -4
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Buttons/index.d.ts +1 -0
  4. package/dist/dts/components/Buttons/index.d.ts.map +1 -1
  5. package/dist/dts/components/Buttons/index.js +1 -0
  6. package/dist/dts/components/Buttons/index.js.map +1 -1
  7. package/dist/dts/components/Providers/Gen3Provider.d.ts +6 -6
  8. package/dist/dts/components/SegmentedControl.stories.d.ts +374 -0
  9. package/dist/dts/components/SegmentedControl.stories.d.ts.map +1 -0
  10. package/dist/dts/components/SegmentedControl.stories.js +28 -0
  11. package/dist/dts/components/SegmentedControl.stories.js.map +1 -0
  12. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
  13. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts +3 -0
  14. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts.map +1 -0
  15. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js +46 -0
  16. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js.map +1 -0
  17. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +1 -1
  18. package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts +4 -0
  19. package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts.map +1 -0
  20. package/dist/dts/features/CohortBuilder/Repository/Repository.js +8 -0
  21. package/dist/dts/features/CohortBuilder/Repository/Repository.js.map +1 -0
  22. package/dist/dts/features/CohortBuilder/Repository/index.d.ts +4 -0
  23. package/dist/dts/features/CohortBuilder/Repository/index.d.ts.map +1 -0
  24. package/dist/dts/features/CohortBuilder/Repository/index.js +3 -0
  25. package/dist/dts/features/CohortBuilder/Repository/index.js.map +1 -0
  26. package/dist/dts/features/CohortBuilder/Repository/types.d.ts +12 -0
  27. package/dist/dts/features/CohortBuilder/Repository/types.d.ts.map +1 -0
  28. package/dist/dts/features/CohortBuilder/Repository/types.js.map +1 -0
  29. package/dist/dts/lib/session/session.d.ts.map +1 -1
  30. package/dist/dts/lib/session/session.js +36 -1
  31. package/dist/dts/lib/session/session.js.map +1 -1
  32. package/dist/dts/pages/Repository/Repository.d.ts +4 -0
  33. package/dist/dts/pages/Repository/Repository.d.ts.map +1 -0
  34. package/dist/dts/pages/Repository/Repository.js +24 -0
  35. package/dist/dts/pages/Repository/Repository.js.map +1 -0
  36. package/dist/dts/pages/Repository/data.d.ts +4 -0
  37. package/dist/dts/pages/Repository/data.d.ts.map +1 -0
  38. package/dist/dts/{features/CohortBuilder/CohortManager/cohortActionHooks.js → pages/Repository/data.js} +55 -42
  39. package/dist/dts/pages/Repository/data.js.map +1 -0
  40. package/dist/dts/pages/Repository/index.d.ts +4 -0
  41. package/dist/dts/pages/Repository/index.d.ts.map +1 -0
  42. package/dist/dts/pages/Repository/index.js +4 -0
  43. package/dist/dts/pages/Repository/index.js.map +1 -0
  44. package/dist/dts/pages/Repository/types.d.ts +6 -0
  45. package/dist/dts/pages/Repository/types.d.ts.map +1 -0
  46. package/dist/dts/pages/Repository/types.js +2 -0
  47. package/dist/dts/pages/Repository/types.js.map +1 -0
  48. package/dist/dts/types/icons.d.ts +2 -2
  49. package/dist/dts/types/icons.d.ts.map +1 -1
  50. package/dist/dts/types/icons.js +2 -2
  51. package/dist/dts/types/icons.js.map +1 -1
  52. package/dist/esm/index.js +259 -6
  53. package/dist/esm/index.js.map +1 -1
  54. package/dist/index.d.ts +6 -6
  55. package/dist/tsconfig.tsbuildinfo +1 -1
  56. package/package.json +3 -3
  57. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +0 -64
  58. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +0 -1
  59. package/dist/dts/components/DropdownMenu/DropdownMenu.js +0 -38
  60. package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +0 -1
  61. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +0 -2
  62. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +0 -1
  63. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +0 -141
  64. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +0 -1
  65. package/dist/dts/components/DropdownMenu/index.d.ts +0 -3
  66. package/dist/dts/components/DropdownMenu/index.d.ts.map +0 -1
  67. package/dist/dts/components/DropdownMenu/index.js +0 -3
  68. package/dist/dts/components/DropdownMenu/index.js.map +0 -1
  69. package/dist/dts/components/MessageCards/ErrorMessage.d.ts +0 -7
  70. package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +0 -1
  71. package/dist/dts/components/MessageCards/ErrorMessage.js +0 -8
  72. package/dist/dts/components/MessageCards/ErrorMessage.js.map +0 -1
  73. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -20
  74. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
  75. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -37
  76. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
  77. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +0 -9
  78. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +0 -1
  79. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +0 -122
  80. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +0 -1
  81. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +0 -19
  82. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +0 -1
  83. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +0 -52
  84. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +0 -1
  85. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -10
  86. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
  87. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -37
  88. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
  89. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +0 -13
  90. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +0 -1
  91. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +0 -33
  92. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +0 -1
  93. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +0 -7
  94. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +0 -1
  95. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +0 -1
  96. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +0 -5
  97. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +0 -1
  98. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +0 -5
  99. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +0 -1
  100. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +0 -5
  101. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +0 -1
  102. package/dist/dts/features/CohortBuilder/CohortManager/index.js +0 -4
  103. package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +0 -1
  104. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +0 -13
  105. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +0 -1
  106. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +0 -15
  107. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +0 -1
  108. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +0 -4
  109. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +0 -1
  110. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +0 -8
  111. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +0 -1
  112. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -32
  113. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
  114. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -190
  115. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
  116. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +0 -2
  117. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +0 -1
  118. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +0 -145
  119. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +0 -1
  120. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
  121. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
  122. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -79
  123. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
  124. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +0 -5
  125. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +0 -1
  126. package/dist/dts/features/CohortBuilder/CohortManager/style.js +0 -21
  127. package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +0 -1
  128. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +0 -49
  129. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +0 -1
  130. package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +0 -1
  131. package/dist/dts/features/CohortBuilder/CohortManager.d.ts +0 -6
  132. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +0 -1
  133. package/dist/dts/features/CohortBuilder/CohortManager.js +0 -8
  134. package/dist/dts/features/CohortBuilder/CohortManager.js.map +0 -1
  135. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +0 -64
  136. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +0 -1
  137. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +0 -572
  138. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +0 -1
  139. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -1
  140. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
  141. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -41
  142. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
  143. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -1
  144. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
  145. package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -162
  146. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
  147. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +0 -1
  148. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +0 -1
  149. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +0 -284
  150. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +0 -1
  151. /package/dist/dts/features/CohortBuilder/{CohortManager → Repository}/types.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen3/frontend",
3
- "version": "0.11.25",
3
+ "version": "0.11.27",
4
4
  "description": "Gen3 frontend components, content management, and pages",
5
5
  "keywords": [],
6
6
  "author": "Center for Translational Data Science",
@@ -49,7 +49,7 @@
49
49
  "os": false
50
50
  },
51
51
  "dependencies": {
52
- "@gen3/core": "^0.11.25",
52
+ "@gen3/core": "^0.11.27",
53
53
  "@graphiql/react": "^0.23.1",
54
54
  "@hello-pangea/dnd": "^17.0.0",
55
55
  "@iconify-icon/react": "^3.0.0",
@@ -155,5 +155,5 @@
155
155
  "files": [
156
156
  "dist"
157
157
  ],
158
- "gitHead": "f3dbf5d48fc7eb95499c07c9ed3474a49b4d509d"
158
+ "gitHead": "9c3f3e51197e1a63d2a2346e09aed3df57685797"
159
159
  }
@@ -1,64 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { type FloatingPosition } from '@mantine/core';
3
- interface DropdownWithIconProps {
4
- /**
5
- * if true, doesn't set width to be "target"
6
- */
7
- disableTargetWidth?: boolean;
8
- /**
9
- * Left Section for the target button, can be undefined too
10
- */
11
- LeftSection?: JSX.Element;
12
- /**
13
- * Right Section for the target button, can be undefined too (default to dropdown icon)
14
- */
15
- RightSection?: JSX.Element;
16
- /**
17
- * Content for target button
18
- */
19
- TargetButtonChildren: ReactNode;
20
- /**
21
- * disables the target button and menu
22
- */
23
- targetButtonDisabled?: boolean;
24
- /**
25
- * array dropdown items. Need to pass title, onClick and icon event handler is optional
26
- */
27
- dropdownElements: Array<{
28
- title: string;
29
- onClick?: () => void;
30
- icon?: JSX.Element;
31
- disabled?: boolean;
32
- }>;
33
- /**
34
- * only provide menuLabelText if we want label for dropdown elements
35
- */
36
- menuLabelText?: string;
37
- /**
38
- * custom class / stylings for menuLabelText
39
- */
40
- menuLabelCustomClass?: string;
41
- /**
42
- * custom position for Menu
43
- */
44
- customPosition?: FloatingPosition;
45
- /**
46
- * whether the dropdown should fill the height of its parent
47
- */
48
- fullHeight?: boolean;
49
- /**
50
- * custom test id
51
- */
52
- customDataTestId?: string;
53
- /**
54
- tooltip
55
- */
56
- tooltip?: string;
57
- /**
58
- * aria-label for the button
59
- */
60
- buttonAriaLabel?: string;
61
- }
62
- declare const DropdownMenu: React.FC<DropdownWithIconProps>;
63
- export default DropdownMenu;
64
- //# sourceMappingURL=DropdownMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAsB,MAAM,OAAO,CAAC;AAC7D,OAAO,EAKL,KAAK,gBAAgB,EAEtB,MAAM,eAAe,CAAC;AAGvB,UAAU,qBAAqB;IAC7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,oBAAoB,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;IACH;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkGjD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,38 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useRef } from 'react';
14
- import { Button, MantineProvider, Menu, Tooltip, useMantineTheme, } from '@mantine/core';
15
- import { DropdownIcon } from '../../types/icons';
16
- var DropdownMenu = function (_a) {
17
- var disableTargetWidth = _a.disableTargetWidth, LeftSection = _a.LeftSection, _b = _a.RightSection, RightSection = _b === void 0 ? (_jsx("div", { className: "border-l pl-1 -mr-2", children: _jsx(DropdownIcon, { size: "1.25em", "aria-hidden": "true", "data-testid": "dropdown-icon" }) })) : _b, TargetButtonChildren = _a.TargetButtonChildren, targetButtonDisabled = _a.targetButtonDisabled, dropdownElements = _a.dropdownElements, menuLabelText = _a.menuLabelText, menuLabelCustomClass = _a.menuLabelCustomClass, customPosition = _a.customPosition, fullHeight = _a.fullHeight, _c = _a.customDataTestId, customDataTestId = _c === void 0 ? undefined : _c, _d = _a.tooltip, tooltip = _d === void 0 ? undefined : _d, _e = _a.buttonAriaLabel, buttonAriaLabel = _e === void 0 ? undefined : _e;
18
- var targetRef = useRef(null);
19
- var theme = useMantineTheme();
20
- return (_jsx(MantineProvider, { theme: theme, children: _jsxs(Menu, __assign({ width: !disableTargetWidth ? 'target' : undefined }, (customPosition && { position: customPosition }), { "data-testid": customDataTestId !== null && customDataTestId !== void 0 ? customDataTestId : 'menu-elem', zIndex: 9000, children: [_jsx(Menu.Target, { children: _jsx(Button, __assign({ variant: "action" }, (LeftSection && { leftSection: LeftSection }), { rightSection: RightSection, disabled: targetButtonDisabled, classNames: {
21
- root: "".concat(fullHeight ? '!h-full' : undefined, " !w-full"),
22
- }, ref: targetRef, "aria-label": buttonAriaLabel, children: _jsx("div", { children: (tooltip === null || tooltip === void 0 ? void 0 : tooltip.length) && !targetButtonDisabled ? (_jsx("div", { children: _jsx(Tooltip, { label: tooltip, children: _jsx("div", { children: TargetButtonChildren }) }) })) : (_jsx("div", { children: TargetButtonChildren })) }) })) }), _jsxs(Menu.Dropdown, { "data-testid": "dropdown-menu-options", className: "border-1 border-secondary", children: [menuLabelText && (_jsxs(_Fragment, { children: [_jsx(Menu.Label, { className: menuLabelCustomClass !== null && menuLabelCustomClass !== void 0 ? menuLabelCustomClass : 'font-bold', "data-testid": "menu-label", children: menuLabelText }), _jsx(Menu.Divider, {})] })), dropdownElements.map(function (_a, idx) {
23
- var title = _a.title, onClick = _a.onClick, icon = _a.icon, disabled = _a.disabled;
24
- return (_jsx(Menu.Item, { onClick: function () {
25
- var _a;
26
- if (onClick) {
27
- onClick();
28
- }
29
- // This is done inorder to set the last focused element as the menu target element
30
- // This is done to return focus to the target element if the modal is closed with ESC
31
- if (targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) {
32
- (_a = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) === null || _a === void 0 ? void 0 : _a.focus();
33
- }
34
- }, "data-testid": "".concat(title, "-").concat(idx), leftSection: icon && icon, disabled: disabled, children: title }, "".concat(title, "-").concat(idx)));
35
- })] })] })) }));
36
- };
37
- export default DropdownMenu;
38
- //# sourceMappingURL=DropdownMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAyB,MAAM,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EACL,MAAM,EACN,eAAe,EACf,IA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UAAG,KAAK,cAAI,GAAG,CAAE,CAMZ,CACb;wBAnBkE,CAmBlE,CAAC,IACY,KACX,GACS,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DropdownMenu.unit.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropdownMenu.unit.test.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.unit.test.tsx"],"names":[],"mappings":""}
@@ -1,141 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
37
- import { jsx as _jsx } from "react/jsx-runtime";
38
- import { render, waitFor } from "@testing-library/react";
39
- import DropdownMenu from "./DropdownMenu";
40
- import userEvent from "@testing-library/user-event";
41
- describe("<DropdownMenu />", function () {
42
- it("if right icon is NOT provided, dropdown icon should be a default", function () {
43
- var getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }] })).getByTestId;
44
- expect(getByTestId("dropdown-icon")).toBeDefined();
45
- });
46
- it("if right icon is provided, provided icon should render", function () {
47
- var getByLabelText = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }], RightSection: _jsx("div", { "aria-label": "test-icon", className: "border-l pl-1 -mr-2" }) })).getByLabelText;
48
- expect(getByLabelText("test-icon")).toBeDefined();
49
- });
50
- it("target button should be disabled if targetButtonDisabled props is true", function () {
51
- var getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }], targetButtonDisabled: true })).getByTestId;
52
- expect(getByTestId("menu-elem")).toBeDisabled();
53
- });
54
- it("target button should NOT be disabled if targetButtonDisabled props is not provided/undefined", function () {
55
- var getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }] })).getByTestId;
56
- expect(getByTestId("menu-elem")).not.toBeDisabled();
57
- });
58
- it("menu label should be present when menuLabelText is provided ", function () { return __awaiter(void 0, void 0, void 0, function () {
59
- var _a, getByText, getByTestId;
60
- return __generator(this, function (_b) {
61
- switch (_b.label) {
62
- case 0:
63
- _a = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }], menuLabelText: "test menu label text" })), getByText = _a.getByText, getByTestId = _a.getByTestId;
64
- return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
65
- case 1:
66
- _b.sent();
67
- return [4 /*yield*/, waitFor(function () { return expect(getByTestId("menu-label")).toBeDefined(); }, {
68
- timeout: 2000,
69
- })];
70
- case 2:
71
- _b.sent();
72
- expect(getByText("test menu label text")).toBeInTheDocument();
73
- return [2 /*return*/];
74
- }
75
- });
76
- }); });
77
- it("menu label should NOT be present when menuLabelText is NOT provided ", function () { return __awaiter(void 0, void 0, void 0, function () {
78
- var _a, queryByTestId, getByTestId;
79
- return __generator(this, function (_b) {
80
- switch (_b.label) {
81
- case 0:
82
- _a = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [{ title: "test" }, { title: "test2" }] })), queryByTestId = _a.queryByTestId, getByTestId = _a.getByTestId;
83
- return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
84
- case 1:
85
- _b.sent();
86
- expect(queryByTestId("menu-label")).toBeNull();
87
- return [2 /*return*/];
88
- }
89
- });
90
- }); });
91
- it("onClick should be called menu clicked on menu items only when provided", function () { return __awaiter(void 0, void 0, void 0, function () {
92
- var mockOnClickCallBack1, getByTestId, firstMenuItem;
93
- return __generator(this, function (_a) {
94
- switch (_a.label) {
95
- case 0:
96
- mockOnClickCallBack1 = jest.fn();
97
- getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [
98
- { title: "test", onClick: mockOnClickCallBack1 },
99
- { title: "test2" },
100
- ] })).getByTestId;
101
- return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
102
- case 1:
103
- _a.sent();
104
- return [4 /*yield*/, waitFor(function () { return expect(getByTestId("test-0")).toBeInTheDocument(); }, {
105
- timeout: 2000,
106
- })];
107
- case 2:
108
- _a.sent();
109
- firstMenuItem = getByTestId("test-0");
110
- return [4 /*yield*/, userEvent.click(firstMenuItem)];
111
- case 3:
112
- _a.sent();
113
- expect(mockOnClickCallBack1).toBeCalled();
114
- return [2 /*return*/];
115
- }
116
- });
117
- }); });
118
- it("test menu item disabled", function () { return __awaiter(void 0, void 0, void 0, function () {
119
- var getByTestId;
120
- return __generator(this, function (_a) {
121
- switch (_a.label) {
122
- case 0:
123
- getByTestId = render(_jsx(DropdownMenu, { TargetButtonChildren: "test", dropdownElements: [
124
- { title: "itemD", disabled: true },
125
- { title: "itemE" },
126
- ] })).getByTestId;
127
- return [4 /*yield*/, userEvent.click(getByTestId("menu-elem"))];
128
- case 1:
129
- _a.sent();
130
- return [4 /*yield*/, waitFor(function () { return expect(getByTestId("itemD-0")).toBeDisabled(); }, {
131
- timeout: 2000,
132
- })];
133
- case 2:
134
- _a.sent();
135
- expect(getByTestId("itemE-1")).not.toBeDisabled();
136
- return [2 /*return*/];
137
- }
138
- });
139
- }); });
140
- });
141
- //# sourceMappingURL=DropdownMenu.unit.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropdownMenu.unit.test.js","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/DropdownMenu.unit.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,QAAQ,C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BAChD,qBAAM,OAAO,CAAC,cAAM,OAAA,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,EAAE,EAA7C,CAA6C,EAAE;4BACjE,OAAO,EAAE,IAAI;yBACd,CAAC,EAAA;;oBAFF,SAEE,CAAC;oBACH,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;;;;SACnD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import DropdownMenu from "./DropdownMenu";
2
- export default DropdownMenu;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -1,3 +0,0 @@
1
- import DropdownMenu from "./DropdownMenu";
2
- export default DropdownMenu;
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface ErrorMessageProps {
3
- readonly message: string;
4
- }
5
- declare const ErrorMessage: React.FC<ErrorMessageProps>;
6
- export default ErrorMessage;
7
- //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageCards/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,iBAAiB;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAO7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon } from '@iconify-icon/react';
3
- var ErrorMessage = function (_a) {
4
- var message = _a.message;
5
- return (_jsxs("span", { className: "flex items-center mt-2 text-utility-error", children: [_jsx(Icon, { icon: "gen3:waring", height: "1rem" }), message] }));
6
- };
7
- export default ErrorMessage;
8
- //# sourceMappingURL=ErrorMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../src/components/MessageCards/ErrorMessage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAM3C,IAAM,YAAY,GAAgC,UAAC,EAE/B;QADlB,OAAO,aAAA;IACgB,OAAA,CACvB,gBAAM,SAAS,EAAC,2CAA2C,aACzD,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,EAAC,MAAM,EAAC,MAAM,GAAG,EACxC,OAAO,IACH,CACR;AALwB,CAKxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { Cohort } from './types';
3
- import { DataFetchingStatus } from './types';
4
- interface CohortActionsProps {
5
- readonly onSave: () => void;
6
- readonly onSaveAs: () => void;
7
- readonly onDelete: () => void;
8
- readonly selectCurrentCohort: () => Cohort;
9
- readonly selectAvailableCohorts: () => Cohort[];
10
- readonly addNewDefaultUnsavedCohort: () => void;
11
- readonly useExportCohort: () => {
12
- readonly handleExport: (() => void) | undefined;
13
- readonly status: DataFetchingStatus;
14
- };
15
- readonly useImportCohort: () => (() => void) | undefined;
16
- readonly defaultCohortName: string;
17
- }
18
- declare const CohortActions: React.FC<CohortActionsProps>;
19
- export default CohortActions;
20
- //# sourceMappingURL=CohortActions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortActions.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,MAAM,CAAC;IAC3C,QAAQ,CAAC,sBAAsB,EAAE,MAAM,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,0BAA0B,EAAE,MAAM,IAAI,CAAC;IAChD,QAAQ,CAAC,eAAe,EAAE,MAAM;QAC9B,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;QAChD,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;KACrC,CAAC;IACF,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsH/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,37 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useContext } from 'react';
3
- import { Loader, Tooltip, Button } from '@mantine/core';
4
- import DropdownMenu from '../../../components/DropdownMenu';
5
- import { AddIcon, DeleteIcon, DownloadIcon, SaveIcon, UploadIcon, } from './commonIcons';
6
- import { CohortNotificationContext } from './CohortNotificationProvider';
7
- var CohortActions = function (_a) {
8
- var onSave = _a.onSave, onSaveAs = _a.onSaveAs, onDelete = _a.onDelete, selectCurrentCohort = _a.selectCurrentCohort, selectAvailableCohorts = _a.selectAvailableCohorts, addNewDefaultUnsavedCohort = _a.addNewDefaultUnsavedCohort, useExportCohort = _a.useExportCohort, useImportCohort = _a.useImportCohort, defaultCohortName = _a.defaultCohortName;
9
- var currentCohort = selectCurrentCohort();
10
- var availableCohorts = selectAvailableCohorts();
11
- // const hasUnsavedCohorts =
12
- // availableCohorts.filter((c) => !c.saved).length >= 1;
13
- var _b = useExportCohort(), handleExport = _b.handleExport, status = _b.status;
14
- var _c = status.isFetching, exportCohortPending = _c === void 0 ? false : _c;
15
- var handleImport = useImportCohort();
16
- var setCohortMessage = useContext(CohortNotificationContext);
17
- return (_jsxs("div", { className: "flex justify-center items-center gap-2 md:gap-4", children: [_jsx(Tooltip, { label: "Save Cohort", position: "top", withArrow: true, children: _jsx("span", { className: "h-12", children: _jsx(DropdownMenu, { customDataTestId: "saveButton", dropdownElements: [
18
- {
19
- onClick: onSave,
20
- title: 'Save',
21
- disabled: currentCohort.saved && !currentCohort.modified,
22
- },
23
- {
24
- onClick: onSaveAs,
25
- title: 'Save As',
26
- disabled: !currentCohort.saved,
27
- },
28
- ], LeftSection: _jsx(SaveIcon, { size: "1.5em", className: "-mr-2.5", "aria-hidden": "true" }), TargetButtonChildren: "", fullHeight: true, disableTargetWidth: true, buttonAriaLabel: "Save cohort" }) }) }), _jsx(Tooltip, { label: 'Create New Unsaved Cohort', position: "bottom", withArrow: true, children: _jsx(Button, { onClick: function () {
29
- addNewDefaultUnsavedCohort();
30
- setCohortMessage &&
31
- setCohortMessage([
32
- { cmd: 'newCohort', param1: defaultCohortName },
33
- ]);
34
- }, "data-testid": "addButton", "aria-label": "Add cohort", variant: "action", children: _jsx(AddIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), _jsx(Tooltip, { label: "Delete Cohort", position: "bottom", withArrow: true, children: _jsx(Button, { "data-testid": "deleteButton", onClick: onDelete, "aria-label": "Delete cohort", variant: "action", children: _jsx(DeleteIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), handleImport && (_jsx(Tooltip, { label: "Import New Cohort", position: "bottom", withArrow: true, children: _jsx(Button, { "data-testid": "uploadButton", onClick: handleImport, "aria-label": "Upload cohort", variant: "action", children: _jsx(UploadIcon, { size: "1.5em", "aria-hidden": "true" }) }) })), handleExport && (_jsx(Tooltip, { label: "Export Cohort", position: "bottom", withArrow: true, children: _jsx("span", { children: _jsx(Button, { "data-testid": "downloadButton", onClick: handleExport, "aria-label": "Download cohort", variant: "action", children: exportCohortPending ? (_jsx(Loader, {})) : (_jsx(DownloadIcon, { size: "1.5em", "aria-hidden": "true" })) }) }) }))] }));
35
- };
36
- export default CohortActions;
37
- //# sourceMappingURL=CohortActions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortActions.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortActions.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EACL,OAAO,EACP,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,UAAU,GACX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAkBzE,IAAM,aAAa,GAAiC,UAAC,EAUhC;QATnB,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,mBAAmB,yBAAA,EACnB,sBAAsB,4BAAA,EACtB,0BAA0B,gCAAA,EAC1B,eAAe,qBAAA,EACf,eAAe,qBAAA,EACf,iBAAiB,uBAAA;IAEjB,IAAM,aAAa,GAAG,mBAAmB,EAAE,CAAC;IAC5C,IAAM,gBAAgB,GAAG,sBAAsB,EAAE,CAAC;IAClD,4BAA4B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,OAAO,EAAC,QAAQ,YAEhB,KAAC,OAAO,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GACpC,GACD,EAEV,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBACxD,KAAC,MAAM,mBACO,cAAc,EAC1B,OAAO,EAAE,QAAQ,gBACN,eAAe,EAC1B,OAAO,EAAC,QAAQ,YAEhB,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GACvC,GACD,EACT,YAAY,IAAI,CACf,KAAC,OAAO,IAAC,KAAK,EAAC,mBAAmB,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBAC5D,KAAC,MAAM,mBACO,cAAc,EAC1B,OAAO,EAAE,YAAY,gBACV,eAAe,EAC1B,OAAO,EAAC,QAAQ,YAEhB,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GACvC,GACD,CACX,EACA,YAAY,IAAI,CACf,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBACxD,yBACE,KAAC,MAAM,mBACO,gBAAgB,EAC5B,OAAO,EAAE,YAAY,gBACV,iBAAiB,EAC5B,OAAO,EAAC,QAAQ,YAEf,mBAAmB,CAAC,CAAC,CAAC,CACrB,KAAC,MAAM,KAAG,CACX,CAAC,CAAC,CAAC,CACF,KAAC,YAAY,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,CACjD,GACM,GACJ,GACC,CACX,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,9 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { CohortNotificationCommand } from './types';
3
- export declare const CohortNotificationContext: React.Context<((cohortMessage: CohortNotificationCommand[]) => void) | undefined>;
4
- interface CohortNotificationWrapperProps extends PropsWithChildren {
5
- readonly useSetActiveCohort: () => (cohortId: string) => void;
6
- }
7
- declare const CohortNotificationProvider: React.FC<CohortNotificationWrapperProps>;
8
- export default CohortNotificationProvider;
9
- //# sourceMappingURL=CohortNotificationProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortNotificationProvider.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotificationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAc5E,OAAO,EACL,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAkBjB,eAAO,MAAM,yBAAyB,iCACnB,yBAAyB,EAAE,KAAK,IAAI,cAC3C,CAAC;AAEb,UAAU,8BAA+B,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/D;AAED,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAoJxE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,122 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { createContext, useReducer } from 'react';
12
- import { useDeepCompareCallback, useDeepCompareEffect } from 'use-deep-compare';
13
- import { isEqual } from 'lodash';
14
- import { showNotification } from '@mantine/notifications';
15
- import { DeleteCohortNotification, DiscardChangesCohortNotification, ErrorCohortNotification, NewCohortNotification, SavedCohortNotification, SavedCohortNotificationWithSetAsCurrent, SavedCurrentCohortNotification, } from './CohortNotifications';
16
- var cohortMessageReducer = function (state, action) {
17
- switch (action.type) {
18
- case 'update':
19
- return __spreadArray(__spreadArray([], state, true), action.payload, true);
20
- case 'clear':
21
- return state.filter(function (message) { return !isEqual(message, action.payload); });
22
- default:
23
- return state;
24
- }
25
- };
26
- export var CohortNotificationContext = createContext(undefined);
27
- var CohortNotificationProvider = function (_a) {
28
- var useSetActiveCohort = _a.useSetActiveCohort, children = _a.children;
29
- var _b = useReducer(cohortMessageReducer, []), cohortMessage = _b[0], dispatch = _b[1];
30
- useDeepCompareEffect(function () {
31
- for (var _i = 0, cohortMessage_1 = cohortMessage; _i < cohortMessage_1.length; _i++) {
32
- var message = cohortMessage_1[_i];
33
- switch (message.cmd) {
34
- case 'newCohort':
35
- showNotification({
36
- message: (_jsx(NewCohortNotification, { cohortName: message.param1 })),
37
- classNames: {
38
- description: 'flex flex-col content-center text-center',
39
- },
40
- autoClose: 5000,
41
- closeButtonProps: { 'aria-label': 'Close notification' },
42
- id: "new-cohort-".concat(message.param1),
43
- });
44
- break;
45
- case 'deleteCohort':
46
- showNotification({
47
- message: (_jsx(DeleteCohortNotification, { cohortName: message.param1 })),
48
- classNames: {
49
- description: 'flex flex-col content-center text-center',
50
- },
51
- autoClose: 5000,
52
- closeButtonProps: { 'aria-label': 'Close notification' },
53
- id: "delete-cohort-".concat(message.param1),
54
- });
55
- break;
56
- case 'savedCohort':
57
- showNotification({
58
- message: (_jsx(SavedCohortNotification, { cohortName: message.param1 })),
59
- classNames: {
60
- description: 'flex flex-col content-center text-center',
61
- },
62
- autoClose: 5000,
63
- closeButtonProps: { 'aria-label': 'Close notification' },
64
- id: "saved-cohort-".concat(message.param1),
65
- });
66
- break;
67
- case 'savedCohortSetCurrent':
68
- showNotification({
69
- message: (_jsx(SavedCohortNotificationWithSetAsCurrent, { cohortName: message.param1, cohortId: message
70
- .param2, useSetActiveCohort: useSetActiveCohort })),
71
- classNames: {
72
- description: 'flex flex-col content-center text-center',
73
- },
74
- autoClose: 5000,
75
- closeButtonProps: { 'aria-label': 'Close notification' },
76
- id: "saved-cohort-set-current-".concat(message.param2),
77
- });
78
- break;
79
- case 'savedCurrentCohort':
80
- showNotification({
81
- message: _jsx(SavedCurrentCohortNotification, {}),
82
- classNames: {
83
- description: 'flex flex-col content-center text-center',
84
- },
85
- autoClose: 5000,
86
- closeButtonProps: { 'aria-label': 'Close notification' },
87
- id: 'saved-current-cohort',
88
- });
89
- break;
90
- case 'discardChanges':
91
- showNotification({
92
- message: _jsx(DiscardChangesCohortNotification, {}),
93
- classNames: {
94
- description: 'flex flex-col content-center text-center',
95
- },
96
- autoClose: 5000,
97
- closeButtonProps: { 'aria-label': 'Close notification' },
98
- id: 'discard-changes',
99
- });
100
- break;
101
- case 'error':
102
- showNotification({
103
- message: (_jsx(ErrorCohortNotification, { errorType: message.param1 })),
104
- classNames: {
105
- description: 'flex flex-col content-center text-center',
106
- },
107
- autoClose: 5000,
108
- closeButtonProps: { 'aria-label': 'Close notification' },
109
- id: "cohort-error-".concat(message.param1),
110
- });
111
- break;
112
- }
113
- dispatch({ type: 'clear', payload: message });
114
- }
115
- }, [cohortMessage, useSetActiveCohort]);
116
- var updateCohortMessage = useDeepCompareCallback(function (newMessages) {
117
- dispatch({ type: 'update', payload: newMessages });
118
- }, [dispatch]);
119
- return (_jsx(CohortNotificationContext.Provider, { value: updateCohortMessage, children: children }));
120
- };
121
- export default CohortNotificationProvider;
122
- //# sourceMappingURL=CohortNotificationProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortNotificationProvider.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotificationProvider.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAc,EAAE,aAAa,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wB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J,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- export interface CohortNotificationProps {
3
- readonly cohortName: string;
4
- }
5
- export declare const NewCohortNotification: React.FC<CohortNotificationProps>;
6
- export declare const SavedCohortNotification: React.FC<CohortNotificationProps>;
7
- export interface CohortWithSetOptionNotificationProps extends CohortNotificationProps {
8
- readonly cohortId: string;
9
- readonly useSetActiveCohort: () => (cohortId: string) => void;
10
- }
11
- export declare const NewCohortNotificationWithSetAsCurrent: React.FC<CohortWithSetOptionNotificationProps>;
12
- export declare const SavedCohortNotificationWithSetAsCurrent: React.FC<CohortWithSetOptionNotificationProps>;
13
- export declare const DeleteCohortNotification: React.FC<CohortNotificationProps>;
14
- export declare const SavedCurrentCohortNotification: React.FC;
15
- export declare const DiscardChangesCohortNotification: React.FC;
16
- export declare const ErrorCohortNotification: ({ errorType, }: {
17
- errorType: string;
18
- }) => JSX.Element;
19
- //# sourceMappingURL=CohortNotifications.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUnE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUrE,CAAC;AAEF,MAAM,WAAW,oCACf,SAAQ,uBAAuB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,qCAAqC,EAAE,KAAK,CAAC,EAAE,CAC1D,oCAAoC,CAwBrC,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,KAAK,CAAC,EAAE,CAC5D,oCAAoC,CAwBrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUtE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAMlD,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAMpD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,gBAErC;IACD,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,GAAG,CAAC,OAcP,CAAC"}