@vendure/admin-ui 2.0.0-next.16 → 2.0.0-next.18

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.
Files changed (156) hide show
  1. package/catalog/catalog.module.d.ts +8 -3
  2. package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +22 -0
  3. package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +41 -0
  4. package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
  5. package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
  6. package/catalog/components/collection-list/collection-list.component.d.ts +7 -5
  7. package/catalog/components/collection-tree/collection-tree-node.component.d.ts +10 -6
  8. package/catalog/components/collection-tree/collection-tree.component.d.ts +3 -1
  9. package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
  10. package/catalog/components/facet-list/facet-list.component.d.ts +2 -1
  11. package/catalog/components/product-detail/product-detail.component.d.ts +1 -1
  12. package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
  13. package/catalog/components/product-list/product-list.component.d.ts +4 -2
  14. package/catalog/public_api.d.ts +6 -0
  15. package/core/common/generated-types.d.ts +269 -2
  16. package/core/common/utilities/bulk-action-utils.d.ts +19 -0
  17. package/core/common/utilities/configurable-operation-utils.d.ts +4 -1
  18. package/core/common/utilities/selection-manager.d.ts +7 -0
  19. package/core/common/version.d.ts +1 -1
  20. package/core/data/definitions/collection-definitions.d.ts +3 -0
  21. package/core/data/definitions/facet-definitions.d.ts +3 -0
  22. package/core/data/definitions/product-definitions.d.ts +1 -0
  23. package/core/data/providers/collection-data.service.d.ts +3 -0
  24. package/core/data/providers/facet-data.service.d.ts +3 -0
  25. package/core/data/providers/product-data.service.d.ts +1 -0
  26. package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +9 -0
  27. package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
  28. package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
  29. package/core/providers/modal/modal.types.d.ts +2 -0
  30. package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
  31. package/core/public_api.d.ts +5 -0
  32. package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +1 -1
  33. package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +32 -0
  34. package/core/shared/components/data-table/data-table.component.d.ts +27 -8
  35. package/core/shared/shared.module.d.ts +32 -31
  36. package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
  37. package/esm2020/catalog/catalog.module.mjs +31 -6
  38. package/esm2020/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.mjs +4 -1
  39. package/esm2020/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.mjs +50 -0
  40. package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.mjs +84 -0
  41. package/esm2020/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.mjs +69 -0
  42. package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +1 -1
  43. package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +3 -3
  44. package/esm2020/catalog/components/collection-list/collection-list-bulk-actions.mjs +143 -0
  45. package/esm2020/catalog/components/collection-list/collection-list.component.mjs +16 -7
  46. package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +13 -6
  47. package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +5 -3
  48. package/esm2020/catalog/components/facet-list/facet-list-bulk-actions.mjs +202 -0
  49. package/esm2020/catalog/components/facet-list/facet-list.component.mjs +14 -5
  50. package/esm2020/catalog/components/generate-product-variants/generate-product-variants.component.mjs +1 -1
  51. package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +7 -2
  52. package/esm2020/catalog/components/product-detail/product-detail.component.mjs +34 -22
  53. package/esm2020/catalog/components/product-list/product-list-bulk-actions.mjs +168 -0
  54. package/esm2020/catalog/components/product-list/product-list.component.mjs +9 -4
  55. package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +3 -3
  56. package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
  57. package/esm2020/catalog/public_api.mjs +7 -1
  58. package/esm2020/core/common/generated-types.mjs +3 -2
  59. package/esm2020/core/common/introspection-result.mjs +266 -191
  60. package/esm2020/core/common/utilities/bulk-action-utils.mjs +35 -0
  61. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +7 -2
  62. package/esm2020/core/common/utilities/selection-manager.mjs +33 -1
  63. package/esm2020/core/common/version.mjs +2 -2
  64. package/esm2020/core/components/app-shell/app-shell.component.mjs +2 -2
  65. package/esm2020/core/data/definitions/collection-definitions.mjs +30 -1
  66. package/esm2020/core/data/definitions/facet-definitions.mjs +31 -1
  67. package/esm2020/core/data/definitions/order-definitions.mjs +443 -443
  68. package/esm2020/core/data/definitions/product-definitions.mjs +751 -743
  69. package/esm2020/core/data/providers/collection-data.service.mjs +17 -2
  70. package/esm2020/core/data/providers/facet-data.service.mjs +18 -2
  71. package/esm2020/core/data/providers/product-data.service.mjs +7 -2
  72. package/esm2020/core/data/utils/remove-readonly-custom-fields.mjs +4 -1
  73. package/esm2020/core/providers/bulk-action-registry/bulk-action-registry.service.mjs +28 -0
  74. package/esm2020/core/providers/bulk-action-registry/bulk-action-types.mjs +2 -0
  75. package/esm2020/core/providers/bulk-action-registry/register-bulk-action.mjs +63 -0
  76. package/esm2020/core/providers/modal/modal.service.mjs +2 -1
  77. package/esm2020/core/providers/modal/modal.types.mjs +1 -1
  78. package/esm2020/core/providers/nav-builder/nav-builder-types.mjs +1 -1
  79. package/esm2020/core/public_api.mjs +6 -1
  80. package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +2 -2
  81. package/esm2020/core/shared/components/bulk-action-menu/bulk-action-menu.component.mjs +97 -0
  82. package/esm2020/core/shared/components/custom-field-control/custom-field-control.component.mjs +1 -1
  83. package/esm2020/core/shared/components/data-table/data-table.component.mjs +62 -19
  84. package/esm2020/core/shared/components/dropdown/dropdown-menu.component.mjs +2 -2
  85. package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +7 -4
  86. package/esm2020/core/shared/components/language-selector/language-selector.component.mjs +3 -3
  87. package/esm2020/core/shared/components/simple-dialog/simple-dialog.component.mjs +3 -3
  88. package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +1 -1
  89. package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +1 -1
  90. package/esm2020/core/shared/pipes/locale-currency.pipe.mjs +10 -2
  91. package/esm2020/core/shared/shared.module.mjs +7 -3
  92. package/esm2020/customer/components/customer-detail/customer-detail.component.mjs +1 -1
  93. package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +7 -6
  94. package/esm2020/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +3 -3
  95. package/esm2020/customer/components/customer-list/customer-list.component.mjs +1 -1
  96. package/esm2020/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +1 -1
  97. package/esm2020/marketing/components/promotion-list/promotion-list.component.mjs +1 -1
  98. package/esm2020/order/components/order-editor/order-editor.component.mjs +12 -5
  99. package/esm2020/order/components/order-list/order-list.component.mjs +1 -1
  100. package/esm2020/settings/components/administrator-list/administrator-list.component.mjs +1 -1
  101. package/esm2020/settings/components/channel-list/channel-list.component.mjs +1 -1
  102. package/esm2020/settings/components/country-list/country-list.component.mjs +1 -1
  103. package/esm2020/settings/components/payment-method-list/payment-method-list.component.mjs +1 -1
  104. package/esm2020/settings/components/role-list/role-list.component.mjs +1 -1
  105. package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +3 -1
  106. package/esm2020/settings/components/shipping-method-list/shipping-method-list.component.mjs +1 -1
  107. package/esm2020/settings/components/tax-category-list/tax-category-list.component.mjs +1 -1
  108. package/esm2020/settings/components/tax-rate-list/tax-rate-list.component.mjs +1 -1
  109. package/esm2020/settings/components/zone-list/zone-list.component.mjs +3 -3
  110. package/esm2020/settings/components/zone-member-list/zone-member-list.component.mjs +3 -3
  111. package/esm2020/system/components/job-list/job-list.component.mjs +1 -1
  112. package/fesm2015/vendure-admin-ui-catalog.mjs +808 -49
  113. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  114. package/fesm2015/vendure-admin-ui-core.mjs +1935 -1450
  115. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  116. package/fesm2015/vendure-admin-ui-customer.mjs +10 -9
  117. package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
  118. package/fesm2015/vendure-admin-ui-dashboard.mjs +1 -1
  119. package/fesm2015/vendure-admin-ui-marketing.mjs +1 -1
  120. package/fesm2015/vendure-admin-ui-order.mjs +9 -5
  121. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  122. package/fesm2015/vendure-admin-ui-settings.mjs +14 -12
  123. package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
  124. package/fesm2015/vendure-admin-ui-system.mjs +1 -1
  125. package/fesm2020/vendure-admin-ui-catalog.mjs +800 -49
  126. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  127. package/fesm2020/vendure-admin-ui-core.mjs +1927 -1450
  128. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  129. package/fesm2020/vendure-admin-ui-customer.mjs +10 -9
  130. package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
  131. package/fesm2020/vendure-admin-ui-dashboard.mjs +1 -1
  132. package/fesm2020/vendure-admin-ui-marketing.mjs +1 -1
  133. package/fesm2020/vendure-admin-ui-order.mjs +12 -5
  134. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  135. package/fesm2020/vendure-admin-ui-settings.mjs +14 -12
  136. package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
  137. package/fesm2020/vendure-admin-ui-system.mjs +1 -1
  138. package/package.json +2 -2
  139. package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
  140. package/static/i18n-messages/cs.json +19 -0
  141. package/static/i18n-messages/de.json +19 -0
  142. package/static/i18n-messages/en.json +22 -4
  143. package/static/i18n-messages/es.json +19 -0
  144. package/static/i18n-messages/fr.json +19 -0
  145. package/static/i18n-messages/it.json +19 -0
  146. package/static/i18n-messages/pl.json +19 -0
  147. package/static/i18n-messages/pt_BR.json +19 -0
  148. package/static/i18n-messages/pt_PT.json +19 -0
  149. package/static/i18n-messages/ru.json +19 -0
  150. package/static/i18n-messages/uk.json +19 -0
  151. package/static/i18n-messages/zh_Hans.json +19 -0
  152. package/static/i18n-messages/zh_Hant.json +19 -0
  153. package/static/styles/_variables.scss +1 -0
  154. package/static/styles/global/_overrides.scss +1 -1
  155. package/static/styles/global/_sass-overrides.scss +1 -1
  156. package/static/theme.min.css +1 -1
@@ -1,3 +1,4 @@
1
+ import { BulkActionRegistryService } from '@vendure/admin-ui/core';
1
2
  import * as i0 from "@angular/core";
2
3
  import * as i1 from "./components/product-list/product-list.component";
3
4
  import * as i2 from "./components/product-detail/product-detail.component";
@@ -22,10 +23,14 @@ import * as i20 from "./components/assign-products-to-channel-dialog/assign-prod
22
23
  import * as i21 from "./components/asset-detail/asset-detail.component";
23
24
  import * as i22 from "./components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component";
24
25
  import * as i23 from "./components/product-options-editor/product-options-editor.component";
25
- import * as i24 from "@vendure/admin-ui/core";
26
- import * as i25 from "@angular/router";
26
+ import * as i24 from "./components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component";
27
+ import * as i25 from "./components/assign-to-channel-dialog/assign-to-channel-dialog.component";
28
+ import * as i26 from "@vendure/admin-ui/core";
29
+ import * as i27 from "@angular/router";
27
30
  export declare class CatalogModule {
31
+ private bulkActionRegistryService;
32
+ constructor(bulkActionRegistryService: BulkActionRegistryService);
28
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ProductVariantsListComponent, typeof i7.ApplyFacetDialogComponent, typeof i8.AssetListComponent, typeof i9.AssetsComponent, typeof i10.VariantPriceDetailComponent, typeof i11.CollectionListComponent, typeof i12.CollectionDetailComponent, typeof i13.CollectionTreeComponent, typeof i14.CollectionTreeNodeComponent, typeof i15.CollectionContentsComponent, typeof i16.ProductVariantsTableComponent, typeof i17.OptionValueInputComponent, typeof i18.UpdateProductOptionDialogComponent, typeof i19.ProductVariantsEditorComponent, typeof i20.AssignProductsToChannelDialogComponent, typeof i21.AssetDetailComponent, typeof i22.ConfirmVariantDeletionDialogComponent, typeof i23.ProductOptionsEditorComponent], [typeof i24.SharedModule, typeof i25.RouterModule], [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ProductVariantsListComponent, typeof i7.ApplyFacetDialogComponent, typeof i8.AssetListComponent, typeof i9.AssetsComponent, typeof i10.VariantPriceDetailComponent, typeof i11.CollectionListComponent, typeof i12.CollectionDetailComponent, typeof i13.CollectionTreeComponent, typeof i14.CollectionTreeNodeComponent, typeof i15.CollectionContentsComponent, typeof i16.ProductVariantsTableComponent, typeof i17.OptionValueInputComponent, typeof i18.UpdateProductOptionDialogComponent, typeof i19.ProductVariantsEditorComponent, typeof i20.AssignProductsToChannelDialogComponent, typeof i21.AssetDetailComponent, typeof i22.ConfirmVariantDeletionDialogComponent, typeof i23.ProductOptionsEditorComponent]>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ProductVariantsListComponent, typeof i7.ApplyFacetDialogComponent, typeof i8.AssetListComponent, typeof i9.AssetsComponent, typeof i10.VariantPriceDetailComponent, typeof i11.CollectionListComponent, typeof i12.CollectionDetailComponent, typeof i13.CollectionTreeComponent, typeof i14.CollectionTreeNodeComponent, typeof i15.CollectionContentsComponent, typeof i16.ProductVariantsTableComponent, typeof i17.OptionValueInputComponent, typeof i18.UpdateProductOptionDialogComponent, typeof i19.ProductVariantsEditorComponent, typeof i20.AssignProductsToChannelDialogComponent, typeof i21.AssetDetailComponent, typeof i22.ConfirmVariantDeletionDialogComponent, typeof i23.ProductOptionsEditorComponent, typeof i24.BulkAddFacetValuesDialogComponent, typeof i25.AssignToChannelDialogComponent], [typeof i26.SharedModule, typeof i27.RouterModule], [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ProductVariantsListComponent, typeof i7.ApplyFacetDialogComponent, typeof i8.AssetListComponent, typeof i9.AssetsComponent, typeof i10.VariantPriceDetailComponent, typeof i11.CollectionListComponent, typeof i12.CollectionDetailComponent, typeof i13.CollectionTreeComponent, typeof i14.CollectionTreeNodeComponent, typeof i15.CollectionContentsComponent, typeof i16.ProductVariantsTableComponent, typeof i17.OptionValueInputComponent, typeof i18.UpdateProductOptionDialogComponent, typeof i19.ProductVariantsEditorComponent, typeof i20.AssignProductsToChannelDialogComponent, typeof i21.AssetDetailComponent, typeof i22.ConfirmVariantDeletionDialogComponent, typeof i23.ProductOptionsEditorComponent, typeof i24.BulkAddFacetValuesDialogComponent, typeof i25.AssignToChannelDialogComponent]>;
30
35
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalogModule>;
31
36
  }
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { DataService, Dialog, GetChannelsQuery, NotificationService } from '@vendure/admin-ui/core';
4
+ import * as i0 from "@angular/core";
5
+ declare type Channel = GetChannelsQuery['channels'][number];
6
+ export declare class AssignToChannelDialogComponent implements OnInit, Dialog<Channel> {
7
+ private dataService;
8
+ private notificationService;
9
+ selectedChannel: Channel | null | undefined;
10
+ currentChannel: Channel;
11
+ availableChannels: Channel[];
12
+ resolveWith: (result?: Channel) => void;
13
+ selectedChannelIdControl: FormControl;
14
+ constructor(dataService: DataService, notificationService: NotificationService);
15
+ ngOnInit(): void;
16
+ selectChannel(channelIds: string[]): void;
17
+ assign(): void;
18
+ cancel(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssignToChannelDialogComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssignToChannelDialogComponent, "vdr-assign-to-channel-dialog", never, {}, {}, never, never>;
21
+ }
22
+ export {};
@@ -0,0 +1,41 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { DataService, Dialog, FacetWithValuesFragment } from '@vendure/admin-ui/core';
3
+ import { Subscription } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ interface ProductOrVariant {
6
+ id: string;
7
+ name: string;
8
+ sku?: string;
9
+ facetValues: Array<{
10
+ id: string;
11
+ name: string;
12
+ code: string;
13
+ facet: Array<{
14
+ id: string;
15
+ name: string;
16
+ code: string;
17
+ }>;
18
+ }>;
19
+ }
20
+ export declare class BulkAddFacetValuesDialogComponent implements OnInit, OnDestroy, Dialog<FacetWithValuesFragment[]> {
21
+ private dataService;
22
+ private changeDetectorRef;
23
+ resolveWith: (result?: FacetWithValuesFragment[]) => void;
24
+ mode: 'product' | 'variant';
25
+ ids?: string[];
26
+ facets: FacetWithValuesFragment[];
27
+ state: 'loading' | 'ready' | 'saving';
28
+ selectedValues: FacetWithValuesFragment[];
29
+ items: ProductOrVariant[];
30
+ facetValuesRemoved: boolean;
31
+ private subscription;
32
+ constructor(dataService: DataService, changeDetectorRef: ChangeDetectorRef);
33
+ ngOnInit(): void;
34
+ ngOnDestroy(): void;
35
+ cancel(): void;
36
+ removeFacetValue(item: ProductOrVariant, facetValueId: string): void;
37
+ addFacetValues(): Subscription;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<BulkAddFacetValuesDialogComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<BulkAddFacetValuesDialogComponent, "vdr-bulk-add-facet-values-dialog", never, {}, {}, never, never>;
40
+ }
41
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const GET_PRODUCTS_WITH_FACET_VALUES_BY_IDS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
2
+ export declare const GET_VARIANTS_WITH_FACET_VALUES_BY_IDS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
3
+ export declare const UPDATE_PRODUCTS_BULK: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
4
+ export declare const UPDATE_VARIANTS_BULK: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
@@ -0,0 +1,6 @@
1
+ import { BulkAction } from '@vendure/admin-ui/core';
2
+ import { CollectionPartial } from '../collection-tree/collection-tree.types';
3
+ import { CollectionListComponent } from './collection-list.component';
4
+ export declare const deleteCollectionsBulkAction: BulkAction<CollectionPartial, CollectionListComponent>;
5
+ export declare const assignCollectionsToChannelBulkAction: BulkAction<CollectionPartial, CollectionListComponent>;
6
+ export declare const removeCollectionsFromChannelBulkAction: BulkAction<CollectionPartial, CollectionListComponent>;
@@ -1,9 +1,9 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
- import { DataService, GetCollectionListQuery, ItemOf, LanguageCode, ModalService, NotificationService, ServerConfigService } from '@vendure/admin-ui/core';
4
+ import { DataService, GetCollectionListQuery, ItemOf, LanguageCode, ModalService, NotificationService, SelectionManager, ServerConfigService } from '@vendure/admin-ui/core';
5
5
  import { Observable } from 'rxjs';
6
- import { RearrangeEvent } from '../collection-tree/collection-tree.types';
6
+ import { CollectionPartial, RearrangeEvent } from '../collection-tree/collection-tree.types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class CollectionListComponent implements OnInit, OnDestroy {
9
9
  private dataService;
@@ -12,6 +12,7 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
12
12
  private router;
13
13
  private route;
14
14
  private serverConfigService;
15
+ private changeDetectorRef;
15
16
  filterTermControl: FormControl;
16
17
  activeCollectionId$: Observable<string | null>;
17
18
  activeCollectionTitle$: Observable<string>;
@@ -20,9 +21,10 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
20
21
  contentLanguage$: Observable<LanguageCode>;
21
22
  expandAll: boolean;
22
23
  expandedIds: string[];
24
+ selectionManager: SelectionManager<CollectionPartial>;
23
25
  private queryResult;
24
26
  private destroy$;
25
- constructor(dataService: DataService, notificationService: NotificationService, modalService: ModalService, router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService);
27
+ constructor(dataService: DataService, notificationService: NotificationService, modalService: ModalService, router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetectorRef: ChangeDetectorRef);
26
28
  ngOnInit(): void;
27
29
  ngOnDestroy(): void;
28
30
  toggleExpandAll(): void;
@@ -30,7 +32,7 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
30
32
  deleteCollection(id: string): void;
31
33
  closeContents(): void;
32
34
  setLanguage(code: LanguageCode): void;
33
- private refresh;
35
+ refresh(): void;
34
36
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectionListComponent, never>;
35
37
  static ɵcmp: i0.ɵɵComponentDeclaration<CollectionListComponent, "vdr-collection-list", never, {}, {}, never, never>;
36
38
  }
@@ -1,32 +1,36 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
- import { DataService } from '@vendure/admin-ui/core';
4
+ import { DataService, SelectionManager } from '@vendure/admin-ui/core';
5
5
  import { Observable } from 'rxjs';
6
6
  import { RootNode, TreeNode } from './array-to-tree';
7
7
  import { CollectionTreeService } from './collection-tree.service';
8
8
  import { CollectionPartial } from './collection-tree.types';
9
9
  import * as i0 from "@angular/core";
10
- export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
10
+ export declare class CollectionTreeNodeComponent implements OnInit, OnChanges, OnDestroy {
11
11
  private parent;
12
12
  private dataService;
13
13
  private collectionTreeService;
14
14
  private router;
15
15
  private route;
16
+ private changeDetectorRef;
16
17
  depth: number;
17
18
  parentName: string;
18
19
  collectionTree: TreeNode<CollectionPartial>;
19
20
  activeCollectionId: string;
20
21
  expandAll: boolean;
22
+ selectionManager: SelectionManager<CollectionPartial>;
21
23
  hasUpdatePermission$: Observable<boolean>;
22
24
  hasDeletePermission$: Observable<boolean>;
23
25
  moveListItems: Array<{
24
26
  path: string;
25
27
  id: string;
26
28
  }>;
27
- constructor(parent: CollectionTreeNodeComponent, dataService: DataService, collectionTreeService: CollectionTreeService, router: Router, route: ActivatedRoute);
29
+ private subscription;
30
+ constructor(parent: CollectionTreeNodeComponent, dataService: DataService, collectionTreeService: CollectionTreeService, router: Router, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
28
31
  ngOnInit(): void;
29
32
  ngOnChanges(changes: SimpleChanges): void;
33
+ ngOnDestroy(): void;
30
34
  trackByFn(index: number, item: CollectionPartial): string;
31
35
  toggleExpanded(collection: TreeNode<CollectionPartial>): void;
32
36
  getMoveListItems(collection: CollectionPartial): void;
@@ -35,6 +39,6 @@ export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
35
39
  moveDown(collection: CollectionPartial, currentIndex: number): void;
36
40
  drop(event: CdkDragDrop<CollectionPartial | RootNode<CollectionPartial>>): void;
37
41
  delete(id: string): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<CollectionTreeNodeComponent, [{ optional: true; skipSelf: true; }, null, null, null, null]>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<CollectionTreeNodeComponent, "vdr-collection-tree-node", never, { "collectionTree": "collectionTree"; "activeCollectionId": "activeCollectionId"; "expandAll": "expandAll"; }, {}, never, never>;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollectionTreeNodeComponent, [{ optional: true; skipSelf: true; }, null, null, null, null, null]>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollectionTreeNodeComponent, "vdr-collection-tree-node", never, { "collectionTree": "collectionTree"; "activeCollectionId": "activeCollectionId"; "expandAll": "expandAll"; "selectionManager": "selectionManager"; }, {}, never, never>;
40
44
  }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { SelectionManager } from '@vendure/admin-ui/core';
2
3
  import { RootNode } from './array-to-tree';
3
4
  import { CollectionTreeService } from './collection-tree.service';
4
5
  import { CollectionPartial, RearrangeEvent } from './collection-tree.types';
@@ -9,6 +10,7 @@ export declare class CollectionTreeComponent implements OnInit, OnChanges {
9
10
  activeCollectionId: string;
10
11
  expandAll: boolean;
11
12
  expandedIds: string[];
13
+ selectionManager: SelectionManager<CollectionPartial>;
12
14
  rearrange: EventEmitter<RearrangeEvent>;
13
15
  deleteCollection: EventEmitter<string>;
14
16
  collectionTree: RootNode<CollectionPartial>;
@@ -16,5 +18,5 @@ export declare class CollectionTreeComponent implements OnInit, OnChanges {
16
18
  ngOnChanges(changes: SimpleChanges): void;
17
19
  ngOnInit(): void;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectionTreeComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<CollectionTreeComponent, "vdr-collection-tree", never, { "collections": "collections"; "activeCollectionId": "activeCollectionId"; "expandAll": "expandAll"; "expandedIds": "expandedIds"; }, { "rearrange": "rearrange"; "deleteCollection": "deleteCollection"; }, never, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollectionTreeComponent, "vdr-collection-tree", never, { "collections": "collections"; "activeCollectionId": "activeCollectionId"; "expandAll": "expandAll"; "expandedIds": "expandedIds"; "selectionManager": "selectionManager"; }, { "rearrange": "rearrange"; "deleteCollection": "deleteCollection"; }, never, never>;
20
22
  }
@@ -0,0 +1,5 @@
1
+ import { BulkAction, GetFacetListQuery, ItemOf } from '@vendure/admin-ui/core';
2
+ import { FacetListComponent } from './facet-list.component';
3
+ export declare const deleteFacetsBulkAction: BulkAction<ItemOf<GetFacetListQuery, 'facets'>, FacetListComponent>;
4
+ export declare const assignFacetsToChannelBulkAction: BulkAction<ItemOf<GetFacetListQuery, 'facets'>, FacetListComponent>;
5
+ export declare const removeFacetsFromChannelBulkAction: BulkAction<ItemOf<GetFacetListQuery, 'facets'>, FacetListComponent>;
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
- import { BaseListComponent, DataService, GetFacetListQuery, ItemOf, LanguageCode, ModalService, NotificationService, ServerConfigService } from '@vendure/admin-ui/core';
4
+ import { BaseListComponent, DataService, GetFacetListQuery, ItemOf, LanguageCode, ModalService, NotificationService, SelectionManager, ServerConfigService } from '@vendure/admin-ui/core';
5
5
  import { Observable } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FacetListComponent extends BaseListComponent<GetFacetListQuery, ItemOf<GetFacetListQuery, 'facets'>> implements OnInit {
@@ -16,6 +16,7 @@ export declare class FacetListComponent extends BaseListComponent<GetFacetListQu
16
16
  displayLimit: {
17
17
  [id: string]: number;
18
18
  };
19
+ selectionManager: SelectionManager<ItemOf<GetFacetListQuery, 'facets'>>;
19
20
  constructor(dataService: DataService, modalService: ModalService, notificationService: NotificationService, serverConfigService: ServerConfigService, router: Router, route: ActivatedRoute);
20
21
  ngOnInit(): void;
21
22
  toggleDisplayLimit(facet: ItemOf<GetFacetListQuery, 'facets'>): void;
@@ -57,7 +57,7 @@ export declare class ProductDetailComponent extends BaseDetailComponent<NonNulla
57
57
  assignToChannel(): void;
58
58
  removeFromChannel(channelId: string): void;
59
59
  assignVariantToChannel(variant: ProductVariantFragment): import("rxjs").Subscription;
60
- removeVariantFromChannel({ channelId, variant }: {
60
+ removeVariantFromChannel({ channelId, variant, }: {
61
61
  channelId: string;
62
62
  variant: ProductVariantFragment;
63
63
  }): void;
@@ -0,0 +1,6 @@
1
+ import { BulkAction } from '@vendure/admin-ui/core';
2
+ import { ProductListComponent, SearchItem } from './product-list.component';
3
+ export declare const deleteProductsBulkAction: BulkAction<SearchItem, ProductListComponent>;
4
+ export declare const assignProductsToChannelBulkAction: BulkAction<SearchItem, ProductListComponent>;
5
+ export declare const removeProductsFromChannelBulkAction: BulkAction<SearchItem, ProductListComponent>;
6
+ export declare const assignFacetValuesToProductsBulkAction: BulkAction<SearchItem, ProductListComponent>;
@@ -1,9 +1,10 @@
1
1
  import { AfterViewInit, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
- import { BaseListComponent, DataService, ItemOf, JobQueueService, LanguageCode, ModalService, NotificationService, SearchProductsQuery, SearchProductsQueryVariables, ServerConfigService } from '@vendure/admin-ui/core';
3
+ import { BaseListComponent, DataService, ItemOf, JobQueueService, LanguageCode, ModalService, NotificationService, SearchProductsQuery, SearchProductsQueryVariables, SelectionManager, ServerConfigService } from '@vendure/admin-ui/core';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ProductListComponent extends BaseListComponent<SearchProductsQuery, ItemOf<SearchProductsQuery, 'search'>, SearchProductsQueryVariables> implements OnInit, AfterViewInit {
6
+ export declare type SearchItem = ItemOf<SearchProductsQuery, 'search'>;
7
+ export declare class ProductListComponent extends BaseListComponent<SearchProductsQuery, SearchItem, SearchProductsQueryVariables> implements OnInit, AfterViewInit {
7
8
  private dataService;
8
9
  private modalService;
9
10
  private notificationService;
@@ -17,6 +18,7 @@ export declare class ProductListComponent extends BaseListComponent<SearchProduc
17
18
  availableLanguages$: Observable<LanguageCode[]>;
18
19
  contentLanguage$: Observable<LanguageCode>;
19
20
  pendingSearchIndexUpdates: number;
21
+ selectionManager: SelectionManager<SearchItem>;
20
22
  private productSearchInput;
21
23
  constructor(dataService: DataService, modalService: ModalService, notificationService: NotificationService, jobQueueService: JobQueueService, serverConfigService: ServerConfigService, router: Router, route: ActivatedRoute);
22
24
  ngOnInit(): void;
@@ -5,8 +5,12 @@ export * from './components/asset-detail/asset-detail.component';
5
5
  export * from './components/asset-list/asset-list.component';
6
6
  export * from './components/assets/assets.component';
7
7
  export * from './components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component';
8
+ export * from './components/assign-to-channel-dialog/assign-to-channel-dialog.component';
9
+ export * from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component';
10
+ export * from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql';
8
11
  export * from './components/collection-contents/collection-contents.component';
9
12
  export * from './components/collection-detail/collection-detail.component';
13
+ export * from './components/collection-list/collection-list-bulk-actions';
10
14
  export * from './components/collection-list/collection-list.component';
11
15
  export * from './components/collection-tree/array-to-tree';
12
16
  export * from './components/collection-tree/collection-tree-node.component';
@@ -15,11 +19,13 @@ export * from './components/collection-tree/collection-tree.service';
15
19
  export * from './components/collection-tree/collection-tree.types';
16
20
  export * from './components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component';
17
21
  export * from './components/facet-detail/facet-detail.component';
22
+ export * from './components/facet-list/facet-list-bulk-actions';
18
23
  export * from './components/facet-list/facet-list.component';
19
24
  export * from './components/generate-product-variants/generate-product-variants.component';
20
25
  export * from './components/option-value-input/option-value-input.component';
21
26
  export * from './components/product-detail/product-detail.component';
22
27
  export * from './components/product-detail/product-detail.types';
28
+ export * from './components/product-list/product-list-bulk-actions';
23
29
  export * from './components/product-list/product-list.component';
24
30
  export * from './components/product-options-editor/product-options-editor.component';
25
31
  export * from './components/product-variants-editor/product-variants-editor.component';