@vendure/admin-ui 2.0.0-next.0 → 2.0.0-next.11

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 (180) hide show
  1. package/catalog/catalog.module.d.ts +10 -11
  2. package/catalog/components/collection-contents/collection-contents.component.d.ts +10 -2
  3. package/catalog/components/collection-detail/collection-detail.component.d.ts +13 -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-editor/product-variants-editor.component.d.ts +13 -10
  9. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
  10. package/catalog/public_api.d.ts +0 -1
  11. package/core/common/generated-types.d.ts +136 -2
  12. package/core/common/utilities/selection-manager.d.ts +23 -0
  13. package/core/common/version.d.ts +1 -1
  14. package/core/components/app-shell/app-shell.component.d.ts +1 -0
  15. package/core/data/definitions/collection-definitions.d.ts +1 -0
  16. package/core/data/providers/collection-data.service.d.ts +4 -0
  17. package/core/data/providers/promotion-data.service.d.ts +1 -1
  18. package/core/providers/local-storage/local-storage.service.d.ts +1 -0
  19. package/core/public_api.d.ts +7 -1
  20. package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
  21. package/core/shared/components/configurable-input/configurable-input.component.d.ts +8 -3
  22. package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
  23. package/core/shared/components/data-table/data-table.component.d.ts +5 -2
  24. package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +3 -2
  25. package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
  26. package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +38 -0
  27. package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts +1 -1
  28. package/core/shared/components/{product-selector/product-selector.component.d.ts → product-variant-selector/product-variant-selector.component.d.ts} +4 -4
  29. package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
  30. package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +28 -0
  31. package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
  32. package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +23 -0
  33. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +4 -1
  34. package/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +6 -3
  35. package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +18 -0
  36. package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
  37. package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
  38. package/core/shared/shared.module.d.ts +33 -28
  39. package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
  40. package/esm2020/catalog/catalog.module.mjs +1 -5
  41. package/esm2020/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +1 -1
  42. package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
  43. package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +61 -13
  44. package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +72 -32
  45. package/esm2020/catalog/components/collection-list/collection-list.component.mjs +30 -5
  46. package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
  47. package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +29 -10
  48. package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +6 -3
  49. package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +2 -2
  50. package/esm2020/catalog/components/product-detail/product-detail.component.mjs +2 -2
  51. package/esm2020/catalog/components/product-list/product-list.component.mjs +7 -8
  52. package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +8 -3
  53. package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
  54. package/esm2020/catalog/providers/routing/collection-resolver.mjs +2 -1
  55. package/esm2020/catalog/public_api.mjs +1 -2
  56. package/esm2020/core/app.component.module.mjs +1 -1
  57. package/esm2020/core/common/base-detail.component.mjs +1 -1
  58. package/esm2020/core/common/deactivate-aware.mjs +1 -1
  59. package/esm2020/core/common/generated-types.mjs +29 -1
  60. package/esm2020/core/common/introspection-result.mjs +255 -183
  61. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +23 -4
  62. package/esm2020/core/common/utilities/selection-manager.mjs +64 -0
  63. package/esm2020/core/common/version.mjs +2 -2
  64. package/esm2020/core/components/app-shell/app-shell.component.mjs +6 -5
  65. package/esm2020/core/components/main-nav/main-nav.component.mjs +3 -3
  66. package/esm2020/core/core.module.mjs +1 -1
  67. package/esm2020/core/data/definitions/collection-definitions.mjs +19 -1
  68. package/esm2020/core/data/definitions/customer-definitions.mjs +241 -241
  69. package/esm2020/core/data/definitions/order-definitions.mjs +431 -429
  70. package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
  71. package/esm2020/core/data/providers/collection-data.service.mjs +7 -2
  72. package/esm2020/core/data/providers/promotion-data.service.mjs +3 -2
  73. package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
  74. package/esm2020/core/public_api.mjs +8 -2
  75. package/esm2020/core/shared/components/address-form/address-form.component.mjs +3 -3
  76. package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +33 -50
  77. package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
  78. package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +22 -10
  79. package/esm2020/core/shared/components/custom-field-control/custom-field-control.component.mjs +10 -4
  80. package/esm2020/core/shared/components/data-table/data-table.component.mjs +10 -3
  81. package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +7 -3
  82. package/esm2020/core/shared/components/formatted-address/formatted-address.component.mjs +3 -3
  83. package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
  84. package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +4 -4
  85. package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
  86. package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
  87. package/esm2020/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +62 -0
  88. package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +2 -2
  89. package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
  90. package/esm2020/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +45 -0
  91. package/esm2020/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +12 -3
  92. package/esm2020/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +48 -0
  93. package/esm2020/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.mjs +4 -4
  94. package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +5 -1
  95. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +11 -9
  96. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +54 -0
  97. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +5 -4
  98. package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +21 -11
  99. package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +7 -19
  100. package/esm2020/core/shared/shared.module.mjs +29 -9
  101. package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +29 -15
  102. package/esm2020/dashboard/components/dashboard/dashboard.component.mjs +2 -2
  103. package/esm2020/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +2 -2
  104. package/esm2020/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +2 -2
  105. package/esm2020/login/components/login/login.component.mjs +3 -3
  106. package/esm2020/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
  107. package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +8 -4
  108. package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +1 -1
  109. package/esm2020/order/components/order-custom-fields-card/order-custom-fields-card.component.mjs +30 -6
  110. package/esm2020/order/components/order-detail/order-detail.component.mjs +31 -19
  111. package/esm2020/order/components/order-editor/order-editor.component.mjs +26 -10
  112. package/esm2020/order/components/order-list/order-list.component.mjs +23 -16
  113. package/esm2020/order/components/order-table/order-table.component.mjs +11 -3
  114. package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +8 -4
  115. package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
  116. package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
  117. package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +1 -1
  118. package/esm2020/settings/components/test-order-builder/test-order-builder.component.mjs +3 -3
  119. package/fesm2015/vendure-admin-ui-catalog.mjs +218 -170
  120. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  121. package/fesm2015/vendure-admin-ui-core.mjs +3008 -2422
  122. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  123. package/fesm2015/vendure-admin-ui-customer.mjs +29 -17
  124. package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
  125. package/fesm2015/vendure-admin-ui-dashboard.mjs +5 -5
  126. package/fesm2015/vendure-admin-ui-dashboard.mjs.map +1 -1
  127. package/fesm2015/vendure-admin-ui-login.mjs +2 -2
  128. package/fesm2015/vendure-admin-ui-login.mjs.map +1 -1
  129. package/fesm2015/vendure-admin-ui-marketing.mjs +2 -2
  130. package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
  131. package/fesm2015/vendure-admin-ui-order.mjs +125 -53
  132. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  133. package/fesm2015/vendure-admin-ui-settings.mjs +5 -5
  134. package/fesm2015/vendure-admin-ui-settings.mjs.map +1 -1
  135. package/fesm2020/vendure-admin-ui-catalog.mjs +216 -172
  136. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  137. package/fesm2020/vendure-admin-ui-core.mjs +2998 -2415
  138. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  139. package/fesm2020/vendure-admin-ui-customer.mjs +29 -17
  140. package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
  141. package/fesm2020/vendure-admin-ui-dashboard.mjs +5 -5
  142. package/fesm2020/vendure-admin-ui-dashboard.mjs.map +1 -1
  143. package/fesm2020/vendure-admin-ui-login.mjs +2 -2
  144. package/fesm2020/vendure-admin-ui-login.mjs.map +1 -1
  145. package/fesm2020/vendure-admin-ui-marketing.mjs +2 -2
  146. package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
  147. package/fesm2020/vendure-admin-ui-order.mjs +123 -52
  148. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  149. package/fesm2020/vendure-admin-ui-settings.mjs +5 -5
  150. package/fesm2020/vendure-admin-ui-settings.mjs.map +1 -1
  151. package/order/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +4 -2
  152. package/order/components/order-editor/order-editor.component.d.ts +8 -2
  153. package/order/components/order-list/order-list.component.d.ts +1 -0
  154. package/order/components/order-table/order-table.component.d.ts +1 -0
  155. package/package.json +2 -2
  156. package/static/i18n-messages/cs.json +21 -3
  157. package/static/i18n-messages/de.json +21 -3
  158. package/static/i18n-messages/en.json +20 -2
  159. package/static/i18n-messages/es.json +21 -3
  160. package/static/i18n-messages/fr.json +21 -3
  161. package/static/i18n-messages/it.json +21 -3
  162. package/static/i18n-messages/pl.json +21 -3
  163. package/static/i18n-messages/pt_BR.json +21 -3
  164. package/static/i18n-messages/pt_PT.json +21 -3
  165. package/static/i18n-messages/ru.json +21 -3
  166. package/static/i18n-messages/uk.json +21 -3
  167. package/static/i18n-messages/zh_Hans.json +21 -3
  168. package/static/i18n-messages/zh_Hant.json +21 -3
  169. package/static/styles/_variables.scss +3 -0
  170. package/static/styles/global/_forms.scss +4 -5
  171. package/static/styles/global/_overrides.scss +10 -0
  172. package/static/styles/global/_sass-overrides.scss +3 -0
  173. package/static/styles/global/_utilities.scss +9 -0
  174. package/static/styles/styles.scss +1 -0
  175. package/static/styles/theme/default.scss +13 -1
  176. package/static/styles/ui-extension-theme.scss +1 -0
  177. package/static/theme.min.css +1 -1
  178. package/static/vendure-ui-config.json +25 -10
  179. package/esm2020/catalog/components/product-search-input/product-search-input.component.mjs +0 -107
  180. package/esm2020/core/shared/components/product-selector/product-selector.component.mjs +0 -62
@@ -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,21 @@ export declare class CollectionContentsComponent implements OnInit, OnChanges, O
9
9
  private router;
10
10
  private dataService;
11
11
  collectionId: string;
12
+ parentId: string;
13
+ inheritFilters: boolean;
14
+ updatedFilters: ConfigurableOperationInput[] | undefined;
15
+ previewUpdatedFilters: boolean;
12
16
  headerTemplate: TemplateRef<any>;
13
17
  contents$: Observable<NonNullable<GetCollectionContentsQuery['collection']>['productVariants']['items']>;
14
18
  contentsTotalItems$: Observable<number>;
15
19
  contentsItemsPerPage$: Observable<number>;
16
20
  contentsCurrentPage$: Observable<number>;
17
21
  filterTermControl: FormControl;
22
+ isLoading: boolean;
18
23
  private collectionIdChange$;
24
+ private parentIdChange$;
25
+ private filterChanges$;
26
+ private inheritFiltersChanges$;
19
27
  private refresh$;
20
28
  private destroy$;
21
29
  constructor(route: ActivatedRoute, router: Router, dataService: DataService);
@@ -27,5 +35,5 @@ export declare class CollectionContentsComponent implements OnInit, OnChanges, O
27
35
  refresh(): void;
28
36
  private setParam;
29
37
  static ɵfac: i0.ɵɵFactoryDeclaration<CollectionContentsComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<CollectionContentsComponent, "vdr-collection-contents", never, { "collectionId": "collectionId"; }, {}, ["headerTemplate"], never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<CollectionContentsComponent, "vdr-collection-contents", never, { "collectionId": "collectionId"; "parentId": "parentId"; "inheritFilters": "inheritFilters"; "updatedFilters": "updatedFilters"; "previewUpdatedFilters": "previewUpdatedFilters"; }, {}, ["headerTemplate"], never>;
31
39
  }
@@ -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,29 @@ export declare class CollectionDetailComponent extends BaseDetailComponent<Colle
18
20
  };
19
21
  filters: ConfigurableOperation[];
20
22
  allFilters: ConfigurableOperationDefinition[];
23
+ updatedFilters$: Observable<ConfigurableOperationInput[]>;
24
+ inheritFilters$: Observable<boolean>;
25
+ livePreview: boolean;
26
+ parentId$: Observable<string | undefined>;
21
27
  readonly updatePermission: Permission[];
28
+ private filterRemoved$;
22
29
  contentsComponent: CollectionContentsComponent;
23
- constructor(router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService);
30
+ constructor(router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService, localStorageService: LocalStorageService);
24
31
  ngOnInit(): void;
25
32
  ngOnDestroy(): void;
26
- getFilterDefinition(filter: ConfigurableOperation): ConfigurableOperationDefinition | undefined;
33
+ getFilterDefinition(_filter: ConfigurableOperation): ConfigurableOperationDefinition | undefined;
27
34
  assetsChanged(): boolean;
28
35
  /**
29
36
  * If creating a new Collection, automatically generate the slug based on the collection name.
30
37
  */
31
38
  updateSlug(nameValue: string): void;
32
39
  addFilter(collectionFilter: ConfigurableOperation): void;
33
- removeFilter(collectionFilter: ConfigurableOperation): void;
40
+ removeFilter(index: number): void;
34
41
  create(): void;
35
42
  save(): void;
36
43
  canDeactivate(): boolean;
44
+ toggleLivePreview(): void;
45
+ trackByFn(index: number, item: ConfigurableOperation): string;
37
46
  /**
38
47
  * Sets the values of the form on changes to the category or current language.
39
48
  */
@@ -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
  }
@@ -17,6 +17,16 @@ export declare class GeneratedVariant {
17
17
  stock: number;
18
18
  constructor(config: Partial<GeneratedVariant>);
19
19
  }
20
+ interface OptionGroupUiModel {
21
+ id?: string;
22
+ isNew: boolean;
23
+ name: string;
24
+ values: Array<{
25
+ id?: string;
26
+ name: string;
27
+ locked: boolean;
28
+ }>;
29
+ }
20
30
  export declare class ProductVariantsEditorComponent implements OnInit, DeactivateAware {
21
31
  private route;
22
32
  private dataService;
@@ -25,16 +35,7 @@ export declare class ProductVariantsEditorComponent implements OnInit, Deactivat
25
35
  private modalService;
26
36
  formValueChanged: boolean;
27
37
  generatedVariants: GeneratedVariant[];
28
- optionGroups: Array<{
29
- id?: string;
30
- isNew: boolean;
31
- name: string;
32
- values: Array<{
33
- id?: string;
34
- name: string;
35
- locked: boolean;
36
- }>;
37
- }>;
38
+ optionGroups: OptionGroupUiModel[];
38
39
  product: NonNullable<GetProductVariantOptionsQuery['product']>;
39
40
  currencyCode: CurrencyCode;
40
41
  private languageCode;
@@ -45,6 +46,7 @@ export declare class ProductVariantsEditorComponent implements OnInit, Deactivat
45
46
  getVariantsToAdd(): GeneratedVariant[];
46
47
  getVariantName(variant: GeneratedVariant): string;
47
48
  addOption(): void;
49
+ removeOption(optionGroup: OptionGroupUiModel): void;
48
50
  generateVariants(): void;
49
51
  /**
50
52
  * Returns one of the existing variants to base the newly-generated variant's
@@ -70,3 +72,4 @@ export declare class ProductVariantsEditorComponent implements OnInit, Deactivat
70
72
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantsEditorComponent, never>;
71
73
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantsEditorComponent, "vdr-product-variants-editor", never, {}, {}, never, never>;
72
74
  }
75
+ export {};
@@ -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';