@@ -18,7 +18,7 @@ import {
18
18
IndexConfigurationModel ,
19
19
ContentTypeDtoModel ,
20
20
ResultModel
21
- } from "../../../api/models " ;
21
+ } from "@umbraco-integrations/algolia/generated " ;
22
22
23
23
@customElement ( "algolia-index" )
24
24
export class AlgoliaIndexElement extends UmbElementMixin ( LitElement ) {
@@ -144,7 +144,7 @@ export class AlgoliaIndexElement extends UmbElementMixin(LitElement) {
144
144
@selected = ${ ( ) => this . _contentTypeSelected ( contentType . id ) }
145
145
@deselected = ${ ( ) => this . _contentTypeDeselected ( contentType . id ) } >
146
146
<uui- icon slot= "icon" name = ${ contentType . icon } > </ uui- icon>
147
- ${ contentType . selected ? html `<uui- tag size= "s" slot = "tag" color = "primary "> Selected</ uui- tag> ` : '' }
147
+ ${ contentType . selected ? html `<uui- tag size= "s" slot = "tag" color = "positive "> Selected</ uui- tag> ` : '' }
148
148
<uui- action- bar slot= "actions" >
149
149
<uui- butto n label= "Remove" color = "danger">
150
150
<uui- icon name= "delete" > </ uui- icon>
@@ -165,23 +165,21 @@ export class AlgoliaIndexElement extends UmbElementMixin(LitElement) {
165
165
return html `
166
166
<uui- for m- layout- item>
167
167
<uui- label slot= "label" > ${ selectedContentType . name } Properties </ uui- label>
168
- <uui- icon- regis try- essential>
169
168
<div class= "alg-col-3" >
170
169
${ selectedContentType . properties . map ( ( property ) => {
171
170
return html `
172
171
<uui- card- content- node selectable
173
172
@selected = ${ ( ) => this . _contentTypePropertySelected ( selectedContentType , property . id ) }
174
173
@deselected = ${ ( ) => this . _contentTypePropertyDeselected ( selectedContentType , property . id ) }
175
174
name= ${ property . name } >
176
- ${ property . selected ? html `<uui- tag size= "s" slot = "tag" color = "primary "> Selected</ uui- tag> ` : '' }
175
+ ${ property . selected ? html `<uui- tag size= "s" slot = "tag" color = "positive "> Selected</ uui- tag> ` : '' }
177
176
<ul style= "list-style: none; padding-inline-start: 0px; margin: 0;" >
178
177
<li> <span style= "font-weight: 700" > Group : </ span> ${ property . group } </ li>
179
178
</ ul>
180
179
</ uui- card- content- node>
181
180
` ;
182
181
} ) }
183
182
</ div>
184
- </ uui- icon- registry-essential >
185
183
</ uui- for m- layout- item>
186
184
` ;
187
185
}
0 commit comments