diff --git a/docs/core/interfaces/base-card-view-update.interface.md b/docs/core/interfaces/base-card-view-update.interface.md index 5931ddf46b..2df73a0c0d 100644 --- a/docs/core/interfaces/base-card-view-update.interface.md +++ b/docs/core/interfaces/base-card-view-update.interface.md @@ -2,7 +2,7 @@ Title: Base Card View Update Interface Added: v6.0.0 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") @@ -27,12 +27,12 @@ export interface BaseCardViewUpdate { ## Properties -| 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. | -| 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. | -| predictionStatusChanged$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`PredictionStatusUpdate[]`](./prediction-status-update.interface.md)`>` | The current model for items with irrelevant predictions. | +| 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. | +| 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. | +| predictionStatusChanged$ | [`Subject`](http://reactivex.io/documentation/subject.html)`<`[`PredictionStatusUpdate[]`](./prediction-status-update.interface.md)`>` | Notification of prediction status change. | ### Methods diff --git a/docs/core/interfaces/card-view-item.interface.md b/docs/core/interfaces/card-view-item.interface.md index c9c5dcd6d3..55d8a09ff5 100644 --- a/docs/core/interfaces/card-view-item.interface.md +++ b/docs/core/interfaces/card-view-item.interface.md @@ -28,18 +28,18 @@ export interface CardViewItem { ### Properties -| Name | Type | Default | Description | -|--------------|------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| label | string | "" | Item label | -| value | any | | The original data value for the item | -| key | string | "" | Identifying key (important when editing the item) | -| default | any | | The default value to display if the value is empty | -| displayValue | string | "" | The value to display | -| editable | boolean | false | Toggles whether the item is editable | -| clickable | boolean | false | Toggles whether the item is clickable | -| 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. | -| prediction | Prediction | | Property prediction | +| Name | Type | Default | Description | +| ---- | ---- | ------- | ----------- | +| label | string | "" | Item label | +| value | any | | The original data value for the item | +| key | string | "" | Identifying key (important when editing the item) | +| default | any | | The default value to display if the value is empty | +| displayValue | string | "" | The value to display | +| editable | boolean | false | Toggles whether the item is editable | +| clickable | boolean | false | Toggles whether the item is clickable | +| 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. | +| prediction | Prediction | null | Property prediction. | ## Details diff --git a/docs/versionIndex.md b/docs/versionIndex.md index bd69002707..011a3b8c0a 100644 --- a/docs/versionIndex.md +++ b/docs/versionIndex.md @@ -51,6 +51,7 @@ backend services have been tested with each released version of ADF. - [Content Enrichment Menu Component](core/components/content-enrichment-menu.component.md) +- [Prediction Status Update Interface](core/interfaces/prediction-status-update.interface.md) diff --git a/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss b/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss index dd6aa7bc54..f85b9940fc 100644 --- a/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss +++ b/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss @@ -6,7 +6,6 @@ padding-bottom: 6px; line-height: 20px; color: var(--adf-metadata-property-panel-title-color); - border-bottom: 1px solid var(--adf-metadata-property-panel-border-color); margin-top: 10px; &.adf-property-value-editable { @@ -14,8 +13,8 @@ align-items: center; justify-content: flex-end; border-radius: 6px; - border-bottom: inherit; margin-bottom: 18px; + width: 100%; } &.adf-property-readonly-value { diff --git a/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html b/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html index 3397f014b0..ad8008f3f5 100644 --- a/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html +++ b/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html @@ -120,7 +120,6 @@ > {{ property.label | translate }} - { diff --git a/lib/js-api/src/api/hxi-connector-api/api/predictions.api.ts b/lib/js-api/src/api/hxi-connector-api/api/predictions.api.ts index 640af6424e..af59b1f92c 100644 --- a/lib/js-api/src/api/hxi-connector-api/api/predictions.api.ts +++ b/lib/js-api/src/api/hxi-connector-api/api/predictions.api.ts @@ -45,7 +45,7 @@ export class PredictionsApi extends BaseApi { * * @param predictionId The identifier of a prediction. * @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'. - * @returns Promise<{}> + * @returns Promise */ reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise { throwIfNotDefined(predictionId, 'predictionId');