@sinequa/atomic-angular 1.7.1 → 1.7.2
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.
|
@@ -5741,9 +5741,7 @@ class CollectionsDialog {
|
|
|
5741
5741
|
closed = output();
|
|
5742
5742
|
createInputElement = viewChild("createInput", ...(ngDevMode ? [{ debugName: "createInputElement" }] : []));
|
|
5743
5743
|
dialogElement = viewChild(DialogComponent, ...(ngDevMode ? [{ debugName: "dialogElement" }] : []));
|
|
5744
|
-
queryParamStore = inject(QueryParamsStore);
|
|
5745
5744
|
userSettingsStore = inject(UserSettingsStore);
|
|
5746
|
-
collection = signal(undefined, ...(ngDevMode ? [{ debugName: "collection" }] : []));
|
|
5747
5745
|
article = signal([], ...(ngDevMode ? [{ debugName: "article" }] : []));
|
|
5748
5746
|
newCollectionName = signal("", ...(ngDevMode ? [{ debugName: "newCollectionName" }] : []));
|
|
5749
5747
|
creating = signal(false, ...(ngDevMode ? [{ debugName: "creating" }] : []));
|
|
@@ -5760,8 +5758,6 @@ class CollectionsDialog {
|
|
|
5760
5758
|
this.article.set([article]);
|
|
5761
5759
|
else
|
|
5762
5760
|
this.article.set(article);
|
|
5763
|
-
const { basket } = getState(this.queryParamStore);
|
|
5764
|
-
this.collection.set(basket);
|
|
5765
5761
|
this.dialogElement()?.showModal();
|
|
5766
5762
|
}
|
|
5767
5763
|
containsArticleByName(collectionName) {
|
|
@@ -5810,6 +5806,7 @@ class CollectionsDialog {
|
|
|
5810
5806
|
// remove it
|
|
5811
5807
|
const articleIds = this.article().map((a) => a.id);
|
|
5812
5808
|
collection.ids = collection.ids?.filter((id) => !articleIds.includes(id)) ?? [];
|
|
5809
|
+
this.removedFromCollection.set(true);
|
|
5813
5810
|
}
|
|
5814
5811
|
else {
|
|
5815
5812
|
// add it
|
|
@@ -5821,8 +5818,6 @@ class CollectionsDialog {
|
|
|
5821
5818
|
}
|
|
5822
5819
|
try {
|
|
5823
5820
|
await this.userSettingsStore.updateBasket(collection, collectionIndex);
|
|
5824
|
-
const currentCollection = this.collection();
|
|
5825
|
-
this.removedFromCollection.set(!!currentCollection && !this.containsArticleByName(currentCollection));
|
|
5826
5821
|
}
|
|
5827
5822
|
catch (e) {
|
|
5828
5823
|
error("Error updating collection:", e);
|
|
@@ -15276,7 +15271,7 @@ class FiltersBarComponent {
|
|
|
15276
15271
|
@if (currentBasket()) {
|
|
15277
15272
|
<button
|
|
15278
15273
|
variant="destructive"
|
|
15279
|
-
class="max-w-40
|
|
15274
|
+
class="max-w-40 h-9"
|
|
15280
15275
|
role="listitem"
|
|
15281
15276
|
[title]="'filters.clearBasket' | transloco"
|
|
15282
15277
|
(click)="clearBasket()"
|
|
@@ -15348,7 +15343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
15348
15343
|
@if (currentBasket()) {
|
|
15349
15344
|
<button
|
|
15350
15345
|
variant="destructive"
|
|
15351
|
-
class="max-w-40
|
|
15346
|
+
class="max-w-40 h-9"
|
|
15352
15347
|
role="listitem"
|
|
15353
15348
|
[title]="'filters.clearBasket' | transloco"
|
|
15354
15349
|
(click)="clearBasket()"
|