@vendure/admin-ui 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/components/collection-data-table/collection-data-table.component.d.ts +3 -5
- package/catalog/components/collection-list/collection-list.component.d.ts +1 -0
- package/catalog/components/facet-list/facet-list.component.d.ts +1 -0
- package/catalog/components/product-list/product-list.component.d.ts +3 -1
- package/catalog/components/product-variant-list/product-variant-list.component.d.ts +1 -1
- package/core/common/base-list.component.d.ts +13 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/providers/base-data.service.d.ts +19 -2
- package/core/data/providers/collection-data.service.d.ts +2 -2
- package/core/data/providers/data.service.d.ts +3 -3
- package/core/data/query-result.d.ts +60 -4
- package/core/data/utils/add-custom-fields.d.ts +1 -1
- package/core/providers/alerts/alerts.service.d.ts +3 -0
- package/core/providers/auth/auth.service.d.ts +3 -1
- package/core/providers/data-table/data-table-config.service.d.ts +12 -0
- package/core/public_api.d.ts +1 -0
- package/core/shared/components/data-table-2/data-table2.component.d.ts +5 -5
- package/core/shared/components/data-table-filter-presets/filter-preset.service.d.ts +3 -4
- package/customer/components/customer-group-list/customer-group-list.component.d.ts +2 -0
- package/customer/components/customer-list/customer-list.component.d.ts +1 -0
- package/esm2022/catalog/catalog.module.mjs +5 -5
- package/esm2022/catalog/components/apply-facet-dialog/apply-facet-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/asset-detail/asset-detail.component.mjs +4 -4
- package/esm2022/catalog/components/asset-list/asset-list.component.mjs +4 -4
- package/esm2022/catalog/components/assign-products-to-channel-dialog/assign-products-to-channel-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/collection-contents/collection-contents.component.mjs +4 -4
- package/esm2022/catalog/components/collection-data-table/collection-data-table.component.mjs +11 -13
- package/esm2022/catalog/components/collection-detail/collection-detail.component.mjs +4 -4
- package/esm2022/catalog/components/collection-list/collection-breadcrumb.pipe.mjs +4 -4
- package/esm2022/catalog/components/collection-list/collection-list.component.mjs +6 -5
- package/esm2022/catalog/components/collection-tree/collection-tree-node.component.mjs +4 -4
- package/esm2022/catalog/components/collection-tree/collection-tree.component.mjs +4 -4
- package/esm2022/catalog/components/collection-tree/collection-tree.service.mjs +4 -4
- package/esm2022/catalog/components/confirm-variant-deletion-dialog/confirm-variant-deletion-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/create-facet-value-dialog/create-facet-value-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/create-product-option-group-dialog/create-product-option-group-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/create-product-variant-dialog/create-product-variant-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/facet-detail/facet-detail.component.mjs +4 -4
- package/esm2022/catalog/components/facet-list/facet-list.component.mjs +16 -15
- package/esm2022/catalog/components/generate-product-variants/generate-product-variants.component.mjs +4 -4
- package/esm2022/catalog/components/move-collections-dialog/move-collections-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/option-value-input/option-value-input.component.mjs +4 -4
- package/esm2022/catalog/components/product-detail/product-detail.component.mjs +4 -4
- package/esm2022/catalog/components/product-list/product-list.component.mjs +7 -5
- package/esm2022/catalog/components/product-options-editor/product-options-editor.component.mjs +4 -4
- package/esm2022/catalog/components/product-variant-detail/product-variant-detail.component.mjs +4 -4
- package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +4 -4
- package/esm2022/catalog/components/product-variant-quick-jump/product-variant-quick-jump.component.mjs +4 -4
- package/esm2022/catalog/components/product-variants-editor/product-variants-editor.component.mjs +4 -4
- package/esm2022/catalog/components/product-variants-table/product-variants-table.component.mjs +4 -4
- package/esm2022/catalog/components/update-product-option-dialog/update-product-option-dialog.component.mjs +4 -4
- package/esm2022/catalog/components/variant-price-detail/variant-price-detail.component.mjs +4 -4
- package/esm2022/catalog/components/variant-price-strategy-detail/variant-price-strategy-detail.component.mjs +4 -4
- package/esm2022/catalog/providers/product-detail/product-detail.service.mjs +4 -4
- package/esm2022/catalog/providers/routing/product-variants-resolver.mjs +4 -4
- package/esm2022/core/app.component.mjs +4 -4
- package/esm2022/core/app.component.module.mjs +5 -5
- package/esm2022/core/common/base-list.component.mjs +26 -10
- package/esm2022/core/common/version.mjs +2 -2
- package/esm2022/core/components/alerts/alerts.component.mjs +4 -4
- package/esm2022/core/components/app-shell/app-shell.component.mjs +5 -5
- package/esm2022/core/components/base-nav/base-nav.component.mjs +4 -4
- package/esm2022/core/components/breadcrumb/breadcrumb.component.mjs +4 -4
- package/esm2022/core/components/channel-switcher/channel-switcher.component.mjs +4 -4
- package/esm2022/core/components/main-nav/main-nav.component.mjs +4 -4
- package/esm2022/core/components/notification/notification.component.mjs +4 -4
- package/esm2022/core/components/overlay-host/overlay-host.component.mjs +4 -4
- package/esm2022/core/components/settings-nav/settings-nav.component.mjs +4 -4
- package/esm2022/core/components/theme-switcher/theme-switcher.component.mjs +4 -4
- package/esm2022/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.mjs +4 -4
- package/esm2022/core/components/user-menu/user-menu.component.mjs +4 -4
- package/esm2022/core/core.module.mjs +5 -5
- package/esm2022/core/data/data.module.mjs +7 -7
- package/esm2022/core/data/providers/base-data.service.mjs +10 -11
- package/esm2022/core/data/providers/collection-data.service.mjs +3 -3
- package/esm2022/core/data/providers/data.service.mjs +8 -8
- package/esm2022/core/data/providers/fetch-adapter.mjs +4 -4
- package/esm2022/core/data/providers/interceptor.mjs +4 -4
- package/esm2022/core/data/providers/product-data.service.mjs +4 -2
- package/esm2022/core/data/query-result.mjs +98 -10
- package/esm2022/core/data/server-config.mjs +4 -4
- package/esm2022/core/data/utils/add-custom-fields.mjs +48 -30
- package/esm2022/core/extension/components/angular-route.component.mjs +7 -7
- package/esm2022/core/extension/components/route.component.mjs +4 -4
- package/esm2022/core/extension/providers/page-metadata.service.mjs +4 -4
- package/esm2022/core/providers/alerts/alerts.service.mjs +16 -6
- package/esm2022/core/providers/auth/auth.service.mjs +13 -9
- package/esm2022/core/providers/breadcrumb/breadcrumb.service.mjs +4 -4
- package/esm2022/core/providers/bulk-action-registry/bulk-action-registry.service.mjs +4 -4
- package/esm2022/core/providers/channel/channel.service.mjs +4 -4
- package/esm2022/core/providers/component-registry/component-registry.service.mjs +4 -4
- package/esm2022/core/providers/currency/currency.service.mjs +4 -4
- package/esm2022/core/providers/custom-detail-component/custom-detail-component.service.mjs +4 -4
- package/esm2022/core/providers/custom-field-component/custom-field-component.service.mjs +4 -4
- package/esm2022/core/providers/custom-history-entry-component/history-entry-component.service.mjs +4 -4
- package/esm2022/core/providers/dashboard-widget/dashboard-widget.service.mjs +4 -4
- package/esm2022/core/providers/data-table/data-table-config.service.mjs +43 -0
- package/esm2022/core/providers/guard/auth.guard.mjs +4 -4
- package/esm2022/core/providers/health-check/health-check.service.mjs +4 -4
- package/esm2022/core/providers/i18n/custom-message-format-compiler.mjs +4 -4
- package/esm2022/core/providers/i18n/i18n.service.mjs +4 -4
- package/esm2022/core/providers/job-queue/job-queue.service.mjs +4 -4
- package/esm2022/core/providers/local-storage/local-storage.service.mjs +4 -4
- package/esm2022/core/providers/localization/localization.service.mjs +4 -4
- package/esm2022/core/providers/modal/modal.service.mjs +4 -4
- package/esm2022/core/providers/nav-builder/nav-builder.service.mjs +4 -4
- package/esm2022/core/providers/notification/notification.service.mjs +4 -4
- package/esm2022/core/providers/overlay-host/overlay-host.service.mjs +4 -4
- package/esm2022/core/providers/page/page.service.mjs +4 -4
- package/esm2022/core/providers/permissions/permissions.service.mjs +4 -4
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/shared/components/action-bar/action-bar.component.mjs +10 -10
- package/esm2022/core/shared/components/action-bar-dropdown-menu/action-bar-dropdown-menu.component.mjs +4 -4
- package/esm2022/core/shared/components/action-bar-items/action-bar-base.component.mjs +4 -4
- package/esm2022/core/shared/components/action-bar-items/action-bar-items.component.mjs +4 -4
- package/esm2022/core/shared/components/address-form/address-form.component.mjs +4 -4
- package/esm2022/core/shared/components/affixed-input/affixed-input.component.mjs +4 -4
- package/esm2022/core/shared/components/affixed-input/percentage-suffix-input.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-file-input/asset-file-input.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-gallery/asset-gallery.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-preview/asset-preview.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-preview-dialog/asset-preview-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-preview-links/asset-preview-links.component.mjs +4 -4
- package/esm2022/core/shared/components/asset-search-input/asset-search-input.component.mjs +4 -4
- package/esm2022/core/shared/components/assets/assets.component.mjs +4 -4
- package/esm2022/core/shared/components/assign-to-channel-dialog/assign-to-channel-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/bulk-action-menu/bulk-action-menu.component.mjs +4 -4
- package/esm2022/core/shared/components/card/card.component.mjs +7 -7
- package/esm2022/core/shared/components/channel-assignment-control/channel-assignment-control.component.mjs +4 -4
- package/esm2022/core/shared/components/channel-badge/channel-badge.component.mjs +4 -4
- package/esm2022/core/shared/components/chart/chart.component.mjs +4 -4
- package/esm2022/core/shared/components/chip/chip.component.mjs +4 -4
- package/esm2022/core/shared/components/configurable-input/configurable-input.component.mjs +4 -4
- package/esm2022/core/shared/components/currency-code-selector/currency-code-selector.component.mjs +4 -4
- package/esm2022/core/shared/components/currency-input/currency-input.component.mjs +4 -4
- package/esm2022/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.mjs +4 -4
- package/esm2022/core/shared/components/custom-field-control/custom-field-control.component.mjs +4 -4
- package/esm2022/core/shared/components/customer-label/customer-label.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table/data-table-column.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table/data-table.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-2/data-table-column.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-2/data-table-custom-component.service.mjs +4 -4
- package/esm2022/core/shared/components/data-table-2/data-table-custom-field-column.component.mjs +5 -5
- package/esm2022/core/shared/components/data-table-2/data-table-search.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-2/data-table2.component.mjs +45 -53
- package/esm2022/core/shared/components/data-table-column-picker/data-table-column-picker.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-filter-label/data-table-filter-label.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-filter-presets/add-filter-preset-button.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-filter-presets/filter-preset.service.mjs +25 -37
- package/esm2022/core/shared/components/data-table-filter-presets/rename-filter-preset-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/data-table-filters/custom-filter-component.directive.mjs +4 -4
- package/esm2022/core/shared/components/data-table-filters/data-table-filters.component.mjs +4 -4
- package/esm2022/core/shared/components/datetime-picker/datetime-picker.component.mjs +4 -4
- package/esm2022/core/shared/components/datetime-picker/datetime-picker.service.mjs +4 -4
- package/esm2022/core/shared/components/dropdown/dropdown-item.directive.mjs +4 -4
- package/esm2022/core/shared/components/dropdown/dropdown-menu.component.mjs +4 -4
- package/esm2022/core/shared/components/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2022/core/shared/components/dropdown/dropdown.component.mjs +4 -4
- package/esm2022/core/shared/components/duplicate-entity-dialog/duplicate-entity-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/edit-note-dialog/edit-note-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/empty-placeholder/empty-placeholder.component.mjs +4 -4
- package/esm2022/core/shared/components/entity-info/entity-info.component.mjs +4 -4
- package/esm2022/core/shared/components/extension-host/extension-host.component.mjs +4 -4
- package/esm2022/core/shared/components/extension-host/extension-host.service.mjs +4 -4
- package/esm2022/core/shared/components/facet-value-chip/facet-value-chip.component.mjs +4 -4
- package/esm2022/core/shared/components/facet-value-selector/facet-value-selector.component.mjs +4 -4
- package/esm2022/core/shared/components/focal-point-control/focal-point-control.component.mjs +4 -4
- package/esm2022/core/shared/components/form-field/form-field-control.directive.mjs +4 -4
- package/esm2022/core/shared/components/form-field/form-field.component.mjs +4 -4
- package/esm2022/core/shared/components/form-item/form-item.component.mjs +4 -4
- package/esm2022/core/shared/components/formatted-address/formatted-address.component.mjs +4 -4
- package/esm2022/core/shared/components/help-tooltip/help-tooltip.component.mjs +4 -4
- package/esm2022/core/shared/components/history-entry-detail/history-entry-detail.component.mjs +4 -4
- package/esm2022/core/shared/components/items-per-page-controls/items-per-page-controls.component.mjs +4 -4
- package/esm2022/core/shared/components/labeled-data/labeled-data.component.mjs +4 -4
- package/esm2022/core/shared/components/language-code-selector/language-code-selector.component.mjs +4 -4
- package/esm2022/core/shared/components/language-selector/language-selector.component.mjs +4 -4
- package/esm2022/core/shared/components/localized-text/localized-text.component.mjs +4 -4
- package/esm2022/core/shared/components/manage-tags-dialog/manage-tags-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/modal-dialog/dialog-buttons.directive.mjs +4 -4
- package/esm2022/core/shared/components/modal-dialog/dialog-component-outlet.component.mjs +4 -4
- package/esm2022/core/shared/components/modal-dialog/dialog-title.directive.mjs +4 -4
- package/esm2022/core/shared/components/modal-dialog/modal-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/object-tree/object-tree.component.mjs +4 -4
- package/esm2022/core/shared/components/order-state-label/order-state-label.component.mjs +4 -4
- package/esm2022/core/shared/components/page/page.component.mjs +4 -4
- package/esm2022/core/shared/components/page-block/page-block.component.mjs +4 -4
- package/esm2022/core/shared/components/page-body/page-body.component.mjs +4 -4
- package/esm2022/core/shared/components/page-detail-layout/page-detail-layout.component.mjs +4 -4
- package/esm2022/core/shared/components/page-detail-layout/page-detail-sidebar.component.mjs +4 -4
- package/esm2022/core/shared/components/page-entity-info/page-entity-info.component.mjs +4 -4
- package/esm2022/core/shared/components/page-header/page-header.component.mjs +4 -4
- package/esm2022/core/shared/components/page-header-description/page-header-description.component.mjs +4 -4
- package/esm2022/core/shared/components/page-header-tabs/page-header-tabs.component.mjs +4 -4
- package/esm2022/core/shared/components/page-title/page-title.component.mjs +4 -4
- package/esm2022/core/shared/components/pagination-controls/pagination-controls.component.mjs +4 -4
- package/esm2022/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/product-search-input/product-search-input.component.mjs +4 -4
- package/esm2022/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +4 -4
- package/esm2022/core/shared/components/radio-card/radio-card-fieldset.component.mjs +4 -4
- package/esm2022/core/shared/components/radio-card/radio-card.component.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/external-image-dialog/external-image-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/link-dialog/link-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.component.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/prosemirror/context-menu/context-menu.service.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/raw-html-dialog/raw-html-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +4 -4
- package/esm2022/core/shared/components/select-toggle/select-toggle.component.mjs +4 -4
- package/esm2022/core/shared/components/simple-dialog/simple-dialog.component.mjs +4 -4
- package/esm2022/core/shared/components/split-view/split-view.component.mjs +4 -4
- package/esm2022/core/shared/components/split-view/split-view.directive.mjs +7 -7
- package/esm2022/core/shared/components/status-badge/status-badge.component.mjs +4 -4
- package/esm2022/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.mjs +4 -4
- package/esm2022/core/shared/components/table-row-action/table-row-action.component.mjs +4 -4
- package/esm2022/core/shared/components/tag-selector/tag-selector.component.mjs +4 -4
- package/esm2022/core/shared/components/timeline-entry/timeline-entry.component.mjs +4 -4
- package/esm2022/core/shared/components/title-input/title-input.component.mjs +4 -4
- package/esm2022/core/shared/components/ui-extension-point/ui-extension-point.component.mjs +4 -4
- package/esm2022/core/shared/components/zone-selector/zone-selector.component.mjs +4 -4
- package/esm2022/core/shared/directives/disabled.directive.mjs +4 -4
- package/esm2022/core/shared/directives/if-default-channel-active.directive.mjs +4 -4
- package/esm2022/core/shared/directives/if-directive-base.mjs +4 -4
- package/esm2022/core/shared/directives/if-multichannel.directive.mjs +4 -4
- package/esm2022/core/shared/directives/if-permissions.directive.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/product/relation-product-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component.mjs +10 -10
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/relation-form-input/relation-selector-dialog/relation-selector-dialog.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.mjs +4 -4
- package/esm2022/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.mjs +4 -4
- package/esm2022/core/shared/pipes/asset-preview.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/channel-label.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/custom-field-description.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/custom-field-label.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/duration.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/file-size.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/has-permission.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/locale-base.pipe.mjs +6 -6
- package/esm2022/core/shared/pipes/locale-currency-name.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/locale-currency.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/locale-date.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/locale-language-name.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/locale-region-name.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/sentence-case.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/sort.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/state-i18n-token.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/string-to-color.pipe.mjs +4 -4
- package/esm2022/core/shared/pipes/time-ago.pipe.mjs +4 -4
- package/esm2022/core/shared/providers/routing/can-deactivate-detail-guard.mjs +4 -4
- package/esm2022/core/shared/shared.module.mjs +5 -5
- package/esm2022/customer/components/add-customer-to-group-dialog/add-customer-to-group-dialog.component.mjs +4 -4
- package/esm2022/customer/components/address-card/address-card.component.mjs +4 -4
- package/esm2022/customer/components/address-detail-dialog/address-detail-dialog.component.mjs +4 -4
- package/esm2022/customer/components/customer-detail/customer-detail.component.mjs +4 -4
- package/esm2022/customer/components/customer-group-detail/customer-group-detail.component.mjs +4 -4
- package/esm2022/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.mjs +4 -4
- package/esm2022/customer/components/customer-group-list/customer-group-list.component.mjs +17 -15
- package/esm2022/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +4 -4
- package/esm2022/customer/components/customer-history/customer-history-entry-host.component.mjs +4 -4
- package/esm2022/customer/components/customer-history/customer-history.component.mjs +4 -4
- package/esm2022/customer/components/customer-list/customer-list.component.mjs +29 -28
- package/esm2022/customer/components/customer-status-label/customer-status-label.component.mjs +4 -4
- package/esm2022/customer/components/select-customer-group-dialog/select-customer-group-dialog.component.mjs +4 -4
- package/esm2022/customer/customer.module.mjs +5 -5
- package/esm2022/dashboard/components/dashboard/dashboard.component.mjs +4 -4
- package/esm2022/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +4 -4
- package/esm2022/dashboard/dashboard.module.mjs +5 -5
- package/esm2022/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +8 -8
- package/esm2022/dashboard/widgets/order-chart-widget/order-chart-widget.component.mjs +4 -4
- package/esm2022/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +8 -8
- package/esm2022/dashboard/widgets/test-widget/test-widget.component.mjs +8 -8
- package/esm2022/dashboard/widgets/welcome-widget/welcome-widget.component.mjs +8 -8
- package/esm2022/login/components/login/login.component.mjs +4 -4
- package/esm2022/login/login.module.mjs +5 -5
- package/esm2022/login/providers/login.guard.mjs +4 -4
- package/esm2022/marketing/components/promotion-detail/promotion-detail.component.mjs +4 -4
- package/esm2022/marketing/components/promotion-list/promotion-list.component.mjs +16 -15
- package/esm2022/marketing/marketing.module.mjs +5 -5
- package/esm2022/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.mjs +4 -4
- package/esm2022/order/components/cancel-order-dialog/cancel-order-dialog.component.mjs +4 -4
- package/esm2022/order/components/coupon-code-selector/coupon-code-selector.component.mjs +4 -4
- package/esm2022/order/components/draft-order-detail/draft-order-detail.component.mjs +4 -4
- package/esm2022/order/components/draft-order-variant-selector/draft-order-variant-selector.component.mjs +4 -4
- package/esm2022/order/components/fulfill-order-dialog/fulfill-order-dialog.component.mjs +4 -4
- package/esm2022/order/components/fulfillment-card/fulfillment-card.component.mjs +4 -4
- package/esm2022/order/components/fulfillment-detail/fulfillment-detail.component.mjs +4 -4
- package/esm2022/order/components/fulfillment-state-label/fulfillment-state-label.component.mjs +4 -4
- package/esm2022/order/components/line-fulfillment/line-fulfillment.component.mjs +4 -4
- package/esm2022/order/components/line-refunds/line-refunds.component.mjs +4 -4
- package/esm2022/order/components/modification-detail/modification-detail.component.mjs +4 -4
- package/esm2022/order/components/order-custom-fields-card/order-custom-fields-card.component.mjs +4 -4
- package/esm2022/order/components/order-data-table/order-data-table.component.mjs +4 -17
- package/esm2022/order/components/order-data-table/order-total-column.component.mjs +4 -4
- package/esm2022/order/components/order-detail/order-detail.component.mjs +4 -4
- package/esm2022/order/components/order-editor/order-editor.component.mjs +4 -4
- package/esm2022/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.mjs +4 -4
- package/esm2022/order/components/order-history/order-history-entry-host.component.mjs +4 -4
- package/esm2022/order/components/order-history/order-history.component.mjs +4 -4
- package/esm2022/order/components/order-list/order-list.component.mjs +6 -5
- package/esm2022/order/components/order-modification-summary/order-modification-summary.component.mjs +4 -4
- package/esm2022/order/components/order-payment-card/order-payment-card.component.mjs +4 -4
- package/esm2022/order/components/order-process-graph/order-process-edge.component.mjs +4 -4
- package/esm2022/order/components/order-process-graph/order-process-graph.component.mjs +4 -4
- package/esm2022/order/components/order-process-graph/order-process-node.component.mjs +4 -4
- package/esm2022/order/components/order-process-graph-dialog/order-process-graph-dialog.component.mjs +4 -4
- package/esm2022/order/components/order-state-select-dialog/order-state-select-dialog.component.mjs +4 -4
- package/esm2022/order/components/order-table/order-table.component.mjs +4 -4
- package/esm2022/order/components/payment-detail/payment-detail.component.mjs +4 -4
- package/esm2022/order/components/payment-for-refund-selector/payment-for-refund-selector.component.mjs +4 -4
- package/esm2022/order/components/payment-state-label/payment-state-label.component.mjs +4 -4
- package/esm2022/order/components/refund-detail/refund-detail.component.mjs +4 -4
- package/esm2022/order/components/refund-order-dialog/refund-order-dialog.component.mjs +4 -4
- package/esm2022/order/components/refund-state-label/refund-state-label.component.mjs +4 -4
- package/esm2022/order/components/select-address-dialog/select-address-dialog.component.mjs +4 -4
- package/esm2022/order/components/select-customer-dialog/select-customer-dialog.component.mjs +4 -4
- package/esm2022/order/components/select-shipping-method-dialog/select-shipping-method-dialog.component.mjs +4 -4
- package/esm2022/order/components/seller-orders-card/seller-orders-card.component.mjs +4 -4
- package/esm2022/order/components/settle-refund-dialog/settle-refund-dialog.component.mjs +4 -4
- package/esm2022/order/components/simple-item-list/simple-item-list.component.mjs +4 -4
- package/esm2022/order/order.module.mjs +5 -5
- package/esm2022/order/providers/order-transition.service.mjs +4 -4
- package/esm2022/order/providers/routing/order.guard.mjs +4 -4
- package/esm2022/react/components/react-custom-column.component.mjs +4 -4
- package/esm2022/react/components/react-custom-detail.component.mjs +4 -4
- package/esm2022/react/components/react-form-input.component.mjs +4 -4
- package/esm2022/react/components/react-route.component.mjs +4 -4
- package/esm2022/react/directives/react-component-host.directive.mjs +4 -4
- package/esm2022/settings/components/add-country-to-zone-dialog/add-country-to-zone-dialog.component.mjs +4 -4
- package/esm2022/settings/components/admin-detail/admin-detail.component.mjs +4 -4
- package/esm2022/settings/components/administrator-list/administrator-list.component.mjs +35 -34
- package/esm2022/settings/components/channel-detail/channel-detail.component.mjs +4 -4
- package/esm2022/settings/components/channel-list/channel-list.component.mjs +16 -15
- package/esm2022/settings/components/country-detail/country-detail.component.mjs +4 -4
- package/esm2022/settings/components/country-list/country-list.component.mjs +24 -23
- package/esm2022/settings/components/global-settings/global-settings.component.mjs +4 -4
- package/esm2022/settings/components/payment-method-detail/payment-method-detail.component.mjs +4 -4
- package/esm2022/settings/components/payment-method-list/payment-method-list.component.mjs +24 -23
- package/esm2022/settings/components/permission-grid/permission-grid.component.mjs +4 -4
- package/esm2022/settings/components/profile/profile.component.mjs +4 -4
- package/esm2022/settings/components/role-detail/role-detail.component.mjs +4 -4
- package/esm2022/settings/components/role-list/role-list.component.mjs +16 -15
- package/esm2022/settings/components/seller-detail/seller-detail.component.mjs +4 -4
- package/esm2022/settings/components/seller-list/seller-list.component.mjs +21 -20
- package/esm2022/settings/components/shipping-eligibility-test-result/shipping-eligibility-test-result.component.mjs +4 -4
- package/esm2022/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +4 -4
- package/esm2022/settings/components/shipping-method-list/shipping-method-list.component.mjs +24 -23
- package/esm2022/settings/components/shipping-method-test-result/shipping-method-test-result.component.mjs +4 -4
- package/esm2022/settings/components/stock-location-detail/stock-location-detail.component.mjs +4 -4
- package/esm2022/settings/components/stock-location-list/stock-location-list.component.mjs +22 -21
- package/esm2022/settings/components/tax-category-detail/tax-category-detail.component.mjs +4 -4
- package/esm2022/settings/components/tax-category-list/tax-category-list.component.mjs +16 -15
- package/esm2022/settings/components/tax-rate-detail/tax-rate-detail.component.mjs +4 -4
- package/esm2022/settings/components/tax-rate-list/tax-rate-list.component.mjs +16 -15
- package/esm2022/settings/components/test-address-form/test-address-form.component.mjs +4 -4
- package/esm2022/settings/components/test-order-builder/test-order-builder.component.mjs +4 -4
- package/esm2022/settings/components/test-shipping-methods/test-shipping-methods.component.mjs +4 -4
- package/esm2022/settings/components/zone-detail/zone-detail.component.mjs +4 -4
- package/esm2022/settings/components/zone-list/zone-list.component.mjs +21 -20
- package/esm2022/settings/components/zone-member-list/zone-member-controls.directive.mjs +4 -4
- package/esm2022/settings/components/zone-member-list/zone-member-list-header.directive.mjs +4 -4
- package/esm2022/settings/components/zone-member-list/zone-member-list.component.mjs +4 -4
- package/esm2022/settings/providers/routing/profile-resolver.mjs +4 -4
- package/esm2022/settings/settings.module.mjs +5 -5
- package/esm2022/system/components/health-check/health-check.component.mjs +4 -4
- package/esm2022/system/components/job-list/job-list.component.mjs +4 -4
- package/esm2022/system/components/job-state-label/job-state-label.component.mjs +4 -4
- package/esm2022/system/system.module.mjs +5 -5
- package/fesm2022/vendure-admin-ui-catalog.mjs +130 -128
- package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +1029 -876
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-customer.mjs +81 -78
- package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-dashboard.mjs +41 -41
- package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-login.mjs +10 -10
- package/fesm2022/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-marketing.mjs +22 -21
- package/fesm2022/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-order.mjs +135 -147
- package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +15 -15
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-settings.mjs +300 -289
- package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-system.mjs +13 -13
- package/fesm2022/vendure-admin-ui-system.mjs.map +1 -1
- package/marketing/components/promotion-list/promotion-list.component.d.ts +1 -0
- package/order/components/order-data-table/order-data-table.component.d.ts +2 -3
- package/order/components/order-list/order-list.component.d.ts +1 -0
- package/package.json +13 -13
- package/settings/components/administrator-list/administrator-list.component.d.ts +1 -0
- package/settings/components/channel-list/channel-list.component.d.ts +1 -0
- package/settings/components/country-list/country-list.component.d.ts +1 -0
- package/settings/components/payment-method-list/payment-method-list.component.d.ts +1 -0
- package/settings/components/role-list/role-list.component.d.ts +1 -0
- package/settings/components/seller-list/seller-list.component.d.ts +1 -0
- package/settings/components/shipping-method-list/shipping-method-list.component.d.ts +1 -0
- package/settings/components/stock-location-list/stock-location-list.component.d.ts +1 -0
- package/settings/components/tax-category-list/tax-category-list.component.d.ts +1 -0
- package/settings/components/tax-rate-list/tax-rate-list.component.d.ts +1 -0
- package/settings/components/zone-list/zone-list.component.d.ts +1 -0
- package/static/theme.min.css +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CdkDrag, CdkDragDrop, CdkDropList,
|
|
1
|
+
import { CdkDrag, CdkDragDrop, CdkDropList, DragRef } from '@angular/cdk/drag-drop';
|
|
2
2
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { DataService, DataTable2Component, GetCollectionListQuery, ItemOf
|
|
3
|
+
import { DataService, DataTable2Component, GetCollectionListQuery, ItemOf } from '@vendure/admin-ui/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type CollectionTableItem = ItemOf<GetCollectionListQuery, 'collections'>;
|
|
6
6
|
export type CollectionOrderEvent = {
|
|
@@ -10,9 +10,7 @@ export type CollectionOrderEvent = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare class CollectionDataTableComponent extends DataTable2Component<CollectionTableItem> implements OnChanges, AfterViewInit {
|
|
12
12
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
13
|
-
protected localStorageService: LocalStorageService;
|
|
14
13
|
protected dataService: DataService;
|
|
15
|
-
private dragDrop;
|
|
16
14
|
subCollections: CollectionTableItem[];
|
|
17
15
|
changeOrder: EventEmitter<CollectionOrderEvent>;
|
|
18
16
|
dropList: CdkDropList<{
|
|
@@ -24,7 +22,7 @@ export declare class CollectionDataTableComponent extends DataTable2Component<Co
|
|
|
24
22
|
absoluteIndex: {
|
|
25
23
|
[id: string]: number;
|
|
26
24
|
};
|
|
27
|
-
constructor(changeDetectorRef: ChangeDetectorRef,
|
|
25
|
+
constructor(changeDetectorRef: ChangeDetectorRef, dataService: DataService);
|
|
28
26
|
ngOnChanges(changes: SimpleChanges): void;
|
|
29
27
|
ngAfterViewInit(): void;
|
|
30
28
|
getSubcollections(item: CollectionTableItem): {
|
|
@@ -11,6 +11,7 @@ export declare class CollectionListComponent extends TypedBaseListComponent<type
|
|
|
11
11
|
activeCollectionTitle$: Observable<string>;
|
|
12
12
|
subCollections$: Observable<Array<ItemOf<GetCollectionListQuery, 'collections'>>>;
|
|
13
13
|
expandedIds: string[];
|
|
14
|
+
dataTableListId: string;
|
|
14
15
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
15
16
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").CollectionFilterParameter>;
|
|
16
17
|
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").CollectionSortParameter, ["createdAt", "updatedAt", "name", "slug", "position"]>;
|
|
@@ -8,6 +8,7 @@ export declare class FacetListComponent extends TypedBaseListComponent<typeof Ge
|
|
|
8
8
|
displayLimit: {
|
|
9
9
|
[id: string]: number;
|
|
10
10
|
};
|
|
11
|
+
dataTableListId: string;
|
|
11
12
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
12
13
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").FacetFilterParameter>;
|
|
13
14
|
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").FacetSortParameter, ["id", "createdAt", "updatedAt", "name", "code"]>;
|
|
@@ -7,9 +7,11 @@ export declare class ProductListComponent extends TypedBaseListComponent<typeof
|
|
|
7
7
|
private notificationService;
|
|
8
8
|
private jobQueueService;
|
|
9
9
|
pendingSearchIndexUpdates: number;
|
|
10
|
+
dataTableListId: string;
|
|
11
|
+
pageLocationId: string;
|
|
10
12
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
11
13
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").ProductFilterParameter>;
|
|
12
|
-
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductSortParameter, ["name" | "
|
|
14
|
+
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductSortParameter, ["name" | "id" | "createdAt" | "updatedAt" | "slug"]>;
|
|
13
15
|
constructor(dataService: DataService, modalService: ModalService, notificationService: NotificationService, jobQueueService: JobQueueService);
|
|
14
16
|
rebuildSearchIndex(): void;
|
|
15
17
|
deleteProduct(productId: string): void;
|
|
@@ -7,7 +7,7 @@ export declare class ProductVariantListComponent extends TypedBaseListComponent<
|
|
|
7
7
|
dataTableId: DataTableLocationId | undefined;
|
|
8
8
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
9
9
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<ProductVariantFilterParameter>;
|
|
10
|
-
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "
|
|
10
|
+
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "price" | "sku" | "id" | "createdAt" | "updatedAt" | "priceWithTax"]>;
|
|
11
11
|
constructor();
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantListComponent, never>;
|
|
13
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantListComponent, "vdr-product-variant-list", never, { "productId": { "alias": "productId"; "required": false; }; "hideLanguageSelect": { "alias": "hideLanguageSelect"; "required": false; }; "dataTableId": { "alias": "dataTableId"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -6,9 +6,12 @@ import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
|
6
6
|
import { DataService } from '../data/providers/data.service';
|
|
7
7
|
import { QueryResult } from '../data/query-result';
|
|
8
8
|
import { ServerConfigService } from '../data/server-config';
|
|
9
|
+
import { DataTableConfigService } from '../providers/data-table/data-table-config.service';
|
|
9
10
|
import { DataTableFilterCollection } from '../providers/data-table/data-table-filter-collection';
|
|
10
11
|
import { DataTableSortCollection } from '../providers/data-table/data-table-sort-collection';
|
|
11
12
|
import { PermissionsService } from '../providers/permissions/permissions.service';
|
|
13
|
+
import { DataTable2ColumnComponent } from '../shared/components/data-table-2/data-table-column.component';
|
|
14
|
+
import { DataTableCustomFieldColumnComponent } from '../shared/components/data-table-2/data-table-custom-field-column.component';
|
|
12
15
|
import { CustomFieldConfig, CustomFields, LanguageCode } from './generated-types';
|
|
13
16
|
import { SelectionManager } from './utilities/selection-manager';
|
|
14
17
|
import * as i0 from "@angular/core";
|
|
@@ -51,6 +54,7 @@ export declare class BaseListComponent<ResultType, ItemType, VariableType extend
|
|
|
51
54
|
private onPageChangeFn;
|
|
52
55
|
protected refresh$: BehaviorSubject<undefined>;
|
|
53
56
|
private defaults;
|
|
57
|
+
protected visibleCustomFieldColumnChange$: Subject<DataTableCustomFieldColumnComponent<any>[]>;
|
|
54
58
|
constructor(router: Router, route: ActivatedRoute);
|
|
55
59
|
/**
|
|
56
60
|
* @description
|
|
@@ -79,6 +83,7 @@ export declare class BaseListComponent<ResultType, ItemType, VariableType extend
|
|
|
79
83
|
* Sets the number of items per page in the url.
|
|
80
84
|
*/
|
|
81
85
|
setItemsPerPage(perPage: number): void;
|
|
86
|
+
setVisibleColumns(columns: Array<DataTable2ColumnComponent<any>>): void;
|
|
82
87
|
/**
|
|
83
88
|
* @description
|
|
84
89
|
* Re-fetch the current page of results.
|
|
@@ -116,6 +121,14 @@ export declare class TypedBaseListComponent<T extends TypedDocumentNode<any, Var
|
|
|
116
121
|
protected router: Router;
|
|
117
122
|
protected serverConfigService: ServerConfigService;
|
|
118
123
|
protected permissionsService: PermissionsService;
|
|
124
|
+
protected dataTableConfigService: DataTableConfigService;
|
|
125
|
+
/**
|
|
126
|
+
* This was introduced to allow us to more easily manage the relation between the
|
|
127
|
+
* DataTableComponent and the BaseListComponent. It allows the base class to
|
|
128
|
+
* correctly look up the currently-visible custom field columns, which can then
|
|
129
|
+
* be passed to the `dataService.query()` method.
|
|
130
|
+
*/
|
|
131
|
+
protected dataTableListId: string | undefined;
|
|
119
132
|
private refreshStreams;
|
|
120
133
|
private collections;
|
|
121
134
|
constructor();
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "3.0.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "3.0.5";
|
|
@@ -6,6 +6,23 @@ import { Observable } from 'rxjs';
|
|
|
6
6
|
import { QueryResult } from '../query-result';
|
|
7
7
|
import { ServerConfigService } from '../server-config';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* Additional options that can be passed to the `query` and `mutate` methods.
|
|
12
|
+
*
|
|
13
|
+
* @since 3.0.4
|
|
14
|
+
*/
|
|
15
|
+
export interface ExtendedQueryOptions {
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* An array of custom field names which should be included in the query or mutation
|
|
19
|
+
* return data. The automatic inclusion of custom fields is only supported for
|
|
20
|
+
* entities which are defined as Fragments in the DocumentNode.
|
|
21
|
+
*
|
|
22
|
+
* @since 3.0.4
|
|
23
|
+
*/
|
|
24
|
+
includeCustomFields?: string[];
|
|
25
|
+
}
|
|
9
26
|
export declare class BaseDataService {
|
|
10
27
|
private apollo;
|
|
11
28
|
private serverConfigService;
|
|
@@ -14,11 +31,11 @@ export declare class BaseDataService {
|
|
|
14
31
|
/**
|
|
15
32
|
* Performs a GraphQL watch query
|
|
16
33
|
*/
|
|
17
|
-
query<T, V extends Record<string, any> = Record<string, any>>(query: DocumentNode | TypedDocumentNode<T, V>, variables?: V, fetchPolicy?: WatchQueryFetchPolicy): QueryResult<T, V>;
|
|
34
|
+
query<T, V extends Record<string, any> = Record<string, any>>(query: DocumentNode | TypedDocumentNode<T, V>, variables?: V, fetchPolicy?: WatchQueryFetchPolicy, options?: ExtendedQueryOptions): QueryResult<T, V>;
|
|
18
35
|
/**
|
|
19
36
|
* Performs a GraphQL mutation
|
|
20
37
|
*/
|
|
21
|
-
mutate<T, V extends Record<string, any> = Record<string, any>>(mutation: DocumentNode | TypedDocumentNode<T, V>, variables?: V, update?: MutationUpdaterFn<T
|
|
38
|
+
mutate<T, V extends Record<string, any> = Record<string, any>>(mutation: DocumentNode | TypedDocumentNode<T, V>, variables?: V, update?: MutationUpdaterFn<T>, options?: ExtendedQueryOptions): Observable<T>;
|
|
22
39
|
private prepareCustomFields;
|
|
23
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDataService, never>;
|
|
24
41
|
static ɵprov: i0.ɵɵInjectableDeclaration<BaseDataService>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Codegen from '../../common/generated-types';
|
|
2
|
-
import { BaseDataService } from './base-data.service';
|
|
2
|
+
import { BaseDataService, ExtendedQueryOptions } from './base-data.service';
|
|
3
3
|
export declare class CollectionDataService {
|
|
4
4
|
private baseDataService;
|
|
5
5
|
constructor(baseDataService: BaseDataService);
|
|
@@ -16,7 +16,7 @@ export declare class CollectionDataService {
|
|
|
16
16
|
input: Codegen.PreviewCollectionVariantsInput;
|
|
17
17
|
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
18
18
|
}>>;
|
|
19
|
-
getCollectionContents(id: string, take?: number, skip?: number, filterTerm?: string): import("@vendure/admin-ui/core").QueryResult<Codegen.GetCollectionContentsQuery, Codegen.Exact<{
|
|
19
|
+
getCollectionContents(id: string, take?: number, skip?: number, filterTerm?: string, options?: ExtendedQueryOptions): import("@vendure/admin-ui/core").QueryResult<Codegen.GetCollectionContentsQuery, Codegen.Exact<{
|
|
20
20
|
id: string;
|
|
21
21
|
options?: Codegen.InputMaybe<Codegen.ProductVariantListOptions> | undefined;
|
|
22
22
|
}>>;
|
|
@@ -5,7 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { QueryResult } from '../query-result';
|
|
6
6
|
import { AdministratorDataService } from './administrator-data.service';
|
|
7
7
|
import { AuthDataService } from './auth-data.service';
|
|
8
|
-
import { BaseDataService } from './base-data.service';
|
|
8
|
+
import { BaseDataService, ExtendedQueryOptions } from './base-data.service';
|
|
9
9
|
import { ClientDataService } from './client-data.service';
|
|
10
10
|
import { CollectionDataService } from './collection-data.service';
|
|
11
11
|
import { CustomerDataService } from './customer-data.service';
|
|
@@ -61,7 +61,7 @@ export declare class DataService {
|
|
|
61
61
|
* ).mapSingle(data => data.product);
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
query<T, V extends Record<string, any> = Record<string, any>>(query: DocumentNode | TypedDocumentNode<T, V>, variables?: V, fetchPolicy?: WatchQueryFetchPolicy): QueryResult<T, V>;
|
|
64
|
+
query<T, V extends Record<string, any> = Record<string, any>>(query: DocumentNode | TypedDocumentNode<T, V>, variables?: V, fetchPolicy?: WatchQueryFetchPolicy, options?: ExtendedQueryOptions): QueryResult<T, V>;
|
|
65
65
|
/**
|
|
66
66
|
* @description
|
|
67
67
|
* Perform a GraphQL mutation.
|
|
@@ -79,7 +79,7 @@ export declare class DataService {
|
|
|
79
79
|
* );
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
|
-
mutate<T, V extends Record<string, any> = Record<string, any>>(mutation: DocumentNode | TypedDocumentNode<T, V>, variables?: V, update?: MutationUpdaterFn<T
|
|
82
|
+
mutate<T, V extends Record<string, any> = Record<string, any>>(mutation: DocumentNode | TypedDocumentNode<T, V>, variables?: V, update?: MutationUpdaterFn<T>, options?: ExtendedQueryOptions): Observable<T>;
|
|
83
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
84
84
|
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
85
85
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Apollo, QueryRef } from 'apollo-angular';
|
|
2
|
-
import { Observable
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CustomFieldConfig } from '../common/generated-types';
|
|
3
4
|
/**
|
|
4
5
|
* @description
|
|
5
6
|
* This class wraps the Apollo Angular QueryRef object and exposes some getters
|
|
@@ -11,14 +12,49 @@ import { Observable, Subject } from 'rxjs';
|
|
|
11
12
|
export declare class QueryResult<T, V extends Record<string, any> = Record<string, any>> {
|
|
12
13
|
private queryRef;
|
|
13
14
|
private apollo;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
private customFieldMap;
|
|
16
|
+
constructor(queryRef: QueryRef<T, V>, apollo: Apollo, customFieldMap: Map<string, CustomFieldConfig[]>);
|
|
17
|
+
/**
|
|
18
|
+
* Causes any subscriptions to the QueryRef to complete, via the use
|
|
19
|
+
* of the `takeUntil` operator.
|
|
20
|
+
*/
|
|
21
|
+
private completed$;
|
|
22
|
+
/**
|
|
23
|
+
* The subscription to the current QueryRef.valueChanges Observable.
|
|
24
|
+
* This is stored so that it can be unsubscribed from when the QueryRef
|
|
25
|
+
* changes.
|
|
26
|
+
*/
|
|
27
|
+
private valueChangesSubscription;
|
|
28
|
+
/**
|
|
29
|
+
* This Subject is used to emit new values from the QueryRef.valueChanges Observable.
|
|
30
|
+
* We use this rather than directly subscribing to the QueryRef.valueChanges Observable
|
|
31
|
+
* so that we are able to change the QueryRef and re-subscribe when necessary.
|
|
32
|
+
*/
|
|
33
|
+
private valueChangeSubject;
|
|
34
|
+
/**
|
|
35
|
+
* We keep track of the QueryRefs which have been subscribed to so that we can avoid
|
|
36
|
+
* re-subscribing to the same QueryRef multiple times.
|
|
37
|
+
*/
|
|
38
|
+
private queryRefSubscribed;
|
|
39
|
+
/**
|
|
40
|
+
* We store a reference to the last query so that we can compare it with the next query
|
|
41
|
+
* and avoid re-fetching the same query multiple times. This is applicable to the code
|
|
42
|
+
* paths that actually change the query, i.e. refetchOnCustomFieldsChange().
|
|
43
|
+
*/
|
|
44
|
+
private lastQuery;
|
|
17
45
|
/**
|
|
18
46
|
* @description
|
|
19
47
|
* Re-fetch this query whenever the active Channel changes.
|
|
20
48
|
*/
|
|
21
49
|
refetchOnChannelChange(): QueryResult<T, V>;
|
|
50
|
+
/**
|
|
51
|
+
* @description
|
|
52
|
+
* Re-fetch this query whenever the custom fields change, updating the query to include the
|
|
53
|
+
* specified custom fields.
|
|
54
|
+
*
|
|
55
|
+
* @since 3.0.4
|
|
56
|
+
*/
|
|
57
|
+
refetchOnCustomFieldsChange(customFieldsToInclude$: Observable<string[]>): QueryResult<T, V>;
|
|
22
58
|
/**
|
|
23
59
|
* @description
|
|
24
60
|
* Returns an Observable which emits a single result and then completes.
|
|
@@ -40,4 +76,24 @@ export declare class QueryResult<T, V extends Record<string, any> = Record<strin
|
|
|
40
76
|
* Returns a multiple-result Observable after applying the map function.
|
|
41
77
|
*/
|
|
42
78
|
mapStream<R>(mapFn: (item: T) => R): Observable<R>;
|
|
79
|
+
/**
|
|
80
|
+
* @description
|
|
81
|
+
* Signals to the internal Observable subscriptions that they should complete.
|
|
82
|
+
*/
|
|
83
|
+
destroy(): void;
|
|
84
|
+
/**
|
|
85
|
+
* @description
|
|
86
|
+
* Returns an Observable which emits the current value of the QueryRef.valueChanges Observable.
|
|
87
|
+
*
|
|
88
|
+
* We wrap the valueChanges Observable in a new Observable so that we can have a lazy
|
|
89
|
+
* evaluation of the valueChanges Observable. That is, we only fire the HTTP request when
|
|
90
|
+
* the returned Observable is subscribed to.
|
|
91
|
+
*/
|
|
92
|
+
private get currentQueryRefValueChanges();
|
|
93
|
+
/**
|
|
94
|
+
* @description
|
|
95
|
+
* Subscribes to the valueChanges Observable of the given QueryRef, and stores the subscription
|
|
96
|
+
* so that it can be unsubscribed from when the QueryRef changes.
|
|
97
|
+
*/
|
|
98
|
+
private subscribeToQueryRef;
|
|
43
99
|
}
|
|
@@ -4,4 +4,4 @@ import { CustomFieldConfig } from '../../common/generated-types';
|
|
|
4
4
|
* Given a GraphQL AST (DocumentNode), this function looks for fragment definitions and adds and configured
|
|
5
5
|
* custom fields to those fragments.
|
|
6
6
|
*/
|
|
7
|
-
export declare function addCustomFields(documentNode: DocumentNode, customFields: Map<string, CustomFieldConfig[]
|
|
7
|
+
export declare function addCustomFields(documentNode: DocumentNode, customFields: Map<string, CustomFieldConfig[]>, includeCustomFields?: string[]): DocumentNode;
|
|
@@ -127,9 +127,11 @@ export declare class Alert<T> {
|
|
|
127
127
|
activeAlert$: Observable<ActiveAlert | undefined>;
|
|
128
128
|
private hasRun$;
|
|
129
129
|
private data$;
|
|
130
|
+
private readonly subscription;
|
|
130
131
|
constructor(config: AlertConfig<T>, context: AlertContext);
|
|
131
132
|
get id(): string;
|
|
132
133
|
runCheck(): void;
|
|
134
|
+
destroy(): void;
|
|
133
135
|
}
|
|
134
136
|
export declare class AlertsService {
|
|
135
137
|
private permissionsService;
|
|
@@ -144,6 +146,7 @@ export declare class AlertsService {
|
|
|
144
146
|
configureAlert<T>(config: AlertConfig<T>): void;
|
|
145
147
|
hasSufficientPermissions(permissions?: Permission[]): Observable<boolean>;
|
|
146
148
|
refresh(id?: string): void;
|
|
149
|
+
clearAlerts(): void;
|
|
147
150
|
protected createContext(): AlertContext;
|
|
148
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertsService, never>;
|
|
149
152
|
static ɵprov: i0.ɵɵInjectableDeclaration<AlertsService>;
|
|
@@ -4,6 +4,7 @@ import { DataService } from '../../data/providers/data.service';
|
|
|
4
4
|
import { ServerConfigService } from '../../data/server-config';
|
|
5
5
|
import { LocalStorageService } from '../local-storage/local-storage.service';
|
|
6
6
|
import { PermissionsService } from '../permissions/permissions.service';
|
|
7
|
+
import { AlertsService } from '../alerts/alerts.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* This service handles logic relating to authentication of the current user.
|
|
@@ -13,7 +14,8 @@ export declare class AuthService {
|
|
|
13
14
|
private dataService;
|
|
14
15
|
private serverConfigService;
|
|
15
16
|
private permissionsService;
|
|
16
|
-
|
|
17
|
+
private alertService;
|
|
18
|
+
constructor(localStorageService: LocalStorageService, dataService: DataService, serverConfigService: ServerConfigService, permissionsService: PermissionsService, alertService: AlertsService);
|
|
17
19
|
/**
|
|
18
20
|
* Attempts to log in via the REST login endpoint and updates the app
|
|
19
21
|
* state on success.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataTableConfig, LocalStorageService } from '../local-storage/local-storage.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DataTableConfigService {
|
|
4
|
+
private localStorageService;
|
|
5
|
+
constructor(localStorageService: LocalStorageService);
|
|
6
|
+
getConfig(): DataTableConfig;
|
|
7
|
+
getConfig(dataTableId: string): DataTableConfig[string];
|
|
8
|
+
setConfig(dataTableId: string, config: DataTableConfig[string]): void;
|
|
9
|
+
setConfig(dataTableConfig: DataTableConfig): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableConfigService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataTableConfigService>;
|
|
12
|
+
}
|
package/core/public_api.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export * from './providers/custom-history-entry-component/history-entry-componen
|
|
|
105
105
|
export * from './providers/custom-history-entry-component/history-entry-component.service';
|
|
106
106
|
export * from './providers/dashboard-widget/dashboard-widget-types';
|
|
107
107
|
export * from './providers/dashboard-widget/dashboard-widget.service';
|
|
108
|
+
export * from './providers/data-table/data-table-config.service';
|
|
108
109
|
export * from './providers/data-table/data-table-filter-collection';
|
|
109
110
|
export * from './providers/data-table/data-table-filter';
|
|
110
111
|
export * from './providers/data-table/data-table-sort-collection';
|
|
@@ -3,8 +3,8 @@ import { ActivatedRoute } from '@angular/router';
|
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { LanguageCode } from '../../../common/generated-types';
|
|
5
5
|
import { DataService } from '../../../data/providers/data.service';
|
|
6
|
+
import { DataTableConfigService } from '../../../providers/data-table/data-table-config.service';
|
|
6
7
|
import { DataTableFilterCollection } from '../../../providers/data-table/data-table-filter-collection';
|
|
7
|
-
import { DataTableConfig, LocalStorageService } from '../../../providers/local-storage/local-storage.service';
|
|
8
8
|
import { BulkActionMenuComponent } from '../bulk-action-menu/bulk-action-menu.component';
|
|
9
9
|
import { FilterPresetService } from '../data-table-filter-presets/filter-preset.service';
|
|
10
10
|
import { DataTable2ColumnComponent } from './data-table-column.component';
|
|
@@ -76,7 +76,6 @@ import * as i0 from "@angular/core";
|
|
|
76
76
|
*/
|
|
77
77
|
export declare class DataTable2Component<T> implements AfterContentInit, OnChanges, OnDestroy {
|
|
78
78
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
79
|
-
protected localStorageService: LocalStorageService;
|
|
80
79
|
protected dataService: DataService;
|
|
81
80
|
id: DataTableLocationId;
|
|
82
81
|
items: T[];
|
|
@@ -88,6 +87,7 @@ export declare class DataTable2Component<T> implements AfterContentInit, OnChang
|
|
|
88
87
|
activeIndex: number;
|
|
89
88
|
pageChange: EventEmitter<number>;
|
|
90
89
|
itemsPerPageChange: EventEmitter<number>;
|
|
90
|
+
visibleColumnsChange: EventEmitter<DataTable2ColumnComponent<T>[]>;
|
|
91
91
|
columns: QueryList<DataTable2ColumnComponent<T>>;
|
|
92
92
|
customFieldColumns: QueryList<DataTableCustomFieldColumnComponent<T>>;
|
|
93
93
|
searchComponent: DataTable2SearchComponent;
|
|
@@ -98,6 +98,7 @@ export declare class DataTable2Component<T> implements AfterContentInit, OnChang
|
|
|
98
98
|
route: ActivatedRoute;
|
|
99
99
|
filterPresetService: FilterPresetService;
|
|
100
100
|
dataTableCustomComponentService: DataTableCustomComponentService;
|
|
101
|
+
dataTableConfigService: DataTableConfigService;
|
|
101
102
|
protected customComponents: Map<string, {
|
|
102
103
|
config: DataTableComponentConfig;
|
|
103
104
|
injector: Injector;
|
|
@@ -109,7 +110,7 @@ export declare class DataTable2Component<T> implements AfterContentInit, OnChang
|
|
|
109
110
|
showSearchFilterRow: boolean;
|
|
110
111
|
protected uiLanguage$: Observable<LanguageCode>;
|
|
111
112
|
protected destroy$: Subject<void>;
|
|
112
|
-
constructor(changeDetectorRef: ChangeDetectorRef,
|
|
113
|
+
constructor(changeDetectorRef: ChangeDetectorRef, dataService: DataService);
|
|
113
114
|
get selectionManager(): import("@vendure/admin-ui/core").SelectionManager<any>;
|
|
114
115
|
get allColumns(): DataTable2ColumnComponent<T>[];
|
|
115
116
|
get visibleSortedColumns(): DataTable2ColumnComponent<T>[];
|
|
@@ -128,7 +129,6 @@ export declare class DataTable2Component<T> implements AfterContentInit, OnChang
|
|
|
128
129
|
trackByFn(index: number, item: any): any;
|
|
129
130
|
onToggleAllClick(): void;
|
|
130
131
|
onRowClick(item: T, event: MouseEvent): void;
|
|
131
|
-
protected getDataTableConfig(): DataTableConfig;
|
|
132
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTable2Component<any>, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTable2Component<any>, "vdr-data-table-2", never, { "id": { "alias": "id"; "required": false; }; "items": { "alias": "items"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "emptyStateLabel": { "alias": "emptyStateLabel"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "pageChange": "pageChange"; "itemsPerPageChange": "itemsPerPageChange"; }, ["searchComponent", "bulkActionMenuComponent", "customSearchTemplate", "columns", "customFieldColumns", "templateRefs"], ["vdr-bulk-action-menu"], false, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTable2Component<any>, "vdr-data-table-2", never, { "id": { "alias": "id"; "required": false; }; "items": { "alias": "items"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "emptyStateLabel": { "alias": "emptyStateLabel"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "pageChange": "pageChange"; "itemsPerPageChange": "itemsPerPageChange"; "visibleColumnsChange": "visibleColumnsChange"; }, ["searchComponent", "bulkActionMenuComponent", "customSearchTemplate", "columns", "customFieldColumns", "templateRefs"], ["vdr-bulk-action-menu"], false, never>;
|
|
134
134
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { DataTableConfigService } from '../../../providers/data-table/data-table-config.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FilterPresetService {
|
|
5
|
-
private
|
|
5
|
+
private dataTableConfigService;
|
|
6
6
|
presetChanges$: Observable<Array<{
|
|
7
7
|
name: string;
|
|
8
8
|
value: string;
|
|
9
9
|
}>>;
|
|
10
10
|
private _presetChanges;
|
|
11
|
-
constructor(
|
|
12
|
-
protected getDataTableConfig(dataTableId: string): DataTableConfig;
|
|
11
|
+
constructor(dataTableConfigService: DataTableConfigService);
|
|
13
12
|
getFilterPresets(dataTableId: string): Array<{
|
|
14
13
|
name: string;
|
|
15
14
|
value: string;
|
|
@@ -11,6 +11,8 @@ export declare class CustomerGroupListComponent extends TypedBaseListComponent<t
|
|
|
11
11
|
private modalService;
|
|
12
12
|
route: ActivatedRoute;
|
|
13
13
|
protected router: Router;
|
|
14
|
+
dataTableListId: string;
|
|
15
|
+
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
14
16
|
activeGroup$: Observable<ItemOf<GetCustomerGroupsQuery, 'customerGroups'> | undefined>;
|
|
15
17
|
activeIndex$: Observable<number>;
|
|
16
18
|
listIsEmpty$: Observable<boolean>;
|
|
@@ -3,6 +3,7 @@ import { CustomerListQueryDocument, TypedBaseListComponent } from '@vendure/admi
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare const CUSTOMER_LIST_QUERY: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
5
5
|
export declare class CustomerListComponent extends TypedBaseListComponent<typeof CustomerListQueryDocument, 'customers'> implements OnInit {
|
|
6
|
+
dataTableListId: string;
|
|
6
7
|
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
7
8
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").CustomerFilterParameter>;
|
|
8
9
|
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").CustomerSortParameter, ["createdAt", "updatedAt", "lastName", "emailAddress"]>;
|