@vendure/admin-ui 2.2.0-next.0 → 2.2.0-next.1
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 +4 -3
- package/catalog/components/create-facet-value-dialog/create-facet-value-dialog.component.d.ts +19 -0
- package/catalog/components/facet-detail/facet-detail.component.d.ts +9 -12
- package/catalog/components/product-list/product-list.component.d.ts +1 -1
- package/catalog/components/product-variant-list/product-variant-list.component.d.ts +3 -3
- package/catalog/public_api.d.ts +1 -0
- package/core/common/generated-types.d.ts +104 -43
- package/core/common/utilities/custom-field-default-value.d.ts +1 -1
- package/core/common/utilities/interpolate-description.d.ts +1 -1
- package/core/common/version.d.ts +1 -1
- package/core/components/app-shell/app-shell.component.d.ts +1 -0
- package/core/extension/register-route-component.d.ts +1 -1
- package/core/providers/currency/currency.service.d.ts +10 -0
- package/core/public_api.d.ts +1 -0
- package/core/shared/components/chart/chart.component.d.ts +3 -0
- package/core/shared/components/chart/tooltip-plugin.d.ts +16 -1
- package/core/shared/components/configurable-input/configurable-input.component.d.ts +3 -0
- package/core/shared/components/currency-input/currency-input.component.d.ts +6 -3
- package/core/shared/components/order-state-label/order-state-label.component.d.ts +1 -1
- package/core/shared/dynamic-form-inputs/default-form-inputs.d.ts +1 -1
- package/core/shared/pipes/locale-currency.pipe.d.ts +5 -2
- package/esm2022/catalog/catalog.module.mjs +17 -3
- package/esm2022/catalog/components/collection-detail/collection-detail.component.mjs +2 -2
- package/esm2022/catalog/components/create-facet-value-dialog/create-facet-value-dialog.component.mjs +44 -0
- package/esm2022/catalog/components/facet-detail/facet-detail.component.mjs +85 -120
- package/esm2022/catalog/components/facet-list/facet-list.component.mjs +5 -2
- package/esm2022/catalog/components/product-detail/product-detail.component.mjs +2 -2
- package/esm2022/catalog/components/product-list/product-list.component.mjs +26 -14
- package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +36 -15
- package/esm2022/catalog/components/variant-price-detail/variant-price-detail.component.mjs +1 -1
- package/esm2022/catalog/public_api.mjs +2 -1
- package/esm2022/core/common/generated-types.mjs +5 -5
- package/esm2022/core/common/utilities/interpolate-description.mjs +3 -3
- package/esm2022/core/common/version.mjs +2 -2
- package/esm2022/core/components/app-shell/app-shell.component.mjs +4 -3
- package/esm2022/core/data/definitions/facet-definitions.mjs +2 -2
- package/esm2022/core/data/definitions/settings-definitions.mjs +2 -1
- package/esm2022/core/providers/currency/currency.service.mjs +21 -0
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/shared/components/chart/chart.component.mjs +12 -5
- package/esm2022/core/shared/components/chart/tooltip-plugin.mjs +6 -14
- package/esm2022/core/shared/components/configurable-input/configurable-input.component.mjs +15 -13
- package/esm2022/core/shared/components/currency-input/currency-input.component.mjs +17 -14
- package/esm2022/core/shared/components/page-header-tabs/page-header-tabs.component.mjs +2 -2
- package/esm2022/core/shared/pipes/locale-currency.pipe.mjs +11 -7
- package/esm2022/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +4 -4
- package/esm2022/login/components/login/login.component.mjs +4 -5
- package/esm2022/order/components/order-payment-card/order-payment-card.component.mjs +2 -2
- package/esm2022/order/components/refund-order-dialog/refund-order-dialog.component.mjs +2 -2
- package/esm2022/react/react-hooks/use-form-control.mjs +1 -1
- package/esm2022/settings/settings.routes.mjs +4 -4
- package/fesm2022/vendure-admin-ui-catalog.mjs +200 -151
- package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +72 -48
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-dashboard.mjs +3 -3
- package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-login.mjs +2 -3
- package/fesm2022/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-order.mjs +3 -3
- package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-settings.mjs +3 -3
- package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
- package/login/components/login/login.component.d.ts +0 -1
- package/package.json +19 -19
- package/settings/components/administrator-list/administrator-list.component.d.ts +2 -0
- package/settings/components/stock-location-list/stock-location-list.component.d.ts +1 -1
- package/static/i18n-messages/ar.json +1 -2
- package/static/i18n-messages/cs.json +1 -2
- package/static/i18n-messages/de.json +1 -2
- package/static/i18n-messages/en.json +4 -5
- package/static/i18n-messages/es.json +1 -2
- package/static/i18n-messages/fa.json +2 -3
- package/static/i18n-messages/fr.json +1 -2
- package/static/i18n-messages/he.json +1 -2
- package/static/i18n-messages/hr.json +1 -2
- package/static/i18n-messages/it.json +2 -3
- package/static/i18n-messages/nb.json +795 -0
- package/static/i18n-messages/ne.json +2 -3
- package/static/i18n-messages/pl.json +1 -2
- package/static/i18n-messages/pt_BR.json +2 -2
- package/static/i18n-messages/pt_PT.json +1 -2
- package/static/i18n-messages/ru.json +1 -2
- package/static/i18n-messages/uk.json +1 -2
- package/static/i18n-messages/zh_Hans.json +1 -2
- package/static/i18n-messages/zh_Hant.json +1 -2
- package/static/styles/global/_sass-overrides.scss +5 -0
- package/static/styles/theme/dark.scss +5 -4
- package/static/styles/theme/default.scss +7 -2
- package/static/theme.min.css +1 -1
- package/static/vendure-ui-config.json +2 -1
|
@@ -31,12 +31,13 @@ import * as i28 from "./components/product-variant-detail/product-variant-detail
|
|
|
31
31
|
import * as i29 from "./components/create-product-variant-dialog/create-product-variant-dialog.component";
|
|
32
32
|
import * as i30 from "./components/create-product-option-group-dialog/create-product-option-group-dialog.component";
|
|
33
33
|
import * as i31 from "./components/product-variant-quick-jump/product-variant-quick-jump.component";
|
|
34
|
-
import * as i32 from "
|
|
35
|
-
import * as i33 from "@
|
|
34
|
+
import * as i32 from "./components/create-facet-value-dialog/create-facet-value-dialog.component";
|
|
35
|
+
import * as i33 from "@vendure/admin-ui/core";
|
|
36
|
+
import * as i34 from "@angular/router";
|
|
36
37
|
export declare class CatalogModule {
|
|
37
38
|
private static hasRegisteredTabsAndBulkActions;
|
|
38
39
|
constructor(bulkActionRegistryService: BulkActionRegistryService, pageService: PageService);
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ApplyFacetDialogComponent, typeof i7.AssetListComponent, typeof i8.AssetsComponent, typeof i9.VariantPriceDetailComponent, typeof i10.CollectionListComponent, typeof i11.CollectionDetailComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionTreeNodeComponent, typeof i14.CollectionContentsComponent, typeof i15.ProductVariantsTableComponent, typeof i16.OptionValueInputComponent, typeof i17.UpdateProductOptionDialogComponent, typeof i18.ProductVariantsEditorComponent, typeof i19.AssignProductsToChannelDialogComponent, typeof i20.AssetDetailComponent, typeof i21.ConfirmVariantDeletionDialogComponent, typeof i22.ProductOptionsEditorComponent, typeof i23.BulkAddFacetValuesDialogComponent, typeof i24.CollectionDataTableComponent, typeof i25.CollectionBreadcrumbPipe, typeof i26.MoveCollectionsDialogComponent, typeof i27.ProductVariantListComponent, typeof i2.ProductDetailComponent, typeof i28.ProductVariantDetailComponent, typeof i29.CreateProductVariantDialogComponent, typeof i30.CreateProductOptionGroupDialogComponent, typeof i31.ProductVariantQuickJumpComponent], [typeof
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ApplyFacetDialogComponent, typeof i7.AssetListComponent, typeof i8.AssetsComponent, typeof i9.VariantPriceDetailComponent, typeof i10.CollectionListComponent, typeof i11.CollectionDetailComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionTreeNodeComponent, typeof i14.CollectionContentsComponent, typeof i15.ProductVariantsTableComponent, typeof i16.OptionValueInputComponent, typeof i17.UpdateProductOptionDialogComponent, typeof i18.ProductVariantsEditorComponent, typeof i19.AssignProductsToChannelDialogComponent, typeof i20.AssetDetailComponent, typeof i21.ConfirmVariantDeletionDialogComponent, typeof i22.ProductOptionsEditorComponent, typeof i23.BulkAddFacetValuesDialogComponent, typeof i24.CollectionDataTableComponent, typeof i25.CollectionBreadcrumbPipe, typeof i26.MoveCollectionsDialogComponent, typeof i27.ProductVariantListComponent, typeof i2.ProductDetailComponent, typeof i28.ProductVariantDetailComponent, typeof i29.CreateProductVariantDialogComponent, typeof i30.CreateProductOptionGroupDialogComponent, typeof i31.ProductVariantQuickJumpComponent, typeof i32.CreateFacetValueDialogComponent], [typeof i33.SharedModule, typeof i34.RouterModule], [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ApplyFacetDialogComponent, typeof i7.AssetListComponent, typeof i8.AssetsComponent, typeof i9.VariantPriceDetailComponent, typeof i10.CollectionListComponent, typeof i11.CollectionDetailComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionTreeNodeComponent, typeof i14.CollectionContentsComponent, typeof i15.ProductVariantsTableComponent, typeof i16.OptionValueInputComponent, typeof i17.UpdateProductOptionDialogComponent, typeof i18.ProductVariantsEditorComponent, typeof i19.AssignProductsToChannelDialogComponent, typeof i20.AssetDetailComponent, typeof i21.ConfirmVariantDeletionDialogComponent, typeof i22.ProductOptionsEditorComponent, typeof i23.BulkAddFacetValuesDialogComponent, typeof i24.CollectionDataTableComponent, typeof i25.CollectionBreadcrumbPipe, typeof i26.MoveCollectionsDialogComponent, typeof i27.ProductVariantListComponent, typeof i2.ProductDetailComponent, typeof i28.ProductVariantDetailComponent, typeof i29.CreateProductVariantDialogComponent, typeof i30.CreateProductOptionGroupDialogComponent, typeof i31.ProductVariantQuickJumpComponent, typeof i32.CreateFacetValueDialogComponent]>;
|
|
41
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogModule>;
|
|
42
43
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormBuilder } from '@angular/forms';
|
|
2
|
+
import { CreateFacetValueInput, Dialog, LanguageCode } from '@vendure/admin-ui/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CreateFacetValueDialogComponent implements Dialog<CreateFacetValueInput> {
|
|
5
|
+
private formBuilder;
|
|
6
|
+
resolveWith: (result?: CreateFacetValueInput) => void;
|
|
7
|
+
languageCode: LanguageCode;
|
|
8
|
+
form: import("@angular/forms").FormGroup<{
|
|
9
|
+
name: import("@angular/forms").FormControl<string | null>;
|
|
10
|
+
code: import("@angular/forms").FormControl<string | null>;
|
|
11
|
+
}>;
|
|
12
|
+
facetId: string;
|
|
13
|
+
constructor(formBuilder: FormBuilder);
|
|
14
|
+
updateCode(): void;
|
|
15
|
+
confirm(): void;
|
|
16
|
+
cancel(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateFacetValueDialogComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreateFacetValueDialogComponent, "vdr-create-facet-value-dialog", never, {}, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { DataService,
|
|
4
|
-
import { BehaviorSubject
|
|
3
|
+
import { DataService, FacetWithValueListFragment, GetFacetDetailDocument, LanguageCode, ModalService, NotificationService, Permission, TypedBaseDetailComponent } from '@vendure/admin-ui/core';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const FACET_DETAIL_QUERY: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
7
|
-
type ValueItem =
|
|
7
|
+
type ValueItem = FacetWithValueListFragment['valueList']['items'][number] | {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
code: string;
|
|
@@ -37,9 +37,9 @@ export declare class FacetDetailComponent extends TypedBaseDetailComponent<typeo
|
|
|
37
37
|
}>;
|
|
38
38
|
currentPage: number;
|
|
39
39
|
itemsPerPage: number;
|
|
40
|
+
totalItems: number;
|
|
40
41
|
filterControl: FormControl<string | null>;
|
|
41
42
|
values$: BehaviorSubject<ValueItem[]>;
|
|
42
|
-
filteredValues$: Observable<ValueItem[]>;
|
|
43
43
|
readonly updatePermission: Permission[];
|
|
44
44
|
constructor(changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService);
|
|
45
45
|
ngOnInit(): void;
|
|
@@ -52,27 +52,24 @@ export declare class FacetDetailComponent extends TypedBaseDetailComponent<typeo
|
|
|
52
52
|
save(): void;
|
|
53
53
|
deleteFacetValue(facetValueId: string): void;
|
|
54
54
|
private showModalAndDelete;
|
|
55
|
+
protected setCurrentPage(newPage: number): void;
|
|
56
|
+
protected setItemsPerPage(itemsPerPage: number): void;
|
|
57
|
+
private fetchFacetValues;
|
|
55
58
|
/**
|
|
56
59
|
* Sets the values of the form on changes to the facet or current language.
|
|
57
60
|
*/
|
|
58
|
-
protected setFormValues(facet:
|
|
61
|
+
protected setFormValues(facet: FacetWithValueListFragment, languageCode: LanguageCode): void;
|
|
62
|
+
private setFacetValueFormValues;
|
|
59
63
|
/**
|
|
60
64
|
* Given a facet and the value of the detailForm, this method creates an updated copy of the facet which
|
|
61
65
|
* can then be persisted to the API.
|
|
62
66
|
*/
|
|
63
67
|
private getUpdatedFacet;
|
|
64
|
-
/**
|
|
65
|
-
* Given an array of facet values and the values from the detailForm, this method creates a new array
|
|
66
|
-
* which can be persisted to the API via a createFacetValues mutation.
|
|
67
|
-
*/
|
|
68
|
-
private getCreatedFacetValues;
|
|
69
68
|
/**
|
|
70
69
|
* Given an array of facet values and the values from the detailForm, this method creates a new array
|
|
71
70
|
* which can be persisted to the API via an updateFacetValues mutation.
|
|
72
71
|
*/
|
|
73
72
|
private getUpdatedFacetValues;
|
|
74
|
-
private createTempId;
|
|
75
|
-
private isTempId;
|
|
76
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<FacetDetailComponent, never>;
|
|
77
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<FacetDetailComponent, "vdr-facet-detail", never, {}, {}, never, never, false, never>;
|
|
78
75
|
}
|
|
@@ -9,7 +9,7 @@ export declare class ProductListComponent extends TypedBaseListComponent<typeof
|
|
|
9
9
|
pendingSearchIndexUpdates: number;
|
|
10
10
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
11
11
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").ProductFilterParameter>;
|
|
12
|
-
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductSortParameter, ["name" | "
|
|
12
|
+
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductSortParameter, ["name" | "id" | "createdAt" | "updatedAt" | "slug"]>;
|
|
13
13
|
constructor(dataService: DataService, modalService: ModalService, notificationService: NotificationService, jobQueueService: JobQueueService);
|
|
14
14
|
rebuildSearchIndex(): void;
|
|
15
15
|
deleteProduct(productId: string): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DataTableLocationId, ProductVariantListQueryDocument, TypedBaseListComponent } from '@vendure/admin-ui/core';
|
|
2
|
+
import { DataTableLocationId, ProductVariantFilterParameter, ProductVariantListQueryDocument, TypedBaseListComponent } from '@vendure/admin-ui/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ProductVariantListComponent extends TypedBaseListComponent<typeof ProductVariantListQueryDocument, 'productVariants'> implements OnInit {
|
|
5
5
|
productId?: string;
|
|
6
6
|
hideLanguageSelect: boolean;
|
|
7
7
|
dataTableId: DataTableLocationId | undefined;
|
|
8
8
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
9
|
-
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<
|
|
10
|
-
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "
|
|
9
|
+
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<ProductVariantFilterParameter>;
|
|
10
|
+
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "price" | "sku" | "id" | "createdAt" | "updatedAt" | "priceWithTax"]>;
|
|
11
11
|
constructor();
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantListComponent, never>;
|
|
13
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantListComponent, "vdr-product-variant-list", never, { "productId": { "alias": "productId"; "required": false; }; "hideLanguageSelect": { "alias": "hideLanguageSelect"; "required": false; }; "dataTableId": { "alias": "dataTableId"; "required": false; }; }, {}, never, never, false, never>;
|
package/catalog/public_api.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './components/collection-tree/collection-tree.component';
|
|
|
19
19
|
export * from './components/collection-tree/collection-tree.service';
|
|
20
20
|
export * from './components/collection-tree/collection-tree.types';
|
|
21
21
|
export * from './components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component';
|
|
22
|
+
export * from './components/create-facet-value-dialog/create-facet-value-dialog.component';
|
|
22
23
|
export * from './components/create-product-option-group-dialog/create-product-option-group-dialog.component';
|
|
23
24
|
export * from './components/create-product-variant-dialog/create-product-variant-dialog.component';
|
|
24
25
|
export * from './components/facet-detail/facet-detail.component';
|