@vendure/admin-ui 1.8.4 → 1.9.0
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/bundles/vendure-admin-ui-catalog.umd.js +53 -101
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +115 -54
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +52 -2
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-login.umd.js +40 -8
- package/bundles/vendure-admin-ui-login.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +52 -3
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/catalog/components/apply-facet-dialog/apply-facet-dialog.component.d.ts +1 -2
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +0 -1
- package/catalog/components/product-detail/product-detail.component.d.ts +2 -7
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +11 -11
- package/catalog/providers/product-detail/product-detail.service.d.ts +1 -2
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +59 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/facet-definitions.d.ts +1 -0
- package/core/data/providers/facet-data.service.d.ts +5 -1
- package/core/providers/custom-history-entry-component/history-entry-component-types.d.ts +81 -0
- package/core/providers/custom-history-entry-component/history-entry-component.service.d.ts +16 -0
- package/core/public_api.d.ts +2 -1
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +17 -17
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +3 -11
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +1 -2
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-detail/customer-detail.component.d.ts +3 -3
- package/customer/components/customer-history/customer-history-entry-host.component.d.ts +16 -0
- package/customer/components/customer-history/customer-history.component.d.ts +19 -3
- package/customer/public_api.d.ts +1 -0
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/components/apply-facet-dialog/apply-facet-dialog.component.js +2 -2
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +2 -3
- package/esm2015/catalog/components/product-detail/product-detail.component.js +16 -47
- package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +4 -7
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +38 -30
- package/esm2015/catalog/providers/product-detail/product-detail.service.js +1 -4
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +2 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/definitions/facet-definitions.js +12 -1
- package/esm2015/core/data/providers/facet-data.service.js +5 -2
- package/esm2015/core/providers/custom-history-entry-component/history-entry-component-types.js +2 -0
- package/esm2015/core/providers/custom-history-entry-component/history-entry-component.service.js +39 -0
- package/esm2015/core/public_api.js +3 -2
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +52 -22
- package/esm2015/core/shared/components/form-field/form-field.component.js +2 -2
- package/esm2015/core/shared/components/timeline-entry/timeline-entry.component.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +3 -15
- package/esm2015/customer/components/customer-detail/customer-detail.component.js +1 -1
- package/esm2015/customer/components/customer-history/customer-history-entry-host.component.js +51 -0
- package/esm2015/customer/components/customer-history/customer-history.component.js +12 -4
- package/esm2015/customer/customer.module.js +3 -1
- package/esm2015/customer/public_api.js +2 -1
- package/esm2015/login/components/login/login.component.js +37 -5
- package/esm2015/order/components/order-detail/order-detail.component.js +1 -1
- package/esm2015/order/components/order-history/order-history-entry-host.component.js +51 -0
- package/esm2015/order/components/order-history/order-history.component.js +12 -5
- package/esm2015/order/order.module.js +6 -4
- package/esm2015/order/public_api.js +2 -1
- package/fesm2015/vendure-admin-ui-catalog.js +54 -85
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +106 -39
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +63 -5
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-login.js +36 -4
- package/fesm2015/vendure-admin-ui-login.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +63 -6
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/login/components/login/login.component.d.ts +11 -1
- package/login/vendure-admin-ui-login.metadata.json +1 -1
- package/order/components/order-detail/order-detail.component.d.ts +3 -3
- package/order/components/order-history/order-history-entry-host.component.d.ts +16 -0
- package/order/components/order-history/order-history.component.d.ts +18 -3
- package/order/public_api.d.ts +1 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
- package/static/i18n-messages/de.json +3 -1
- package/static/i18n-messages/en.json +3 -1
- package/static/styles/_variables.scss +1 -0
- package/core/common/utilities/flatten-facet-values.d.ts +0 -2
- package/esm2015/core/common/utilities/flatten-facet-values.js +0 -4
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { Dialog, FacetValue
|
|
2
|
+
import { Dialog, FacetValue } from '@vendure/admin-ui/core';
|
|
3
3
|
export declare class ApplyFacetDialogComponent implements Dialog<FacetValue[]>, AfterViewInit {
|
|
4
4
|
private changeDetector;
|
|
5
5
|
private selector;
|
|
6
6
|
resolveWith: (result?: FacetValue[]) => void;
|
|
7
7
|
selectedValues: FacetValue[];
|
|
8
|
-
facets: FacetWithValues.Fragment[];
|
|
9
8
|
constructor(changeDetector: ChangeDetectorRef);
|
|
10
9
|
ngAfterViewInit(): void;
|
|
11
10
|
selectValues(): void;
|
package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare class BulkAddFacetValuesDialogComponent implements OnInit, OnDest
|
|
|
22
22
|
resolveWith: (result?: FacetWithValuesFragment[]) => void;
|
|
23
23
|
mode: 'product' | 'variant';
|
|
24
24
|
ids?: string[];
|
|
25
|
-
facets: FacetWithValuesFragment[];
|
|
26
25
|
state: 'loading' | 'ready' | 'saving';
|
|
27
26
|
selectedValues: FacetWithValuesFragment[];
|
|
28
27
|
items: ProductOrVariant[];
|
|
@@ -2,7 +2,7 @@ import { Location } from '@angular/common';
|
|
|
2
2
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
-
import { Asset, BaseDetailComponent, CustomFieldConfig, DataService,
|
|
5
|
+
import { Asset, BaseDetailComponent, CustomFieldConfig, DataService, GetProductWithVariants, GlobalFlag, LanguageCode, ModalService, NotificationService, Permission, ProductDetail, ProductVariant, ProductVariantFragment, ServerConfigService, TaxCategory, UpdateProductOptionInput } from '@vendure/admin-ui/core';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
7
7
|
import { ProductDetailService } from '../../providers/product-detail/product-detail.service';
|
|
8
8
|
import { CreateProductVariantsConfig } from '../generate-product-variants/generate-product-variants.component';
|
|
@@ -55,11 +55,10 @@ export declare class ProductDetailComponent extends BaseDetailComponent<GetProdu
|
|
|
55
55
|
[variantId: string]: SelectedAssets;
|
|
56
56
|
};
|
|
57
57
|
variantFacetValueChanges: {
|
|
58
|
-
[variantId: string]:
|
|
58
|
+
[variantId: string]: ProductVariantFragment['facetValues'];
|
|
59
59
|
};
|
|
60
60
|
productChannels$: Observable<ProductDetail.Channels[]>;
|
|
61
61
|
facetValues$: Observable<ProductDetail.FacetValues[]>;
|
|
62
|
-
facets$: Observable<FacetWithValues.Fragment[]>;
|
|
63
62
|
totalItems$: Observable<number>;
|
|
64
63
|
currentPage$: BehaviorSubject<number>;
|
|
65
64
|
itemsPerPage$: BehaviorSubject<number>;
|
|
@@ -96,10 +95,6 @@ export declare class ProductDetailComponent extends BaseDetailComponent<GetProdu
|
|
|
96
95
|
autoUpdate: boolean;
|
|
97
96
|
}): void;
|
|
98
97
|
removeProductFacetValue(facetValueId: string): void;
|
|
99
|
-
/**
|
|
100
|
-
* Opens a dialog to select FacetValues to apply to the select ProductVariants.
|
|
101
|
-
*/
|
|
102
|
-
selectVariantFacetValue(selectedVariantIds: string[]): void;
|
|
103
98
|
variantsToCreateAreValid(): boolean;
|
|
104
99
|
private displayFacetValueModal;
|
|
105
100
|
create(): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter,
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
-
import { CustomFieldConfig, DataService,
|
|
3
|
+
import { CustomFieldConfig, DataService, GlobalFlag, LanguageCode, ModalService, Permission, ProductDetail, ProductOptionFragment, ProductVariant, ProductVariantFragment, TaxCategory, UpdateProductOptionInput } from '@vendure/admin-ui/core';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
4
5
|
import { AssetChange } from '../assets/assets.component';
|
|
5
6
|
import { PaginationConfig, SelectedAssets } from '../product-detail/product-detail.component';
|
|
6
7
|
export interface VariantAssetChange extends AssetChange {
|
|
7
8
|
variantId: string;
|
|
8
9
|
}
|
|
9
|
-
export declare class ProductVariantsListComponent implements
|
|
10
|
+
export declare class ProductVariantsListComponent implements OnInit, OnDestroy {
|
|
10
11
|
private changeDetector;
|
|
11
12
|
private modalService;
|
|
12
13
|
private dataService;
|
|
@@ -15,7 +16,6 @@ export declare class ProductVariantsListComponent implements OnChanges, OnInit,
|
|
|
15
16
|
paginationConfig: PaginationConfig;
|
|
16
17
|
channelPriceIncludesTax: boolean;
|
|
17
18
|
taxCategories: TaxCategory[];
|
|
18
|
-
facets: FacetWithValues.Fragment[];
|
|
19
19
|
optionGroups: ProductDetail.OptionGroups[];
|
|
20
20
|
customFields: CustomFieldConfig[];
|
|
21
21
|
customOptionFields: CustomFieldConfig[];
|
|
@@ -23,14 +23,16 @@ export declare class ProductVariantsListComponent implements OnChanges, OnInit,
|
|
|
23
23
|
pendingAssetChanges: {
|
|
24
24
|
[variantId: string]: SelectedAssets;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
pendingFacetValueChanges: {
|
|
27
|
+
[variantId: string]: ProductVariantFragment['facetValues'];
|
|
28
|
+
};
|
|
29
|
+
assignToChannel: EventEmitter<ProductVariantFragment>;
|
|
27
30
|
removeFromChannel: EventEmitter<{
|
|
28
31
|
channelId: string;
|
|
29
32
|
variant: ProductVariant.Fragment;
|
|
30
33
|
}>;
|
|
31
34
|
assetChange: EventEmitter<VariantAssetChange>;
|
|
32
35
|
selectionChange: EventEmitter<string[]>;
|
|
33
|
-
selectFacetValueClick: EventEmitter<string[]>;
|
|
34
36
|
updateProductOption: EventEmitter<UpdateProductOptionInput & {
|
|
35
37
|
autoUpdate: boolean;
|
|
36
38
|
}>;
|
|
@@ -40,11 +42,9 @@ export declare class ProductVariantsListComponent implements OnChanges, OnInit,
|
|
|
40
42
|
globalTrackInventory: boolean;
|
|
41
43
|
globalOutOfStockThreshold: number;
|
|
42
44
|
readonly updatePermission: Permission[];
|
|
43
|
-
private facetValues;
|
|
44
45
|
private subscription;
|
|
45
46
|
constructor(changeDetector: ChangeDetectorRef, modalService: ModalService, dataService: DataService);
|
|
46
47
|
ngOnInit(): void;
|
|
47
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
48
48
|
ngOnDestroy(): void;
|
|
49
49
|
isDefaultChannel(channelCode: string): boolean;
|
|
50
50
|
trackById(index: number, item: ProductVariant.Fragment): string;
|
|
@@ -58,14 +58,14 @@ export declare class ProductVariantsListComponent implements OnChanges, OnInit,
|
|
|
58
58
|
toggleSelectVariant(variantId: string): void;
|
|
59
59
|
optionGroupName(optionGroupId: string): string | undefined;
|
|
60
60
|
optionName(option: ProductOptionFragment): string;
|
|
61
|
-
|
|
62
|
-
existingFacetValues(variant: ProductVariant.Fragment): ({
|
|
61
|
+
currentOrPendingFacetValues(variant: ProductVariant.Fragment): ({
|
|
63
62
|
__typename?: "FacetValue" | undefined;
|
|
64
|
-
} & Pick<FacetValue, "id" | "name" | "code"> & {
|
|
63
|
+
} & Pick<import("@vendure/admin-ui/core").FacetValue, "id" | "name" | "code"> & {
|
|
65
64
|
facet: {
|
|
66
65
|
__typename?: "Facet" | undefined;
|
|
67
66
|
} & Pick<import("@vendure/admin-ui/core").Facet, "id" | "name">;
|
|
68
67
|
})[];
|
|
68
|
+
selectFacetValue(variant: ProductVariantFragment): Subscription;
|
|
69
69
|
removeFacetValue(variant: ProductVariant.Fragment, facetValueId: string): void;
|
|
70
70
|
isVariantSelected(variantId: string): boolean;
|
|
71
71
|
editOption(option: ProductVariant.Options): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateProductInput, DataService,
|
|
1
|
+
import { CreateProductInput, DataService, GetProductWithVariants, LanguageCode, UpdateProductInput, UpdateProductMutation, UpdateProductOptionInput, UpdateProductVariantInput, UpdateProductVariantsMutation } from '@vendure/admin-ui/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CreateProductVariantsConfig } from '../../components/generate-product-variants/generate-product-variants.component';
|
|
4
4
|
/**
|
|
@@ -8,7 +8,6 @@ import { CreateProductVariantsConfig } from '../../components/generate-product-v
|
|
|
8
8
|
export declare class ProductDetailService {
|
|
9
9
|
private dataService;
|
|
10
10
|
constructor(dataService: DataService);
|
|
11
|
-
getFacets(): Observable<FacetWithValues.Fragment[]>;
|
|
12
11
|
getTaxCategories(): Observable<({
|
|
13
12
|
__typename?: "TaxCategory" | undefined;
|
|
14
13
|
} & {
|