@vendure/admin-ui 1.3.4 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/vendure-admin-ui-catalog.umd.js +87 -162
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +2022 -404
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +79 -57
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-marketing.umd.js +11 -1
- package/bundles/vendure-admin-ui-marketing.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +10 -2
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +156 -153
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/catalog/components/collection-detail/collection-detail.component.d.ts +0 -1
- package/catalog/components/collection-list/collection-list.component.d.ts +3 -0
- package/catalog/components/facet-detail/facet-detail.component.d.ts +0 -1
- package/catalog/components/facet-list/facet-list.component.d.ts +3 -5
- package/catalog/components/product-detail/product-detail.component.d.ts +0 -1
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/app.component.d.ts +1 -0
- package/core/common/base-detail.component.d.ts +42 -1
- package/core/common/base-entity-resolver.d.ts +28 -1
- package/core/common/base-list.component.d.ts +75 -1
- package/core/common/component-registry-types.d.ts +46 -0
- package/core/common/generated-types.d.ts +282 -23
- package/core/common/utilities/get-default-ui-language.d.ts +1 -0
- package/core/common/version.d.ts +1 -1
- package/core/components/app-shell/app-shell.component.d.ts +1 -1
- package/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.d.ts +17 -4
- package/core/components/user-menu/user-menu.component.d.ts +1 -1
- package/core/data/client-state/client-defaults.d.ts +1 -1
- package/core/data/definitions/client-definitions.d.ts +3 -1
- package/core/data/definitions/customer-definitions.d.ts +1 -0
- package/core/data/definitions/settings-definitions.d.ts +1 -0
- package/core/data/providers/client-data.service.d.ts +3 -1
- package/core/data/providers/data.service.d.ts +54 -12
- package/core/data/providers/settings-data.service.d.ts +3 -0
- package/core/data/query-result.d.ts +11 -2
- package/core/providers/custom-detail-component/custom-detail-component-types.d.ts +25 -0
- package/core/providers/custom-detail-component/custom-detail-component.service.d.ts +15 -0
- package/core/providers/custom-field-component/custom-field-component.service.d.ts +3 -3
- package/core/providers/local-storage/local-storage.service.d.ts +1 -0
- package/core/providers/modal/modal.service.d.ts +41 -12
- package/core/providers/nav-builder/nav-builder-types.d.ts +19 -1
- package/core/providers/nav-builder/nav-builder.service.d.ts +14 -10
- package/core/providers/notification/notification.service.d.ts +37 -0
- package/core/public_api.d.ts +8 -0
- package/core/shared/components/action-bar-items/action-bar-items.component.d.ts +2 -1
- package/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.d.ts +18 -0
- package/core/shared/components/asset-preview/asset-preview.component.d.ts +0 -1
- package/core/shared/components/chip/chip.component.d.ts +20 -0
- package/core/shared/components/currency-input/currency-input.component.d.ts +11 -0
- package/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.d.ts +17 -0
- package/core/shared/components/data-table/data-table.component.d.ts +59 -0
- package/core/shared/components/datetime-picker/datetime-picker.component.d.ts +17 -0
- package/core/shared/components/dropdown/dropdown.component.d.ts +25 -0
- package/core/shared/components/extension-host/extension-host.service.d.ts +3 -1
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +22 -0
- package/core/shared/components/modal-dialog/modal-dialog.component.d.ts +1 -1
- package/core/shared/components/object-tree/object-tree.component.d.ts +8 -0
- package/core/shared/components/order-state-label/order-state-label.component.d.ts +10 -0
- package/core/shared/components/product-selector/product-selector.component.d.ts +12 -0
- package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +12 -1
- package/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.d.ts +21 -0
- package/core/shared/components/ui-extension-point/ui-extension-point.component.d.ts +15 -0
- package/core/shared/directives/if-multichannel.directive.d.ts +14 -0
- package/core/shared/directives/if-permissions.directive.d.ts +3 -0
- package/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.d.ts +7 -0
- package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +32 -0
- package/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.d.ts +7 -0
- package/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.d.ts +8 -0
- package/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.d.ts +10 -0
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +8 -0
- package/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.d.ts +12 -0
- package/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.d.ts +7 -0
- package/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.d.ts +8 -0
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +40 -3
- package/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.d.ts +9 -0
- package/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.d.ts +16 -0
- package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +9 -0
- package/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.d.ts +12 -3
- package/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.d.ts +7 -0
- package/core/shared/pipes/asset-preview.pipe.d.ts +14 -0
- package/core/shared/pipes/duration.pipe.d.ts +8 -0
- package/core/shared/pipes/file-size.pipe.d.ts +8 -0
- package/core/shared/pipes/has-permission.pipe.d.ts +3 -1
- package/core/shared/pipes/locale-currency-name.pipe.d.ts +8 -0
- package/core/shared/pipes/locale-currency.pipe.d.ts +12 -0
- package/core/shared/pipes/locale-date.pipe.d.ts +7 -0
- package/core/shared/pipes/locale-language-name.pipe.d.ts +9 -1
- package/core/shared/pipes/locale-region-name.pipe.d.ts +18 -0
- package/core/shared/pipes/time-ago.pipe.d.ts +8 -0
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-detail/customer-detail.component.d.ts +2 -3
- package/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.d.ts +14 -3
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +29 -28
- package/esm2015/catalog/components/asset-detail/asset-detail.component.js +2 -10
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +3 -16
- package/esm2015/catalog/components/collection-list/collection-list.component.js +23 -5
- package/esm2015/catalog/components/facet-detail/facet-detail.component.js +3 -15
- package/esm2015/catalog/components/facet-list/facet-list.component.js +24 -9
- package/esm2015/catalog/components/product-assets/product-assets.component.js +2 -2
- package/esm2015/catalog/components/product-detail/product-detail.component.js +5 -27
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +3 -3
- package/esm2015/catalog/components/update-product-option-dialog/update-product-option-dialog.component.js +2 -2
- package/esm2015/catalog/components/variant-price-detail/variant-price-detail.component.js +2 -2
- package/esm2015/core/app.component.js +20 -2
- package/esm2015/core/common/base-detail.component.js +53 -1
- package/esm2015/core/common/base-entity-resolver.js +29 -2
- package/esm2015/core/common/base-list.component.js +76 -2
- package/esm2015/core/common/component-registry-types.js +1 -1
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +249 -183
- package/esm2015/core/common/utilities/get-default-ui-language.js +9 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/components/app-shell/app-shell.component.js +12 -7
- package/esm2015/core/components/main-nav/main-nav.component.js +2 -2
- package/esm2015/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.js +281 -5
- package/esm2015/core/components/user-menu/user-menu.component.js +3 -3
- package/esm2015/core/data/client-state/client-defaults.js +5 -2
- package/esm2015/core/data/client-state/client-resolvers.js +32 -33
- package/esm2015/core/data/definitions/client-definitions.js +18 -3
- package/esm2015/core/data/definitions/customer-definitions.js +21 -25
- package/esm2015/core/data/definitions/settings-definitions.js +50 -5
- package/esm2015/core/data/providers/client-data.service.js +15 -4
- package/esm2015/core/data/providers/data.service.js +44 -2
- package/esm2015/core/data/providers/settings-data.service.js +12 -4
- package/esm2015/core/data/query-result.js +14 -4
- package/esm2015/core/providers/custom-detail-component/custom-detail-component-types.js +2 -0
- package/esm2015/core/providers/custom-detail-component/custom-detail-component.service.js +44 -0
- package/esm2015/core/providers/custom-field-component/custom-field-component.service.js +6 -6
- package/esm2015/core/providers/local-storage/local-storage.service.js +1 -1
- package/esm2015/core/providers/modal/modal.service.js +20 -12
- package/esm2015/core/providers/nav-builder/nav-builder-types.js +1 -1
- package/esm2015/core/providers/nav-builder/nav-builder.service.js +15 -11
- package/esm2015/core/providers/notification/notification.service.js +24 -1
- package/esm2015/core/public_api.js +9 -1
- package/esm2015/core/shared/components/action-bar/action-bar.component.js +1 -1
- package/esm2015/core/shared/components/action-bar-items/action-bar-items.component.js +3 -3
- package/esm2015/core/shared/components/address-form/address-form.component.js +2 -2
- package/esm2015/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.js +19 -1
- package/esm2015/core/shared/components/asset-preview/asset-preview.component.js +2 -6
- package/esm2015/core/shared/components/chip/chip.component.js +12 -1
- package/esm2015/core/shared/components/currency-input/currency-input.component.js +12 -1
- package/esm2015/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.js +44 -0
- package/esm2015/core/shared/components/data-table/data-table.component.js +60 -1
- package/esm2015/core/shared/components/datetime-picker/datetime-picker.component.js +17 -1
- package/esm2015/core/shared/components/dropdown/dropdown.component.js +26 -1
- package/esm2015/core/shared/components/extension-host/extension-host.component.js +3 -3
- package/esm2015/core/shared/components/extension-host/extension-host.service.js +16 -2
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +23 -1
- package/esm2015/core/shared/components/modal-dialog/modal-dialog.component.js +2 -2
- package/esm2015/core/shared/components/object-tree/object-tree.component.js +9 -1
- package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +11 -1
- package/esm2015/core/shared/components/product-selector/product-selector.component.js +13 -1
- package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +14 -3
- package/esm2015/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +48 -0
- package/esm2015/core/shared/components/title-input/title-input.component.js +1 -1
- package/esm2015/core/shared/components/ui-extension-point/ui-extension-point.component.js +31 -0
- package/esm2015/core/shared/directives/if-multichannel.directive.js +15 -1
- package/esm2015/core/shared/directives/if-permissions.directive.js +4 -1
- package/esm2015/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.js +8 -1
- package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +125 -0
- package/esm2015/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.js +8 -1
- package/esm2015/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.js +9 -1
- package/esm2015/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.js +21 -2
- package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +4 -3
- package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +9 -1
- package/esm2015/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.js +29 -2
- package/esm2015/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.js +8 -1
- package/esm2015/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.js +9 -1
- package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +42 -2
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +10 -1
- package/esm2015/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.js +20 -0
- package/esm2015/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +14 -2
- package/esm2015/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.js +17 -2
- package/esm2015/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.js +8 -1
- package/esm2015/core/shared/pipes/asset-preview.pipe.js +15 -1
- package/esm2015/core/shared/pipes/duration.pipe.js +9 -1
- package/esm2015/core/shared/pipes/file-size.pipe.js +9 -1
- package/esm2015/core/shared/pipes/has-permission.pipe.js +4 -2
- package/esm2015/core/shared/pipes/locale-base.pipe.js +7 -4
- package/esm2015/core/shared/pipes/locale-currency-name.pipe.js +9 -1
- package/esm2015/core/shared/pipes/locale-currency.pipe.js +13 -1
- package/esm2015/core/shared/pipes/locale-date.pipe.js +8 -1
- package/esm2015/core/shared/pipes/locale-language-name.pipe.js +10 -2
- package/esm2015/core/shared/pipes/locale-region-name.pipe.js +48 -0
- package/esm2015/core/shared/pipes/time-ago.pipe.js +9 -1
- package/esm2015/core/shared/shared.module.js +13 -1
- package/esm2015/customer/components/customer-detail/customer-detail.component.js +5 -16
- package/esm2015/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.js +32 -3
- package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +22 -18
- package/esm2015/marketing/components/promotion-detail/promotion-detail.component.js +9 -2
- package/esm2015/order/components/order-detail/order-detail.component.js +11 -3
- package/esm2015/settings/components/admin-detail/admin-detail.component.js +3 -14
- package/esm2015/settings/components/channel-detail/channel-detail.component.js +3 -14
- package/esm2015/settings/components/country-detail/country-detail.component.js +11 -3
- package/esm2015/settings/components/country-list/country-list.component.js +19 -7
- package/esm2015/settings/components/global-settings/global-settings.component.js +3 -14
- package/esm2015/settings/components/payment-method-detail/payment-method-detail.component.js +9 -2
- package/esm2015/settings/components/profile/profile.component.js +3 -14
- package/esm2015/settings/components/shipping-method-detail/shipping-method-detail.component.js +3 -16
- package/esm2015/settings/components/tax-category-detail/tax-category-detail.component.js +13 -3
- package/esm2015/settings/components/tax-rate-detail/tax-rate-detail.component.js +9 -2
- package/esm2015/settings/components/zone-detail-dialog/zone-detail-dialog.component.js +32 -3
- package/esm2015/settings/components/zone-list/zone-list.component.js +19 -8
- package/fesm2015/vendure-admin-ui-catalog.js +83 -102
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +1865 -341
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +54 -34
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-marketing.js +8 -1
- package/fesm2015/vendure-admin-ui-marketing.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +10 -2
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +110 -85
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/marketing/components/promotion-detail/promotion-detail.component.d.ts +2 -1
- package/marketing/vendure-admin-ui-marketing.metadata.json +1 -1
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +6 -5
- package/settings/components/admin-detail/admin-detail.component.d.ts +0 -1
- package/settings/components/channel-detail/channel-detail.component.d.ts +0 -1
- package/settings/components/country-detail/country-detail.component.d.ts +2 -1
- package/settings/components/country-list/country-list.component.d.ts +7 -2
- package/settings/components/global-settings/global-settings.component.d.ts +0 -1
- package/settings/components/payment-method-detail/payment-method-detail.component.d.ts +2 -1
- package/settings/components/profile/profile.component.d.ts +0 -1
- package/settings/components/shipping-method-detail/shipping-method-detail.component.d.ts +0 -1
- package/settings/components/tax-category-detail/tax-category-detail.component.d.ts +2 -1
- package/settings/components/tax-rate-detail/tax-rate-detail.component.d.ts +2 -1
- package/settings/components/zone-detail-dialog/zone-detail-dialog.component.d.ts +14 -3
- package/settings/components/zone-list/zone-list.component.d.ts +6 -2
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
- package/static/i18n-messages/cs.json +7 -0
- package/static/i18n-messages/de.json +7 -0
- package/static/i18n-messages/en.json +7 -0
- package/static/i18n-messages/es.json +8 -1
- package/static/i18n-messages/fr.json +7 -0
- package/static/i18n-messages/it.json +7 -0
- package/static/i18n-messages/pl.json +7 -0
- package/static/i18n-messages/pt_BR.json +7 -0
- package/static/i18n-messages/pt_PT.json +7 -0
- package/static/i18n-messages/ru.json +7 -0
- package/static/i18n-messages/uk.json +7 -0
- package/static/i18n-messages/zh_Hans.json +7 -0
- package/static/i18n-messages/zh_Hant.json +7 -0
- package/static/styles/global/_utilities.scss +3 -1
- package/static/styles/theme/dark.scss +9 -0
- package/static/styles/theme/default.scss +8 -0
- package/static/theme.min.css +1 -1
package/core/public_api.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export * from './data/utils/remove-readonly-custom-fields';
|
|
|
69
69
|
export * from './data/utils/transform-relation-custom-field-inputs';
|
|
70
70
|
export * from './providers/auth/auth.service';
|
|
71
71
|
export * from './providers/component-registry/component-registry.service';
|
|
72
|
+
export * from './providers/custom-detail-component/custom-detail-component-types';
|
|
73
|
+
export * from './providers/custom-detail-component/custom-detail-component.service';
|
|
72
74
|
export * from './providers/custom-field-component/custom-field-component.service';
|
|
73
75
|
export * from './providers/dashboard-widget/dashboard-widget-types';
|
|
74
76
|
export * from './providers/dashboard-widget/dashboard-widget.service';
|
|
@@ -101,6 +103,7 @@ export * from './shared/components/channel-badge/channel-badge.component';
|
|
|
101
103
|
export * from './shared/components/chip/chip.component';
|
|
102
104
|
export * from './shared/components/configurable-input/configurable-input.component';
|
|
103
105
|
export * from './shared/components/currency-input/currency-input.component';
|
|
106
|
+
export * from './shared/components/custom-detail-component-host/custom-detail-component-host.component';
|
|
104
107
|
export * from './shared/components/custom-field-control/custom-field-control.component';
|
|
105
108
|
export * from './shared/components/customer-label/customer-label.component';
|
|
106
109
|
export * from './shared/components/data-table/data-table-column.component';
|
|
@@ -157,16 +160,19 @@ export * from './shared/components/rich-text-editor/rich-text-editor.component';
|
|
|
157
160
|
export * from './shared/components/select-toggle/select-toggle.component';
|
|
158
161
|
export * from './shared/components/simple-dialog/simple-dialog.component';
|
|
159
162
|
export * from './shared/components/status-badge/status-badge.component';
|
|
163
|
+
export * from './shared/components/tabbed-custom-fields/tabbed-custom-fields.component';
|
|
160
164
|
export * from './shared/components/table-row-action/table-row-action.component';
|
|
161
165
|
export * from './shared/components/tag-selector/tag-selector.component';
|
|
162
166
|
export * from './shared/components/timeline-entry/timeline-entry.component';
|
|
163
167
|
export * from './shared/components/title-input/title-input.component';
|
|
168
|
+
export * from './shared/components/ui-extension-point/ui-extension-point.component';
|
|
164
169
|
export * from './shared/directives/disabled.directive';
|
|
165
170
|
export * from './shared/directives/if-default-channel-active.directive';
|
|
166
171
|
export * from './shared/directives/if-directive-base';
|
|
167
172
|
export * from './shared/directives/if-multichannel.directive';
|
|
168
173
|
export * from './shared/directives/if-permissions.directive';
|
|
169
174
|
export * from './shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component';
|
|
175
|
+
export * from './shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component';
|
|
170
176
|
export * from './shared/dynamic-form-inputs/currency-form-input/currency-form-input.component';
|
|
171
177
|
export * from './shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component';
|
|
172
178
|
export * from './shared/dynamic-form-inputs/date-form-input/date-form-input.component';
|
|
@@ -183,6 +189,7 @@ export * from './shared/dynamic-form-inputs/relation-form-input/product-variant/
|
|
|
183
189
|
export * from './shared/dynamic-form-inputs/relation-form-input/relation-card/relation-card.component';
|
|
184
190
|
export * from './shared/dynamic-form-inputs/relation-form-input/relation-form-input.component';
|
|
185
191
|
export * from './shared/dynamic-form-inputs/relation-form-input/relation-selector-dialog/relation-selector-dialog.component';
|
|
192
|
+
export * from './shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component';
|
|
186
193
|
export * from './shared/dynamic-form-inputs/select-form-input/select-form-input.component';
|
|
187
194
|
export * from './shared/dynamic-form-inputs/text-form-input/text-form-input.component';
|
|
188
195
|
export * from './shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component';
|
|
@@ -197,6 +204,7 @@ export * from './shared/pipes/locale-currency-name.pipe';
|
|
|
197
204
|
export * from './shared/pipes/locale-currency.pipe';
|
|
198
205
|
export * from './shared/pipes/locale-date.pipe';
|
|
199
206
|
export * from './shared/pipes/locale-language-name.pipe';
|
|
207
|
+
export * from './shared/pipes/locale-region-name.pipe';
|
|
200
208
|
export * from './shared/pipes/sentence-case.pipe';
|
|
201
209
|
export * from './shared/pipes/sort.pipe';
|
|
202
210
|
export * from './shared/pipes/state-i18n-token.pipe';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { ActionBarLocationId } from '../../../common/component-registry-types';
|
|
4
5
|
import { DataService } from '../../../data/providers/data.service';
|
|
5
6
|
import { ActionBarItem } from '../../../providers/nav-builder/nav-builder-types';
|
|
6
7
|
import { NavBuilderService } from '../../../providers/nav-builder/nav-builder.service';
|
|
@@ -10,7 +11,7 @@ export declare class ActionBarItemsComponent implements OnInit, OnChanges {
|
|
|
10
11
|
private route;
|
|
11
12
|
private dataService;
|
|
12
13
|
private notificationService;
|
|
13
|
-
locationId:
|
|
14
|
+
locationId: ActionBarLocationId;
|
|
14
15
|
items$: Observable<ActionBarItem[]>;
|
|
15
16
|
private locationId$;
|
|
16
17
|
constructor(navBuilderService: NavBuilderService, route: ActivatedRoute, dataService: DataService, notificationService: NotificationService);
|
|
@@ -6,7 +6,25 @@ import { DataService } from '../../../data/providers/data.service';
|
|
|
6
6
|
import { Dialog } from '../../../providers/modal/modal.service';
|
|
7
7
|
import { NotificationService } from '../../../providers/notification/notification.service';
|
|
8
8
|
/**
|
|
9
|
+
* @description
|
|
9
10
|
* A dialog which allows the creation and selection of assets.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```TypeScript
|
|
14
|
+
* selectAssets() {
|
|
15
|
+
* this.modalService
|
|
16
|
+
* .fromComponent(AssetPickerDialogComponent, {
|
|
17
|
+
* size: 'xl',
|
|
18
|
+
* })
|
|
19
|
+
* .subscribe(result => {
|
|
20
|
+
* if (result && result.length) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* });
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @docsCategory components
|
|
10
28
|
*/
|
|
11
29
|
export declare class AssetPickerDialogComponent implements OnInit, AfterViewInit, OnDestroy, Dialog<Asset[]> {
|
|
12
30
|
private dataService;
|
|
@@ -35,7 +35,6 @@ export declare class AssetPreviewComponent implements OnInit, OnDestroy {
|
|
|
35
35
|
get fpy(): number | null;
|
|
36
36
|
ngOnInit(): void;
|
|
37
37
|
ngOnDestroy(): void;
|
|
38
|
-
customFieldIsSet(name: string): boolean;
|
|
39
38
|
getSourceFileName(): string;
|
|
40
39
|
onImageLoad(): void;
|
|
41
40
|
updateDimensions(): void;
|
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
+
* @description
|
|
3
4
|
* A chip component for displaying a label with an optional action icon.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```HTML
|
|
8
|
+
* <vdr-chip [colorFrom]="item.value"
|
|
9
|
+
* icon="close"
|
|
10
|
+
* (iconClick)="clear(item)">
|
|
11
|
+
* {{ item.value }}</vdr-chip>
|
|
12
|
+
* ```
|
|
13
|
+
* @docsCategory components
|
|
4
14
|
*/
|
|
5
15
|
export declare class ChipComponent {
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* The icon should be the name of one of the available Clarity icons: https://clarity.design/foundation/icons/shapes/
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
6
21
|
icon: string;
|
|
7
22
|
invert: boolean;
|
|
8
23
|
/**
|
|
24
|
+
* @description
|
|
9
25
|
* If set, the chip will have an auto-generated background
|
|
10
26
|
* color based on the string value passed in.
|
|
11
27
|
*/
|
|
12
28
|
colorFrom: string;
|
|
29
|
+
/**
|
|
30
|
+
* @description
|
|
31
|
+
* The color of the chip can also be one of the standard status colors.
|
|
32
|
+
*/
|
|
13
33
|
colorType: 'error' | 'success' | 'warning';
|
|
14
34
|
iconClick: EventEmitter<MouseEvent>;
|
|
15
35
|
}
|
|
@@ -3,8 +3,19 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DataService } from '../../../data/providers/data.service';
|
|
5
5
|
/**
|
|
6
|
+
* @description
|
|
6
7
|
* A form input control which displays currency in decimal format, whilst working
|
|
7
8
|
* with the integer cent value in the background.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```HTML
|
|
12
|
+
* <vdr-currency-input
|
|
13
|
+
* [(ngModel)]="entityPrice"
|
|
14
|
+
* [currencyCode]="currencyCode"
|
|
15
|
+
* ></vdr-currency-input>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @docsCategory components
|
|
8
19
|
*/
|
|
9
20
|
export declare class CurrencyInputComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
10
21
|
private dataService;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CustomDetailComponentLocationId } from '../../../common/component-registry-types';
|
|
5
|
+
import { CustomDetailComponentService } from '../../../providers/custom-detail-component/custom-detail-component.service';
|
|
6
|
+
export declare class CustomDetailComponentHostComponent implements OnInit, OnDestroy {
|
|
7
|
+
private viewContainerRef;
|
|
8
|
+
private componentFactoryResolver;
|
|
9
|
+
private customDetailComponentService;
|
|
10
|
+
locationId: CustomDetailComponentLocationId;
|
|
11
|
+
entity$: Observable<any>;
|
|
12
|
+
detailForm: FormGroup;
|
|
13
|
+
private componentRefs;
|
|
14
|
+
constructor(viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, customDetailComponentService: CustomDetailComponentService);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
}
|
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DataTableColumnComponent } from './data-table-column.component';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* A table for displaying PaginatedList results. It is designed to be used inside components which
|
|
6
|
+
* extend the {@link BaseListComponent} class.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```HTML
|
|
10
|
+
* <vdr-data-table
|
|
11
|
+
* [items]="items$ | async"
|
|
12
|
+
* [itemsPerPage]="itemsPerPage$ | async"
|
|
13
|
+
* [totalItems]="totalItems$ | async"
|
|
14
|
+
* [currentPage]="currentPage$ | async"
|
|
15
|
+
* (pageChange)="setPageNumber($event)"
|
|
16
|
+
* (itemsPerPageChange)="setItemsPerPage($event)"
|
|
17
|
+
* >
|
|
18
|
+
* <!-- The header columns are defined first -->
|
|
19
|
+
* <vdr-dt-column>{{ 'common.name' | translate }}</vdr-dt-column>
|
|
20
|
+
* <vdr-dt-column></vdr-dt-column>
|
|
21
|
+
* <vdr-dt-column></vdr-dt-column>
|
|
22
|
+
*
|
|
23
|
+
* <!-- Then we define how a row is rendered -->
|
|
24
|
+
* <ng-template let-taxRate="item">
|
|
25
|
+
* <td class="left align-middle">{{ taxRate.name }}</td>
|
|
26
|
+
* <td class="left align-middle">{{ taxRate.category.name }}</td>
|
|
27
|
+
* <td class="left align-middle">{{ taxRate.zone.name }}</td>
|
|
28
|
+
* <td class="left align-middle">{{ taxRate.value }}%</td>
|
|
29
|
+
* <td class="right align-middle">
|
|
30
|
+
* <vdr-table-row-action
|
|
31
|
+
* iconShape="edit"
|
|
32
|
+
* [label]="'common.edit' | translate"
|
|
33
|
+
* [linkTo]="['./', taxRate.id]"
|
|
34
|
+
* ></vdr-table-row-action>
|
|
35
|
+
* </td>
|
|
36
|
+
* <td class="right align-middle">
|
|
37
|
+
* <vdr-dropdown>
|
|
38
|
+
* <button type="button" class="btn btn-link btn-sm" vdrDropdownTrigger>
|
|
39
|
+
* {{ 'common.actions' | translate }}
|
|
40
|
+
* <clr-icon shape="caret down"></clr-icon>
|
|
41
|
+
* </button>
|
|
42
|
+
* <vdr-dropdown-menu vdrPosition="bottom-right">
|
|
43
|
+
* <button
|
|
44
|
+
* type="button"
|
|
45
|
+
* class="delete-button"
|
|
46
|
+
* (click)="deleteTaxRate(taxRate)"
|
|
47
|
+
* [disabled]="!(['DeleteSettings', 'DeleteTaxRate'] | hasPermission)"
|
|
48
|
+
* vdrDropdownItem
|
|
49
|
+
* >
|
|
50
|
+
* <clr-icon shape="trash" class="is-danger"></clr-icon>
|
|
51
|
+
* {{ 'common.delete' | translate }}
|
|
52
|
+
* </button>
|
|
53
|
+
* </vdr-dropdown-menu>
|
|
54
|
+
* </vdr-dropdown>
|
|
55
|
+
* </td>
|
|
56
|
+
* </ng-template>
|
|
57
|
+
* </vdr-data-table>
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @docsCategory components
|
|
61
|
+
*/
|
|
3
62
|
export declare class DataTableComponent<T> implements AfterContentInit {
|
|
4
63
|
items: T[];
|
|
5
64
|
itemsPerPage: number;
|
|
@@ -9,32 +9,49 @@ export declare type CurrentView = {
|
|
|
9
9
|
month: number;
|
|
10
10
|
year: number;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* @description
|
|
14
|
+
* A form input for selecting datetime values.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```HTML
|
|
18
|
+
* <vdr-datetime-picker [(ngModel)]="startDate"></vdr-datetime-picker>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @docsCategory components
|
|
22
|
+
*/
|
|
12
23
|
export declare class DatetimePickerComponent implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy {
|
|
13
24
|
private changeDetectorRef;
|
|
14
25
|
private datetimePickerService;
|
|
15
26
|
/**
|
|
27
|
+
* @description
|
|
16
28
|
* The range above and below the current year which is selectable from
|
|
17
29
|
* the year select control. If a min or max value is set, these will
|
|
18
30
|
* override the yearRange.
|
|
19
31
|
*/
|
|
20
32
|
yearRange: any;
|
|
21
33
|
/**
|
|
34
|
+
* @description
|
|
22
35
|
* The day that the week should start with in the calendar view.
|
|
23
36
|
*/
|
|
24
37
|
weekStartDay: DayOfWeek;
|
|
25
38
|
/**
|
|
39
|
+
* @description
|
|
26
40
|
* The granularity of the minutes time picker
|
|
27
41
|
*/
|
|
28
42
|
timeGranularityInterval: number;
|
|
29
43
|
/**
|
|
44
|
+
* @description
|
|
30
45
|
* The minimum date as an ISO string
|
|
31
46
|
*/
|
|
32
47
|
min: string | null;
|
|
33
48
|
/**
|
|
49
|
+
* @description
|
|
34
50
|
* The maximum date as an ISO string
|
|
35
51
|
*/
|
|
36
52
|
max: string | null;
|
|
37
53
|
/**
|
|
54
|
+
* @description
|
|
38
55
|
* Sets the readonly state
|
|
39
56
|
*/
|
|
40
57
|
readonly: boolean;
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* Used for building dropdown menus.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```HTML
|
|
8
|
+
* <vdr-dropdown>
|
|
9
|
+
* <button class="btn btn-outline" vdrDropdownTrigger>
|
|
10
|
+
* <clr-icon shape="plus"></clr-icon>
|
|
11
|
+
* Select type
|
|
12
|
+
* </button>
|
|
13
|
+
* <vdr-dropdown-menu vdrPosition="bottom-left">
|
|
14
|
+
* <button
|
|
15
|
+
* *ngFor="let typeName of allTypes"
|
|
16
|
+
* type="button"
|
|
17
|
+
* vdrDropdownItem
|
|
18
|
+
* (click)="selectType(typeName)"
|
|
19
|
+
* >
|
|
20
|
+
* typeName
|
|
21
|
+
* </button>
|
|
22
|
+
* </vdr-dropdown-menu>
|
|
23
|
+
* </vdr-dropdown>
|
|
24
|
+
* ```
|
|
25
|
+
* @docsCategory components
|
|
26
|
+
*/
|
|
2
27
|
export declare class DropdownComponent {
|
|
3
28
|
private isOpen;
|
|
4
29
|
private onOpenChangeCallbacks;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
3
|
import { DataService } from '../../../data/providers/data.service';
|
|
3
4
|
import { NotificationService } from '../../../providers/notification/notification.service';
|
|
4
5
|
export declare class ExtensionHostService implements OnDestroy {
|
|
5
6
|
private dataService;
|
|
6
7
|
private notificationService;
|
|
7
8
|
private extensionWindow;
|
|
9
|
+
private routeSnapshot;
|
|
8
10
|
private cancellationMessage$;
|
|
9
11
|
private destroyMessage$;
|
|
10
12
|
constructor(dataService: DataService, notificationService: NotificationService);
|
|
11
|
-
init(extensionWindow: Window): void;
|
|
13
|
+
init(extensionWindow: Window, routeSnapshot: ActivatedRouteSnapshot): void;
|
|
12
14
|
destroy(): void;
|
|
13
15
|
ngOnDestroy(): void;
|
|
14
16
|
private handleMessage;
|
|
@@ -8,6 +8,28 @@ export declare type FacetValueSeletorItem = {
|
|
|
8
8
|
id: string;
|
|
9
9
|
value: FacetValue.Fragment;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @description
|
|
13
|
+
* A form control for selecting facet values.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```HTML
|
|
17
|
+
* <vdr-facet-value-selector
|
|
18
|
+
* [facets]="facets"
|
|
19
|
+
* (selectedValuesChange)="selectedValues = $event"
|
|
20
|
+
* ></vdr-facet-value-selector>
|
|
21
|
+
* ```
|
|
22
|
+
* The `facets` input should be provided from the parent component
|
|
23
|
+
* like this:
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```TypeScript
|
|
27
|
+
* this.facets = this.dataService
|
|
28
|
+
* .facet.getAllFacets()
|
|
29
|
+
* .mapSingle(data => data.facets.items);
|
|
30
|
+
* ```
|
|
31
|
+
* @docsCategory components
|
|
32
|
+
*/
|
|
11
33
|
export declare class FacetValueSelectorComponent implements OnInit, ControlValueAccessor {
|
|
12
34
|
private dataService;
|
|
13
35
|
selectedValuesChange: EventEmitter<import("../../../common/generated-types").FacetValueFragment[]>;
|
|
@@ -2,7 +2,7 @@ import { TemplateRef, Type } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { Dialog, ModalOptions } from '../../../providers/modal/modal.service';
|
|
4
4
|
/**
|
|
5
|
-
* This component should only be
|
|
5
|
+
* This component should only be instantiated dynamically by the ModalService. It should not be used
|
|
6
6
|
* directly in templates. See {@link ModalService.fromComponent} method for more detail.
|
|
7
7
|
*/
|
|
8
8
|
export declare class ModalDialogComponent<T extends Dialog<any>> {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
+
* @description
|
|
3
4
|
* This component displays a plain JavaScript object as an expandable tree.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```HTML
|
|
8
|
+
* <vdr-object-tree [value]="payment.metadata"></vdr-object-tree>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory components
|
|
4
12
|
*/
|
|
5
13
|
export declare class ObjectTreeComponent implements OnInit {
|
|
6
14
|
value: {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description
|
|
3
|
+
* Displays the state of an order in a colored chip.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```HTML
|
|
7
|
+
* <vdr-order-state-label [state]="order.state"></vdr-order-state-label>
|
|
8
|
+
* ```
|
|
9
|
+
* @docsCategory components
|
|
10
|
+
*/
|
|
1
11
|
export declare class OrderStateLabelComponent {
|
|
2
12
|
state: string;
|
|
3
13
|
get chipColorType(): "success" | "error" | "" | "warning";
|
|
@@ -2,6 +2,18 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
3
|
import { ProductSelectorSearch } from '../../../common/generated-types';
|
|
4
4
|
import { DataService } from '../../../data/providers/data.service';
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* A component for selecting product variants via an autocomplete-style select input.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```HTML
|
|
11
|
+
* <vdr-product-selector
|
|
12
|
+
* (productSelected)="selectResult($event)"></vdr-product-selector>
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @docsCategory components
|
|
16
|
+
*/
|
|
5
17
|
export declare class ProductSelectorComponent implements OnInit {
|
|
6
18
|
private dataService;
|
|
7
19
|
searchInput$: Subject<string>;
|
|
@@ -2,7 +2,18 @@ import { AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { ProsemirrorService } from './prosemirror/prosemirror.service';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* @description
|
|
6
|
+
* A rich text (HTML) editor based on Prosemirror (https://prosemirror.net/)
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```HTML
|
|
10
|
+
* <vdr-rich-text-editor
|
|
11
|
+
* [(ngModel)]="description"
|
|
12
|
+
* label="Description"
|
|
13
|
+
* ></vdr-rich-text-editor>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @docsCategory components
|
|
6
17
|
*/
|
|
7
18
|
export declare class RichTextEditorComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
8
19
|
private changeDetector;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { CustomFieldConfig } from '../../../common/generated-types';
|
|
4
|
+
import { CustomFieldEntityName } from '../../../providers/custom-field-component/custom-field-component.service';
|
|
5
|
+
export declare type GroupedCustomFields = Array<{
|
|
6
|
+
tabName: string;
|
|
7
|
+
customFields: CustomFieldConfig[];
|
|
8
|
+
}>;
|
|
9
|
+
export declare class TabbedCustomFieldsComponent implements OnInit {
|
|
10
|
+
entityName: CustomFieldEntityName;
|
|
11
|
+
customFields: CustomFieldConfig[];
|
|
12
|
+
customFieldsFormGroup: AbstractControl;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
compact: boolean;
|
|
15
|
+
showLabel: boolean;
|
|
16
|
+
readonly defaultTabName = "__default_tab__";
|
|
17
|
+
tabbedCustomFields: GroupedCustomFields;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
customFieldIsSet(name: string): boolean;
|
|
20
|
+
private groupByTabs;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { UIExtensionLocationId } from '../../../common/component-registry-types';
|
|
4
|
+
import { DataService } from '../../../data/providers/data.service';
|
|
5
|
+
export declare class UiExtensionPointComponent implements OnInit {
|
|
6
|
+
private dataService;
|
|
7
|
+
locationId: UIExtensionLocationId;
|
|
8
|
+
topPx: number;
|
|
9
|
+
leftPx: number;
|
|
10
|
+
api: 'actionBar' | 'navMenu' | 'detailComponent';
|
|
11
|
+
display$: Observable<boolean>;
|
|
12
|
+
readonly isDevMode: boolean;
|
|
13
|
+
constructor(dataService: DataService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { DataService } from '../../data/providers/data.service';
|
|
3
3
|
import { IfDirectiveBase } from './if-directive-base';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Structural directive that displays the given element if the Vendure instance has multiple channels
|
|
7
|
+
* configured.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```html
|
|
11
|
+
* <div *vdrIfMultichannel class="channel-selector">
|
|
12
|
+
* <!-- ... -->
|
|
13
|
+
* </ng-container>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @docsCategory directives
|
|
17
|
+
*/
|
|
4
18
|
export declare class IfMultichannelDirective extends IfDirectiveBase<[]> {
|
|
5
19
|
private dataService;
|
|
6
20
|
constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService);
|
|
@@ -3,6 +3,7 @@ import { Permission } from '../../common/generated-types';
|
|
|
3
3
|
import { DataService } from '../../data/providers/data.service';
|
|
4
4
|
import { IfDirectiveBase } from './if-directive-base';
|
|
5
5
|
/**
|
|
6
|
+
* @description
|
|
6
7
|
* Conditionally shows/hides templates based on the current active user having the specified permission.
|
|
7
8
|
* Based on the ngIf source. Also support "else" templates:
|
|
8
9
|
*
|
|
@@ -14,6 +15,8 @@ import { IfDirectiveBase } from './if-directive-base';
|
|
|
14
15
|
*
|
|
15
16
|
* The permission can be a single string, or an array. If an array is passed, then _all_ of the permissions
|
|
16
17
|
* must match (logical AND)
|
|
18
|
+
*
|
|
19
|
+
* @docsCategory directives
|
|
17
20
|
*/
|
|
18
21
|
export declare class IfPermissionsDirective extends IfDirectiveBase<Array<Permission[] | null>> {
|
|
19
22
|
private dataService;
|
package/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
3
3
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* A checkbox input. The default input component for `boolean` fields.
|
|
7
|
+
*
|
|
8
|
+
* @docsCategory custom-input-components
|
|
9
|
+
* @docsPage default-inputs
|
|
10
|
+
*/
|
|
4
11
|
export declare class BooleanFormInputComponent implements FormInputComponent {
|
|
5
12
|
static readonly id: DefaultFormComponentId;
|
|
6
13
|
readonly: boolean;
|
package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
4
|
+
import { CodeJar } from 'codejar';
|
|
5
|
+
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
6
|
+
export declare function jsonValidator(): ValidatorFn;
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* A JSON editor input with syntax highlighting and error detection. Works well
|
|
10
|
+
* with `text` type fields.
|
|
11
|
+
*
|
|
12
|
+
* @docsCategory custom-input-components
|
|
13
|
+
* @docsPage default-inputs
|
|
14
|
+
*/
|
|
15
|
+
export declare class JsonEditorFormInputComponent implements FormInputComponent, AfterViewInit, OnInit {
|
|
16
|
+
private changeDetector;
|
|
17
|
+
static readonly id: DefaultFormComponentId;
|
|
18
|
+
readonly: boolean;
|
|
19
|
+
formControl: FormControl;
|
|
20
|
+
config: DefaultFormComponentConfig<'json-editor-form-input'>;
|
|
21
|
+
isValid: boolean;
|
|
22
|
+
errorMessage: string | undefined;
|
|
23
|
+
private editorElementRef;
|
|
24
|
+
jar: CodeJar;
|
|
25
|
+
constructor(changeDetector: ChangeDetectorRef);
|
|
26
|
+
get height(): string | undefined;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
private getJsonError;
|
|
30
|
+
private getErrorPos;
|
|
31
|
+
private syntaxHighlight;
|
|
32
|
+
}
|
package/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.d.ts
CHANGED
|
@@ -4,6 +4,13 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
5
5
|
import { CurrencyCode } from '../../../common/generated-types';
|
|
6
6
|
import { DataService } from '../../../data/providers/data.service';
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* An input for monetary values. Should be used with `int` type fields.
|
|
10
|
+
*
|
|
11
|
+
* @docsCategory custom-input-components
|
|
12
|
+
* @docsPage default-inputs
|
|
13
|
+
*/
|
|
7
14
|
export declare class CurrencyFormInputComponent implements FormInputComponent {
|
|
8
15
|
private dataService;
|
|
9
16
|
static readonly id: DefaultFormComponentId;
|
|
@@ -5,6 +5,14 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
6
6
|
import { GetCustomerGroups } from '../../../common/generated-types';
|
|
7
7
|
import { DataService } from '../../../data/providers/data.service';
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* Allows the selection of a Customer via an autocomplete select input.
|
|
11
|
+
* Should be used with `ID` type fields which represent Customer IDs.
|
|
12
|
+
*
|
|
13
|
+
* @docsCategory custom-input-components
|
|
14
|
+
* @docsPage default-inputs
|
|
15
|
+
*/
|
|
8
16
|
export declare class CustomerGroupFormInputComponent implements FormInputComponent, OnInit {
|
|
9
17
|
private dataService;
|
|
10
18
|
static readonly id: DefaultFormComponentId;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
3
3
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Allows selection of a datetime. Default input for `datetime` type fields.
|
|
7
|
+
*
|
|
8
|
+
* @docsCategory custom-input-components
|
|
9
|
+
* @docsPage default-inputs
|
|
10
|
+
*/
|
|
4
11
|
export declare class DateFormInputComponent implements FormInputComponent {
|
|
5
12
|
static readonly id: DefaultFormComponentId;
|
|
6
13
|
readonly: boolean;
|
|
7
14
|
formControl: FormControl;
|
|
8
15
|
config: DefaultFormComponentConfig<'date-form-input'>;
|
|
16
|
+
get min(): string | undefined;
|
|
17
|
+
get max(): string | undefined;
|
|
18
|
+
get yearRange(): number | undefined;
|
|
9
19
|
}
|
package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { FormInputComponent, InputComponentConfig } from '../../../common/component-registry-types';
|
|
6
6
|
import { FacetWithValues } from '../../../common/generated-types';
|
|
7
7
|
import { DataService } from '../../../data/providers/data.service';
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* Allows the selection of multiple FacetValues via an autocomplete select input.
|
|
11
|
+
* Should be used with `ID` type **list** fields which represent FacetValue IDs.
|
|
12
|
+
*
|
|
13
|
+
* @docsCategory custom-input-components
|
|
14
|
+
* @docsPage default-inputs
|
|
15
|
+
*/
|
|
8
16
|
export declare class FacetValueFormInputComponent implements FormInputComponent, OnInit {
|
|
9
17
|
private dataService;
|
|
10
18
|
static readonly id: DefaultFormComponentId;
|