@vendure/admin-ui 2.0.0-next.2 → 2.0.0-next.5

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 (115) hide show
  1. package/catalog/catalog.module.d.ts +10 -11
  2. package/catalog/components/collection-contents/collection-contents.component.d.ts +8 -2
  3. package/catalog/components/collection-detail/collection-detail.component.d.ts +11 -4
  4. package/catalog/components/collection-list/collection-list.component.d.ts +2 -0
  5. package/catalog/components/collection-tree/array-to-tree.d.ts +1 -1
  6. package/catalog/components/collection-tree/collection-tree-node.component.d.ts +6 -2
  7. package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
  8. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
  9. package/catalog/public_api.d.ts +0 -1
  10. package/core/common/generated-types.d.ts +62 -0
  11. package/core/common/utilities/selection-manager.d.ts +23 -0
  12. package/core/common/version.d.ts +1 -1
  13. package/core/data/definitions/collection-definitions.d.ts +1 -0
  14. package/core/data/providers/collection-data.service.d.ts +4 -0
  15. package/core/providers/local-storage/local-storage.service.d.ts +1 -0
  16. package/core/public_api.d.ts +5 -0
  17. package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
  18. package/core/shared/components/configurable-input/configurable-input.component.d.ts +8 -3
  19. package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +38 -0
  20. package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts +1 -1
  21. package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
  22. package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +26 -0
  23. package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +23 -0
  24. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +3 -1
  25. package/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +6 -3
  26. package/core/shared/shared.module.d.ts +32 -28
  27. package/esm2020/catalog/catalog.module.mjs +1 -5
  28. package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
  29. package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +53 -13
  30. package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +64 -32
  31. package/esm2020/catalog/components/collection-list/collection-list.component.mjs +30 -5
  32. package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
  33. package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +29 -10
  34. package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +6 -3
  35. package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +2 -2
  36. package/esm2020/catalog/components/product-detail/product-detail.component.mjs +2 -2
  37. package/esm2020/catalog/components/product-list/product-list.component.mjs +6 -7
  38. package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
  39. package/esm2020/catalog/providers/routing/collection-resolver.mjs +1 -1
  40. package/esm2020/catalog/public_api.mjs +1 -2
  41. package/esm2020/core/app.component.module.mjs +1 -1
  42. package/esm2020/core/common/base-detail.component.mjs +1 -1
  43. package/esm2020/core/common/deactivate-aware.mjs +1 -1
  44. package/esm2020/core/common/generated-types.mjs +26 -1
  45. package/esm2020/core/common/introspection-result.mjs +255 -189
  46. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +21 -2
  47. package/esm2020/core/common/utilities/selection-manager.mjs +64 -0
  48. package/esm2020/core/common/version.mjs +2 -2
  49. package/esm2020/core/core.module.mjs +1 -1
  50. package/esm2020/core/data/definitions/collection-definitions.mjs +18 -1
  51. package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
  52. package/esm2020/core/data/providers/collection-data.service.mjs +5 -2
  53. package/esm2020/core/data/providers/promotion-data.service.mjs +1 -1
  54. package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
  55. package/esm2020/core/public_api.mjs +6 -1
  56. package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +33 -50
  57. package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
  58. package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +22 -10
  59. package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
  60. package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +1 -1
  61. package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
  62. package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
  63. package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
  64. package/esm2020/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +43 -0
  65. package/esm2020/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +48 -0
  66. package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +5 -1
  67. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +11 -9
  68. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +1 -1
  69. package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +1 -1
  70. package/esm2020/core/shared/shared.module.mjs +21 -5
  71. package/esm2020/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
  72. package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +1 -1
  73. package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +1 -1
  74. package/esm2020/order/components/order-editor/order-editor.component.mjs +3 -3
  75. package/esm2020/order/components/order-table/order-table.component.mjs +2 -2
  76. package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +1 -1
  77. package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
  78. package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
  79. package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +1 -1
  80. package/fesm2015/vendure-admin-ui-catalog.mjs +191 -165
  81. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  82. package/fesm2015/vendure-admin-ui-core.mjs +1965 -1465
  83. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  84. package/fesm2015/vendure-admin-ui-marketing.mjs +2 -2
  85. package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
  86. package/fesm2015/vendure-admin-ui-order.mjs +5 -5
  87. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  88. package/fesm2015/vendure-admin-ui-settings.mjs +3 -3
  89. package/fesm2020/vendure-admin-ui-catalog.mjs +189 -167
  90. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  91. package/fesm2020/vendure-admin-ui-core.mjs +1962 -1464
  92. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  93. package/fesm2020/vendure-admin-ui-marketing.mjs +2 -2
  94. package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
  95. package/fesm2020/vendure-admin-ui-order.mjs +5 -5
  96. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  97. package/fesm2020/vendure-admin-ui-settings.mjs +3 -3
  98. package/package.json +2 -2
  99. package/static/i18n-messages/cs.json +8 -0
  100. package/static/i18n-messages/de.json +9 -0
  101. package/static/i18n-messages/en.json +8 -0
  102. package/static/i18n-messages/es.json +8 -0
  103. package/static/i18n-messages/fr.json +8 -0
  104. package/static/i18n-messages/it.json +8 -0
  105. package/static/i18n-messages/pl.json +8 -0
  106. package/static/i18n-messages/pt_BR.json +8 -0
  107. package/static/i18n-messages/pt_PT.json +8 -0
  108. package/static/i18n-messages/ru.json +8 -0
  109. package/static/i18n-messages/uk.json +8 -0
  110. package/static/i18n-messages/zh_Hans.json +8 -0
  111. package/static/i18n-messages/zh_Hant.json +8 -0
  112. package/static/styles/global/_forms.scss +3 -4
  113. package/static/styles/global/_overrides.scss +6 -0
  114. package/static/theme.min.css +1 -1
  115. package/esm2020/catalog/components/product-search-input/product-search-input.component.mjs +0 -107
@@ -15,18 +15,17 @@ import * as i13 from "./components/collection-tree/collection-tree.component";
15
15
  import * as i14 from "./components/collection-tree/collection-tree-node.component";
16
16
  import * as i15 from "./components/collection-contents/collection-contents.component";
17
17
  import * as i16 from "./components/product-variants-table/product-variants-table.component";
18
- import * as i17 from "./components/product-search-input/product-search-input.component";
19
- import * as i18 from "./components/option-value-input/option-value-input.component";
20
- import * as i19 from "./components/update-product-option-dialog/update-product-option-dialog.component";
21
- import * as i20 from "./components/product-variants-editor/product-variants-editor.component";
22
- import * as i21 from "./components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component";
23
- import * as i22 from "./components/asset-detail/asset-detail.component";
24
- import * as i23 from "./components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component";
25
- import * as i24 from "./components/product-options-editor/product-options-editor.component";
26
- import * as i25 from "@vendure/admin-ui/core";
27
- import * as i26 from "@angular/router";
18
+ import * as i17 from "./components/option-value-input/option-value-input.component";
19
+ import * as i18 from "./components/update-product-option-dialog/update-product-option-dialog.component";
20
+ import * as i19 from "./components/product-variants-editor/product-variants-editor.component";
21
+ import * as i20 from "./components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component";
22
+ import * as i21 from "./components/asset-detail/asset-detail.component";
23
+ import * as i22 from "./components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component";
24
+ 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";
28
27
  export declare class CatalogModule {
29
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogModule, never>;
30
- 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.ProductSearchInputComponent, typeof i18.OptionValueInputComponent, typeof i19.UpdateProductOptionDialogComponent, typeof i20.ProductVariantsEditorComponent, typeof i21.AssignProductsToChannelDialogComponent, typeof i22.AssetDetailComponent, typeof i23.ConfirmVariantDeletionDialogComponent, typeof i24.ProductOptionsEditorComponent], [typeof i25.SharedModule, typeof i26.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.ProductSearchInputComponent, typeof i18.OptionValueInputComponent, typeof i19.UpdateProductOptionDialogComponent, typeof i20.ProductVariantsEditorComponent, typeof i21.AssignProductsToChannelDialogComponent, typeof i22.AssetDetailComponent, typeof i23.ConfirmVariantDeletionDialogComponent, typeof i24.ProductOptionsEditorComponent]>;
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]>;
31
30
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalogModule>;
32
31
  }
@@ -1,7 +1,7 @@
1
1
  import { OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
- import { DataService, GetCollectionContentsQuery } from '@vendure/admin-ui/core';
4
+ import { ConfigurableOperationInput, DataService, GetCollectionContentsQuery } from '@vendure/admin-ui/core';
5
5
  import { Observable } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class CollectionContentsComponent implements OnInit, OnChanges, OnDestroy {
@@ -9,13 +9,19 @@ export declare class CollectionContentsComponent implements OnInit, OnChanges, O
9
9
  private router;
10
10
  private dataService;
11
11
  collectionId: string;
12
+ parentId: string;
13
+ updatedFilters: ConfigurableOperationInput[] | undefined;
14
+ previewUpdatedFilters: boolean;
12
15
  headerTemplate: TemplateRef<any>;
13
16
  contents$: Observable<NonNullable<GetCollectionContentsQuery['collection']>['productVariants']['items']>;
14
17
  contentsTotalItems$: Observable<number>;
15
18
  contentsItemsPerPage$: Observable<number>;
16
19
  contentsCurrentPage$: Observable<number>;
17
20
  filterTermControl: FormControl;
21
+ isLoading: boolean;
18
22
  private collectionIdChange$;
23
+ private parentIdChange$;
24
+ private filterChanges$;
19
25
  private refresh$;
20
26
  private destroy$;
21
27
  constructor(route: ActivatedRoute, router: Router, dataService: DataService);
@@ -27,5 +33,5 @@ export declare class CollectionContentsComponent implements OnInit, OnChanges, O
27
33
  refresh(): void;
28
34
  private setParam;
29
35
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectionContentsComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<CollectionContentsComponent, "vdr-collection-contents", never, { "collectionId": "collectionId"; }, {}, ["headerTemplate"], never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollectionContentsComponent, "vdr-collection-contents", never, { "collectionId": "collectionId"; "parentId": "parentId"; "updatedFilters": "updatedFilters"; "previewUpdatedFilters": "previewUpdatedFilters"; }, {}, ["headerTemplate"], never>;
31
37
  }
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
- import { Asset, BaseDetailComponent, CollectionFragment, ConfigurableOperation, ConfigurableOperationDefinition, CustomFieldConfig, DataService, LanguageCode, ModalService, NotificationService, Permission, ServerConfigService } from '@vendure/admin-ui/core';
4
+ import { Asset, BaseDetailComponent, CollectionFragment, ConfigurableOperation, ConfigurableOperationDefinition, ConfigurableOperationInput, CustomFieldConfig, DataService, LanguageCode, LocalStorageService, ModalService, NotificationService, Permission, ServerConfigService } from '@vendure/admin-ui/core';
5
+ import { Observable } from 'rxjs';
5
6
  import { CollectionContentsComponent } from '../collection-contents/collection-contents.component';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class CollectionDetailComponent extends BaseDetailComponent<CollectionFragment> implements OnInit, OnDestroy {
@@ -10,6 +11,7 @@ export declare class CollectionDetailComponent extends BaseDetailComponent<Colle
10
11
  private formBuilder;
11
12
  private notificationService;
12
13
  private modalService;
14
+ private localStorageService;
13
15
  customFields: CustomFieldConfig[];
14
16
  detailForm: FormGroup;
15
17
  assetChanges: {
@@ -18,22 +20,27 @@ export declare class CollectionDetailComponent extends BaseDetailComponent<Colle
18
20
  };
19
21
  filters: ConfigurableOperation[];
20
22
  allFilters: ConfigurableOperationDefinition[];
23
+ updatedFilters$: Observable<ConfigurableOperationInput[]>;
24
+ livePreview: boolean;
25
+ parentId$: Observable<string | undefined>;
21
26
  readonly updatePermission: Permission[];
22
27
  contentsComponent: CollectionContentsComponent;
23
- constructor(router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService);
28
+ constructor(router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService, localStorageService: LocalStorageService);
24
29
  ngOnInit(): void;
25
30
  ngOnDestroy(): void;
26
- getFilterDefinition(filter: ConfigurableOperation): ConfigurableOperationDefinition | undefined;
31
+ getFilterDefinition(_filter: ConfigurableOperation): ConfigurableOperationDefinition | undefined;
27
32
  assetsChanged(): boolean;
28
33
  /**
29
34
  * If creating a new Collection, automatically generate the slug based on the collection name.
30
35
  */
31
36
  updateSlug(nameValue: string): void;
32
37
  addFilter(collectionFilter: ConfigurableOperation): void;
33
- removeFilter(collectionFilter: ConfigurableOperation): void;
38
+ removeFilter(index: number): void;
34
39
  create(): void;
35
40
  save(): void;
36
41
  canDeactivate(): boolean;
42
+ toggleLivePreview(): void;
43
+ trackByFn(index: number, item: ConfigurableOperation): string;
37
44
  /**
38
45
  * Sets the values of the form on changes to the category or current language.
39
46
  */
@@ -19,11 +19,13 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
19
19
  availableLanguages$: Observable<LanguageCode[]>;
20
20
  contentLanguage$: Observable<LanguageCode>;
21
21
  expandAll: boolean;
22
+ expandedIds: string[];
22
23
  private queryResult;
23
24
  private destroy$;
24
25
  constructor(dataService: DataService, notificationService: NotificationService, modalService: ModalService, router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService);
25
26
  ngOnInit(): void;
26
27
  ngOnDestroy(): void;
28
+ toggleExpandAll(): void;
27
29
  onRearrange(event: RearrangeEvent): void;
28
30
  deleteCollection(id: string): void;
29
31
  closeContents(): void;
@@ -16,4 +16,4 @@ export declare type RootNode<T extends HasParent> = {
16
16
  * Builds a tree from an array of nodes which have a parent.
17
17
  * Based on https://stackoverflow.com/a/31247960/772859, modified to preserve ordering.
18
18
  */
19
- export declare function arrayToTree<T extends HasParent>(nodes: T[], currentState?: RootNode<T>): RootNode<T>;
19
+ export declare function arrayToTree<T extends HasParent>(nodes: T[], currentState?: RootNode<T>, expandedIds?: string[]): RootNode<T>;
@@ -1,5 +1,6 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
3
+ import { ActivatedRoute, Router } from '@angular/router';
3
4
  import { DataService } from '@vendure/admin-ui/core';
4
5
  import { Observable } from 'rxjs';
5
6
  import { RootNode, TreeNode } from './array-to-tree';
@@ -10,6 +11,8 @@ export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
10
11
  private parent;
11
12
  private dataService;
12
13
  private collectionTreeService;
14
+ private router;
15
+ private route;
13
16
  depth: number;
14
17
  parentName: string;
15
18
  collectionTree: TreeNode<CollectionPartial>;
@@ -21,16 +24,17 @@ export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
21
24
  path: string;
22
25
  id: string;
23
26
  }>;
24
- constructor(parent: CollectionTreeNodeComponent, dataService: DataService, collectionTreeService: CollectionTreeService);
27
+ constructor(parent: CollectionTreeNodeComponent, dataService: DataService, collectionTreeService: CollectionTreeService, router: Router, route: ActivatedRoute);
25
28
  ngOnInit(): void;
26
29
  ngOnChanges(changes: SimpleChanges): void;
27
30
  trackByFn(index: number, item: CollectionPartial): string;
31
+ toggleExpanded(collection: TreeNode<CollectionPartial>): void;
28
32
  getMoveListItems(collection: CollectionPartial): void;
29
33
  move(collection: CollectionPartial, parentId: string): void;
30
34
  moveUp(collection: CollectionPartial, currentIndex: number): void;
31
35
  moveDown(collection: CollectionPartial, currentIndex: number): void;
32
36
  drop(event: CdkDragDrop<CollectionPartial | RootNode<CollectionPartial>>): void;
33
37
  delete(id: string): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<CollectionTreeNodeComponent, [{ optional: true; skipSelf: true; }, null, null]>;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollectionTreeNodeComponent, [{ optional: true; skipSelf: true; }, null, null, null, null]>;
35
39
  static ɵcmp: i0.ɵɵComponentDeclaration<CollectionTreeNodeComponent, "vdr-collection-tree-node", never, { "collectionTree": "collectionTree"; "activeCollectionId": "activeCollectionId"; "expandAll": "expandAll"; }, {}, never, never>;
36
40
  }
@@ -8,6 +8,7 @@ export declare class CollectionTreeComponent implements OnInit, OnChanges {
8
8
  collections: CollectionPartial[];
9
9
  activeCollectionId: string;
10
10
  expandAll: boolean;
11
+ expandedIds: string[];
11
12
  rearrange: EventEmitter<RearrangeEvent>;
12
13
  deleteCollection: EventEmitter<string>;
13
14
  collectionTree: RootNode<CollectionPartial>;
@@ -15,5 +16,5 @@ export declare class CollectionTreeComponent implements OnInit, OnChanges {
15
16
  ngOnChanges(changes: SimpleChanges): void;
16
17
  ngOnInit(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectionTreeComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<CollectionTreeComponent, "vdr-collection-tree", never, { "collections": "collections"; "activeCollectionId": "activeCollectionId"; "expandAll": "expandAll"; }, { "rearrange": "rearrange"; "deleteCollection": "deleteCollection"; }, never, 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>;
19
20
  }
@@ -51,6 +51,7 @@ export declare class ProductVariantsListComponent implements OnChanges, OnInit,
51
51
  trackById(index: number, item: ProductVariantFragment): string;
52
52
  inventoryIsNotTracked(formGroup: FormGroup): boolean;
53
53
  getTaxCategoryName(group: FormGroup): string;
54
+ getStockOnHandMinValue(variant: FormGroup): any;
54
55
  getSaleableStockLevel(variant: ProductVariantFragment): number;
55
56
  areAllSelected(): boolean;
56
57
  onAssetChange(variantId: string, event: AssetChange): void;
@@ -22,7 +22,6 @@ export * from './components/product-detail/product-detail.component';
22
22
  export * from './components/product-detail/product-detail.types';
23
23
  export * from './components/product-list/product-list.component';
24
24
  export * from './components/product-options-editor/product-options-editor.component';
25
- export * from './components/product-search-input/product-search-input.component';
26
25
  export * from './components/product-variants-editor/product-variants-editor.component';
27
26
  export * from './components/product-variants-list/product-variants-list.component';
28
27
  export * from './components/product-variants-table/product-variants-table.component';
@@ -3133,6 +3133,31 @@ export declare type PaymentStateTransitionError = ErrorResult & {
3133
3133
  * Permissions for administrators and customers. Used to control access to
3134
3134
  * GraphQL resolvers via the {@link Allow} decorator.
3135
3135
  *
3136
+ * ## Understanding Permission.Owner
3137
+ *
3138
+ * `Permission.Owner` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only
3139
+ * be accessible to the "owner" of that resource.
3140
+ *
3141
+ * For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
3142
+ * based on the activeUserId of the current session. As a result, the resolver code looks like this:
3143
+ *
3144
+ * @example
3145
+ * ```TypeScript
3146
+ * \@Query()
3147
+ * \@Allow(Permission.Owner)
3148
+ * async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
3149
+ * const userId = ctx.activeUserId;
3150
+ * if (userId) {
3151
+ * return this.customerService.findOneByUserId(ctx, userId);
3152
+ * }
3153
+ * }
3154
+ * ```
3155
+ *
3156
+ * Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
3157
+ * nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
3158
+ * of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
3159
+ *
3160
+ *
3136
3161
  * @docsCategory common
3137
3162
  */
3138
3163
  export declare enum Permission {
@@ -3314,6 +3339,10 @@ export declare type PermissionDefinition = {
3314
3339
  description: Scalars['String'];
3315
3340
  name: Scalars['String'];
3316
3341
  };
3342
+ export declare type PreviewCollectionVariantsInput = {
3343
+ filters: Array<ConfigurableOperationInput>;
3344
+ parentId?: InputMaybe<Scalars['ID']>;
3345
+ };
3317
3346
  /** The price range where the result has more than one price */
3318
3347
  export declare type PriceRange = {
3319
3348
  __typename?: 'PriceRange';
@@ -3656,6 +3685,8 @@ export declare type Query = {
3656
3685
  paymentMethodHandlers: Array<ConfigurableOperationDefinition>;
3657
3686
  paymentMethods: PaymentMethodList;
3658
3687
  pendingSearchIndexUpdates: Scalars['Int'];
3688
+ /** Used for real-time previews of the contents of a Collection */
3689
+ previewCollectionVariants: ProductVariantList;
3659
3690
  /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */
3660
3691
  product?: Maybe<Product>;
3661
3692
  productOptionGroup?: Maybe<ProductOptionGroup>;
@@ -3760,6 +3791,10 @@ export declare type QueryPaymentMethodArgs = {
3760
3791
  export declare type QueryPaymentMethodsArgs = {
3761
3792
  options?: InputMaybe<PaymentMethodListOptions>;
3762
3793
  };
3794
+ export declare type QueryPreviewCollectionVariantsArgs = {
3795
+ input: PreviewCollectionVariantsInput;
3796
+ options?: InputMaybe<ProductVariantListOptions>;
3797
+ };
3763
3798
  export declare type QueryProductArgs = {
3764
3799
  id?: InputMaybe<Scalars['ID']>;
3765
3800
  slug?: InputMaybe<Scalars['String']>;
@@ -5351,6 +5386,7 @@ export declare type GetCollectionFiltersQuery = {
5351
5386
  list: boolean;
5352
5387
  ui?: any | null;
5353
5388
  label?: string | null;
5389
+ description?: string | null;
5354
5390
  }>;
5355
5391
  }>;
5356
5392
  };
@@ -5826,10 +5862,28 @@ export declare type GetCollectionContentsQuery = {
5826
5862
  id: string;
5827
5863
  productId: string;
5828
5864
  name: string;
5865
+ sku: string;
5829
5866
  }>;
5830
5867
  };
5831
5868
  } | null;
5832
5869
  };
5870
+ export declare type PreviewCollectionContentsQueryVariables = Exact<{
5871
+ input: PreviewCollectionVariantsInput;
5872
+ options?: InputMaybe<ProductVariantListOptions>;
5873
+ }>;
5874
+ export declare type PreviewCollectionContentsQuery = {
5875
+ previewCollectionVariants: {
5876
+ __typename?: 'ProductVariantList';
5877
+ totalItems: number;
5878
+ items: Array<{
5879
+ __typename?: 'ProductVariant';
5880
+ id: string;
5881
+ productId: string;
5882
+ name: string;
5883
+ sku: string;
5884
+ }>;
5885
+ };
5886
+ };
5833
5887
  export declare type AddressFragment = {
5834
5888
  __typename?: 'Address';
5835
5889
  id: string;
@@ -10374,6 +10428,7 @@ export declare type GetAdjustmentOperationsQuery = {
10374
10428
  list: boolean;
10375
10429
  ui?: any | null;
10376
10430
  label?: string | null;
10431
+ description?: string | null;
10377
10432
  }>;
10378
10433
  }>;
10379
10434
  promotionActions: Array<{
@@ -10389,6 +10444,7 @@ export declare type GetAdjustmentOperationsQuery = {
10389
10444
  list: boolean;
10390
10445
  ui?: any | null;
10391
10446
  label?: string | null;
10447
+ description?: string | null;
10392
10448
  }>;
10393
10449
  }>;
10394
10450
  };
@@ -11293,6 +11349,7 @@ export declare type GetPaymentMethodOperationsQuery = {
11293
11349
  list: boolean;
11294
11350
  ui?: any | null;
11295
11351
  label?: string | null;
11352
+ description?: string | null;
11296
11353
  }>;
11297
11354
  }>;
11298
11355
  paymentMethodHandlers: Array<{
@@ -11308,6 +11365,7 @@ export declare type GetPaymentMethodOperationsQuery = {
11308
11365
  list: boolean;
11309
11366
  ui?: any | null;
11310
11367
  label?: string | null;
11368
+ description?: string | null;
11311
11369
  }>;
11312
11370
  }>;
11313
11371
  };
@@ -16377,6 +16435,7 @@ export declare type ConfigurableOperationDefFragment = {
16377
16435
  list: boolean;
16378
16436
  ui?: any | null;
16379
16437
  label?: string | null;
16438
+ description?: string | null;
16380
16439
  }>;
16381
16440
  };
16382
16441
  declare type ErrorResult_AlreadyRefundedError_Fragment = {
@@ -16696,6 +16755,7 @@ export declare type GetShippingMethodOperationsQuery = {
16696
16755
  list: boolean;
16697
16756
  ui?: any | null;
16698
16757
  label?: string | null;
16758
+ description?: string | null;
16699
16759
  }>;
16700
16760
  }>;
16701
16761
  shippingCalculators: Array<{
@@ -16711,6 +16771,7 @@ export declare type GetShippingMethodOperationsQuery = {
16711
16771
  list: boolean;
16712
16772
  ui?: any | null;
16713
16773
  label?: string | null;
16774
+ description?: string | null;
16714
16775
  }>;
16715
16776
  }>;
16716
16777
  fulfillmentHandlers: Array<{
@@ -16726,6 +16787,7 @@ export declare type GetShippingMethodOperationsQuery = {
16726
16787
  list: boolean;
16727
16788
  ui?: any | null;
16728
16789
  label?: string | null;
16790
+ description?: string | null;
16729
16791
  }>;
16730
16792
  }>;
16731
16793
  };
@@ -0,0 +1,23 @@
1
+ export interface SelectionManagerOptions<T> {
2
+ multiSelect: boolean;
3
+ itemsAreEqual: (a: T, b: T) => boolean;
4
+ additiveMode: boolean;
5
+ }
6
+ /**
7
+ * @description
8
+ * A helper class used to manage selection of list items. Supports multiple selection via
9
+ * cmd/ctrl/shift key.
10
+ */
11
+ export declare class SelectionManager<T> {
12
+ private options;
13
+ constructor(options: SelectionManagerOptions<T>);
14
+ get selection(): T[];
15
+ private _selection;
16
+ private items;
17
+ setMultiSelect(isMultiSelect: boolean): void;
18
+ setCurrentItems(items: T[]): void;
19
+ toggleSelection(item: T, event?: MouseEvent): void;
20
+ selectMultiple(items: T[]): void;
21
+ isSelected(item: T): boolean;
22
+ lastSelected(): T;
23
+ }
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "2.0.0-next.2";
1
+ export declare const ADMIN_UI_VERSION = "2.0.0-next.5";
@@ -7,3 +7,4 @@ export declare const UPDATE_COLLECTION: import("apollo-angular").TypedDocumentNo
7
7
  export declare const MOVE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
8
8
  export declare const DELETE_COLLECTION: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
9
9
  export declare const GET_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
10
+ export declare const PREVIEW_COLLECTION_CONTENTS: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
@@ -14,6 +14,10 @@ export declare class CollectionDataService {
14
14
  updateCollection(input: Codegen.UpdateCollectionInput): import("rxjs").Observable<Codegen.UpdateCollectionMutation>;
15
15
  moveCollection(inputs: Codegen.MoveCollectionInput[]): import("rxjs").Observable<Codegen.MoveCollectionMutation[]>;
16
16
  deleteCollection(id: string): import("rxjs").Observable<Codegen.DeleteCollectionMutation>;
17
+ previewCollectionVariants(input: Codegen.PreviewCollectionVariantsInput, options: Codegen.ProductVariantListOptions): import("@vendure/admin-ui/core").QueryResult<Codegen.PreviewCollectionContentsQuery, Codegen.Exact<{
18
+ input: Codegen.PreviewCollectionVariantsInput;
19
+ options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
20
+ }>>;
17
21
  getCollectionContents(id: string, take?: number, skip?: number, filterTerm?: string): import("@vendure/admin-ui/core").QueryResult<Codegen.GetCollectionContentsQuery, Codegen.Exact<{
18
22
  id: string;
19
23
  options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
@@ -11,6 +11,7 @@ export declare type LocalStorageTypeMap = {
11
11
  orderListLastCustomFilters: any;
12
12
  dashboardWidgetLayout: WidgetLayoutDefinition;
13
13
  activeTheme: string;
14
+ livePreviewCollectionContents: boolean;
14
15
  };
15
16
  export declare type LocalStorageLocationBasedTypeMap = {
16
17
  shippingTestOrder: any;
@@ -17,6 +17,7 @@ export * from './common/utilities/find-translation';
17
17
  export * from './common/utilities/flatten-facet-values';
18
18
  export * from './common/utilities/get-default-ui-language';
19
19
  export * from './common/utilities/interpolate-description';
20
+ export * from './common/utilities/selection-manager';
20
21
  export * from './common/utilities/string-to-color';
21
22
  export * from './common/version';
22
23
  export * from './components/app-shell/app-shell.component';
@@ -146,6 +147,8 @@ export * from './shared/components/modal-dialog/modal-dialog.component';
146
147
  export * from './shared/components/object-tree/object-tree.component';
147
148
  export * from './shared/components/order-state-label/order-state-label.component';
148
149
  export * from './shared/components/pagination-controls/pagination-controls.component';
150
+ export * from './shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component';
151
+ export * from './shared/components/product-search-input/product-search-input.component';
149
152
  export * from './shared/components/product-variant-selector/product-variant-selector.component';
150
153
  export * from './shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component';
151
154
  export * from './shared/components/rich-text-editor/link-dialog/link-dialog.component';
@@ -176,6 +179,7 @@ export * from './shared/directives/if-multichannel.directive';
176
179
  export * from './shared/directives/if-permissions.directive';
177
180
  export * from './shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component';
178
181
  export * from './shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component';
182
+ export * from './shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component';
179
183
  export * from './shared/dynamic-form-inputs/currency-form-input/currency-form-input.component';
180
184
  export * from './shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component';
181
185
  export * from './shared/dynamic-form-inputs/date-form-input/date-form-input.component';
@@ -183,6 +187,7 @@ export * from './shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-inpu
183
187
  export * from './shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component';
184
188
  export * from './shared/dynamic-form-inputs/number-form-input/number-form-input.component';
185
189
  export * from './shared/dynamic-form-inputs/password-form-input/password-form-input.component';
190
+ export * from './shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component';
186
191
  export * from './shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component';
187
192
  export * from './shared/dynamic-form-inputs/register-dynamic-input-components';
188
193
  export * from './shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component';
@@ -1,5 +1,6 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ModalService } from '../../../providers/modal/modal.service';
3
+ import { SelectionManager } from '../../../common/utilities/selection-manager';
3
4
  import { AssetLike } from './asset-gallery.types';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class AssetGalleryComponent implements OnChanges {
@@ -58,9 +59,32 @@ export declare class AssetGalleryComponent implements OnChanges {
58
59
  y: number;
59
60
  } | null | undefined;
60
61
  }[]>;
61
- selection: AssetLike[];
62
+ selectionManager: SelectionManager<{
63
+ __typename?: "Asset" | undefined;
64
+ id: string;
65
+ createdAt: any;
66
+ updatedAt: any;
67
+ name: string;
68
+ fileSize: number;
69
+ mimeType: string;
70
+ type: import("@vendure/admin-ui/core").AssetType;
71
+ preview: string;
72
+ source: string;
73
+ width: number;
74
+ height: number;
75
+ tags: {
76
+ __typename?: "Tag" | undefined;
77
+ id: string;
78
+ value: string;
79
+ }[];
80
+ focalPoint?: {
81
+ __typename?: "Coordinate" | undefined;
82
+ x: number;
83
+ y: number;
84
+ } | null | undefined;
85
+ }>;
62
86
  constructor(modalService: ModalService);
63
- ngOnChanges(): void;
87
+ ngOnChanges(changes: SimpleChanges): void;
64
88
  toggleSelection(asset: AssetLike, event?: MouseEvent): void;
65
89
  selectMultiple(assets: AssetLike[]): void;
66
90
  isSelected(asset: AssetLike): boolean;
@@ -1,15 +1,17 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, FormGroup, ValidationErrors, Validator } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
3
4
  import { ConfigArg, ConfigArgDefinition, ConfigurableOperation, ConfigurableOperationDefinition } from '../../../common/generated-types';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
7
  * A form input which renders a card with the internal form fields of the given ConfigurableOperation.
7
8
  */
8
- export declare class ConfigurableInputComponent implements OnChanges, OnDestroy, ControlValueAccessor, Validator {
9
+ export declare class ConfigurableInputComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {
9
10
  operation?: ConfigurableOperation;
10
11
  operationDefinition?: ConfigurableOperationDefinition;
11
12
  readonly: boolean;
12
13
  removable: boolean;
14
+ position: number;
13
15
  remove: EventEmitter<ConfigurableOperation>;
14
16
  argValues: {
15
17
  [name: string]: any;
@@ -17,8 +19,11 @@ export declare class ConfigurableInputComponent implements OnChanges, OnDestroy,
17
19
  onChange: (val: any) => void;
18
20
  onTouch: () => void;
19
21
  form: FormGroup;
22
+ positionChange$: Observable<number>;
23
+ private positionChangeSubject;
20
24
  private subscription;
21
25
  interpolateDescription(): string;
26
+ ngOnInit(): void;
22
27
  ngOnChanges(changes: SimpleChanges): void;
23
28
  ngOnDestroy(): void;
24
29
  registerOnChange(fn: any): void;
@@ -30,5 +35,5 @@ export declare class ConfigurableInputComponent implements OnChanges, OnDestroy,
30
35
  private createForm;
31
36
  validate(c: AbstractControl): ValidationErrors | null;
32
37
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurableInputComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurableInputComponent, "vdr-configurable-input", never, { "operation": "operation"; "operationDefinition": "operationDefinition"; "readonly": "readonly"; "removable": "removable"; }, { "remove": "remove"; }, never, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurableInputComponent, "vdr-configurable-input", never, { "operation": "operation"; "operationDefinition": "operationDefinition"; "readonly": "readonly"; "removable": "removable"; "position": "position"; }, { "remove": "remove"; }, never, never>;
34
39
  }
@@ -0,0 +1,38 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { PaginationInstance } from 'ngx-pagination';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
4
+ import { SearchProductsQuery } from '../../../common/generated-types';
5
+ import { SelectionManager } from '../../../common/utilities/selection-manager';
6
+ import { DataService } from '../../../data/providers/data.service';
7
+ import { Dialog } from '../../../providers/modal/modal.types';
8
+ import * as i0 from "@angular/core";
9
+ export declare type SearchItem = SearchProductsQuery['search']['items'][number];
10
+ export declare class ProductMultiSelectorDialogComponent implements OnInit, Dialog<SearchItem[]> {
11
+ private dataService;
12
+ private changeDetector;
13
+ mode: 'product' | 'variant';
14
+ initialSelectionIds: string[];
15
+ items$: Observable<SearchItem[]>;
16
+ facetValues$: Observable<SearchProductsQuery['search']['facetValues']>;
17
+ searchTerm$: BehaviorSubject<string>;
18
+ searchFacetValueIds$: BehaviorSubject<string[]>;
19
+ paginationConfig: PaginationInstance;
20
+ selectionManager: SelectionManager<SearchItem>;
21
+ resolveWith: (result?: SearchItem[]) => void;
22
+ private paginationConfig$;
23
+ constructor(dataService: DataService, changeDetector: ChangeDetectorRef);
24
+ ngOnInit(): void;
25
+ trackByFn(index: number, item: SearchItem): string;
26
+ setSearchTerm(term: string): void;
27
+ setFacetValueIds(ids: string[]): void;
28
+ toggleSelection(item: SearchItem, event: MouseEvent): void;
29
+ clearSelection(): void;
30
+ isSelected(item: SearchItem): boolean;
31
+ entityInfoClick(event: MouseEvent): void;
32
+ pageChange(page: number): void;
33
+ itemsPerPageChange(itemsPerPage: number): void;
34
+ select(): void;
35
+ cancel(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductMultiSelectorDialogComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductMultiSelectorDialogComponent, "vdr-product-multi-selector-dialog", never, {}, {}, never, never>;
38
+ }
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { SearchProductsQuery } from '@vendure/admin-ui/core';
2
+ import { SearchProductsQuery } from '../../../common/generated-types';
3
3
  import * as i0 from "@angular/core";
4
4
  declare type FacetValueResult = SearchProductsQuery['search']['facetValues'][number];
5
5
  export declare class ProductSearchInputComponent {
@@ -6,9 +6,10 @@ import * as i0 from "@angular/core";
6
6
  export declare class SelectToggleComponent {
7
7
  size: 'small' | 'large';
8
8
  selected: boolean;
9
+ hiddenWhenOff: boolean;
9
10
  disabled: boolean;
10
11
  label: string | undefined;
11
12
  selectedChange: EventEmitter<boolean>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectToggleComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectToggleComponent, "vdr-select-toggle", never, { "size": "size"; "selected": "selected"; "disabled": "disabled"; "label": "label"; }, { "selectedChange": "selectedChange"; }, never, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectToggleComponent, "vdr-select-toggle", never, { "size": "size"; "selected": "selected"; "hiddenWhenOff": "hiddenWhenOff"; "disabled": "disabled"; "label": "label"; }, { "selectedChange": "selectedChange"; }, never, never>;
14
15
  }