@deenruv/admin-ui 1.0.17-dev.20 → 1.0.17-dev.23
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/components/collection-data-table/collection-data-table.component.d.ts +6 -6
- package/catalog/components/product-variants-table/product-variants-table.component.d.ts +3 -3
- package/catalog/providers/product-detail/product-detail.service.d.ts +12 -12
- package/core/common/generated-schema-types.d.ts +6086 -0
- package/core/common/generated-types.d.ts +2754 -8599
- package/core/common/utilities/tokenized-search-filter.d.ts +5 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/client-state/client-defaults.d.ts +9 -9
- package/core/data/providers/administrator-data.service.d.ts +3 -3
- package/core/data/providers/collection-data.service.d.ts +10 -10
- package/core/data/providers/customer-data.service.d.ts +14 -14
- package/core/data/providers/facet-data.service.d.ts +3 -3
- package/core/data/providers/order-data.service.d.ts +13 -13
- package/core/data/providers/product-data.service.d.ts +46 -46
- package/core/data/providers/settings-data.service.d.ts +30 -30
- package/core/data/providers/shipping-method-data.service.d.ts +4 -4
- package/core/data/server-config.d.ts +1 -1
- package/core/public_api.d.ts +2 -0
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +6 -6
- package/core/shared/components/product-variant-selector/product-variant-selector.component.d.ts +4 -4
- package/customer/components/customer-history/customer-history.component.d.ts +4 -4
- package/esm2022/catalog/components/product-list/product-list.component.mjs +5 -14
- package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +5 -15
- package/esm2022/core/common/generated-schema-types.mjs +1052 -0
- package/esm2022/core/common/generated-types.mjs +2 -1024
- package/esm2022/core/common/introspection-result.mjs +2 -1
- package/esm2022/core/common/utilities/tokenized-search-filter.mjs +22 -0
- package/esm2022/core/common/version.mjs +2 -2
- package/esm2022/core/public_api.mjs +3 -1
- package/esm2022/customer/components/add-customer-to-group-dialog/add-customer-to-group-dialog.component.mjs +10 -3
- package/esm2022/customer/components/customer-group-list/customer-group-list.component.mjs +9 -15
- package/esm2022/customer/components/customer-list/customer-list.component.mjs +3 -19
- package/esm2022/marketing/components/promotion-list/promotion-list.component.mjs +3 -10
- package/esm2022/order/components/order-list/order-list.component.mjs +11 -18
- package/esm2022/settings/components/administrator-list/administrator-list.component.mjs +3 -23
- package/esm2022/settings/components/channel-list/channel-list.component.mjs +3 -8
- package/esm2022/settings/components/country-list/country-list.component.mjs +3 -8
- package/esm2022/settings/components/payment-method-list/payment-method-list.component.mjs +3 -8
- package/esm2022/settings/components/role-list/role-list.component.mjs +3 -8
- package/esm2022/settings/components/seller-list/seller-list.component.mjs +3 -8
- package/esm2022/settings/components/shipping-method-list/shipping-method-list.component.mjs +3 -8
- package/esm2022/settings/components/stock-location-list/stock-location-list.component.mjs +3 -8
- package/esm2022/settings/components/tax-category-list/tax-category-list.component.mjs +3 -8
- package/esm2022/settings/components/tax-rate-list/tax-rate-list.component.mjs +3 -8
- package/esm2022/settings/components/zone-list/zone-list.component.mjs +8 -13
- package/esm2022/settings/components/zone-member-list/zone-member-list.component.mjs +3 -10
- package/fesm2022/deenruv-admin-ui-catalog.mjs +7 -26
- package/fesm2022/deenruv-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/deenruv-admin-ui-core.mjs +54 -2
- package/fesm2022/deenruv-admin-ui-core.mjs.map +1 -1
- package/fesm2022/deenruv-admin-ui-customer.mjs +18 -34
- package/fesm2022/deenruv-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/deenruv-admin-ui-marketing.mjs +2 -9
- package/fesm2022/deenruv-admin-ui-marketing.mjs.map +1 -1
- package/fesm2022/deenruv-admin-ui-order.mjs +10 -17
- package/fesm2022/deenruv-admin-ui-order.mjs.map +1 -1
- package/fesm2022/deenruv-admin-ui-settings.mjs +18 -95
- package/fesm2022/deenruv-admin-ui-settings.mjs.map +1 -1
- package/order/components/modification-detail/modification-detail.component.d.ts +1 -1
- package/order/components/order-history/order-history.component.d.ts +10 -10
- package/order/components/order-payment-card/order-payment-card.component.d.ts +11 -11
- package/package.json +18 -18
- package/settings/components/administrator-list/administrator-list.component.d.ts +2 -12
- package/settings/components/payment-method-detail/payment-method-detail.component.d.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Input, ChangeDetectionStrategy, Component, EventEmitter, Output, ViewContainerRef, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@deenruv/admin-ui/core';
|
|
4
|
+
import { SelectionManager, GetCustomerListDocument, buildTokenizedSearchFilter, HistoryEntryType, CUSTOMER_FRAGMENT, TypedBaseDetailComponent, getCustomFieldsDefaults, SortOrder, EditNoteDialogComponent, CustomerDetailQueryDocument, createBulkDeleteAction, Permission, CUSTOMER_GROUP_FRAGMENT, TypedBaseListComponent, GetCustomerGroupListDocument, ModalService, DataService, NotificationService, CustomerListQueryDocument, PageComponent, detailBreadcrumb, detailComponentWithResolver, GetCustomerGroupDetailDocument, SharedModule, PageService } from '@deenruv/admin-ui/core';
|
|
3
5
|
import { BehaviorSubject, Subject, combineLatest, forkJoin, EMPTY, from, of } from 'rxjs';
|
|
4
6
|
import { map, startWith, distinctUntilChanged, debounceTime, tap, takeUntil, switchMap, filter, take, shareReplay, merge, mergeMap, concatMap, mapTo } from 'rxjs/operators';
|
|
5
|
-
import * as i1 from '@deenruv/admin-ui/core';
|
|
6
|
-
import { SelectionManager, HistoryEntryType, CUSTOMER_FRAGMENT, TypedBaseDetailComponent, getCustomFieldsDefaults, SortOrder, EditNoteDialogComponent, CustomerDetailQueryDocument, createBulkDeleteAction, Permission, CUSTOMER_GROUP_FRAGMENT, TypedBaseListComponent, GetCustomerGroupListDocument, ModalService, DataService, NotificationService, LogicalOperator, CustomerListQueryDocument, PageComponent, detailBreadcrumb, detailComponentWithResolver, GetCustomerGroupDetailDocument, SharedModule, PageService } from '@deenruv/admin-ui/core';
|
|
7
7
|
import * as i1$1 from '@angular/forms';
|
|
8
8
|
import { FormControl, UntypedFormArray, Validators } from '@angular/forms';
|
|
9
9
|
import * as i2 from '@angular/router';
|
|
@@ -117,8 +117,14 @@ class AddCustomerToGroupDialogComponent {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
ngOnInit() {
|
|
120
|
-
const customerResult$ = this.fetchGroupMembers$.pipe(switchMap(({ skip, take, filterTerm }) => this.dataService
|
|
121
|
-
.
|
|
120
|
+
const customerResult$ = this.fetchGroupMembers$.pipe(switchMap(({ skip, take, filterTerm }) => this.dataService
|
|
121
|
+
.query(GetCustomerListDocument, {
|
|
122
|
+
options: {
|
|
123
|
+
take,
|
|
124
|
+
skip,
|
|
125
|
+
filter: buildTokenizedSearchFilter(filterTerm, ['emailAddress', 'lastName']),
|
|
126
|
+
},
|
|
127
|
+
})
|
|
122
128
|
.mapStream(res => res.customers)));
|
|
123
129
|
this.customers$ = customerResult$.pipe(map(res => res.items));
|
|
124
130
|
this.customersTotal$ = customerResult$.pipe(map(res => res.totalItems));
|
|
@@ -1005,10 +1011,7 @@ class CustomerGroupListComponent extends TypedBaseListComponent {
|
|
|
1005
1011
|
options: {
|
|
1006
1012
|
skip,
|
|
1007
1013
|
take,
|
|
1008
|
-
filter:
|
|
1009
|
-
name: { contains: this.searchTermControl.value },
|
|
1010
|
-
...this.filters.createFilterInput(),
|
|
1011
|
-
},
|
|
1014
|
+
filter: buildTokenizedSearchFilter(this.searchTermControl.value, ['name'], this.filters.createFilterInput()),
|
|
1012
1015
|
sort: this.sorts.createSortInput(),
|
|
1013
1016
|
},
|
|
1014
1017
|
}),
|
|
@@ -1038,11 +1041,7 @@ class CustomerGroupListComponent extends TypedBaseListComponent {
|
|
|
1038
1041
|
.getCustomerGroupWithCustomers(activeGroup.id, {
|
|
1039
1042
|
skip,
|
|
1040
1043
|
take,
|
|
1041
|
-
filter:
|
|
1042
|
-
emailAddress: {
|
|
1043
|
-
contains: filterTerm,
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1044
|
+
filter: buildTokenizedSearchFilter(filterTerm, ['emailAddress']),
|
|
1046
1045
|
})
|
|
1047
1046
|
.mapStream(res => res.customerGroup?.customers);
|
|
1048
1047
|
}
|
|
@@ -1056,7 +1055,10 @@ class CustomerGroupListComponent extends TypedBaseListComponent {
|
|
|
1056
1055
|
closeMembers() {
|
|
1057
1056
|
const params = { ...this.route.snapshot.params };
|
|
1058
1057
|
delete params.contents;
|
|
1059
|
-
this.router.navigate(['./', params], {
|
|
1058
|
+
this.router.navigate(['./', params], {
|
|
1059
|
+
relativeTo: this.route,
|
|
1060
|
+
queryParamsHandling: 'preserve',
|
|
1061
|
+
});
|
|
1060
1062
|
}
|
|
1061
1063
|
addToGroup(group) {
|
|
1062
1064
|
this.modalService
|
|
@@ -1069,9 +1071,7 @@ class CustomerGroupListComponent extends TypedBaseListComponent {
|
|
|
1069
1071
|
verticalAlign: 'top',
|
|
1070
1072
|
})
|
|
1071
1073
|
.pipe(switchMap(customerIds => customerIds
|
|
1072
|
-
? this.dataService.customer
|
|
1073
|
-
.addCustomersToGroup(group.id, customerIds)
|
|
1074
|
-
.pipe(mapTo(customerIds))
|
|
1074
|
+
? this.dataService.customer.addCustomersToGroup(group.id, customerIds).pipe(mapTo(customerIds))
|
|
1075
1075
|
: EMPTY))
|
|
1076
1076
|
.subscribe({
|
|
1077
1077
|
next: result => {
|
|
@@ -1189,23 +1189,7 @@ class CustomerListComponent extends TypedBaseListComponent {
|
|
|
1189
1189
|
options: {
|
|
1190
1190
|
skip,
|
|
1191
1191
|
take,
|
|
1192
|
-
filter:
|
|
1193
|
-
...(this.searchTermControl.value
|
|
1194
|
-
? {
|
|
1195
|
-
emailAddress: {
|
|
1196
|
-
contains: this.searchTermControl.value,
|
|
1197
|
-
},
|
|
1198
|
-
lastName: {
|
|
1199
|
-
contains: this.searchTermControl.value,
|
|
1200
|
-
},
|
|
1201
|
-
postalCode: {
|
|
1202
|
-
contains: this.searchTermControl.value,
|
|
1203
|
-
},
|
|
1204
|
-
}
|
|
1205
|
-
: {}),
|
|
1206
|
-
...this.filters.createFilterInput(),
|
|
1207
|
-
},
|
|
1208
|
-
filterOperator: this.searchTermControl.value ? LogicalOperator.OR : LogicalOperator.AND,
|
|
1192
|
+
filter: buildTokenizedSearchFilter(this.searchTermControl.value, ['emailAddress', 'lastName', 'postalCode'], this.filters.createFilterInput()),
|
|
1209
1193
|
sort: this.sorts.createSortInput(),
|
|
1210
1194
|
},
|
|
1211
1195
|
}),
|