@vendure/admin-ui 1.7.4 → 1.8.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/README.md +49 -0
- package/angular.json +196 -0
- package/i18n-coverage.json +71 -0
- package/package/bundles/vendure-admin-ui-catalog.umd.js +5689 -0
- package/package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -0
- package/package/bundles/vendure-admin-ui-core.umd.js +16863 -0
- package/package/bundles/vendure-admin-ui-core.umd.js.map +1 -0
- package/package/bundles/vendure-admin-ui-customer.umd.js +1680 -0
- package/package/bundles/vendure-admin-ui-customer.umd.js.map +1 -0
- package/package/bundles/vendure-admin-ui-dashboard.umd.js +759 -0
- package/package/bundles/vendure-admin-ui-dashboard.umd.js.map +1 -0
- package/{bundles → package/bundles}/vendure-admin-ui-login.umd.js +0 -0
- package/{bundles → package/bundles}/vendure-admin-ui-login.umd.js.map +0 -0
- package/{bundles → package/bundles}/vendure-admin-ui-marketing.umd.js +0 -0
- package/{bundles → package/bundles}/vendure-admin-ui-marketing.umd.js.map +0 -0
- package/package/bundles/vendure-admin-ui-order.umd.js +4028 -0
- package/package/bundles/vendure-admin-ui-order.umd.js.map +1 -0
- package/package/bundles/vendure-admin-ui-settings.umd.js +3700 -0
- package/package/bundles/vendure-admin-ui-settings.umd.js.map +1 -0
- package/package/bundles/vendure-admin-ui-system.umd.js +524 -0
- package/{bundles → package/bundles}/vendure-admin-ui-system.umd.js.map +0 -0
- package/{bundles → package/bundles}/vendure-admin-ui.umd.js +0 -0
- package/{bundles → package/bundles}/vendure-admin-ui.umd.js.map +0 -0
- package/package/catalog/catalog.module.d.ts +5 -0
- package/{catalog → package/catalog}/catalog.routes.d.ts +0 -0
- package/{catalog → package/catalog}/components/apply-facet-dialog/apply-facet-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/asset-detail/asset-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/asset-list/asset-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/assets/assets.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.d.ts +0 -0
- package/package/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.d.ts +17 -0
- package/package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +38 -0
- package/package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.d.ts +4 -0
- package/{catalog → package/catalog}/components/collection-contents/collection-contents.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/collection-detail/collection-detail.component.d.ts +0 -0
- package/package/catalog/components/collection-list/collection-list-bulk-actions.d.ts +6 -0
- package/package/catalog/components/collection-list/collection-list.component.d.ts +35 -0
- package/{catalog → package/catalog}/components/collection-tree/array-to-tree.d.ts +0 -0
- package/package/catalog/components/collection-tree/collection-tree-node.component.d.ts +40 -0
- package/package/catalog/components/collection-tree/collection-tree.component.d.ts +36 -0
- package/{catalog → package/catalog}/components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/facet-detail/facet-detail.component.d.ts +0 -0
- package/package/catalog/components/facet-list/facet-list-bulk-actions.d.ts +5 -0
- package/package/catalog/components/facet-list/facet-list.component.d.ts +25 -0
- package/{catalog → package/catalog}/components/generate-product-variants/generate-product-variants.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/option-value-input/option-value-input.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-detail/product-detail.component.d.ts +0 -0
- package/package/catalog/components/product-list/product-list-bulk-actions.d.ts +6 -0
- package/package/catalog/components/product-list/product-list.component.d.ts +30 -0
- package/{catalog → package/catalog}/components/product-options-editor/product-options-editor.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-variants-editor/product-variants-editor.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-variants-list/product-variants-list.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/product-variants-table/product-variants-table.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/update-product-option-dialog/update-product-option-dialog.component.d.ts +0 -0
- package/{catalog → package/catalog}/components/variant-price-detail/variant-price-detail.component.d.ts +0 -0
- package/{catalog → package/catalog}/package.json +0 -0
- package/{catalog → package/catalog}/providers/product-detail/product-detail.service.d.ts +0 -0
- package/{catalog → package/catalog}/providers/product-detail/replace-last.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/asset-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/collection-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/facet-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/product-resolver.d.ts +0 -0
- package/{catalog → package/catalog}/providers/routing/product-variants-resolver.d.ts +0 -0
- package/package/catalog/public_api.d.ts +39 -0
- package/{catalog → package/catalog}/vendure-admin-ui-catalog.d.ts +0 -0
- package/package/catalog/vendure-admin-ui-catalog.metadata.json +1 -0
- package/{core → package/core}/app.component.d.ts +0 -0
- package/{core → package/core}/app.component.module.d.ts +0 -0
- package/{core → package/core}/app.config.d.ts +0 -0
- package/{core → package/core}/common/base-detail.component.d.ts +0 -0
- package/{core → package/core}/common/base-entity-resolver.d.ts +0 -0
- package/{core → package/core}/common/base-list.component.d.ts +0 -0
- package/package/core/common/component-registry-types.d.ts +56 -0
- package/{core → package/core}/common/deactivate-aware.d.ts +0 -0
- package/{core → package/core}/common/detail-breadcrumb.d.ts +0 -0
- package/package/core/common/generated-types.d.ts +9748 -0
- package/{core → package/core}/common/introspection-result-wrapper.d.ts +0 -0
- package/{core → package/core}/common/introspection-result.d.ts +0 -0
- package/{core → package/core}/common/single-search-selection-model.d.ts +0 -0
- package/package/core/common/utilities/bulk-action-utils.d.ts +19 -0
- package/{core → package/core}/common/utilities/configurable-operation-utils.d.ts +0 -0
- package/{core → package/core}/common/utilities/create-updated-translatable.d.ts +0 -0
- package/{core → package/core}/common/utilities/find-translation.d.ts +0 -0
- package/{core → package/core}/common/utilities/flatten-facet-values.d.ts +0 -0
- package/{core → package/core}/common/utilities/get-default-ui-language.d.ts +0 -0
- package/{core → package/core}/common/utilities/interpolate-description.d.ts +0 -0
- package/package/core/common/utilities/selection-manager.d.ts +30 -0
- package/{core → package/core}/common/utilities/string-to-color.d.ts +0 -0
- package/package/core/common/version.d.ts +1 -0
- package/{core → package/core}/components/app-shell/app-shell.component.d.ts +0 -0
- package/{core → package/core}/components/breadcrumb/breadcrumb.component.d.ts +0 -0
- package/{core → package/core}/components/channel-switcher/channel-switcher.component.d.ts +0 -0
- package/{core → package/core}/components/main-nav/main-nav.component.d.ts +0 -0
- package/{core → package/core}/components/notification/notification.component.d.ts +0 -0
- package/{core → package/core}/components/overlay-host/overlay-host.component.d.ts +0 -0
- package/{core → package/core}/components/theme-switcher/theme-switcher.component.d.ts +0 -0
- package/{core → package/core}/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.d.ts +0 -0
- package/{core → package/core}/components/user-menu/user-menu.component.d.ts +0 -0
- package/{core → package/core}/core.module.d.ts +0 -0
- package/{core → package/core}/data/check-jobs-link.d.ts +0 -0
- package/{core → package/core}/data/client-state/client-defaults.d.ts +0 -0
- package/{core → package/core}/data/client-state/client-resolvers.d.ts +0 -0
- package/{core → package/core}/data/data.module.d.ts +0 -0
- package/{core → package/core}/data/definitions/administrator-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/auth-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/client-definitions.d.ts +0 -0
- package/package/core/data/definitions/collection-definitions.d.ts +13 -0
- package/{core → package/core}/data/definitions/customer-definitions.d.ts +0 -0
- package/package/core/data/definitions/facet-definitions.d.ts +13 -0
- package/package/core/data/definitions/order-definitions.d.ts +39 -0
- package/package/core/data/definitions/product-definitions.d.ts +46 -0
- package/{core → package/core}/data/definitions/promotion-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/settings-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/shared-definitions.d.ts +0 -0
- package/{core → package/core}/data/definitions/shipping-definitions.d.ts +0 -0
- package/{core → package/core}/data/omit-typename-link.d.ts +0 -0
- package/{core → package/core}/data/providers/administrator-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/auth-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/base-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/client-data.service.d.ts +0 -0
- package/package/core/data/providers/collection-data.service.d.ts +28 -0
- package/{core → package/core}/data/providers/customer-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/data.service.d.ts +0 -0
- package/package/core/data/providers/facet-data.service.d.ts +24 -0
- package/{core → package/core}/data/providers/fetch-adapter.d.ts +0 -0
- package/{core → package/core}/data/providers/interceptor.d.ts +0 -0
- package/package/core/data/providers/order-data.service.d.ts +52 -0
- package/package/core/data/providers/product-data.service.d.ts +82 -0
- package/{core → package/core}/data/providers/promotion-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/settings-data.service.d.ts +0 -0
- package/{core → package/core}/data/providers/shipping-method-data.service.d.ts +0 -0
- package/{core → package/core}/data/query-result.d.ts +0 -0
- package/{core → package/core}/data/server-config.d.ts +0 -0
- package/{core → package/core}/data/utils/add-custom-fields.d.ts +0 -0
- package/{core → package/core}/data/utils/get-server-location.d.ts +0 -0
- package/{core → package/core}/data/utils/remove-readonly-custom-fields.d.ts +0 -0
- package/{core → package/core}/data/utils/transform-relation-custom-field-inputs.d.ts +0 -0
- package/{core → package/core}/package.json +0 -0
- package/{core → package/core}/providers/auth/auth.service.d.ts +0 -0
- package/package/core/providers/bulk-action-registry/bulk-action-registry.service.d.ts +6 -0
- package/package/core/providers/bulk-action-registry/bulk-action-types.d.ts +149 -0
- package/package/core/providers/bulk-action-registry/register-bulk-action.d.ts +53 -0
- package/{core → package/core}/providers/component-registry/component-registry.service.d.ts +0 -0
- package/{core → package/core}/providers/custom-detail-component/custom-detail-component-types.d.ts +0 -0
- package/{core → package/core}/providers/custom-detail-component/custom-detail-component.service.d.ts +0 -0
- package/{core → package/core}/providers/custom-field-component/custom-field-component.service.d.ts +0 -0
- package/{core → package/core}/providers/dashboard-widget/dashboard-widget-types.d.ts +0 -0
- package/{core → package/core}/providers/dashboard-widget/dashboard-widget.service.d.ts +0 -0
- package/{core → package/core}/providers/dashboard-widget/register-dashboard-widget.d.ts +0 -0
- package/{core → package/core}/providers/guard/auth.guard.d.ts +0 -0
- package/{core → package/core}/providers/health-check/health-check.service.d.ts +0 -0
- package/{core → package/core}/providers/i18n/custom-http-loader.d.ts +0 -0
- package/{core → package/core}/providers/i18n/custom-message-format-compiler.d.ts +0 -0
- package/{core → package/core}/providers/i18n/i18n.service.d.ts +0 -0
- package/{core → package/core}/providers/job-queue/job-queue.service.d.ts +0 -0
- package/{core → package/core}/providers/local-storage/local-storage.service.d.ts +0 -0
- package/package/core/providers/modal/modal.service.d.ts +134 -0
- package/package/core/providers/nav-builder/nav-builder-types.d.ts +92 -0
- package/{core → package/core}/providers/nav-builder/nav-builder.service.d.ts +0 -0
- package/{core → package/core}/providers/notification/notification.service.d.ts +0 -0
- package/{core → package/core}/providers/overlay-host/overlay-host.service.d.ts +0 -0
- package/package/core/public_api.d.ts +239 -0
- package/{core → package/core}/shared/components/action-bar/action-bar.component.d.ts +0 -0
- package/{core → package/core}/shared/components/action-bar-items/action-bar-items.component.d.ts +0 -0
- package/{core → package/core}/shared/components/address-form/address-form.component.d.ts +0 -0
- package/{core → package/core}/shared/components/affixed-input/affixed-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/affixed-input/percentage-suffix-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-file-input/asset-file-input.component.d.ts +0 -0
- package/package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +67 -0
- package/{core → package/core}/shared/components/asset-picker-dialog/asset-picker-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-preview/asset-preview.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-preview-dialog/asset-preview-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-preview-links/asset-preview-links.component.d.ts +0 -0
- package/{core → package/core}/shared/components/asset-search-input/asset-search-input.component.d.ts +0 -0
- package/package/core/shared/components/bulk-action-menu/bulk-action-menu.component.d.ts +29 -0
- package/{core → package/core}/shared/components/channel-assignment-control/channel-assignment-control.component.d.ts +0 -0
- package/{core → package/core}/shared/components/channel-badge/channel-badge.component.d.ts +0 -0
- package/{core → package/core}/shared/components/chip/chip.component.d.ts +0 -0
- package/{core → package/core}/shared/components/configurable-input/configurable-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/currency-input/currency-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/custom-detail-component-host/custom-detail-component-host.component.d.ts +0 -0
- package/{core → package/core}/shared/components/custom-field-control/custom-field-control.component.d.ts +0 -0
- package/{core → package/core}/shared/components/customer-label/customer-label.component.d.ts +0 -0
- package/{core → package/core}/shared/components/data-table/data-table-column.component.d.ts +0 -0
- package/package/core/shared/components/data-table/data-table.component.d.ts +101 -0
- package/{core → package/core}/shared/components/datetime-picker/constants.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/datetime-picker.component.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/datetime-picker.service.d.ts +0 -0
- package/{core → package/core}/shared/components/datetime-picker/types.d.ts +0 -0
- package/{core → package/core}/shared/components/dropdown/dropdown-item.directive.d.ts +0 -0
- package/package/core/shared/components/dropdown/dropdown-menu.component.d.ts +31 -0
- package/{core → package/core}/shared/components/dropdown/dropdown-trigger.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/dropdown/dropdown.component.d.ts +0 -0
- package/{core → package/core}/shared/components/edit-note-dialog/edit-note-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/empty-placeholder/empty-placeholder.component.d.ts +0 -0
- package/{core → package/core}/shared/components/entity-info/entity-info.component.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/extension-host-config.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/extension-host.component.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/extension-host.service.d.ts +0 -0
- package/{core → package/core}/shared/components/extension-host/host-external-frame.d.ts +0 -0
- package/{core → package/core}/shared/components/facet-value-chip/facet-value-chip.component.d.ts +0 -0
- package/{core → package/core}/shared/components/facet-value-selector/facet-value-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/focal-point-control/focal-point-control.component.d.ts +0 -0
- package/{core → package/core}/shared/components/form-field/form-field-control.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/form-field/form-field.component.d.ts +0 -0
- package/{core → package/core}/shared/components/form-item/form-item.component.d.ts +0 -0
- package/{core → package/core}/shared/components/formatted-address/formatted-address.component.d.ts +0 -0
- package/{core → package/core}/shared/components/help-tooltip/help-tooltip.component.d.ts +0 -0
- package/{core → package/core}/shared/components/history-entry-detail/history-entry-detail.component.d.ts +0 -0
- package/{core → package/core}/shared/components/items-per-page-controls/items-per-page-controls.component.d.ts +0 -0
- package/{core → package/core}/shared/components/labeled-data/labeled-data.component.d.ts +0 -0
- package/{core → package/core}/shared/components/language-selector/language-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/manage-tags-dialog/manage-tags-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/dialog-buttons.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/dialog-component-outlet.component.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/dialog-title.directive.d.ts +0 -0
- package/{core → package/core}/shared/components/modal-dialog/modal-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/object-tree/object-tree.component.d.ts +0 -0
- package/{core → package/core}/shared/components/order-state-label/order-state-label.component.d.ts +0 -0
- package/{core → package/core}/shared/components/pagination-controls/pagination-controls.component.d.ts +0 -0
- package/{core → package/core}/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/product-search-input/product-search-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/product-selector/product-selector.component.d.ts +0 -0
- package/package/core/shared/components/radio-card/radio-card-fieldset.component.d.ts +21 -0
- package/package/core/shared/components/radio-card/radio-card.component.d.ts +19 -0
- package/{core → package/core}/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/rich-text-editor/link-dialog/link-dialog.component.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.d.ts +28 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.d.ts +31 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/custom-nodes.d.ts +4 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +8 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/keymap.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +4 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +16 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.d.ts +9 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/menu/menu.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.d.ts +14 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.d.ts +7 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +5 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.d.ts +7 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.d.ts +13 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +25 -0
- package/package/core/shared/components/rich-text-editor/prosemirror/types.d.ts +9 -0
- package/{core → package/core}/shared/components/rich-text-editor/prosemirror/utils.d.ts +0 -0
- package/package/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.d.ts +18 -0
- package/package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +39 -0
- package/{core → package/core}/shared/components/select-toggle/select-toggle.component.d.ts +0 -0
- package/{core → package/core}/shared/components/simple-dialog/simple-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/components/status-badge/status-badge.component.d.ts +0 -0
- package/{core → package/core}/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.d.ts +0 -0
- package/{core → package/core}/shared/components/table-row-action/table-row-action.component.d.ts +0 -0
- package/{core → package/core}/shared/components/tag-selector/tag-selector.component.d.ts +0 -0
- package/{core → package/core}/shared/components/timeline-entry/timeline-entry.component.d.ts +0 -0
- package/{core → package/core}/shared/components/title-input/title-input.component.d.ts +0 -0
- package/{core → package/core}/shared/components/ui-extension-point/ui-extension-point.component.d.ts +0 -0
- package/{core → package/core}/shared/directives/disabled.directive.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-default-channel-active.directive.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-directive-base.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-multichannel.directive.d.ts +0 -0
- package/{core → package/core}/shared/directives/if-permissions.directive.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.d.ts +0 -0
- package/package/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.d.ts +27 -0
- package/package/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.d.ts +19 -0
- package/package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +20 -0
- package/{core → package/core}/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/date-form-input/date-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/number-form-input/number-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/password-form-input/password-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.d.ts +0 -0
- package/package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +90 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/relation-form-input/relation-selector-dialog/relation-selector-dialog.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/text-form-input/text-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.d.ts +0 -0
- package/{core → package/core}/shared/pipes/asset-preview.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/channel-label.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/custom-field-label.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/duration.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/file-size.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/has-permission.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-base.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-currency-name.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-currency.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-date.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-language-name.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/locale-region-name.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/sentence-case.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/sort.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/state-i18n-token.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/string-to-color.pipe.d.ts +0 -0
- package/{core → package/core}/shared/pipes/time-ago.pipe.d.ts +0 -0
- package/{core → package/core}/shared/providers/routing/can-deactivate-detail-guard.d.ts +0 -0
- package/{core → package/core}/shared/shared.module.d.ts +0 -0
- package/{core → package/core}/validators/unicode-pattern.validator.d.ts +0 -0
- package/{core → package/core}/vendure-admin-ui-core.d.ts +0 -0
- package/package/core/vendure-admin-ui-core.metadata.json +1 -0
- package/{customer → package/customer}/components/add-customer-to-group-dialog/add-customer-to-group-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/components/address-card/address-card.component.d.ts +0 -0
- package/{customer → package/customer}/components/address-detail-dialog/address-detail-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-detail/customer-detail.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-group-detail-dialog/customer-group-detail-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-group-list/customer-group-list.component.d.ts +0 -0
- package/package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +44 -0
- package/{customer → package/customer}/components/customer-history/customer-history.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-list/customer-list.component.d.ts +0 -0
- package/{customer → package/customer}/components/customer-status-label/customer-status-label.component.d.ts +0 -0
- package/{customer → package/customer}/components/select-customer-group-dialog/select-customer-group-dialog.component.d.ts +0 -0
- package/{customer → package/customer}/customer.module.d.ts +0 -0
- package/{customer → package/customer}/customer.routes.d.ts +0 -0
- package/{customer → package/customer}/package.json +0 -0
- package/{customer → package/customer}/providers/routing/customer-resolver.d.ts +0 -0
- package/{customer → package/customer}/public_api.d.ts +0 -0
- package/{customer → package/customer}/vendure-admin-ui-customer.d.ts +0 -0
- package/package/customer/vendure-admin-ui-customer.metadata.json +1 -0
- package/{dashboard → package/dashboard}/components/dashboard/dashboard.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/components/dashboard-widget/dashboard-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/dashboard.module.d.ts +0 -0
- package/{dashboard → package/dashboard}/dashboard.routes.d.ts +0 -0
- package/{dashboard → package/dashboard}/default-widgets.d.ts +0 -0
- package/{dashboard → package/dashboard}/package.json +0 -0
- package/{dashboard → package/dashboard}/public_api.d.ts +0 -0
- package/{dashboard → package/dashboard}/vendure-admin-ui-dashboard.d.ts +0 -0
- package/{dashboard → package/dashboard}/vendure-admin-ui-dashboard.metadata.json +0 -0
- package/{dashboard → package/dashboard}/widgets/latest-orders-widget/latest-orders-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/order-summary-widget/order-summary-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/test-widget/test-widget.component.d.ts +0 -0
- package/{dashboard → package/dashboard}/widgets/welcome-widget/welcome-widget.component.d.ts +0 -0
- package/package/esm2015/catalog/catalog.module.js +85 -0
- package/{esm2015 → package/esm2015}/catalog/catalog.routes.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/apply-facet-dialog/apply-facet-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/asset-detail/asset-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/asset-list/asset-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/assets/assets.component.js +0 -0
- package/package/esm2015/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.js +112 -0
- package/package/esm2015/catalog/components/assign-to-channel-dialog/assign-to-channel-dialog.component.js +51 -0
- package/package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +89 -0
- package/package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.graphql.js +69 -0
- package/{esm2015 → package/esm2015}/catalog/components/collection-contents/collection-contents.component.js +0 -0
- package/package/esm2015/catalog/components/collection-detail/collection-detail.component.js +244 -0
- package/package/esm2015/catalog/components/collection-list/collection-list-bulk-actions.js +147 -0
- package/package/esm2015/catalog/components/collection-list/collection-list.component.js +154 -0
- package/{esm2015 → package/esm2015}/catalog/components/collection-tree/array-to-tree.js +0 -0
- package/package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +126 -0
- package/package/esm2015/catalog/components/collection-tree/collection-tree.component.js +77 -0
- package/{esm2015 → package/esm2015}/catalog/components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/facet-detail/facet-detail.component.js +0 -0
- package/package/esm2015/catalog/components/facet-list/facet-list-bulk-actions.js +208 -0
- package/package/esm2015/catalog/components/facet-list/facet-list.component.js +116 -0
- package/{esm2015 → package/esm2015}/catalog/components/generate-product-variants/generate-product-variants.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/option-value-input/option-value-input.component.js +0 -0
- package/package/esm2015/catalog/components/product-detail/product-detail.component.js +527 -0
- package/package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +173 -0
- package/package/esm2015/catalog/components/product-list/product-list.component.js +158 -0
- package/{esm2015 → package/esm2015}/catalog/components/product-options-editor/product-options-editor.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/product-variants-editor/product-variants-editor.component.js +0 -0
- package/package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +214 -0
- package/{esm2015 → package/esm2015}/catalog/components/product-variants-table/product-variants-table.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/update-product-option-dialog/update-product-option-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/components/variant-price-detail/variant-price-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/providers/product-detail/product-detail.service.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/providers/product-detail/replace-last.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/providers/routing/asset-resolver.js +0 -0
- package/package/esm2015/catalog/providers/routing/collection-resolver.js +39 -0
- package/{esm2015 → package/esm2015}/catalog/providers/routing/facet-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/providers/routing/product-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/catalog/providers/routing/product-variants-resolver.js +0 -0
- package/package/esm2015/catalog/public_api.js +41 -0
- package/{esm2015 → package/esm2015}/catalog/vendure-admin-ui-catalog.js +0 -0
- package/{esm2015 → package/esm2015}/core/app.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/app.component.module.js +0 -0
- package/{esm2015 → package/esm2015}/core/app.config.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/base-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/base-entity-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/base-list.component.js +0 -0
- package/package/esm2015/core/common/component-registry-types.js +2 -0
- package/{esm2015 → package/esm2015}/core/common/deactivate-aware.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/detail-breadcrumb.js +0 -0
- package/package/esm2015/core/common/generated-types.js +987 -0
- package/{esm2015 → package/esm2015}/core/common/introspection-result-wrapper.js +0 -0
- package/package/esm2015/core/common/introspection-result.js +300 -0
- package/{esm2015 → package/esm2015}/core/common/single-search-selection-model.js +0 -0
- package/package/esm2015/core/common/utilities/bulk-action-utils.js +44 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/configurable-operation-utils.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/create-updated-translatable.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/find-translation.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/flatten-facet-values.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/get-default-ui-language.js +0 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/interpolate-description.js +0 -0
- package/package/esm2015/core/common/utilities/selection-manager.js +96 -0
- package/{esm2015 → package/esm2015}/core/common/utilities/string-to-color.js +0 -0
- package/package/esm2015/core/common/version.js +3 -0
- package/{esm2015 → package/esm2015}/core/components/app-shell/app-shell.component.js +0 -0
- package/package/esm2015/core/components/breadcrumb/breadcrumb.component.js +126 -0
- package/{esm2015 → package/esm2015}/core/components/channel-switcher/channel-switcher.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/components/main-nav/main-nav.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/components/notification/notification.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/components/overlay-host/overlay-host.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/components/theme-switcher/theme-switcher.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/components/user-menu/user-menu.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/core.module.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/check-jobs-link.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/client-state/client-defaults.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/client-state/client-resolvers.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/data.module.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/administrator-definitions.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/auth-definitions.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/client-definitions.js +0 -0
- package/package/esm2015/core/data/definitions/collection-definitions.js +173 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/customer-definitions.js +0 -0
- package/package/esm2015/core/data/definitions/facet-definitions.js +140 -0
- package/package/esm2015/core/data/definitions/order-definitions.js +585 -0
- package/package/esm2015/core/data/definitions/product-definitions.js +759 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/promotion-definitions.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/settings-definitions.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/shared-definitions.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/definitions/shipping-definitions.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/omit-typename-link.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/administrator-data.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/auth-data.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/base-data.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/client-data.service.js +0 -0
- package/package/esm2015/core/data/providers/collection-data.service.js +90 -0
- package/package/esm2015/core/data/providers/customer-data.service.js +121 -0
- package/{esm2015 → package/esm2015}/core/data/providers/data.service.js +0 -0
- package/package/esm2015/core/data/providers/facet-data.service.js +76 -0
- package/{esm2015 → package/esm2015}/core/data/providers/fetch-adapter.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/interceptor.js +0 -0
- package/package/esm2015/core/data/providers/order-data.service.js +139 -0
- package/package/esm2015/core/data/providers/product-data.service.js +240 -0
- package/{esm2015 → package/esm2015}/core/data/providers/promotion-data.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/settings-data.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/providers/shipping-method-data.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/query-result.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/server-config.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/utils/add-custom-fields.js +0 -0
- package/{esm2015 → package/esm2015}/core/data/utils/get-server-location.js +0 -0
- package/package/esm2015/core/data/utils/remove-readonly-custom-fields.js +95 -0
- package/{esm2015 → package/esm2015}/core/data/utils/transform-relation-custom-field-inputs.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/auth/auth.service.js +0 -0
- package/package/esm2015/core/providers/bulk-action-registry/bulk-action-registry.service.js +27 -0
- package/package/esm2015/core/providers/bulk-action-registry/bulk-action-types.js +2 -0
- package/package/esm2015/core/providers/bulk-action-registry/register-bulk-action.js +63 -0
- package/{esm2015 → package/esm2015}/core/providers/component-registry/component-registry.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/custom-detail-component/custom-detail-component-types.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/custom-detail-component/custom-detail-component.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/custom-field-component/custom-field-component.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/dashboard-widget/dashboard-widget-types.js +0 -0
- package/package/esm2015/core/providers/dashboard-widget/dashboard-widget.service.js +94 -0
- package/{esm2015 → package/esm2015}/core/providers/dashboard-widget/register-dashboard-widget.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/guard/auth.guard.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/health-check/health-check.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/i18n/custom-http-loader.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/i18n/custom-message-format-compiler.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/i18n/i18n.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/job-queue/job-queue.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/local-storage/local-storage.service.js +0 -0
- package/package/esm2015/core/providers/modal/modal.service.js +101 -0
- package/package/esm2015/core/providers/nav-builder/nav-builder-types.js +2 -0
- package/{esm2015 → package/esm2015}/core/providers/nav-builder/nav-builder.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/notification/notification.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/providers/overlay-host/overlay-host.service.js +0 -0
- package/package/esm2015/core/public_api.js +241 -0
- package/package/esm2015/core/shared/components/action-bar/action-bar.component.js +43 -0
- package/{esm2015 → package/esm2015}/core/shared/components/action-bar-items/action-bar-items.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/address-form/address-form.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/affixed-input/affixed-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/affixed-input/percentage-suffix-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/asset-file-input/asset-file-input.component.js +0 -0
- package/package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +84 -0
- package/{esm2015 → package/esm2015}/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/asset-preview/asset-preview.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/asset-preview-dialog/asset-preview-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/asset-preview-links/asset-preview-links.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/asset-search-input/asset-search-input.component.js +0 -0
- package/package/esm2015/core/shared/components/bulk-action-menu/bulk-action-menu.component.js +99 -0
- package/{esm2015 → package/esm2015}/core/shared/components/channel-assignment-control/channel-assignment-control.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/channel-badge/channel-badge.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/chip/chip.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/configurable-input/configurable-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/currency-input/currency-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/custom-field-control/custom-field-control.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/customer-label/customer-label.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/data-table/data-table-column.component.js +0 -0
- package/package/esm2015/core/shared/components/data-table/data-table.component.js +162 -0
- package/{esm2015 → package/esm2015}/core/shared/components/datetime-picker/constants.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/datetime-picker/datetime-picker.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/datetime-picker/datetime-picker.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/datetime-picker/types.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/dropdown/dropdown-item.directive.js +0 -0
- package/package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +122 -0
- package/{esm2015 → package/esm2015}/core/shared/components/dropdown/dropdown-trigger.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/dropdown/dropdown.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/edit-note-dialog/edit-note-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/empty-placeholder/empty-placeholder.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/entity-info/entity-info.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/extension-host/extension-host-config.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/extension-host/extension-host.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/extension-host/extension-host.service.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/extension-host/host-external-frame.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/facet-value-chip/facet-value-chip.component.js +0 -0
- package/package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +117 -0
- package/{esm2015 → package/esm2015}/core/shared/components/focal-point-control/focal-point-control.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/form-field/form-field-control.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/form-field/form-field.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/form-item/form-item.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/formatted-address/formatted-address.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/help-tooltip/help-tooltip.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/history-entry-detail/history-entry-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/items-per-page-controls/items-per-page-controls.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/labeled-data/labeled-data.component.js +0 -0
- package/package/esm2015/core/shared/components/language-selector/language-selector.component.js +21 -0
- package/{esm2015 → package/esm2015}/core/shared/components/manage-tags-dialog/manage-tags-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/modal-dialog/dialog-buttons.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/modal-dialog/dialog-component-outlet.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/modal-dialog/dialog-title.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/modal-dialog/modal-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/object-tree/object-tree.component.js +0 -0
- package/package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +44 -0
- package/{esm2015 → package/esm2015}/core/shared/components/pagination-controls/pagination-controls.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.js +0 -0
- package/package/esm2015/core/shared/components/product-search-input/product-search-input.component.js +104 -0
- package/package/esm2015/core/shared/components/product-selector/product-selector.component.js +61 -0
- package/package/esm2015/core/shared/components/radio-card/radio-card-fieldset.component.js +57 -0
- package/package/esm2015/core/shared/components/radio-card/radio-card.component.js +54 -0
- package/package/esm2015/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.js +32 -0
- package/{esm2015 → package/esm2015}/core/shared/components/rich-text-editor/link-dialog/link-dialog.component.js +0 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.js +140 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.js +45 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/custom-nodes.js +60 -0
- package/{esm2015 → package/esm2015}/core/shared/components/rich-text-editor/prosemirror/inputrules.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/rich-text-editor/prosemirror/keymap.js +0 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/links.js +69 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.js +42 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-plugin.js +12 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu.js +247 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/sub-menu-with-icon.js +16 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/image-plugin.js +100 -0
- package/{esm2015 → package/esm2015}/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.js +0 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/raw-editor-plugin.js +97 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/plugins/tables-plugin.js +166 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +142 -0
- package/package/esm2015/core/shared/components/rich-text-editor/prosemirror/types.js +2 -0
- package/{esm2015 → package/esm2015}/core/shared/components/rich-text-editor/prosemirror/utils.js +0 -0
- package/package/esm2015/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.js +57 -0
- package/package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +97 -0
- package/{esm2015 → package/esm2015}/core/shared/components/select-toggle/select-toggle.component.js +0 -0
- package/package/esm2015/core/shared/components/simple-dialog/simple-dialog.component.js +21 -0
- package/{esm2015 → package/esm2015}/core/shared/components/status-badge/status-badge.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/table-row-action/table-row-action.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/tag-selector/tag-selector.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/timeline-entry/timeline-entry.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/title-input/title-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/components/ui-extension-point/ui-extension-point.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/directives/disabled.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/directives/if-default-channel-active.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/directives/if-directive-base.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/directives/if-multichannel.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/directives/if-permissions.directive.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.js +0 -0
- package/package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.js +59 -0
- package/package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.js +66 -0
- package/package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +88 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.js +0 -0
- package/package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +266 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.js +0 -0
- package/package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +136 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/relation-form-input/relation-selector-dialog/relation-selector-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/asset-preview.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/channel-label.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/custom-field-label.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/duration.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/file-size.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/has-permission.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/locale-base.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/locale-currency-name.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/locale-currency.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/locale-date.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/locale-language-name.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/locale-region-name.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/sentence-case.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/sort.pipe.js +0 -0
- package/package/esm2015/core/shared/pipes/state-i18n-token.pipe.js +47 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/string-to-color.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/pipes/time-ago.pipe.js +0 -0
- package/{esm2015 → package/esm2015}/core/shared/providers/routing/can-deactivate-detail-guard.js +0 -0
- package/package/esm2015/core/shared/shared.module.js +287 -0
- package/{esm2015 → package/esm2015}/core/validators/unicode-pattern.validator.js +0 -0
- package/{esm2015 → package/esm2015}/core/vendure-admin-ui-core.js +0 -0
- package/{esm2015 → package/esm2015}/customer/components/add-customer-to-group-dialog/add-customer-to-group-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/customer/components/address-card/address-card.component.js +0 -0
- package/{esm2015 → package/esm2015}/customer/components/address-detail-dialog/address-detail-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/customer/components/customer-detail/customer-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.js +0 -0
- package/package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +198 -0
- package/package/esm2015/customer/components/customer-group-member-list/customer-group-member-list.component.js +101 -0
- package/{esm2015 → package/esm2015}/customer/components/customer-history/customer-history.component.js +0 -0
- package/package/esm2015/customer/components/customer-list/customer-list.component.js +81 -0
- package/{esm2015 → package/esm2015}/customer/components/customer-status-label/customer-status-label.component.js +0 -0
- package/{esm2015 → package/esm2015}/customer/components/select-customer-group-dialog/select-customer-group-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/customer/customer.module.js +0 -0
- package/{esm2015 → package/esm2015}/customer/customer.routes.js +0 -0
- package/{esm2015 → package/esm2015}/customer/providers/routing/customer-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/customer/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/customer/vendure-admin-ui-customer.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/components/dashboard/dashboard.component.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/components/dashboard-widget/dashboard-widget.component.js +0 -0
- package/package/esm2015/dashboard/dashboard.module.js +29 -0
- package/{esm2015 → package/esm2015}/dashboard/dashboard.routes.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/default-widgets.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/vendure-admin-ui-dashboard.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/widgets/order-summary-widget/order-summary-widget.component.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/widgets/test-widget/test-widget.component.js +0 -0
- package/{esm2015 → package/esm2015}/dashboard/widgets/welcome-widget/welcome-widget.component.js +0 -0
- package/{esm2015 → package/esm2015}/login/components/login/login.component.js +0 -0
- package/{esm2015 → package/esm2015}/login/login.module.js +0 -0
- package/{esm2015 → package/esm2015}/login/login.routes.js +0 -0
- package/{esm2015 → package/esm2015}/login/providers/login.guard.js +0 -0
- package/{esm2015 → package/esm2015}/login/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/login/vendure-admin-ui-login.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/components/promotion-detail/promotion-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/components/promotion-list/promotion-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/marketing.module.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/marketing.routes.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/providers/routing/promotion-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/marketing/vendure-admin-ui-marketing.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/cancel-order-dialog/cancel-order-dialog.component.js +0 -0
- package/package/esm2015/order/components/coupon-code-selector/coupon-code-selector.component.js +42 -0
- package/package/esm2015/order/components/draft-order-detail/draft-order-detail.component.js +195 -0
- package/package/esm2015/order/components/draft-order-variant-selector/draft-order-variant-selector.component.js +59 -0
- package/{esm2015 → package/esm2015}/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/fulfillment-card/fulfillment-card.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/fulfillment-detail/fulfillment-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/fulfillment-state-label/fulfillment-state-label.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/line-fulfillment/line-fulfillment.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/line-refunds/line-refunds.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/modification-detail/modification-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-custom-fields-card/order-custom-fields-card.component.js +0 -0
- package/package/esm2015/order/components/order-detail/order-detail.component.js +550 -0
- package/package/esm2015/order/components/order-editor/order-editor.component.js +375 -0
- package/{esm2015 → package/esm2015}/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-history/order-history.component.js +0 -0
- package/package/esm2015/order/components/order-list/order-list.component.js +211 -0
- package/{esm2015 → package/esm2015}/order/components/order-payment-card/order-payment-card.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-process-graph/constants.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-process-graph/order-process-edge.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-process-graph/order-process-graph.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-process-graph/order-process-node.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-process-graph/types.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-process-graph-dialog/order-process-graph-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/order-state-select-dialog/order-state-select-dialog.component.js +0 -0
- package/package/esm2015/order/components/order-table/order-table.component.js +87 -0
- package/{esm2015 → package/esm2015}/order/components/payment-detail/payment-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/payment-state-label/payment-state-label.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/refund-order-dialog/refund-order-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/refund-state-label/refund-state-label.component.js +0 -0
- package/package/esm2015/order/components/select-address-dialog/select-address-dialog.component.js +91 -0
- package/package/esm2015/order/components/select-address-dialog/select-address-dialog.graphql.js +14 -0
- package/package/esm2015/order/components/select-customer-dialog/select-customer-dialog.component.js +59 -0
- package/package/esm2015/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.js +30 -0
- package/{esm2015 → package/esm2015}/order/components/settle-refund-dialog/settle-refund-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/order/components/simple-item-list/simple-item-list.component.js +0 -0
- package/package/esm2015/order/order.module.js +82 -0
- package/package/esm2015/order/order.routes.js +73 -0
- package/{esm2015 → package/esm2015}/order/providers/order-transition.service.js +0 -0
- package/package/esm2015/order/providers/routing/order-resolver.js +50 -0
- package/package/esm2015/order/providers/routing/order.guard.js +41 -0
- package/package/esm2015/order/public_api.js +44 -0
- package/{esm2015 → package/esm2015}/order/vendure-admin-ui-order.js +0 -0
- package/{esm2015 → package/esm2015}/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/add-country-to-zone-dialog/add-country-to-zone-dialog.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/admin-detail/admin-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/administrator-list/administrator-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/channel-detail/channel-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/channel-list/channel-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/country-detail/country-detail.component.js +0 -0
- package/package/esm2015/settings/components/country-list/country-list.component.js +82 -0
- package/{esm2015 → package/esm2015}/settings/components/global-settings/global-settings.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/payment-method-detail/payment-method-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/payment-method-list/payment-method-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/permission-grid/permission-grid.component.js +0 -0
- package/package/esm2015/settings/components/profile/profile.component.js +82 -0
- package/{esm2015 → package/esm2015}/settings/components/role-detail/role-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/role-list/role-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/shipping-eligibility-test-result/shipping-eligibility-test-result.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/shipping-method-detail/shipping-method-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/shipping-method-list/shipping-method-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/shipping-method-test-result/shipping-method-test-result.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/tax-category-detail/tax-category-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/tax-category-list/tax-category-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/tax-rate-detail/tax-rate-detail.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/tax-rate-list/tax-rate-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/test-address-form/test-address-form.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/test-order-builder/test-order-builder.component.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/zone-detail-dialog/zone-detail-dialog.component.js +0 -0
- package/package/esm2015/settings/components/zone-list/zone-list.component.js +160 -0
- package/{esm2015 → package/esm2015}/settings/components/zone-member-list/zone-member-controls.directive.js +0 -0
- package/{esm2015 → package/esm2015}/settings/components/zone-member-list/zone-member-list-header.directive.js +0 -0
- package/package/esm2015/settings/components/zone-member-list/zone-member-list.component.js +63 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/administrator-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/channel-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/country-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/global-settings-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/payment-method-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/profile-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/role-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/shipping-method-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/tax-category-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/providers/routing/tax-rate-resolver.js +0 -0
- package/{esm2015 → package/esm2015}/settings/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/settings/settings.module.js +0 -0
- package/{esm2015 → package/esm2015}/settings/settings.routes.js +0 -0
- package/{esm2015 → package/esm2015}/settings/vendure-admin-ui-settings.js +0 -0
- package/package/esm2015/system/components/health-check/health-check.component.js +19 -0
- package/{esm2015 → package/esm2015}/system/components/job-list/job-list.component.js +0 -0
- package/{esm2015 → package/esm2015}/system/components/job-state-label/job-state-label.component.js +0 -0
- package/{esm2015 → package/esm2015}/system/public_api.js +0 -0
- package/{esm2015 → package/esm2015}/system/system.module.js +0 -0
- package/{esm2015 → package/esm2015}/system/system.routes.js +0 -0
- package/{esm2015 → package/esm2015}/system/vendure-admin-ui-system.js +0 -0
- package/{esm2015 → package/esm2015}/vendure-admin-ui.js +0 -0
- package/package/fesm2015/vendure-admin-ui-catalog.js +4768 -0
- package/package/fesm2015/vendure-admin-ui-catalog.js.map +1 -0
- package/package/fesm2015/vendure-admin-ui-core.js +17900 -0
- package/package/fesm2015/vendure-admin-ui-core.js.map +1 -0
- package/package/fesm2015/vendure-admin-ui-customer.js +1184 -0
- package/package/fesm2015/vendure-admin-ui-customer.js.map +1 -0
- package/package/fesm2015/vendure-admin-ui-dashboard.js +375 -0
- package/package/fesm2015/vendure-admin-ui-dashboard.js.map +1 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-login.js +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-login.js.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-marketing.js +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-marketing.js.map +0 -0
- package/package/fesm2015/vendure-admin-ui-order.js +3155 -0
- package/package/fesm2015/vendure-admin-ui-order.js.map +1 -0
- package/package/fesm2015/vendure-admin-ui-settings.js +2977 -0
- package/package/fesm2015/vendure-admin-ui-settings.js.map +1 -0
- package/package/fesm2015/vendure-admin-ui-system.js +171 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui-system.js.map +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui.js +0 -0
- package/{fesm2015 → package/fesm2015}/vendure-admin-ui.js.map +0 -0
- package/{login → package/login}/components/login/login.component.d.ts +0 -0
- package/{login → package/login}/login.module.d.ts +0 -0
- package/{login → package/login}/login.routes.d.ts +0 -0
- package/{login → package/login}/package.json +0 -0
- package/{login → package/login}/providers/login.guard.d.ts +0 -0
- package/{login → package/login}/public_api.d.ts +0 -0
- package/{login → package/login}/vendure-admin-ui-login.d.ts +0 -0
- package/{login → package/login}/vendure-admin-ui-login.metadata.json +0 -0
- package/{marketing → package/marketing}/components/promotion-detail/promotion-detail.component.d.ts +0 -0
- package/{marketing → package/marketing}/components/promotion-list/promotion-list.component.d.ts +0 -0
- package/{marketing → package/marketing}/marketing.module.d.ts +0 -0
- package/{marketing → package/marketing}/marketing.routes.d.ts +0 -0
- package/{marketing → package/marketing}/package.json +0 -0
- package/{marketing → package/marketing}/providers/routing/promotion-resolver.d.ts +0 -0
- package/{marketing → package/marketing}/public_api.d.ts +0 -0
- package/{marketing → package/marketing}/vendure-admin-ui-marketing.d.ts +0 -0
- package/{marketing → package/marketing}/vendure-admin-ui-marketing.metadata.json +0 -0
- package/{order → package/order}/components/add-manual-payment-dialog/add-manual-payment-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/cancel-order-dialog/cancel-order-dialog.component.d.ts +0 -0
- package/package/order/components/coupon-code-selector/coupon-code-selector.component.d.ts +18 -0
- package/package/order/components/draft-order-detail/draft-order-detail.component.d.ts +49 -0
- package/package/order/components/draft-order-variant-selector/draft-order-variant-selector.component.d.ts +21 -0
- package/{order → package/order}/components/fulfill-order-dialog/fulfill-order-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/fulfillment-card/fulfillment-card.component.d.ts +0 -0
- package/{order → package/order}/components/fulfillment-detail/fulfillment-detail.component.d.ts +0 -0
- package/{order → package/order}/components/fulfillment-state-label/fulfillment-state-label.component.d.ts +0 -0
- package/{order → package/order}/components/line-fulfillment/line-fulfillment.component.d.ts +0 -0
- package/{order → package/order}/components/line-refunds/line-refunds.component.d.ts +0 -0
- package/{order → package/order}/components/modification-detail/modification-detail.component.d.ts +0 -0
- package/{order → package/order}/components/order-custom-fields-card/order-custom-fields-card.component.d.ts +0 -0
- package/{order → package/order}/components/order-detail/order-detail.component.d.ts +0 -0
- package/package/order/components/order-editor/order-editor.component.d.ts +71 -0
- package/{order → package/order}/components/order-edits-preview-dialog/order-edits-preview-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/order-history/order-history.component.d.ts +0 -0
- package/package/order/components/order-list/order-list.component.d.ts +35 -0
- package/{order → package/order}/components/order-payment-card/order-payment-card.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/constants.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/order-process-edge.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/order-process-graph.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/order-process-node.component.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph/types.d.ts +0 -0
- package/{order → package/order}/components/order-process-graph-dialog/order-process-graph-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/order-state-select-dialog/order-state-select-dialog.component.d.ts +0 -0
- package/package/order/components/order-table/order-table.component.d.ts +37 -0
- package/{order → package/order}/components/payment-detail/payment-detail.component.d.ts +0 -0
- package/{order → package/order}/components/payment-state-label/payment-state-label.component.d.ts +0 -0
- package/{order → package/order}/components/refund-order-dialog/refund-order-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/refund-state-label/refund-state-label.component.d.ts +0 -0
- package/package/order/components/select-address-dialog/select-address-dialog.component.d.ts +24 -0
- package/package/order/components/select-address-dialog/select-address-dialog.graphql.d.ts +1 -0
- package/package/order/components/select-customer-dialog/select-customer-dialog.component.d.ts +22 -0
- package/package/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.d.ts +16 -0
- package/{order → package/order}/components/settle-refund-dialog/settle-refund-dialog.component.d.ts +0 -0
- package/{order → package/order}/components/simple-item-list/simple-item-list.component.d.ts +0 -0
- package/{order → package/order}/order.module.d.ts +0 -0
- package/{order → package/order}/order.routes.d.ts +0 -0
- package/{order → package/order}/package.json +0 -0
- package/{order → package/order}/providers/order-transition.service.d.ts +0 -0
- package/package/order/providers/routing/order-resolver.d.ts +13 -0
- package/package/order/providers/routing/order.guard.d.ts +9 -0
- package/package/order/public_api.d.ts +42 -0
- package/{order → package/order}/vendure-admin-ui-order.d.ts +0 -0
- package/package/order/vendure-admin-ui-order.metadata.json +1 -0
- package/package/package.json +59 -0
- package/{public_api.d.ts → package/public_api.d.ts} +0 -0
- package/{settings → package/settings}/components/add-country-to-zone-dialog/add-country-to-zone-dialog.component.d.ts +0 -0
- package/{settings → package/settings}/components/admin-detail/admin-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/administrator-list/administrator-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/channel-detail/channel-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/channel-list/channel-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/country-detail/country-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/country-list/country-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/global-settings/global-settings.component.d.ts +0 -0
- package/{settings → package/settings}/components/payment-method-detail/payment-method-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/payment-method-list/payment-method-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/permission-grid/permission-grid.component.d.ts +0 -0
- package/{settings → package/settings}/components/profile/profile.component.d.ts +0 -0
- package/{settings → package/settings}/components/role-detail/role-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/role-list/role-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-eligibility-test-result/shipping-eligibility-test-result.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-method-detail/shipping-method-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-method-list/shipping-method-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/shipping-method-test-result/shipping-method-test-result.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-category-detail/tax-category-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-category-list/tax-category-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-rate-detail/tax-rate-detail.component.d.ts +0 -0
- package/{settings → package/settings}/components/tax-rate-list/tax-rate-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/test-address-form/test-address-form.component.d.ts +0 -0
- package/{settings → package/settings}/components/test-order-builder/test-order-builder.component.d.ts +0 -0
- package/{settings → package/settings}/components/zone-detail-dialog/zone-detail-dialog.component.d.ts +0 -0
- package/{settings → package/settings}/components/zone-list/zone-list.component.d.ts +0 -0
- package/{settings → package/settings}/components/zone-member-list/zone-member-controls.directive.d.ts +0 -0
- package/{settings → package/settings}/components/zone-member-list/zone-member-list-header.directive.d.ts +0 -0
- package/package/settings/components/zone-member-list/zone-member-list.component.d.ts +23 -0
- package/{settings → package/settings}/package.json +0 -0
- package/{settings → package/settings}/providers/routing/administrator-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/channel-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/country-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/global-settings-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/payment-method-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/profile-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/role-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/shipping-method-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/tax-category-resolver.d.ts +0 -0
- package/{settings → package/settings}/providers/routing/tax-rate-resolver.d.ts +0 -0
- package/{settings → package/settings}/public_api.d.ts +0 -0
- package/{settings → package/settings}/settings.module.d.ts +0 -0
- package/{settings → package/settings}/settings.routes.d.ts +0 -0
- package/{settings → package/settings}/vendure-admin-ui-settings.d.ts +0 -0
- package/package/settings/vendure-admin-ui-settings.metadata.json +1 -0
- package/{static → package/static}/assets/.gitkeep +0 -0
- package/{static → package/static}/assets/logo-300px.png +0 -0
- package/{static → package/static}/assets/logo-75px.png +0 -0
- package/{static → package/static}/favicon.ico +0 -0
- package/package/static/i18n-messages/cs.json +721 -0
- package/package/static/i18n-messages/de.json +721 -0
- package/package/static/i18n-messages/en.json +721 -0
- package/package/static/i18n-messages/es.json +721 -0
- package/package/static/i18n-messages/fr.json +721 -0
- package/package/static/i18n-messages/it.json +721 -0
- package/package/static/i18n-messages/pl.json +721 -0
- package/package/static/i18n-messages/pt_BR.json +721 -0
- package/package/static/i18n-messages/pt_PT.json +721 -0
- package/package/static/i18n-messages/ru.json +721 -0
- package/package/static/i18n-messages/uk.json +721 -0
- package/package/static/i18n-messages/zh_Hans.json +721 -0
- package/package/static/i18n-messages/zh_Hant.json +721 -0
- package/{static → package/static}/index.html +0 -0
- package/{static → package/static}/polyfills.ts +0 -0
- package/{static → package/static}/styles/_mixins.scss +0 -0
- package/{static → package/static}/styles/_variables.scss +0 -0
- package/package/static/styles/global/_forms.scss +148 -0
- package/package/static/styles/global/_overrides.scss +72 -0
- package/{static → package/static}/styles/global/_sass-overrides.scss +0 -0
- package/package/static/styles/global/_utilities.scss +131 -0
- package/{static → package/static}/styles/styles.scss +0 -0
- package/{static → package/static}/styles/theme/dark.scss +0 -0
- package/{static → package/static}/styles/theme/default.scss +0 -0
- package/{static → package/static}/styles/ui-extension-theme.scss +0 -0
- package/package/static/theme.min.css +8 -0
- package/{static → package/static}/vendure-ui-config.json +0 -0
- package/{system → package/system}/components/health-check/health-check.component.d.ts +0 -0
- package/{system → package/system}/components/job-list/job-list.component.d.ts +0 -0
- package/{system → package/system}/components/job-state-label/job-state-label.component.d.ts +0 -0
- package/{system → package/system}/package.json +0 -0
- package/{system → package/system}/public_api.d.ts +0 -0
- package/{system → package/system}/system.module.d.ts +0 -0
- package/{system → package/system}/system.routes.d.ts +0 -0
- package/{system → package/system}/vendure-admin-ui-system.d.ts +0 -0
- package/package/system/vendure-admin-ui-system.metadata.json +1 -0
- package/{vendure-admin-ui.d.ts → package/vendure-admin-ui.d.ts} +0 -0
- package/{vendure-admin-ui.metadata.json → package/vendure-admin-ui.metadata.json} +0 -0
- package/package.json +59 -21
- package/tsconfig.json +61 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.lib.prod.json +14 -0
- package/tslint.json +33 -0
- package/LICENSE +0 -9
- package/bundles/vendure-admin-ui-catalog.umd.js +0 -4861
- package/bundles/vendure-admin-ui-catalog.umd.js.map +0 -1
- package/bundles/vendure-admin-ui-core.umd.js +0 -15291
- package/bundles/vendure-admin-ui-core.umd.js.map +0 -1
- package/bundles/vendure-admin-ui-customer.umd.js +0 -1679
- package/bundles/vendure-admin-ui-customer.umd.js.map +0 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js +0 -757
- package/bundles/vendure-admin-ui-dashboard.umd.js.map +0 -1
- package/bundles/vendure-admin-ui-order.umd.js +0 -3422
- package/bundles/vendure-admin-ui-order.umd.js.map +0 -1
- package/bundles/vendure-admin-ui-settings.umd.js +0 -3699
- package/bundles/vendure-admin-ui-settings.umd.js.map +0 -1
- package/bundles/vendure-admin-ui-system.umd.js +0 -524
- package/catalog/catalog.module.d.ts +0 -2
- package/catalog/components/collection-list/collection-list.component.d.ts +0 -33
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +0 -36
- package/catalog/components/collection-tree/collection-tree.component.d.ts +0 -35
- package/catalog/components/facet-list/facet-list.component.d.ts +0 -24
- package/catalog/components/product-list/product-list.component.d.ts +0 -29
- package/catalog/public_api.d.ts +0 -33
- package/catalog/vendure-admin-ui-catalog.metadata.json +0 -1
- package/core/common/component-registry-types.d.ts +0 -56
- package/core/common/generated-types.d.ts +0 -9142
- package/core/common/utilities/selection-manager.d.ts +0 -23
- package/core/common/version.d.ts +0 -1
- package/core/data/definitions/collection-definitions.d.ts +0 -10
- package/core/data/definitions/facet-definitions.d.ts +0 -10
- package/core/data/definitions/order-definitions.d.ts +0 -27
- package/core/data/definitions/product-definitions.d.ts +0 -45
- package/core/data/providers/collection-data.service.d.ts +0 -25
- package/core/data/providers/facet-data.service.d.ts +0 -21
- package/core/data/providers/order-data.service.d.ts +0 -35
- package/core/data/providers/product-data.service.d.ts +0 -81
- package/core/providers/modal/modal.service.d.ts +0 -132
- package/core/providers/nav-builder/nav-builder-types.d.ts +0 -91
- package/core/public_api.d.ts +0 -222
- package/core/shared/components/asset-gallery/asset-gallery.component.d.ts +0 -67
- package/core/shared/components/data-table/data-table.component.d.ts +0 -82
- package/core/shared/components/dropdown/dropdown-menu.component.d.ts +0 -30
- package/core/shared/components/rich-text-editor/prosemirror/inputrules.d.ts +0 -8
- package/core/shared/components/rich-text-editor/prosemirror/menu/images.d.ts +0 -4
- package/core/shared/components/rich-text-editor/prosemirror/menu/links.d.ts +0 -4
- package/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.d.ts +0 -4
- package/core/shared/components/rich-text-editor/prosemirror/plugins/link-select-plugin.d.ts +0 -5
- package/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.d.ts +0 -21
- package/core/shared/components/rich-text-editor/prosemirror/types.d.ts +0 -11
- package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +0 -35
- package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +0 -32
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +0 -89
- package/core/vendure-admin-ui-core.metadata.json +0 -1
- package/customer/components/customer-group-member-list/customer-group-member-list.component.d.ts +0 -37
- package/customer/vendure-admin-ui-customer.metadata.json +0 -1
- package/esm2015/catalog/catalog.module.js +0 -62
- package/esm2015/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.js +0 -109
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +0 -244
- package/esm2015/catalog/components/collection-list/collection-list.component.js +0 -145
- package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +0 -117
- package/esm2015/catalog/components/collection-tree/collection-tree.component.js +0 -76
- package/esm2015/catalog/components/facet-list/facet-list.component.js +0 -107
- package/esm2015/catalog/components/product-detail/product-detail.component.js +0 -515
- package/esm2015/catalog/components/product-list/product-list.component.js +0 -153
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +0 -214
- package/esm2015/catalog/providers/routing/collection-resolver.js +0 -38
- package/esm2015/catalog/public_api.js +0 -35
- package/esm2015/core/common/component-registry-types.js +0 -2
- package/esm2015/core/common/generated-types.js +0 -983
- package/esm2015/core/common/introspection-result.js +0 -195
- package/esm2015/core/common/utilities/selection-manager.js +0 -64
- package/esm2015/core/common/version.js +0 -3
- package/esm2015/core/components/breadcrumb/breadcrumb.component.js +0 -126
- package/esm2015/core/data/definitions/collection-definitions.js +0 -144
- package/esm2015/core/data/definitions/facet-definitions.js +0 -110
- package/esm2015/core/data/definitions/order-definitions.js +0 -472
- package/esm2015/core/data/definitions/product-definitions.js +0 -745
- package/esm2015/core/data/providers/collection-data.service.js +0 -75
- package/esm2015/core/data/providers/customer-data.service.js +0 -117
- package/esm2015/core/data/providers/facet-data.service.js +0 -60
- package/esm2015/core/data/providers/order-data.service.js +0 -103
- package/esm2015/core/data/providers/product-data.service.js +0 -235
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +0 -91
- package/esm2015/core/providers/dashboard-widget/dashboard-widget.service.js +0 -97
- package/esm2015/core/providers/modal/modal.service.js +0 -100
- package/esm2015/core/providers/nav-builder/nav-builder-types.js +0 -2
- package/esm2015/core/public_api.js +0 -224
- package/esm2015/core/shared/components/action-bar/action-bar.component.js +0 -47
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +0 -84
- package/esm2015/core/shared/components/data-table/data-table.component.js +0 -113
- package/esm2015/core/shared/components/dropdown/dropdown-menu.component.js +0 -121
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +0 -117
- package/esm2015/core/shared/components/language-selector/language-selector.component.js +0 -21
- package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +0 -43
- package/esm2015/core/shared/components/product-search-input/product-search-input.component.js +0 -104
- package/esm2015/core/shared/components/product-selector/product-selector.component.js +0 -61
- package/esm2015/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.js +0 -32
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/images.js +0 -36
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/links.js +0 -69
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu-common.js +0 -20
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/menu/menu.js +0 -192
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +0 -112
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/types.js +0 -2
- package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +0 -86
- package/esm2015/core/shared/components/simple-dialog/simple-dialog.component.js +0 -21
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +0 -125
- package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +0 -266
- package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +0 -134
- package/esm2015/core/shared/pipes/state-i18n-token.pipe.js +0 -46
- package/esm2015/core/shared/shared.module.js +0 -275
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +0 -198
- package/esm2015/customer/components/customer-group-member-list/customer-group-member-list.component.js +0 -101
- package/esm2015/customer/components/customer-list/customer-list.component.js +0 -81
- package/esm2015/dashboard/dashboard.module.js +0 -25
- package/esm2015/order/components/order-detail/order-detail.component.js +0 -550
- package/esm2015/order/components/order-editor/order-editor.component.js +0 -381
- package/esm2015/order/components/order-list/order-list.component.js +0 -195
- package/esm2015/order/components/order-table/order-table.component.js +0 -76
- package/esm2015/order/order.module.js +0 -70
- package/esm2015/order/order.routes.js +0 -54
- package/esm2015/order/providers/routing/order-resolver.js +0 -33
- package/esm2015/order/public_api.js +0 -36
- package/esm2015/settings/components/country-list/country-list.component.js +0 -82
- package/esm2015/settings/components/profile/profile.component.js +0 -82
- package/esm2015/settings/components/zone-list/zone-list.component.js +0 -160
- package/esm2015/settings/components/zone-member-list/zone-member-list.component.js +0 -63
- package/esm2015/system/components/health-check/health-check.component.js +0 -19
- package/fesm2015/vendure-admin-ui-catalog.js +0 -3994
- package/fesm2015/vendure-admin-ui-catalog.js.map +0 -1
- package/fesm2015/vendure-admin-ui-core.js +0 -16292
- package/fesm2015/vendure-admin-ui-core.js.map +0 -1
- package/fesm2015/vendure-admin-ui-customer.js +0 -1184
- package/fesm2015/vendure-admin-ui-customer.js.map +0 -1
- package/fesm2015/vendure-admin-ui-dashboard.js +0 -371
- package/fesm2015/vendure-admin-ui-dashboard.js.map +0 -1
- package/fesm2015/vendure-admin-ui-order.js +0 -2607
- package/fesm2015/vendure-admin-ui-order.js.map +0 -1
- package/fesm2015/vendure-admin-ui-settings.js +0 -2977
- package/fesm2015/vendure-admin-ui-settings.js.map +0 -1
- package/fesm2015/vendure-admin-ui-system.js +0 -171
- package/order/components/order-editor/order-editor.component.d.ts +0 -76
- package/order/components/order-list/order-list.component.d.ts +0 -34
- package/order/components/order-table/order-table.component.d.ts +0 -28
- package/order/providers/routing/order-resolver.d.ts +0 -10
- package/order/public_api.d.ts +0 -34
- package/order/vendure-admin-ui-order.metadata.json +0 -1
- package/settings/components/zone-member-list/zone-member-list.component.d.ts +0 -21
- package/settings/vendure-admin-ui-settings.metadata.json +0 -1
- package/static/i18n-messages/cs.json +0 -688
- package/static/i18n-messages/de.json +0 -688
- package/static/i18n-messages/en.json +0 -689
- package/static/i18n-messages/es.json +0 -688
- package/static/i18n-messages/fr.json +0 -688
- package/static/i18n-messages/it.json +0 -688
- package/static/i18n-messages/pl.json +0 -688
- package/static/i18n-messages/pt_BR.json +0 -688
- package/static/i18n-messages/pt_PT.json +0 -688
- package/static/i18n-messages/ru.json +0 -688
- package/static/i18n-messages/uk.json +0 -688
- package/static/i18n-messages/zh_Hans.json +0 -688
- package/static/i18n-messages/zh_Hant.json +0 -688
- package/static/styles/global/_forms.scss +0 -146
- package/static/styles/global/_overrides.scss +0 -72
- package/static/styles/global/_utilities.scss +0 -127
- package/static/theme.min.css +0 -8
- package/system/vendure-admin-ui-system.metadata.json +0 -1
|
@@ -1,1679 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@vendure/admin-ui/core'), require('rxjs'), require('rxjs/operators'), require('@angular/forms'), require('@angular/router'), require('@biesbjerg/ngx-translate-extract-marker'), require('@vendure/common/lib/shared-utils'), require('@vendure/common/lib/generated-shop-types')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@vendure/admin-ui/customer', ['exports', '@angular/core', '@vendure/admin-ui/core', 'rxjs', 'rxjs/operators', '@angular/forms', '@angular/router', '@biesbjerg/ngx-translate-extract-marker', '@vendure/common/lib/shared-utils', '@vendure/common/lib/generated-shop-types'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.vendure = global.vendure || {}, global.vendure['admin-ui'] = global.vendure['admin-ui'] || {}, global.vendure['admin-ui'].customer = {}), global.ng.core, global.vendure['admin-ui'].core, global.rxjs, global.rxjs.operators, global.ng.forms, global.ng.router, global.ngxTranslateExtractMarker, global.sharedUtils, global.generatedShopTypes));
|
|
5
|
-
}(this, (function (exports, i0, i2, rxjs, operators, forms, i1, ngxTranslateExtractMarker, sharedUtils, generatedShopTypes) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
-
|
|
31
|
-
var AddCustomerToGroupDialogComponent = /** @class */ (function () {
|
|
32
|
-
function AddCustomerToGroupDialogComponent(dataService) {
|
|
33
|
-
this.dataService = dataService;
|
|
34
|
-
this.selectedCustomerIds = [];
|
|
35
|
-
this.fetchGroupMembers$ = new rxjs.BehaviorSubject({
|
|
36
|
-
skip: 0,
|
|
37
|
-
take: 10,
|
|
38
|
-
filterTerm: '',
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
AddCustomerToGroupDialogComponent.prototype.ngOnInit = function () {
|
|
42
|
-
var _this = this;
|
|
43
|
-
var customerResult$ = this.fetchGroupMembers$.pipe(operators.switchMap(function (_a) {
|
|
44
|
-
var skip = _a.skip, take = _a.take, filterTerm = _a.filterTerm;
|
|
45
|
-
return _this.dataService.customer
|
|
46
|
-
.getCustomerList(take, skip, filterTerm)
|
|
47
|
-
.mapStream(function (res) { return res.customers; });
|
|
48
|
-
}));
|
|
49
|
-
this.customers$ = customerResult$.pipe(operators.map(function (res) { return res.items; }));
|
|
50
|
-
this.customersTotal$ = customerResult$.pipe(operators.map(function (res) { return res.totalItems; }));
|
|
51
|
-
};
|
|
52
|
-
AddCustomerToGroupDialogComponent.prototype.cancel = function () {
|
|
53
|
-
this.resolveWith();
|
|
54
|
-
};
|
|
55
|
-
AddCustomerToGroupDialogComponent.prototype.add = function () {
|
|
56
|
-
this.resolveWith(this.selectedCustomerIds);
|
|
57
|
-
};
|
|
58
|
-
return AddCustomerToGroupDialogComponent;
|
|
59
|
-
}());
|
|
60
|
-
AddCustomerToGroupDialogComponent.decorators = [
|
|
61
|
-
{ type: i0.Component, args: [{
|
|
62
|
-
selector: 'vdr-add-customer-to-group-dialog',
|
|
63
|
-
template: "<ng-template vdrDialogTitle>\r\n {{ 'customer.add-customers-to-group-with-name' | translate: {groupName: group.name} }}\r\n</ng-template>\r\n\r\n<vdr-customer-group-member-list\r\n [members]=\"customers$ | async\"\r\n [totalItems]=\"customersTotal$ | async\"\r\n [route]=\"route\"\r\n [selectedMemberIds]=\"selectedCustomerIds\"\r\n (fetchParamsChange)=\"fetchGroupMembers$.next($event)\"\r\n (selectionChange)=\"selectedCustomerIds = $event\"\r\n>\r\n\r\n</vdr-customer-group-member-list>\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button type=\"submit\" (click)=\"add()\" [disabled]=\"!selectedCustomerIds.length\" class=\"btn btn-primary\">\r\n {{ 'customer.add-customers-to-group-with-count' | translate: {count: selectedCustomerIds.length} }}\r\n </button>\r\n</ng-template>\r\n",
|
|
64
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
65
|
-
styles: [""]
|
|
66
|
-
},] }
|
|
67
|
-
];
|
|
68
|
-
AddCustomerToGroupDialogComponent.ctorParameters = function () { return [
|
|
69
|
-
{ type: i2.DataService }
|
|
70
|
-
]; };
|
|
71
|
-
|
|
72
|
-
var AddressDetailDialogComponent = /** @class */ (function () {
|
|
73
|
-
function AddressDetailDialogComponent(changeDetector) {
|
|
74
|
-
this.changeDetector = changeDetector;
|
|
75
|
-
this.availableCountries = [];
|
|
76
|
-
}
|
|
77
|
-
AddressDetailDialogComponent.prototype.ngOnInit = function () {
|
|
78
|
-
var _this = this;
|
|
79
|
-
this.addressForm.valueChanges.subscribe(function () { return _this.changeDetector.markForCheck(); });
|
|
80
|
-
};
|
|
81
|
-
AddressDetailDialogComponent.prototype.cancel = function () {
|
|
82
|
-
this.resolveWith();
|
|
83
|
-
};
|
|
84
|
-
AddressDetailDialogComponent.prototype.save = function () {
|
|
85
|
-
this.resolveWith(this.addressForm);
|
|
86
|
-
};
|
|
87
|
-
return AddressDetailDialogComponent;
|
|
88
|
-
}());
|
|
89
|
-
AddressDetailDialogComponent.decorators = [
|
|
90
|
-
{ type: i0.Component, args: [{
|
|
91
|
-
selector: 'vdr-address-detail-dialog',
|
|
92
|
-
template: "<ng-template vdrDialogTitle>\r\n <span *ngIf=\"addressForm.get('streetLine1')?.value as streetLine1\">{{ streetLine1 }},</span>\r\n <span *ngIf=\"addressForm.get('countryCode')?.value as countryCode\"> {{ countryCode }}</span>\r\n</ng-template>\r\n\r\n<vdr-address-form\r\n [formGroup]=\"addressForm\"\r\n [availableCountries]=\"availableCountries\"\r\n [customFields]=\"customFields\"\r\n></vdr-address-form>\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button\r\n type=\"submit\"\r\n (click)=\"save()\"\r\n [disabled]=\"!addressForm.valid || !addressForm.touched\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'common.update' | translate }}\r\n </button>\r\n</ng-template>\r\n",
|
|
93
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
94
|
-
styles: ["clr-input-container{margin-bottom:12px}\n"]
|
|
95
|
-
},] }
|
|
96
|
-
];
|
|
97
|
-
AddressDetailDialogComponent.ctorParameters = function () { return [
|
|
98
|
-
{ type: i0.ChangeDetectorRef }
|
|
99
|
-
]; };
|
|
100
|
-
|
|
101
|
-
var AddressCardComponent = /** @class */ (function () {
|
|
102
|
-
function AddressCardComponent(modalService, changeDetector) {
|
|
103
|
-
this.modalService = modalService;
|
|
104
|
-
this.changeDetector = changeDetector;
|
|
105
|
-
this.availableCountries = [];
|
|
106
|
-
this.editable = true;
|
|
107
|
-
this.setAsDefaultShipping = new i0.EventEmitter();
|
|
108
|
-
this.setAsDefaultBilling = new i0.EventEmitter();
|
|
109
|
-
this.deleteAddress = new i0.EventEmitter();
|
|
110
|
-
this.dataDependenciesPopulated = new rxjs.BehaviorSubject(false);
|
|
111
|
-
}
|
|
112
|
-
AddressCardComponent.prototype.ngOnInit = function () {
|
|
113
|
-
var _this = this;
|
|
114
|
-
var streetLine1 = this.addressForm.get('streetLine1');
|
|
115
|
-
// Make the address dialog display automatically if there is no address line
|
|
116
|
-
// as is the case when adding a new address.
|
|
117
|
-
if (!streetLine1.value) {
|
|
118
|
-
this.dataDependenciesPopulated
|
|
119
|
-
.pipe(operators.filter(function (value) { return value; }), operators.take(1))
|
|
120
|
-
.subscribe(function () {
|
|
121
|
-
_this.editAddress();
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
AddressCardComponent.prototype.ngOnChanges = function (changes) {
|
|
126
|
-
if (this.customFields != null && this.availableCountries != null) {
|
|
127
|
-
this.dataDependenciesPopulated.next(true);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
AddressCardComponent.prototype.getCountryName = function (countryCode) {
|
|
131
|
-
if (!this.availableCountries) {
|
|
132
|
-
return '';
|
|
133
|
-
}
|
|
134
|
-
var match = this.availableCountries.find(function (c) { return c.code === countryCode; });
|
|
135
|
-
return match ? match.name : '';
|
|
136
|
-
};
|
|
137
|
-
AddressCardComponent.prototype.setAsDefaultBillingAddress = function () {
|
|
138
|
-
this.setAsDefaultBilling.emit(this.addressForm.value.id);
|
|
139
|
-
this.addressForm.markAsDirty();
|
|
140
|
-
};
|
|
141
|
-
AddressCardComponent.prototype.setAsDefaultShippingAddress = function () {
|
|
142
|
-
this.setAsDefaultShipping.emit(this.addressForm.value.id);
|
|
143
|
-
this.addressForm.markAsDirty();
|
|
144
|
-
};
|
|
145
|
-
AddressCardComponent.prototype.delete = function () {
|
|
146
|
-
this.deleteAddress.emit(this.addressForm.value.id);
|
|
147
|
-
this.addressForm.markAsDirty();
|
|
148
|
-
};
|
|
149
|
-
AddressCardComponent.prototype.editAddress = function () {
|
|
150
|
-
var _this = this;
|
|
151
|
-
this.modalService
|
|
152
|
-
.fromComponent(AddressDetailDialogComponent, {
|
|
153
|
-
locals: {
|
|
154
|
-
addressForm: this.addressForm,
|
|
155
|
-
customFields: this.customFields,
|
|
156
|
-
availableCountries: this.availableCountries,
|
|
157
|
-
},
|
|
158
|
-
size: 'md',
|
|
159
|
-
closable: true,
|
|
160
|
-
})
|
|
161
|
-
.subscribe(function () {
|
|
162
|
-
_this.changeDetector.markForCheck();
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
return AddressCardComponent;
|
|
166
|
-
}());
|
|
167
|
-
AddressCardComponent.decorators = [
|
|
168
|
-
{ type: i0.Component, args: [{
|
|
169
|
-
selector: 'vdr-address-card',
|
|
170
|
-
template: "<div class=\"card\" *ngIf=\"addressForm.value as address\">\r\n <div class=\"card-header\">\r\n <div class=\"address-title\">\r\n <span class=\"street-line\" *ngIf=\"address.streetLine1\">{{ address.streetLine1 }},</span>\r\n {{ address.countryCode }}\r\n </div>\r\n <div class=\"default-controls\">\r\n <vdr-chip class=\"is-default p8\" *ngIf=\"isDefaultShipping\">\r\n <clr-icon shape=\"truck\"></clr-icon>\r\n {{ 'customer.default-shipping-address' | translate }}\r\n </vdr-chip>\r\n <vdr-chip class=\"is-default p8\" *ngIf=\"isDefaultBilling\">\r\n <clr-icon shape=\"credit-card\"></clr-icon>\r\n {{ 'customer.default-billing-address' | translate }}\r\n </vdr-chip>\r\n </div>\r\n </div>\r\n <div class=\"card-block\">\r\n <div class=\"card-text\">\r\n <vdr-formatted-address [address]=\"address\"></vdr-formatted-address>\r\n </div>\r\n </div>\r\n <div class=\"card-footer\">\r\n <vdr-entity-info [entity]=\"address\"></vdr-entity-info>\r\n <ng-container *ngIf=\"editable\">\r\n <button class=\"btn btn-sm btn-link\" (click)=\"editAddress()\">\r\n {{ 'common.edit' | translate }}\r\n </button>\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-sm btn-link\" vdrDropdownTrigger>\r\n {{ 'common.more' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu>\r\n <button\r\n vdrDropdownItem\r\n class=\"button\"\r\n [disabled]=\"isDefaultShipping\"\r\n (click)=\"setAsDefaultShippingAddress()\"\r\n >\r\n {{ 'customer.set-as-default-shipping-address' | translate }}\r\n </button>\r\n <button\r\n vdrDropdownItem\r\n class=\"button\"\r\n [disabled]=\"isDefaultBilling\"\r\n (click)=\"setAsDefaultBillingAddress()\"\r\n >\r\n {{ 'customer.set-as-default-billing-address' | translate }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n <button\r\n type=\"button\"\r\n class=\"delete-button\"\r\n (click)=\"delete()\"\r\n vdrDropdownItem\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </ng-container>\r\n </div>\r\n</div>\r\n",
|
|
171
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
172
|
-
styles: [":host{display:block;max-width:360px}clr-input-container{margin-bottom:12px}.defaul-controls{display:flex}.is-default{margin:0;color:var(--color-success-500)}\n"]
|
|
173
|
-
},] }
|
|
174
|
-
];
|
|
175
|
-
AddressCardComponent.ctorParameters = function () { return [
|
|
176
|
-
{ type: i2.ModalService },
|
|
177
|
-
{ type: i0.ChangeDetectorRef }
|
|
178
|
-
]; };
|
|
179
|
-
AddressCardComponent.propDecorators = {
|
|
180
|
-
addressForm: [{ type: i0.Input }],
|
|
181
|
-
customFields: [{ type: i0.Input }],
|
|
182
|
-
availableCountries: [{ type: i0.Input }],
|
|
183
|
-
isDefaultBilling: [{ type: i0.Input }],
|
|
184
|
-
isDefaultShipping: [{ type: i0.Input }],
|
|
185
|
-
editable: [{ type: i0.Input }],
|
|
186
|
-
setAsDefaultShipping: [{ type: i0.Output }],
|
|
187
|
-
setAsDefaultBilling: [{ type: i0.Output }],
|
|
188
|
-
deleteAddress: [{ type: i0.Output }]
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
/*! *****************************************************************************
|
|
192
|
-
Copyright (c) Microsoft Corporation.
|
|
193
|
-
|
|
194
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
195
|
-
purpose with or without fee is hereby granted.
|
|
196
|
-
|
|
197
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
198
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
199
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
200
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
201
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
202
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
203
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
204
|
-
***************************************************************************** */
|
|
205
|
-
/* global Reflect, Promise */
|
|
206
|
-
var extendStatics = function (d, b) {
|
|
207
|
-
extendStatics = Object.setPrototypeOf ||
|
|
208
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
209
|
-
function (d, b) { for (var p in b)
|
|
210
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
211
|
-
d[p] = b[p]; };
|
|
212
|
-
return extendStatics(d, b);
|
|
213
|
-
};
|
|
214
|
-
function __extends(d, b) {
|
|
215
|
-
if (typeof b !== "function" && b !== null)
|
|
216
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
217
|
-
extendStatics(d, b);
|
|
218
|
-
function __() { this.constructor = d; }
|
|
219
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
220
|
-
}
|
|
221
|
-
var __assign = function () {
|
|
222
|
-
__assign = Object.assign || function __assign(t) {
|
|
223
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
224
|
-
s = arguments[i];
|
|
225
|
-
for (var p in s)
|
|
226
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
227
|
-
t[p] = s[p];
|
|
228
|
-
}
|
|
229
|
-
return t;
|
|
230
|
-
};
|
|
231
|
-
return __assign.apply(this, arguments);
|
|
232
|
-
};
|
|
233
|
-
function __rest(s, e) {
|
|
234
|
-
var t = {};
|
|
235
|
-
for (var p in s)
|
|
236
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
237
|
-
t[p] = s[p];
|
|
238
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
239
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
240
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
241
|
-
t[p[i]] = s[p[i]];
|
|
242
|
-
}
|
|
243
|
-
return t;
|
|
244
|
-
}
|
|
245
|
-
function __decorate(decorators, target, key, desc) {
|
|
246
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
247
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
248
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
249
|
-
else
|
|
250
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
251
|
-
if (d = decorators[i])
|
|
252
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
253
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
254
|
-
}
|
|
255
|
-
function __param(paramIndex, decorator) {
|
|
256
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
257
|
-
}
|
|
258
|
-
function __metadata(metadataKey, metadataValue) {
|
|
259
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
260
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
261
|
-
}
|
|
262
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
263
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
264
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
265
|
-
function fulfilled(value) { try {
|
|
266
|
-
step(generator.next(value));
|
|
267
|
-
}
|
|
268
|
-
catch (e) {
|
|
269
|
-
reject(e);
|
|
270
|
-
} }
|
|
271
|
-
function rejected(value) { try {
|
|
272
|
-
step(generator["throw"](value));
|
|
273
|
-
}
|
|
274
|
-
catch (e) {
|
|
275
|
-
reject(e);
|
|
276
|
-
} }
|
|
277
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
278
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
function __generator(thisArg, body) {
|
|
282
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
283
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
284
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
285
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
286
|
-
function step(op) {
|
|
287
|
-
if (f)
|
|
288
|
-
throw new TypeError("Generator is already executing.");
|
|
289
|
-
while (_)
|
|
290
|
-
try {
|
|
291
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
292
|
-
return t;
|
|
293
|
-
if (y = 0, t)
|
|
294
|
-
op = [op[0] & 2, t.value];
|
|
295
|
-
switch (op[0]) {
|
|
296
|
-
case 0:
|
|
297
|
-
case 1:
|
|
298
|
-
t = op;
|
|
299
|
-
break;
|
|
300
|
-
case 4:
|
|
301
|
-
_.label++;
|
|
302
|
-
return { value: op[1], done: false };
|
|
303
|
-
case 5:
|
|
304
|
-
_.label++;
|
|
305
|
-
y = op[1];
|
|
306
|
-
op = [0];
|
|
307
|
-
continue;
|
|
308
|
-
case 7:
|
|
309
|
-
op = _.ops.pop();
|
|
310
|
-
_.trys.pop();
|
|
311
|
-
continue;
|
|
312
|
-
default:
|
|
313
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
314
|
-
_ = 0;
|
|
315
|
-
continue;
|
|
316
|
-
}
|
|
317
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
318
|
-
_.label = op[1];
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
322
|
-
_.label = t[1];
|
|
323
|
-
t = op;
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
if (t && _.label < t[2]) {
|
|
327
|
-
_.label = t[2];
|
|
328
|
-
_.ops.push(op);
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
if (t[2])
|
|
332
|
-
_.ops.pop();
|
|
333
|
-
_.trys.pop();
|
|
334
|
-
continue;
|
|
335
|
-
}
|
|
336
|
-
op = body.call(thisArg, _);
|
|
337
|
-
}
|
|
338
|
-
catch (e) {
|
|
339
|
-
op = [6, e];
|
|
340
|
-
y = 0;
|
|
341
|
-
}
|
|
342
|
-
finally {
|
|
343
|
-
f = t = 0;
|
|
344
|
-
}
|
|
345
|
-
if (op[0] & 5)
|
|
346
|
-
throw op[1];
|
|
347
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
351
|
-
if (k2 === undefined)
|
|
352
|
-
k2 = k;
|
|
353
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
354
|
-
}) : (function (o, m, k, k2) {
|
|
355
|
-
if (k2 === undefined)
|
|
356
|
-
k2 = k;
|
|
357
|
-
o[k2] = m[k];
|
|
358
|
-
});
|
|
359
|
-
function __exportStar(m, o) {
|
|
360
|
-
for (var p in m)
|
|
361
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
362
|
-
__createBinding(o, m, p);
|
|
363
|
-
}
|
|
364
|
-
function __values(o) {
|
|
365
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
366
|
-
if (m)
|
|
367
|
-
return m.call(o);
|
|
368
|
-
if (o && typeof o.length === "number")
|
|
369
|
-
return {
|
|
370
|
-
next: function () {
|
|
371
|
-
if (o && i >= o.length)
|
|
372
|
-
o = void 0;
|
|
373
|
-
return { value: o && o[i++], done: !o };
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
377
|
-
}
|
|
378
|
-
function __read(o, n) {
|
|
379
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
380
|
-
if (!m)
|
|
381
|
-
return o;
|
|
382
|
-
var i = m.call(o), r, ar = [], e;
|
|
383
|
-
try {
|
|
384
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
385
|
-
ar.push(r.value);
|
|
386
|
-
}
|
|
387
|
-
catch (error) {
|
|
388
|
-
e = { error: error };
|
|
389
|
-
}
|
|
390
|
-
finally {
|
|
391
|
-
try {
|
|
392
|
-
if (r && !r.done && (m = i["return"]))
|
|
393
|
-
m.call(i);
|
|
394
|
-
}
|
|
395
|
-
finally {
|
|
396
|
-
if (e)
|
|
397
|
-
throw e.error;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
return ar;
|
|
401
|
-
}
|
|
402
|
-
/** @deprecated */
|
|
403
|
-
function __spread() {
|
|
404
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
405
|
-
ar = ar.concat(__read(arguments[i]));
|
|
406
|
-
return ar;
|
|
407
|
-
}
|
|
408
|
-
/** @deprecated */
|
|
409
|
-
function __spreadArrays() {
|
|
410
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
411
|
-
s += arguments[i].length;
|
|
412
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
413
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
414
|
-
r[k] = a[j];
|
|
415
|
-
return r;
|
|
416
|
-
}
|
|
417
|
-
function __spreadArray(to, from, pack) {
|
|
418
|
-
if (pack || arguments.length === 2)
|
|
419
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
420
|
-
if (ar || !(i in from)) {
|
|
421
|
-
if (!ar)
|
|
422
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
423
|
-
ar[i] = from[i];
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
427
|
-
}
|
|
428
|
-
function __await(v) {
|
|
429
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
430
|
-
}
|
|
431
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
432
|
-
if (!Symbol.asyncIterator)
|
|
433
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
434
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
435
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
436
|
-
function verb(n) { if (g[n])
|
|
437
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
438
|
-
function resume(n, v) { try {
|
|
439
|
-
step(g[n](v));
|
|
440
|
-
}
|
|
441
|
-
catch (e) {
|
|
442
|
-
settle(q[0][3], e);
|
|
443
|
-
} }
|
|
444
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
445
|
-
function fulfill(value) { resume("next", value); }
|
|
446
|
-
function reject(value) { resume("throw", value); }
|
|
447
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
448
|
-
resume(q[0][0], q[0][1]); }
|
|
449
|
-
}
|
|
450
|
-
function __asyncDelegator(o) {
|
|
451
|
-
var i, p;
|
|
452
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
453
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
454
|
-
}
|
|
455
|
-
function __asyncValues(o) {
|
|
456
|
-
if (!Symbol.asyncIterator)
|
|
457
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
458
|
-
var m = o[Symbol.asyncIterator], i;
|
|
459
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
460
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
461
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
462
|
-
}
|
|
463
|
-
function __makeTemplateObject(cooked, raw) {
|
|
464
|
-
if (Object.defineProperty) {
|
|
465
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
cooked.raw = raw;
|
|
469
|
-
}
|
|
470
|
-
return cooked;
|
|
471
|
-
}
|
|
472
|
-
;
|
|
473
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
474
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
475
|
-
}) : function (o, v) {
|
|
476
|
-
o["default"] = v;
|
|
477
|
-
};
|
|
478
|
-
function __importStar(mod) {
|
|
479
|
-
if (mod && mod.__esModule)
|
|
480
|
-
return mod;
|
|
481
|
-
var result = {};
|
|
482
|
-
if (mod != null)
|
|
483
|
-
for (var k in mod)
|
|
484
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
485
|
-
__createBinding(result, mod, k);
|
|
486
|
-
__setModuleDefault(result, mod);
|
|
487
|
-
return result;
|
|
488
|
-
}
|
|
489
|
-
function __importDefault(mod) {
|
|
490
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
491
|
-
}
|
|
492
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
493
|
-
if (kind === "a" && !f)
|
|
494
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
495
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
496
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
497
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
498
|
-
}
|
|
499
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
500
|
-
if (kind === "m")
|
|
501
|
-
throw new TypeError("Private method is not writable");
|
|
502
|
-
if (kind === "a" && !f)
|
|
503
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
504
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
505
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
506
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
var SelectCustomerGroupDialogComponent = /** @class */ (function () {
|
|
510
|
-
function SelectCustomerGroupDialogComponent(dataService) {
|
|
511
|
-
this.dataService = dataService;
|
|
512
|
-
this.selectedGroupIds = [];
|
|
513
|
-
}
|
|
514
|
-
SelectCustomerGroupDialogComponent.prototype.ngOnInit = function () {
|
|
515
|
-
this.groups$ = this.dataService.customer
|
|
516
|
-
.getCustomerGroupList()
|
|
517
|
-
.mapStream(function (res) { return res.customerGroups.items; });
|
|
518
|
-
};
|
|
519
|
-
SelectCustomerGroupDialogComponent.prototype.cancel = function () {
|
|
520
|
-
this.resolveWith();
|
|
521
|
-
};
|
|
522
|
-
SelectCustomerGroupDialogComponent.prototype.add = function () {
|
|
523
|
-
this.resolveWith(this.selectedGroupIds);
|
|
524
|
-
};
|
|
525
|
-
return SelectCustomerGroupDialogComponent;
|
|
526
|
-
}());
|
|
527
|
-
SelectCustomerGroupDialogComponent.decorators = [
|
|
528
|
-
{ type: i0.Component, args: [{
|
|
529
|
-
selector: 'vdr-select-customer-group-dialog',
|
|
530
|
-
template: "<ng-template vdrDialogTitle>\r\n {{ 'customer.add-customer-to-group' | translate }}\r\n</ng-template>\r\n\r\n<ng-select\r\n [items]=\"groups$ | async\"\r\n appendTo=\"body\"\r\n [addTag]=\"false\"\r\n [multiple]=\"true\"\r\n bindValue=\"id\"\r\n [(ngModel)]=\"selectedGroupIds\"\r\n [clearable]=\"true\"\r\n [searchable]=\"false\"\r\n>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <span aria-hidden=\"true\" class=\"ng-value-icon left\" (click)=\"clear(item)\"> \u00D7 </span>\r\n <vdr-chip [colorFrom]=\"item.id\">{{ item.name }}</vdr-chip>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <vdr-chip [colorFrom]=\"item.id\">{{ item.name }}</vdr-chip>\r\n </ng-template>\r\n</ng-select>\r\n\r\n\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button type=\"submit\" (click)=\"add()\" [disabled]=\"!selectedGroupIds.length\" class=\"btn btn-primary\">\r\n {{ 'customer.add-customer-to-groups-with-count' | translate: {count: selectedGroupIds.length} }}\r\n </button>\r\n</ng-template>\r\n",
|
|
531
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
532
|
-
styles: [""]
|
|
533
|
-
},] }
|
|
534
|
-
];
|
|
535
|
-
SelectCustomerGroupDialogComponent.ctorParameters = function () { return [
|
|
536
|
-
{ type: i2.DataService }
|
|
537
|
-
]; };
|
|
538
|
-
|
|
539
|
-
var CustomerDetailComponent = /** @class */ (function (_super) {
|
|
540
|
-
__extends(CustomerDetailComponent, _super);
|
|
541
|
-
function CustomerDetailComponent(route, router, serverConfigService, changeDetector, formBuilder, dataService, modalService, notificationService) {
|
|
542
|
-
var _this = _super.call(this, route, router, serverConfigService, dataService) || this;
|
|
543
|
-
_this.changeDetector = changeDetector;
|
|
544
|
-
_this.formBuilder = formBuilder;
|
|
545
|
-
_this.dataService = dataService;
|
|
546
|
-
_this.modalService = modalService;
|
|
547
|
-
_this.notificationService = notificationService;
|
|
548
|
-
_this.fetchHistory = new rxjs.Subject();
|
|
549
|
-
_this.addressesToDeleteIds = new Set();
|
|
550
|
-
_this.addressDefaultsUpdated = false;
|
|
551
|
-
_this.ordersPerPage = 10;
|
|
552
|
-
_this.currentOrdersPage = 1;
|
|
553
|
-
_this.orderListUpdates$ = new rxjs.Subject();
|
|
554
|
-
_this.customFields = _this.getCustomFieldConfig('Customer');
|
|
555
|
-
_this.addressCustomFields = _this.getCustomFieldConfig('Address');
|
|
556
|
-
_this.detailForm = _this.formBuilder.group({
|
|
557
|
-
customer: _this.formBuilder.group({
|
|
558
|
-
title: '',
|
|
559
|
-
firstName: ['', forms.Validators.required],
|
|
560
|
-
lastName: ['', forms.Validators.required],
|
|
561
|
-
phoneNumber: '',
|
|
562
|
-
emailAddress: ['', [forms.Validators.required, forms.Validators.email]],
|
|
563
|
-
password: '',
|
|
564
|
-
customFields: _this.formBuilder.group(_this.customFields.reduce(function (hash, field) {
|
|
565
|
-
var _c;
|
|
566
|
-
return (Object.assign(Object.assign({}, hash), (_c = {}, _c[field.name] = '', _c)));
|
|
567
|
-
}, {})),
|
|
568
|
-
}),
|
|
569
|
-
addresses: new forms.FormArray([]),
|
|
570
|
-
});
|
|
571
|
-
return _this;
|
|
572
|
-
}
|
|
573
|
-
CustomerDetailComponent.prototype.ngOnInit = function () {
|
|
574
|
-
var _this = this;
|
|
575
|
-
this.init();
|
|
576
|
-
this.availableCountries$ = this.dataService.settings
|
|
577
|
-
.getAvailableCountries()
|
|
578
|
-
.mapSingle(function (result) { return result.countries.items; })
|
|
579
|
-
.pipe(operators.shareReplay(1));
|
|
580
|
-
var customerWithUpdates$ = this.entity$.pipe(operators.merge(this.orderListUpdates$));
|
|
581
|
-
this.orders$ = customerWithUpdates$.pipe(operators.map(function (customer) { return customer.orders.items; }));
|
|
582
|
-
this.ordersCount$ = this.entity$.pipe(operators.map(function (customer) { return customer.orders.totalItems; }));
|
|
583
|
-
this.history$ = this.fetchHistory.pipe(operators.startWith(null), operators.switchMap(function () {
|
|
584
|
-
return _this.dataService.customer
|
|
585
|
-
.getCustomerHistory(_this.id, {
|
|
586
|
-
sort: {
|
|
587
|
-
createdAt: i2.SortOrder.DESC,
|
|
588
|
-
},
|
|
589
|
-
})
|
|
590
|
-
.mapStream(function (data) { var _a; return (_a = data.customer) === null || _a === void 0 ? void 0 : _a.history.items; });
|
|
591
|
-
}));
|
|
592
|
-
};
|
|
593
|
-
CustomerDetailComponent.prototype.ngOnDestroy = function () {
|
|
594
|
-
this.destroy();
|
|
595
|
-
this.orderListUpdates$.complete();
|
|
596
|
-
};
|
|
597
|
-
CustomerDetailComponent.prototype.getAddressFormControls = function () {
|
|
598
|
-
var formArray = this.detailForm.get(['addresses']);
|
|
599
|
-
return formArray.controls;
|
|
600
|
-
};
|
|
601
|
-
CustomerDetailComponent.prototype.setDefaultBillingAddressId = function (id) {
|
|
602
|
-
this.defaultBillingAddressId = id;
|
|
603
|
-
this.addressDefaultsUpdated = true;
|
|
604
|
-
};
|
|
605
|
-
CustomerDetailComponent.prototype.setDefaultShippingAddressId = function (id) {
|
|
606
|
-
this.defaultShippingAddressId = id;
|
|
607
|
-
this.addressDefaultsUpdated = true;
|
|
608
|
-
};
|
|
609
|
-
CustomerDetailComponent.prototype.toggleDeleteAddress = function (id) {
|
|
610
|
-
if (this.addressesToDeleteIds.has(id)) {
|
|
611
|
-
this.addressesToDeleteIds.delete(id);
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
this.addressesToDeleteIds.add(id);
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
CustomerDetailComponent.prototype.addAddress = function () {
|
|
618
|
-
var e_1, _c;
|
|
619
|
-
var addressFormArray = this.detailForm.get('addresses');
|
|
620
|
-
var newAddress = this.formBuilder.group({
|
|
621
|
-
fullName: '',
|
|
622
|
-
company: '',
|
|
623
|
-
streetLine1: ['', forms.Validators.required],
|
|
624
|
-
streetLine2: '',
|
|
625
|
-
city: '',
|
|
626
|
-
province: '',
|
|
627
|
-
postalCode: '',
|
|
628
|
-
countryCode: ['', forms.Validators.required],
|
|
629
|
-
phoneNumber: '',
|
|
630
|
-
defaultShippingAddress: false,
|
|
631
|
-
defaultBillingAddress: false,
|
|
632
|
-
});
|
|
633
|
-
if (this.addressCustomFields.length) {
|
|
634
|
-
var customFieldsGroup = this.formBuilder.group({});
|
|
635
|
-
try {
|
|
636
|
-
for (var _d = __values(this.addressCustomFields), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
637
|
-
var fieldDef = _e.value;
|
|
638
|
-
customFieldsGroup.addControl(fieldDef.name, new forms.FormControl(''));
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
642
|
-
finally {
|
|
643
|
-
try {
|
|
644
|
-
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
645
|
-
}
|
|
646
|
-
finally { if (e_1) throw e_1.error; }
|
|
647
|
-
}
|
|
648
|
-
newAddress.addControl('customFields', customFieldsGroup);
|
|
649
|
-
}
|
|
650
|
-
addressFormArray.push(newAddress);
|
|
651
|
-
};
|
|
652
|
-
CustomerDetailComponent.prototype.setOrderItemsPerPage = function (itemsPerPage) {
|
|
653
|
-
this.ordersPerPage = +itemsPerPage;
|
|
654
|
-
this.fetchOrdersList();
|
|
655
|
-
};
|
|
656
|
-
CustomerDetailComponent.prototype.setOrderCurrentPage = function (page) {
|
|
657
|
-
this.currentOrdersPage = +page;
|
|
658
|
-
this.fetchOrdersList();
|
|
659
|
-
};
|
|
660
|
-
CustomerDetailComponent.prototype.create = function () {
|
|
661
|
-
var _this = this;
|
|
662
|
-
var _a;
|
|
663
|
-
var customerForm = this.detailForm.get('customer');
|
|
664
|
-
if (!customerForm) {
|
|
665
|
-
return;
|
|
666
|
-
}
|
|
667
|
-
var formValue = customerForm.value;
|
|
668
|
-
var customFields = (_a = customerForm.get('customFields')) === null || _a === void 0 ? void 0 : _a.value;
|
|
669
|
-
var customer = {
|
|
670
|
-
title: formValue.title,
|
|
671
|
-
emailAddress: formValue.emailAddress,
|
|
672
|
-
firstName: formValue.firstName,
|
|
673
|
-
lastName: formValue.lastName,
|
|
674
|
-
phoneNumber: formValue.phoneNumber,
|
|
675
|
-
customFields: customFields,
|
|
676
|
-
};
|
|
677
|
-
this.dataService.customer
|
|
678
|
-
.createCustomer(customer, formValue.password)
|
|
679
|
-
.subscribe(function (_c) {
|
|
680
|
-
var createCustomer = _c.createCustomer;
|
|
681
|
-
switch (createCustomer.__typename) {
|
|
682
|
-
case 'Customer':
|
|
683
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-create-success'), {
|
|
684
|
-
entity: 'Customer',
|
|
685
|
-
});
|
|
686
|
-
if (createCustomer.emailAddress && !formValue.password) {
|
|
687
|
-
_this.notificationService.notify({
|
|
688
|
-
message: ngxTranslateExtractMarker.marker('customer.email-verification-sent'),
|
|
689
|
-
translationVars: { emailAddress: formValue.emailAddress },
|
|
690
|
-
type: 'info',
|
|
691
|
-
duration: 10000,
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
_this.detailForm.markAsPristine();
|
|
695
|
-
_this.addressDefaultsUpdated = false;
|
|
696
|
-
_this.changeDetector.markForCheck();
|
|
697
|
-
_this.router.navigate(['../', createCustomer.id], { relativeTo: _this.route });
|
|
698
|
-
break;
|
|
699
|
-
case 'EmailAddressConflictError':
|
|
700
|
-
_this.notificationService.error(createCustomer.message);
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
};
|
|
704
|
-
CustomerDetailComponent.prototype.save = function () {
|
|
705
|
-
var _this = this;
|
|
706
|
-
this.entity$
|
|
707
|
-
.pipe(operators.take(1), operators.mergeMap(function (_c) {
|
|
708
|
-
var e_2, _d;
|
|
709
|
-
var id = _c.id;
|
|
710
|
-
var _a;
|
|
711
|
-
var saveOperations = [];
|
|
712
|
-
var customerForm = _this.detailForm.get('customer');
|
|
713
|
-
if (customerForm && customerForm.dirty) {
|
|
714
|
-
var formValue = customerForm.value;
|
|
715
|
-
var customFields = (_a = customerForm.get('customFields')) === null || _a === void 0 ? void 0 : _a.value;
|
|
716
|
-
var customer = {
|
|
717
|
-
id: id,
|
|
718
|
-
title: formValue.title,
|
|
719
|
-
emailAddress: formValue.emailAddress,
|
|
720
|
-
firstName: formValue.firstName,
|
|
721
|
-
lastName: formValue.lastName,
|
|
722
|
-
phoneNumber: formValue.phoneNumber,
|
|
723
|
-
customFields: customFields,
|
|
724
|
-
};
|
|
725
|
-
saveOperations.push(_this.dataService.customer
|
|
726
|
-
.updateCustomer(customer)
|
|
727
|
-
.pipe(operators.map(function (res) { return res.updateCustomer; })));
|
|
728
|
-
}
|
|
729
|
-
var addressFormArray = _this.detailForm.get('addresses');
|
|
730
|
-
if ((addressFormArray && addressFormArray.dirty) || _this.addressDefaultsUpdated) {
|
|
731
|
-
try {
|
|
732
|
-
for (var _e = __values(addressFormArray.controls), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
733
|
-
var addressControl = _f.value;
|
|
734
|
-
if (addressControl.dirty || _this.addressDefaultsUpdated) {
|
|
735
|
-
var address = addressControl.value;
|
|
736
|
-
var input = {
|
|
737
|
-
fullName: address.fullName,
|
|
738
|
-
company: address.company,
|
|
739
|
-
streetLine1: address.streetLine1,
|
|
740
|
-
streetLine2: address.streetLine2,
|
|
741
|
-
city: address.city,
|
|
742
|
-
province: address.province,
|
|
743
|
-
postalCode: address.postalCode,
|
|
744
|
-
countryCode: address.countryCode,
|
|
745
|
-
phoneNumber: address.phoneNumber,
|
|
746
|
-
defaultShippingAddress: _this.defaultShippingAddressId === address.id,
|
|
747
|
-
defaultBillingAddress: _this.defaultBillingAddressId === address.id,
|
|
748
|
-
customFields: address.customFields,
|
|
749
|
-
};
|
|
750
|
-
if (!address.id) {
|
|
751
|
-
saveOperations.push(_this.dataService.customer
|
|
752
|
-
.createCustomerAddress(id, input)
|
|
753
|
-
.pipe(operators.map(function (res) { return res.createCustomerAddress; })));
|
|
754
|
-
}
|
|
755
|
-
else {
|
|
756
|
-
if (_this.addressesToDeleteIds.has(address.id)) {
|
|
757
|
-
saveOperations.push(_this.dataService.customer
|
|
758
|
-
.deleteCustomerAddress(address.id)
|
|
759
|
-
.pipe(operators.map(function (res) { return res.deleteCustomerAddress; })));
|
|
760
|
-
}
|
|
761
|
-
else {
|
|
762
|
-
saveOperations.push(_this.dataService.customer
|
|
763
|
-
.updateCustomerAddress(Object.assign(Object.assign({}, input), { id: address.id }))
|
|
764
|
-
.pipe(operators.map(function (res) { return res.updateCustomerAddress; })));
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
771
|
-
finally {
|
|
772
|
-
try {
|
|
773
|
-
if (_f && !_f.done && (_d = _e.return)) _d.call(_e);
|
|
774
|
-
}
|
|
775
|
-
finally { if (e_2) throw e_2.error; }
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
return rxjs.forkJoin(saveOperations);
|
|
779
|
-
}))
|
|
780
|
-
.subscribe(function (data) {
|
|
781
|
-
var e_3, _c;
|
|
782
|
-
var notified = false;
|
|
783
|
-
try {
|
|
784
|
-
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
785
|
-
var result = data_1_1.value;
|
|
786
|
-
switch (result.__typename) {
|
|
787
|
-
case 'Customer':
|
|
788
|
-
case 'Address':
|
|
789
|
-
case 'Success':
|
|
790
|
-
if (!notified) {
|
|
791
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-update-success'), {
|
|
792
|
-
entity: 'Customer',
|
|
793
|
-
});
|
|
794
|
-
notified = true;
|
|
795
|
-
_this.detailForm.markAsPristine();
|
|
796
|
-
_this.addressDefaultsUpdated = false;
|
|
797
|
-
_this.changeDetector.markForCheck();
|
|
798
|
-
_this.fetchHistory.next();
|
|
799
|
-
_this.dataService.customer.getCustomer(_this.id).single$.subscribe();
|
|
800
|
-
}
|
|
801
|
-
break;
|
|
802
|
-
case 'EmailAddressConflictError':
|
|
803
|
-
_this.notificationService.error(result.message);
|
|
804
|
-
break;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
809
|
-
finally {
|
|
810
|
-
try {
|
|
811
|
-
if (data_1_1 && !data_1_1.done && (_c = data_1.return)) _c.call(data_1);
|
|
812
|
-
}
|
|
813
|
-
finally { if (e_3) throw e_3.error; }
|
|
814
|
-
}
|
|
815
|
-
}, function (err) {
|
|
816
|
-
_this.notificationService.error(ngxTranslateExtractMarker.marker('common.notify-update-error'), {
|
|
817
|
-
entity: 'Customer',
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
|
-
};
|
|
821
|
-
CustomerDetailComponent.prototype.addToGroup = function () {
|
|
822
|
-
var _this = this;
|
|
823
|
-
this.modalService
|
|
824
|
-
.fromComponent(SelectCustomerGroupDialogComponent, {
|
|
825
|
-
size: 'md',
|
|
826
|
-
})
|
|
827
|
-
.pipe(operators.switchMap(function (groupIds) { return (groupIds ? rxjs.from(groupIds) : rxjs.EMPTY); }), operators.concatMap(function (groupId) { return _this.dataService.customer.addCustomersToGroup(groupId, [_this.id]); }))
|
|
828
|
-
.subscribe({
|
|
829
|
-
next: function (res) {
|
|
830
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker("customer.add-customers-to-group-success"), {
|
|
831
|
-
customerCount: 1,
|
|
832
|
-
groupName: res.addCustomersToGroup.name,
|
|
833
|
-
});
|
|
834
|
-
},
|
|
835
|
-
complete: function () {
|
|
836
|
-
_this.dataService.customer.getCustomer(_this.id, { take: 0 }).single$.subscribe();
|
|
837
|
-
_this.fetchHistory.next();
|
|
838
|
-
},
|
|
839
|
-
});
|
|
840
|
-
};
|
|
841
|
-
CustomerDetailComponent.prototype.removeFromGroup = function (group) {
|
|
842
|
-
var _this = this;
|
|
843
|
-
this.modalService
|
|
844
|
-
.dialog({
|
|
845
|
-
title: ngxTranslateExtractMarker.marker('customer.confirm-remove-customer-from-group'),
|
|
846
|
-
buttons: [
|
|
847
|
-
{ type: 'secondary', label: ngxTranslateExtractMarker.marker('common.cancel') },
|
|
848
|
-
{ type: 'danger', label: ngxTranslateExtractMarker.marker('common.delete'), returnValue: true },
|
|
849
|
-
],
|
|
850
|
-
})
|
|
851
|
-
.pipe(operators.switchMap(function (response) { return response
|
|
852
|
-
? _this.dataService.customer.removeCustomersFromGroup(group.id, [_this.id])
|
|
853
|
-
: rxjs.EMPTY; }), operators.switchMap(function () { return _this.dataService.customer.getCustomer(_this.id, { take: 0 }).single$; }))
|
|
854
|
-
.subscribe(function (result) {
|
|
855
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker("customer.remove-customers-from-group-success"), {
|
|
856
|
-
customerCount: 1,
|
|
857
|
-
groupName: group.name,
|
|
858
|
-
});
|
|
859
|
-
_this.fetchHistory.next();
|
|
860
|
-
});
|
|
861
|
-
};
|
|
862
|
-
CustomerDetailComponent.prototype.addNoteToCustomer = function (_c) {
|
|
863
|
-
var _this = this;
|
|
864
|
-
var note = _c.note;
|
|
865
|
-
this.dataService.customer.addNoteToCustomer(this.id, note).subscribe(function () {
|
|
866
|
-
_this.fetchHistory.next();
|
|
867
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-create-success'), {
|
|
868
|
-
entity: 'Note',
|
|
869
|
-
});
|
|
870
|
-
});
|
|
871
|
-
};
|
|
872
|
-
CustomerDetailComponent.prototype.updateNote = function (entry) {
|
|
873
|
-
var _this = this;
|
|
874
|
-
this.modalService
|
|
875
|
-
.fromComponent(i2.EditNoteDialogComponent, {
|
|
876
|
-
closable: true,
|
|
877
|
-
locals: {
|
|
878
|
-
displayPrivacyControls: false,
|
|
879
|
-
note: entry.data.note,
|
|
880
|
-
},
|
|
881
|
-
})
|
|
882
|
-
.pipe(operators.switchMap(function (result) {
|
|
883
|
-
if (result) {
|
|
884
|
-
return _this.dataService.customer.updateCustomerNote({
|
|
885
|
-
noteId: entry.id,
|
|
886
|
-
note: result.note,
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
return rxjs.EMPTY;
|
|
891
|
-
}
|
|
892
|
-
}))
|
|
893
|
-
.subscribe(function (result) {
|
|
894
|
-
_this.fetchHistory.next();
|
|
895
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-update-success'), {
|
|
896
|
-
entity: 'Note',
|
|
897
|
-
});
|
|
898
|
-
});
|
|
899
|
-
};
|
|
900
|
-
CustomerDetailComponent.prototype.deleteNote = function (entry) {
|
|
901
|
-
var _this = this;
|
|
902
|
-
return this.modalService
|
|
903
|
-
.dialog({
|
|
904
|
-
title: ngxTranslateExtractMarker.marker('common.confirm-delete-note'),
|
|
905
|
-
body: entry.data.note,
|
|
906
|
-
buttons: [
|
|
907
|
-
{ type: 'secondary', label: ngxTranslateExtractMarker.marker('common.cancel') },
|
|
908
|
-
{ type: 'danger', label: ngxTranslateExtractMarker.marker('common.delete'), returnValue: true },
|
|
909
|
-
],
|
|
910
|
-
})
|
|
911
|
-
.pipe(operators.switchMap(function (res) { return (res ? _this.dataService.customer.deleteCustomerNote(entry.id) : rxjs.EMPTY); }))
|
|
912
|
-
.subscribe(function () {
|
|
913
|
-
_this.fetchHistory.next();
|
|
914
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-delete-success'), {
|
|
915
|
-
entity: 'Note',
|
|
916
|
-
});
|
|
917
|
-
});
|
|
918
|
-
};
|
|
919
|
-
CustomerDetailComponent.prototype.setFormValues = function (entity) {
|
|
920
|
-
var e_4, _c, e_5, _d;
|
|
921
|
-
var _a;
|
|
922
|
-
var customerGroup = this.detailForm.get('customer');
|
|
923
|
-
if (customerGroup) {
|
|
924
|
-
customerGroup.patchValue({
|
|
925
|
-
title: entity.title,
|
|
926
|
-
firstName: entity.firstName,
|
|
927
|
-
lastName: entity.lastName,
|
|
928
|
-
phoneNumber: entity.phoneNumber,
|
|
929
|
-
emailAddress: entity.emailAddress,
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
if (entity.addresses) {
|
|
933
|
-
var addressesArray = new forms.FormArray([]);
|
|
934
|
-
try {
|
|
935
|
-
for (var _e = __values(entity.addresses), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
936
|
-
var address = _f.value;
|
|
937
|
-
var _b = address, customFields = _b.customFields, rest = __rest(_b, ["customFields"]);
|
|
938
|
-
var addressGroup = this.formBuilder.group(Object.assign(Object.assign({}, rest), { countryCode: address.country.code }));
|
|
939
|
-
addressesArray.push(addressGroup);
|
|
940
|
-
if (address.defaultShippingAddress) {
|
|
941
|
-
this.defaultShippingAddressId = address.id;
|
|
942
|
-
}
|
|
943
|
-
if (address.defaultBillingAddress) {
|
|
944
|
-
this.defaultBillingAddressId = address.id;
|
|
945
|
-
}
|
|
946
|
-
if (this.addressCustomFields.length) {
|
|
947
|
-
var customFieldsGroup = this.formBuilder.group({});
|
|
948
|
-
try {
|
|
949
|
-
for (var _g = (e_5 = void 0, __values(this.addressCustomFields)), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
950
|
-
var fieldDef = _h.value;
|
|
951
|
-
var key = fieldDef.name;
|
|
952
|
-
var value = (_a = address.customFields) === null || _a === void 0 ? void 0 : _a[key];
|
|
953
|
-
var control = new forms.FormControl(value);
|
|
954
|
-
customFieldsGroup.addControl(key, control);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
958
|
-
finally {
|
|
959
|
-
try {
|
|
960
|
-
if (_h && !_h.done && (_d = _g.return)) _d.call(_g);
|
|
961
|
-
}
|
|
962
|
-
finally { if (e_5) throw e_5.error; }
|
|
963
|
-
}
|
|
964
|
-
addressGroup.addControl('customFields', customFieldsGroup);
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
969
|
-
finally {
|
|
970
|
-
try {
|
|
971
|
-
if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
|
|
972
|
-
}
|
|
973
|
-
finally { if (e_4) throw e_4.error; }
|
|
974
|
-
}
|
|
975
|
-
this.detailForm.setControl('addresses', addressesArray);
|
|
976
|
-
}
|
|
977
|
-
if (this.customFields.length) {
|
|
978
|
-
this.setCustomFieldFormValues(this.customFields, this.detailForm.get(['customer', 'customFields']), entity);
|
|
979
|
-
}
|
|
980
|
-
this.changeDetector.markForCheck();
|
|
981
|
-
};
|
|
982
|
-
/**
|
|
983
|
-
* Refetch the customer with the current order list settings.
|
|
984
|
-
*/
|
|
985
|
-
CustomerDetailComponent.prototype.fetchOrdersList = function () {
|
|
986
|
-
var _this = this;
|
|
987
|
-
this.dataService.customer
|
|
988
|
-
.getCustomer(this.id, {
|
|
989
|
-
take: this.ordersPerPage,
|
|
990
|
-
skip: (this.currentOrdersPage - 1) * this.ordersPerPage,
|
|
991
|
-
})
|
|
992
|
-
.single$.pipe(operators.map(function (data) { return data.customer; }), operators.filter(sharedUtils.notNullOrUndefined))
|
|
993
|
-
.subscribe(function (result) { return _this.orderListUpdates$.next(result); });
|
|
994
|
-
};
|
|
995
|
-
return CustomerDetailComponent;
|
|
996
|
-
}(i2.BaseDetailComponent));
|
|
997
|
-
CustomerDetailComponent.decorators = [
|
|
998
|
-
{ type: i0.Component, args: [{
|
|
999
|
-
selector: 'vdr-customer-detail',
|
|
1000
|
-
template: "<vdr-action-bar>\r\n <vdr-ab-left>\r\n <div class=\"flex clr-align-items-center\">\r\n <vdr-entity-info [entity]=\"entity$ | async\"></vdr-entity-info>\r\n <vdr-customer-status-label [customer]=\"entity$ | async\"></vdr-customer-status-label>\r\n <div\r\n class=\"last-login\"\r\n *ngIf=\"(entity$ | async)?.user?.lastLogin as lastLogin\"\r\n [title]=\"lastLogin | localeDate: 'medium'\"\r\n >\r\n {{ 'customer.last-login' | translate }}: {{ lastLogin | timeAgo }}\r\n </div>\r\n </div>\r\n </vdr-ab-left>\r\n\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"customer-detail\"></vdr-action-bar-items>\r\n <button\r\n class=\"btn btn-primary\"\r\n *ngIf=\"isNew$ | async; else updateButton\"\r\n (click)=\"create()\"\r\n [disabled]=\"!(addressDefaultsUpdated || (detailForm.valid && detailForm.dirty))\"\r\n >\r\n {{ 'common.create' | translate }}\r\n </button>\r\n <ng-template #updateButton>\r\n <button\r\n *vdrIfPermissions=\"'UpdateCustomer'\"\r\n class=\"btn btn-primary\"\r\n (click)=\"save()\"\r\n [disabled]=\"!(addressDefaultsUpdated || (detailForm.valid && detailForm.dirty))\"\r\n >\r\n {{ 'common.update' | translate }}\r\n </button>\r\n </ng-template>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n\r\n<form class=\"form\" [formGroup]=\"detailForm.get('customer')\">\r\n <vdr-form-field [label]=\"'customer.title' | translate\" for=\"title\" [readOnlyToggle]=\"!(isNew$ | async)\">\r\n <input id=\"title\" type=\"text\" formControlName=\"title\" />\r\n </vdr-form-field>\r\n <vdr-form-field\r\n [label]=\"'customer.first-name' | translate\"\r\n for=\"firstName\"\r\n [readOnlyToggle]=\"!(isNew$ | async)\"\r\n >\r\n <input id=\"firstName\" type=\"text\" formControlName=\"firstName\" />\r\n </vdr-form-field>\r\n <vdr-form-field\r\n [label]=\"'customer.last-name' | translate\"\r\n for=\"lastName\"\r\n [readOnlyToggle]=\"!(isNew$ | async)\"\r\n >\r\n <input id=\"lastName\" type=\"text\" formControlName=\"lastName\" />\r\n </vdr-form-field>\r\n <vdr-form-field\r\n [label]=\"'customer.email-address' | translate\"\r\n for=\"emailAddress\"\r\n [readOnlyToggle]=\"!(isNew$ | async)\"\r\n >\r\n <input id=\"emailAddress\" type=\"text\" formControlName=\"emailAddress\" />\r\n </vdr-form-field>\r\n <vdr-form-field\r\n [label]=\"'customer.phone-number' | translate\"\r\n for=\"phoneNumber\"\r\n [readOnlyToggle]=\"!(isNew$ | async)\"\r\n >\r\n <input id=\"phoneNumber\" type=\"text\" formControlName=\"phoneNumber\" />\r\n </vdr-form-field>\r\n <vdr-form-field [label]=\"'customer.password' | translate\" for=\"password\" *ngIf=\"isNew$ | async\">\r\n <input id=\"password\" type=\"password\" formControlName=\"password\" />\r\n </vdr-form-field>\r\n\r\n <section formGroupName=\"customFields\" *ngIf=\"customFields.length\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Customer\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"detailForm.get(['customer', 'customFields'])\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n <vdr-custom-detail-component-host\r\n locationId=\"customer-detail\"\r\n [entity$]=\"entity$\"\r\n [detailForm]=\"detailForm\"\r\n ></vdr-custom-detail-component-host>\r\n</form>\r\n\r\n<div class=\"groups\" *ngIf=\"(entity$ | async)?.groups as groups\">\r\n <label class=\"clr-control-label\">{{ 'customer.customer-groups' | translate }}</label>\r\n <ng-container *ngIf=\"groups.length; else noGroups\">\r\n <vdr-chip\r\n *ngFor=\"let group of groups\"\r\n [colorFrom]=\"group.id\"\r\n icon=\"times\"\r\n (iconClick)=\"removeFromGroup(group)\"\r\n >{{ group.name }}</vdr-chip\r\n >\r\n </ng-container>\r\n <ng-template #noGroups>\r\n {{ 'customer.not-a-member-of-any-groups' | translate }}\r\n </ng-template>\r\n <div>\r\n <button\r\n class=\"btn btn-sm btn-secondary\"\r\n (click)=\"addToGroup()\"\r\n *vdrIfPermissions=\"'UpdateCustomerGroup'\"\r\n >\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n {{ 'customer.add-customer-to-group' | translate }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<div class=\"clr-row\" *ngIf=\"!(isNew$ | async)\">\r\n <div class=\"clr-col-md-4\">\r\n <h3>{{ 'customer.addresses' | translate }}</h3>\r\n <vdr-address-card\r\n *ngFor=\"let addressForm of getAddressFormControls()\"\r\n [class.to-delete]=\"addressesToDeleteIds.has(addressForm.value.id)\"\r\n [availableCountries]=\"availableCountries$ | async\"\r\n [isDefaultBilling]=\"defaultBillingAddressId === addressForm.value.id\"\r\n [isDefaultShipping]=\"defaultShippingAddressId === addressForm.value.id\"\r\n [addressForm]=\"addressForm\"\r\n [customFields]=\"addressCustomFields\"\r\n [editable]=\"(['UpdateCustomer'] | hasPermission) && !addressesToDeleteIds.has(addressForm.value.id)\"\r\n (setAsDefaultBilling)=\"setDefaultBillingAddressId($event)\"\r\n (setAsDefaultShipping)=\"setDefaultShippingAddressId($event)\"\r\n (deleteAddress)=\"toggleDeleteAddress($event)\"\r\n ></vdr-address-card>\r\n <button class=\"btn btn-secondary\" (click)=\"addAddress()\" *vdrIfPermissions=\"'UpdateCustomer'\">\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n {{ 'customer.create-new-address' | translate }}\r\n </button>\r\n </div>\r\n <div class=\"clr-col-md-8\">\r\n <h3>{{ 'customer.orders' | translate }}</h3>\r\n <vdr-data-table\r\n [items]=\"orders$ | async\"\r\n [itemsPerPage]=\"ordersPerPage\"\r\n [totalItems]=\"ordersCount$ | async\"\r\n [currentPage]=\"currentOrdersPage\"\r\n [emptyStateLabel]=\"'customer.no-orders-placed' | translate\"\r\n (itemsPerPageChange)=\"setOrderItemsPerPage($event)\"\r\n (pageChange)=\"setOrderCurrentPage($event)\"\r\n >\r\n <vdr-dt-column>{{ 'common.code' | translate }}</vdr-dt-column>\r\n <vdr-dt-column>{{ 'order.state' | translate }}</vdr-dt-column>\r\n <vdr-dt-column>{{ 'order.total' | translate }}</vdr-dt-column>\r\n <vdr-dt-column>{{ 'common.updated-at' | translate }}</vdr-dt-column>\r\n <vdr-dt-column></vdr-dt-column>\r\n <ng-template let-order=\"item\">\r\n <td class=\"left\">{{ order.code }}</td>\r\n <td class=\"left\">{{ order.state }}</td>\r\n <td class=\"left\">{{ order.totalWithTax | localeCurrency: order.currencyCode }}</td>\r\n <td class=\"left\">{{ order.updatedAt | localeDate: 'medium' }}</td>\r\n <td class=\"right\">\r\n <vdr-table-row-action\r\n iconShape=\"shopping-cart\"\r\n [label]=\"'common.open' | translate\"\r\n [linkTo]=\"['/orders/', order.id]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n </ng-template>\r\n </vdr-data-table>\r\n </div>\r\n</div>\r\n<div class=\"clr-row\" *ngIf=\"!(isNew$ | async)\">\r\n <div class=\"clr-col-md-6\">\r\n <vdr-customer-history\r\n [customer]=\"entity$ | async\"\r\n [history]=\"history$ | async\"\r\n (addNote)=\"addNoteToCustomer($event)\"\r\n (updateNote)=\"updateNote($event)\"\r\n (deleteNote)=\"deleteNote($event)\"\r\n ></vdr-customer-history>\r\n </div>\r\n</div>\r\n",
|
|
1001
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1002
|
-
styles: [".last-login{margin-left:6px;color:var(--color-grey-500)}.to-delete{opacity:.5}\n"]
|
|
1003
|
-
},] }
|
|
1004
|
-
];
|
|
1005
|
-
CustomerDetailComponent.ctorParameters = function () { return [
|
|
1006
|
-
{ type: i1.ActivatedRoute },
|
|
1007
|
-
{ type: i1.Router },
|
|
1008
|
-
{ type: i2.ServerConfigService },
|
|
1009
|
-
{ type: i0.ChangeDetectorRef },
|
|
1010
|
-
{ type: forms.FormBuilder },
|
|
1011
|
-
{ type: i2.DataService },
|
|
1012
|
-
{ type: i2.ModalService },
|
|
1013
|
-
{ type: i2.NotificationService }
|
|
1014
|
-
]; };
|
|
1015
|
-
|
|
1016
|
-
var CustomerGroupDetailDialogComponent = /** @class */ (function () {
|
|
1017
|
-
function CustomerGroupDetailDialogComponent(serverConfigService, formBuilder) {
|
|
1018
|
-
this.serverConfigService = serverConfigService;
|
|
1019
|
-
this.formBuilder = formBuilder;
|
|
1020
|
-
this.customFields = this.serverConfigService.getCustomFieldsFor('CustomerGroup');
|
|
1021
|
-
}
|
|
1022
|
-
CustomerGroupDetailDialogComponent.prototype.ngOnInit = function () {
|
|
1023
|
-
var e_1, _b;
|
|
1024
|
-
var _a;
|
|
1025
|
-
this.form = this.formBuilder.group({
|
|
1026
|
-
name: [this.group.name, forms.Validators.required],
|
|
1027
|
-
customFields: this.formBuilder.group(this.customFields.reduce(function (hash, field) {
|
|
1028
|
-
var _b;
|
|
1029
|
-
return (Object.assign(Object.assign({}, hash), (_b = {}, _b[field.name] = '', _b)));
|
|
1030
|
-
}, {})),
|
|
1031
|
-
});
|
|
1032
|
-
if (this.customFields.length) {
|
|
1033
|
-
var customFieldsGroup = this.form.get('customFields');
|
|
1034
|
-
try {
|
|
1035
|
-
for (var _c = __values(this.customFields), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1036
|
-
var fieldDef = _d.value;
|
|
1037
|
-
var key = fieldDef.name;
|
|
1038
|
-
var value = (_a = this.group.customFields) === null || _a === void 0 ? void 0 : _a[key];
|
|
1039
|
-
var control = customFieldsGroup.get(key);
|
|
1040
|
-
if (control) {
|
|
1041
|
-
control.patchValue(value);
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1046
|
-
finally {
|
|
1047
|
-
try {
|
|
1048
|
-
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
1049
|
-
}
|
|
1050
|
-
finally { if (e_1) throw e_1.error; }
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
CustomerGroupDetailDialogComponent.prototype.cancel = function () {
|
|
1055
|
-
this.resolveWith();
|
|
1056
|
-
};
|
|
1057
|
-
CustomerGroupDetailDialogComponent.prototype.save = function () {
|
|
1058
|
-
this.resolveWith(this.form.value);
|
|
1059
|
-
};
|
|
1060
|
-
return CustomerGroupDetailDialogComponent;
|
|
1061
|
-
}());
|
|
1062
|
-
CustomerGroupDetailDialogComponent.decorators = [
|
|
1063
|
-
{ type: i0.Component, args: [{
|
|
1064
|
-
selector: 'vdr-customer-group-detail-dialog',
|
|
1065
|
-
template: "<ng-template vdrDialogTitle>\r\n <span *ngIf=\"group.id\">{{ 'customer.update-customer-group' | translate }}</span>\r\n <span *ngIf=\"!group.id\">{{ 'customer.create-customer-group' | translate }}</span>\r\n</ng-template>\r\n<form [formGroup]=\"form\">\r\n <vdr-form-field [label]=\"'common.name' | translate\" for=\"name\">\r\n <input\r\n id=\"name\"\r\n type=\"text\"\r\n formControlName=\"name\"\r\n [readonly]=\"!(['CreateCustomerGroup', 'UpdateCustomerGroup'] | hasPermission)\"\r\n />\r\n </vdr-form-field>\r\n <section formGroupName=\"customFields\" *ngIf=\"customFields.length\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"CustomerGroup\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"form.get('customFields')\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n</form>\r\n<ng-template vdrDialogButtons>\r\n <button type=\"button\" class=\"btn\" (click)=\"cancel()\">{{ 'common.cancel' | translate }}</button>\r\n <button type=\"submit\" (click)=\"save()\" [disabled]=\"!form.valid\" class=\"btn btn-primary\">\r\n <span *ngIf=\"group.id\">{{ 'customer.update-customer-group' | translate }}</span>\r\n <span *ngIf=\"!group.id\">{{ 'customer.create-customer-group' | translate }}</span>\r\n </button>\r\n</ng-template>\r\n",
|
|
1066
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1067
|
-
styles: [""]
|
|
1068
|
-
},] }
|
|
1069
|
-
];
|
|
1070
|
-
CustomerGroupDetailDialogComponent.ctorParameters = function () { return [
|
|
1071
|
-
{ type: i2.ServerConfigService },
|
|
1072
|
-
{ type: forms.FormBuilder }
|
|
1073
|
-
]; };
|
|
1074
|
-
|
|
1075
|
-
var CustomerGroupListComponent = /** @class */ (function (_super) {
|
|
1076
|
-
__extends(CustomerGroupListComponent, _super);
|
|
1077
|
-
function CustomerGroupListComponent(dataService, notificationService, modalService, route, router) {
|
|
1078
|
-
var _this = _super.call(this, router, route) || this;
|
|
1079
|
-
_this.dataService = dataService;
|
|
1080
|
-
_this.notificationService = notificationService;
|
|
1081
|
-
_this.modalService = modalService;
|
|
1082
|
-
_this.route = route;
|
|
1083
|
-
_this.router = router;
|
|
1084
|
-
_this.searchTerm = new forms.FormControl('');
|
|
1085
|
-
_this.selectedCustomerIds = [];
|
|
1086
|
-
_this.fetchGroupMembers$ = new rxjs.BehaviorSubject({
|
|
1087
|
-
skip: 0,
|
|
1088
|
-
take: 0,
|
|
1089
|
-
filterTerm: '',
|
|
1090
|
-
});
|
|
1091
|
-
_this.refreshActiveGroupMembers$ = new rxjs.BehaviorSubject(undefined);
|
|
1092
|
-
_super.prototype.setQueryFn.call(_this, function () {
|
|
1093
|
-
var _b;
|
|
1094
|
-
var args = [];
|
|
1095
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1096
|
-
args[_i] = arguments[_i];
|
|
1097
|
-
}
|
|
1098
|
-
return (_b = _this.dataService.customer).getCustomerGroupList.apply(_b, __spreadArray([], __read(args))).refetchOnChannelChange();
|
|
1099
|
-
}, function (data) { return data.customerGroups; }, function (skip, take) { return ({
|
|
1100
|
-
options: {
|
|
1101
|
-
skip: skip,
|
|
1102
|
-
take: take,
|
|
1103
|
-
filter: {
|
|
1104
|
-
name: { contains: _this.searchTerm.value },
|
|
1105
|
-
},
|
|
1106
|
-
},
|
|
1107
|
-
}); });
|
|
1108
|
-
return _this;
|
|
1109
|
-
}
|
|
1110
|
-
CustomerGroupListComponent.prototype.ngOnInit = function () {
|
|
1111
|
-
var _this = this;
|
|
1112
|
-
_super.prototype.ngOnInit.call(this);
|
|
1113
|
-
this.searchTerm.valueChanges
|
|
1114
|
-
.pipe(operators.filter(function (value) { return 2 < value.length || value.length === 0; }), operators.debounceTime(250), operators.takeUntil(this.destroy$))
|
|
1115
|
-
.subscribe(function () { return _this.refresh(); });
|
|
1116
|
-
var activeGroupId$ = this.route.paramMap.pipe(operators.map(function (pm) { return pm.get('contents'); }), operators.distinctUntilChanged(), operators.tap(function () { return (_this.selectedCustomerIds = []); }));
|
|
1117
|
-
this.listIsEmpty$ = this.items$.pipe(operators.map(function (groups) { return groups.length === 0; }));
|
|
1118
|
-
this.activeGroup$ = rxjs.combineLatest(this.items$, activeGroupId$).pipe(operators.map(function (_b) {
|
|
1119
|
-
var _c = __read(_b, 2), groups = _c[0], activeGroupId = _c[1];
|
|
1120
|
-
if (activeGroupId) {
|
|
1121
|
-
return groups.find(function (g) { return g.id === activeGroupId; });
|
|
1122
|
-
}
|
|
1123
|
-
}), operators.tap(function (val) { return (_this.activeGroupId = val === null || val === void 0 ? void 0 : val.id); }));
|
|
1124
|
-
var membersResult$ = rxjs.combineLatest(this.activeGroup$, this.fetchGroupMembers$, this.refreshActiveGroupMembers$).pipe(operators.switchMap(function (_b) {
|
|
1125
|
-
var _c = __read(_b, 2), activeGroup = _c[0], _d = _c[1], skip = _d.skip, take = _d.take, filterTerm = _d.filterTerm;
|
|
1126
|
-
if (activeGroup) {
|
|
1127
|
-
return _this.dataService.customer
|
|
1128
|
-
.getCustomerGroupWithCustomers(activeGroup.id, {
|
|
1129
|
-
skip: skip,
|
|
1130
|
-
take: take,
|
|
1131
|
-
filter: {
|
|
1132
|
-
emailAddress: {
|
|
1133
|
-
contains: filterTerm,
|
|
1134
|
-
},
|
|
1135
|
-
},
|
|
1136
|
-
})
|
|
1137
|
-
.mapStream(function (res) { var _a; return (_a = res.customerGroup) === null || _a === void 0 ? void 0 : _a.customers; });
|
|
1138
|
-
}
|
|
1139
|
-
else {
|
|
1140
|
-
return rxjs.of(undefined);
|
|
1141
|
-
}
|
|
1142
|
-
}));
|
|
1143
|
-
this.members$ = membersResult$.pipe(operators.map(function (res) { var _a; return (_a = res === null || res === void 0 ? void 0 : res.items) !== null && _a !== void 0 ? _a : []; }));
|
|
1144
|
-
this.membersTotal$ = membersResult$.pipe(operators.map(function (res) { var _a; return (_a = res === null || res === void 0 ? void 0 : res.totalItems) !== null && _a !== void 0 ? _a : 0; }));
|
|
1145
|
-
};
|
|
1146
|
-
CustomerGroupListComponent.prototype.create = function () {
|
|
1147
|
-
var _this = this;
|
|
1148
|
-
this.modalService
|
|
1149
|
-
.fromComponent(CustomerGroupDetailDialogComponent, { locals: { group: { name: '' } } })
|
|
1150
|
-
.pipe(operators.switchMap(function (result) { return result
|
|
1151
|
-
? _this.dataService.customer.createCustomerGroup(Object.assign(Object.assign({}, result), { customerIds: [] }))
|
|
1152
|
-
: rxjs.EMPTY; }))
|
|
1153
|
-
.subscribe(function () {
|
|
1154
|
-
_this.refresh();
|
|
1155
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-create-success'), {
|
|
1156
|
-
entity: 'CustomerGroup',
|
|
1157
|
-
});
|
|
1158
|
-
}, function (err) {
|
|
1159
|
-
_this.notificationService.error(ngxTranslateExtractMarker.marker('common.notify-create-error'), {
|
|
1160
|
-
entity: 'CustomerGroup',
|
|
1161
|
-
});
|
|
1162
|
-
});
|
|
1163
|
-
};
|
|
1164
|
-
CustomerGroupListComponent.prototype.delete = function (groupId) {
|
|
1165
|
-
var _this = this;
|
|
1166
|
-
this.modalService
|
|
1167
|
-
.dialog({
|
|
1168
|
-
title: ngxTranslateExtractMarker.marker('customer.confirm-delete-customer-group'),
|
|
1169
|
-
buttons: [
|
|
1170
|
-
{ type: 'secondary', label: ngxTranslateExtractMarker.marker('common.cancel') },
|
|
1171
|
-
{ type: 'danger', label: ngxTranslateExtractMarker.marker('common.delete'), returnValue: true },
|
|
1172
|
-
],
|
|
1173
|
-
})
|
|
1174
|
-
.pipe(operators.switchMap(function (response) { return response ? _this.dataService.customer.deleteCustomerGroup(groupId) : rxjs.EMPTY; }), operators.switchMap(function (result) {
|
|
1175
|
-
if (result.deleteCustomerGroup.result === i2.DeletionResult.DELETED) {
|
|
1176
|
-
// refresh list
|
|
1177
|
-
return _this.dataService.customer
|
|
1178
|
-
.getCustomerGroupList()
|
|
1179
|
-
.mapSingle(function () { return ({ errorMessage: false }); });
|
|
1180
|
-
}
|
|
1181
|
-
else {
|
|
1182
|
-
return rxjs.of({ errorMessage: result.deleteCustomerGroup.message });
|
|
1183
|
-
}
|
|
1184
|
-
}))
|
|
1185
|
-
.subscribe(function (result) {
|
|
1186
|
-
if (typeof result.errorMessage === 'string') {
|
|
1187
|
-
_this.notificationService.error(result.errorMessage);
|
|
1188
|
-
}
|
|
1189
|
-
else {
|
|
1190
|
-
_this.refresh();
|
|
1191
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-delete-success'), {
|
|
1192
|
-
entity: 'CustomerGroup',
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
}, function (err) {
|
|
1196
|
-
_this.notificationService.error(ngxTranslateExtractMarker.marker('common.notify-delete-error'), {
|
|
1197
|
-
entity: 'CustomerGroup',
|
|
1198
|
-
});
|
|
1199
|
-
});
|
|
1200
|
-
};
|
|
1201
|
-
CustomerGroupListComponent.prototype.update = function (group) {
|
|
1202
|
-
var _this = this;
|
|
1203
|
-
this.modalService
|
|
1204
|
-
.fromComponent(CustomerGroupDetailDialogComponent, { locals: { group: group } })
|
|
1205
|
-
.pipe(operators.switchMap(function (result) { return result
|
|
1206
|
-
? _this.dataService.customer.updateCustomerGroup(Object.assign({ id: group.id }, result))
|
|
1207
|
-
: rxjs.EMPTY; }))
|
|
1208
|
-
.subscribe(function () {
|
|
1209
|
-
_this.refresh();
|
|
1210
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-update-success'), {
|
|
1211
|
-
entity: 'CustomerGroup',
|
|
1212
|
-
});
|
|
1213
|
-
}, function (err) {
|
|
1214
|
-
_this.notificationService.error(ngxTranslateExtractMarker.marker('common.notify-update-error'), {
|
|
1215
|
-
entity: 'CustomerGroup',
|
|
1216
|
-
});
|
|
1217
|
-
});
|
|
1218
|
-
};
|
|
1219
|
-
CustomerGroupListComponent.prototype.closeMembers = function () {
|
|
1220
|
-
var params = Object.assign({}, this.route.snapshot.params);
|
|
1221
|
-
delete params.contents;
|
|
1222
|
-
this.router.navigate(['./', params], { relativeTo: this.route, queryParamsHandling: 'preserve' });
|
|
1223
|
-
};
|
|
1224
|
-
CustomerGroupListComponent.prototype.addToGroup = function (group) {
|
|
1225
|
-
var _this = this;
|
|
1226
|
-
this.modalService
|
|
1227
|
-
.fromComponent(AddCustomerToGroupDialogComponent, {
|
|
1228
|
-
locals: {
|
|
1229
|
-
group: group,
|
|
1230
|
-
route: this.route,
|
|
1231
|
-
},
|
|
1232
|
-
size: 'md',
|
|
1233
|
-
verticalAlign: 'top',
|
|
1234
|
-
})
|
|
1235
|
-
.pipe(operators.switchMap(function (customerIds) { return customerIds
|
|
1236
|
-
? _this.dataService.customer
|
|
1237
|
-
.addCustomersToGroup(group.id, customerIds)
|
|
1238
|
-
.pipe(operators.mapTo(customerIds))
|
|
1239
|
-
: rxjs.EMPTY; }))
|
|
1240
|
-
.subscribe({
|
|
1241
|
-
next: function (result) {
|
|
1242
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker("customer.add-customers-to-group-success"), {
|
|
1243
|
-
customerCount: result.length,
|
|
1244
|
-
groupName: group.name,
|
|
1245
|
-
});
|
|
1246
|
-
_this.refreshActiveGroupMembers$.next();
|
|
1247
|
-
_this.selectedCustomerIds = [];
|
|
1248
|
-
},
|
|
1249
|
-
});
|
|
1250
|
-
};
|
|
1251
|
-
CustomerGroupListComponent.prototype.removeFromGroup = function (group, customerIds) {
|
|
1252
|
-
var _this = this;
|
|
1253
|
-
this.dataService.customer.removeCustomersFromGroup(group.id, customerIds).subscribe({
|
|
1254
|
-
complete: function () {
|
|
1255
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker("customer.remove-customers-from-group-success"), {
|
|
1256
|
-
customerCount: customerIds.length,
|
|
1257
|
-
groupName: group.name,
|
|
1258
|
-
});
|
|
1259
|
-
_this.refreshActiveGroupMembers$.next();
|
|
1260
|
-
_this.selectedCustomerIds = [];
|
|
1261
|
-
},
|
|
1262
|
-
});
|
|
1263
|
-
};
|
|
1264
|
-
return CustomerGroupListComponent;
|
|
1265
|
-
}(i2.BaseListComponent));
|
|
1266
|
-
CustomerGroupListComponent.decorators = [
|
|
1267
|
-
{ type: i0.Component, args: [{
|
|
1268
|
-
selector: 'vdr-customer-group-list',
|
|
1269
|
-
template: "<vdr-action-bar>\r\n <vdr-ab-left>\r\n <input\r\n type=\"text\"\r\n name=\"emailSearchTerm\"\r\n [formControl]=\"searchTerm\"\r\n [placeholder]=\"'customer.search-by-group-name' | translate\"\r\n class=\"search-input ml3\"\r\n />\r\n </vdr-ab-left>\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"customer-group-list\"></vdr-action-bar-items>\r\n <button class=\"btn btn-primary\" *vdrIfPermissions=\"'CreateCustomerGroup'\" (click)=\"create()\">\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n {{ 'customer.create-new-customer-group' | translate }}\r\n </button>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n<div class=\"group-wrapper\">\r\n <div class=\"group-list\">\r\n <vdr-data-table\r\n [class.expanded]=\"activeGroup$ | async\"\r\n [items]=\"items$ | async\"\r\n [itemsPerPage]=\"itemsPerPage$ | async\"\r\n [totalItems]=\"totalItems$ | async\"\r\n [currentPage]=\"currentPage$ | async\"\r\n (pageChange)=\"setPageNumber($event)\"\r\n (itemsPerPageChange)=\"setItemsPerPage($event)\"\r\n >\r\n <ng-template let-group=\"item\">\r\n <td class=\"left align-middle\" [class.active]=\"group.id === activeGroupId\">\r\n <vdr-entity-info [entity]=\"group\"></vdr-entity-info>\r\n </td>\r\n <td class=\"left align-middle\" [class.active]=\"group.id === activeGroupId\">\r\n <vdr-chip [colorFrom]=\"group.id\">{{ group.name }}</vdr-chip>\r\n </td>\r\n <td class=\"left align-middle\" [class.active]=\"group.id === activeGroupId\">\r\n <a\r\n class=\"btn btn-link btn-sm\"\r\n [routerLink]=\"['./', { contents: group.id }]\"\r\n queryParamsHandling=\"preserve\"\r\n >\r\n <clr-icon shape=\"view-list\"></clr-icon>\r\n {{ 'customer.view-group-members' | translate }}\r\n </a>\r\n </td>\r\n <td class=\"right align-middle\" [class.active]=\"group.id === activeGroupId\">\r\n <button class=\"btn btn-link btn-sm\" (click)=\"update(group)\">\r\n <clr-icon shape=\"edit\"></clr-icon>\r\n {{ 'common.edit' | translate }}\r\n </button>\r\n </td>\r\n <td [class.active]=\"group.id === activeGroupId\" class=\"align-middle\">\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-link btn-sm\" vdrDropdownTrigger>\r\n {{ 'common.actions' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n class=\"button\"\r\n vdrDropdownItem\r\n (click)=\"delete(group.id)\"\r\n [disabled]=\"!('DeleteCustomerGroup' | hasPermission)\"\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </td>\r\n </ng-template>\r\n </vdr-data-table>\r\n </div>\r\n <ng-template #emptyPlaceholder>\r\n <vdr-empty-placeholder></vdr-empty-placeholder>\r\n </ng-template>\r\n <div class=\"group-members\" [class.expanded]=\"activeGroup$ | async\">\r\n <ng-container *ngIf=\"activeGroup$ | async as activeGroup\">\r\n <div class=\"flex\">\r\n <div class=\"header-title-row\">{{ activeGroup.name }} ({{ membersTotal$ | async }})</div>\r\n <div class=\"flex-spacer\"></div>\r\n <button type=\"button\" class=\"close-button\" (click)=\"closeMembers()\">\r\n <clr-icon shape=\"close\"></clr-icon>\r\n </button>\r\n </div>\r\n <div class=\"controls\">\r\n <vdr-dropdown>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-secondary btn-sm\"\r\n vdrDropdownTrigger\r\n [disabled]=\"selectedCustomerIds.length === 0\"\r\n >\r\n {{ 'common.with-selected' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n class=\"delete-button\"\r\n (click)=\"removeFromGroup(activeGroup, selectedCustomerIds)\"\r\n vdrDropdownItem\r\n [disabled]=\"!('UpdateCustomerGroup' | hasPermission)\"\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'customer.remove-from-group' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n <button class=\"btn btn-secondary btn-sm\" (click)=\"addToGroup(activeGroup)\">\r\n {{ 'customer.add-customers-to-group' | translate: { groupName: activeGroup.name } }}\r\n </button>\r\n </div>\r\n <vdr-customer-group-member-list\r\n [members]=\"members$ | async\"\r\n [route]=\"route\"\r\n [totalItems]=\"membersTotal$ | async\"\r\n [selectedMemberIds]=\"selectedCustomerIds\"\r\n (selectionChange)=\"selectedCustomerIds = $event\"\r\n (fetchParamsChange)=\"fetchGroupMembers$.next($event)\"\r\n ></vdr-customer-group-member-list>\r\n </ng-container>\r\n </div>\r\n</div>\r\n",
|
|
1270
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1271
|
-
styles: [".group-wrapper{display:flex;height:calc(100% - 50px)}.group-wrapper .group-list{flex:1;overflow:auto;margin-top:0}.group-wrapper .group-list .active{background-color:var(--clr-global-selection-color)}.group-wrapper .group-list.expanded{width:calc(100% - 40vw)}vdr-data-table ::ng-deep table{margin-top:0}.group-members{height:100%;width:0;opacity:0;visibility:hidden;overflow:auto;transition:width .3s,opacity .2s .3s,visibility 0s .3s}.group-members.expanded{width:40vw;visibility:visible;opacity:1;padding-left:12px}.group-members .close-button{margin:0;background:none;border:none;cursor:pointer}.group-members ::ng-deep table.table{margin-top:0}.group-members ::ng-deep table.table th{top:0}.group-members .controls{display:flex;justify-content:space-between}vdr-empty-placeholder{flex:1}\n"]
|
|
1272
|
-
},] }
|
|
1273
|
-
];
|
|
1274
|
-
CustomerGroupListComponent.ctorParameters = function () { return [
|
|
1275
|
-
{ type: i2.DataService },
|
|
1276
|
-
{ type: i2.NotificationService },
|
|
1277
|
-
{ type: i2.ModalService },
|
|
1278
|
-
{ type: i1.ActivatedRoute },
|
|
1279
|
-
{ type: i1.Router }
|
|
1280
|
-
]; };
|
|
1281
|
-
|
|
1282
|
-
var CustomerGroupMemberListComponent = /** @class */ (function () {
|
|
1283
|
-
function CustomerGroupMemberListComponent(router, dataService) {
|
|
1284
|
-
var _this = this;
|
|
1285
|
-
this.router = router;
|
|
1286
|
-
this.dataService = dataService;
|
|
1287
|
-
this.selectedMemberIds = [];
|
|
1288
|
-
this.selectionChange = new i0.EventEmitter();
|
|
1289
|
-
this.fetchParamsChange = new i0.EventEmitter();
|
|
1290
|
-
this.filterTermControl = new forms.FormControl('');
|
|
1291
|
-
this.refresh$ = new rxjs.BehaviorSubject(true);
|
|
1292
|
-
this.destroy$ = new rxjs.Subject();
|
|
1293
|
-
this.isMemberSelected = function (member) {
|
|
1294
|
-
return -1 < _this.selectedMemberIds.indexOf(member.id);
|
|
1295
|
-
};
|
|
1296
|
-
}
|
|
1297
|
-
CustomerGroupMemberListComponent.prototype.ngOnInit = function () {
|
|
1298
|
-
var _this = this;
|
|
1299
|
-
this.membersCurrentPage$ = this.route.paramMap.pipe(operators.map(function (qpm) { return qpm.get('membersPage'); }), operators.map(function (page) { return (!page ? 1 : +page); }), operators.startWith(1), operators.distinctUntilChanged());
|
|
1300
|
-
this.membersItemsPerPage$ = this.route.paramMap.pipe(operators.map(function (qpm) { return qpm.get('membersPerPage'); }), operators.map(function (perPage) { return (!perPage ? 10 : +perPage); }), operators.startWith(10), operators.distinctUntilChanged());
|
|
1301
|
-
var filterTerm$ = this.filterTermControl.valueChanges.pipe(operators.debounceTime(250), operators.tap(function () { return _this.setContentsPageNumber(1); }), operators.startWith(''));
|
|
1302
|
-
rxjs.combineLatest(this.membersCurrentPage$, this.membersItemsPerPage$, filterTerm$, this.refresh$)
|
|
1303
|
-
.pipe(operators.takeUntil(this.destroy$))
|
|
1304
|
-
.subscribe(function (_a) {
|
|
1305
|
-
var _b = __read(_a, 3), currentPage = _b[0], itemsPerPage = _b[1], filterTerm = _b[2];
|
|
1306
|
-
var take = itemsPerPage;
|
|
1307
|
-
var skip = (currentPage - 1) * itemsPerPage;
|
|
1308
|
-
_this.fetchParamsChange.emit({
|
|
1309
|
-
filterTerm: filterTerm,
|
|
1310
|
-
skip: skip,
|
|
1311
|
-
take: take,
|
|
1312
|
-
});
|
|
1313
|
-
});
|
|
1314
|
-
};
|
|
1315
|
-
CustomerGroupMemberListComponent.prototype.ngOnDestroy = function () {
|
|
1316
|
-
this.destroy$.next();
|
|
1317
|
-
this.destroy$.complete();
|
|
1318
|
-
};
|
|
1319
|
-
CustomerGroupMemberListComponent.prototype.setContentsPageNumber = function (page) {
|
|
1320
|
-
this.setParam('membersPage', page);
|
|
1321
|
-
};
|
|
1322
|
-
CustomerGroupMemberListComponent.prototype.setContentsItemsPerPage = function (perPage) {
|
|
1323
|
-
this.setParam('membersPerPage', perPage);
|
|
1324
|
-
};
|
|
1325
|
-
CustomerGroupMemberListComponent.prototype.refresh = function () {
|
|
1326
|
-
this.refresh$.next(true);
|
|
1327
|
-
};
|
|
1328
|
-
CustomerGroupMemberListComponent.prototype.setParam = function (key, value) {
|
|
1329
|
-
var _a;
|
|
1330
|
-
this.router.navigate(['./', Object.assign(Object.assign({}, this.route.snapshot.params), (_a = {}, _a[key] = value, _a))], {
|
|
1331
|
-
relativeTo: this.route,
|
|
1332
|
-
queryParamsHandling: 'merge',
|
|
1333
|
-
});
|
|
1334
|
-
};
|
|
1335
|
-
CustomerGroupMemberListComponent.prototype.areAllSelected = function () {
|
|
1336
|
-
if (this.members) {
|
|
1337
|
-
return this.selectedMemberIds.length === this.members.length;
|
|
1338
|
-
}
|
|
1339
|
-
else {
|
|
1340
|
-
return false;
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
CustomerGroupMemberListComponent.prototype.toggleSelectAll = function () {
|
|
1344
|
-
if (this.areAllSelected()) {
|
|
1345
|
-
this.selectionChange.emit([]);
|
|
1346
|
-
}
|
|
1347
|
-
else {
|
|
1348
|
-
this.selectionChange.emit(this.members.map(function (v) { return v.id; }));
|
|
1349
|
-
}
|
|
1350
|
-
};
|
|
1351
|
-
CustomerGroupMemberListComponent.prototype.toggleSelectMember = function (member) {
|
|
1352
|
-
if (this.selectedMemberIds.includes(member.id)) {
|
|
1353
|
-
this.selectionChange.emit(this.selectedMemberIds.filter(function (id) { return id !== member.id; }));
|
|
1354
|
-
}
|
|
1355
|
-
else {
|
|
1356
|
-
this.selectionChange.emit(__spreadArray(__spreadArray([], __read(this.selectedMemberIds)), [member.id]));
|
|
1357
|
-
}
|
|
1358
|
-
};
|
|
1359
|
-
return CustomerGroupMemberListComponent;
|
|
1360
|
-
}());
|
|
1361
|
-
CustomerGroupMemberListComponent.decorators = [
|
|
1362
|
-
{ type: i0.Component, args: [{
|
|
1363
|
-
selector: 'vdr-customer-group-member-list',
|
|
1364
|
-
template: "<input\r\n type=\"text\"\r\n name=\"searchTerm\"\r\n [formControl]=\"filterTermControl\"\r\n [placeholder]=\"'customer.search-customers-by-email' | translate\"\r\n class=\"search-input\"\r\n/>\r\n\r\n<vdr-data-table\r\n [items]=\"members\"\r\n [itemsPerPage]=\"membersItemsPerPage$ | async\"\r\n [totalItems]=\"totalItems\"\r\n [currentPage]=\"membersCurrentPage$ | async\"\r\n (pageChange)=\"setContentsPageNumber($event)\"\r\n (itemsPerPageChange)=\"setContentsItemsPerPage($event)\"\r\n [allSelected]=\"areAllSelected()\"\r\n [isRowSelectedFn]=\"('UpdateCustomerGroup' | hasPermission) && isMemberSelected\"\r\n (rowSelectChange)=\"toggleSelectMember($event)\"\r\n (allSelectChange)=\"toggleSelectAll()\"\r\n>\r\n <vdr-dt-column [expand]=\"true\">{{ 'customer.name' | translate }}</vdr-dt-column>\r\n <vdr-dt-column [expand]=\"true\">{{ 'customer.email-address' | translate }}</vdr-dt-column>\r\n <vdr-dt-column></vdr-dt-column>\r\n <ng-template let-customer=\"item\">\r\n <td class=\"left align-middle\">\r\n {{ customer.title }} {{ customer.firstName }} {{ customer.lastName }}\r\n </td>\r\n <td class=\"left align-middle\">{{ customer.emailAddress }}</td>\r\n <td class=\"right align-middle\">\r\n <vdr-table-row-action\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['/customer', 'customers', customer.id]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n",
|
|
1365
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1366
|
-
styles: [""]
|
|
1367
|
-
},] }
|
|
1368
|
-
];
|
|
1369
|
-
CustomerGroupMemberListComponent.ctorParameters = function () { return [
|
|
1370
|
-
{ type: i1.Router },
|
|
1371
|
-
{ type: i2.DataService }
|
|
1372
|
-
]; };
|
|
1373
|
-
CustomerGroupMemberListComponent.propDecorators = {
|
|
1374
|
-
members: [{ type: i0.Input }],
|
|
1375
|
-
totalItems: [{ type: i0.Input }],
|
|
1376
|
-
route: [{ type: i0.Input }],
|
|
1377
|
-
selectedMemberIds: [{ type: i0.Input }],
|
|
1378
|
-
selectionChange: [{ type: i0.Output }],
|
|
1379
|
-
fetchParamsChange: [{ type: i0.Output }]
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
var CustomerHistoryComponent = /** @class */ (function () {
|
|
1383
|
-
function CustomerHistoryComponent() {
|
|
1384
|
-
this.addNote = new i0.EventEmitter();
|
|
1385
|
-
this.updateNote = new i0.EventEmitter();
|
|
1386
|
-
this.deleteNote = new i0.EventEmitter();
|
|
1387
|
-
this.note = '';
|
|
1388
|
-
this.type = i2.HistoryEntryType;
|
|
1389
|
-
}
|
|
1390
|
-
CustomerHistoryComponent.prototype.getDisplayType = function (entry) {
|
|
1391
|
-
switch (entry.type) {
|
|
1392
|
-
case i2.HistoryEntryType.CUSTOMER_VERIFIED:
|
|
1393
|
-
case i2.HistoryEntryType.CUSTOMER_EMAIL_UPDATE_VERIFIED:
|
|
1394
|
-
case i2.HistoryEntryType.CUSTOMER_PASSWORD_RESET_VERIFIED:
|
|
1395
|
-
return 'success';
|
|
1396
|
-
case i2.HistoryEntryType.CUSTOMER_REGISTERED:
|
|
1397
|
-
return 'muted';
|
|
1398
|
-
case i2.HistoryEntryType.CUSTOMER_REMOVED_FROM_GROUP:
|
|
1399
|
-
return 'error';
|
|
1400
|
-
default:
|
|
1401
|
-
return 'default';
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
CustomerHistoryComponent.prototype.getTimelineIcon = function (entry) {
|
|
1405
|
-
switch (entry.type) {
|
|
1406
|
-
case i2.HistoryEntryType.CUSTOMER_REGISTERED:
|
|
1407
|
-
return 'user';
|
|
1408
|
-
case i2.HistoryEntryType.CUSTOMER_VERIFIED:
|
|
1409
|
-
return ['assign-user', 'is-solid'];
|
|
1410
|
-
case i2.HistoryEntryType.CUSTOMER_NOTE:
|
|
1411
|
-
return 'note';
|
|
1412
|
-
case i2.HistoryEntryType.CUSTOMER_ADDED_TO_GROUP:
|
|
1413
|
-
case i2.HistoryEntryType.CUSTOMER_REMOVED_FROM_GROUP:
|
|
1414
|
-
return 'users';
|
|
1415
|
-
}
|
|
1416
|
-
};
|
|
1417
|
-
CustomerHistoryComponent.prototype.isFeatured = function (entry) {
|
|
1418
|
-
switch (entry.type) {
|
|
1419
|
-
case i2.HistoryEntryType.CUSTOMER_REGISTERED:
|
|
1420
|
-
case i2.HistoryEntryType.CUSTOMER_VERIFIED:
|
|
1421
|
-
return true;
|
|
1422
|
-
default:
|
|
1423
|
-
return false;
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
CustomerHistoryComponent.prototype.getName = function (entry) {
|
|
1427
|
-
var administrator = entry.administrator;
|
|
1428
|
-
if (administrator) {
|
|
1429
|
-
return administrator.firstName + " " + administrator.lastName;
|
|
1430
|
-
}
|
|
1431
|
-
else {
|
|
1432
|
-
return this.customer.firstName + " " + this.customer.lastName;
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
|
-
CustomerHistoryComponent.prototype.addNoteToCustomer = function () {
|
|
1436
|
-
this.addNote.emit({ note: this.note });
|
|
1437
|
-
this.note = '';
|
|
1438
|
-
};
|
|
1439
|
-
return CustomerHistoryComponent;
|
|
1440
|
-
}());
|
|
1441
|
-
CustomerHistoryComponent.decorators = [
|
|
1442
|
-
{ type: i0.Component, args: [{
|
|
1443
|
-
selector: 'vdr-customer-history',
|
|
1444
|
-
template: "<h4>{{ 'customer.customer-history' | translate }}</h4>\r\n<div class=\"entry-list\">\r\n <vdr-timeline-entry iconShape=\"note\" displayType=\"muted\" *vdrIfPermissions=\"'UpdateCustomer'\">\r\n <div class=\"note-entry\">\r\n <textarea [(ngModel)]=\"note\" name=\"note\" class=\"note\"></textarea>\r\n <button class=\"btn btn-secondary\" [disabled]=\"!note\" (click)=\"addNoteToCustomer()\">\r\n {{ 'order.add-note' | translate }}\r\n </button>\r\n </div>\r\n </vdr-timeline-entry>\r\n <vdr-timeline-entry\r\n *ngFor=\"let entry of history\"\r\n [displayType]=\"getDisplayType(entry)\"\r\n [iconShape]=\"getTimelineIcon(entry)\"\r\n [createdAt]=\"entry.createdAt\"\r\n [name]=\"getName(entry)\"\r\n [featured]=\"isFeatured(entry)\"\r\n >\r\n <ng-container [ngSwitch]=\"entry.type\">\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_REGISTERED\">\r\n <div class=\"title\">\r\n {{ 'customer.history-customer-registered' | translate }}\r\n </div>\r\n <ng-container *ngIf=\"entry.data.strategy === 'native'; else namedStrategy\">\r\n {{ 'customer.history-using-native-auth-strategy' | translate }}\r\n </ng-container>\r\n <ng-template #namedStrategy>\r\n {{\r\n 'customer.history-using-external-auth-strategy'\r\n | translate: { strategy: entry.data.strategy }\r\n }}\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_VERIFIED\">\r\n <div class=\"title\">\r\n {{ 'customer.history-customer-verified' | translate }}\r\n </div>\r\n <ng-container *ngIf=\"entry.data.strategy === 'native'; else namedStrategy\">\r\n {{ 'customer.history-using-native-auth-strategy' | translate }}\r\n </ng-container>\r\n <ng-template #namedStrategy>\r\n {{\r\n 'customer.history-using-external-auth-strategy'\r\n | translate: { strategy: entry.data.strategy }\r\n }}\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_DETAIL_UPDATED\">\r\n <div class=\"flex\">\r\n {{ 'customer.history-customer-detail-updated' | translate }}\r\n <vdr-history-entry-detail>\r\n <vdr-object-tree [value]=\"entry.data.input\"></vdr-object-tree>\r\n </vdr-history-entry-detail>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_ADDED_TO_GROUP\">\r\n {{\r\n 'customer.history-customer-added-to-group'\r\n | translate: { groupName: entry.data.groupName }\r\n }}\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_REMOVED_FROM_GROUP\">\r\n {{\r\n 'customer.history-customer-removed-from-group'\r\n | translate: { groupName: entry.data.groupName }\r\n }}\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_ADDRESS_CREATED\">\r\n {{ 'customer.history-customer-address-created' | translate }}\r\n <div class=\"flex\">\r\n <div class=\"address-string\">{{ entry.data.address }}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_ADDRESS_UPDATED\">\r\n {{ 'customer.history-customer-address-updated' | translate }}\r\n <div class=\"flex\">\r\n <div class=\"address-string\">{{ entry.data.address }}</div>\r\n <vdr-history-entry-detail>\r\n <vdr-object-tree [value]=\"entry.data.input\"></vdr-object-tree>\r\n </vdr-history-entry-detail>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_ADDRESS_DELETED\">\r\n {{ 'customer.history-customer-address-deleted' | translate }}\r\n <div class=\"address-string\">{{ entry.data.address }}</div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_PASSWORD_UPDATED\">\r\n {{ 'customer.history-customer-password-updated' | translate }}\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_PASSWORD_RESET_REQUESTED\">\r\n {{ 'customer.history-customer-password-reset-requested' | translate }}\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_PASSWORD_RESET_VERIFIED\">\r\n {{ 'customer.history-customer-password-reset-verified' | translate }}\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_EMAIL_UPDATE_REQUESTED\">\r\n <div class=\"flex\">\r\n {{ 'customer.history-customer-email-update-requested' | translate }}\r\n <vdr-history-entry-detail>\r\n <vdr-labeled-data [label]=\"'customer.old-email-address' | translate\">{{\r\n entry.data.oldEmailAddress\r\n }}</vdr-labeled-data>\r\n <vdr-labeled-data [label]=\"'customer.new-email-address' | translate\">{{\r\n entry.data.newEmailAddress\r\n }}</vdr-labeled-data>\r\n </vdr-history-entry-detail>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_EMAIL_UPDATE_VERIFIED\">\r\n <div class=\"flex\">\r\n {{ 'customer.history-customer-email-update-verified' | translate }}\r\n <vdr-history-entry-detail>\r\n <vdr-labeled-data [label]=\"'customer.old-email-address' | translate\">{{\r\n entry.data.oldEmailAddress\r\n }}</vdr-labeled-data>\r\n <vdr-labeled-data [label]=\"'customer.new-email-address' | translate\">{{\r\n entry.data.newEmailAddress\r\n }}</vdr-labeled-data>\r\n </vdr-history-entry-detail>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"type.CUSTOMER_NOTE\">\r\n <div class=\"flex\">\r\n <div class=\"note-text\">\r\n {{ entry.data.note }}\r\n </div>\r\n <div class=\"flex-spacer\"></div>\r\n <vdr-dropdown>\r\n <button class=\"icon-button\" vdrDropdownTrigger>\r\n <clr-icon shape=\"ellipsis-vertical\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n class=\"button\"\r\n vdrDropdownItem\r\n (click)=\"updateNote.emit(entry)\"\r\n [disabled]=\"!('UpdateCustomer' | hasPermission)\"\r\n >\r\n <clr-icon shape=\"edit\"></clr-icon>\r\n {{ 'common.edit' | translate }}\r\n </button>\r\n <div class=\"dropdown-divider\"></div>\r\n <button\r\n class=\"button\"\r\n vdrDropdownItem\r\n (click)=\"deleteNote.emit(entry)\"\r\n [disabled]=\"!('UpdateCustomer' | hasPermission)\"\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </vdr-timeline-entry>\r\n <vdr-timeline-entry [isLast]=\"true\"></vdr-timeline-entry>\r\n</div>\r\n",
|
|
1445
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1446
|
-
styles: [".entry-list{margin-top:24px;margin-left:24px;margin-right:12px}.note-entry{display:flex;align-items:center}.note-entry .note{flex:1}.note-entry button{margin:0}textarea.note{flex:1;height:36px;border-radius:3px;margin-right:6px}.note-text{color:var(--color-text-100);white-space:pre-wrap}.address-string{font-size:smaller;color:var(--color-text-200)}\n"]
|
|
1447
|
-
},] }
|
|
1448
|
-
];
|
|
1449
|
-
CustomerHistoryComponent.propDecorators = {
|
|
1450
|
-
customer: [{ type: i0.Input }],
|
|
1451
|
-
history: [{ type: i0.Input }],
|
|
1452
|
-
addNote: [{ type: i0.Output }],
|
|
1453
|
-
updateNote: [{ type: i0.Output }],
|
|
1454
|
-
deleteNote: [{ type: i0.Output }]
|
|
1455
|
-
};
|
|
1456
|
-
|
|
1457
|
-
var CustomerListComponent = /** @class */ (function (_super) {
|
|
1458
|
-
__extends(CustomerListComponent, _super);
|
|
1459
|
-
function CustomerListComponent(dataService, router, route, modalService, notificationService) {
|
|
1460
|
-
var _this = _super.call(this, router, route) || this;
|
|
1461
|
-
_this.dataService = dataService;
|
|
1462
|
-
_this.modalService = modalService;
|
|
1463
|
-
_this.notificationService = notificationService;
|
|
1464
|
-
_this.searchTerm = new forms.FormControl('');
|
|
1465
|
-
_super.prototype.setQueryFn.call(_this, function () {
|
|
1466
|
-
var _a;
|
|
1467
|
-
var args = [];
|
|
1468
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1469
|
-
args[_i] = arguments[_i];
|
|
1470
|
-
}
|
|
1471
|
-
return (_a = _this.dataService.customer).getCustomerList.apply(_a, __spreadArray([], __read(args))).refetchOnChannelChange();
|
|
1472
|
-
}, function (data) { return data.customers; }, function (skip, take) { return ({
|
|
1473
|
-
options: {
|
|
1474
|
-
skip: skip,
|
|
1475
|
-
take: take,
|
|
1476
|
-
filter: {
|
|
1477
|
-
emailAddress: {
|
|
1478
|
-
contains: _this.searchTerm.value,
|
|
1479
|
-
},
|
|
1480
|
-
lastName: {
|
|
1481
|
-
contains: _this.searchTerm.value,
|
|
1482
|
-
},
|
|
1483
|
-
postalCode: {
|
|
1484
|
-
contains: _this.searchTerm.value,
|
|
1485
|
-
},
|
|
1486
|
-
},
|
|
1487
|
-
filterOperator: i2.LogicalOperator.OR,
|
|
1488
|
-
sort: {
|
|
1489
|
-
createdAt: generatedShopTypes.SortOrder.DESC,
|
|
1490
|
-
},
|
|
1491
|
-
},
|
|
1492
|
-
}); });
|
|
1493
|
-
return _this;
|
|
1494
|
-
}
|
|
1495
|
-
CustomerListComponent.prototype.ngOnInit = function () {
|
|
1496
|
-
var _this = this;
|
|
1497
|
-
_super.prototype.ngOnInit.call(this);
|
|
1498
|
-
this.searchTerm.valueChanges
|
|
1499
|
-
.pipe(operators.filter(function (value) { return 2 < value.length || value.length === 0; }), operators.debounceTime(250), operators.takeUntil(this.destroy$))
|
|
1500
|
-
.subscribe(function () { return _this.refresh(); });
|
|
1501
|
-
};
|
|
1502
|
-
CustomerListComponent.prototype.deleteCustomer = function (customer) {
|
|
1503
|
-
var _this = this;
|
|
1504
|
-
return this.modalService
|
|
1505
|
-
.dialog({
|
|
1506
|
-
title: ngxTranslateExtractMarker.marker('catalog.confirm-delete-customer'),
|
|
1507
|
-
body: customer.firstName + " " + customer.lastName,
|
|
1508
|
-
buttons: [
|
|
1509
|
-
{ type: 'secondary', label: ngxTranslateExtractMarker.marker('common.cancel') },
|
|
1510
|
-
{ type: 'danger', label: ngxTranslateExtractMarker.marker('common.delete'), returnValue: true },
|
|
1511
|
-
],
|
|
1512
|
-
})
|
|
1513
|
-
.pipe(operators.switchMap(function (res) { return (res ? _this.dataService.customer.deleteCustomer(customer.id) : rxjs.EMPTY); }))
|
|
1514
|
-
.subscribe(function () {
|
|
1515
|
-
_this.notificationService.success(ngxTranslateExtractMarker.marker('common.notify-delete-success'), {
|
|
1516
|
-
entity: 'Customer',
|
|
1517
|
-
});
|
|
1518
|
-
_this.refresh();
|
|
1519
|
-
}, function (err) {
|
|
1520
|
-
_this.notificationService.error(ngxTranslateExtractMarker.marker('common.notify-delete-error'), {
|
|
1521
|
-
entity: 'Customer',
|
|
1522
|
-
});
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
return CustomerListComponent;
|
|
1526
|
-
}(i2.BaseListComponent));
|
|
1527
|
-
CustomerListComponent.decorators = [
|
|
1528
|
-
{ type: i0.Component, args: [{
|
|
1529
|
-
selector: 'vdr-customer-list',
|
|
1530
|
-
template: "<vdr-action-bar>\r\n <vdr-ab-left>\r\n <input\r\n type=\"text\"\r\n name=\"emailSearchTerm\"\r\n [formControl]=\"searchTerm\"\r\n [placeholder]=\"'customer.search-customers-by-email-last-name-postal-code' | translate\"\r\n class=\"search-input ml3\"\r\n />\r\n </vdr-ab-left>\r\n <vdr-ab-right>\r\n <vdr-action-bar-items locationId=\"customer-list\"></vdr-action-bar-items>\r\n <a class=\"btn btn-primary\" [routerLink]=\"['./create']\" *vdrIfPermissions=\"'CreateCustomer'\">\r\n <clr-icon shape=\"plus\"></clr-icon>\r\n {{ 'customer.create-new-customer' | translate }}\r\n </a>\r\n </vdr-ab-right>\r\n</vdr-action-bar>\r\n\r\n<vdr-data-table\r\n [items]=\"items$ | async\"\r\n [itemsPerPage]=\"itemsPerPage$ | async\"\r\n [totalItems]=\"totalItems$ | async\"\r\n [currentPage]=\"currentPage$ | async\"\r\n (pageChange)=\"setPageNumber($event)\"\r\n (itemsPerPageChange)=\"setItemsPerPage($event)\"\r\n>\r\n <vdr-dt-column [expand]=\"true\">{{ 'customer.name' | translate }}</vdr-dt-column>\r\n <vdr-dt-column [expand]=\"true\">{{ 'customer.email-address' | translate }}</vdr-dt-column>\r\n <vdr-dt-column>{{ 'customer.customer-type' | translate }}</vdr-dt-column>\r\n <vdr-dt-column></vdr-dt-column>\r\n <vdr-dt-column></vdr-dt-column>\r\n <ng-template let-customer=\"item\">\r\n <td class=\"left align-middle\">\r\n {{ customer.title }} {{ customer.firstName }} {{ customer.lastName }}\r\n </td>\r\n <td class=\"left align-middle\">{{ customer.emailAddress }}</td>\r\n <td class=\"left align-middle\">\r\n <vdr-customer-status-label [customer]=\"customer\"></vdr-customer-status-label>\r\n </td>\r\n <td class=\"right align-middle\">\r\n <vdr-table-row-action\r\n iconShape=\"edit\"\r\n [label]=\"'common.edit' | translate\"\r\n [linkTo]=\"['./', customer.id]\"\r\n ></vdr-table-row-action>\r\n </td>\r\n <td>\r\n <vdr-dropdown>\r\n <button type=\"button\" class=\"btn btn-link btn-sm\" vdrDropdownTrigger>\r\n {{ 'common.actions' | translate }}\r\n <clr-icon shape=\"caret down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-right\">\r\n <button\r\n type=\"button\"\r\n class=\"delete-button\"\r\n (click)=\"deleteCustomer(customer)\"\r\n [disabled]=\"!('DeleteCustomer' | hasPermission)\"\r\n vdrDropdownItem\r\n >\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon>\r\n {{ 'common.delete' | translate }}\r\n </button>\r\n </vdr-dropdown-menu>\r\n </vdr-dropdown>\r\n </td>\r\n </ng-template>\r\n</vdr-data-table>\r\n",
|
|
1531
|
-
styles: [".search-input{margin-top:6px;min-width:300px}\n"]
|
|
1532
|
-
},] }
|
|
1533
|
-
];
|
|
1534
|
-
CustomerListComponent.ctorParameters = function () { return [
|
|
1535
|
-
{ type: i2.DataService },
|
|
1536
|
-
{ type: i1.Router },
|
|
1537
|
-
{ type: i1.ActivatedRoute },
|
|
1538
|
-
{ type: i2.ModalService },
|
|
1539
|
-
{ type: i2.NotificationService }
|
|
1540
|
-
]; };
|
|
1541
|
-
|
|
1542
|
-
var CustomerStatusLabelComponent = /** @class */ (function () {
|
|
1543
|
-
function CustomerStatusLabelComponent() {
|
|
1544
|
-
}
|
|
1545
|
-
return CustomerStatusLabelComponent;
|
|
1546
|
-
}());
|
|
1547
|
-
CustomerStatusLabelComponent.decorators = [
|
|
1548
|
-
{ type: i0.Component, args: [{
|
|
1549
|
-
selector: 'vdr-customer-status-label',
|
|
1550
|
-
template: "<vdr-chip *ngIf=\"customer.user?.id\">\r\n <ng-container *ngIf=\"customer.user?.verified\">\r\n <clr-icon shape=\"check-circle\" class=\"verified-user-icon\"></clr-icon>\r\n {{ 'customer.verified' | translate }}\r\n </ng-container>\r\n <ng-container *ngIf=\"!customer.user?.verified\">\r\n <clr-icon shape=\"check-circle\" class=\"registered-user-icon\"></clr-icon>\r\n {{ 'customer.registered' | translate }}\r\n </ng-container>\r\n</vdr-chip>\r\n<vdr-chip *ngIf=\"!customer.user?.id\">{{ 'customer.guest' | translate }}</vdr-chip>\r\n",
|
|
1551
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1552
|
-
styles: [".registered-user-icon{color:var(--color-grey-300)}.verified-user-icon{color:var(--color-success-500)}\n"]
|
|
1553
|
-
},] }
|
|
1554
|
-
];
|
|
1555
|
-
CustomerStatusLabelComponent.propDecorators = {
|
|
1556
|
-
customer: [{ type: i0.Input }]
|
|
1557
|
-
};
|
|
1558
|
-
|
|
1559
|
-
var CustomerResolver = /** @class */ (function (_super) {
|
|
1560
|
-
__extends(CustomerResolver, _super);
|
|
1561
|
-
function CustomerResolver(router, dataService) {
|
|
1562
|
-
return _super.call(this, router, {
|
|
1563
|
-
__typename: 'Customer',
|
|
1564
|
-
id: '',
|
|
1565
|
-
createdAt: '',
|
|
1566
|
-
updatedAt: '',
|
|
1567
|
-
title: '',
|
|
1568
|
-
firstName: '',
|
|
1569
|
-
lastName: '',
|
|
1570
|
-
emailAddress: '',
|
|
1571
|
-
phoneNumber: null,
|
|
1572
|
-
addresses: null,
|
|
1573
|
-
user: null,
|
|
1574
|
-
}, function (id) { return dataService.customer.getCustomer(id).mapStream(function (data) { return data.customer; }); }) || this;
|
|
1575
|
-
}
|
|
1576
|
-
return CustomerResolver;
|
|
1577
|
-
}(i2.BaseEntityResolver));
|
|
1578
|
-
CustomerResolver.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CustomerResolver_Factory() { return new CustomerResolver(i0__namespace.ɵɵinject(i1__namespace.Router), i0__namespace.ɵɵinject(i2__namespace.DataService)); }, token: CustomerResolver, providedIn: "root" });
|
|
1579
|
-
CustomerResolver.decorators = [
|
|
1580
|
-
{ type: i0.Injectable, args: [{
|
|
1581
|
-
providedIn: 'root',
|
|
1582
|
-
},] }
|
|
1583
|
-
];
|
|
1584
|
-
CustomerResolver.ctorParameters = function () { return [
|
|
1585
|
-
{ type: i1.Router },
|
|
1586
|
-
{ type: i2.DataService }
|
|
1587
|
-
]; };
|
|
1588
|
-
|
|
1589
|
-
var ɵ0 = {
|
|
1590
|
-
breadcrumb: ngxTranslateExtractMarker.marker('breadcrumb.customers'),
|
|
1591
|
-
}, ɵ1 = {
|
|
1592
|
-
breadcrumb: customerBreadcrumb,
|
|
1593
|
-
}, ɵ2 = {
|
|
1594
|
-
breadcrumb: ngxTranslateExtractMarker.marker('breadcrumb.customer-groups'),
|
|
1595
|
-
};
|
|
1596
|
-
var customerRoutes = [
|
|
1597
|
-
{
|
|
1598
|
-
path: 'customers',
|
|
1599
|
-
component: CustomerListComponent,
|
|
1600
|
-
pathMatch: '',
|
|
1601
|
-
data: ɵ0,
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
path: 'customers/:id',
|
|
1605
|
-
component: CustomerDetailComponent,
|
|
1606
|
-
resolve: i2.createResolveData(CustomerResolver),
|
|
1607
|
-
canDeactivate: [i2.CanDeactivateDetailGuard],
|
|
1608
|
-
data: ɵ1,
|
|
1609
|
-
},
|
|
1610
|
-
{
|
|
1611
|
-
path: 'groups',
|
|
1612
|
-
component: CustomerGroupListComponent,
|
|
1613
|
-
data: ɵ2,
|
|
1614
|
-
},
|
|
1615
|
-
];
|
|
1616
|
-
function customerBreadcrumb(data, params) {
|
|
1617
|
-
return i2.detailBreadcrumb({
|
|
1618
|
-
entity: data.entity,
|
|
1619
|
-
id: params.id,
|
|
1620
|
-
breadcrumbKey: 'breadcrumb.customers',
|
|
1621
|
-
getName: function (customer) { return customer.firstName + " " + customer.lastName; },
|
|
1622
|
-
route: 'customers',
|
|
1623
|
-
});
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
var CustomerModule = /** @class */ (function () {
|
|
1627
|
-
function CustomerModule() {
|
|
1628
|
-
}
|
|
1629
|
-
return CustomerModule;
|
|
1630
|
-
}());
|
|
1631
|
-
CustomerModule.decorators = [
|
|
1632
|
-
{ type: i0.NgModule, args: [{
|
|
1633
|
-
imports: [i2.SharedModule, i1.RouterModule.forChild(customerRoutes)],
|
|
1634
|
-
declarations: [
|
|
1635
|
-
CustomerListComponent,
|
|
1636
|
-
CustomerDetailComponent,
|
|
1637
|
-
CustomerStatusLabelComponent,
|
|
1638
|
-
AddressCardComponent,
|
|
1639
|
-
CustomerGroupListComponent,
|
|
1640
|
-
CustomerGroupDetailDialogComponent,
|
|
1641
|
-
AddCustomerToGroupDialogComponent,
|
|
1642
|
-
CustomerGroupMemberListComponent,
|
|
1643
|
-
SelectCustomerGroupDialogComponent,
|
|
1644
|
-
CustomerHistoryComponent,
|
|
1645
|
-
AddressDetailDialogComponent,
|
|
1646
|
-
],
|
|
1647
|
-
exports: [AddressCardComponent],
|
|
1648
|
-
},] }
|
|
1649
|
-
];
|
|
1650
|
-
|
|
1651
|
-
// This file was generated by the build-public-api.ts script
|
|
1652
|
-
|
|
1653
|
-
/**
|
|
1654
|
-
* Generated bundle index. Do not edit.
|
|
1655
|
-
*/
|
|
1656
|
-
|
|
1657
|
-
exports.AddCustomerToGroupDialogComponent = AddCustomerToGroupDialogComponent;
|
|
1658
|
-
exports.AddressCardComponent = AddressCardComponent;
|
|
1659
|
-
exports.AddressDetailDialogComponent = AddressDetailDialogComponent;
|
|
1660
|
-
exports.CustomerDetailComponent = CustomerDetailComponent;
|
|
1661
|
-
exports.CustomerGroupDetailDialogComponent = CustomerGroupDetailDialogComponent;
|
|
1662
|
-
exports.CustomerGroupListComponent = CustomerGroupListComponent;
|
|
1663
|
-
exports.CustomerGroupMemberListComponent = CustomerGroupMemberListComponent;
|
|
1664
|
-
exports.CustomerHistoryComponent = CustomerHistoryComponent;
|
|
1665
|
-
exports.CustomerListComponent = CustomerListComponent;
|
|
1666
|
-
exports.CustomerModule = CustomerModule;
|
|
1667
|
-
exports.CustomerResolver = CustomerResolver;
|
|
1668
|
-
exports.CustomerStatusLabelComponent = CustomerStatusLabelComponent;
|
|
1669
|
-
exports.SelectCustomerGroupDialogComponent = SelectCustomerGroupDialogComponent;
|
|
1670
|
-
exports.customerBreadcrumb = customerBreadcrumb;
|
|
1671
|
-
exports.customerRoutes = customerRoutes;
|
|
1672
|
-
exports.ɵ0 = ɵ0;
|
|
1673
|
-
exports.ɵ1 = ɵ1;
|
|
1674
|
-
exports.ɵ2 = ɵ2;
|
|
1675
|
-
|
|
1676
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1677
|
-
|
|
1678
|
-
})));
|
|
1679
|
-
//# sourceMappingURL=vendure-admin-ui-customer.umd.js.map
|