@reltio/components 1.4.2231 → 1.4.2233
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/InlineComplexAttribute/InlineComplexAttribute.js +2 -2
- package/InlineComplexAttribute/InlineComplexAttribute.test.js +7 -7
- package/ReadOnlyAttributesList/ReadOnlyAttributesList.d.ts +5 -2
- package/ReadOnlyAttributesList/ReadOnlyAttributesList.js +2 -2
- package/ReadOnlyAttributesPager/ReadOnlyAttributesPager.d.ts +5 -2
- package/ReadOnlyAttributesPager/ReadOnlyAttributesPager.js +3 -3
- package/ReadOnlyAttributesPager/components/MultiLineRenderer/MultiLineRenderer.d.ts +5 -2
- package/ReadOnlyAttributesPager/components/MultiLineRenderer/MultiLineRenderer.js +15 -11
- package/ReadOnlyAttributesPager/components/OneLineRenderer/OneLineRenderer.d.ts +5 -2
- package/ReadOnlyAttributesPager/components/OneLineRenderer/OneLineRenderer.js +13 -11
- package/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.d.ts +5 -2
- package/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.js +24 -12
- package/SimpleAttribute/SimpleAttribute.js +3 -2
- package/SyncedValueHeight/ValueHeightConsumer.js +12 -0
- package/{features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/ValueHeightReporter.js +12 -6
- package/cjs/InlineComplexAttribute/InlineComplexAttribute.js +2 -2
- package/cjs/InlineComplexAttribute/InlineComplexAttribute.test.js +7 -7
- package/cjs/ReadOnlyAttributesList/ReadOnlyAttributesList.d.ts +5 -2
- package/cjs/ReadOnlyAttributesList/ReadOnlyAttributesList.js +2 -2
- package/cjs/ReadOnlyAttributesPager/ReadOnlyAttributesPager.d.ts +5 -2
- package/cjs/ReadOnlyAttributesPager/ReadOnlyAttributesPager.js +3 -3
- package/cjs/ReadOnlyAttributesPager/components/MultiLineRenderer/MultiLineRenderer.d.ts +5 -2
- package/cjs/ReadOnlyAttributesPager/components/MultiLineRenderer/MultiLineRenderer.js +15 -11
- package/cjs/ReadOnlyAttributesPager/components/OneLineRenderer/OneLineRenderer.d.ts +5 -2
- package/cjs/ReadOnlyAttributesPager/components/OneLineRenderer/OneLineRenderer.js +13 -11
- package/cjs/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.d.ts +5 -2
- package/cjs/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.js +23 -11
- package/cjs/SimpleAttribute/SimpleAttribute.js +3 -2
- package/cjs/SyncedValueHeight/ValueHeightConsumer.js +39 -0
- package/cjs/{features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/ValueHeightReporter.js +11 -5
- package/cjs/contexts/AutoExpandedAttributesContext/index.d.ts +8 -0
- package/cjs/contexts/{ExpandedAttributesContext → AutoExpandedAttributesContext}/index.js +8 -8
- package/cjs/contexts/{ExpandedAttributesContext/useAttributeExpanded.test.js → AutoExpandedAttributesContext/useAttributeAutoExpanded.test.js} +3 -3
- package/cjs/contexts/SyncedExpandedAttributesContext/index.d.ts +12 -0
- package/cjs/contexts/SyncedExpandedAttributesContext/index.js +56 -0
- package/{features/crosswalks/contexts/SyncedValueHeightsContext.d.ts → cjs/contexts/SyncedValueHeightsContext/index.d.ts} +2 -2
- package/cjs/{features/crosswalks/contexts/SyncedValueHeightsContext.js → contexts/SyncedValueHeightsContext/index.js} +10 -15
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.js +5 -3
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.test-data.d.ts +1 -1
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.test-data.js +93 -34
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.test.js +290 -56
- package/cjs/features/crosswalks/AttributesTable/components/AttributeRule/AttributeRule.d.ts +11 -0
- package/cjs/features/crosswalks/AttributesTable/components/AttributeRule/AttributeRule.js +32 -0
- package/cjs/features/crosswalks/AttributesTable/components/AttributeRule/AttributeRule.module.css.js +9 -0
- package/cjs/features/crosswalks/AttributesTable/components/AttributeRule/index.d.ts +1 -0
- package/cjs/features/crosswalks/AttributesTable/components/AttributeRule/index.js +5 -0
- package/cjs/features/crosswalks/AttributesTable/components/ComplexRule/ComplexRule.d.ts +10 -0
- package/cjs/features/crosswalks/AttributesTable/components/ComplexRule/ComplexRule.js +60 -0
- package/cjs/features/crosswalks/AttributesTable/components/ComplexRule/ComplexRule.module.css.js +9 -0
- package/cjs/features/crosswalks/AttributesTable/components/ComplexRule/index.d.ts +1 -0
- package/cjs/features/crosswalks/AttributesTable/components/ComplexRule/index.js +5 -0
- package/cjs/features/crosswalks/AttributesTable/components/OvValuesRenderer/OvValuesRenderer.js +1 -1
- package/cjs/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.d.ts +1 -1
- package/cjs/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.js +5 -64
- package/cjs/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.module.css.js +2 -2
- package/cjs/features/crosswalks/AttributesTable/components/SimpleRule/SimpleRule.d.ts +10 -0
- package/cjs/features/crosswalks/AttributesTable/components/SimpleRule/SimpleRule.js +94 -0
- package/cjs/features/crosswalks/AttributesTable/components/SimpleRule/SimpleRule.module.css.js +9 -0
- package/cjs/features/crosswalks/AttributesTable/components/SimpleRule/index.d.ts +1 -0
- package/cjs/features/crosswalks/AttributesTable/components/SimpleRule/index.js +5 -0
- package/cjs/features/crosswalks/AttributesTable/helpers.d.ts +1 -2
- package/cjs/features/crosswalks/AttributesTable/helpers.js +82 -56
- package/cjs/features/crosswalks/AttributesTable/helpers.test.js +539 -360
- package/cjs/features/crosswalks/AttributesTable/types.d.ts +17 -10
- package/cjs/features/crosswalks/AttributesTable/types.js +6 -0
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +4 -4
- package/contexts/AutoExpandedAttributesContext/index.d.ts +8 -0
- package/contexts/AutoExpandedAttributesContext/index.js +11 -0
- package/contexts/{ExpandedAttributesContext/useAttributeExpanded.test.js → AutoExpandedAttributesContext/useAttributeAutoExpanded.test.js} +4 -4
- package/contexts/SyncedExpandedAttributesContext/index.d.ts +12 -0
- package/contexts/SyncedExpandedAttributesContext/index.js +28 -0
- package/{cjs/features/crosswalks/contexts/SyncedValueHeightsContext.d.ts → contexts/SyncedValueHeightsContext/index.d.ts} +2 -2
- package/{features/crosswalks/contexts/SyncedValueHeightsContext.js → contexts/SyncedValueHeightsContext/index.js} +9 -13
- package/features/crosswalks/AttributesTable/AttributesTable.js +5 -3
- package/features/crosswalks/AttributesTable/AttributesTable.test-data.d.ts +1 -1
- package/features/crosswalks/AttributesTable/AttributesTable.test-data.js +91 -32
- package/features/crosswalks/AttributesTable/AttributesTable.test.js +291 -57
- package/features/crosswalks/AttributesTable/components/AttributeRule/AttributeRule.d.ts +11 -0
- package/features/crosswalks/AttributesTable/components/AttributeRule/AttributeRule.js +25 -0
- package/features/crosswalks/AttributesTable/components/AttributeRule/AttributeRule.module.css.js +9 -0
- package/features/crosswalks/AttributesTable/components/AttributeRule/index.d.ts +1 -0
- package/features/crosswalks/AttributesTable/components/AttributeRule/index.js +1 -0
- package/features/crosswalks/AttributesTable/components/ComplexRule/ComplexRule.d.ts +10 -0
- package/features/crosswalks/AttributesTable/components/ComplexRule/ComplexRule.js +30 -0
- package/features/crosswalks/AttributesTable/components/ComplexRule/ComplexRule.module.css.js +9 -0
- package/features/crosswalks/AttributesTable/components/ComplexRule/index.d.ts +1 -0
- package/features/crosswalks/AttributesTable/components/ComplexRule/index.js +1 -0
- package/features/crosswalks/AttributesTable/components/OvValuesRenderer/OvValuesRenderer.js +1 -1
- package/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.d.ts +1 -1
- package/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.js +6 -65
- package/features/crosswalks/AttributesTable/components/RuleTypeRenderer/RuleTypeRenderer.module.css.js +2 -2
- package/features/crosswalks/AttributesTable/components/SimpleRule/SimpleRule.d.ts +10 -0
- package/features/crosswalks/AttributesTable/components/SimpleRule/SimpleRule.js +64 -0
- package/features/crosswalks/AttributesTable/components/SimpleRule/SimpleRule.module.css.js +9 -0
- package/features/crosswalks/AttributesTable/components/SimpleRule/index.d.ts +1 -0
- package/features/crosswalks/AttributesTable/components/SimpleRule/index.js +1 -0
- package/features/crosswalks/AttributesTable/helpers.d.ts +1 -2
- package/features/crosswalks/AttributesTable/helpers.js +82 -55
- package/features/crosswalks/AttributesTable/helpers.test.js +540 -361
- package/features/crosswalks/AttributesTable/types.d.ts +17 -10
- package/features/crosswalks/AttributesTable/types.js +5 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/cjs/contexts/ExpandedAttributesContext/index.d.ts +0 -8
- package/cjs/features/crosswalks/AttributesTable/components/SyncedValueHeight/ValueHeightConsumer.js +0 -15
- package/contexts/ExpandedAttributesContext/index.d.ts +0 -8
- package/contexts/ExpandedAttributesContext/index.js +0 -11
- package/features/crosswalks/AttributesTable/components/SyncedValueHeight/ValueHeightConsumer.js +0 -8
- /package/{cjs/features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/ValueHeightConsumer.d.ts +0 -0
- /package/{cjs/features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/ValueHeightReporter.d.ts +0 -0
- /package/{cjs/features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/index.d.ts +0 -0
- /package/{features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/index.js +0 -0
- /package/{features/crosswalks/AttributesTable/components → cjs}/SyncedValueHeight/ValueHeightConsumer.d.ts +0 -0
- /package/{features/crosswalks/AttributesTable/components → cjs}/SyncedValueHeight/ValueHeightReporter.d.ts +0 -0
- /package/{features/crosswalks/AttributesTable/components → cjs}/SyncedValueHeight/index.d.ts +0 -0
- /package/cjs/{features/crosswalks/AttributesTable/components/SyncedValueHeight → SyncedValueHeight}/index.js +0 -0
- /package/cjs/contexts/{ExpandedAttributesContext/useAttributeExpanded.test.d.ts → AutoExpandedAttributesContext/useAttributeAutoExpanded.test.d.ts} +0 -0
- /package/contexts/{ExpandedAttributesContext/useAttributeExpanded.test.d.ts → AutoExpandedAttributesContext/useAttributeAutoExpanded.test.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { AttributeType, AttributeValue, Crosswalk, ParticipationStatus, Survivor
|
|
|
3
3
|
import { AddInlineAttributeEvent, DeleteInlineAttributeEvent, EditInlineAttributeEvent, IgnoreInlineAttributeEvent, PinInlineAttributeEvent } from '../../../types/inlineAttributes';
|
|
4
4
|
import { ColumnData, RenderRowCellProps } from '../../../types/basicTable';
|
|
5
5
|
import { CrosswalksMap } from '../../../types';
|
|
6
|
-
|
|
6
|
+
type StrategyAdditionalFields = {
|
|
7
7
|
primaryAttributeUri?: string;
|
|
8
8
|
comparisonAttributeUri?: string;
|
|
9
9
|
sourcesUriOrder?: string[];
|
|
@@ -11,25 +11,32 @@ export type StrategyAdditionalFields = {
|
|
|
11
11
|
export type AppliedSurvivorshipStrategy = {
|
|
12
12
|
strategy: SurvivorStrategy;
|
|
13
13
|
} & StrategyAdditionalFields;
|
|
14
|
-
export
|
|
15
|
-
|
|
14
|
+
export declare enum RuleItemType {
|
|
15
|
+
Rule = "rule",
|
|
16
|
+
Status = "status"
|
|
17
|
+
}
|
|
18
|
+
type SurvivorshipRuleItem = {
|
|
19
|
+
type: RuleItemType.Rule;
|
|
16
20
|
data: AppliedSurvivorshipStrategy;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
type:
|
|
21
|
+
};
|
|
22
|
+
type ParticipationStatusItem = {
|
|
23
|
+
type: RuleItemType.Status;
|
|
20
24
|
data: ParticipationStatus;
|
|
21
|
-
valueUri: string;
|
|
22
25
|
};
|
|
26
|
+
export type RuleTypeItem = SurvivorshipRuleItem | ParticipationStatusItem;
|
|
27
|
+
export type AttributeValueLite = Pick<AttributeValue, 'uri' | 'value' | 'ovDetails'>;
|
|
23
28
|
export type RuleTypeValues = {
|
|
24
|
-
|
|
29
|
+
attributeType: AttributeType;
|
|
30
|
+
attributeValues: AttributeValueLite[];
|
|
31
|
+
getRuleTypeData: (attrType: AttributeType, attrValue?: AttributeValueLite) => RuleTypeItem;
|
|
25
32
|
};
|
|
26
33
|
export type OvValues = {
|
|
27
34
|
attributeType: AttributeType;
|
|
28
|
-
values: AttributeValue[];
|
|
35
|
+
values: AttributeValue[] | undefined;
|
|
29
36
|
};
|
|
30
37
|
export type AttributeValues = {
|
|
31
38
|
attributeType: AttributeType;
|
|
32
|
-
attributeValues: AttributeValue[];
|
|
39
|
+
attributeValues: AttributeValue[] | undefined;
|
|
33
40
|
crosswalksMap: CrosswalksMap;
|
|
34
41
|
};
|
|
35
42
|
export type WinnerSources = {
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleItemType = void 0;
|
|
4
|
+
var RuleItemType;
|
|
5
|
+
(function (RuleItemType) {
|
|
6
|
+
RuleItemType["Rule"] = "rule";
|
|
7
|
+
RuleItemType["Status"] = "status";
|
|
8
|
+
})(RuleItemType || (exports.RuleItemType = RuleItemType = {}));
|
package/cjs/index.d.ts
CHANGED
|
@@ -223,7 +223,7 @@ export { ProfilePerspectiveViewContext } from './contexts/ProfilePerspectiveView
|
|
|
223
223
|
export { IdContext } from './contexts/IdContext';
|
|
224
224
|
export { EntitiesMapContext } from './contexts/EntitiesMapContext';
|
|
225
225
|
export { CrosswalksDisplayProvider, useCrosswalkColor, useCrosswalkFocus, useCrosswalkHighlight, useHighlightedCrosswalks } from './contexts/CrosswalksDisplayContext';
|
|
226
|
-
export {
|
|
226
|
+
export { AutoExpandedAttributesProvider, useAttributeAutoExpanded } from './contexts/AutoExpandedAttributesContext';
|
|
227
227
|
export { EntityMarkerContext } from './contexts/EntityMarkerContext';
|
|
228
228
|
export { EntityLoadingIndicationProvider, useEntityLoadingIndication } from './contexts/EntityLoadingIndicationContext';
|
|
229
229
|
export { WorkflowTasksContext } from './contexts/WorkflowTasksContext';
|
package/cjs/index.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.NestedAttribute = exports.MoreAttributesButton = exports.InlineReference
|
|
|
18
18
|
exports.ReactSelectMenuList = exports.ReactSelectLoadMoreButton = exports.ReactSelectDropdownIndicatorWithIconButton = exports.ReactSelectDropdownIndicator = exports.Highlighter = exports.HierarchyNodeTitle = exports.HierarchicalAttributeTooltip = exports.HideOnShrink = exports.ExpandableSearchInput = exports.ErrorPopup = exports.ErrorBoundary = exports.SegmentIdLink = exports.EntityUriLink = exports.EntityTypesSelector = exports.EntityTypeIcon = exports.EntityTypeBadge = exports.EntityAvatar = exports.EMPTY_STATE_VARIANTS = exports.EMPTY_STATE_ICONS = exports.EmptyState = exports.Drawer = exports.DataTypeValue = exports.DataTenantBadge = exports.ConnectionRelationTypeSelector = exports.CollaborationItem = exports.ConfirmationDialog = exports.CommentsContainer = exports.ColoredSourceIcon = exports.CollapseButton = exports.TreeChart = exports.TableWithBars = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = exports.SimpleAttributeEditor = exports.SimpleAttribute = exports.RowCellChips = exports.RowCellChipWithTooltip = exports.RowCellAutoSizer = exports.RelationTypeSelector = exports.ReferenceAttributeEditor = exports.ReferenceAttribute = exports.ImageAttributesLine = exports.ReadOnlyAttributesPager = exports.ReadOnlyAttributesList = exports.ReadOnlyAttribute = exports.ReadOnlyAttributeValuesBlock = exports.PieChart = exports.OvIcon = exports.NestedAttributeEditor = void 0;
|
|
19
19
|
exports.LoadingSpinner = exports.Link = exports.LinearLoadIndicator = exports.ImportButton = exports.ReadableSearchQueryBuilder = exports.ReadableSearchQuery = exports.LogicOperatorWithPlaceholder = exports.LogicOperator = exports.TableSkeleton = exports.StepNavigation = exports.TenantLabel = exports.RelevanceScoreBadge = exports.RequiredMark = exports.SettingsMenu = exports.TenantsDropDownSelector = exports.TenantIcon = exports.SourceSystemsSelector = exports.MatchRulesSelector = exports.MultiValueSelector = exports.ProfilesList = exports.NotMatchButton = exports.MergeButton = exports.ProfileMatchCard = exports.ImageGalleryDialog = exports.RelationTypesSelector = exports.ScreenProfileBand = exports.ProfileBandNavigation = exports.EmptyStub = exports.MaskingSwitcher = exports.FileTypeEditor = exports.EmptySearchResult = exports.DropDownEditor = exports.FilterValueEditor = exports.MultiValueChip = exports.TextEditor = exports.DateRangeEditor = exports.NumberEditor = exports.DataTypeValueEditor = exports.DateEditor = exports.ErrorWrapper = exports.ErrorMessage = exports.HIDE = exports.INSERT_RIGHT = exports.INSERT_LEFT = exports.ConfigColumnPopup = exports.ConfigureColumnsPopup = exports.ConnectionEditor = exports.DropDownSelector = exports.ReactSelectOptionWithCheckIcon = exports.ReactSelectMenuWithPopper = void 0;
|
|
20
20
|
exports.DefaultHeadCellRendererWithTooltip = exports.LazyRenderer = exports.MetadataTypesSelector = exports.DateRangeSelector = exports.UpSetChart = exports.GaugeChart = exports.RelationEditor = exports.ReltioMap = exports.Marginator = exports.LightArrowTooltip = exports.ScrollableTabs = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.SimpleDropDownSelector = exports.SidePanelContentHeader = exports.SidePanel = exports.SidePanelEmptyState = exports.SideButtonsPanel = exports.SelectorWithOnlyOptionAutoSelect = exports.SelectionPopup = exports.WhiteSearchInput = exports.SearchInput = exports.ProfileResizablePanes = exports.ResizablePanes = exports.ReltioGridLayout = exports.RCTreeSwitchRenderer = exports.RCTreeLevelLines = exports.RCTree = exports.reactSortableTreeHelpers = exports.ReactSortableTree = exports.MultiSelect = exports.QueryBuilderRowsGroup = exports.QueryBuilderRow = exports.ProfileCard = exports.ProfileBand = exports.PotentialMatchReviewCard = exports.PopupWithArrow = exports.Popper = exports.MultipleInput = exports.ModeSwitcherSelect = exports.ModeSwitcher = exports.TransitiveMatchBlock = exports.SimpleMatchRulesBuilder = exports.SimpleMatchRulesBlock = exports.SimpleMatchRules = exports.MatchRulesBlock = void 0;
|
|
21
|
-
exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.
|
|
21
|
+
exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.useAttributeAutoExpanded = exports.AutoExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.usePerspectivesSettings = exports.PerspectivesSettingsContext = exports.PivotingAttributeContext = exports.UsersContext = exports.InitialCollaborationContextValue = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockNavigationContext = exports.BlockImageGalleryDialogContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = exports.MdmModuleProvider = exports.withColumnConfigurator = exports.withBlockNavigation = exports.withCollapseButton = exports.withTableContext = exports.withFilterAtBottom = exports.withPercents = exports.withContext = exports.withDateRangeSelector = exports.withDragHandle = exports.withAsyncMount = exports.withTooltip = exports.CollaborationButton = exports.ExportDialog = exports.RequestedData = exports.FacetContainer = exports.FacetsSelector = exports.FacetGroupTitle = exports.QuickFiltersEntityTypeFacet = exports.FacetGroup = exports.QuickFiltersFacetPanel = exports.AdvancedSearchFabButton = exports.QuickFiltersDrawer = void 0;
|
|
22
22
|
exports.useRunOnceAfterValueInitialization = exports.useRelationsLoader = exports.useRelationTypeSelector = exports.usePrevious = exports.useDidUpdateEffect = exports.useCommentsEntitiesMap = exports.useCollaboration = exports.useAsyncMount = exports.useAPI = exports.useActions = exports.useMatchesColumnsData = exports.useScrollToAttributeError = exports.ThemeProvider = exports.ProfileTablesContext = exports.HiddenAttributesContext = exports.BasicTableContext = exports.BasicTableRowCollapseContext = exports.useDeleteUnmaskedAttributeForRelation = exports.useUnmaskedAttributeValue = exports.useUnmaskAttributeValue = exports.useMaskAttributeValue = exports.MaskedAttributesProvider = exports.useReloadData = exports.ReloadDataProvider = exports.useAttributeValueConfigPermissions = exports.ConfigPermissionsContextProvider = exports.ConfigPermissionsContext = exports.useActionsHook = exports.ActionsHookProvider = exports.PageRequestsAbortingContext = exports.DependentLookupAutopopulationContext = exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.isHighlightedAttributeType = exports.isHighlightedErrorType = exports.ScrollType = exports.ScrollToElementProvider = exports.ScrollToElementContext = exports.SearchValueContext = exports.InterceptHandlersContext = exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.RelationContext = exports.EntityContext = void 0;
|
|
23
23
|
exports.applyCompactValuesCountConstraint = exports.getAttributeSelectorItems = exports.mergeClasses = exports.isControlOrCommandPressed = exports.getValue = exports.getChecked = exports.showErrorMessage = exports.showDefaultErrorMessage = exports.enrichDataWithPercents = exports.defaultRenderRowCell = exports.defaultGetRowCellHeight = exports.columnFilterToMdmFilter = exports.buildColumnsSizeById = exports.buildColumnsFilter = exports.useInternalExport = exports.useTableColumns = exports.useSegmentsLoader = exports.useDndBasicTableScrollModifier = exports.useDynamicYAxisWidth = exports.useFilterAutoFocus = exports.useSegmentationRequest = exports.resolveMarkers = exports.useMarkers = exports.useMaskedAttribute = exports.useKeyboardNavigation = exports.useDynamicRowCellHeight = exports.useClickableStyle = exports.BasicTableCellRenderer = exports.useBasicTableCellRenderer = exports.useHiddenAttributes = exports.useSavedSearchesRequest = exports.useRequestDCRReview = exports.useAutoFocus = exports.useExpandInvalidRelations = exports.useLayoutResetter = exports.useIsMountedRef = exports.useSnackbar = exports.useSavedStateForEntityType = exports.useReadableSearchState = exports.useEditableConnection = exports.useCustomScripts = exports.useMarkAsNotMatchRequest = exports.useMergeAllRequest = exports.usePagingSimulator = exports.useMatchesLoader = exports.useConfigPermissions = exports.useWhyDidYouUpdate = exports.useUsers = exports.useSavedState = exports.useSafePromise = void 0;
|
|
24
24
|
exports.mockComputedStyles = exports.FakeMouseEvent = exports.rerenderWrapper = exports.mockElementSizes = exports.fixClicksOnResizablePanes = exports.mockBasicTableSizing = exports.getMuiIconsByName = exports.getMuiIconByName = exports.deepFreeze = exports.awaitMockPromises = exports.TestStylesProvider = exports.TestPerspectivesSettingsProvider = exports.getAttrPathFromColumnId = exports.getAttributeHeight = exports.getNestedPathByColumnId = void 0;
|
|
@@ -492,9 +492,9 @@ Object.defineProperty(exports, "useCrosswalkColor", { enumerable: true, get: fun
|
|
|
492
492
|
Object.defineProperty(exports, "useCrosswalkFocus", { enumerable: true, get: function () { return CrosswalksDisplayContext_1.useCrosswalkFocus; } });
|
|
493
493
|
Object.defineProperty(exports, "useCrosswalkHighlight", { enumerable: true, get: function () { return CrosswalksDisplayContext_1.useCrosswalkHighlight; } });
|
|
494
494
|
Object.defineProperty(exports, "useHighlightedCrosswalks", { enumerable: true, get: function () { return CrosswalksDisplayContext_1.useHighlightedCrosswalks; } });
|
|
495
|
-
var
|
|
496
|
-
Object.defineProperty(exports, "
|
|
497
|
-
Object.defineProperty(exports, "
|
|
495
|
+
var AutoExpandedAttributesContext_1 = require("./contexts/AutoExpandedAttributesContext");
|
|
496
|
+
Object.defineProperty(exports, "AutoExpandedAttributesProvider", { enumerable: true, get: function () { return AutoExpandedAttributesContext_1.AutoExpandedAttributesProvider; } });
|
|
497
|
+
Object.defineProperty(exports, "useAttributeAutoExpanded", { enumerable: true, get: function () { return AutoExpandedAttributesContext_1.useAttributeAutoExpanded; } });
|
|
498
498
|
var EntityMarkerContext_1 = require("./contexts/EntityMarkerContext");
|
|
499
499
|
Object.defineProperty(exports, "EntityMarkerContext", { enumerable: true, get: function () { return EntityMarkerContext_1.EntityMarkerContext; } });
|
|
500
500
|
var EntityLoadingIndicationContext_1 = require("./contexts/EntityLoadingIndicationContext");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ProviderProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
attributeUris: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare const AutoExpandedAttributesProvider: ({ children, attributeUris }: ProviderProps) => React.JSX.Element;
|
|
7
|
+
export declare const useAttributeAutoExpanded: (attributeUri: string) => any;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { createContext, useContext } from 'react';
|
|
2
|
+
import { areOneHierarchyUris } from '@reltio/mdm-sdk';
|
|
3
|
+
var AutoExpandedAttributesContext = createContext(null);
|
|
4
|
+
export var AutoExpandedAttributesProvider = function (_a) {
|
|
5
|
+
var children = _a.children, attributeUris = _a.attributeUris;
|
|
6
|
+
return (React.createElement(AutoExpandedAttributesContext.Provider, { value: attributeUris }, children));
|
|
7
|
+
};
|
|
8
|
+
export var useAttributeAutoExpanded = function (attributeUri) {
|
|
9
|
+
var expandedAttributes = useContext(AutoExpandedAttributesContext) || [];
|
|
10
|
+
return expandedAttributes.some(function (uri) { return areOneHierarchyUris(uri, attributeUri); });
|
|
11
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { renderHook } from '@testing-library/react-hooks';
|
|
3
|
-
import {
|
|
3
|
+
import { AutoExpandedAttributesProvider, useAttributeAutoExpanded } from './index';
|
|
4
4
|
var setUp = function (attributeUri, attributeUris) {
|
|
5
5
|
var DefaultProviders = function (_a) {
|
|
6
6
|
var children = _a.children;
|
|
7
|
-
return (React.createElement(
|
|
7
|
+
return (React.createElement(AutoExpandedAttributesProvider, { attributeUris: attributeUris }, children));
|
|
8
8
|
};
|
|
9
9
|
return renderHook(function (_a) {
|
|
10
10
|
var attributeUri = _a.attributeUri;
|
|
11
|
-
return
|
|
11
|
+
return useAttributeAutoExpanded(attributeUri);
|
|
12
12
|
}, {
|
|
13
13
|
initialProps: { attributeUri: attributeUri },
|
|
14
14
|
wrapper: attributeUris ? DefaultProviders : function (_a) {
|
|
@@ -17,7 +17,7 @@ var setUp = function (attributeUri, attributeUris) {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
describe('
|
|
20
|
+
describe('useAttributeAutoExpanded tests', function () {
|
|
21
21
|
it('should return false if no expanded context present', function () {
|
|
22
22
|
var result = setUp('entities/1/attributes/Simple/1').result;
|
|
23
23
|
expect(result.current).toBe(false);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SyncedExpandedAttributesContextValue = {
|
|
3
|
+
isExpanded: (attributeUri: string) => boolean;
|
|
4
|
+
toggle: (attributeUri: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const SyncedExpandedAttributesContext: React.Context<SyncedExpandedAttributesContextValue>;
|
|
7
|
+
type Props = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const SyncedExpandedAttributesProvider: ({ children }: Props) => React.JSX.Element;
|
|
11
|
+
export declare const useSyncedExpandedAttributes: () => SyncedExpandedAttributesContextValue;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 React, { createContext, useCallback, useContext, useMemo, useState } from 'react';
|
|
11
|
+
import { areOneHierarchyUris } from '@reltio/mdm-sdk';
|
|
12
|
+
export var SyncedExpandedAttributesContext = createContext(null);
|
|
13
|
+
export var SyncedExpandedAttributesProvider = function (_a) {
|
|
14
|
+
var children = _a.children;
|
|
15
|
+
var _b = useState([]), expandedAttributes = _b[0], setExpandedAttributes = _b[1];
|
|
16
|
+
var isExpanded = useCallback(function (attributeUri) { return expandedAttributes.includes(attributeUri); }, [expandedAttributes]);
|
|
17
|
+
var toggle = useCallback(function (attributeUri) {
|
|
18
|
+
setExpandedAttributes(function (prev) {
|
|
19
|
+
if (prev.includes(attributeUri)) {
|
|
20
|
+
return prev.filter(function (uri) { return !areOneHierarchyUris(uri, attributeUri); });
|
|
21
|
+
}
|
|
22
|
+
return __spreadArray(__spreadArray([], prev, true), [attributeUri], false);
|
|
23
|
+
});
|
|
24
|
+
}, []);
|
|
25
|
+
var value = useMemo(function () { return ({ isExpanded: isExpanded, toggle: toggle }); }, [isExpanded, toggle]);
|
|
26
|
+
return (React.createElement(SyncedExpandedAttributesContext.Provider, { value: value }, children));
|
|
27
|
+
};
|
|
28
|
+
export var useSyncedExpandedAttributes = function () { return useContext(SyncedExpandedAttributesContext); };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
reportHeight: (uri: string, height: number) => void;
|
|
4
|
-
getHeight: (
|
|
4
|
+
getHeight: (uri: string) => number | undefined;
|
|
5
5
|
clear: () => void;
|
|
6
6
|
};
|
|
7
|
+
export declare const SyncedValueHeightsContext: React.Context<Props>;
|
|
7
8
|
export declare const SyncedValueHeightsProvider: ({ children }: {
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
}) => React.JSX.Element;
|
|
10
|
-
export declare const useSyncedValueHeights: () => Props;
|
|
11
11
|
export {};
|
|
@@ -9,30 +9,26 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import React, { createContext, useCallback,
|
|
13
|
-
|
|
12
|
+
import React, { createContext, useCallback, useMemo, useState } from 'react';
|
|
13
|
+
import { isNil } from 'ramda';
|
|
14
|
+
export var SyncedValueHeightsContext = createContext(null);
|
|
14
15
|
export var SyncedValueHeightsProvider = function (_a) {
|
|
15
16
|
var children = _a.children;
|
|
16
17
|
var _b = useState({}), heights = _b[0], setHeights = _b[1];
|
|
17
18
|
var reportHeight = useCallback(function (uri, height) {
|
|
18
|
-
if (!uri ||
|
|
19
|
+
if (!uri || isNil(height))
|
|
19
20
|
return;
|
|
20
21
|
setHeights(function (prev) {
|
|
21
22
|
var _a;
|
|
22
|
-
|
|
23
|
+
if (prev[uri] === height)
|
|
24
|
+
return prev;
|
|
25
|
+
return __assign(__assign({}, prev), (_a = {}, _a[uri] = height, _a));
|
|
23
26
|
});
|
|
24
|
-
}, [
|
|
25
|
-
var getHeight = useCallback(function (uri) { return
|
|
27
|
+
}, []);
|
|
28
|
+
var getHeight = useCallback(function (uri) { return heights[uri]; }, [heights]);
|
|
26
29
|
var clear = useCallback(function () {
|
|
27
30
|
setHeights({});
|
|
28
31
|
}, []);
|
|
29
32
|
var value = useMemo(function () { return ({ reportHeight: reportHeight, getHeight: getHeight, clear: clear }); }, [reportHeight, getHeight, clear]);
|
|
30
33
|
return React.createElement(SyncedValueHeightsContext.Provider, { value: value }, children);
|
|
31
34
|
};
|
|
32
|
-
export var useSyncedValueHeights = function () {
|
|
33
|
-
var context = useContext(SyncedValueHeightsContext);
|
|
34
|
-
if (!context) {
|
|
35
|
-
throw new Error('useSyncedValueHeights must be used within SyncedValueHeightsProvider');
|
|
36
|
-
}
|
|
37
|
-
return context;
|
|
38
|
-
};
|
|
@@ -25,7 +25,8 @@ import { COLUMNS_DATA, DEFAULT_VISIBLE_COLUMNS, getBasicTableColumnsData, getBas
|
|
|
25
25
|
import { ConfirmEditIgnoredDialog } from './components/ConfirmEditIgnoredDialog';
|
|
26
26
|
import { CommonRowCellRenderer } from './components/CommonRowCellRenderer';
|
|
27
27
|
import { LazyRenderer } from '../../../LazyRenderer';
|
|
28
|
-
import { SyncedValueHeightsProvider } from '
|
|
28
|
+
import { SyncedValueHeightsProvider } from '../../../contexts/SyncedValueHeightsContext';
|
|
29
|
+
import { SyncedExpandedAttributesProvider } from '../../../contexts/SyncedExpandedAttributesContext';
|
|
29
30
|
import { useStyles } from './styles';
|
|
30
31
|
var DEFAULT_ROW_HEIGHT = 68;
|
|
31
32
|
var getIdFromRowValue = function (rowValue) { return rowValue.ovValues.attributeType.uri; };
|
|
@@ -120,8 +121,9 @@ var AttributesTable = function (_a) {
|
|
|
120
121
|
React.createElement(ColumnsSettings, { columnsData: COLUMNS_DATA, selectedColumns: visibleColumns, onChangeColumns: onChangeVisibleColumns })),
|
|
121
122
|
React.createElement("div", { className: styles.tableContent },
|
|
122
123
|
isLoading && React.createElement(LinearLoadIndicator, null),
|
|
123
|
-
React.createElement(
|
|
124
|
-
React.createElement(
|
|
124
|
+
React.createElement(SyncedExpandedAttributesProvider, null,
|
|
125
|
+
React.createElement(SyncedValueHeightsProvider, null,
|
|
126
|
+
React.createElement(BasicTable, { ref: tableRef, fixFirstColumn: true, headRowHeight: 48, defaultColumnWidth: 250, defaultColumnMinWidth: 200, columnsData: visibleColumnsData, dndRowReorderingEnabled: false, dndRowReorderingHandler: handleReorderAttributeTypes, getIdFromRowValue: getIdFromRowValue, rowsData: rowsData, onScroll: debouncedNotifyLazyRenderer, renderRowCell: renderRowCell, getRowCellHeight: getRowCellHeight, context: tableContext })))),
|
|
125
127
|
React.createElement(ConfirmDeleteDialog, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm: handleDelete }),
|
|
126
128
|
React.createElement(ConfirmEditIgnoredDialog, { open: !!pendingIgnoredEditing, onClose: function () { return setPendingIgnoredEditing(null); }, onConfirmEditWithIgnore: function () { return pendingIgnoredEditing && onEdit(pendingIgnoredEditing); }, onConfirmEditWithoutIgnore: function () {
|
|
127
129
|
if (pendingIgnoredEditing)
|
|
@@ -2,7 +2,7 @@ import { Entity, Metadata } from '@reltio/mdm-sdk';
|
|
|
2
2
|
export declare const createEntity: ({ withAppliedSurvivorshipRules }?: {
|
|
3
3
|
withAppliedSurvivorshipRules?: boolean;
|
|
4
4
|
}) => Entity;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const createEntityWithAllParticipationStatuses: () => Entity;
|
|
6
6
|
export declare const createMetadata: () => Metadata;
|
|
7
7
|
export declare const selectedAttributeTypes: ({
|
|
8
8
|
description: string;
|
|
@@ -42,49 +42,54 @@ export var createEntity = function (_a) {
|
|
|
42
42
|
}))
|
|
43
43
|
],
|
|
44
44
|
DeepNested: [
|
|
45
|
-
{
|
|
46
|
-
label: 'Nested Label',
|
|
47
|
-
value: {
|
|
45
|
+
__assign({ label: 'Nested Label', value: {
|
|
48
46
|
FirstLevelNestedSub1: [
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
__assign({ type: 'configuration/entityTypes/HCP/attributes/DeepNested/attributes/FirstLevelNestedSub1', ov: true, value: '123', uri: 'entities/01L2n5z/attributes/DeepNested/1ZAtO4T6/FirstLevelNestedSub1/1ZAtO8jM' }, (withAppliedSurvivorshipRules && {
|
|
48
|
+
ovDetails: {
|
|
49
|
+
participationStatus: ParticipationStatus.Strategy,
|
|
50
|
+
appliedSurvivorshipRules: {
|
|
51
|
+
LUD: [{ LUD: ['LUD', 'Frequency'] }, 'LUD']
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}))
|
|
55
55
|
]
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
}, ov: true, uri: 'entities/01L2n5z/attributes/DeepNested/1ZAtO4T6' }, (withAppliedSurvivorshipRules && {
|
|
57
|
+
ovDetails: {
|
|
58
|
+
participationStatus: ParticipationStatus.Strategy,
|
|
59
|
+
appliedSurvivorshipRules: {
|
|
60
|
+
SRC_SYS: [{ SRC_SYS: ['Aggregation', 'LUD'] }, 'SRC_SYS']
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}))
|
|
60
64
|
],
|
|
61
65
|
Address: [
|
|
62
|
-
{
|
|
63
|
-
label: 'Reference Address',
|
|
64
|
-
relationshipLabel: 'new address',
|
|
65
|
-
refEntity: {
|
|
66
|
+
__assign({ label: 'Reference Address', relationshipLabel: 'new address', refEntity: {
|
|
66
67
|
objectURI: 'entities/2EpaVt0k',
|
|
67
68
|
type: 'configuration/entityTypes/Location',
|
|
68
69
|
crosswalks: []
|
|
69
|
-
},
|
|
70
|
-
refRelation: {
|
|
70
|
+
}, refRelation: {
|
|
71
71
|
objectURI: 'relations/1GrMXM4O',
|
|
72
72
|
type: 'configuration/relationTypes/HasAddress',
|
|
73
73
|
crosswalks: []
|
|
74
|
-
},
|
|
75
|
-
uri: 'entities/2Vek4DnE/attributes/Address/1GrMXM4O',
|
|
76
|
-
value: {
|
|
74
|
+
}, uri: 'entities/2Vek4DnE/attributes/Address/1GrMXM4O', value: {
|
|
77
75
|
AddressLine1: [
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
__assign({ ov: true, type: 'configuration/entityTypes/Location/attributes/AddressLine1', uri: 'entities/2Vek4DnE/attributes/Address/1GrMXM4O/AddressLine1/2GcBL4K00', value: 'address line 1 value' }, (withAppliedSurvivorshipRules && {
|
|
77
|
+
ovDetails: {
|
|
78
|
+
participationStatus: ParticipationStatus.Strategy,
|
|
79
|
+
appliedSurvivorshipRules: {
|
|
80
|
+
Frequency: [{ Frequency: ['MinValue', 'LUD'] }, 'Frequency']
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}))
|
|
84
84
|
]
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
}, startObjectCrosswalks: [] }, (withAppliedSurvivorshipRules && {
|
|
86
|
+
ovDetails: {
|
|
87
|
+
participationStatus: ParticipationStatus.Strategy,
|
|
88
|
+
appliedSurvivorshipRules: {
|
|
89
|
+
MinValue: [{ LUD: ['Frequency'] }, 'MinValue']
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}))
|
|
88
93
|
],
|
|
89
94
|
ImageGallery: [
|
|
90
95
|
{
|
|
@@ -117,7 +122,7 @@ export var createEntity = function (_a) {
|
|
|
117
122
|
]
|
|
118
123
|
};
|
|
119
124
|
};
|
|
120
|
-
export var
|
|
125
|
+
export var createEntityWithAllParticipationStatuses = function () {
|
|
121
126
|
var entity = createEntity({ withAppliedSurvivorshipRules: true });
|
|
122
127
|
return __assign(__assign({}, entity), { attributes: __assign(__assign({}, entity.attributes), { Boolean: [
|
|
123
128
|
{
|
|
@@ -129,6 +134,36 @@ export var createEntityWithoutAppliedRule = function () {
|
|
|
129
134
|
participationStatus: ParticipationStatus.Pinned,
|
|
130
135
|
appliedSurvivorshipRules: 'N/A'
|
|
131
136
|
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
ov: true,
|
|
140
|
+
type: 'configuration/entityTypes/HCP/attributes/Boolean',
|
|
141
|
+
uri: 'entities/01L2n5z/attributes/Boolean/Ignored',
|
|
142
|
+
value: 'false',
|
|
143
|
+
ovDetails: {
|
|
144
|
+
participationStatus: ParticipationStatus.Ignored,
|
|
145
|
+
appliedSurvivorshipRules: 'N/A'
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
ov: true,
|
|
150
|
+
type: 'configuration/entityTypes/HCP/attributes/Boolean',
|
|
151
|
+
uri: 'entities/01L2n5z/attributes/Boolean/EndDatedCrosswalk',
|
|
152
|
+
value: 'true',
|
|
153
|
+
ovDetails: {
|
|
154
|
+
participationStatus: ParticipationStatus.EndDatedCrosswalk,
|
|
155
|
+
appliedSurvivorshipRules: 'N/A'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
ov: true,
|
|
160
|
+
type: 'configuration/entityTypes/HCP/attributes/Boolean',
|
|
161
|
+
uri: 'entities/01L2n5z/attributes/Boolean/NotParticipating',
|
|
162
|
+
value: 'false',
|
|
163
|
+
ovDetails: {
|
|
164
|
+
participationStatus: ParticipationStatus.NotParticipating,
|
|
165
|
+
appliedSurvivorshipRules: 'N/A'
|
|
166
|
+
}
|
|
132
167
|
}
|
|
133
168
|
] }) });
|
|
134
169
|
};
|
|
@@ -226,6 +261,30 @@ export var createMetadata = function () {
|
|
|
226
261
|
]
|
|
227
262
|
}
|
|
228
263
|
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
uri: 'configuration/entityTypes/Location',
|
|
267
|
+
label: 'Location',
|
|
268
|
+
attributes: [
|
|
269
|
+
{
|
|
270
|
+
label: 'Address Line 1',
|
|
271
|
+
name: 'AddressLine1',
|
|
272
|
+
type: 'String',
|
|
273
|
+
uri: 'configuration/entityTypes/Location/attributes/AddressLine1'
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
survivorshipGroups: [
|
|
277
|
+
{
|
|
278
|
+
uri: 'configuration/entityTypes/Location/survivorshipGroups/default',
|
|
279
|
+
default: true,
|
|
280
|
+
mapping: [
|
|
281
|
+
{
|
|
282
|
+
attribute: 'configuration/entityTypes/Location/attributes/AddressLine1',
|
|
283
|
+
survivorshipStrategy: 'Frequency'
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
]
|
|
229
288
|
}
|
|
230
289
|
],
|
|
231
290
|
survivorshipStrategies: [
|