mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[ACS-8001] fixes
This commit is contained in:
committed by
Mykyta Maliarchuk
parent
a1cbcfca33
commit
654dec8d57
@@ -2,7 +2,7 @@
|
|||||||
Title: Base Card View Update Interface
|
Title: Base Card View Update Interface
|
||||||
Added: v6.0.0
|
Added: v6.0.0
|
||||||
Status: Active
|
Status: Active
|
||||||
Last reviewed: 2022-11-25
|
Last reviewed: 2024-06-11
|
||||||
---
|
---
|
||||||
|
|
||||||
# [Base Card View Update interface](../../../lib/core/src/lib/card-view/interfaces/base-card-view-update.interface.ts "Defined in base-card-view-update.interface.ts")
|
# [Base Card View Update interface](../../../lib/core/src/lib/card-view/interfaces/base-card-view-update.interface.ts "Defined in base-card-view-update.interface.ts")
|
||||||
@@ -28,11 +28,11 @@ export interface BaseCardViewUpdate {
|
|||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
|
| ---- | ---- | ----------- |
|
||||||
| itemUpdated$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`UpdateNotification`](../../../lib/core/src/lib/card-view/interfaces/update-notification.interface.ts)`>` | The current updated item. |
|
| itemUpdated$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`UpdateNotification`](../../../lib/core/src/lib/card-view/interfaces/update-notification.interface.ts)`>` | The current updated item. |
|
||||||
| itemClicked$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`ClickNotification`](../../../lib/core/src/lib/card-view/interfaces/click-notification.interface.ts)`>` | The current clicked item. |
|
| itemClicked$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`ClickNotification`](../../../lib/core/src/lib/card-view/interfaces/click-notification.interface.ts)`>` | The current clicked item. |
|
||||||
| updateItem$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`CardViewBaseItemModel`](../../../lib/core/src/lib/card-view/models/card-view-baseitem.model.ts)`>` | The current model for the update item. |
|
| updateItem$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`CardViewBaseItemModel`](../../../lib/core/src/lib/card-view/models/card-view-baseitem.model.ts)`>` | The current model for the update item. |
|
||||||
| predictionStatusChanged$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`PredictionStatusUpdate[]`](./prediction-status-update.interface.md)`>` | The current model for items with irrelevant predictions. |
|
| predictionStatusChanged$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`PredictionStatusUpdate[]`](./prediction-status-update.interface.md)`>` | Notification of prediction status change. |
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ export interface CardViewItem {
|
|||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
|--------------|------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| ---- | ---- | ------- | ----------- |
|
||||||
| label | string | "" | Item label |
|
| label | string | "" | Item label |
|
||||||
| value | any | | The original data value for the item |
|
| value | any | | The original data value for the item |
|
||||||
| key | string | "" | Identifying key (important when editing the item) |
|
| key | string | "" | Identifying key (important when editing the item) |
|
||||||
@@ -39,7 +39,7 @@ export interface CardViewItem {
|
|||||||
| clickable | boolean | false | Toggles whether the item is clickable |
|
| clickable | boolean | false | Toggles whether the item is clickable |
|
||||||
| icon | string | | The material icon to show beside clickable items |
|
| icon | string | | The material icon to show beside clickable items |
|
||||||
| data | any | null | Any custom data which is needed to be provided and stored in the model for any reason. During an update or a click event this can be a container of any custom data which can be useful for 3rd party codes. |
|
| data | any | null | Any custom data which is needed to be provided and stored in the model for any reason. During an update or a click event this can be a container of any custom data which can be useful for 3rd party codes. |
|
||||||
| prediction | Prediction | | Property prediction |
|
| prediction | Prediction | null | Property prediction. |
|
||||||
|
|
||||||
## Details
|
## Details
|
||||||
|
|
||||||
|
@@ -51,6 +51,7 @@ backend services have been tested with each released version of ADF.
|
|||||||
<!--6100 start-->
|
<!--6100 start-->
|
||||||
|
|
||||||
- [Content Enrichment Menu Component](core/components/content-enrichment-menu.component.md)
|
- [Content Enrichment Menu Component](core/components/content-enrichment-menu.component.md)
|
||||||
|
- [Prediction Status Update Interface](core/interfaces/prediction-status-update.interface.md)
|
||||||
|
|
||||||
<!--6100 end-->
|
<!--6100 end-->
|
||||||
|
|
||||||
|
@@ -6,7 +6,6 @@
|
|||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
color: var(--adf-metadata-property-panel-title-color);
|
||||||
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
||||||
&.adf-property-value-editable {
|
&.adf-property-value-editable {
|
||||||
@@ -14,8 +13,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border-bottom: inherit;
|
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.adf-property-readonly-value {
|
&.adf-property-readonly-value {
|
||||||
|
@@ -120,7 +120,6 @@
|
|||||||
>
|
>
|
||||||
{{ property.label | translate }}
|
{{ property.label | translate }}
|
||||||
</mat-label>
|
</mat-label>
|
||||||
<!-- <adf-content-enrichment-menu matPrefix *ngIf="hasContentEnrichment && !isEditable" [prediction]="property.prediction"></adf-content-enrichment-menu>-->
|
|
||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
[type]="property.inputType"
|
[type]="property.inputType"
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
import { fakeAsync, TestBed } from '@angular/core/testing';
|
import { fakeAsync, TestBed } from '@angular/core/testing';
|
||||||
import { CardViewBaseItemModel } from '../models/card-view-baseitem.model';
|
import { CardViewBaseItemModel } from '../models/card-view-baseitem.model';
|
||||||
import { CardViewUpdateService, transformKeyToObject } from './card-view-update.service';
|
import { CardViewUpdateService, transformKeyToObject } from './card-view-update.service';
|
||||||
import { PredictionStatusUpdate } from '@alfresco/adf-core';
|
import { PredictionStatusUpdate } from '../../prediction/interfaces/prediction-status-update.interface';
|
||||||
|
|
||||||
describe('CardViewUpdateService', () => {
|
describe('CardViewUpdateService', () => {
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ export class PredictionsApi extends BaseApi {
|
|||||||
*
|
*
|
||||||
* @param predictionId The identifier of a prediction.
|
* @param predictionId The identifier of a prediction.
|
||||||
* @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.
|
* @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.
|
||||||
* @returns Promise<{}>
|
* @returns Promise<void>
|
||||||
*/
|
*/
|
||||||
reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void> {
|
reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void> {
|
||||||
throwIfNotDefined(predictionId, 'predictionId');
|
throwIfNotDefined(predictionId, 'predictionId');
|
||||||
|
Reference in New Issue
Block a user