@vendure/admin-ui 2.0.0-next.1 → 2.0.0-next.10
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.
- package/catalog/catalog.module.d.ts +10 -11
- package/catalog/components/collection-contents/collection-contents.component.d.ts +10 -2
- package/catalog/components/collection-detail/collection-detail.component.d.ts +13 -4
- package/catalog/components/collection-list/collection-list.component.d.ts +2 -0
- package/catalog/components/collection-tree/array-to-tree.d.ts +1 -1
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +6 -2
- package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
- package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +13 -10
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -0
- package/catalog/public_api.d.ts +0 -1
- package/core/common/generated-types.d.ts +127 -2
- package/core/common/utilities/selection-manager.d.ts +23 -0
- package/core/common/version.d.ts +1 -1
- package/core/components/app-shell/app-shell.component.d.ts +1 -0
- package/core/data/definitions/collection-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +4 -0
- package/core/data/providers/promotion-data.service.d.ts +1 -1
- package/core/providers/local-storage/local-storage.service.d.ts +1 -0
- package/core/public_api.d.ts +6 -0
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +27 -3
- package/core/shared/components/configurable-input/configurable-input.component.d.ts +8 -3
- package/core/shared/components/data-table/data-table.component.d.ts +5 -2
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +3 -2
- package/core/shared/components/object-tree/object-tree.component.d.ts +3 -3
- package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +38 -0
- package/{catalog → core/shared}/components/product-search-input/product-search-input.component.d.ts +1 -1
- package/core/shared/components/select-toggle/select-toggle.component.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +28 -0
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
- package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +23 -0
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +3 -1
- package/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +6 -3
- package/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +18 -0
- package/core/shared/shared.module.d.ts +32 -27
- package/esm2020/catalog/catalog.module.mjs +1 -5
- package/esm2020/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +1 -1
- package/esm2020/catalog/components/assets/assets.component.mjs +2 -2
- package/esm2020/catalog/components/collection-contents/collection-contents.component.mjs +61 -13
- package/esm2020/catalog/components/collection-detail/collection-detail.component.mjs +70 -32
- package/esm2020/catalog/components/collection-list/collection-list.component.mjs +30 -5
- package/esm2020/catalog/components/collection-tree/array-to-tree.mjs +3 -3
- package/esm2020/catalog/components/collection-tree/collection-tree-node.component.mjs +29 -10
- package/esm2020/catalog/components/collection-tree/collection-tree.component.mjs +6 -3
- package/esm2020/catalog/components/facet-detail/facet-detail.component.mjs +2 -2
- package/esm2020/catalog/components/product-detail/product-detail.component.mjs +2 -2
- package/esm2020/catalog/components/product-list/product-list.component.mjs +7 -8
- package/esm2020/catalog/components/product-variants-editor/product-variants-editor.component.mjs +8 -3
- package/esm2020/catalog/components/product-variants-list/product-variants-list.component.mjs +9 -3
- package/esm2020/catalog/public_api.mjs +1 -2
- package/esm2020/core/app.component.module.mjs +1 -1
- package/esm2020/core/common/base-detail.component.mjs +1 -1
- package/esm2020/core/common/deactivate-aware.mjs +1 -1
- package/esm2020/core/common/generated-types.mjs +29 -1
- package/esm2020/core/common/introspection-result.mjs +255 -183
- package/esm2020/core/common/utilities/configurable-operation-utils.mjs +22 -3
- package/esm2020/core/common/utilities/selection-manager.mjs +64 -0
- package/esm2020/core/common/version.mjs +2 -2
- package/esm2020/core/components/app-shell/app-shell.component.mjs +6 -5
- package/esm2020/core/components/main-nav/main-nav.component.mjs +3 -3
- package/esm2020/core/core.module.mjs +1 -1
- package/esm2020/core/data/definitions/collection-definitions.mjs +18 -1
- package/esm2020/core/data/definitions/order-definitions.mjs +431 -429
- package/esm2020/core/data/definitions/shared-definitions.mjs +29 -28
- package/esm2020/core/data/providers/collection-data.service.mjs +5 -2
- package/esm2020/core/data/providers/promotion-data.service.mjs +3 -2
- package/esm2020/core/providers/local-storage/local-storage.service.mjs +1 -1
- package/esm2020/core/public_api.mjs +7 -1
- package/esm2020/core/shared/components/address-form/address-form.component.mjs +3 -3
- package/esm2020/core/shared/components/asset-gallery/asset-gallery.component.mjs +33 -50
- package/esm2020/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
- package/esm2020/core/shared/components/configurable-input/configurable-input.component.mjs +22 -10
- package/esm2020/core/shared/components/data-table/data-table.component.mjs +10 -3
- package/esm2020/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +7 -3
- package/esm2020/core/shared/components/formatted-address/formatted-address.component.mjs +3 -3
- package/esm2020/core/shared/components/help-tooltip/help-tooltip.component.mjs +2 -2
- package/esm2020/core/shared/components/object-tree/object-tree.component.mjs +4 -4
- package/esm2020/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +135 -0
- package/esm2020/core/shared/components/product-search-input/product-search-input.component.mjs +108 -0
- package/esm2020/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +2 -2
- package/esm2020/core/shared/components/select-toggle/select-toggle.component.mjs +6 -3
- package/esm2020/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +45 -0
- package/esm2020/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +12 -3
- package/esm2020/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +48 -0
- package/esm2020/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +5 -1
- package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +11 -9
- package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +54 -0
- package/esm2020/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +5 -4
- package/esm2020/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +1 -1
- package/esm2020/core/shared/shared.module.mjs +25 -5
- package/esm2020/dashboard/components/dashboard/dashboard.component.mjs +2 -2
- package/esm2020/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +2 -2
- package/esm2020/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +2 -2
- package/esm2020/login/components/login/login.component.mjs +3 -3
- package/esm2020/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
- package/esm2020/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +8 -4
- package/esm2020/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +1 -1
- package/esm2020/order/components/order-editor/order-editor.component.mjs +26 -10
- package/esm2020/order/components/order-list/order-list.component.mjs +3 -3
- package/esm2020/order/components/order-table/order-table.component.mjs +2 -2
- package/esm2020/order/components/refund-order-dialog/refund-order-dialog.component.mjs +8 -4
- package/esm2020/settings/components/payment-method-detail/payment-method-detail.component.mjs +1 -1
- package/esm2020/settings/components/permission-grid/permission-grid.component.mjs +1 -1
- package/esm2020/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +1 -1
- package/fesm2015/vendure-admin-ui-catalog.mjs +215 -170
- package/fesm2015/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-core.mjs +2593 -2013
- package/fesm2015/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.mjs +5 -5
- package/fesm2015/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-login.mjs +2 -2
- package/fesm2015/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-marketing.mjs +2 -2
- package/fesm2015/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-order.mjs +41 -19
- package/fesm2015/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.mjs +3 -3
- package/fesm2020/vendure-admin-ui-catalog.mjs +213 -172
- package/fesm2020/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-core.mjs +2592 -2015
- package/fesm2020/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-dashboard.mjs +5 -5
- package/fesm2020/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-login.mjs +2 -2
- package/fesm2020/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-marketing.mjs +2 -2
- package/fesm2020/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-order.mjs +39 -18
- package/fesm2020/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2020/vendure-admin-ui-settings.mjs +3 -3
- package/order/components/order-editor/order-editor.component.d.ts +8 -2
- package/package.json +2 -2
- package/static/i18n-messages/cs.json +13 -0
- package/static/i18n-messages/de.json +16 -0
- package/static/i18n-messages/en.json +13 -0
- package/static/i18n-messages/es.json +13 -0
- package/static/i18n-messages/fr.json +13 -0
- package/static/i18n-messages/it.json +13 -0
- package/static/i18n-messages/pl.json +13 -0
- package/static/i18n-messages/pt_BR.json +13 -0
- package/static/i18n-messages/pt_PT.json +13 -0
- package/static/i18n-messages/ru.json +13 -0
- package/static/i18n-messages/uk.json +13 -0
- package/static/i18n-messages/zh_Hans.json +13 -0
- package/static/i18n-messages/zh_Hant.json +13 -0
- package/static/styles/global/_forms.scss +4 -5
- package/static/styles/global/_overrides.scss +10 -0
- package/static/styles/global/_utilities.scss +9 -0
- package/static/styles/theme/default.scss +13 -1
- package/static/theme.min.css +1 -1
- package/static/vendure-ui-config.json +25 -10
- 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/
|
|
19
|
-
import * as i18 from "./components/option-
|
|
20
|
-
import * as i19 from "./components/
|
|
21
|
-
import * as i20 from "./components/
|
|
22
|
-
import * as i21 from "./components/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "@
|
|
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.
|
|
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(
|
|
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(
|
|
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
|
|
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:
|
|
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;
|
package/catalog/public_api.d.ts
CHANGED
|
@@ -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';
|
|
@@ -503,6 +503,28 @@ export declare type CountryTranslationInput = {
|
|
|
503
503
|
languageCode: LanguageCode;
|
|
504
504
|
name?: InputMaybe<Scalars['String']>;
|
|
505
505
|
};
|
|
506
|
+
/** Returned if the provided coupon code is invalid */
|
|
507
|
+
export declare type CouponCodeExpiredError = ErrorResult & {
|
|
508
|
+
__typename?: 'CouponCodeExpiredError';
|
|
509
|
+
couponCode: Scalars['String'];
|
|
510
|
+
errorCode: ErrorCode;
|
|
511
|
+
message: Scalars['String'];
|
|
512
|
+
};
|
|
513
|
+
/** Returned if the provided coupon code is invalid */
|
|
514
|
+
export declare type CouponCodeInvalidError = ErrorResult & {
|
|
515
|
+
__typename?: 'CouponCodeInvalidError';
|
|
516
|
+
couponCode: Scalars['String'];
|
|
517
|
+
errorCode: ErrorCode;
|
|
518
|
+
message: Scalars['String'];
|
|
519
|
+
};
|
|
520
|
+
/** Returned if the provided coupon code is invalid */
|
|
521
|
+
export declare type CouponCodeLimitError = ErrorResult & {
|
|
522
|
+
__typename?: 'CouponCodeLimitError';
|
|
523
|
+
couponCode: Scalars['String'];
|
|
524
|
+
errorCode: ErrorCode;
|
|
525
|
+
limit: Scalars['Int'];
|
|
526
|
+
message: Scalars['String'];
|
|
527
|
+
};
|
|
506
528
|
export declare type CreateAddressInput = {
|
|
507
529
|
city?: InputMaybe<Scalars['String']>;
|
|
508
530
|
company?: InputMaybe<Scalars['String']>;
|
|
@@ -1267,6 +1289,9 @@ export declare enum ErrorCode {
|
|
|
1267
1289
|
ALREADY_REFUNDED_ERROR = "ALREADY_REFUNDED_ERROR",
|
|
1268
1290
|
CANCEL_ACTIVE_ORDER_ERROR = "CANCEL_ACTIVE_ORDER_ERROR",
|
|
1269
1291
|
CHANNEL_DEFAULT_LANGUAGE_ERROR = "CHANNEL_DEFAULT_LANGUAGE_ERROR",
|
|
1292
|
+
COUPON_CODE_EXPIRED_ERROR = "COUPON_CODE_EXPIRED_ERROR",
|
|
1293
|
+
COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
|
|
1294
|
+
COUPON_CODE_LIMIT_ERROR = "COUPON_CODE_LIMIT_ERROR",
|
|
1270
1295
|
CREATE_FULFILLMENT_ERROR = "CREATE_FULFILLMENT_ERROR",
|
|
1271
1296
|
EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
|
|
1272
1297
|
EMPTY_ORDER_LINE_SELECTION_ERROR = "EMPTY_ORDER_LINE_SELECTION_ERROR",
|
|
@@ -2070,6 +2095,7 @@ export declare type MissingConditionsError = ErrorResult & {
|
|
|
2070
2095
|
export declare type ModifyOrderInput = {
|
|
2071
2096
|
addItems?: InputMaybe<Array<AddItemInput>>;
|
|
2072
2097
|
adjustOrderLines?: InputMaybe<Array<AdjustOrderLineInput>>;
|
|
2098
|
+
couponCodes?: InputMaybe<Array<Scalars['String']>>;
|
|
2073
2099
|
dryRun: Scalars['Boolean'];
|
|
2074
2100
|
note?: InputMaybe<Scalars['String']>;
|
|
2075
2101
|
options?: InputMaybe<ModifyOrderOptions>;
|
|
@@ -2083,7 +2109,7 @@ export declare type ModifyOrderOptions = {
|
|
|
2083
2109
|
freezePromotions?: InputMaybe<Scalars['Boolean']>;
|
|
2084
2110
|
recalculateShipping?: InputMaybe<Scalars['Boolean']>;
|
|
2085
2111
|
};
|
|
2086
|
-
export declare type ModifyOrderResult = InsufficientStockError | NegativeQuantityError | NoChangesSpecifiedError | Order | OrderLimitError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError;
|
|
2112
|
+
export declare type ModifyOrderResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | InsufficientStockError | NegativeQuantityError | NoChangesSpecifiedError | Order | OrderLimitError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError;
|
|
2087
2113
|
export declare type MoveCollectionInput = {
|
|
2088
2114
|
collectionId: Scalars['ID'];
|
|
2089
2115
|
index: Scalars['Int'];
|
|
@@ -3107,6 +3133,31 @@ export declare type PaymentStateTransitionError = ErrorResult & {
|
|
|
3107
3133
|
* Permissions for administrators and customers. Used to control access to
|
|
3108
3134
|
* GraphQL resolvers via the {@link Allow} decorator.
|
|
3109
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
|
+
*
|
|
3110
3161
|
* @docsCategory common
|
|
3111
3162
|
*/
|
|
3112
3163
|
export declare enum Permission {
|
|
@@ -3288,6 +3339,11 @@ export declare type PermissionDefinition = {
|
|
|
3288
3339
|
description: Scalars['String'];
|
|
3289
3340
|
name: Scalars['String'];
|
|
3290
3341
|
};
|
|
3342
|
+
export declare type PreviewCollectionVariantsInput = {
|
|
3343
|
+
filters: Array<ConfigurableOperationInput>;
|
|
3344
|
+
inheritFilters: Scalars['Boolean'];
|
|
3345
|
+
parentId?: InputMaybe<Scalars['ID']>;
|
|
3346
|
+
};
|
|
3291
3347
|
/** The price range where the result has more than one price */
|
|
3292
3348
|
export declare type PriceRange = {
|
|
3293
3349
|
__typename?: 'PriceRange';
|
|
@@ -3630,6 +3686,8 @@ export declare type Query = {
|
|
|
3630
3686
|
paymentMethodHandlers: Array<ConfigurableOperationDefinition>;
|
|
3631
3687
|
paymentMethods: PaymentMethodList;
|
|
3632
3688
|
pendingSearchIndexUpdates: Scalars['Int'];
|
|
3689
|
+
/** Used for real-time previews of the contents of a Collection */
|
|
3690
|
+
previewCollectionVariants: ProductVariantList;
|
|
3633
3691
|
/** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */
|
|
3634
3692
|
product?: Maybe<Product>;
|
|
3635
3693
|
productOptionGroup?: Maybe<ProductOptionGroup>;
|
|
@@ -3734,6 +3792,10 @@ export declare type QueryPaymentMethodArgs = {
|
|
|
3734
3792
|
export declare type QueryPaymentMethodsArgs = {
|
|
3735
3793
|
options?: InputMaybe<PaymentMethodListOptions>;
|
|
3736
3794
|
};
|
|
3795
|
+
export declare type QueryPreviewCollectionVariantsArgs = {
|
|
3796
|
+
input: PreviewCollectionVariantsInput;
|
|
3797
|
+
options?: InputMaybe<ProductVariantListOptions>;
|
|
3798
|
+
};
|
|
3737
3799
|
export declare type QueryProductArgs = {
|
|
3738
3800
|
id?: InputMaybe<Scalars['ID']>;
|
|
3739
3801
|
slug?: InputMaybe<Scalars['String']>;
|
|
@@ -5325,6 +5387,7 @@ export declare type GetCollectionFiltersQuery = {
|
|
|
5325
5387
|
list: boolean;
|
|
5326
5388
|
ui?: any | null;
|
|
5327
5389
|
label?: string | null;
|
|
5390
|
+
description?: string | null;
|
|
5328
5391
|
}>;
|
|
5329
5392
|
}>;
|
|
5330
5393
|
};
|
|
@@ -5800,10 +5863,28 @@ export declare type GetCollectionContentsQuery = {
|
|
|
5800
5863
|
id: string;
|
|
5801
5864
|
productId: string;
|
|
5802
5865
|
name: string;
|
|
5866
|
+
sku: string;
|
|
5803
5867
|
}>;
|
|
5804
5868
|
};
|
|
5805
5869
|
} | null;
|
|
5806
5870
|
};
|
|
5871
|
+
export declare type PreviewCollectionContentsQueryVariables = Exact<{
|
|
5872
|
+
input: PreviewCollectionVariantsInput;
|
|
5873
|
+
options?: InputMaybe<ProductVariantListOptions>;
|
|
5874
|
+
}>;
|
|
5875
|
+
export declare type PreviewCollectionContentsQuery = {
|
|
5876
|
+
previewCollectionVariants: {
|
|
5877
|
+
__typename?: 'ProductVariantList';
|
|
5878
|
+
totalItems: number;
|
|
5879
|
+
items: Array<{
|
|
5880
|
+
__typename?: 'ProductVariant';
|
|
5881
|
+
id: string;
|
|
5882
|
+
productId: string;
|
|
5883
|
+
name: string;
|
|
5884
|
+
sku: string;
|
|
5885
|
+
}>;
|
|
5886
|
+
};
|
|
5887
|
+
};
|
|
5807
5888
|
export declare type AddressFragment = {
|
|
5808
5889
|
__typename?: 'Address';
|
|
5809
5890
|
id: string;
|
|
@@ -6647,6 +6728,7 @@ export declare type OrderFragment = {
|
|
|
6647
6728
|
state: string;
|
|
6648
6729
|
nextStates: Array<string>;
|
|
6649
6730
|
total: number;
|
|
6731
|
+
totalWithTax: number;
|
|
6650
6732
|
currencyCode: CurrencyCode;
|
|
6651
6733
|
customer?: {
|
|
6652
6734
|
__typename?: 'Customer';
|
|
@@ -6742,6 +6824,7 @@ export declare type OrderDetailFragment = {
|
|
|
6742
6824
|
state: string;
|
|
6743
6825
|
nextStates: Array<string>;
|
|
6744
6826
|
active: boolean;
|
|
6827
|
+
couponCodes: Array<string>;
|
|
6745
6828
|
subTotal: number;
|
|
6746
6829
|
subTotalWithTax: number;
|
|
6747
6830
|
total: number;
|
|
@@ -6967,6 +7050,7 @@ export declare type GetOrderListQuery = {
|
|
|
6967
7050
|
state: string;
|
|
6968
7051
|
nextStates: Array<string>;
|
|
6969
7052
|
total: number;
|
|
7053
|
+
totalWithTax: number;
|
|
6970
7054
|
currencyCode: CurrencyCode;
|
|
6971
7055
|
customer?: {
|
|
6972
7056
|
__typename?: 'Customer';
|
|
@@ -6997,6 +7081,7 @@ export declare type GetOrderQuery = {
|
|
|
6997
7081
|
state: string;
|
|
6998
7082
|
nextStates: Array<string>;
|
|
6999
7083
|
active: boolean;
|
|
7084
|
+
couponCodes: Array<string>;
|
|
7000
7085
|
subTotal: number;
|
|
7001
7086
|
subTotalWithTax: number;
|
|
7002
7087
|
total: number;
|
|
@@ -7325,6 +7410,7 @@ export declare type CancelOrderMutation = {
|
|
|
7325
7410
|
state: string;
|
|
7326
7411
|
nextStates: Array<string>;
|
|
7327
7412
|
active: boolean;
|
|
7413
|
+
couponCodes: Array<string>;
|
|
7328
7414
|
subTotal: number;
|
|
7329
7415
|
subTotalWithTax: number;
|
|
7330
7416
|
total: number;
|
|
@@ -7681,6 +7767,7 @@ export declare type TransitionOrderToStateMutation = {
|
|
|
7681
7767
|
state: string;
|
|
7682
7768
|
nextStates: Array<string>;
|
|
7683
7769
|
total: number;
|
|
7770
|
+
totalWithTax: number;
|
|
7684
7771
|
currencyCode: CurrencyCode;
|
|
7685
7772
|
customer?: {
|
|
7686
7773
|
__typename?: 'Customer';
|
|
@@ -7716,6 +7803,7 @@ export declare type UpdateOrderCustomFieldsMutation = {
|
|
|
7716
7803
|
state: string;
|
|
7717
7804
|
nextStates: Array<string>;
|
|
7718
7805
|
total: number;
|
|
7806
|
+
totalWithTax: number;
|
|
7719
7807
|
currencyCode: CurrencyCode;
|
|
7720
7808
|
customer?: {
|
|
7721
7809
|
__typename?: 'Customer';
|
|
@@ -7778,6 +7866,18 @@ export declare type ModifyOrderMutationVariables = Exact<{
|
|
|
7778
7866
|
}>;
|
|
7779
7867
|
export declare type ModifyOrderMutation = {
|
|
7780
7868
|
modifyOrder: {
|
|
7869
|
+
__typename?: 'CouponCodeExpiredError';
|
|
7870
|
+
errorCode: ErrorCode;
|
|
7871
|
+
message: string;
|
|
7872
|
+
} | {
|
|
7873
|
+
__typename?: 'CouponCodeInvalidError';
|
|
7874
|
+
errorCode: ErrorCode;
|
|
7875
|
+
message: string;
|
|
7876
|
+
} | {
|
|
7877
|
+
__typename?: 'CouponCodeLimitError';
|
|
7878
|
+
errorCode: ErrorCode;
|
|
7879
|
+
message: string;
|
|
7880
|
+
} | {
|
|
7781
7881
|
__typename?: 'InsufficientStockError';
|
|
7782
7882
|
errorCode: ErrorCode;
|
|
7783
7883
|
message: string;
|
|
@@ -7798,6 +7898,7 @@ export declare type ModifyOrderMutation = {
|
|
|
7798
7898
|
state: string;
|
|
7799
7899
|
nextStates: Array<string>;
|
|
7800
7900
|
active: boolean;
|
|
7901
|
+
couponCodes: Array<string>;
|
|
7801
7902
|
subTotal: number;
|
|
7802
7903
|
subTotalWithTax: number;
|
|
7803
7904
|
total: number;
|
|
@@ -8040,6 +8141,7 @@ export declare type AddManualPaymentMutation = {
|
|
|
8040
8141
|
state: string;
|
|
8041
8142
|
nextStates: Array<string>;
|
|
8042
8143
|
active: boolean;
|
|
8144
|
+
couponCodes: Array<string>;
|
|
8043
8145
|
subTotal: number;
|
|
8044
8146
|
subTotalWithTax: number;
|
|
8045
8147
|
total: number;
|
|
@@ -10331,6 +10433,7 @@ export declare type GetAdjustmentOperationsQuery = {
|
|
|
10331
10433
|
list: boolean;
|
|
10332
10434
|
ui?: any | null;
|
|
10333
10435
|
label?: string | null;
|
|
10436
|
+
description?: string | null;
|
|
10334
10437
|
}>;
|
|
10335
10438
|
}>;
|
|
10336
10439
|
promotionActions: Array<{
|
|
@@ -10346,6 +10449,7 @@ export declare type GetAdjustmentOperationsQuery = {
|
|
|
10346
10449
|
list: boolean;
|
|
10347
10450
|
ui?: any | null;
|
|
10348
10451
|
label?: string | null;
|
|
10452
|
+
description?: string | null;
|
|
10349
10453
|
}>;
|
|
10350
10454
|
}>;
|
|
10351
10455
|
};
|
|
@@ -11250,6 +11354,7 @@ export declare type GetPaymentMethodOperationsQuery = {
|
|
|
11250
11354
|
list: boolean;
|
|
11251
11355
|
ui?: any | null;
|
|
11252
11356
|
label?: string | null;
|
|
11357
|
+
description?: string | null;
|
|
11253
11358
|
}>;
|
|
11254
11359
|
}>;
|
|
11255
11360
|
paymentMethodHandlers: Array<{
|
|
@@ -11265,6 +11370,7 @@ export declare type GetPaymentMethodOperationsQuery = {
|
|
|
11265
11370
|
list: boolean;
|
|
11266
11371
|
ui?: any | null;
|
|
11267
11372
|
label?: string | null;
|
|
11373
|
+
description?: string | null;
|
|
11268
11374
|
}>;
|
|
11269
11375
|
}>;
|
|
11270
11376
|
};
|
|
@@ -16334,6 +16440,7 @@ export declare type ConfigurableOperationDefFragment = {
|
|
|
16334
16440
|
list: boolean;
|
|
16335
16441
|
ui?: any | null;
|
|
16336
16442
|
label?: string | null;
|
|
16443
|
+
description?: string | null;
|
|
16337
16444
|
}>;
|
|
16338
16445
|
};
|
|
16339
16446
|
declare type ErrorResult_AlreadyRefundedError_Fragment = {
|
|
@@ -16351,6 +16458,21 @@ declare type ErrorResult_ChannelDefaultLanguageError_Fragment = {
|
|
|
16351
16458
|
errorCode: ErrorCode;
|
|
16352
16459
|
message: string;
|
|
16353
16460
|
};
|
|
16461
|
+
declare type ErrorResult_CouponCodeExpiredError_Fragment = {
|
|
16462
|
+
__typename?: 'CouponCodeExpiredError';
|
|
16463
|
+
errorCode: ErrorCode;
|
|
16464
|
+
message: string;
|
|
16465
|
+
};
|
|
16466
|
+
declare type ErrorResult_CouponCodeInvalidError_Fragment = {
|
|
16467
|
+
__typename?: 'CouponCodeInvalidError';
|
|
16468
|
+
errorCode: ErrorCode;
|
|
16469
|
+
message: string;
|
|
16470
|
+
};
|
|
16471
|
+
declare type ErrorResult_CouponCodeLimitError_Fragment = {
|
|
16472
|
+
__typename?: 'CouponCodeLimitError';
|
|
16473
|
+
errorCode: ErrorCode;
|
|
16474
|
+
message: string;
|
|
16475
|
+
};
|
|
16354
16476
|
declare type ErrorResult_CreateFulfillmentError_Fragment = {
|
|
16355
16477
|
__typename?: 'CreateFulfillmentError';
|
|
16356
16478
|
errorCode: ErrorCode;
|
|
@@ -16501,7 +16623,7 @@ declare type ErrorResult_SettlePaymentError_Fragment = {
|
|
|
16501
16623
|
errorCode: ErrorCode;
|
|
16502
16624
|
message: string;
|
|
16503
16625
|
};
|
|
16504
|
-
export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
|
|
16626
|
+
export declare type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CouponCodeExpiredError_Fragment | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
|
|
16505
16627
|
export declare type ShippingMethodFragment = {
|
|
16506
16628
|
__typename?: 'ShippingMethod';
|
|
16507
16629
|
id: string;
|
|
@@ -16638,6 +16760,7 @@ export declare type GetShippingMethodOperationsQuery = {
|
|
|
16638
16760
|
list: boolean;
|
|
16639
16761
|
ui?: any | null;
|
|
16640
16762
|
label?: string | null;
|
|
16763
|
+
description?: string | null;
|
|
16641
16764
|
}>;
|
|
16642
16765
|
}>;
|
|
16643
16766
|
shippingCalculators: Array<{
|
|
@@ -16653,6 +16776,7 @@ export declare type GetShippingMethodOperationsQuery = {
|
|
|
16653
16776
|
list: boolean;
|
|
16654
16777
|
ui?: any | null;
|
|
16655
16778
|
label?: string | null;
|
|
16779
|
+
description?: string | null;
|
|
16656
16780
|
}>;
|
|
16657
16781
|
}>;
|
|
16658
16782
|
fulfillmentHandlers: Array<{
|
|
@@ -16668,6 +16792,7 @@ export declare type GetShippingMethodOperationsQuery = {
|
|
|
16668
16792
|
list: boolean;
|
|
16669
16793
|
ui?: any | null;
|
|
16670
16794
|
label?: string | null;
|
|
16795
|
+
description?: string | null;
|
|
16671
16796
|
}>;
|
|
16672
16797
|
}>;
|
|
16673
16798
|
};
|
|
@@ -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
|
+
}
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "2.0.0-next.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "2.0.0-next.10";
|
|
@@ -18,6 +18,7 @@ export declare class AppShellComponent implements OnInit {
|
|
|
18
18
|
userName$: Observable<string>;
|
|
19
19
|
uiLanguageAndLocale$: Observable<[LanguageCode, string | undefined]>;
|
|
20
20
|
availableLanguages: LanguageCode[];
|
|
21
|
+
hideVendureBranding: boolean | undefined;
|
|
21
22
|
constructor(authService: AuthService, dataService: DataService, router: Router, i18nService: I18nService, modalService: ModalService, localStorageService: LocalStorageService);
|
|
22
23
|
ngOnInit(): void;
|
|
23
24
|
selectUiLanguage(): void;
|
|
@@ -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>;
|