@vendure/admin-ui 2.1.0-next.2 → 2.1.0-next.3
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-detail/collection-detail.component.d.ts +3 -1
- package/catalog/components/create-product-variant-dialog/create-product-variant-dialog.component.d.ts +6 -4
- package/catalog/components/facet-detail/facet-detail.component.d.ts +3 -1
- package/catalog/components/product-detail/product-detail.component.d.ts +3 -1
- package/catalog/components/stock-location-detail/stock-location-detail.component.d.ts +3 -1
- package/core/common/base-detail.component.d.ts +11 -1
- package/core/common/component-registry-types.d.ts +2 -1
- package/core/common/utilities/custom-field-default-value.d.ts +6 -0
- package/core/common/version.d.ts +1 -1
- package/core/components/app-shell/app-shell.component.d.ts +2 -0
- package/core/extension/add-action-bar-item.d.ts +28 -0
- package/core/extension/add-nav-menu-item.d.ts +60 -0
- package/core/extension/components/angular-route.component.d.ts +6 -0
- package/core/extension/components/route.component.d.ts +13 -0
- package/core/extension/providers/page-metadata.service.d.ts +9 -0
- package/core/{providers/bulk-action-registry → extension}/register-bulk-action.d.ts +1 -1
- package/core/extension/register-custom-detail-component.d.ts +10 -0
- package/core/{providers/dashboard-widget → extension}/register-dashboard-widget.d.ts +5 -1
- package/core/extension/register-data-table-component.d.ts +44 -0
- package/core/extension/register-form-input-component.d.ts +50 -0
- package/core/extension/register-history-entry-component.d.ts +11 -0
- package/core/extension/register-route-component.d.ts +59 -0
- package/core/extension/types.d.ts +11 -0
- package/core/providers/component-registry/component-registry.service.d.ts +6 -3
- package/core/providers/custom-detail-component/custom-detail-component-types.d.ts +2 -1
- package/core/providers/custom-detail-component/custom-detail-component.service.d.ts +0 -9
- package/core/providers/custom-history-entry-component/history-entry-component.service.d.ts +1 -10
- package/core/providers/dashboard-widget/dashboard-widget-types.d.ts +17 -1
- package/core/providers/modal/modal.service.d.ts +1 -3
- package/core/providers/nav-builder/nav-builder.service.d.ts +0 -85
- package/core/public_api.d.ts +16 -3
- package/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.d.ts +3 -3
- package/core/shared/components/data-table-2/data-table-column.component.d.ts +2 -2
- package/core/shared/components/data-table-2/data-table-custom-component.service.d.ts +52 -0
- package/core/shared/components/data-table-2/data-table-custom-field-column.component.d.ts +0 -1
- package/core/shared/components/data-table-2/data-table2.component.d.ts +9 -2
- package/core/shared/components/modal-dialog/dialog-component-outlet.component.d.ts +2 -3
- package/core/shared/components/ui-extension-point/ui-extension-point.component.d.ts +13 -4
- package/core/shared/dynamic-form-inputs/{register-dynamic-input-components.d.ts → default-form-inputs.d.ts} +1 -50
- package/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.d.ts +3 -3
- package/core/shared/shared.module.d.ts +25 -25
- package/customer/components/customer-detail/customer-detail.component.d.ts +3 -1
- package/customer/components/customer-group-detail/customer-group-detail.component.d.ts +3 -1
- package/customer/components/customer-history/customer-history-entry-host.component.d.ts +2 -3
- package/customer/components/customer-list/customer-list.component.d.ts +1 -0
- package/dashboard/components/dashboard-widget/dashboard-widget.component.d.ts +1 -3
- package/esm2022/catalog/components/asset-detail/asset-detail.component.mjs +3 -3
- package/esm2022/catalog/components/collection-contents/collection-contents.component.mjs +3 -3
- package/esm2022/catalog/components/collection-data-table/collection-data-table.component.mjs +3 -3
- package/esm2022/catalog/components/collection-detail/collection-detail.component.mjs +3 -3
- package/esm2022/catalog/components/collection-list/collection-list.component.mjs +3 -3
- package/esm2022/catalog/components/create-product-variant-dialog/create-product-variant-dialog.component.mjs +8 -5
- package/esm2022/catalog/components/facet-detail/facet-detail.component.mjs +3 -3
- package/esm2022/catalog/components/facet-list/facet-list.component.mjs +3 -3
- package/esm2022/catalog/components/move-collections-dialog/move-collections-dialog.component.mjs +3 -3
- package/esm2022/catalog/components/product-detail/product-detail.component.mjs +3 -3
- package/esm2022/catalog/components/product-list/product-list.component.mjs +3 -3
- package/esm2022/catalog/components/product-options-editor/product-options-editor.component.mjs +3 -3
- package/esm2022/catalog/components/product-variant-detail/product-variant-detail.component.mjs +3 -3
- package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +3 -3
- package/esm2022/catalog/components/product-variants-editor/product-variants-editor.component.mjs +3 -3
- package/esm2022/catalog/components/stock-location-detail/stock-location-detail.component.mjs +3 -3
- package/esm2022/catalog/components/stock-location-list/stock-location-list.component.mjs +3 -3
- package/esm2022/core/common/base-detail.component.mjs +9 -7
- package/esm2022/core/common/component-registry-types.mjs +1 -1
- package/esm2022/core/common/generated-types.mjs +1 -1
- package/esm2022/core/common/utilities/create-updated-translatable.mjs +5 -23
- package/esm2022/core/common/utilities/custom-field-default-value.mjs +28 -0
- package/esm2022/core/common/version.mjs +2 -2
- package/esm2022/core/components/app-shell/app-shell.component.mjs +16 -10
- package/esm2022/core/components/channel-switcher/channel-switcher.component.mjs +3 -3
- package/esm2022/core/components/main-nav/main-nav.component.mjs +3 -3
- package/esm2022/core/components/settings-nav/settings-nav.component.mjs +1 -1
- package/esm2022/core/core.module.mjs +2 -2
- package/esm2022/core/extension/add-action-bar-item.mjs +38 -0
- package/esm2022/core/extension/add-nav-menu-item.mjs +79 -0
- package/esm2022/core/extension/components/angular-route.component.mjs +22 -0
- package/esm2022/core/extension/components/route.component.mjs +59 -0
- package/esm2022/core/extension/providers/page-metadata.service.mjs +20 -0
- package/esm2022/core/extension/register-bulk-action.mjs +63 -0
- package/esm2022/core/extension/register-custom-detail-component.mjs +20 -0
- package/esm2022/core/extension/register-dashboard-widget.mjs +36 -0
- package/esm2022/core/extension/register-data-table-component.mjs +50 -0
- package/esm2022/core/extension/register-form-input-component.mjs +60 -0
- package/esm2022/core/extension/register-history-entry-component.mjs +21 -0
- package/esm2022/core/extension/register-route-component.mjs +44 -0
- package/esm2022/core/extension/types.mjs +2 -0
- package/esm2022/core/providers/component-registry/component-registry.service.mjs +3 -3
- package/esm2022/core/providers/custom-detail-component/custom-detail-component-types.mjs +1 -1
- package/esm2022/core/providers/custom-detail-component/custom-detail-component.service.mjs +2 -19
- package/esm2022/core/providers/custom-history-entry-component/history-entry-component.service.mjs +2 -20
- package/esm2022/core/providers/dashboard-widget/dashboard-widget-types.mjs +1 -1
- package/esm2022/core/providers/data-table/data-table-filter-collection.mjs +1 -8
- package/esm2022/core/providers/data-table/data-table-filter.mjs +1 -1
- package/esm2022/core/providers/modal/modal.service.mjs +5 -7
- package/esm2022/core/providers/nav-builder/nav-builder.service.mjs +2 -113
- package/esm2022/core/public_api.mjs +17 -4
- package/esm2022/core/shared/components/action-bar-items/action-bar-items.component.mjs +3 -3
- package/esm2022/core/shared/components/asset-gallery/asset-gallery.component.mjs +3 -3
- package/esm2022/core/shared/components/card/card.component.mjs +3 -3
- package/esm2022/core/shared/components/chip/chip.component.mjs +2 -2
- package/esm2022/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.mjs +13 -9
- package/esm2022/core/shared/components/data-table-2/data-table-column.component.mjs +5 -6
- package/esm2022/core/shared/components/data-table-2/data-table-custom-component.service.mjs +26 -0
- package/esm2022/core/shared/components/data-table-2/data-table-custom-field-column.component.mjs +2 -4
- package/esm2022/core/shared/components/data-table-2/data-table2.component.mjs +23 -10
- package/esm2022/core/shared/components/data-table-filter-label/data-table-filter-label.component.mjs +3 -3
- package/esm2022/core/shared/components/data-table-filter-presets/add-filter-preset-button.component.mjs +2 -2
- package/esm2022/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.mjs +3 -3
- package/esm2022/core/shared/components/data-table-filter-presets/filter-preset.service.mjs +1 -1
- package/esm2022/core/shared/components/data-table-filter-presets/rename-filter-preset-dialog.component.mjs +3 -3
- package/esm2022/core/shared/components/data-table-filters/data-table-filters.component.mjs +6 -4
- package/esm2022/core/shared/components/facet-value-chip/facet-value-chip.component.mjs +2 -2
- package/esm2022/core/shared/components/modal-dialog/dialog-component-outlet.component.mjs +6 -8
- package/esm2022/core/shared/components/page-title/page-title.component.mjs +3 -3
- package/esm2022/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +2 -2
- package/esm2022/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.mjs +2 -2
- package/esm2022/core/shared/components/ui-extension-point/ui-extension-point.component.mjs +97 -5
- package/esm2022/core/shared/dynamic-form-inputs/default-form-inputs.mjs +44 -0
- package/esm2022/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +20 -16
- package/esm2022/core/shared/shared.module.mjs +14 -13
- package/esm2022/customer/components/customer-detail/customer-detail.component.mjs +5 -5
- package/esm2022/customer/components/customer-group-detail/customer-group-detail.component.mjs +3 -3
- package/esm2022/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.mjs +3 -2
- package/esm2022/customer/components/customer-group-list/customer-group-list.component.mjs +3 -3
- package/esm2022/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +3 -3
- package/esm2022/customer/components/customer-history/customer-history-entry-host.component.mjs +5 -7
- package/esm2022/customer/components/customer-list/customer-list.component.mjs +10 -7
- package/esm2022/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +4 -7
- package/esm2022/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +3 -3
- package/esm2022/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
- package/esm2022/marketing/components/promotion-list/promotion-list.component.mjs +3 -3
- package/esm2022/order/components/order-data-table/order-data-table.component.mjs +2 -2
- package/esm2022/order/components/order-detail/order-detail.component.mjs +3 -3
- package/esm2022/order/components/order-history/order-history-entry-host.component.mjs +7 -9
- package/esm2022/order/components/order-list/order-list.component.mjs +3 -3
- package/esm2022/order/components/order-table/order-table.component.mjs +3 -3
- package/esm2022/react/components/react-custom-column.component.mjs +25 -0
- package/esm2022/react/components/react-custom-detail.component.mjs +23 -0
- package/esm2022/react/components/react-form-input.component.mjs +24 -0
- package/esm2022/react/components/react-route.component.mjs +26 -0
- package/esm2022/react/directives/react-component-host.directive.mjs +54 -0
- package/esm2022/react/public_api.mjs +19 -0
- package/esm2022/react/react-components/Card.mjs +28 -0
- package/esm2022/react/react-components/Link.mjs +30 -0
- package/esm2022/react/react-hooks/use-detail-component-data.mjs +48 -0
- package/esm2022/react/react-hooks/use-form-control.mjs +66 -0
- package/esm2022/react/react-hooks/use-injector.mjs +33 -0
- package/esm2022/react/react-hooks/use-page-metadata.mjs +41 -0
- package/esm2022/react/react-hooks/use-query.mjs +124 -0
- package/esm2022/react/register-react-custom-detail-component.mjs +33 -0
- package/esm2022/react/register-react-data-table-component.mjs +62 -0
- package/esm2022/react/register-react-form-input-component.mjs +27 -0
- package/esm2022/react/register-react-route-component.mjs +25 -0
- package/esm2022/react/types.mjs +2 -0
- package/esm2022/react/vendure-admin-ui-react.mjs +5 -0
- package/esm2022/settings/components/admin-detail/admin-detail.component.mjs +3 -3
- package/esm2022/settings/components/administrator-list/administrator-list.component.mjs +3 -3
- package/esm2022/settings/components/channel-detail/channel-detail.component.mjs +10 -10
- package/esm2022/settings/components/channel-list/channel-list.component.mjs +3 -3
- package/esm2022/settings/components/country-detail/country-detail.component.mjs +3 -3
- package/esm2022/settings/components/country-list/country-list.component.mjs +3 -3
- package/esm2022/settings/components/global-settings/global-settings.component.mjs +3 -3
- package/esm2022/settings/components/payment-method-detail/payment-method-detail.component.mjs +3 -3
- package/esm2022/settings/components/payment-method-list/payment-method-list.component.mjs +3 -3
- package/esm2022/settings/components/profile/profile.component.mjs +3 -3
- package/esm2022/settings/components/role-list/role-list.component.mjs +3 -3
- package/esm2022/settings/components/seller-detail/seller-detail.component.mjs +3 -3
- package/esm2022/settings/components/seller-list/seller-list.component.mjs +3 -3
- package/esm2022/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +3 -3
- package/esm2022/settings/components/shipping-method-list/shipping-method-list.component.mjs +3 -3
- package/esm2022/settings/components/tax-category-detail/tax-category-detail.component.mjs +3 -3
- package/esm2022/settings/components/tax-category-list/tax-category-list.component.mjs +3 -3
- package/esm2022/settings/components/tax-rate-detail/tax-rate-detail.component.mjs +3 -3
- package/esm2022/settings/components/tax-rate-list/tax-rate-list.component.mjs +3 -3
- package/esm2022/settings/components/zone-detail/zone-detail.component.mjs +3 -3
- package/esm2022/settings/components/zone-list/zone-list.component.mjs +3 -3
- package/esm2022/settings/components/zone-member-list/zone-member-list.component.mjs +3 -3
- package/esm2022/settings/settings.routes.mjs +1 -1
- package/esm2022/system/components/job-list/job-list.component.mjs +3 -3
- package/fesm2022/vendure-admin-ui-catalog.mjs +34 -31
- package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +659 -346
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-customer.mjs +19 -18
- package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-dashboard.mjs +5 -8
- package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-marketing.mjs +4 -4
- package/fesm2022/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-order.mjs +14 -16
- package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +641 -0
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -0
- package/fesm2022/vendure-admin-ui-settings.mjs +41 -41
- package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-system.mjs +2 -2
- package/fesm2022/vendure-admin-ui-system.mjs.map +1 -1
- package/marketing/components/promotion-detail/promotion-detail.component.d.ts +3 -1
- package/order/components/order-detail/order-detail.component.d.ts +3 -1
- package/order/components/order-history/order-history-entry-host.component.d.ts +2 -3
- package/package.json +21 -13
- package/react/components/react-custom-column.component.d.ts +17 -0
- package/react/components/react-custom-detail.component.d.ts +24 -0
- package/react/components/react-form-input.component.d.ts +20 -0
- package/react/components/react-route.component.d.ts +10 -0
- package/react/directives/react-component-host.directive.d.ts +23 -0
- package/react/index.d.ts +5 -0
- package/react/public_api.d.ts +17 -0
- package/react/react-components/Card.d.ts +24 -0
- package/react/react-components/Link.d.ts +22 -0
- package/react/react-hooks/use-detail-component-data.d.ts +32 -0
- package/react/react-hooks/use-form-control.d.ts +29 -0
- package/react/react-hooks/use-injector.d.ts +24 -0
- package/react/react-hooks/use-page-metadata.d.ts +30 -0
- package/react/react-hooks/use-query.d.ts +92 -0
- package/react/register-react-custom-detail-component.d.ts +38 -0
- package/react/register-react-data-table-component.d.ts +81 -0
- package/react/register-react-form-input-component.d.ts +9 -0
- package/react/register-react-route-component.d.ts +26 -0
- package/react/types.d.ts +17 -0
- package/settings/components/admin-detail/admin-detail.component.d.ts +3 -1
- package/settings/components/channel-detail/channel-detail.component.d.ts +5 -3
- package/settings/components/country-detail/country-detail.component.d.ts +3 -1
- package/settings/components/global-settings/global-settings.component.d.ts +3 -1
- package/settings/components/payment-method-detail/payment-method-detail.component.d.ts +3 -1
- package/settings/components/profile/profile.component.d.ts +3 -1
- package/settings/components/seller-detail/seller-detail.component.d.ts +3 -1
- package/settings/components/shipping-method-detail/shipping-method-detail.component.d.ts +3 -1
- package/settings/components/tax-category-detail/tax-category-detail.component.d.ts +3 -1
- package/settings/components/tax-rate-detail/tax-rate-detail.component.d.ts +3 -1
- package/settings/components/zone-detail/zone-detail.component.d.ts +3 -1
- package/static/i18n-messages/cs.json +789 -789
- package/static/i18n-messages/de.json +789 -789
- package/static/i18n-messages/en.json +789 -789
- package/static/i18n-messages/es.json +789 -789
- package/static/i18n-messages/fr.json +789 -789
- package/static/i18n-messages/he.json +789 -789
- package/static/i18n-messages/it.json +789 -789
- package/static/i18n-messages/pl.json +789 -789
- package/static/i18n-messages/pt_BR.json +789 -789
- package/static/i18n-messages/pt_PT.json +789 -789
- package/static/i18n-messages/ru.json +789 -789
- package/static/i18n-messages/uk.json +789 -789
- package/static/i18n-messages/zh_Hans.json +789 -789
- package/static/i18n-messages/zh_Hant.json +789 -789
- package/static/styles/_mixins.scss +4 -4
- package/static/styles/global/_forms.scss +2 -2
- package/static/styles/rtl.scss +1 -1
- package/static/styles/theme/dark.scss +1 -16
- package/static/styles/theme/default.scss +1 -0
- package/static/theme.min.css +1 -1
- package/esm2022/core/providers/bulk-action-registry/register-bulk-action.mjs +0 -63
- package/esm2022/core/providers/dashboard-widget/register-dashboard-widget.mjs +0 -32
- package/esm2022/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +0 -102
|
@@ -1,92 +1,7 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
1
|
import { ActivatedRoute } from '@angular/router';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { ActionBarItem, NavMenuBadgeType, NavMenuItem, NavMenuSection, RouterLinkDefinition } from './nav-builder-types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @description
|
|
8
|
-
* Add a section to the main nav menu. Providing the `before` argument will
|
|
9
|
-
* move the section before any existing section with the specified id. If
|
|
10
|
-
* omitted (or if the id is not found) the section will be appended to the
|
|
11
|
-
* existing set of sections.
|
|
12
|
-
* This should be used in the NgModule `providers` array of your ui extension module.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```TypeScript
|
|
16
|
-
* \@NgModule({
|
|
17
|
-
* imports: [SharedModule],
|
|
18
|
-
* providers: [
|
|
19
|
-
* addNavMenuSection({
|
|
20
|
-
* id: 'reports',
|
|
21
|
-
* label: 'Reports',
|
|
22
|
-
* items: [{
|
|
23
|
-
* // ...
|
|
24
|
-
* }],
|
|
25
|
-
* },
|
|
26
|
-
* 'settings'),
|
|
27
|
-
* ],
|
|
28
|
-
* })
|
|
29
|
-
* export class MyUiExtensionModule {}
|
|
30
|
-
* ```
|
|
31
|
-
* @docsCategory nav-menu
|
|
32
|
-
*/
|
|
33
|
-
export declare function addNavMenuSection(config: NavMenuSection, before?: string): Provider;
|
|
34
|
-
/**
|
|
35
|
-
* @description
|
|
36
|
-
* Add a menu item to an existing section specified by `sectionId`. The id of the section
|
|
37
|
-
* can be found by inspecting the DOM and finding the `data-section-id` attribute.
|
|
38
|
-
* Providing the `before` argument will move the item before any existing item with the specified id.
|
|
39
|
-
* If omitted (or if the name is not found) the item will be appended to the
|
|
40
|
-
* end of the section.
|
|
41
|
-
*
|
|
42
|
-
* This should be used in the NgModule `providers` array of your ui extension module.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```TypeScript
|
|
46
|
-
* \@NgModule({
|
|
47
|
-
* imports: [SharedModule],
|
|
48
|
-
* providers: [
|
|
49
|
-
* addNavMenuItem({
|
|
50
|
-
* id: 'reviews',
|
|
51
|
-
* label: 'Product Reviews',
|
|
52
|
-
* routerLink: ['/extensions/reviews'],
|
|
53
|
-
* icon: 'star',
|
|
54
|
-
* },
|
|
55
|
-
* 'marketing'),
|
|
56
|
-
* ],
|
|
57
|
-
* })
|
|
58
|
-
* export class MyUiExtensionModule {}
|
|
59
|
-
* ``
|
|
60
|
-
*
|
|
61
|
-
* @docsCategory nav-menu
|
|
62
|
-
*/
|
|
63
|
-
export declare function addNavMenuItem(config: NavMenuItem, sectionId: string, before?: string): Provider;
|
|
64
|
-
/**
|
|
65
|
-
* @description
|
|
66
|
-
* Adds a button to the ActionBar at the top right of each list or detail view. The locationId can
|
|
67
|
-
* be determined by inspecting the DOM and finding the <vdr-action-bar> element and its
|
|
68
|
-
* `data-location-id` attribute.
|
|
69
|
-
*
|
|
70
|
-
* This should be used in the NgModule `providers` array of your ui extension module.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```TypeScript
|
|
74
|
-
* \@NgModule({
|
|
75
|
-
* imports: [SharedModule],
|
|
76
|
-
* providers: [
|
|
77
|
-
* addActionBarItem({
|
|
78
|
-
* id: 'print-invoice'
|
|
79
|
-
* label: 'Print Invoice',
|
|
80
|
-
* locationId: 'order-detail',
|
|
81
|
-
* routerLink: ['/extensions/invoicing'],
|
|
82
|
-
* }),
|
|
83
|
-
* ],
|
|
84
|
-
* })
|
|
85
|
-
* export class MyUiExtensionModule {}
|
|
86
|
-
* ```
|
|
87
|
-
* @docsCategory action-bar
|
|
88
|
-
*/
|
|
89
|
-
export declare function addActionBarItem(config: ActionBarItem): Provider;
|
|
90
5
|
/**
|
|
91
6
|
* This service is used to define the contents of configurable menus in the application.
|
|
92
7
|
*/
|
package/core/public_api.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './common/title-setter';
|
|
|
15
15
|
export * from './common/utilities/bulk-action-utils';
|
|
16
16
|
export * from './common/utilities/configurable-operation-utils';
|
|
17
17
|
export * from './common/utilities/create-updated-translatable';
|
|
18
|
+
export * from './common/utilities/custom-field-default-value';
|
|
18
19
|
export * from './common/utilities/find-translation';
|
|
19
20
|
export * from './common/utilities/get-default-ui-language';
|
|
20
21
|
export * from './common/utilities/interpolate-description';
|
|
@@ -72,12 +73,24 @@ export * from './data/utils/add-custom-fields';
|
|
|
72
73
|
export * from './data/utils/get-server-location';
|
|
73
74
|
export * from './data/utils/remove-readonly-custom-fields';
|
|
74
75
|
export * from './data/utils/transform-relation-custom-field-inputs';
|
|
76
|
+
export * from './extension/add-action-bar-item';
|
|
77
|
+
export * from './extension/add-nav-menu-item';
|
|
78
|
+
export * from './extension/components/angular-route.component';
|
|
79
|
+
export * from './extension/components/route.component';
|
|
80
|
+
export * from './extension/providers/page-metadata.service';
|
|
81
|
+
export * from './extension/register-bulk-action';
|
|
82
|
+
export * from './extension/register-custom-detail-component';
|
|
83
|
+
export * from './extension/register-dashboard-widget';
|
|
84
|
+
export * from './extension/register-data-table-component';
|
|
85
|
+
export * from './extension/register-form-input-component';
|
|
86
|
+
export * from './extension/register-history-entry-component';
|
|
87
|
+
export * from './extension/register-route-component';
|
|
88
|
+
export * from './extension/types';
|
|
75
89
|
export * from './providers/alerts/alerts.service';
|
|
76
90
|
export * from './providers/auth/auth.service';
|
|
77
91
|
export * from './providers/breadcrumb/breadcrumb.service';
|
|
78
92
|
export * from './providers/bulk-action-registry/bulk-action-registry.service';
|
|
79
93
|
export * from './providers/bulk-action-registry/bulk-action-types';
|
|
80
|
-
export * from './providers/bulk-action-registry/register-bulk-action';
|
|
81
94
|
export * from './providers/channel/channel.service';
|
|
82
95
|
export * from './providers/component-registry/component-registry.service';
|
|
83
96
|
export * from './providers/custom-detail-component/custom-detail-component-types';
|
|
@@ -87,7 +100,6 @@ export * from './providers/custom-history-entry-component/history-entry-componen
|
|
|
87
100
|
export * from './providers/custom-history-entry-component/history-entry-component.service';
|
|
88
101
|
export * from './providers/dashboard-widget/dashboard-widget-types';
|
|
89
102
|
export * from './providers/dashboard-widget/dashboard-widget.service';
|
|
90
|
-
export * from './providers/dashboard-widget/register-dashboard-widget';
|
|
91
103
|
export * from './providers/data-table/data-table-filter-collection';
|
|
92
104
|
export * from './providers/data-table/data-table-filter';
|
|
93
105
|
export * from './providers/data-table/data-table-sort-collection';
|
|
@@ -136,6 +148,7 @@ export * from './shared/components/customer-label/customer-label.component';
|
|
|
136
148
|
export * from './shared/components/data-table/data-table-column.component';
|
|
137
149
|
export * from './shared/components/data-table/data-table.component';
|
|
138
150
|
export * from './shared/components/data-table-2/data-table-column.component';
|
|
151
|
+
export * from './shared/components/data-table-2/data-table-custom-component.service';
|
|
139
152
|
export * from './shared/components/data-table-2/data-table-custom-field-column.component';
|
|
140
153
|
export * from './shared/components/data-table-2/data-table-search.component';
|
|
141
154
|
export * from './shared/components/data-table-2/data-table2.component';
|
|
@@ -246,13 +259,13 @@ export * from './shared/dynamic-form-inputs/combination-mode-form-input/combinat
|
|
|
246
259
|
export * from './shared/dynamic-form-inputs/currency-form-input/currency-form-input.component';
|
|
247
260
|
export * from './shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component';
|
|
248
261
|
export * from './shared/dynamic-form-inputs/date-form-input/date-form-input.component';
|
|
262
|
+
export * from './shared/dynamic-form-inputs/default-form-inputs';
|
|
249
263
|
export * from './shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component';
|
|
250
264
|
export * from './shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component';
|
|
251
265
|
export * from './shared/dynamic-form-inputs/number-form-input/number-form-input.component';
|
|
252
266
|
export * from './shared/dynamic-form-inputs/password-form-input/password-form-input.component';
|
|
253
267
|
export * from './shared/dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component';
|
|
254
268
|
export * from './shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component';
|
|
255
|
-
export * from './shared/dynamic-form-inputs/register-dynamic-input-components';
|
|
256
269
|
export * from './shared/dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component';
|
|
257
270
|
export * from './shared/dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component';
|
|
258
271
|
export * from './shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { CustomDetailComponentLocationId } from '../../../common/component-registry-types';
|
|
@@ -6,13 +6,13 @@ import { CustomDetailComponentService } from '../../../providers/custom-detail-c
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CustomDetailComponentHostComponent implements OnInit, OnDestroy {
|
|
8
8
|
private viewContainerRef;
|
|
9
|
-
private componentFactoryResolver;
|
|
10
9
|
private customDetailComponentService;
|
|
10
|
+
private injector;
|
|
11
11
|
locationId: CustomDetailComponentLocationId;
|
|
12
12
|
entity$: Observable<any>;
|
|
13
13
|
detailForm: UntypedFormGroup;
|
|
14
14
|
private componentRefs;
|
|
15
|
-
constructor(viewContainerRef: ViewContainerRef,
|
|
15
|
+
constructor(viewContainerRef: ViewContainerRef, customDetailComponentService: CustomDetailComponentService, injector: Injector);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDetailComponentHostComponent, never>;
|
|
@@ -3,6 +3,7 @@ import { DataTableSort } from '../../../providers/data-table/data-table-sort';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DataTable2ColumnComponent<T> implements OnInit {
|
|
5
5
|
#private;
|
|
6
|
+
id: string;
|
|
6
7
|
/**
|
|
7
8
|
* When set to true, this column will expand to use available width
|
|
8
9
|
*/
|
|
@@ -13,7 +14,6 @@ export declare class DataTable2ColumnComponent<T> implements OnInit {
|
|
|
13
14
|
optional: boolean;
|
|
14
15
|
hiddenByDefault: boolean;
|
|
15
16
|
orderable: boolean;
|
|
16
|
-
get id(): string;
|
|
17
17
|
get visible(): boolean;
|
|
18
18
|
template: TemplateRef<any>;
|
|
19
19
|
ngOnInit(): void;
|
|
@@ -21,5 +21,5 @@ export declare class DataTable2ColumnComponent<T> implements OnInit {
|
|
|
21
21
|
resetVisibility(): void;
|
|
22
22
|
onColumnChange(callback: () => void): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTable2ColumnComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTable2ColumnComponent<any>, "vdr-dt2-column", ["row"], { "expand": { "alias": "expand"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "align": { "alias": "align"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "hiddenByDefault": { "alias": "hiddenByDefault"; "required": false; }; "orderable": { "alias": "orderable"; "required": false; }; }, {}, ["template"], never, false, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTable2ColumnComponent<any>, "vdr-dt2-column", ["row"], { "id": { "alias": "id"; "required": false; }; "expand": { "alias": "expand"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "align": { "alias": "align"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "hiddenByDefault": { "alias": "hiddenByDefault"; "required": false; }; "orderable": { "alias": "orderable"; "required": false; }; }, {}, ["template"], never, false, never>;
|
|
25
25
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Provider, Type } from '@angular/core';
|
|
2
|
+
import { PageLocationId } from '../../../common/component-registry-types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type DataTableLocationId = {
|
|
5
|
+
[location in PageLocationId]: location extends `${string}-list` ? location : never;
|
|
6
|
+
}[PageLocationId] | 'collection-contents' | 'edit-options-list' | 'manage-product-variant-list' | 'customer-order-list' | string;
|
|
7
|
+
export type DataTableColumnId = 'id' | 'created-at' | 'updated-at' | 'name' | 'code' | 'description' | 'slug' | 'enabled' | 'sku' | 'price' | 'price-with-tax' | 'status' | 'state' | 'image' | 'quantity' | 'total' | 'stock-on-hand' | string;
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* Components which are to be used to render custom cells in a data table should implement this interface.
|
|
11
|
+
*
|
|
12
|
+
* The `rowItem` property is the data object for the row, e.g. the `Product` object if used
|
|
13
|
+
* in the `product-list` table.
|
|
14
|
+
*
|
|
15
|
+
* @docsCategory custom-table-components
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomColumnComponent {
|
|
18
|
+
rowItem: any;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @description
|
|
22
|
+
* Configures a {@link CustomDetailComponent} to be placed in the given location.
|
|
23
|
+
*
|
|
24
|
+
* @docsCategory custom-table-components
|
|
25
|
+
*/
|
|
26
|
+
export interface DataTableComponentConfig {
|
|
27
|
+
/**
|
|
28
|
+
* @description
|
|
29
|
+
* The location in the UI where the custom component should be placed.
|
|
30
|
+
*/
|
|
31
|
+
tableId: DataTableLocationId;
|
|
32
|
+
/**
|
|
33
|
+
* @description
|
|
34
|
+
* The column in the table where the custom component should be placed.
|
|
35
|
+
*/
|
|
36
|
+
columnId: DataTableColumnId;
|
|
37
|
+
/**
|
|
38
|
+
* @description
|
|
39
|
+
* The component to render in the table cell. This component should implement the
|
|
40
|
+
* {@link CustomColumnComponent} interface.
|
|
41
|
+
*/
|
|
42
|
+
component: Type<CustomColumnComponent>;
|
|
43
|
+
providers?: Provider[];
|
|
44
|
+
}
|
|
45
|
+
export declare class DataTableCustomComponentService {
|
|
46
|
+
private configMap;
|
|
47
|
+
registerCustomComponent(config: DataTableComponentConfig): void;
|
|
48
|
+
getCustomComponentsFor(tableId: DataTableLocationId, columnId: DataTableColumnId): DataTableComponentConfig | undefined;
|
|
49
|
+
private compoundId;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableCustomComponentService, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataTableCustomComponentService>;
|
|
52
|
+
}
|
|
@@ -12,7 +12,6 @@ export declare class DataTableCustomFieldColumnComponent<T> extends DataTable2Co
|
|
|
12
12
|
template: TemplateRef<any>;
|
|
13
13
|
protected uiLanguage$: Observable<LanguageCode>;
|
|
14
14
|
constructor(dataService: DataService);
|
|
15
|
-
get id(): string;
|
|
16
15
|
ngOnInit(): void;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableCustomFieldColumnComponent<any>, never>;
|
|
18
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableCustomFieldColumnComponent<any>, "vdr-dt2-custom-field-column", ["row"], { "customField": { "alias": "customField"; "required": false; }; "sorts": { "alias": "sorts"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnDestroy, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { LanguageCode } from '../../../common/generated-types';
|
|
@@ -8,6 +8,7 @@ import { DataTableConfig, LocalStorageService } from '../../../providers/local-s
|
|
|
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';
|
|
11
|
+
import { DataTableComponentConfig, DataTableCustomComponentService, DataTableLocationId } from './data-table-custom-component.service';
|
|
11
12
|
import { DataTableCustomFieldColumnComponent } from './data-table-custom-field-column.component';
|
|
12
13
|
import { DataTable2SearchComponent } from './data-table-search.component';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
@@ -77,7 +78,7 @@ export declare class DataTable2Component<T> implements AfterContentInit, OnChang
|
|
|
77
78
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
78
79
|
protected localStorageService: LocalStorageService;
|
|
79
80
|
protected dataService: DataService;
|
|
80
|
-
id:
|
|
81
|
+
id: DataTableLocationId;
|
|
81
82
|
items: T[];
|
|
82
83
|
itemsPerPage: number;
|
|
83
84
|
currentPage: number;
|
|
@@ -93,8 +94,14 @@ export declare class DataTable2Component<T> implements AfterContentInit, OnChang
|
|
|
93
94
|
bulkActionMenuComponent: BulkActionMenuComponent;
|
|
94
95
|
customSearchTemplate: TemplateRef<any>;
|
|
95
96
|
templateRefs: QueryList<TemplateRef<any>>;
|
|
97
|
+
injector: Injector;
|
|
96
98
|
route: ActivatedRoute;
|
|
97
99
|
filterPresetService: FilterPresetService;
|
|
100
|
+
dataTableCustomComponentService: DataTableCustomComponentService;
|
|
101
|
+
protected customComponents: Map<string, {
|
|
102
|
+
config: DataTableComponentConfig;
|
|
103
|
+
injector: Injector;
|
|
104
|
+
}>;
|
|
98
105
|
rowTemplate: TemplateRef<any>;
|
|
99
106
|
currentStart: number;
|
|
100
107
|
currentEnd: number;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit, Type, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* A helper component used to embed a component instance into the {@link ModalDialogComponent}
|
|
5
5
|
*/
|
|
6
6
|
export declare class DialogComponentOutletComponent implements OnInit {
|
|
7
7
|
private viewContainerRef;
|
|
8
|
-
private componentFactoryResolver;
|
|
9
8
|
component: Type<any>;
|
|
10
9
|
create: EventEmitter<any>;
|
|
11
|
-
constructor(viewContainerRef: ViewContainerRef
|
|
10
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
12
11
|
ngOnInit(): void;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponentOutletComponent, never>;
|
|
14
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponentOutletComponent, "vdr-dialog-component-outlet", never, { "component": { "alias": "component"; "required": false; }; }, { "create": "create"; }, never, never, false, never>;
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { CodeJar } from 'codejar';
|
|
3
4
|
import { UIExtensionLocationId } from '../../../common/component-registry-types';
|
|
4
5
|
import { DataService } from '../../../data/providers/data.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
+
type UiExtensionType = 'actionBar' | 'navMenu' | 'detailComponent' | 'dataTable';
|
|
8
|
+
export declare class UiExtensionPointComponent implements OnInit, AfterViewInit {
|
|
7
9
|
private dataService;
|
|
8
10
|
locationId: UIExtensionLocationId;
|
|
11
|
+
metadata?: any;
|
|
9
12
|
topPx: number;
|
|
10
13
|
leftPx: number;
|
|
11
14
|
display: 'block' | 'inline-block';
|
|
12
|
-
api:
|
|
15
|
+
api: UiExtensionType;
|
|
16
|
+
private editorElementRef;
|
|
17
|
+
private dropdownComponent;
|
|
13
18
|
display$: Observable<boolean>;
|
|
19
|
+
jar: CodeJar;
|
|
14
20
|
readonly isDevMode: boolean;
|
|
15
21
|
constructor(dataService: DataService);
|
|
22
|
+
getCodeTemplate(api: UiExtensionType): string;
|
|
16
23
|
ngOnInit(): void;
|
|
24
|
+
ngAfterViewInit(): void;
|
|
17
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiExtensionPointComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UiExtensionPointComponent, "vdr-ui-extension-point", never, { "locationId": { "alias": "locationId"; "required": false; }; "topPx": { "alias": "topPx"; "required": false; }; "leftPx": { "alias": "leftPx"; "required": false; }; "display": { "alias": "display"; "required": false; }; "api": { "alias": "api"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiExtensionPointComponent, "vdr-ui-extension-point", never, { "locationId": { "alias": "locationId"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; "topPx": { "alias": "topPx"; "required": false; }; "leftPx": { "alias": "leftPx"; "required": false; }; "display": { "alias": "display"; "required": false; }; "api": { "alias": "api"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
19
27
|
}
|
|
28
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FactoryProvider
|
|
2
|
-
import { FormInputComponent } from '../../common/component-registry-types';
|
|
1
|
+
import { FactoryProvider } from '@angular/core';
|
|
3
2
|
import { HtmlEditorFormInputComponent } from './code-editor-form-input/html-editor-form-input.component';
|
|
4
3
|
import { JsonEditorFormInputComponent } from './code-editor-form-input/json-editor-form-input.component';
|
|
5
4
|
import { CombinationModeFormInputComponent } from './combination-mode-form-input/combination-mode-form-input.component';
|
|
@@ -10,54 +9,6 @@ import { ProductMultiSelectorFormInputComponent } from './product-multi-selector
|
|
|
10
9
|
import { ProductSelectorFormInputComponent } from './product-selector-form-input/product-selector-form-input.component';
|
|
11
10
|
import { SelectFormInputComponent } from './select-form-input/select-form-input.component';
|
|
12
11
|
export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof JsonEditorFormInputComponent | typeof CombinationModeFormInputComponent | typeof CurrencyFormInputComponent | typeof CustomerGroupFormInputComponent | typeof PasswordFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof ProductSelectorFormInputComponent | typeof SelectFormInputComponent)[];
|
|
13
|
-
/**
|
|
14
|
-
* @description
|
|
15
|
-
* Registers a custom FormInputComponent which can be used to control the argument inputs
|
|
16
|
-
* of a {@link ConfigurableOperationDef} (e.g. CollectionFilter, ShippingMethod etc) or for
|
|
17
|
-
* a custom field.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```TypeScript
|
|
21
|
-
* \@NgModule({
|
|
22
|
-
* imports: [SharedModule],
|
|
23
|
-
* declarations: [MyCustomFieldControl],
|
|
24
|
-
* providers: [
|
|
25
|
-
* registerFormInputComponent('my-custom-input', MyCustomFieldControl),
|
|
26
|
-
* ],
|
|
27
|
-
* })
|
|
28
|
-
* export class MyUiExtensionModule {}
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* This input component can then be used in a custom field:
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```TypeScript
|
|
35
|
-
* const config = {
|
|
36
|
-
* // ...
|
|
37
|
-
* customFields: {
|
|
38
|
-
* ProductVariant: [
|
|
39
|
-
* {
|
|
40
|
-
* name: 'rrp',
|
|
41
|
-
* type: 'int',
|
|
42
|
-
* ui: { component: 'my-custom-input' },
|
|
43
|
-
* },
|
|
44
|
-
* ]
|
|
45
|
-
* }
|
|
46
|
-
* }
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* or with an argument of a {@link ConfigurableOperationDef}:
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```TypeScript
|
|
53
|
-
* args: {
|
|
54
|
-
* rrp: { type: 'int', ui: { component: 'my-custom-input' } },
|
|
55
|
-
* }
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @docsCategory custom-input-components
|
|
59
|
-
*/
|
|
60
|
-
export declare function registerFormInputComponent(id: string, component: Type<FormInputComponent>): FactoryProvider;
|
|
61
12
|
/**
|
|
62
13
|
* Registers the default form input components.
|
|
63
14
|
*/
|
package/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef,
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentRef, Injector, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, UntypedFormControl } from '@angular/forms';
|
|
4
4
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
5
5
|
import { ConfigArgDefinition, CustomFieldConfig } from '../../../common/generated-types';
|
|
@@ -15,7 +15,6 @@ type InputListItem = {
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class DynamicFormInputComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
17
17
|
private componentRegistryService;
|
|
18
|
-
private componentFactoryResolver;
|
|
19
18
|
private changeDetectorRef;
|
|
20
19
|
private injector;
|
|
21
20
|
def: ConfigArgDefinition | CustomFieldConfig;
|
|
@@ -29,11 +28,12 @@ export declare class DynamicFormInputComponent implements OnInit, OnChanges, Aft
|
|
|
29
28
|
private listId;
|
|
30
29
|
private listFormArray;
|
|
31
30
|
private componentType;
|
|
31
|
+
private componentProviders;
|
|
32
32
|
private onChange;
|
|
33
33
|
private onTouch;
|
|
34
34
|
private renderList$;
|
|
35
35
|
private destroy$;
|
|
36
|
-
constructor(componentRegistryService: ComponentRegistryService,
|
|
36
|
+
constructor(componentRegistryService: ComponentRegistryService, changeDetectorRef: ChangeDetectorRef, injector: Injector);
|
|
37
37
|
ngOnInit(): void;
|
|
38
38
|
ngAfterViewInit(): void;
|
|
39
39
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -125,30 +125,30 @@ import * as i120 from "./components/chart/chart.component";
|
|
|
125
125
|
import * as i121 from "./components/assign-to-channel-dialog/assign-to-channel-dialog.component";
|
|
126
126
|
import * as i122 from "./components/currency-code-selector/currency-code-selector.component";
|
|
127
127
|
import * as i123 from "./components/language-code-selector/language-code-selector.component";
|
|
128
|
-
import * as i124 from "./
|
|
129
|
-
import * as i125 from "./
|
|
130
|
-
import * as i126 from "./
|
|
131
|
-
import * as i127 from "./dynamic-form-inputs/
|
|
132
|
-
import * as i128 from "./dynamic-form-inputs/
|
|
133
|
-
import * as i129 from "./dynamic-form-inputs/
|
|
134
|
-
import * as i130 from "./dynamic-form-inputs/
|
|
135
|
-
import * as i131 from "./dynamic-form-inputs/
|
|
136
|
-
import * as i132 from "./dynamic-form-inputs/
|
|
137
|
-
import * as i133 from "./dynamic-form-inputs/
|
|
138
|
-
import * as i134 from "./dynamic-form-inputs/
|
|
139
|
-
import * as i135 from "./dynamic-form-inputs/
|
|
140
|
-
import * as i136 from "./dynamic-form-inputs/relation-form-input/
|
|
141
|
-
import * as i137 from "./dynamic-form-inputs/relation-form-input/
|
|
142
|
-
import * as i138 from "./dynamic-form-inputs/relation-form-input/
|
|
143
|
-
import * as i139 from "./dynamic-form-inputs/
|
|
144
|
-
import * as i140 from "./dynamic-form-inputs/
|
|
145
|
-
import * as i141 from "./dynamic-form-inputs/
|
|
146
|
-
import * as i142 from "./dynamic-form-inputs/
|
|
147
|
-
import * as i143 from "./dynamic-form-inputs/
|
|
148
|
-
import * as i144 from "./dynamic-form-inputs/
|
|
149
|
-
import * as i145 from "./
|
|
150
|
-
import * as i146 from "./
|
|
151
|
-
import * as i147 from "./
|
|
128
|
+
import * as i124 from "./components/data-table-filter-presets/data-table-filter-presets.component";
|
|
129
|
+
import * as i125 from "./components/data-table-filter-presets/add-filter-preset-button.component";
|
|
130
|
+
import * as i126 from "./components/data-table-filter-presets/rename-filter-preset-dialog.component";
|
|
131
|
+
import * as i127 from "./dynamic-form-inputs/text-form-input/text-form-input.component";
|
|
132
|
+
import * as i128 from "./dynamic-form-inputs/password-form-input/password-form-input.component";
|
|
133
|
+
import * as i129 from "./dynamic-form-inputs/number-form-input/number-form-input.component";
|
|
134
|
+
import * as i130 from "./dynamic-form-inputs/date-form-input/date-form-input.component";
|
|
135
|
+
import * as i131 from "./dynamic-form-inputs/currency-form-input/currency-form-input.component";
|
|
136
|
+
import * as i132 from "./dynamic-form-inputs/boolean-form-input/boolean-form-input.component";
|
|
137
|
+
import * as i133 from "./dynamic-form-inputs/select-form-input/select-form-input.component";
|
|
138
|
+
import * as i134 from "./dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component";
|
|
139
|
+
import * as i135 from "./dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component";
|
|
140
|
+
import * as i136 from "./dynamic-form-inputs/relation-form-input/relation-form-input.component";
|
|
141
|
+
import * as i137 from "./dynamic-form-inputs/relation-form-input/asset/relation-asset-input.component";
|
|
142
|
+
import * as i138 from "./dynamic-form-inputs/relation-form-input/product/relation-product-input.component";
|
|
143
|
+
import * as i139 from "./dynamic-form-inputs/relation-form-input/product-variant/relation-product-variant-input.component";
|
|
144
|
+
import * as i140 from "./dynamic-form-inputs/relation-form-input/customer/relation-customer-input.component";
|
|
145
|
+
import * as i141 from "./dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component";
|
|
146
|
+
import * as i142 from "./dynamic-form-inputs/textarea-form-input/textarea-form-input.component";
|
|
147
|
+
import * as i143 from "./dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component";
|
|
148
|
+
import * as i144 from "./dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component";
|
|
149
|
+
import * as i145 from "./dynamic-form-inputs/code-editor-form-input/html-editor-form-input.component";
|
|
150
|
+
import * as i146 from "./dynamic-form-inputs/product-multi-selector-form-input/product-multi-selector-form-input.component";
|
|
151
|
+
import * as i147 from "./dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component";
|
|
152
152
|
import * as i148 from "@clr/angular";
|
|
153
153
|
import * as i149 from "@angular/common";
|
|
154
154
|
import * as i150 from "@angular/forms";
|
|
@@ -161,6 +161,6 @@ import * as i156 from "@angular/cdk/drag-drop";
|
|
|
161
161
|
import * as i157 from "@angular/cdk/a11y";
|
|
162
162
|
export declare class SharedModule {
|
|
163
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
164
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.CustomFieldDescriptionPipe, typeof i61.FocalPointControlComponent, typeof i62.AssetPreviewPipe, typeof i63.LinkDialogComponent, typeof i64.ExternalImageDialogComponent, typeof i65.TimeAgoPipe, typeof i66.DurationPipe, typeof i67.EmptyPlaceholderComponent, typeof i68.TimelineEntryComponent, typeof i69.HistoryEntryDetailComponent, typeof i70.EditNoteDialogComponent, typeof i71.ProductSelectorFormInputComponent, typeof i72.StateI18nTokenPipe, typeof i73.ProductVariantSelectorComponent, typeof i74.HelpTooltipComponent, typeof i75.CustomerGroupFormInputComponent, typeof i76.AddressFormComponent, typeof i77.LocaleDatePipe, typeof i78.LocaleCurrencyPipe, typeof i79.LocaleLanguageNamePipe, typeof i80.LocaleRegionNamePipe, typeof i81.TagSelectorComponent, typeof i82.ManageTagsDialogComponent, typeof i83.RelationSelectorDialogComponent, typeof i84.RelationCardComponent, typeof i85.StatusBadgeComponent, typeof i86.TabbedCustomFieldsComponent, typeof i87.UiExtensionPointComponent, typeof i88.CustomDetailComponentHostComponent, typeof i89.AssetPreviewLinksComponent, typeof i90.ProductMultiSelectorDialogComponent, typeof i91.ProductSearchInputComponent, typeof i92.ContextMenuComponent, typeof i93.RawHtmlDialogComponent, typeof i94.BulkActionMenuComponent, typeof i95.RadioCardComponent, typeof i96.RadioCardFieldsetComponent, typeof i97.DataTable2Component, typeof i98.DataTable2ColumnComponent, typeof i99.DataTableFiltersComponent, typeof i100.DataTableFilterLabelComponent, typeof i101.DataTableColumnPickerComponent, typeof i102.DataTable2SearchComponent, typeof i103.DataTableCustomFieldColumnComponent, typeof i104.SplitViewComponent, typeof i105.SplitViewLeftDirective, typeof i105.SplitViewRightDirective, typeof i106.PageComponent, typeof i107.CustomFilterComponentDirective, typeof i108.PageHeaderComponent, typeof i109.PageTitleComponent, typeof i110.PageHeaderDescriptionComponent, typeof i111.PageHeaderTabsComponent, typeof i112.PageBodyComponent, typeof i113.PageBlockComponent, typeof i114.PageEntityInfoComponent, typeof i115.LocalizedTextComponent, typeof i116.PageDetailLayoutComponent, typeof i117.PageDetailSidebarComponent, typeof i118.CardComponent, typeof i118.CardControlsDirective, typeof i119.ZoneSelectorComponent, typeof i120.ChartComponent, typeof i121.AssignToChannelDialogComponent, typeof i122.CurrencyCodeSelectorComponent, typeof i123.LanguageCodeSelectorComponent, typeof i124.TextFormInputComponent, typeof i125.PasswordFormInputComponent, typeof i126.NumberFormInputComponent, typeof i127.DateFormInputComponent, typeof i128.CurrencyFormInputComponent, typeof i129.BooleanFormInputComponent, typeof i130.SelectFormInputComponent, typeof i131.FacetValueFormInputComponent, typeof i132.DynamicFormInputComponent, typeof i133.RelationFormInputComponent, typeof i134.RelationAssetInputComponent, typeof i135.RelationProductInputComponent, typeof i136.RelationProductVariantInputComponent, typeof i137.RelationCustomerInputComponent, typeof i84.RelationCardPreviewDirective, typeof i84.RelationCardDetailDirective, typeof i83.RelationSelectorDialogComponent, typeof i138.RelationGenericInputComponent, typeof i139.TextareaFormInputComponent, typeof i140.RichTextFormInputComponent, typeof i141.JsonEditorFormInputComponent, typeof i142.HtmlEditorFormInputComponent, typeof i143.ProductMultiSelectorFormInputComponent, typeof i144.CombinationModeFormInputComponent, typeof i145.DataTableFilterPresetsComponent, typeof i146.AddFilterPresetButtonComponent, typeof i147.RenameFilterPresetDialogComponent], [typeof i148.ClarityModule, typeof i149.CommonModule, typeof i150.FormsModule, typeof i150.ReactiveFormsModule, typeof i151.RouterModule, typeof i152.NgSelectModule, typeof i153.NgxPaginationModule, typeof i154.TranslateModule, typeof i155.OverlayModule, typeof i156.DragDropModule, typeof i157.A11yModule], [typeof i148.ClarityModule, typeof i149.CommonModule, typeof i150.FormsModule, typeof i150.ReactiveFormsModule, typeof i151.RouterModule, typeof i152.NgSelectModule, typeof i153.NgxPaginationModule, typeof i154.TranslateModule, typeof i155.OverlayModule, typeof i156.DragDropModule, typeof i157.A11yModule, typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.CustomFieldDescriptionPipe, typeof i61.FocalPointControlComponent, typeof i62.AssetPreviewPipe, typeof i63.LinkDialogComponent, typeof i64.ExternalImageDialogComponent, typeof i65.TimeAgoPipe, typeof i66.DurationPipe, typeof i67.EmptyPlaceholderComponent, typeof i68.TimelineEntryComponent, typeof i69.HistoryEntryDetailComponent, typeof i70.EditNoteDialogComponent, typeof i71.ProductSelectorFormInputComponent, typeof i72.StateI18nTokenPipe, typeof i73.ProductVariantSelectorComponent, typeof i74.HelpTooltipComponent, typeof i75.CustomerGroupFormInputComponent, typeof i76.AddressFormComponent, typeof i77.LocaleDatePipe, typeof i78.LocaleCurrencyPipe, typeof i79.LocaleLanguageNamePipe, typeof i80.LocaleRegionNamePipe, typeof i81.TagSelectorComponent, typeof i82.ManageTagsDialogComponent, typeof i83.RelationSelectorDialogComponent, typeof i84.RelationCardComponent, typeof i85.StatusBadgeComponent, typeof i86.TabbedCustomFieldsComponent, typeof i87.UiExtensionPointComponent, typeof i88.CustomDetailComponentHostComponent, typeof i89.AssetPreviewLinksComponent, typeof i90.ProductMultiSelectorDialogComponent, typeof i91.ProductSearchInputComponent, typeof i92.ContextMenuComponent, typeof i93.RawHtmlDialogComponent, typeof i94.BulkActionMenuComponent, typeof i95.RadioCardComponent, typeof i96.RadioCardFieldsetComponent, typeof i97.DataTable2Component, typeof i98.DataTable2ColumnComponent, typeof i99.DataTableFiltersComponent, typeof i100.DataTableFilterLabelComponent, typeof i101.DataTableColumnPickerComponent, typeof i102.DataTable2SearchComponent, typeof i103.DataTableCustomFieldColumnComponent, typeof i104.SplitViewComponent, typeof i105.SplitViewLeftDirective, typeof i105.SplitViewRightDirective, typeof i106.PageComponent, typeof i107.CustomFilterComponentDirective, typeof i108.PageHeaderComponent, typeof i109.PageTitleComponent, typeof i110.PageHeaderDescriptionComponent, typeof i111.PageHeaderTabsComponent, typeof i112.PageBodyComponent, typeof i113.PageBlockComponent, typeof i114.PageEntityInfoComponent, typeof i115.LocalizedTextComponent, typeof i116.PageDetailLayoutComponent, typeof i117.PageDetailSidebarComponent, typeof i118.CardComponent, typeof i118.CardControlsDirective, typeof i119.ZoneSelectorComponent, typeof i120.ChartComponent, typeof i121.AssignToChannelDialogComponent, typeof i122.CurrencyCodeSelectorComponent, typeof i123.LanguageCodeSelectorComponent, typeof i124.TextFormInputComponent, typeof i125.PasswordFormInputComponent, typeof i126.NumberFormInputComponent, typeof i127.DateFormInputComponent, typeof i128.CurrencyFormInputComponent, typeof i129.BooleanFormInputComponent, typeof i130.SelectFormInputComponent, typeof i131.FacetValueFormInputComponent, typeof i132.DynamicFormInputComponent, typeof i133.RelationFormInputComponent, typeof i134.RelationAssetInputComponent, typeof i135.RelationProductInputComponent, typeof i136.RelationProductVariantInputComponent, typeof i137.RelationCustomerInputComponent, typeof i84.RelationCardPreviewDirective, typeof i84.RelationCardDetailDirective, typeof i83.RelationSelectorDialogComponent, typeof i138.RelationGenericInputComponent, typeof i139.TextareaFormInputComponent, typeof i140.RichTextFormInputComponent, typeof i141.JsonEditorFormInputComponent, typeof i142.HtmlEditorFormInputComponent, typeof i143.ProductMultiSelectorFormInputComponent, typeof i144.CombinationModeFormInputComponent]>;
|
|
164
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.CustomFieldDescriptionPipe, typeof i61.FocalPointControlComponent, typeof i62.AssetPreviewPipe, typeof i63.LinkDialogComponent, typeof i64.ExternalImageDialogComponent, typeof i65.TimeAgoPipe, typeof i66.DurationPipe, typeof i67.EmptyPlaceholderComponent, typeof i68.TimelineEntryComponent, typeof i69.HistoryEntryDetailComponent, typeof i70.EditNoteDialogComponent, typeof i71.ProductSelectorFormInputComponent, typeof i72.StateI18nTokenPipe, typeof i73.ProductVariantSelectorComponent, typeof i74.HelpTooltipComponent, typeof i75.CustomerGroupFormInputComponent, typeof i76.AddressFormComponent, typeof i77.LocaleDatePipe, typeof i78.LocaleCurrencyPipe, typeof i79.LocaleLanguageNamePipe, typeof i80.LocaleRegionNamePipe, typeof i81.TagSelectorComponent, typeof i82.ManageTagsDialogComponent, typeof i83.RelationSelectorDialogComponent, typeof i84.RelationCardComponent, typeof i85.StatusBadgeComponent, typeof i86.TabbedCustomFieldsComponent, typeof i87.UiExtensionPointComponent, typeof i88.CustomDetailComponentHostComponent, typeof i89.AssetPreviewLinksComponent, typeof i90.ProductMultiSelectorDialogComponent, typeof i91.ProductSearchInputComponent, typeof i92.ContextMenuComponent, typeof i93.RawHtmlDialogComponent, typeof i94.BulkActionMenuComponent, typeof i95.RadioCardComponent, typeof i96.RadioCardFieldsetComponent, typeof i97.DataTable2Component, typeof i98.DataTable2ColumnComponent, typeof i99.DataTableFiltersComponent, typeof i100.DataTableFilterLabelComponent, typeof i101.DataTableColumnPickerComponent, typeof i102.DataTable2SearchComponent, typeof i103.DataTableCustomFieldColumnComponent, typeof i104.SplitViewComponent, typeof i105.SplitViewLeftDirective, typeof i105.SplitViewRightDirective, typeof i106.PageComponent, typeof i107.CustomFilterComponentDirective, typeof i108.PageHeaderComponent, typeof i109.PageTitleComponent, typeof i110.PageHeaderDescriptionComponent, typeof i111.PageHeaderTabsComponent, typeof i112.PageBodyComponent, typeof i113.PageBlockComponent, typeof i114.PageEntityInfoComponent, typeof i115.LocalizedTextComponent, typeof i116.PageDetailLayoutComponent, typeof i117.PageDetailSidebarComponent, typeof i118.CardComponent, typeof i118.CardControlsDirective, typeof i119.ZoneSelectorComponent, typeof i120.ChartComponent, typeof i121.AssignToChannelDialogComponent, typeof i122.CurrencyCodeSelectorComponent, typeof i123.LanguageCodeSelectorComponent, typeof i124.DataTableFilterPresetsComponent, typeof i125.AddFilterPresetButtonComponent, typeof i126.RenameFilterPresetDialogComponent, typeof i127.TextFormInputComponent, typeof i128.PasswordFormInputComponent, typeof i129.NumberFormInputComponent, typeof i130.DateFormInputComponent, typeof i131.CurrencyFormInputComponent, typeof i132.BooleanFormInputComponent, typeof i133.SelectFormInputComponent, typeof i134.FacetValueFormInputComponent, typeof i135.DynamicFormInputComponent, typeof i136.RelationFormInputComponent, typeof i137.RelationAssetInputComponent, typeof i138.RelationProductInputComponent, typeof i139.RelationProductVariantInputComponent, typeof i140.RelationCustomerInputComponent, typeof i84.RelationCardPreviewDirective, typeof i84.RelationCardDetailDirective, typeof i83.RelationSelectorDialogComponent, typeof i141.RelationGenericInputComponent, typeof i142.TextareaFormInputComponent, typeof i143.RichTextFormInputComponent, typeof i144.JsonEditorFormInputComponent, typeof i145.HtmlEditorFormInputComponent, typeof i146.ProductMultiSelectorFormInputComponent, typeof i147.CombinationModeFormInputComponent], [typeof i148.ClarityModule, typeof i149.CommonModule, typeof i150.FormsModule, typeof i150.ReactiveFormsModule, typeof i151.RouterModule, typeof i152.NgSelectModule, typeof i153.NgxPaginationModule, typeof i154.TranslateModule, typeof i155.OverlayModule, typeof i156.DragDropModule, typeof i157.A11yModule], [typeof i148.ClarityModule, typeof i149.CommonModule, typeof i150.FormsModule, typeof i150.ReactiveFormsModule, typeof i151.RouterModule, typeof i152.NgSelectModule, typeof i153.NgxPaginationModule, typeof i154.TranslateModule, typeof i155.OverlayModule, typeof i156.DragDropModule, typeof i157.A11yModule, typeof i1.ActionBarComponent, typeof i1.ActionBarLeftComponent, typeof i1.ActionBarRightComponent, typeof i2.AssetPreviewComponent, typeof i3.AssetPreviewDialogComponent, typeof i4.AssetSearchInputComponent, typeof i5.ConfigurableInputComponent, typeof i6.AffixedInputComponent, typeof i7.ChipComponent, typeof i8.CurrencyInputComponent, typeof i9.LocaleCurrencyNamePipe, typeof i10.CustomerLabelComponent, typeof i11.CustomFieldControlComponent, typeof i12.DataTableComponent, typeof i13.DataTableColumnComponent, typeof i14.FacetValueSelectorComponent, typeof i15.ItemsPerPageControlsComponent, typeof i16.PaginationControlsComponent, typeof i17.TableRowActionComponent, typeof i18.FacetValueChipComponent, typeof i19.FileSizePipe, typeof i20.FormFieldComponent, typeof i21.FormFieldControlDirective, typeof i22.FormItemComponent, typeof i23.ModalDialogComponent, typeof i24.PercentageSuffixInputComponent, typeof i25.DialogComponentOutletComponent, typeof i26.DialogButtonsDirective, typeof i27.DialogTitleDirective, typeof i28.SelectToggleComponent, typeof i29.LanguageSelectorComponent, typeof i30.RichTextEditorComponent, typeof i31.SimpleDialogComponent, typeof i32.TitleInputComponent, typeof i33.SentenceCasePipe, typeof i34.DropdownComponent, typeof i35.DropdownMenuComponent, typeof i36.SortPipe, typeof i37.DropdownTriggerDirective, typeof i38.DropdownItemDirective, typeof i39.OrderStateLabelComponent, typeof i40.FormattedAddressComponent, typeof i41.LabeledDataComponent, typeof i42.StringToColorPipe, typeof i43.ObjectTreeComponent, typeof i44.IfPermissionsDirective, typeof i45.IfMultichannelDirective, typeof i46.HasPermissionPipe, typeof i47.ActionBarItemsComponent, typeof i48.DisabledDirective, typeof i49.AssetFileInputComponent, typeof i50.AssetGalleryComponent, typeof i51.AssetPickerDialogComponent, typeof i52.EntityInfoComponent, typeof i53.DatetimePickerComponent, typeof i54.ChannelBadgeComponent, typeof i55.ChannelAssignmentControlComponent, typeof i56.ChannelLabelPipe, typeof i57.IfDefaultChannelActiveDirective, typeof i58.ExtensionHostComponent, typeof i59.CustomFieldLabelPipe, typeof i60.CustomFieldDescriptionPipe, typeof i61.FocalPointControlComponent, typeof i62.AssetPreviewPipe, typeof i63.LinkDialogComponent, typeof i64.ExternalImageDialogComponent, typeof i65.TimeAgoPipe, typeof i66.DurationPipe, typeof i67.EmptyPlaceholderComponent, typeof i68.TimelineEntryComponent, typeof i69.HistoryEntryDetailComponent, typeof i70.EditNoteDialogComponent, typeof i71.ProductSelectorFormInputComponent, typeof i72.StateI18nTokenPipe, typeof i73.ProductVariantSelectorComponent, typeof i74.HelpTooltipComponent, typeof i75.CustomerGroupFormInputComponent, typeof i76.AddressFormComponent, typeof i77.LocaleDatePipe, typeof i78.LocaleCurrencyPipe, typeof i79.LocaleLanguageNamePipe, typeof i80.LocaleRegionNamePipe, typeof i81.TagSelectorComponent, typeof i82.ManageTagsDialogComponent, typeof i83.RelationSelectorDialogComponent, typeof i84.RelationCardComponent, typeof i85.StatusBadgeComponent, typeof i86.TabbedCustomFieldsComponent, typeof i87.UiExtensionPointComponent, typeof i88.CustomDetailComponentHostComponent, typeof i89.AssetPreviewLinksComponent, typeof i90.ProductMultiSelectorDialogComponent, typeof i91.ProductSearchInputComponent, typeof i92.ContextMenuComponent, typeof i93.RawHtmlDialogComponent, typeof i94.BulkActionMenuComponent, typeof i95.RadioCardComponent, typeof i96.RadioCardFieldsetComponent, typeof i97.DataTable2Component, typeof i98.DataTable2ColumnComponent, typeof i99.DataTableFiltersComponent, typeof i100.DataTableFilterLabelComponent, typeof i101.DataTableColumnPickerComponent, typeof i102.DataTable2SearchComponent, typeof i103.DataTableCustomFieldColumnComponent, typeof i104.SplitViewComponent, typeof i105.SplitViewLeftDirective, typeof i105.SplitViewRightDirective, typeof i106.PageComponent, typeof i107.CustomFilterComponentDirective, typeof i108.PageHeaderComponent, typeof i109.PageTitleComponent, typeof i110.PageHeaderDescriptionComponent, typeof i111.PageHeaderTabsComponent, typeof i112.PageBodyComponent, typeof i113.PageBlockComponent, typeof i114.PageEntityInfoComponent, typeof i115.LocalizedTextComponent, typeof i116.PageDetailLayoutComponent, typeof i117.PageDetailSidebarComponent, typeof i118.CardComponent, typeof i118.CardControlsDirective, typeof i119.ZoneSelectorComponent, typeof i120.ChartComponent, typeof i121.AssignToChannelDialogComponent, typeof i122.CurrencyCodeSelectorComponent, typeof i123.LanguageCodeSelectorComponent, typeof i124.DataTableFilterPresetsComponent, typeof i125.AddFilterPresetButtonComponent, typeof i126.RenameFilterPresetDialogComponent, typeof i127.TextFormInputComponent, typeof i128.PasswordFormInputComponent, typeof i129.NumberFormInputComponent, typeof i130.DateFormInputComponent, typeof i131.CurrencyFormInputComponent, typeof i132.BooleanFormInputComponent, typeof i133.SelectFormInputComponent, typeof i134.FacetValueFormInputComponent, typeof i135.DynamicFormInputComponent, typeof i136.RelationFormInputComponent, typeof i137.RelationAssetInputComponent, typeof i138.RelationProductInputComponent, typeof i139.RelationProductVariantInputComponent, typeof i140.RelationCustomerInputComponent, typeof i84.RelationCardPreviewDirective, typeof i84.RelationCardDetailDirective, typeof i83.RelationSelectorDialogComponent, typeof i141.RelationGenericInputComponent, typeof i142.TextareaFormInputComponent, typeof i143.RichTextFormInputComponent, typeof i144.JsonEditorFormInputComponent, typeof i145.HtmlEditorFormInputComponent, typeof i146.ProductMultiSelectorFormInputComponent, typeof i147.CombinationModeFormInputComponent]>;
|
|
165
165
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
166
166
|
}
|
|
@@ -21,7 +21,9 @@ export declare class CustomerDetailComponent extends TypedBaseDetailComponent<ty
|
|
|
21
21
|
phoneNumber: import("@angular/forms").FormControl<string | null>;
|
|
22
22
|
emailAddress: import("@angular/forms").FormControl<string | null>;
|
|
23
23
|
password: import("@angular/forms").FormControl<string | null>;
|
|
24
|
-
customFields: import("@angular/forms").FormGroup<{
|
|
24
|
+
customFields: import("@angular/forms").FormGroup<{
|
|
25
|
+
[x: string]: import("@angular/forms").FormControl<false | "" | 0 | Date | null>;
|
|
26
|
+
}>;
|
|
25
27
|
}>;
|
|
26
28
|
addresses: import("@angular/forms").FormArray<any>;
|
|
27
29
|
}>;
|
|
@@ -12,7 +12,9 @@ export declare class CustomerGroupDetailComponent extends TypedBaseDetailCompone
|
|
|
12
12
|
customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
13
13
|
detailForm: import("@angular/forms").FormGroup<{
|
|
14
14
|
name: import("@angular/forms").FormControl<string | null>;
|
|
15
|
-
customFields: import("@angular/forms").FormGroup<{
|
|
15
|
+
customFields: import("@angular/forms").FormGroup<{
|
|
16
|
+
[x: string]: import("@angular/forms").FormControl<false | "" | 0 | Date | null>;
|
|
17
|
+
}>;
|
|
16
18
|
}>;
|
|
17
19
|
constructor(formBuilder: FormBuilder, dataService: DataService, modalService: ModalService, notificationService: NotificationService);
|
|
18
20
|
ngOnInit(): void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { CustomerFragment, CustomerHistoryEntryComponent, HistoryEntryComponentService, TimelineHistoryEntry } from '@vendure/admin-ui/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CustomerHistoryEntryHostComponent implements OnInit, OnDestroy {
|
|
5
|
-
private componentFactoryResolver;
|
|
6
5
|
private historyEntryComponentService;
|
|
7
6
|
entry: TimelineHistoryEntry;
|
|
8
7
|
customer: CustomerFragment;
|
|
@@ -11,7 +10,7 @@ export declare class CustomerHistoryEntryHostComponent implements OnInit, OnDest
|
|
|
11
10
|
portalRef: ViewContainerRef;
|
|
12
11
|
instance: CustomerHistoryEntryComponent;
|
|
13
12
|
private componentRef;
|
|
14
|
-
constructor(
|
|
13
|
+
constructor(historyEntryComponentService: HistoryEntryComponentService);
|
|
15
14
|
ngOnInit(): void;
|
|
16
15
|
ngOnDestroy(): void;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerHistoryEntryHostComponent, never>;
|
|
@@ -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
|
+
readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
|
|
6
7
|
readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").CustomerFilterParameter>;
|
|
7
8
|
readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").CustomerSortParameter, ["createdAt", "updatedAt", "lastName", "emailAddress"]>;
|
|
8
9
|
constructor();
|