@vendure/admin-ui 1.7.4 → 1.8.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/bundles/vendure-admin-ui-catalog.umd.js +902 -74
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +2392 -820
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +4 -3
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js +3 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +781 -175
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +5 -4
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-system.umd.js +1 -1
- package/catalog/catalog.module.d.ts +3 -0
- package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +17 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +38 -0
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
- package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
- package/catalog/components/collection-list/collection-list.component.d.ts +7 -5
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +8 -4
- package/catalog/components/collection-tree/collection-tree.component.d.ts +2 -1
- package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
- package/catalog/components/facet-list/facet-list.component.d.ts +2 -1
- package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
- package/catalog/components/product-list/product-list.component.d.ts +2 -1
- package/catalog/public_api.d.ts +6 -0
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/component-registry-types.d.ts +1 -1
- package/core/common/generated-types.d.ts +609 -3
- package/core/common/utilities/bulk-action-utils.d.ts +19 -0
- package/core/common/utilities/selection-manager.d.ts +7 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/collection-definitions.d.ts +3 -0
- package/core/data/definitions/facet-definitions.d.ts +3 -0
- package/core/data/definitions/order-definitions.d.ts +12 -0
- package/core/data/definitions/product-definitions.d.ts +1 -0
- package/core/data/providers/collection-data.service.d.ts +4 -1
- package/core/data/providers/facet-data.service.d.ts +4 -1
- package/core/data/providers/order-data.service.d.ts +18 -1
- package/core/data/providers/product-data.service.d.ts +1 -0
- package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +6 -0
- package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
- package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
- package/core/providers/modal/modal.service.d.ts +2 -0
- package/core/providers/nav-builder/nav-builder-types.d.ts +1 -0
- package/core/public_api.d.ts +18 -1
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +3 -3
- package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +29 -0
- package/core/shared/components/data-table/data-table.component.d.ts +26 -7
- package/core/shared/components/dropdown/dropdown-menu.component.d.ts +1 -0
- package/core/shared/components/radio-card/radio-card-fieldset.component.d.ts +21 -0
- package/core/shared/components/radio-card/radio-card.component.d.ts +19 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +28 -0
- package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +31 -0
- package/core/shared/components/rich-text-editor/prosemirror/custom-nodes.d.ts +4 -0
- package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +5 -5
- package/core/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +12 -0
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.d.ts +9 -0
- package/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.d.ts +14 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.d.ts +7 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.d.ts +7 -0
- package/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.d.ts +13 -0
- package/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +7 -3
- package/core/shared/components/rich-text-editor/prosemirror/types.d.ts +0 -2
- package/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.d.ts +18 -0
- package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +6 -2
- package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +27 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +19 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +5 -17
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +11 -4
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +25 -2
- package/esm2015/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.js +4 -1
- package/esm2015/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.js +51 -0
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +89 -0
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.js +69 -0
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +3 -3
- package/esm2015/catalog/components/collection-list/collection-list-bulk-actions.js +147 -0
- package/esm2015/catalog/components/collection-list/collection-list.component.js +17 -8
- package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +16 -7
- package/esm2015/catalog/components/collection-tree/collection-tree.component.js +3 -2
- package/esm2015/catalog/components/facet-list/facet-list-bulk-actions.js +208 -0
- package/esm2015/catalog/components/facet-list/facet-list.component.js +13 -4
- package/esm2015/catalog/components/product-detail/product-detail.component.js +35 -23
- package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +173 -0
- package/esm2015/catalog/components/product-list/product-list.component.js +10 -5
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +2 -2
- package/esm2015/catalog/providers/routing/collection-resolver.js +2 -1
- package/esm2015/catalog/public_api.js +7 -1
- package/esm2015/core/common/component-registry-types.js +1 -1
- package/esm2015/core/common/generated-types.js +5 -1
- package/esm2015/core/common/introspection-result.js +296 -191
- package/esm2015/core/common/utilities/bulk-action-utils.js +44 -0
- package/esm2015/core/common/utilities/selection-manager.js +33 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/breadcrumb/breadcrumb.component.js +1 -1
- package/esm2015/core/data/definitions/collection-definitions.js +30 -1
- package/esm2015/core/data/definitions/facet-definitions.js +31 -1
- package/esm2015/core/data/definitions/order-definitions.js +114 -1
- package/esm2015/core/data/definitions/product-definitions.js +15 -1
- package/esm2015/core/data/providers/collection-data.service.js +17 -2
- package/esm2015/core/data/providers/customer-data.service.js +8 -4
- package/esm2015/core/data/providers/facet-data.service.js +18 -2
- package/esm2015/core/data/providers/order-data.service.js +38 -2
- package/esm2015/core/data/providers/product-data.service.js +7 -2
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +5 -1
- package/esm2015/core/providers/bulk-action-registry/bulk-action-registry.service.js +27 -0
- package/esm2015/core/providers/bulk-action-registry/bulk-action-types.js +2 -0
- package/esm2015/core/providers/bulk-action-registry/register-bulk-action.js +63 -0
- package/esm2015/core/providers/dashboard-widget/dashboard-widget.service.js +1 -4
- package/esm2015/core/providers/modal/modal.service.js +2 -1
- package/esm2015/core/providers/nav-builder/nav-builder-types.js +1 -1
- package/esm2015/core/public_api.js +19 -2
- package/esm2015/core/shared/components/action-bar/action-bar.component.js +4 -8
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
- package/esm2015/core/shared/components/bulk-action-menu/bulk-action-menu.component.js +99 -0
- package/esm2015/core/shared/components/data-table/data-table.component.js +64 -15
- package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +4 -3
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +2 -2
- package/esm2015/core/shared/components/language-selector/language-selector.component.js +2 -2
- package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +2 -1
- package/esm2015/core/shared/components/product-search-input/product-search-input.component.js +1 -1
- package/esm2015/core/shared/components/product-selector/product-selector.component.js +1 -1
- package/esm2015/core/shared/components/radio-card/radio-card-fieldset.component.js +57 -0
- package/esm2015/core/shared/components/radio-card/radio-card.component.js +54 -0
- package/esm2015/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.js +2 -2
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.js +140 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.js +45 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/custom-nodes.js +60 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/links.js +4 -4
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.js +23 -1
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.js +12 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu.js +73 -18
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.js +16 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.js +100 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.js +97 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.js +166 -0
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +47 -17
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/types.js +1 -1
- package/esm2015/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.js +57 -0
- package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +20 -9
- package/esm2015/core/shared/components/simple-dialog/simple-dialog.component.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.js +59 -0
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.js +66 -0
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +47 -84
- package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +3 -3
- package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +3 -1
- package/esm2015/core/shared/pipes/state-i18n-token.pipe.js +2 -1
- package/esm2015/core/shared/shared.module.js +13 -1
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +2 -2
- package/esm2015/customer/components/customer-group-member-list/customer-group-member-list.component.js +6 -6
- package/esm2015/customer/components/customer-list/customer-list.component.js +2 -2
- package/esm2015/dashboard/dashboard.module.js +6 -2
- package/esm2015/order/components/coupon-code-selector/coupon-code-selector.component.js +42 -0
- package/esm2015/order/components/draft-order-detail/draft-order-detail.component.js +195 -0
- package/esm2015/order/components/draft-order-variant-selector/draft-order-variant-selector.component.js +59 -0
- package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
- package/esm2015/order/components/order-editor/order-editor.component.js +5 -11
- package/esm2015/order/components/order-list/order-list.component.js +20 -4
- package/esm2015/order/components/order-table/order-table.component.js +16 -5
- package/esm2015/order/components/select-address-dialog/select-address-dialog.component.js +91 -0
- package/esm2015/order/components/select-address-dialog/select-address-dialog.graphql.js +14 -0
- package/esm2015/order/components/select-customer-dialog/select-customer-dialog.component.js +59 -0
- package/esm2015/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.js +30 -0
- package/esm2015/order/order.module.js +13 -1
- package/esm2015/order/order.routes.js +26 -7
- package/esm2015/order/providers/routing/order-resolver.js +29 -12
- package/esm2015/order/providers/routing/order.guard.js +41 -0
- package/esm2015/order/public_api.js +9 -1
- package/esm2015/settings/components/country-list/country-list.component.js +2 -2
- package/esm2015/settings/components/profile/profile.component.js +2 -2
- package/esm2015/settings/components/zone-list/zone-list.component.js +2 -2
- package/esm2015/settings/components/zone-member-list/zone-member-list.component.js +2 -2
- package/esm2015/system/components/health-check/health-check.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +835 -61
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +3122 -1514
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +7 -7
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.js +5 -1
- package/fesm2015/vendure-admin-ui-dashboard.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +780 -232
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +4 -4
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/fesm2015/vendure-admin-ui-system.js +1 -1
- package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +18 -0
- package/order/components/draft-order-detail/draft-order-detail.component.d.ts +49 -0
- package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +21 -0
- package/order/components/order-editor/order-editor.component.d.ts +1 -6
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/order/components/order-table/order-table.component.d.ts +11 -2
- package/order/components/select-address-dialog/select-address-dialog.component.d.ts +24 -0
- package/order/components/select-address-dialog/select-address-dialog.graphql.d.ts +1 -0
- package/order/components/select-customer-dialog/select-customer-dialog.component.d.ts +22 -0
- package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +16 -0
- package/order/providers/routing/order-resolver.d.ts +8 -5
- package/order/providers/routing/order.guard.d.ts +9 -0
- package/order/public_api.d.ts +8 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +13 -12
- package/settings/components/zone-member-list/zone-member-list.component.d.ts +3 -1
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
- package/static/i18n-messages/cs.json +33 -0
- package/static/i18n-messages/de.json +33 -0
- package/static/i18n-messages/en.json +36 -4
- package/static/i18n-messages/es.json +33 -0
- package/static/i18n-messages/fr.json +33 -0
- package/static/i18n-messages/it.json +33 -0
- package/static/i18n-messages/pl.json +33 -0
- package/static/i18n-messages/pt_BR.json +33 -0
- package/static/i18n-messages/pt_PT.json +33 -0
- package/static/i18n-messages/ru.json +33 -0
- package/static/i18n-messages/uk.json +33 -0
- package/static/i18n-messages/zh_Hans.json +33 -0
- package/static/i18n-messages/zh_Hant.json +33 -0
- package/static/styles/global/_forms.scss +4 -2
- package/static/styles/global/_overrides.scss +1 -1
- package/static/styles/global/_utilities.scss +4 -0
- package/static/theme.min.css +1 -1
- package/system/vendure-admin-ui-system.metadata.json +1 -1
- package/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/images.js +0 -36
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
selector: 'vdr-health-check',
|
|
16
16
|
template: "<vdr-action-bar>\r\n <vdr-ab-left>\r\n <div class=\"system-status-header\" *ngIf=\"healthCheckService.status$ | async as status\">\r\n <div class=\"status-icon\">\r\n <clr-icon\r\n [attr.shape]=\"status === 'ok' ? 'check-circle' : 'exclamation-circle'\"\r\n [ngClass]=\"{ 'is-success': status === 'ok', 'is-danger': status !== 'ok' }\"\r\n size=\"48\"\r\n ></clr-icon>\r\n </div>\r\n <div class=\"status-detail\">\r\n <ng-container *ngIf=\"status === 'ok'; else error\">\r\n {{ 'system.health-all-systems-up' | translate }}\r\n </ng-container>\r\n <ng-template #error>\r\n {{ 'system.health-error' | translate }}\r\n </ng-template>\r\n <div class=\"last-checked\">\r\n {{ 'system.health-last-checked' | translate }}:\r\n {{ healthCheckService.lastCheck$ | async | localeDate: 'mediumTime' }}\r\n </div>\r\n </div>\r\n </div>\r\n </vdr-ab-left>\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"system-status\"></vdr-action-bar-items>\r\n <button class=\"btn btn-secondary\" (click)=\"healthCheckService.refresh()\">\r\n <clr-icon shape=\"refresh\"></clr-icon> {{ 'system.health-refresh' | translate }}\r\n </button>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n\r\n<table class=\"table\">\r\n <thead>\r\n <tr>\r\n <th class=\"left\">\r\n {{ 'common.name' | translate }}\r\n </th>\r\n <th class=\"left\">\r\n {{ 'system.health-status' | translate }}\r\n </th>\r\n <th class=\"left\">\r\n {{ 'system.health-message' | translate }}\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let row of healthCheckService.details$ | async\">\r\n <td class=\"align-middle left\">{{ row.key }}</td>\r\n <td class=\"align-middle left\">\r\n <vdr-chip [colorType]=\"row.result.status === 'up' ? 'success' : 'error'\">\r\n <ng-container *ngIf=\"row.result.status === 'up'; else down\">\r\n <clr-icon shape=\"check-circle\"></clr-icon>\r\n {{ 'system.health-status-up' | translate }}\r\n </ng-container>\r\n <ng-template #down>\r\n <clr-icon shape=\"exclamation-circle\"></clr-icon>\r\n {{ 'system.health-status-down' | translate }}\r\n </ng-template>\r\n </vdr-chip>\r\n </td>\r\n <td class=\"align-middle left\">{{ row.result.message }}</td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n",
|
|
17
17
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
18
|
-
styles: [".system-status-header{display:flex;justify-content:space-between;align-items:flex-start}.system-status-header .status-detail{font-weight:bold}.system-status-header .last-checked{font-weight:normal;color:var(--color-grey-500)}\n"]
|
|
18
|
+
styles: [".system-status-header{display:flex;justify-content:space-between;align-items:flex-start}.system-status-header .status-detail{font-weight:bold;margin-right:6px}.system-status-header .last-checked{font-weight:normal;color:var(--color-grey-500)}\n"]
|
|
19
19
|
},] }
|
|
20
20
|
];
|
|
21
21
|
HealthCheckComponent.ctorParameters = function () { return [
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { DataService, Dialog, GetChannels, NotificationService } from '@vendure/admin-ui/core';
|
|
4
|
+
export declare class AssignToChannelDialogComponent implements OnInit, Dialog<GetChannels.Channels> {
|
|
5
|
+
private dataService;
|
|
6
|
+
private notificationService;
|
|
7
|
+
selectedChannel: GetChannels.Channels | null | undefined;
|
|
8
|
+
currentChannel: GetChannels.Channels;
|
|
9
|
+
availableChannels: GetChannels.Channels[];
|
|
10
|
+
resolveWith: (result?: GetChannels.Channels) => void;
|
|
11
|
+
selectedChannelIdControl: FormControl;
|
|
12
|
+
constructor(dataService: DataService, notificationService: NotificationService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
selectChannel(channelIds: string[]): void;
|
|
15
|
+
assign(): void;
|
|
16
|
+
cancel(): void;
|
|
17
|
+
}
|
package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DataService, Dialog, FacetWithValuesFragment } from '@vendure/admin-ui/core';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
interface ProductOrVariant {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
sku?: string;
|
|
8
|
+
facetValues: Array<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
code: string;
|
|
12
|
+
facet: Array<{
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
code: string;
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export declare class BulkAddFacetValuesDialogComponent implements OnInit, OnDestroy, Dialog<FacetWithValuesFragment[]> {
|
|
20
|
+
private dataService;
|
|
21
|
+
private changeDetectorRef;
|
|
22
|
+
resolveWith: (result?: FacetWithValuesFragment[]) => void;
|
|
23
|
+
mode: 'product' | 'variant';
|
|
24
|
+
ids?: string[];
|
|
25
|
+
facets: FacetWithValuesFragment[];
|
|
26
|
+
state: 'loading' | 'ready' | 'saving';
|
|
27
|
+
selectedValues: FacetWithValuesFragment[];
|
|
28
|
+
items: ProductOrVariant[];
|
|
29
|
+
facetValuesRemoved: boolean;
|
|
30
|
+
private subscription;
|
|
31
|
+
constructor(dataService: DataService, changeDetectorRef: ChangeDetectorRef);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
cancel(): void;
|
|
35
|
+
removeFacetValue(item: ProductOrVariant, facetValueId: string): void;
|
|
36
|
+
addFacetValues(): Subscription;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GET_PRODUCTS_WITH_FACET_VALUES_BY_IDS: import("graphql").DocumentNode;
|
|
2
|
+
export declare const GET_VARIANTS_WITH_FACET_VALUES_BY_IDS: import("graphql").DocumentNode;
|
|
3
|
+
export declare const UPDATE_PRODUCTS_BULK: import("graphql").DocumentNode;
|
|
4
|
+
export declare const UPDATE_VARIANTS_BULK: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BulkAction } from '@vendure/admin-ui/core';
|
|
2
|
+
import { CollectionPartial } from '../collection-tree/collection-tree.component';
|
|
3
|
+
import { CollectionListComponent } from './collection-list.component';
|
|
4
|
+
export declare const deleteCollectionsBulkAction: BulkAction<CollectionPartial, CollectionListComponent>;
|
|
5
|
+
export declare const assignCollectionsToChannelBulkAction: BulkAction<CollectionPartial, CollectionListComponent>;
|
|
6
|
+
export declare const removeCollectionsFromChannelBulkAction: BulkAction<CollectionPartial, CollectionListComponent>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { DataService, GetCollectionList, LanguageCode, ModalService, NotificationService, ServerConfigService } from '@vendure/admin-ui/core';
|
|
4
|
+
import { DataService, GetCollectionList, LanguageCode, ModalService, NotificationService, SelectionManager, ServerConfigService } from '@vendure/admin-ui/core';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { RearrangeEvent } from '../collection-tree/collection-tree.component';
|
|
6
|
+
import { CollectionPartial, RearrangeEvent } from '../collection-tree/collection-tree.component';
|
|
7
7
|
export declare class CollectionListComponent implements OnInit, OnDestroy {
|
|
8
8
|
private dataService;
|
|
9
9
|
private notificationService;
|
|
@@ -11,6 +11,7 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
|
|
|
11
11
|
private router;
|
|
12
12
|
private route;
|
|
13
13
|
private serverConfigService;
|
|
14
|
+
private changeDetectorRef;
|
|
14
15
|
filterTermControl: FormControl;
|
|
15
16
|
activeCollectionId$: Observable<string | null>;
|
|
16
17
|
activeCollectionTitle$: Observable<string>;
|
|
@@ -19,9 +20,10 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
|
|
|
19
20
|
contentLanguage$: Observable<LanguageCode>;
|
|
20
21
|
expandAll: boolean;
|
|
21
22
|
expandedIds: string[];
|
|
23
|
+
selectionManager: SelectionManager<CollectionPartial>;
|
|
22
24
|
private queryResult;
|
|
23
25
|
private destroy$;
|
|
24
|
-
constructor(dataService: DataService, notificationService: NotificationService, modalService: ModalService, router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService);
|
|
26
|
+
constructor(dataService: DataService, notificationService: NotificationService, modalService: ModalService, router: Router, route: ActivatedRoute, serverConfigService: ServerConfigService, changeDetectorRef: ChangeDetectorRef);
|
|
25
27
|
ngOnInit(): void;
|
|
26
28
|
ngOnDestroy(): void;
|
|
27
29
|
toggleExpandAll(): void;
|
|
@@ -29,5 +31,5 @@ export declare class CollectionListComponent implements OnInit, OnDestroy {
|
|
|
29
31
|
deleteCollection(id: string): void;
|
|
30
32
|
closeContents(): void;
|
|
31
33
|
setLanguage(code: LanguageCode): void;
|
|
32
|
-
|
|
34
|
+
refresh(): void;
|
|
33
35
|
}
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { DataService } from '@vendure/admin-ui/core';
|
|
4
|
+
import { DataService, SelectionManager } from '@vendure/admin-ui/core';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { RootNode, TreeNode } from './array-to-tree';
|
|
7
7
|
import { CollectionPartial, CollectionTreeComponent } from './collection-tree.component';
|
|
8
|
-
export declare class CollectionTreeNodeComponent implements OnInit, OnChanges {
|
|
8
|
+
export declare class CollectionTreeNodeComponent implements OnInit, OnChanges, OnDestroy {
|
|
9
9
|
private parent;
|
|
10
10
|
private root;
|
|
11
11
|
private dataService;
|
|
12
12
|
private router;
|
|
13
13
|
private route;
|
|
14
|
+
private changeDetectorRef;
|
|
14
15
|
depth: number;
|
|
15
16
|
parentName: string;
|
|
16
17
|
collectionTree: TreeNode<CollectionPartial>;
|
|
17
18
|
activeCollectionId: string;
|
|
18
19
|
expandAll: boolean;
|
|
20
|
+
selectionManager: SelectionManager<CollectionPartial>;
|
|
19
21
|
hasUpdatePermission$: Observable<boolean>;
|
|
20
22
|
hasDeletePermission$: Observable<boolean>;
|
|
21
23
|
moveListItems: Array<{
|
|
22
24
|
path: string;
|
|
23
25
|
id: string;
|
|
24
26
|
}>;
|
|
25
|
-
|
|
27
|
+
private subscription;
|
|
28
|
+
constructor(parent: CollectionTreeNodeComponent, root: CollectionTreeComponent, dataService: DataService, router: Router, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
26
29
|
ngOnInit(): void;
|
|
27
30
|
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
28
32
|
trackByFn(index: number, item: CollectionPartial): string;
|
|
29
33
|
toggleExpanded(collection: TreeNode<CollectionPartial>): void;
|
|
30
34
|
getMoveListItems(collection: CollectionPartial): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
2
|
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { Collection } from '@vendure/admin-ui/core';
|
|
3
|
+
import { Collection, SelectionManager } from '@vendure/admin-ui/core';
|
|
4
4
|
import { RootNode } from './array-to-tree';
|
|
5
5
|
export declare type RearrangeEvent = {
|
|
6
6
|
collectionId: string;
|
|
@@ -13,6 +13,7 @@ export declare class CollectionTreeComponent implements OnChanges {
|
|
|
13
13
|
activeCollectionId: string;
|
|
14
14
|
expandAll: boolean;
|
|
15
15
|
expandedIds: string[];
|
|
16
|
+
selectionManager: SelectionManager<CollectionPartial>;
|
|
16
17
|
rearrange: EventEmitter<RearrangeEvent>;
|
|
17
18
|
deleteCollection: EventEmitter<string>;
|
|
18
19
|
collectionTree: RootNode<CollectionPartial>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BulkAction, GetFacetList } from '@vendure/admin-ui/core';
|
|
2
|
+
import { FacetListComponent } from './facet-list.component';
|
|
3
|
+
export declare const deleteFacetsBulkAction: BulkAction<GetFacetList.Items, FacetListComponent>;
|
|
4
|
+
export declare const assignFacetsToChannelBulkAction: BulkAction<GetFacetList.Items, FacetListComponent>;
|
|
5
|
+
export declare const removeFacetsFromChannelBulkAction: BulkAction<GetFacetList.Items, FacetListComponent>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { BaseListComponent, DataService, GetFacetList, LanguageCode, ModalService, NotificationService, ServerConfigService } from '@vendure/admin-ui/core';
|
|
4
|
+
import { BaseListComponent, DataService, GetFacetList, LanguageCode, ModalService, NotificationService, SelectionManager, ServerConfigService } from '@vendure/admin-ui/core';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
export declare class FacetListComponent extends BaseListComponent<GetFacetList.Query, GetFacetList.Items> implements OnInit {
|
|
7
7
|
private dataService;
|
|
@@ -15,6 +15,7 @@ export declare class FacetListComponent extends BaseListComponent<GetFacetList.Q
|
|
|
15
15
|
displayLimit: {
|
|
16
16
|
[id: string]: number;
|
|
17
17
|
};
|
|
18
|
+
selectionManager: SelectionManager<GetFacetList.Items>;
|
|
18
19
|
constructor(dataService: DataService, modalService: ModalService, notificationService: NotificationService, serverConfigService: ServerConfigService, router: Router, route: ActivatedRoute);
|
|
19
20
|
ngOnInit(): void;
|
|
20
21
|
toggleDisplayLimit(facet: GetFacetList.Items): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BulkAction, SearchProducts } from '@vendure/admin-ui/core';
|
|
2
|
+
import { ProductListComponent } from './product-list.component';
|
|
3
|
+
export declare const deleteProductsBulkAction: BulkAction<SearchProducts.Items, ProductListComponent>;
|
|
4
|
+
export declare const assignProductsToChannelBulkAction: BulkAction<SearchProducts.Items, ProductListComponent>;
|
|
5
|
+
export declare const removeProductsFromChannelBulkAction: BulkAction<SearchProducts.Items, ProductListComponent>;
|
|
6
|
+
export declare const assignFacetValuesToProductsBulkAction: BulkAction<SearchProducts.Items, ProductListComponent>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { BaseListComponent, DataService, JobQueueService, LanguageCode, ModalService, NotificationService, SearchProducts, ServerConfigService } from '@vendure/admin-ui/core';
|
|
3
|
+
import { BaseListComponent, DataService, JobQueueService, LanguageCode, ModalService, NotificationService, SearchProducts, SelectionManager, ServerConfigService } from '@vendure/admin-ui/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
export declare class ProductListComponent extends BaseListComponent<SearchProducts.Query, SearchProducts.Items, SearchProducts.Variables> implements OnInit, AfterViewInit {
|
|
6
6
|
private dataService;
|
|
@@ -16,6 +16,7 @@ export declare class ProductListComponent extends BaseListComponent<SearchProduc
|
|
|
16
16
|
availableLanguages$: Observable<LanguageCode[]>;
|
|
17
17
|
contentLanguage$: Observable<LanguageCode>;
|
|
18
18
|
pendingSearchIndexUpdates: number;
|
|
19
|
+
selectionManager: SelectionManager<SearchProducts.Items>;
|
|
19
20
|
private productSearchInput;
|
|
20
21
|
constructor(dataService: DataService, modalService: ModalService, notificationService: NotificationService, jobQueueService: JobQueueService, serverConfigService: ServerConfigService, router: Router, route: ActivatedRoute);
|
|
21
22
|
ngOnInit(): void;
|
package/catalog/public_api.d.ts
CHANGED
|
@@ -5,18 +5,24 @@ export * from './components/asset-detail/asset-detail.component';
|
|
|
5
5
|
export * from './components/asset-list/asset-list.component';
|
|
6
6
|
export * from './components/assets/assets.component';
|
|
7
7
|
export * from './components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component';
|
|
8
|
+
export * from './components/assign-to-channel-dialog/assign-to-channel-dialog.component';
|
|
9
|
+
export * from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component';
|
|
10
|
+
export * from './components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql';
|
|
8
11
|
export * from './components/collection-contents/collection-contents.component';
|
|
9
12
|
export * from './components/collection-detail/collection-detail.component';
|
|
13
|
+
export * from './components/collection-list/collection-list-bulk-actions';
|
|
10
14
|
export * from './components/collection-list/collection-list.component';
|
|
11
15
|
export * from './components/collection-tree/array-to-tree';
|
|
12
16
|
export * from './components/collection-tree/collection-tree-node.component';
|
|
13
17
|
export * from './components/collection-tree/collection-tree.component';
|
|
14
18
|
export * from './components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component';
|
|
15
19
|
export * from './components/facet-detail/facet-detail.component';
|
|
20
|
+
export * from './components/facet-list/facet-list-bulk-actions';
|
|
16
21
|
export * from './components/facet-list/facet-list.component';
|
|
17
22
|
export * from './components/generate-product-variants/generate-product-variants.component';
|
|
18
23
|
export * from './components/option-value-input/option-value-input.component';
|
|
19
24
|
export * from './components/product-detail/product-detail.component';
|
|
25
|
+
export * from './components/product-list/product-list-bulk-actions';
|
|
20
26
|
export * from './components/product-list/product-list.component';
|
|
21
27
|
export * from './components/product-options-editor/product-options-editor.component';
|
|
22
28
|
export * from './components/product-variants-editor/product-variants-editor.component';
|