@vendure/admin-ui 2.0.0-next.1 → 2.0.0-next.12

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 (186) 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/generate-product-variants/generate-product-variants.component.d.ts +3 -3
  9. package/catalog/components/option-value-input/option-value-input.component.d.ts +21 -9
  10. package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +22 -12
  11. package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
  12. package/catalog/public_api.d.ts +0 -1
  13. package/core/common/generated-types.d.ts +368 -128
  14. package/core/common/utilities/configurable-operation-utils.d.ts +4 -2
  15. package/core/common/utilities/selection-manager.d.ts +23 -0
  16. package/core/common/version.d.ts +1 -1
  17. package/core/components/app-shell/app-shell.component.d.ts +1 -0
  18. package/core/data/definitions/collection-definitions.d.ts +1 -0
  19. package/core/data/definitions/order-definitions.d.ts +2 -0
  20. package/core/data/definitions/product-definitions.d.ts +1 -0
  21. package/core/data/providers/collection-data.service.d.ts +4 -0
  22. package/core/data/providers/order-data.service.d.ts +1 -0
  23. package/core/data/providers/product-data.service.d.ts +1 -0
  24. package/core/data/providers/promotion-data.service.d.ts +1 -1
  25. package/core/providers/local-storage/local-storage.service.d.ts +1 -0
  26. package/core/public_api.d.ts +6 -0
  27. package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
  28. package/core/shared/components/configurable-input/configurable-input.component.d.ts +8 -3
  29. package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
  30. package/core/shared/components/data-table/data-table.component.d.ts +5 -2
  31. package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +3 -2
  32. package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
  33. package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +38 -0
  34. package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts +1 -1
  35. package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
  36. package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +28 -0
  37. package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
  38. package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +23 -0
  39. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +4 -1
  40. package/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +6 -3
  41. package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +18 -0
  42. package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
  43. package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
  44. package/core/shared/shared.module.d.ts +32 -27
  45. package/customer/components/customer-group-list/customer-group-list.component.d.ts +6 -4
  46. package/esm2020/catalog/catalog.module.mjs +1 -5
  47. package/esm2020/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +1 -1
  48. package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
  49. package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +61 -13
  50. package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +70 -32
  51. package/esm2020/catalog/components/collection-list/collection-list.component.mjs +30 -5
  52. package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
  53. package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +29 -10
  54. package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +6 -3
  55. package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +2 -2
  56. package/esm2020/catalog/components/generate-product-variants/generate-product-variants.component.mjs +12 -4
  57. package/esm2020/catalog/components/option-value-input/option-value-input.component.mjs +65 -11
  58. package/esm2020/catalog/components/product-detail/product-detail.component.mjs +2 -2
  59. package/esm2020/catalog/components/product-list/product-list.component.mjs +7 -8
  60. package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +110 -10
  61. package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
  62. package/esm2020/catalog/public_api.mjs +1 -2
  63. package/esm2020/core/app.component.module.mjs +1 -1
  64. package/esm2020/core/common/base-detail.component.mjs +1 -1
  65. package/esm2020/core/common/deactivate-aware.mjs +1 -1
  66. package/esm2020/core/common/generated-types.mjs +30 -1
  67. package/esm2020/core/common/introspection-result.mjs +9 -1
  68. package/esm2020/core/common/utilities/configurable-operation-utils.mjs +32 -10
  69. package/esm2020/core/common/utilities/selection-manager.mjs +64 -0
  70. package/esm2020/core/common/version.mjs +2 -2
  71. package/esm2020/core/components/app-shell/app-shell.component.mjs +6 -5
  72. package/esm2020/core/components/main-nav/main-nav.component.mjs +3 -3
  73. package/esm2020/core/core.module.mjs +1 -1
  74. package/esm2020/core/data/definitions/collection-definitions.mjs +18 -1
  75. package/esm2020/core/data/definitions/order-definitions.mjs +445 -429
  76. package/esm2020/core/data/definitions/product-definitions.mjs +743 -735
  77. package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
  78. package/esm2020/core/data/providers/collection-data.service.mjs +5 -2
  79. package/esm2020/core/data/providers/order-data.service.mjs +7 -2
  80. package/esm2020/core/data/providers/product-data.service.mjs +5 -2
  81. package/esm2020/core/data/providers/promotion-data.service.mjs +3 -2
  82. package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
  83. package/esm2020/core/public_api.mjs +7 -1
  84. package/esm2020/core/shared/components/address-form/address-form.component.mjs +3 -3
  85. package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +33 -50
  86. package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
  87. package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +22 -10
  88. package/esm2020/core/shared/components/custom-field-control/custom-field-control.component.mjs +10 -4
  89. package/esm2020/core/shared/components/data-table/data-table.component.mjs +10 -3
  90. package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +7 -3
  91. package/esm2020/core/shared/components/formatted-address/formatted-address.component.mjs +3 -3
  92. package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
  93. package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +4 -4
  94. package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
  95. package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
  96. package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +2 -2
  97. package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
  98. package/esm2020/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +45 -0
  99. package/esm2020/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +12 -3
  100. package/esm2020/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +48 -0
  101. package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +5 -1
  102. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +11 -9
  103. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +54 -0
  104. package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +5 -4
  105. package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +21 -11
  106. package/esm2020/core/shared/pipes/custom-field-label.pipe.mjs +7 -19
  107. package/esm2020/core/shared/shared.module.mjs +25 -5
  108. package/esm2020/customer/components/customer-group-list/customer-group-list.component.mjs +29 -15
  109. package/esm2020/dashboard/components/dashboard/dashboard.component.mjs +2 -2
  110. package/esm2020/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +2 -2
  111. package/esm2020/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +2 -2
  112. package/esm2020/login/components/login/login.component.mjs +3 -3
  113. package/esm2020/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
  114. package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +8 -4
  115. package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +7 -3
  116. package/esm2020/order/components/fulfillment-detail/fulfillment-detail.component.mjs +8 -17
  117. package/esm2020/order/components/line-fulfillment/line-fulfillment.component.mjs +7 -21
  118. package/esm2020/order/components/order-custom-fields-card/order-custom-fields-card.component.mjs +30 -6
  119. package/esm2020/order/components/order-detail/order-detail.component.mjs +78 -38
  120. package/esm2020/order/components/order-editor/order-editor.component.mjs +26 -10
  121. package/esm2020/order/components/order-list/order-list.component.mjs +23 -16
  122. package/esm2020/order/components/order-payment-card/order-payment-card.component.mjs +2 -2
  123. package/esm2020/order/components/order-table/order-table.component.mjs +11 -3
  124. package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +8 -4
  125. package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
  126. package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
  127. package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +1 -1
  128. package/fesm2015/vendure-admin-ui-catalog.mjs +396 -187
  129. package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
  130. package/fesm2015/vendure-admin-ui-core.mjs +3782 -3229
  131. package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
  132. package/fesm2015/vendure-admin-ui-customer.mjs +29 -17
  133. package/fesm2015/vendure-admin-ui-customer.mjs.map +1 -1
  134. package/fesm2015/vendure-admin-ui-dashboard.mjs +5 -5
  135. package/fesm2015/vendure-admin-ui-dashboard.mjs.map +1 -1
  136. package/fesm2015/vendure-admin-ui-login.mjs +2 -2
  137. package/fesm2015/vendure-admin-ui-login.mjs.map +1 -1
  138. package/fesm2015/vendure-admin-ui-marketing.mjs +2 -2
  139. package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
  140. package/fesm2015/vendure-admin-ui-order.mjs +193 -111
  141. package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
  142. package/fesm2015/vendure-admin-ui-settings.mjs +3 -3
  143. package/fesm2020/vendure-admin-ui-catalog.mjs +387 -189
  144. package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
  145. package/fesm2020/vendure-admin-ui-core.mjs +3771 -3221
  146. package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
  147. package/fesm2020/vendure-admin-ui-customer.mjs +29 -17
  148. package/fesm2020/vendure-admin-ui-customer.mjs.map +1 -1
  149. package/fesm2020/vendure-admin-ui-dashboard.mjs +5 -5
  150. package/fesm2020/vendure-admin-ui-dashboard.mjs.map +1 -1
  151. package/fesm2020/vendure-admin-ui-login.mjs +2 -2
  152. package/fesm2020/vendure-admin-ui-login.mjs.map +1 -1
  153. package/fesm2020/vendure-admin-ui-marketing.mjs +2 -2
  154. package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
  155. package/fesm2020/vendure-admin-ui-order.mjs +189 -109
  156. package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
  157. package/fesm2020/vendure-admin-ui-settings.mjs +3 -3
  158. package/order/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +4 -2
  159. package/order/components/order-editor/order-editor.component.d.ts +8 -2
  160. package/order/components/order-list/order-list.component.d.ts +1 -0
  161. package/order/components/order-table/order-table.component.d.ts +1 -0
  162. package/package.json +2 -2
  163. package/static/i18n-messages/cs.json +19 -3
  164. package/static/i18n-messages/de.json +22 -3
  165. package/static/i18n-messages/en.json +20 -3
  166. package/static/i18n-messages/es.json +19 -3
  167. package/static/i18n-messages/fr.json +19 -3
  168. package/static/i18n-messages/it.json +19 -3
  169. package/static/i18n-messages/pl.json +19 -3
  170. package/static/i18n-messages/pt_BR.json +19 -3
  171. package/static/i18n-messages/pt_PT.json +19 -3
  172. package/static/i18n-messages/ru.json +19 -3
  173. package/static/i18n-messages/uk.json +19 -3
  174. package/static/i18n-messages/zh_Hans.json +19 -3
  175. package/static/i18n-messages/zh_Hant.json +19 -3
  176. package/static/styles/_variables.scss +3 -0
  177. package/static/styles/global/_forms.scss +4 -5
  178. package/static/styles/global/_overrides.scss +10 -0
  179. package/static/styles/global/_sass-overrides.scss +3 -0
  180. package/static/styles/global/_utilities.scss +10 -0
  181. package/static/styles/styles.scss +1 -0
  182. package/static/styles/theme/default.scss +13 -1
  183. package/static/styles/ui-extension-theme.scss +1 -0
  184. package/static/theme.min.css +1 -1
  185. package/static/vendure-ui-config.json +25 -10
  186. 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,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
  }
@@ -1,6 +1,5 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { CurrencyCode } from '@vendure/admin-ui/core';
3
- import { DataService } from '@vendure/admin-ui/core';
1
+ import { ElementRef, EventEmitter, OnInit, QueryList } from '@angular/core';
2
+ import { CurrencyCode, DataService } from '@vendure/admin-ui/core';
4
3
  import { OptionValueInputComponent } from '../option-value-input/option-value-input.component';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare type CreateVariantValues = {
@@ -20,6 +19,7 @@ export declare type CreateProductVariantsConfig = {
20
19
  export declare class GenerateProductVariantsComponent implements OnInit {
21
20
  private dataService;
22
21
  variantsChange: EventEmitter<CreateProductVariantsConfig>;
22
+ groupNameInputs: QueryList<ElementRef>;
23
23
  optionGroups: Array<{
24
24
  name: string;
25
25
  values: Array<{
@@ -1,36 +1,48 @@
1
- import { ChangeDetectorRef, ElementRef, Provider } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, Provider, QueryList } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare const OPTION_VALUE_INPUT_VALUE_ACCESSOR: Provider;
5
+ interface Option {
6
+ id?: string;
7
+ name: string;
8
+ locked: boolean;
9
+ }
5
10
  export declare class OptionValueInputComponent implements ControlValueAccessor {
6
11
  private changeDetector;
7
12
  groupName: string;
8
13
  textArea: ElementRef<HTMLTextAreaElement>;
9
- options: Array<{
10
- name: string;
11
- locked: boolean;
14
+ nameInputs: QueryList<ElementRef>;
15
+ options: Option[];
16
+ add: EventEmitter<Option>;
17
+ remove: EventEmitter<Option>;
18
+ edit: EventEmitter<{
19
+ index: number;
20
+ option: Option;
12
21
  }>;
13
22
  disabled: boolean;
14
23
  input: string;
15
24
  isFocussed: boolean;
16
25
  lastSelected: boolean;
26
+ formValue: Option[];
27
+ editingIndex: number;
17
28
  onChangeFn: (value: any) => void;
18
29
  onTouchFn: (value: any) => void;
30
+ get optionValues(): Option[];
19
31
  constructor(changeDetector: ChangeDetectorRef);
20
32
  registerOnChange(fn: any): void;
21
33
  registerOnTouched(fn: any): void;
22
34
  setDisabledState(isDisabled: boolean): void;
23
35
  writeValue(obj: any): void;
24
36
  focus(): void;
25
- removeOption(option: {
26
- name: string;
27
- locked: boolean;
28
- }): void;
37
+ editName(index: number, event: MouseEvent): void;
38
+ updateOption(index: number, event: InputEvent): void;
39
+ removeOption(option: Option): void;
29
40
  handleKey(event: KeyboardEvent): void;
30
41
  handleBlur(): void;
31
42
  private addOptionValue;
32
43
  private parseInputIntoOptions;
33
44
  private removeLastOption;
34
45
  static ɵfac: i0.ɵɵFactoryDeclaration<OptionValueInputComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<OptionValueInputComponent, "vdr-option-value-input", never, { "groupName": "groupName"; }, {}, never, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionValueInputComponent, "vdr-option-value-input", never, { "groupName": "groupName"; "options": "options"; "disabled": "disabled"; }, { "add": "add"; "remove": "remove"; "edit": "edit"; }, never, never>;
36
47
  }
48
+ export {};
@@ -17,6 +17,17 @@ 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
+ locked: boolean;
25
+ values: Array<{
26
+ id?: string;
27
+ name: string;
28
+ locked: boolean;
29
+ }>;
30
+ }
20
31
  export declare class ProductVariantsEditorComponent implements OnInit, DeactivateAware {
21
32
  private route;
22
33
  private dataService;
@@ -24,17 +35,9 @@ export declare class ProductVariantsEditorComponent implements OnInit, Deactivat
24
35
  private notificationService;
25
36
  private modalService;
26
37
  formValueChanged: boolean;
38
+ optionsChanged: boolean;
27
39
  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
- }>;
40
+ optionGroups: OptionGroupUiModel[];
38
41
  product: NonNullable<GetProductVariantOptionsQuery['product']>;
39
42
  currencyCode: CurrencyCode;
40
43
  private languageCode;
@@ -44,14 +47,20 @@ export declare class ProductVariantsEditorComponent implements OnInit, Deactivat
44
47
  canDeactivate(): boolean;
45
48
  getVariantsToAdd(): GeneratedVariant[];
46
49
  getVariantName(variant: GeneratedVariant): string;
47
- addOption(): void;
50
+ addOptionGroup(): void;
51
+ removeOptionGroup(optionGroup: OptionGroupUiModel): void;
52
+ addOption(groupId: string, optionName: string): void;
53
+ removeOption(groupId: string, { id, name }: {
54
+ id?: string;
55
+ name: string;
56
+ }): void;
48
57
  generateVariants(): void;
49
58
  /**
50
59
  * Returns one of the existing variants to base the newly-generated variant's
51
60
  * details off.
52
61
  */
53
62
  private getVariantPrototype;
54
- deleteVariant(id: string): void;
63
+ deleteVariant(id: string, options: GeneratedVariant['options']): void;
55
64
  save(): void;
56
65
  private checkUniqueSkus;
57
66
  private confirmDeletionOfObsoleteVariants;
@@ -70,3 +79,4 @@ export declare class ProductVariantsEditorComponent implements OnInit, Deactivat
70
79
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantsEditorComponent, never>;
71
80
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantsEditorComponent, "vdr-product-variants-editor", never, {}, {}, never, never>;
72
81
  }
82
+ 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';