mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-16 22:24:49 +00:00
ACS-8224 Make Multi Value Pipe internal (#11530)
This commit is contained in:
@@ -177,7 +177,6 @@ A collection of Angular components for generic use.
|
||||
| [Format Space pipe](core/pipes/format-space.pipe.md) | Replaces all the white space in a string with a supplied character. | [Source](../lib/core/src/lib/pipes/format-space.pipe.ts) |
|
||||
| [Full name pipe](core/pipes/full-name.pipe.md) | Joins the first and last name properties from a `UserLike` object into a single string. | [Source](../lib/core/src/lib/pipes/full-name.pipe.ts) |
|
||||
| [Localized Date pipe](core/pipes/localized-date.pipe.md) | Converts a date to a given format and locale. | [Source](../lib/core/src/lib/pipes/localized-date.pipe.ts) |
|
||||
| [Multi Value Pipe](core/pipes/multi-value.pipe.md) | Takes an array of strings and turns it into one string where items are separated by a separator. The default separator applied to the list is the comma , however, you can set your own separator in the params of the pipe. | [Source](../lib/core/src/lib/pipes/multi-value.pipe.ts) |
|
||||
| [Text Highlight pipe](core/pipes/text-highlight.pipe.md) | Adds highlighting to words or sections of text that match a search string. | [Source](../lib/core/src/lib/pipes/text-highlight.pipe.ts) |
|
||||
| [Time Ago pipe](core/pipes/time-ago.pipe.md) | Converts a recent past date into a number of days ago. | [Source](../lib/core/src/lib/pipes/time-ago.pipe.ts) |
|
||||
| [User Initial pipe](core/pipes/user-initial.pipe.md) | Takes the name fields of a `UserLike` object and extracts and formats the initials. | [Source](../lib/core/src/lib/pipes/user-initial.pipe.ts) |
|
||||
|
||||
@@ -378,7 +378,7 @@ displayed. The aspects to be displayed are calculated as an intersection of the
|
||||
|
||||
## Multi value card properties
|
||||
|
||||
Multi value properties are displayed one after another separated by a comma. This card makes use of the [Multi Value Pipe](../../core/pipes/multi-value.pipe.ts).
|
||||
Multi value properties are displayed one after another separated by a comma.
|
||||
|
||||
To customize the separator used by this card you can set it in your `app.config.json` inside your content-metadata configuration:
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
---
|
||||
Title: Multi Value Pipe
|
||||
Added: v3.2.0
|
||||
Status: Active
|
||||
---
|
||||
|
||||
# [Multi Value Pipe](../../../lib/core/src/lib/pipes/multi-value.pipe.ts "Defined in multi-value.pipe.ts")
|
||||
|
||||
Takes an array of strings and turns it into one string where items are separated by a separator. The default separator applied to the list is the comma `,` however, you can set your own separator in the params of the pipe.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
<!-- {% raw %} -->
|
||||
|
||||
### Default separator
|
||||
|
||||
```HTML
|
||||
<div>
|
||||
List {{ values | multiValue }}
|
||||
</div>
|
||||
```
|
||||
|
||||
#### Result
|
||||
|
||||

|
||||
|
||||
### Custom separator
|
||||
|
||||
```HTML
|
||||
<div>
|
||||
List {{ values | multiValue: ' :) ' }}
|
||||
</div>
|
||||
```
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
#### Result
|
||||
|
||||

|
||||
|
||||
## Details
|
||||
|
||||
The pipe gets every one of the items passed to the pipe and stringifies it adding the separator set in the configuration.
|
||||
|
||||
You will need to specify the separator you want to use for it to work.
|
||||
@@ -323,7 +323,6 @@ backend services have been tested with each released version of ADF.
|
||||
- [Form cloud component](process-services-cloud/components/form-cloud.component.md)
|
||||
- [Form cloud service](process-services-cloud/services/form-cloud.service.md)
|
||||
- [Json cell component](core/components/json-cell.component.md)
|
||||
- [Multi value pipe](core/pipes/multi-value.pipe.md)
|
||||
- [Task form cloud component](process-services-cloud/components/task-form-cloud.component.md)
|
||||
|
||||
<!--v320 end-->
|
||||
|
||||
@@ -30,12 +30,12 @@ import {
|
||||
CardViewTextItemModel,
|
||||
DecimalNumberPipe,
|
||||
LogService,
|
||||
MultiValuePipe,
|
||||
UserPreferencesService
|
||||
} from '@alfresco/adf-core';
|
||||
import { CardViewGroup, OrganisedPropertyGroup, Property } from '../interfaces/content-metadata.interfaces';
|
||||
import { of } from 'rxjs';
|
||||
import { Constraint, Definition, Property as PropertyBase } from '@alfresco/js-api';
|
||||
import { MultiValuePipe } from './pipes/multi-value.pipe';
|
||||
|
||||
const D_TEXT = 'd:text';
|
||||
const D_MLTEXT = 'd:mltext';
|
||||
|
||||
@@ -24,7 +24,6 @@ import { InitialUsernamePipe } from './user-initial.pipe';
|
||||
import { FullNamePipe } from './full-name.pipe';
|
||||
import { FormatSpacePipe } from './format-space.pipe';
|
||||
import { FileTypePipe } from './file-type.pipe';
|
||||
import { MultiValuePipe } from './multi-value.pipe';
|
||||
import { LocalizedDatePipe } from './localized-date.pipe';
|
||||
import { DecimalNumberPipe } from './decimal-number.pipe';
|
||||
import { DateTimePipe } from './date-time.pipe';
|
||||
@@ -38,7 +37,6 @@ export const CORE_PIPES = [
|
||||
FullNamePipe,
|
||||
FormatSpacePipe,
|
||||
FileTypePipe,
|
||||
MultiValuePipe,
|
||||
DecimalNumberPipe,
|
||||
DateTimePipe,
|
||||
InitialUsernamePipe,
|
||||
|
||||
@@ -21,7 +21,6 @@ export * from './file-type.pipe';
|
||||
export * from './format-space.pipe';
|
||||
export * from './full-name.pipe';
|
||||
export * from './localized-date.pipe';
|
||||
export * from './multi-value.pipe';
|
||||
export * from './text-highlight.pipe';
|
||||
export * from './time-ago.pipe';
|
||||
export * from './user-initial.pipe';
|
||||
|
||||
Reference in New Issue
Block a user