@vendure/admin-ui 1.5.2 → 1.6.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 +206 -172
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +2333 -1860
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js +2 -2
- package/bundles/vendure-admin-ui-login.umd.js +2 -2
- package/bundles/vendure-admin-ui-login.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-marketing.umd.js +1 -1
- package/bundles/vendure-admin-ui-marketing.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +1 -1
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/catalog/components/collection-contents/collection-contents.component.d.ts +7 -2
- package/catalog/components/collection-detail/collection-detail.component.d.ts +12 -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 +5 -1
- package/catalog/components/collection-tree/collection-tree.component.d.ts +1 -0
- package/catalog/providers/product-detail/product-detail.service.d.ts +2 -2
- package/catalog/public_api.d.ts +0 -1
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +32 -3
- 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 +6 -2
- package/core/providers/local-storage/local-storage.service.d.ts +1 -0
- package/core/public_api.d.ts +5 -0
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +21 -6
- package/core/shared/components/configurable-input/configurable-input.component.d.ts +7 -2
- package/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +35 -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 +1 -0
- package/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +25 -0
- package/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +20 -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 +5 -2
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/dashboard/vendure-admin-ui-dashboard.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +1 -3
- package/esm2015/catalog/components/assets/assets.component.js +1 -1
- package/esm2015/catalog/components/collection-contents/collection-contents.component.js +51 -14
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +67 -29
- package/esm2015/catalog/components/collection-list/collection-list.component.js +30 -4
- package/esm2015/catalog/components/collection-tree/array-to-tree.js +3 -3
- package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +27 -4
- package/esm2015/catalog/components/collection-tree/collection-tree.component.js +4 -2
- package/esm2015/catalog/components/product-detail/product-detail.component.js +1 -1
- package/esm2015/catalog/components/product-list/product-list.component.js +3 -3
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +1 -1
- package/esm2015/catalog/public_api.js +1 -2
- package/esm2015/core/app.component.module.js +1 -1
- package/esm2015/core/common/base-detail.component.js +1 -1
- package/esm2015/core/common/deactivate-aware.js +1 -1
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +255 -189
- package/esm2015/core/common/utilities/selection-manager.js +64 -0
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/app-shell/app-shell.component.js +4 -3
- package/esm2015/core/core.module.js +1 -1
- package/esm2015/core/data/definitions/collection-definitions.js +18 -1
- package/esm2015/core/data/definitions/order-definitions.js +2 -1
- package/esm2015/core/data/definitions/shared-definitions.js +29 -28
- package/esm2015/core/data/providers/collection-data.service.js +5 -2
- package/esm2015/core/providers/local-storage/local-storage.service.js +1 -1
- package/esm2015/core/public_api.js +6 -1
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +24 -42
- package/esm2015/core/shared/components/configurable-input/configurable-input.component.js +13 -3
- package/esm2015/core/shared/components/help-tooltip/help-tooltip.component.js +1 -1
- package/esm2015/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.js +129 -0
- package/esm2015/core/shared/components/product-search-input/product-search-input.component.js +104 -0
- package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +1 -1
- package/esm2015/core/shared/components/select-toggle/select-toggle.component.js +5 -3
- package/esm2015/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.js +45 -0
- package/esm2015/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.js +53 -0
- package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +5 -1
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.js +8 -7
- package/esm2015/core/shared/shared.module.js +9 -1
- package/esm2015/dashboard/components/dashboard/dashboard.component.js +1 -1
- package/esm2015/dashboard/widgets/order-summary-widget/order-summary-widget.component.js +1 -1
- package/esm2015/login/components/login/login.component.js +3 -3
- package/esm2015/marketing/components/promotion-detail/promotion-detail.component.js +2 -2
- package/esm2015/order/components/order-list/order-list.component.js +2 -2
- package/fesm2015/vendure-admin-ui-catalog.js +181 -157
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +2156 -1691
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.js +2 -2
- package/fesm2015/vendure-admin-ui-login.js +2 -2
- package/fesm2015/vendure-admin-ui-login.js.map +1 -1
- package/fesm2015/vendure-admin-ui-marketing.js +1 -1
- package/fesm2015/vendure-admin-ui-marketing.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +1 -1
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/login/vendure-admin-ui-login.metadata.json +1 -1
- package/marketing/vendure-admin-ui-marketing.metadata.json +1 -1
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
- package/static/i18n-messages/cs.json +9 -0
- package/static/i18n-messages/de.json +9 -0
- package/static/i18n-messages/en.json +10 -1
- package/static/i18n-messages/es.json +9 -0
- package/static/i18n-messages/fr.json +9 -0
- package/static/i18n-messages/it.json +9 -0
- package/static/i18n-messages/pl.json +9 -0
- package/static/i18n-messages/pt_BR.json +9 -0
- package/static/i18n-messages/pt_PT.json +9 -0
- package/static/i18n-messages/ru.json +9 -0
- package/static/i18n-messages/uk.json +9 -0
- package/static/i18n-messages/zh_Hans.json +9 -0
- package/static/i18n-messages/zh_Hant.json +9 -0
- package/static/styles/global/_forms.scss +4 -5
- package/static/styles/global/_overrides.scss +5 -1
- package/static/styles/theme/default.scss +13 -1
- package/static/theme.min.css +1 -1
- package/esm2015/catalog/components/product-search-input/product-search-input.component.js +0 -104
|
@@ -1,21 +1,26 @@
|
|
|
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 { ConfigurableOperationInput, DataService, GetCollectionContents } from '@vendure/admin-ui/core';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { GetCollectionContents } from '@vendure/admin-ui/core';
|
|
6
|
-
import { DataService } from '@vendure/admin-ui/core';
|
|
7
6
|
export declare class CollectionContentsComponent implements OnInit, OnChanges, OnDestroy {
|
|
8
7
|
private route;
|
|
9
8
|
private router;
|
|
10
9
|
private dataService;
|
|
11
10
|
collectionId: string;
|
|
11
|
+
parentId: string;
|
|
12
|
+
updatedFilters: ConfigurableOperationInput[] | undefined;
|
|
13
|
+
previewUpdatedFilters: boolean;
|
|
12
14
|
headerTemplate: TemplateRef<any>;
|
|
13
15
|
contents$: Observable<GetCollectionContents.Items[]>;
|
|
14
16
|
contentsTotalItems$: Observable<number>;
|
|
15
17
|
contentsItemsPerPage$: Observable<number>;
|
|
16
18
|
contentsCurrentPage$: Observable<number>;
|
|
17
19
|
filterTermControl: FormControl;
|
|
20
|
+
isLoading: boolean;
|
|
18
21
|
private collectionIdChange$;
|
|
22
|
+
private parentIdChange$;
|
|
23
|
+
private filterChanges$;
|
|
19
24
|
private refresh$;
|
|
20
25
|
private destroy$;
|
|
21
26
|
constructor(route: ActivatedRoute, router: Router, dataService: DataService);
|
|
@@ -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, Collection, ConfigurableOperation, ConfigurableOperationDefinition, CustomFieldConfig, DataService, LanguageCode, ModalService, NotificationService, Permission, ServerConfigService } from '@vendure/admin-ui/core';
|
|
4
|
+
import { Asset, BaseDetailComponent, Collection, 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
|
export declare class CollectionDetailComponent extends BaseDetailComponent<Collection.Fragment> implements OnInit, OnDestroy {
|
|
7
8
|
private changeDetector;
|
|
@@ -9,6 +10,7 @@ export declare class CollectionDetailComponent extends BaseDetailComponent<Colle
|
|
|
9
10
|
private formBuilder;
|
|
10
11
|
private notificationService;
|
|
11
12
|
private modalService;
|
|
13
|
+
private localStorageService;
|
|
12
14
|
customFields: CustomFieldConfig[];
|
|
13
15
|
detailForm: FormGroup;
|
|
14
16
|
assetChanges: {
|
|
@@ -17,22 +19,28 @@ export declare class CollectionDetailComponent extends BaseDetailComponent<Colle
|
|
|
17
19
|
};
|
|
18
20
|
filters: ConfigurableOperation[];
|
|
19
21
|
allFilters: ConfigurableOperationDefinition[];
|
|
22
|
+
updatedFilters$: Observable<ConfigurableOperationInput[]>;
|
|
23
|
+
livePreview: boolean;
|
|
24
|
+
parentId$: Observable<string | undefined>;
|
|
20
25
|
readonly updatePermission: Permission[];
|
|
26
|
+
private filterRemoved$;
|
|
21
27
|
contentsComponent: CollectionContentsComponent;
|
|
22
|
-
constructor(router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService);
|
|
28
|
+
constructor(router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService, modalService: ModalService, localStorageService: LocalStorageService);
|
|
23
29
|
ngOnInit(): void;
|
|
24
30
|
ngOnDestroy(): void;
|
|
25
|
-
getFilterDefinition(
|
|
31
|
+
getFilterDefinition(_filter: ConfigurableOperation): ConfigurableOperationDefinition | undefined;
|
|
26
32
|
assetsChanged(): boolean;
|
|
27
33
|
/**
|
|
28
34
|
* If creating a new Collection, automatically generate the slug based on the collection name.
|
|
29
35
|
*/
|
|
30
36
|
updateSlug(nameValue: string): void;
|
|
31
37
|
addFilter(collectionFilter: ConfigurableOperation): void;
|
|
32
|
-
removeFilter(
|
|
38
|
+
removeFilter(index: number): void;
|
|
33
39
|
create(): void;
|
|
34
40
|
save(): void;
|
|
35
41
|
canDeactivate(): boolean;
|
|
42
|
+
toggleLivePreview(): void;
|
|
43
|
+
trackByFn(index: number, item: ConfigurableOperation): string;
|
|
36
44
|
/**
|
|
37
45
|
* Sets the values of the form on changes to the category or current language.
|
|
38
46
|
*/
|
|
@@ -18,11 +18,13 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
availableLanguages$: Observable<LanguageCode[]>;
|
|
19
19
|
contentLanguage$: Observable<LanguageCode>;
|
|
20
20
|
expandAll: boolean;
|
|
21
|
+
expandedIds: string[];
|
|
21
22
|
private queryResult;
|
|
22
23
|
private destroy$;
|
|
23
24
|
constructor(dataService: DataService, notificationService: NotificationService, modalService: ModalService, router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService);
|
|
24
25
|
ngOnInit(): void;
|
|
25
26
|
ngOnDestroy(): void;
|
|
27
|
+
toggleExpandAll(): void;
|
|
26
28
|
onRearrange(event: RearrangeEvent): void;
|
|
27
29
|
deleteCollection(id: string): void;
|
|
28
30
|
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';
|
|
@@ -8,6 +9,8 @@ export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
|
|
|
8
9
|
private parent;
|
|
9
10
|
private root;
|
|
10
11
|
private dataService;
|
|
12
|
+
private router;
|
|
13
|
+
private route;
|
|
11
14
|
depth: number;
|
|
12
15
|
parentName: string;
|
|
13
16
|
collectionTree: TreeNode<CollectionPartial>;
|
|
@@ -19,10 +22,11 @@ export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
|
|
|
19
22
|
path: string;
|
|
20
23
|
id: string;
|
|
21
24
|
}>;
|
|
22
|
-
constructor(parent: CollectionTreeNodeComponent, root: CollectionTreeComponent, dataService: DataService);
|
|
25
|
+
constructor(parent: CollectionTreeNodeComponent, root: CollectionTreeComponent, dataService: DataService, router: Router, route: ActivatedRoute);
|
|
23
26
|
ngOnInit(): void;
|
|
24
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
28
|
trackByFn(index: number, item: CollectionPartial): string;
|
|
29
|
+
toggleExpanded(collection: TreeNode<CollectionPartial>): void;
|
|
26
30
|
getMoveListItems(collection: CollectionPartial): void;
|
|
27
31
|
move(collection: CollectionPartial, parentId: string): void;
|
|
28
32
|
moveUp(collection: CollectionPartial, currentIndex: number): void;
|
|
@@ -12,6 +12,7 @@ export declare class CollectionTreeComponent implements OnChanges {
|
|
|
12
12
|
collections: CollectionPartial[];
|
|
13
13
|
activeCollectionId: string;
|
|
14
14
|
expandAll: boolean;
|
|
15
|
+
expandedIds: string[];
|
|
15
16
|
rearrange: EventEmitter<RearrangeEvent>;
|
|
16
17
|
deleteCollection: EventEmitter<string>;
|
|
17
18
|
collectionTree: RootNode<CollectionPartial>;
|
|
@@ -19,7 +19,7 @@ export declare class ProductDetailService {
|
|
|
19
19
|
__typename?: "ProductVariant" | undefined;
|
|
20
20
|
} & {
|
|
21
21
|
__typename?: "ProductVariant" | undefined;
|
|
22
|
-
} & Pick<import("@vendure/admin-ui/core").ProductVariant, "
|
|
22
|
+
} & Pick<import("@vendure/admin-ui/core").ProductVariant, "enabled" | "sku" | "id" | "createdAt" | "updatedAt" | "name" | "price" | "currencyCode" | "languageCode" | "priceWithTax" | "stockOnHand" | "stockAllocated" | "trackInventory" | "outOfStockThreshold" | "useGlobalOutOfStockThreshold"> & {
|
|
23
23
|
taxRateApplied: {
|
|
24
24
|
__typename?: "TaxRate" | undefined;
|
|
25
25
|
} & Pick<import("@vendure/admin-ui/core").TaxRate, "id" | "name" | "value">;
|
|
@@ -104,7 +104,7 @@ export declare class ProductDetailService {
|
|
|
104
104
|
__typename?: "ProductVariant" | undefined;
|
|
105
105
|
} & {
|
|
106
106
|
__typename?: "ProductVariant" | undefined;
|
|
107
|
-
} & Pick<import("@vendure/admin-ui/core").ProductVariant, "
|
|
107
|
+
} & Pick<import("@vendure/admin-ui/core").ProductVariant, "enabled" | "sku" | "id" | "createdAt" | "updatedAt" | "name" | "price" | "currencyCode" | "languageCode" | "priceWithTax" | "stockOnHand" | "stockAllocated" | "trackInventory" | "outOfStockThreshold" | "useGlobalOutOfStockThreshold"> & {
|
|
108
108
|
taxRateApplied: {
|
|
109
109
|
__typename?: "TaxRate" | undefined;
|
|
110
110
|
} & Pick<import("@vendure/admin-ui/core").TaxRate, "id" | "name" | "value">;
|
package/catalog/public_api.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export * from './components/option-value-input/option-value-input.component';
|
|
|
19
19
|
export * from './components/product-detail/product-detail.component';
|
|
20
20
|
export * from './components/product-list/product-list.component';
|
|
21
21
|
export * from './components/product-options-editor/product-options-editor.component';
|
|
22
|
-
export * from './components/product-search-input/product-search-input.component';
|
|
23
22
|
export * from './components/product-variants-editor/product-variants-editor.component';
|
|
24
23
|
export * from './components/product-variants-list/product-variants-list.component';
|
|
25
24
|
export * from './components/product-variants-table/product-variants-table.component';
|