@elliemae/ds-left-navigation 3.80.0-next.6 → 3.80.0-next.60
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/dist/cjs/TruncatedTooltipText.js +25 -4
- package/dist/cjs/TruncatedTooltipText.js.map +2 -2
- package/dist/cjs/constants/index.js +4 -0
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/exported-related/Icon/index.js +24 -3
- package/dist/cjs/exported-related/Icon/index.js.map +3 -3
- package/dist/cjs/exported-related/OpenWindowItem/index.js +23 -2
- package/dist/cjs/exported-related/OpenWindowItem/index.js.map +3 -3
- package/dist/cjs/exported-related/conversion-utils/conversionConstants.js +64 -0
- package/dist/cjs/exported-related/conversion-utils/conversionConstants.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/conversionHelpers.js +192 -0
- package/dist/cjs/exported-related/conversion-utils/conversionHelpers.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/convertItemOpts.js +187 -0
- package/dist/cjs/exported-related/conversion-utils/convertItemOpts.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/getHumanReadableWarnings.js +37 -0
- package/dist/cjs/exported-related/conversion-utils/getHumanReadableWarnings.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/index.js +95 -0
- package/dist/cjs/exported-related/conversion-utils/index.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/lostCodes.js +55 -0
- package/dist/cjs/exported-related/conversion-utils/lostCodes.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/report.js +48 -0
- package/dist/cjs/exported-related/conversion-utils/report.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/types.js +28 -0
- package/dist/cjs/exported-related/conversion-utils/types.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/validateIds.js +58 -0
- package/dist/cjs/exported-related/conversion-utils/validateIds.js.map +7 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemHeader/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemLink/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemLink/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemTextLabel/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemWithDate/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +2 -2
- package/dist/cjs/parts/LeftNavFooterItem/index.js +2 -3
- package/dist/cjs/parts/LeftNavFooterItem/index.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +58 -1
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +8 -0
- package/dist/cjs/typescript-testing/slot-props.js.map +2 -2
- package/dist/esm/TruncatedTooltipText.js +26 -5
- package/dist/esm/TruncatedTooltipText.js.map +2 -2
- package/dist/esm/constants/index.js +4 -0
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/exported-related/Icon/index.js +24 -3
- package/dist/esm/exported-related/Icon/index.js.map +3 -3
- package/dist/esm/exported-related/OpenWindowItem/index.js +23 -2
- package/dist/esm/exported-related/OpenWindowItem/index.js.map +3 -3
- package/dist/esm/exported-related/conversion-utils/conversionConstants.js +34 -0
- package/dist/esm/exported-related/conversion-utils/conversionConstants.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/conversionHelpers.js +172 -0
- package/dist/esm/exported-related/conversion-utils/conversionHelpers.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/convertItemOpts.js +157 -0
- package/dist/esm/exported-related/conversion-utils/convertItemOpts.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/getHumanReadableWarnings.js +7 -0
- package/dist/esm/exported-related/conversion-utils/getHumanReadableWarnings.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/index.js +65 -0
- package/dist/esm/exported-related/conversion-utils/index.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/lostCodes.js +25 -0
- package/dist/esm/exported-related/conversion-utils/lostCodes.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/report.js +18 -0
- package/dist/esm/exported-related/conversion-utils/report.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/types.js +2 -0
- package/dist/esm/exported-related/conversion-utils/types.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/validateIds.js +28 -0
- package/dist/esm/exported-related/conversion-utils/validateIds.js.map +7 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemHeader/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemHeader/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemLink/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemLink/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemSubmenu/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemTextLabel/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemWithDate/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +2 -2
- package/dist/esm/parts/LeftNavFooterItem/index.js +2 -3
- package/dist/esm/parts/LeftNavFooterItem/index.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +58 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +8 -0
- package/dist/esm/typescript-testing/slot-props.js.map +2 -2
- package/dist/types/constants/index.d.ts +12 -0
- package/dist/types/exported-related/Icon/index.d.ts +4 -0
- package/dist/types/exported-related/conversion-utils/conversionConstants.d.ts +20 -0
- package/dist/types/exported-related/conversion-utils/conversionHelpers.d.ts +25 -0
- package/dist/types/exported-related/conversion-utils/convertItemOpts.d.ts +22 -0
- package/dist/types/exported-related/conversion-utils/getHumanReadableWarnings.d.ts +7 -0
- package/dist/types/exported-related/conversion-utils/index.d.ts +12 -0
- package/dist/types/exported-related/conversion-utils/lostCodes.d.ts +23 -0
- package/dist/types/exported-related/conversion-utils/report.d.ts +3 -0
- package/dist/types/exported-related/conversion-utils/types.d.ts +37 -0
- package/dist/types/exported-related/conversion-utils/validateIds.d.ts +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react-desc-prop-types.d.ts +4 -0
- package/package.json +16 -13
|
@@ -38,6 +38,7 @@ const SlotPropsAsObject = {
|
|
|
38
38
|
dsLeftnavigationFooterMenuCollapse: { "aria-label": "just a typescript test" },
|
|
39
39
|
dsLeftnavigationFooterSeparator: { "aria-label": "just a typescript test" },
|
|
40
40
|
dsLeftnavigationHeaderArea: { "aria-label": "just a typescript test" },
|
|
41
|
+
dsLeftnavigationIcon: { "aria-label": "just a typescript test" },
|
|
41
42
|
dsLeftnavigationItem: { "aria-label": "just a typescript test" },
|
|
42
43
|
dsLeftnavigationItemBorderBottom: { "aria-label": "just a typescript test" },
|
|
43
44
|
dsLeftnavigationItemChevronBack: { "aria-label": "just a typescript test" },
|
|
@@ -49,11 +50,14 @@ const SlotPropsAsObject = {
|
|
|
49
50
|
dsLeftnavigationMessagesIcon: { "aria-label": "just a typescript test" },
|
|
50
51
|
dsLeftnavigationNotificationsContainer: { "aria-label": "just a typescript test" },
|
|
51
52
|
dsLeftnavigationNotificationsIcon: { "aria-label": "just a typescript test" },
|
|
53
|
+
dsLeftnavigationOpenWindowIcon: { "aria-label": "just a typescript test" },
|
|
52
54
|
dsLeftnavigationRightContainer: { "aria-label": "just a typescript test" },
|
|
53
55
|
dsLeftnavigationRoot: { "aria-label": "just a typescript test" },
|
|
54
56
|
dsLeftnavigationSectionContainer: { "aria-label": "just a typescript test" },
|
|
55
57
|
dsLeftnavigationSectionLabel: { "aria-label": "just a typescript test" },
|
|
56
58
|
dsLeftnavigationSectionRightLabel: { "aria-label": "just a typescript test" },
|
|
59
|
+
dsLeftnavigationTruncatedLabel: { "aria-label": "just a typescript test" },
|
|
60
|
+
dsLeftnavigationTruncatedLabelTooltip: { "aria-label": "just a typescript test" },
|
|
57
61
|
dsLeftnavigationVerticalSeparator: { "aria-label": "just a typescript test" }
|
|
58
62
|
};
|
|
59
63
|
const SlotPropsAsFunctions = {
|
|
@@ -72,6 +76,7 @@ const SlotPropsAsFunctions = {
|
|
|
72
76
|
dsLeftnavigationFooterMenuCollapse: () => ({ "aria-label": "just a typescript test" }),
|
|
73
77
|
dsLeftnavigationFooterSeparator: () => ({ "aria-label": "just a typescript test" }),
|
|
74
78
|
dsLeftnavigationHeaderArea: () => ({ "aria-label": "just a typescript test" }),
|
|
79
|
+
dsLeftnavigationIcon: () => ({ "aria-label": "just a typescript test" }),
|
|
75
80
|
dsLeftnavigationItem: () => ({ "aria-label": "just a typescript test" }),
|
|
76
81
|
dsLeftnavigationItemBorderBottom: () => ({ "aria-label": "just a typescript test" }),
|
|
77
82
|
dsLeftnavigationItemChevronBack: () => ({ "aria-label": "just a typescript test" }),
|
|
@@ -83,11 +88,14 @@ const SlotPropsAsFunctions = {
|
|
|
83
88
|
dsLeftnavigationMessagesIcon: () => ({ "aria-label": "just a typescript test" }),
|
|
84
89
|
dsLeftnavigationNotificationsContainer: () => ({ "aria-label": "just a typescript test" }),
|
|
85
90
|
dsLeftnavigationNotificationsIcon: () => ({ "aria-label": "just a typescript test" }),
|
|
91
|
+
dsLeftnavigationOpenWindowIcon: () => ({ "aria-label": "just a typescript test" }),
|
|
86
92
|
dsLeftnavigationRightContainer: () => ({ "aria-label": "just a typescript test" }),
|
|
87
93
|
dsLeftnavigationRoot: () => ({ "aria-label": "just a typescript test" }),
|
|
88
94
|
dsLeftnavigationSectionContainer: () => ({ "aria-label": "just a typescript test" }),
|
|
89
95
|
dsLeftnavigationSectionLabel: () => ({ "aria-label": "just a typescript test" }),
|
|
90
96
|
dsLeftnavigationSectionRightLabel: () => ({ "aria-label": "just a typescript test" }),
|
|
97
|
+
dsLeftnavigationTruncatedLabel: () => ({ "aria-label": "just a typescript test" }),
|
|
98
|
+
dsLeftnavigationTruncatedLabelTooltip: () => ({ "aria-label": "just a typescript test" }),
|
|
91
99
|
dsLeftnavigationVerticalSeparator: () => ({ "aria-label": "just a typescript test" })
|
|
92
100
|
};
|
|
93
101
|
const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from '../constants/index.js';\nimport type { DSLeftNavigationT } from '../index.js';\n\nconst SlotPropsAsObject: Partial<DSLeftNavigationT.Props> = {\n dsLeftnavigationAlertsIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationAreasContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationArrowContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBodyAreasContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBodyHeaderArea: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBodyItemsArea: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBottomContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationCollapsedContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationExceptionsIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterItem: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterMenu: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterMenuCollapse: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterSeparator: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationHeaderArea: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItem: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemBorderBottom: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemChevronBack: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemDate: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemSeparator: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationLeftContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationLoaderWrapper: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationMessagesIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationNotificationsContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationNotificationsIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationRightContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationRoot: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationSectionContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationSectionLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationSectionRightLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationVerticalSeparator: { 'aria-label': 'just a typescript test' },\n};\nconst SlotPropsAsFunctions: DSLeftNavigationT.SlotFunctionArguments = {\n dsLeftnavigationAlertsIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationAreasContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationArrowContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBodyAreasContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBodyHeaderArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBodyItemsArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBottomContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationCollapsedContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationExceptionsIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterItem: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterMenu: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterMenuCollapse: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationHeaderArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItem: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemBorderBottom: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemChevronBack: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemDate: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationLeftContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationLoaderWrapper: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationMessagesIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationNotificationsContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationNotificationsIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationRightContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationSectionContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationSectionLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationSectionRightLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationVerticalSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n};\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSLeftNavigationName, typeof LEFT_NAVIGATION_SLOTS>\n> = SlotPropsAsFunctions;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACKvB,MAAM,oBAAsD;AAAA,EAC1D,4BAA4B,EAAE,cAAc,yBAAyB;AAAA,EACrE,gCAAgC,EAAE,cAAc,yBAAyB;AAAA,EACzE,gCAAgC,EAAE,cAAc,yBAAyB;AAAA,EACzE,oCAAoC,EAAE,cAAc,yBAAyB;AAAA,EAC7E,gCAAgC,EAAE,cAAc,yBAAyB;AAAA,EACzE,+BAA+B,EAAE,cAAc,yBAAyB;AAAA,EACxE,iCAAiC,EAAE,cAAc,yBAAyB;AAAA,EAC1E,oCAAoC,EAAE,cAAc,yBAAyB;AAAA,EAC7E,gCAAgC,EAAE,cAAc,yBAAyB;AAAA,EACzE,4BAA4B,EAAE,cAAc,yBAAyB;AAAA,EACrE,6BAA6B,EAAE,cAAc,yBAAyB;AAAA,EACtE,4BAA4B,EAAE,cAAc,yBAAyB;AAAA,EACrE,oCAAoC,EAAE,cAAc,yBAAyB;AAAA,EAC7E,iCAAiC,EAAE,cAAc,yBAAyB;AAAA,EAC1E,4BAA4B,EAAE,cAAc,yBAAyB;AAAA,EACrE,sBAAsB,EAAE,cAAc,yBAAyB;AAAA,EAC/D,kCAAkC,EAAE,c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A,EAC5E,oCAAoC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACpF,iCAAiC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACjF,4BAA4B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC5E,sBAAsB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACtE,kCAAkC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClF,iCAAiC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACjF,0BAA0B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC1E,2BAA2B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC3E,+BAA+B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/E,+BAA+B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/E,+BAA+B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/E,8BAA8B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9E,wCAAwC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACxF,mCAAmC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACnF,gCAAgC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChF,sBAAsB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACtE,kCAAkC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClF,8BAA8B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9E,mCAAmC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACnF,mCAAmC,OAAO,EAAE,cAAc,yBAAyB;AACrF;AACA,MAAM,6CAEF;",
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from '../constants/index.js';\nimport type { DSLeftNavigationT } from '../index.js';\n\nconst SlotPropsAsObject: Partial<DSLeftNavigationT.Props> = {\n dsLeftnavigationAlertsIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationAreasContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationArrowContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBodyAreasContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBodyHeaderArea: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBodyItemsArea: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationBottomContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationCollapsedContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationExceptionsIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterItem: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterMenu: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterMenuCollapse: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationFooterSeparator: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationHeaderArea: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItem: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemBorderBottom: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemChevronBack: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemDate: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationItemSeparator: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationLeftContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationLoaderWrapper: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationMessagesIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationNotificationsContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationNotificationsIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationOpenWindowIcon: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationRightContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationRoot: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationSectionContainer: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationSectionLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationSectionRightLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationTruncatedLabel: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationTruncatedLabelTooltip: { 'aria-label': 'just a typescript test' },\n dsLeftnavigationVerticalSeparator: { 'aria-label': 'just a typescript test' },\n};\nconst SlotPropsAsFunctions: DSLeftNavigationT.SlotFunctionArguments = {\n dsLeftnavigationAlertsIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationAreasContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationArrowContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBodyAreasContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBodyHeaderArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBodyItemsArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationBottomContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationCollapsedContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationExceptionsIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterItem: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterMenu: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterMenuCollapse: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationFooterSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationHeaderArea: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItem: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemBorderBottom: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemChevronBack: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemDate: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationItemSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationLeftContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationLoaderWrapper: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationMessagesIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationNotificationsContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationNotificationsIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationOpenWindowIcon: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationRightContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationSectionContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationSectionLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationSectionRightLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationTruncatedLabel: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationTruncatedLabelTooltip: () => ({ 'aria-label': 'just a typescript test' }),\n dsLeftnavigationVerticalSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n};\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSLeftNavigationName, typeof LEFT_NAVIGATION_SLOTS>\n> = SlotPropsAsFunctions;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACKvB,MAAM,oBAAsD;AAAA,EAC1D,4BAA4B,EA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,EAAE,cAAc,yBAAyB;AAAA,EAC3E,+BAA+B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/E,+BAA+B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/E,+BAA+B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC/E,8BAA8B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9E,wCAAwC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACxF,mCAAmC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACnF,gCAAgC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChF,gCAAgC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChF,sBAAsB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACtE,kCAAkC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClF,8BAA8B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9E,mCAAmC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACnF,gCAAgC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChF,uCAAuC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACvF,mCAAmC,OAAO,EAAE,cAAc,yBAAyB;AACrF;AACA,MAAM,6CAEF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback, useState } from "react";
|
|
3
|
+
import { useCallback, useContext, useState } from "react";
|
|
4
4
|
import { styled } from "@elliemae/ds-system";
|
|
5
5
|
import {
|
|
6
6
|
useFloatingContext,
|
|
7
7
|
FloatingWrapper,
|
|
8
8
|
PopoverArrow
|
|
9
9
|
} from "@elliemae/ds-floating-context";
|
|
10
|
-
|
|
10
|
+
import { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from "./constants/index.js";
|
|
11
|
+
import { LeftNavContext } from "./LeftNavigationContext.js";
|
|
12
|
+
const TruncatedSpan = styled("span", {
|
|
13
|
+
name: DSLeftNavigationName,
|
|
14
|
+
slot: LEFT_NAVIGATION_SLOTS.TRUNCATED_LABEL
|
|
15
|
+
})`
|
|
11
16
|
text-overflow: ellipsis;
|
|
12
17
|
white-space: nowrap;
|
|
13
18
|
overflow: hidden;
|
|
14
19
|
display: inline-block;
|
|
15
20
|
max-width: 100%;
|
|
16
21
|
`;
|
|
17
|
-
const TooltipContainer = styled
|
|
22
|
+
const TooltipContainer = styled("div", {
|
|
23
|
+
name: DSLeftNavigationName,
|
|
24
|
+
slot: LEFT_NAVIGATION_SLOTS.TRUNCATED_LABEL_TOOLTIP
|
|
25
|
+
})`
|
|
18
26
|
text-align: center;
|
|
19
27
|
min-width: ${({ theme }) => theme.space.l};
|
|
20
28
|
max-width: 250px;
|
|
@@ -33,6 +41,9 @@ const TooltipContainer = styled.div`
|
|
|
33
41
|
`;
|
|
34
42
|
const TruncatedTooltipText = ({ value = "", placement = "top" }) => {
|
|
35
43
|
const [showTooltip, setShowTooltip] = useState(false);
|
|
44
|
+
const { leftNavProps } = useContext(LeftNavContext);
|
|
45
|
+
const getOwnerProps = useCallback(() => leftNavProps, [leftNavProps]);
|
|
46
|
+
const getOwnerPropsArguments = useCallback(() => ({}), []);
|
|
36
47
|
const { refs, floatingStyles, arrowStyles, context } = useFloatingContext({
|
|
37
48
|
placement,
|
|
38
49
|
externallyControlledIsOpen: showTooltip,
|
|
@@ -46,7 +57,17 @@ const TruncatedTooltipText = ({ value = "", placement = "top" }) => {
|
|
|
46
57
|
setShowTooltip(false);
|
|
47
58
|
}, []);
|
|
48
59
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
-
/* @__PURE__ */ jsx(
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
TruncatedSpan,
|
|
62
|
+
{
|
|
63
|
+
innerRef: refs.setReference,
|
|
64
|
+
onMouseEnter: handleMouseEnter,
|
|
65
|
+
onMouseLeave: handleMouseLeave,
|
|
66
|
+
getOwnerProps,
|
|
67
|
+
getOwnerPropsArguments,
|
|
68
|
+
children: value
|
|
69
|
+
}
|
|
70
|
+
),
|
|
50
71
|
/* @__PURE__ */ jsx(
|
|
51
72
|
FloatingWrapper,
|
|
52
73
|
{
|
|
@@ -54,7 +75,7 @@ const TruncatedTooltipText = ({ value = "", placement = "top" }) => {
|
|
|
54
75
|
isOpen: showTooltip,
|
|
55
76
|
floatingStyles,
|
|
56
77
|
context,
|
|
57
|
-
children: /* @__PURE__ */ jsxs(TooltipContainer, { children: [
|
|
78
|
+
children: /* @__PURE__ */ jsxs(TooltipContainer, { getOwnerProps, getOwnerPropsArguments, children: [
|
|
58
79
|
value,
|
|
59
80
|
/* @__PURE__ */ jsx(PopoverArrow, { ...arrowStyles })
|
|
60
81
|
] })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/TruncatedTooltipText.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useState } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport {\n useFloatingContext,\n FloatingWrapper,\n PopoverArrow,\n type DSHookFloatingContextT,\n} from '@elliemae/ds-floating-context';\n\nconst TruncatedSpan = styled.
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useContext, useState } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport {\n useFloatingContext,\n FloatingWrapper,\n PopoverArrow,\n type DSHookFloatingContextT,\n} from '@elliemae/ds-floating-context';\nimport { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from './constants/index.js';\nimport { LeftNavContext } from './LeftNavigationContext.js';\n\nconst TruncatedSpan = styled('span', {\n name: DSLeftNavigationName,\n slot: LEFT_NAVIGATION_SLOTS.TRUNCATED_LABEL,\n})`\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: inline-block;\n max-width: 100%;\n`;\n\n// Matches DSTooltipV3's StyledTooltipContainer styles for visual consistency\nconst TooltipContainer = styled('div', {\n name: DSLeftNavigationName,\n slot: LEFT_NAVIGATION_SLOTS.TRUNCATED_LABEL_TOOLTIP,\n})`\n text-align: center;\n min-width: ${({ theme }) => theme.space.l};\n max-width: 250px;\n overflow-wrap: break-word;\n word-break: break-word;\n min-height: 30px;\n display: grid;\n align-items: center;\n padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.xs}`};\n position: relative;\n background-color: white;\n border-radius: 2px;\n font-size: 13px;\n color: ${({ theme }) => theme.colors.neutral[600]};\n pointer-events: none;\n`;\n\ninterface TruncatedTooltipTextProps {\n value?: string | JSX.Element | undefined;\n placement?: DSHookFloatingContextT.PopperPlacementsT;\n}\n\nconst TruncatedTooltipText = ({ value = '', placement = 'top' }: TruncatedTooltipTextProps) => {\n const [showTooltip, setShowTooltip] = useState(false);\n const { leftNavProps } = useContext(LeftNavContext);\n const getOwnerProps = useCallback(() => leftNavProps, [leftNavProps]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n const { refs, floatingStyles, arrowStyles, context } = useFloatingContext({\n placement,\n externallyControlledIsOpen: showTooltip,\n withoutAnimation: true,\n });\n\n const handleMouseEnter = useCallback((e: React.MouseEvent<HTMLSpanElement>) => {\n const el = e.currentTarget;\n setShowTooltip(el.offsetWidth < el.scrollWidth);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setShowTooltip(false);\n }, []);\n\n return (\n <>\n <TruncatedSpan\n innerRef={refs.setReference}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {value}\n </TruncatedSpan>\n <FloatingWrapper\n innerRef={refs.setFloating}\n isOpen={showTooltip}\n floatingStyles={floatingStyles}\n context={context}\n >\n <TooltipContainer getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {value}\n <PopoverArrow {...arrowStyles} />\n </TooltipContainer>\n </FloatingWrapper>\n </>\n );\n};\n\nexport { TruncatedTooltipText };\nexport default TruncatedTooltipText;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACuEnB,mBACE,KAeE,YAhBJ;AAvEJ,SAAgB,aAAa,YAAY,gBAAgB;AACzD,SAAS,cAAc;AACvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,sBAAsB,6BAA6B;AAC5D,SAAS,sBAAsB;AAE/B,MAAM,gBAAgB,OAAO,QAAQ;AAAA,EACnC,MAAM;AAAA,EACN,MAAM,sBAAsB;AAC9B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASD,MAAM,mBAAmB,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,MAAM,sBAAsB;AAC9B,CAAC;AAAA;AAAA,eAEc,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAO9B,CAAC,EAAE,MAAM,MAAM,GAAG,MAAM,MAAM,GAAG,IAAI,MAAM,MAAM,EAAE,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,WAKvD,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAAA;AASnD,MAAM,uBAAuB,CAAC,EAAE,QAAQ,IAAI,YAAY,MAAM,MAAiC;AAC7F,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,KAAK;AACpD,QAAM,EAAE,aAAa,IAAI,WAAW,cAAc;AAClD,QAAM,gBAAgB,YAAY,MAAM,cAAc,CAAC,YAAY,CAAC;AACpE,QAAM,yBAAyB,YAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,QAAM,EAAE,MAAM,gBAAgB,aAAa,QAAQ,IAAI,mBAAmB;AAAA,IACxE;AAAA,IACA,4BAA4B;AAAA,IAC5B,kBAAkB;AAAA,EACpB,CAAC;AAED,QAAM,mBAAmB,YAAY,CAAC,MAAyC;AAC7E,UAAM,KAAK,EAAE;AACb,mBAAe,GAAG,cAAc,GAAG,WAAW;AAAA,EAChD,GAAG,CAAC,CAAC;AAEL,QAAM,mBAAmB,YAAY,MAAM;AACzC,mBAAe,KAAK;AAAA,EACtB,GAAG,CAAC,CAAC;AAEL,SACE,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU,KAAK;AAAA,QACf,cAAc;AAAA,QACd,cAAc;AAAA,QACd;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU,KAAK;AAAA,QACf,QAAQ;AAAA,QACR;AAAA,QACA;AAAA,QAEA,+BAAC,oBAAiB,eAA8B,wBAC7C;AAAA;AAAA,UACD,oBAAC,gBAAc,GAAG,aAAa;AAAA,WACjC;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAGA,IAAO,+BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,14 +28,18 @@ const LEFT_NAVIGATION_SLOTS = {
|
|
|
28
28
|
LEFT_CONTAINER: "left-container",
|
|
29
29
|
LOADER_WRAPPER: "loader-wrapper",
|
|
30
30
|
HEADER_AREA: "header-area",
|
|
31
|
+
ICON: "icon",
|
|
31
32
|
MESSAGES_ICON_WRAPPER: "messages-icon",
|
|
32
33
|
NOTIFICATIONS_CONTAINER: "notifications-container",
|
|
33
34
|
NOTIFICATIONS_ICON: "notifications-icon",
|
|
35
|
+
OPEN_WINDOW_ICON: "open-window-icon",
|
|
34
36
|
RIGHT_CONTAINER: "right-container",
|
|
35
37
|
ROOT: "root",
|
|
36
38
|
SECTION_CONTAINER: "section-container",
|
|
37
39
|
SECTION_LABEL: "section-label",
|
|
38
40
|
SECTION_RIGHT_LABEL: "section-right-label",
|
|
41
|
+
TRUNCATED_LABEL: "truncated-label",
|
|
42
|
+
TRUNCATED_LABEL_TOOLTIP: "truncated-label-tooltip",
|
|
39
43
|
VERTICAL_SEPARATOR: "vertical-separator"
|
|
40
44
|
};
|
|
41
45
|
const LEFT_NAVIGATION_DATA_TESTID = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSLeftNavigationName = 'DSLeftnavigation';\n\n// we are naming this with the ${component_name}_region_focuses convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LEFT_NAVIGATION_REGION_FOCUSES = {\n RESET: '',\n} as const;\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LEFT_NAVIGATION_SLOTS = {\n ALERTS_ICON_WRAPPER: 'alerts-icon',\n AREAS_CONTAINER: 'areas-container',\n ARROW_CONTAINER: 'arrow-container',\n BODY_AREAS_CONTAINER: 'body-areas-container',\n BODY_HEADER_AREA: 'body-header-area',\n BODY_ITEMS_AREA: 'body-items-area',\n BOTTOM_CONTAINER: 'bottom-container',\n COLLAPSED_CONTAINER: 'collapsed-container',\n EXCEPTIONS_ICON_WRAPPER: 'exceptions-icon',\n FOOTER_ITEM: 'footer-item',\n FOOTER_LABEL: 'footer-label',\n FOOTER_MENU: 'footer-menu',\n FOOTER_MENU_COLLAPSE: 'footer-menu-collapse',\n FOOTER_SEPARATOR: 'footer-separator',\n ITEM: 'item',\n ITEM_BORDER_BOTTOM: 'item-border-bottom',\n ITEM_CHEVRON_BACK: 'item-chevron-back',\n ITEM_DATE: 'item-date',\n ITEM_LABEL: 'item-label',\n ITEM_SEPARATOR: 'item-separator',\n LEFT_CONTAINER: 'left-container',\n LOADER_WRAPPER: 'loader-wrapper',\n HEADER_AREA: 'header-area',\n MESSAGES_ICON_WRAPPER: 'messages-icon',\n NOTIFICATIONS_CONTAINER: 'notifications-container',\n NOTIFICATIONS_ICON: 'notifications-icon',\n RIGHT_CONTAINER: 'right-container',\n ROOT: 'root',\n SECTION_CONTAINER: 'section-container',\n SECTION_LABEL: 'section-label',\n SECTION_RIGHT_LABEL: 'section-right-label',\n VERTICAL_SEPARATOR: 'vertical-separator',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LEFT_NAVIGATION_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSLeftNavigationName, LEFT_NAVIGATION_SLOTS),\n /* ********************************************************************************************************************************************\n * keeping old values around based on vinoth/guncha (forced) request to keep them stable\n * in the future, before removing/changing those values, please make sure to check with them\n * (and get written approval for future reference, verba volant, scripta manent).\n * ********************************************************************************************************************************************\n * https://jira.elliemae.io/browse/PUI-15589\n ******************************************************************************************************************************************** */\n ROOT: 'leftnav-component',\n HEADER_AREA: 'leftnav-header-area',\n AREAS_CONTAINER: 'ds-leftnavigation-areas-container',\n\n COLLAPSED_CONTAINER: 'leftnav-leftcomponent',\n\n BODY_AREAS_CONTAINER: 'ds-leftnavigation-body-areas-container',\n BODY_HEADER_AREA: 'leftnav-body-header-area',\n BODY_ITEMS_AREA: 'leftnav-body-items-area',\n BOTTOM_CONTAINER: 'ds-leftnavigation-bottom-container',\n\n ITEM: 'leftnav-item-container',\n ITEM_BORDER_BOTTOM: 'ds-leftnavigation-item-border-bottom',\n ITEM_LABEL: 'leftnav-itemlabel',\n ITEM_DATE: 'leftnav-list-item-date',\n ITEM_SEPARATOR: 'leftnav-separator-subitem',\n ITEM_CHEVRON_BACK: 'leftnav-leftcomponent-chevron',\n\n // repeated with \"COLLAPSED_CONTAINER\" above, APP QA team doesn't approve us changing this.\n // IF anyone come with the request to have a separate value for this, address them to guncha/vinoth.\n LEFT_CONTAINER: 'leftnav-leftcomponent',\n RIGHT_CONTAINER: 'leftnav-right-component',\n ARROW_CONTAINER: 'ds-leftnavigation-arrow-container',\n\n SECTION_CONTAINER: 'ds-leftnavigation-section-container',\n SECTION_LABEL: 'leftnav-section-item-label',\n SECTION_RIGHT_LABEL: 'ds-leftnavigation-section-right-label',\n\n NOTIFICATIONS_CONTAINER: 'ds-leftnavigation-notifications-container',\n\n EXCEPTIONS_ICON_WRAPPER: 'left-nav-exceptions-icon',\n ALERTS_ICON_WRAPPER: 'left-nav-alerts-icon',\n MESSAGES_ICON_WRAPPER: 'left-nav-messages-icon',\n\n FOOTER_MENU: 'leftnav-container',\n FOOTER_SEPARATOR: 'ds-leftnavigation-footer-separator',\n // repeated with \"ITEM\" above, APP QA team doesn't approve us changing this.\n // IF anyone come with the request to have a separate value for this, address them to guncha/vinoth.\n FOOTER_ITEM: 'leftnav-item-container',\n\n VERTICAL_SEPARATOR: 'ds-leftnavigation-vertical-separator',\n\n // Things that are not slots (why?) and still need data-testids (that needs to not change else APP QA team can't work)\n NOTIFICATION_ICON: 'left-nav-notifications-icon',\n ALERTS_ICON: 'left-nav-alerts-icon',\n EXCEPTIONS_ICON: 'left-nav-exceptions-icon',\n MESSAGES_ICON: 'left-nav-messages-icon',\n\n // I don't know if there was already a slot or not because the naming convention is confusing and we can't change it.\n // so I am re-defining those to be sure.\n // (usually this comes from previous implementation \"slot\" being a \"nested\" slot that inherits the slot from the child)\n DROPDOWN_MENU_TRIGGER_WRAPPER: 'dropdown-menu-trigger-wrapper', // used to be dsDropdownmenuRoot slot at time of writing this comment\n\n NOTIFICATIONS_ICON: 'left-nav-notifications-icon', // used to be dsIconRoot slot at time of writing this comment\n LEFT_COMPONENT_CHEVRON: 'leftnav-leftcomponent-chevron', // used to be dsButtonRoot slot at time of writing this comment\n // VERY SPECIAL CASE, THE SLOT FOOTER_BTN GOES TO THE ICON WHEN COLLAPSED, TO THE BTN WHEN EXPANDED\n // WE CAN'T FIX THE TECH DEBT\n FOOTER_BTN: 'leftnav-footer-btn', // used to be [ \"dsIconRoot\", \"dsButtonRoot\" ] slots at time of writing this comment\n // VERY SPECIAL CASE 2\n // THE SLOT IS TECHNICALLY dsLeftnavigationItemLabel\n // which is LEFT_NAVIGATION_SLOTS.ITEM_LABEL\n // BUT the data-test-id is either \"leftnav-itemlabel\" or \"leftnav-list-item-label\"\n // APPARENTLY (we are not sure) based on it's \"type\"\n // \"leftnav-list-item-label\" for:\n // - ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL\n // - ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE\n // - ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN\n // - ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN\n // WE CAN'T FIX THE TECH DEBT\n // IF we somehow need to change this, address them to guncha/vinoth.\n LIST_ITEM_LABEL_ID_EXCEPTION: 'leftnav-list-item-label',\n};\n\nexport const DSLeftNavigationSlots = LEFT_NAVIGATION_SLOTS;\n\n/* ********************************************************************************************************************************************\n * Specific left-nav constants. Those are exported to third parties so they can use them in their code.\n ******************************************************************************************************************************************** */\n\nexport const LABEL_OVERFLOW = {\n WRAP: 'wrap',\n WRAP_ALL: 'wrapAll',\n TRUNCATE: 'truncate',\n};\n\nexport const ITEM_TYPES = {\n LEFT_NAV_ITEM_HEADER: 'ds-left-nav-item-header',\n LEFT_NAV_ITEM_LINK: 'ds-left-nav-item-link',\n LEFT_NAV_ITEM_SUBMENU: 'ds-left-nav-item-submenu',\n LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN: 'ds-left-nav-item-controlled-drilldown',\n LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN: 'ds-left-nav-item-uncontrolled-drilldown',\n LEFT_NAV_ITEM_SECTION: 'ds-left-nav-item-section',\n LEFT_NAV_ITEM_SEPARATOR: 'ds-left-nav-item-separator',\n LEFT_NAV_ITEM_SKELETON: 'ds-left-nav-item-skeleton',\n LEFT_NAV_ITEM_TEXT_LABEL: 'ds-left-nav-item-text-label',\n LEFT_NAV_ITEM_WITH_DATE: 'ds-left-nav-item-with-date',\n};\n\nexport const outOfTheBoxTypes = Object.values(ITEM_TYPES);\n\nexport const MAP_ITEMS_TO_SKELETON = {\n 'ds-left-nav-item-header': 'item',\n 'ds-left-nav-item-link': 'subitem',\n 'ds-left-nav-item-submenu': 'item',\n 'ds-left-nav-item-controlled-drilldown': 'subitem',\n 'ds-left-nav-item-uncontrolled-drilldown': 'subitem',\n 'ds-left-nav-item-section': 'subitem',\n 'ds-left-nav-item-separator': 'subitem',\n 'ds-left-nav-item-text-label': 'subitem',\n 'ds-left-nav-item-with-date': 'subitem',\n} as const;\n\nexport const FOOTER_DS_ID = 'ds-left-nav-__internal__-footer';\n\nexport const FOOTER_MENU_CLOSE_DS_ID = 'ds-left-nav-__internal__-footer-menu-close';\n\nexport const CHEVRON_BACK_DS_ID = 'ds-left-nav-__internal__-chevron-back';\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,uBAAuB;AAG7B,MAAM,iCAAiC;AAAA,EAC5C,OAAO;AACT;AAGO,MAAM,wBAAwB;AAAA,EACnC,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,sBAAsB;AAAA,EACtB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,yBAAyB;AAAA,EACzB,aAAa;AAAA,EACb,cAAc;AAAA,EACd,aAAa;AAAA,EACb,sBAAsB;AAAA,EACtB,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,uBAAuB;AAAA,EACvB,yBAAyB;AAAA,EACzB,oBAAoB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MAAM,aAAa;AAAA,EACxB,sBAAsB;AAAA,EACtB,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,oCAAoC;AAAA,EACpC,sCAAsC;AAAA,EACtC,uBAAuB;AAAA,EACvB,yBAAyB;AAAA,EACzB,wBAAwB;AAAA,EACxB,0BAA0B;AAAA,EAC1B,yBAAyB;AAC3B;AAEO,MAAM,mBAAmB,OAAO,OAAO,UAAU;AAEjD,MAAM,wBAAwB;AAAA,EACnC,2BAA2B;AAAA,EAC3B,yBAAyB;AAAA,EACzB,4BAA4B;AAAA,EAC5B,yCAAyC;AAAA,EACzC,2CAA2C;AAAA,EAC3C,4BAA4B;AAAA,EAC5B,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,8BAA8B;AAChC;AAEO,MAAM,eAAe;AAErB,MAAM,0BAA0B;AAEhC,MAAM,qBAAqB;",
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSLeftNavigationName = 'DSLeftnavigation';\n\n// we are naming this with the ${component_name}_region_focuses convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LEFT_NAVIGATION_REGION_FOCUSES = {\n RESET: '',\n} as const;\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LEFT_NAVIGATION_SLOTS = {\n ALERTS_ICON_WRAPPER: 'alerts-icon',\n AREAS_CONTAINER: 'areas-container',\n ARROW_CONTAINER: 'arrow-container',\n BODY_AREAS_CONTAINER: 'body-areas-container',\n BODY_HEADER_AREA: 'body-header-area',\n BODY_ITEMS_AREA: 'body-items-area',\n BOTTOM_CONTAINER: 'bottom-container',\n COLLAPSED_CONTAINER: 'collapsed-container',\n EXCEPTIONS_ICON_WRAPPER: 'exceptions-icon',\n FOOTER_ITEM: 'footer-item',\n FOOTER_LABEL: 'footer-label',\n FOOTER_MENU: 'footer-menu',\n FOOTER_MENU_COLLAPSE: 'footer-menu-collapse',\n FOOTER_SEPARATOR: 'footer-separator',\n ITEM: 'item',\n ITEM_BORDER_BOTTOM: 'item-border-bottom',\n ITEM_CHEVRON_BACK: 'item-chevron-back',\n ITEM_DATE: 'item-date',\n ITEM_LABEL: 'item-label',\n ITEM_SEPARATOR: 'item-separator',\n LEFT_CONTAINER: 'left-container',\n LOADER_WRAPPER: 'loader-wrapper',\n HEADER_AREA: 'header-area',\n ICON: 'icon',\n MESSAGES_ICON_WRAPPER: 'messages-icon',\n NOTIFICATIONS_CONTAINER: 'notifications-container',\n NOTIFICATIONS_ICON: 'notifications-icon',\n OPEN_WINDOW_ICON: 'open-window-icon',\n RIGHT_CONTAINER: 'right-container',\n ROOT: 'root',\n SECTION_CONTAINER: 'section-container',\n SECTION_LABEL: 'section-label',\n SECTION_RIGHT_LABEL: 'section-right-label',\n TRUNCATED_LABEL: 'truncated-label',\n TRUNCATED_LABEL_TOOLTIP: 'truncated-label-tooltip',\n VERTICAL_SEPARATOR: 'vertical-separator',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LEFT_NAVIGATION_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSLeftNavigationName, LEFT_NAVIGATION_SLOTS),\n /* ********************************************************************************************************************************************\n * keeping old values around based on vinoth/guncha (forced) request to keep them stable\n * in the future, before removing/changing those values, please make sure to check with them\n * (and get written approval for future reference, verba volant, scripta manent).\n * ********************************************************************************************************************************************\n * https://jira.elliemae.io/browse/PUI-15589\n ******************************************************************************************************************************************** */\n ROOT: 'leftnav-component',\n HEADER_AREA: 'leftnav-header-area',\n AREAS_CONTAINER: 'ds-leftnavigation-areas-container',\n\n COLLAPSED_CONTAINER: 'leftnav-leftcomponent',\n\n BODY_AREAS_CONTAINER: 'ds-leftnavigation-body-areas-container',\n BODY_HEADER_AREA: 'leftnav-body-header-area',\n BODY_ITEMS_AREA: 'leftnav-body-items-area',\n BOTTOM_CONTAINER: 'ds-leftnavigation-bottom-container',\n\n ITEM: 'leftnav-item-container',\n ITEM_BORDER_BOTTOM: 'ds-leftnavigation-item-border-bottom',\n ITEM_LABEL: 'leftnav-itemlabel',\n ITEM_DATE: 'leftnav-list-item-date',\n ITEM_SEPARATOR: 'leftnav-separator-subitem',\n ITEM_CHEVRON_BACK: 'leftnav-leftcomponent-chevron',\n\n // repeated with \"COLLAPSED_CONTAINER\" above, APP QA team doesn't approve us changing this.\n // IF anyone come with the request to have a separate value for this, address them to guncha/vinoth.\n LEFT_CONTAINER: 'leftnav-leftcomponent',\n RIGHT_CONTAINER: 'leftnav-right-component',\n ARROW_CONTAINER: 'ds-leftnavigation-arrow-container',\n\n SECTION_CONTAINER: 'ds-leftnavigation-section-container',\n SECTION_LABEL: 'leftnav-section-item-label',\n SECTION_RIGHT_LABEL: 'ds-leftnavigation-section-right-label',\n\n NOTIFICATIONS_CONTAINER: 'ds-leftnavigation-notifications-container',\n\n EXCEPTIONS_ICON_WRAPPER: 'left-nav-exceptions-icon',\n ALERTS_ICON_WRAPPER: 'left-nav-alerts-icon',\n MESSAGES_ICON_WRAPPER: 'left-nav-messages-icon',\n\n FOOTER_MENU: 'leftnav-container',\n FOOTER_SEPARATOR: 'ds-leftnavigation-footer-separator',\n // repeated with \"ITEM\" above, APP QA team doesn't approve us changing this.\n // IF anyone come with the request to have a separate value for this, address them to guncha/vinoth.\n FOOTER_ITEM: 'leftnav-item-container',\n\n VERTICAL_SEPARATOR: 'ds-leftnavigation-vertical-separator',\n\n // Things that are not slots (why?) and still need data-testids (that needs to not change else APP QA team can't work)\n NOTIFICATION_ICON: 'left-nav-notifications-icon',\n ALERTS_ICON: 'left-nav-alerts-icon',\n EXCEPTIONS_ICON: 'left-nav-exceptions-icon',\n MESSAGES_ICON: 'left-nav-messages-icon',\n\n // I don't know if there was already a slot or not because the naming convention is confusing and we can't change it.\n // so I am re-defining those to be sure.\n // (usually this comes from previous implementation \"slot\" being a \"nested\" slot that inherits the slot from the child)\n DROPDOWN_MENU_TRIGGER_WRAPPER: 'dropdown-menu-trigger-wrapper', // used to be dsDropdownmenuRoot slot at time of writing this comment\n\n NOTIFICATIONS_ICON: 'left-nav-notifications-icon', // used to be dsIconRoot slot at time of writing this comment\n LEFT_COMPONENT_CHEVRON: 'leftnav-leftcomponent-chevron', // used to be dsButtonRoot slot at time of writing this comment\n // VERY SPECIAL CASE, THE SLOT FOOTER_BTN GOES TO THE ICON WHEN COLLAPSED, TO THE BTN WHEN EXPANDED\n // WE CAN'T FIX THE TECH DEBT\n FOOTER_BTN: 'leftnav-footer-btn', // used to be [ \"dsIconRoot\", \"dsButtonRoot\" ] slots at time of writing this comment\n // VERY SPECIAL CASE 2\n // THE SLOT IS TECHNICALLY dsLeftnavigationItemLabel\n // which is LEFT_NAVIGATION_SLOTS.ITEM_LABEL\n // BUT the data-test-id is either \"leftnav-itemlabel\" or \"leftnav-list-item-label\"\n // APPARENTLY (we are not sure) based on it's \"type\"\n // \"leftnav-list-item-label\" for:\n // - ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL\n // - ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE\n // - ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN\n // - ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN\n // WE CAN'T FIX THE TECH DEBT\n // IF we somehow need to change this, address them to guncha/vinoth.\n LIST_ITEM_LABEL_ID_EXCEPTION: 'leftnav-list-item-label',\n};\n\nexport const DSLeftNavigationSlots = LEFT_NAVIGATION_SLOTS;\n\n/* ********************************************************************************************************************************************\n * Specific left-nav constants. Those are exported to third parties so they can use them in their code.\n ******************************************************************************************************************************************** */\n\nexport const LABEL_OVERFLOW = {\n WRAP: 'wrap',\n WRAP_ALL: 'wrapAll',\n TRUNCATE: 'truncate',\n};\n\nexport const ITEM_TYPES = {\n LEFT_NAV_ITEM_HEADER: 'ds-left-nav-item-header',\n LEFT_NAV_ITEM_LINK: 'ds-left-nav-item-link',\n LEFT_NAV_ITEM_SUBMENU: 'ds-left-nav-item-submenu',\n LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN: 'ds-left-nav-item-controlled-drilldown',\n LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN: 'ds-left-nav-item-uncontrolled-drilldown',\n LEFT_NAV_ITEM_SECTION: 'ds-left-nav-item-section',\n LEFT_NAV_ITEM_SEPARATOR: 'ds-left-nav-item-separator',\n LEFT_NAV_ITEM_SKELETON: 'ds-left-nav-item-skeleton',\n LEFT_NAV_ITEM_TEXT_LABEL: 'ds-left-nav-item-text-label',\n LEFT_NAV_ITEM_WITH_DATE: 'ds-left-nav-item-with-date',\n};\n\nexport const outOfTheBoxTypes = Object.values(ITEM_TYPES);\n\nexport const MAP_ITEMS_TO_SKELETON = {\n 'ds-left-nav-item-header': 'item',\n 'ds-left-nav-item-link': 'subitem',\n 'ds-left-nav-item-submenu': 'item',\n 'ds-left-nav-item-controlled-drilldown': 'subitem',\n 'ds-left-nav-item-uncontrolled-drilldown': 'subitem',\n 'ds-left-nav-item-section': 'subitem',\n 'ds-left-nav-item-separator': 'subitem',\n 'ds-left-nav-item-text-label': 'subitem',\n 'ds-left-nav-item-with-date': 'subitem',\n} as const;\n\nexport const FOOTER_DS_ID = 'ds-left-nav-__internal__-footer';\n\nexport const FOOTER_MENU_CLOSE_DS_ID = 'ds-left-nav-__internal__-footer-menu-close';\n\nexport const CHEVRON_BACK_DS_ID = 'ds-left-nav-__internal__-chevron-back';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,uBAAuB;AAG7B,MAAM,iCAAiC;AAAA,EAC5C,OAAO;AACT;AAGO,MAAM,wBAAwB;AAAA,EACnC,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,sBAAsB;AAAA,EACtB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,kBAAkB;AA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AEb,oBAAoB;AAAA;AAAA,EAGpB,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,eAAe;AAAA;AAAA;AAAA;AAAA,EAKf,+BAA+B;AAAA;AAAA,EAE/B,oBAAoB;AAAA;AAAA,EACpB,wBAAwB;AAAA;AAAA;AAAA;AAAA,EAGxB,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaZ,8BAA8B;AAChC;AAEO,MAAM,wBAAwB;AAM9B,MAAM,iBAAiB;AAAA,EAC5B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,MAAM,aAAa;AAAA,EACxB,sBAAsB;AAAA,EACtB,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,oCAAoC;AAAA,EACpC,sCAAsC;AAAA,EACtC,uBAAuB;AAAA,EACvB,yBAAyB;AAAA,EACzB,wBAAwB;AAAA,EACxB,0BAA0B;AAAA,EAC1B,yBAAyB;AAC3B;AAEO,MAAM,mBAAmB,OAAO,OAAO,UAAU;AAEjD,MAAM,wBAAwB;AAAA,EACnC,2BAA2B;AAAA,EAC3B,yBAAyB;AAAA,EACzB,4BAA4B;AAAA,EAC5B,yCAAyC;AAAA,EACzC,2CAA2C;AAAA,EAC3C,4BAA4B;AAAA,EAC5B,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,8BAA8B;AAChC;AAEO,MAAM,eAAe;AAErB,MAAM,0BAA0B;AAEhC,MAAM,qBAAqB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import React2 from "react";
|
|
3
4
|
import { styled } from "@elliemae/ds-system";
|
|
4
|
-
|
|
5
|
+
import { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from "../../constants/index.js";
|
|
6
|
+
import { LeftNavContext } from "../../LeftNavigationContext.js";
|
|
7
|
+
const AugmentedIcon = (Icon2) => styled(Icon2, {
|
|
8
|
+
name: DSLeftNavigationName,
|
|
9
|
+
slot: LEFT_NAVIGATION_SLOTS.ICON,
|
|
10
|
+
preserveLegacyDataTestId: true
|
|
11
|
+
})`
|
|
5
12
|
cursor: pointer;
|
|
6
13
|
|
|
7
14
|
outline: 0;
|
|
@@ -10,9 +17,23 @@ const AugmentedIcon = (Icon2) => styled(Icon2)`
|
|
|
10
17
|
outline: 1px solid #1e79c2;
|
|
11
18
|
}
|
|
12
19
|
`;
|
|
13
|
-
const Icon = (IconComponent) =>
|
|
20
|
+
const Icon = (IconComponent) => {
|
|
14
21
|
const StyledComponent = AugmentedIcon(IconComponent);
|
|
15
|
-
return
|
|
22
|
+
return function LeftNavIcon(props) {
|
|
23
|
+
const { leftNavProps } = React2.useContext(LeftNavContext);
|
|
24
|
+
const getOwnerProps = React2.useCallback(() => leftNavProps, [leftNavProps]);
|
|
25
|
+
const getOwnerPropsArguments = React2.useCallback(() => ({}), []);
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
StyledComponent,
|
|
28
|
+
{
|
|
29
|
+
color: ["brand-primary", "800"],
|
|
30
|
+
tabIndex: 0,
|
|
31
|
+
getOwnerProps,
|
|
32
|
+
getOwnerPropsArguments,
|
|
33
|
+
...props
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
16
37
|
};
|
|
17
38
|
export {
|
|
18
39
|
Icon
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/Icon/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { type SvgIconT } from '@elliemae/ds-icons';\n\nconst AugmentedIcon = (Icon: React.ComponentType<{ color: unknown; tabIndex: number }>) => styled(Icon)`\n cursor: pointer;\n\n outline: 0;\n :focus,\n :active {\n outline: 1px solid #1e79c2;\n }\n`;\n\nexport const Icon = (IconComponent: React.ComponentType<{ color: unknown; tabIndex: number }>)
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": ["Icon"]
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { type SvgIconT } from '@elliemae/ds-icons';\nimport { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from '../../constants/index.js';\nimport { LeftNavContext } from '../../LeftNavigationContext.js';\n\n/**\n * preserveLegacyDataTestId keeps the ds-icons generated data-testid on the svg wrapper,\n * the left-nav slot must not override a data-testid QA may already rely on.\n */\nconst AugmentedIcon = (Icon: React.ComponentType<{ color: unknown; tabIndex: number }>) => styled(Icon, {\n name: DSLeftNavigationName,\n slot: LEFT_NAVIGATION_SLOTS.ICON,\n preserveLegacyDataTestId: true,\n})`\n cursor: pointer;\n\n outline: 0;\n :focus,\n :active {\n outline: 1px solid #1e79c2;\n }\n`;\n\n/**\n * The styled component is created once per Icon() call, not per render:\n * a new component type on every render would remount the icon and drop its focus.\n */\nexport const Icon = (IconComponent: React.ComponentType<{ color: unknown; tabIndex: number }>) => {\n const StyledComponent = AugmentedIcon(IconComponent);\n return function LeftNavIcon(props?: SvgIconT.Props): JSX.Element {\n const { leftNavProps } = React.useContext(LeftNavContext);\n const getOwnerProps = React.useCallback(() => leftNavProps, [leftNavProps]);\n const getOwnerPropsArguments = React.useCallback(() => ({}), []);\n return (\n <StyledComponent\n color={['brand-primary', '800']}\n tabIndex={0}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n {...props}\n />\n );\n };\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACmCjB;AAnCN,OAAOA,YAAW;AAClB,SAAS,cAAc;AAEvB,SAAS,sBAAsB,6BAA6B;AAC5D,SAAS,sBAAsB;AAM/B,MAAM,gBAAgB,CAACC,UAAoE,OAAOA,OAAM;AAAA,EACtG,MAAM;AAAA,EACN,MAAM,sBAAsB;AAAA,EAC5B,0BAA0B;AAC5B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcM,MAAM,OAAO,CAAC,kBAA6E;AAChG,QAAM,kBAAkB,cAAc,aAAa;AACnD,SAAO,SAAS,YAAY,OAAqC;AAC/D,UAAM,EAAE,aAAa,IAAID,OAAM,WAAW,cAAc;AACxD,UAAM,gBAAgBA,OAAM,YAAY,MAAM,cAAc,CAAC,YAAY,CAAC;AAC1E,UAAM,yBAAyBA,OAAM,YAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAC/D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,CAAC,iBAAiB,KAAK;AAAA,QAC9B,UAAU;AAAA,QACV;AAAA,QACA;AAAA,QACC,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;",
|
|
6
|
+
"names": ["React", "Icon"]
|
|
7
7
|
}
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import React2 from "react";
|
|
3
4
|
import { styled } from "@elliemae/ds-system";
|
|
4
5
|
import { OpenWindow as OpenWindowIcon } from "@elliemae/ds-icons";
|
|
5
|
-
|
|
6
|
+
import { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from "../../constants/index.js";
|
|
7
|
+
import { LeftNavContext } from "../../LeftNavigationContext.js";
|
|
8
|
+
const StyledOpenWindow = styled(OpenWindowIcon, {
|
|
9
|
+
name: DSLeftNavigationName,
|
|
10
|
+
slot: LEFT_NAVIGATION_SLOTS.OPEN_WINDOW_ICON,
|
|
11
|
+
preserveLegacyDataTestId: true
|
|
12
|
+
})`
|
|
6
13
|
cursor: pointer;
|
|
7
14
|
:focus {
|
|
8
15
|
outline: 1px solid ${(props) => props.theme.colors.brand[800]};
|
|
9
16
|
}
|
|
10
17
|
`;
|
|
11
|
-
const OpenWindow = (props) =>
|
|
18
|
+
const OpenWindow = (props) => {
|
|
19
|
+
const { leftNavProps } = React2.useContext(LeftNavContext);
|
|
20
|
+
const getOwnerProps = React2.useCallback(() => leftNavProps, [leftNavProps]);
|
|
21
|
+
const getOwnerPropsArguments = React2.useCallback(() => ({}), []);
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
StyledOpenWindow,
|
|
24
|
+
{
|
|
25
|
+
size: "s",
|
|
26
|
+
color: ["brand-primary", "800"],
|
|
27
|
+
getOwnerProps,
|
|
28
|
+
getOwnerPropsArguments,
|
|
29
|
+
...props
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
12
33
|
var OpenWindowItem_default = OpenWindow;
|
|
13
34
|
export {
|
|
14
35
|
OpenWindow,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/OpenWindowItem/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { OpenWindow as OpenWindowIcon, type SvgIconT } from '@elliemae/ds-icons';\n\nconst StyledOpenWindow = styled(OpenWindowIcon)`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n\nexport const OpenWindow = (props: SvgIconT.Props): JSX.Element => (\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { OpenWindow as OpenWindowIcon, type SvgIconT } from '@elliemae/ds-icons';\nimport { DSLeftNavigationName, LEFT_NAVIGATION_SLOTS } from '../../constants/index.js';\nimport { LeftNavContext } from '../../LeftNavigationContext.js';\n\n/**\n * preserveLegacyDataTestId keeps the ds-icons generated data-testid on the svg wrapper,\n * the left-nav slot must not override a data-testid QA may already rely on.\n */\nconst StyledOpenWindow = styled(OpenWindowIcon, {\n name: DSLeftNavigationName,\n slot: LEFT_NAVIGATION_SLOTS.OPEN_WINDOW_ICON,\n preserveLegacyDataTestId: true,\n})`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n\nexport const OpenWindow = (props: SvgIconT.Props): JSX.Element => {\n const { leftNavProps } = React.useContext(LeftNavContext);\n const getOwnerProps = React.useCallback(() => leftNavProps, [leftNavProps]);\n const getOwnerPropsArguments = React.useCallback(() => ({}), []);\n return (\n <StyledOpenWindow\n size=\"s\"\n color={['brand-primary', '800']}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n {...props}\n />\n );\n};\n\nexport default OpenWindow;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AC0BnB;AA1BJ,OAAOA,YAAW;AAClB,SAAS,cAAc;AACvB,SAAS,cAAc,sBAAqC;AAC5D,SAAS,sBAAsB,6BAA6B;AAC5D,SAAS,sBAAsB;AAM/B,MAAM,mBAAmB,OAAO,gBAAgB;AAAA,EAC9C,MAAM;AAAA,EACN,MAAM,sBAAsB;AAAA,EAC5B,0BAA0B;AAC5B,CAAC;AAAA;AAAA;AAAA,yBAGwB,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAI1D,MAAM,aAAa,CAAC,UAAuC;AAChE,QAAM,EAAE,aAAa,IAAIA,OAAM,WAAW,cAAc;AACxD,QAAM,gBAAgBA,OAAM,YAAY,MAAM,cAAc,CAAC,YAAY,CAAC;AAC1E,QAAM,yBAAyBA,OAAM,YAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAC/D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,OAAO,CAAC,iBAAiB,KAAK;AAAA,MAC9B;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAO,yBAAQ;",
|
|
6
|
+
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ITEM_TYPES } from "../../constants/index.js";
|
|
3
|
+
const DRILLDOWN_TYPES = [
|
|
4
|
+
ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,
|
|
5
|
+
ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN
|
|
6
|
+
];
|
|
7
|
+
const LEAF_TYPES = [
|
|
8
|
+
ITEM_TYPES.LEFT_NAV_ITEM_LINK,
|
|
9
|
+
ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL,
|
|
10
|
+
ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE
|
|
11
|
+
];
|
|
12
|
+
const getOwn = (map, key) => Object.prototype.hasOwnProperty.call(map, key) ? map[key] : void 0;
|
|
13
|
+
const HEADER_TYPES = [ITEM_TYPES.LEFT_NAV_ITEM_HEADER, ...LEAF_TYPES];
|
|
14
|
+
const OUT_OF_THE_BOX_TYPES = Object.values(ITEM_TYPES);
|
|
15
|
+
const NO_RAIL_TYPES = [
|
|
16
|
+
ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL,
|
|
17
|
+
ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE,
|
|
18
|
+
ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,
|
|
19
|
+
ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN
|
|
20
|
+
];
|
|
21
|
+
const DROPPED_TYPE_CODES = {
|
|
22
|
+
[ITEM_TYPES.LEFT_NAV_ITEM_HEADER]: ["header-item-dropped", "Header items are not part of the list"],
|
|
23
|
+
[ITEM_TYPES.LEFT_NAV_ITEM_SKELETON]: ["skeleton-dropped", "Skeleton items are not supported"]
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
DRILLDOWN_TYPES,
|
|
27
|
+
DROPPED_TYPE_CODES,
|
|
28
|
+
HEADER_TYPES,
|
|
29
|
+
LEAF_TYPES,
|
|
30
|
+
NO_RAIL_TYPES,
|
|
31
|
+
OUT_OF_THE_BOX_TYPES,
|
|
32
|
+
getOwn
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=conversionConstants.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/conversion-utils/conversionConstants.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { ITEM_TYPES } from '../../constants/index.js';\n\nexport const DRILLDOWN_TYPES: string[] = [\n ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,\n ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN,\n];\nexport const LEAF_TYPES: string[] = [\n ITEM_TYPES.LEFT_NAV_ITEM_LINK,\n ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL,\n ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE,\n];\n\n/**\n * Reads only own entries, so ids and types like \"constructor\" or \"toString\" do not resolve to inherited members.\n */\nexport const getOwn = <T>(map: Record<string, T>, key: string): T | undefined =>\n Object.prototype.hasOwnProperty.call(map, key) ? map[key] : undefined;\n\n/**\n * The types a `HeaderComponent` can have and still be the tree header: a header, or a leaf when the header is only a link.\n */\nexport const HEADER_TYPES: string[] = [ITEM_TYPES.LEFT_NAV_ITEM_HEADER, ...LEAF_TYPES];\n\nexport const OUT_OF_THE_BOX_TYPES: string[] = Object.values(ITEM_TYPES);\n\n/**\n * LeftNavigation renders no `CollapsedComponent` for these types (it forces it to null), so they were never in its rail.\n */\nexport const NO_RAIL_TYPES: string[] = [\n ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL,\n ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE,\n ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,\n ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN,\n];\n\nexport const DROPPED_TYPE_CODES = {\n [ITEM_TYPES.LEFT_NAV_ITEM_HEADER]: ['header-item-dropped', 'Header items are not part of the list'],\n [ITEM_TYPES.LEFT_NAV_ITEM_SKELETON]: ['skeleton-dropped', 'Skeleton items are not supported'],\n} as const;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,kBAAkB;AAEpB,MAAM,kBAA4B;AAAA,EACvC,WAAW;AAAA,EACX,WAAW;AACb;AACO,MAAM,aAAuB;AAAA,EAClC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAKO,MAAM,SAAS,CAAI,KAAwB,QAChD,OAAO,UAAU,eAAe,KAAK,KAAK,GAAG,IAAI,IAAI,GAAG,IAAI;AAKvD,MAAM,eAAyB,CAAC,WAAW,sBAAsB,GAAG,UAAU;AAE9E,MAAM,uBAAiC,OAAO,OAAO,UAAU;AAK/D,MAAM,gBAA0B;AAAA,EACrC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;AAEO,MAAM,qBAAqB;AAAA,EAChC,CAAC,WAAW,oBAAoB,GAAG,CAAC,uBAAuB,uCAAuC;AAAA,EAClG,CAAC,WAAW,sBAAsB,GAAG,CAAC,oBAAoB,kCAAkC;AAC9F;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import {
|
|
3
|
+
LEFT_NAVIGATION_TREE_ITEM_TYPES as TREE_TYPES
|
|
4
|
+
} from "@elliemae/ds-left-navigation-tree";
|
|
5
|
+
import { ITEM_TYPES } from "../../constants/index.js";
|
|
6
|
+
import {
|
|
7
|
+
DRILLDOWN_TYPES,
|
|
8
|
+
DROPPED_TYPE_CODES,
|
|
9
|
+
HEADER_TYPES,
|
|
10
|
+
LEAF_TYPES,
|
|
11
|
+
NO_RAIL_TYPES,
|
|
12
|
+
OUT_OF_THE_BOX_TYPES,
|
|
13
|
+
getOwn
|
|
14
|
+
} from "./conversionConstants.js";
|
|
15
|
+
import { convertItemOpts } from "./convertItemOpts.js";
|
|
16
|
+
import { markLost } from "./report.js";
|
|
17
|
+
const convertCollapsed = (item, report) => {
|
|
18
|
+
if (!item.CollapsedComponent || NO_RAIL_TYPES.includes(item.type ?? "")) return {};
|
|
19
|
+
markLost(report, {
|
|
20
|
+
code: "collapsed-component-ctx",
|
|
21
|
+
dsId: item.dsId ?? "",
|
|
22
|
+
message: "CollapsedComponent is kept, it only receives { item }"
|
|
23
|
+
});
|
|
24
|
+
return { CollapsedComponent: item.CollapsedComponent };
|
|
25
|
+
};
|
|
26
|
+
const joinSectionLabel = (label, rightSection) => typeof label === "string" && typeof rightSection === "string" ? `${label}, ${rightSection}` : label;
|
|
27
|
+
const convertSubmenu = (item, args) => {
|
|
28
|
+
const { report, childrenByParentId, recurse } = args;
|
|
29
|
+
const dsId = item.dsId ?? "";
|
|
30
|
+
const children = getOwn(childrenByParentId, dsId);
|
|
31
|
+
if (!children)
|
|
32
|
+
markLost(report, { code: "submenu-without-children", dsId, message: "No entry in childrenByParentId" });
|
|
33
|
+
return {
|
|
34
|
+
dsId,
|
|
35
|
+
type: TREE_TYPES.PARENT,
|
|
36
|
+
...convertCollapsed(item, report),
|
|
37
|
+
itemOpts: { ...convertItemOpts({ item, report, kind: "submenu" }), items: recurse(children ?? []) }
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
const convertDrilldown = (item, args) => {
|
|
41
|
+
const { report, recurse } = args;
|
|
42
|
+
const dsId = item.dsId ?? "";
|
|
43
|
+
const { startOpened, isOpened, items = [] } = item.itemOpts ?? {};
|
|
44
|
+
const opts = convertItemOpts({ item, report, kind: "drilldown" });
|
|
45
|
+
const isControlled = item.type === ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN;
|
|
46
|
+
return {
|
|
47
|
+
dsId,
|
|
48
|
+
type: TREE_TYPES.PARENT,
|
|
49
|
+
...convertCollapsed(item, report),
|
|
50
|
+
itemOpts: {
|
|
51
|
+
...opts,
|
|
52
|
+
...isControlled && { isOpened: !!isOpened },
|
|
53
|
+
...!isControlled && startOpened !== void 0 && { startOpened },
|
|
54
|
+
items: recurse(items)
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
const convertOne = (item, args) => {
|
|
59
|
+
const { report } = args;
|
|
60
|
+
const dsId = item.dsId ?? "";
|
|
61
|
+
const { type } = item;
|
|
62
|
+
if (typeof type !== "string") {
|
|
63
|
+
markLost(report, {
|
|
64
|
+
code: "custom-component-dropped",
|
|
65
|
+
dsId,
|
|
66
|
+
message: "Items with a custom Component are not supported"
|
|
67
|
+
});
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
if (LEAF_TYPES.includes(type)) {
|
|
71
|
+
return {
|
|
72
|
+
dsId,
|
|
73
|
+
type: TREE_TYPES.LEAF,
|
|
74
|
+
...convertCollapsed(item, report),
|
|
75
|
+
itemOpts: convertItemOpts({ item, report, kind: "leaf" })
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
if (type === ITEM_TYPES.LEFT_NAV_ITEM_SUBMENU) return convertSubmenu(item, args);
|
|
79
|
+
if (DRILLDOWN_TYPES.includes(type)) return convertDrilldown(item, args);
|
|
80
|
+
const [code, message] = getOwn(DROPPED_TYPE_CODES, type) ?? [
|
|
81
|
+
"unknown-type-dropped",
|
|
82
|
+
`Type "${type}" is not out of the box`
|
|
83
|
+
];
|
|
84
|
+
markLost(report, { code, dsId, message });
|
|
85
|
+
return null;
|
|
86
|
+
};
|
|
87
|
+
const convertSection = (item, report, items) => {
|
|
88
|
+
const { label, labelRightSection } = item.itemOpts ?? {};
|
|
89
|
+
const joinable = typeof label === "string" && typeof labelRightSection === "string";
|
|
90
|
+
const opts = convertItemOpts({ item, report, kind: "section", joinable });
|
|
91
|
+
return {
|
|
92
|
+
dsId: item.dsId ?? "",
|
|
93
|
+
type: TREE_TYPES.SECTION,
|
|
94
|
+
itemOpts: {
|
|
95
|
+
...opts,
|
|
96
|
+
label: joinSectionLabel(label, labelRightSection),
|
|
97
|
+
items
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
const convertList = (args) => {
|
|
102
|
+
const { list, isRoot, report, ancestors = [] } = args;
|
|
103
|
+
const converted = [];
|
|
104
|
+
let sectionItems = null;
|
|
105
|
+
list.forEach((item) => {
|
|
106
|
+
const { type, dsId = "" } = item;
|
|
107
|
+
const isSection = type === ITEM_TYPES.LEFT_NAV_ITEM_SECTION;
|
|
108
|
+
if (isSection || type === ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR) {
|
|
109
|
+
if (!isRoot) {
|
|
110
|
+
markLost(report, {
|
|
111
|
+
code: "section-in-nested-list-dropped",
|
|
112
|
+
dsId,
|
|
113
|
+
message: "Sections and separators are only supported at the root level"
|
|
114
|
+
});
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
sectionItems = isSection ? [] : null;
|
|
118
|
+
converted.push(sectionItems ? convertSection(item, report, sectionItems) : { dsId, type: TREE_TYPES.SEPARATOR });
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const ancestorKey = dsId || item;
|
|
122
|
+
const isOwnAncestor = ancestors.includes(ancestorKey);
|
|
123
|
+
const convertedItem = convertOne(item, {
|
|
124
|
+
report,
|
|
125
|
+
childrenByParentId: args.childrenByParentId,
|
|
126
|
+
recurse: (children) => isOwnAncestor ? [] : convertList({ ...args, list: children, isRoot: false, ancestors: [...ancestors, ancestorKey] })
|
|
127
|
+
});
|
|
128
|
+
if (!convertedItem) return;
|
|
129
|
+
if (sectionItems) sectionItems.push(convertedItem);
|
|
130
|
+
else converted.push(convertedItem);
|
|
131
|
+
});
|
|
132
|
+
return converted;
|
|
133
|
+
};
|
|
134
|
+
const convertHeader = (header, report) => {
|
|
135
|
+
if (header.type === ITEM_TYPES.LEFT_NAV_ITEM_SKELETON) {
|
|
136
|
+
const [code, message] = DROPPED_TYPE_CODES[ITEM_TYPES.LEFT_NAV_ITEM_SKELETON];
|
|
137
|
+
markLost(report, { code, dsId: header.dsId ?? "", message });
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
if (typeof header.type !== "string" || !OUT_OF_THE_BOX_TYPES.includes(header.type)) {
|
|
141
|
+
markLost(report, {
|
|
142
|
+
code: "custom-component-dropped",
|
|
143
|
+
dsId: header.dsId ?? "",
|
|
144
|
+
message: "A HeaderComponent with a custom Component is not supported"
|
|
145
|
+
});
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
if (!HEADER_TYPES.includes(header.type)) {
|
|
149
|
+
markLost(report, {
|
|
150
|
+
code: "unknown-type-dropped",
|
|
151
|
+
dsId: header.dsId ?? "",
|
|
152
|
+
message: `A HeaderComponent of type "${header.type}" is not supported, use a header or a leaf type`
|
|
153
|
+
});
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
dsId: header.dsId ?? "",
|
|
158
|
+
type: TREE_TYPES.LEAF,
|
|
159
|
+
...convertCollapsed(header, report),
|
|
160
|
+
/** A header of a leaf type is drawn by LeftNavigation as that leaf (a with-date header shows its date), so it converts as one. */
|
|
161
|
+
itemOpts: convertItemOpts({
|
|
162
|
+
item: header,
|
|
163
|
+
report,
|
|
164
|
+
kind: header.type === ITEM_TYPES.LEFT_NAV_ITEM_HEADER ? "header" : "leaf"
|
|
165
|
+
})
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
convertHeader,
|
|
170
|
+
convertList
|
|
171
|
+
};
|
|
172
|
+
//# sourceMappingURL=conversionHelpers.js.map
|