@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.
Files changed (255) hide show
  1. package/catalog/components/collection-detail/collection-detail.component.d.ts +3 -1
  2. package/catalog/components/create-product-variant-dialog/create-product-variant-dialog.component.d.ts +6 -4
  3. package/catalog/components/facet-detail/facet-detail.component.d.ts +3 -1
  4. package/catalog/components/product-detail/product-detail.component.d.ts +3 -1
  5. package/catalog/components/stock-location-detail/stock-location-detail.component.d.ts +3 -1
  6. package/core/common/base-detail.component.d.ts +11 -1
  7. package/core/common/component-registry-types.d.ts +2 -1
  8. package/core/common/utilities/custom-field-default-value.d.ts +6 -0
  9. package/core/common/version.d.ts +1 -1
  10. package/core/components/app-shell/app-shell.component.d.ts +2 -0
  11. package/core/extension/add-action-bar-item.d.ts +28 -0
  12. package/core/extension/add-nav-menu-item.d.ts +60 -0
  13. package/core/extension/components/angular-route.component.d.ts +6 -0
  14. package/core/extension/components/route.component.d.ts +13 -0
  15. package/core/extension/providers/page-metadata.service.d.ts +9 -0
  16. package/core/{providers/bulk-action-registry → extension}/register-bulk-action.d.ts +1 -1
  17. package/core/extension/register-custom-detail-component.d.ts +10 -0
  18. package/core/{providers/dashboard-widget → extension}/register-dashboard-widget.d.ts +5 -1
  19. package/core/extension/register-data-table-component.d.ts +44 -0
  20. package/core/extension/register-form-input-component.d.ts +50 -0
  21. package/core/extension/register-history-entry-component.d.ts +11 -0
  22. package/core/extension/register-route-component.d.ts +59 -0
  23. package/core/extension/types.d.ts +11 -0
  24. package/core/providers/component-registry/component-registry.service.d.ts +6 -3
  25. package/core/providers/custom-detail-component/custom-detail-component-types.d.ts +2 -1
  26. package/core/providers/custom-detail-component/custom-detail-component.service.d.ts +0 -9
  27. package/core/providers/custom-history-entry-component/history-entry-component.service.d.ts +1 -10
  28. package/core/providers/dashboard-widget/dashboard-widget-types.d.ts +17 -1
  29. package/core/providers/modal/modal.service.d.ts +1 -3
  30. package/core/providers/nav-builder/nav-builder.service.d.ts +0 -85
  31. package/core/public_api.d.ts +16 -3
  32. package/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.d.ts +3 -3
  33. package/core/shared/components/data-table-2/data-table-column.component.d.ts +2 -2
  34. package/core/shared/components/data-table-2/data-table-custom-component.service.d.ts +52 -0
  35. package/core/shared/components/data-table-2/data-table-custom-field-column.component.d.ts +0 -1
  36. package/core/shared/components/data-table-2/data-table2.component.d.ts +9 -2
  37. package/core/shared/components/modal-dialog/dialog-component-outlet.component.d.ts +2 -3
  38. package/core/shared/components/ui-extension-point/ui-extension-point.component.d.ts +13 -4
  39. package/core/shared/dynamic-form-inputs/{register-dynamic-input-components.d.ts → default-form-inputs.d.ts} +1 -50
  40. package/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.d.ts +3 -3
  41. package/core/shared/shared.module.d.ts +25 -25
  42. package/customer/components/customer-detail/customer-detail.component.d.ts +3 -1
  43. package/customer/components/customer-group-detail/customer-group-detail.component.d.ts +3 -1
  44. package/customer/components/customer-history/customer-history-entry-host.component.d.ts +2 -3
  45. package/customer/components/customer-list/customer-list.component.d.ts +1 -0
  46. package/dashboard/components/dashboard-widget/dashboard-widget.component.d.ts +1 -3
  47. package/esm2022/catalog/components/asset-detail/asset-detail.component.mjs +3 -3
  48. package/esm2022/catalog/components/collection-contents/collection-contents.component.mjs +3 -3
  49. package/esm2022/catalog/components/collection-data-table/collection-data-table.component.mjs +3 -3
  50. package/esm2022/catalog/components/collection-detail/collection-detail.component.mjs +3 -3
  51. package/esm2022/catalog/components/collection-list/collection-list.component.mjs +3 -3
  52. package/esm2022/catalog/components/create-product-variant-dialog/create-product-variant-dialog.component.mjs +8 -5
  53. package/esm2022/catalog/components/facet-detail/facet-detail.component.mjs +3 -3
  54. package/esm2022/catalog/components/facet-list/facet-list.component.mjs +3 -3
  55. package/esm2022/catalog/components/move-collections-dialog/move-collections-dialog.component.mjs +3 -3
  56. package/esm2022/catalog/components/product-detail/product-detail.component.mjs +3 -3
  57. package/esm2022/catalog/components/product-list/product-list.component.mjs +3 -3
  58. package/esm2022/catalog/components/product-options-editor/product-options-editor.component.mjs +3 -3
  59. package/esm2022/catalog/components/product-variant-detail/product-variant-detail.component.mjs +3 -3
  60. package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +3 -3
  61. package/esm2022/catalog/components/product-variants-editor/product-variants-editor.component.mjs +3 -3
  62. package/esm2022/catalog/components/stock-location-detail/stock-location-detail.component.mjs +3 -3
  63. package/esm2022/catalog/components/stock-location-list/stock-location-list.component.mjs +3 -3
  64. package/esm2022/core/common/base-detail.component.mjs +9 -7
  65. package/esm2022/core/common/component-registry-types.mjs +1 -1
  66. package/esm2022/core/common/generated-types.mjs +1 -1
  67. package/esm2022/core/common/utilities/create-updated-translatable.mjs +5 -23
  68. package/esm2022/core/common/utilities/custom-field-default-value.mjs +28 -0
  69. package/esm2022/core/common/version.mjs +2 -2
  70. package/esm2022/core/components/app-shell/app-shell.component.mjs +16 -10
  71. package/esm2022/core/components/channel-switcher/channel-switcher.component.mjs +3 -3
  72. package/esm2022/core/components/main-nav/main-nav.component.mjs +3 -3
  73. package/esm2022/core/components/settings-nav/settings-nav.component.mjs +1 -1
  74. package/esm2022/core/core.module.mjs +2 -2
  75. package/esm2022/core/extension/add-action-bar-item.mjs +38 -0
  76. package/esm2022/core/extension/add-nav-menu-item.mjs +79 -0
  77. package/esm2022/core/extension/components/angular-route.component.mjs +22 -0
  78. package/esm2022/core/extension/components/route.component.mjs +59 -0
  79. package/esm2022/core/extension/providers/page-metadata.service.mjs +20 -0
  80. package/esm2022/core/extension/register-bulk-action.mjs +63 -0
  81. package/esm2022/core/extension/register-custom-detail-component.mjs +20 -0
  82. package/esm2022/core/extension/register-dashboard-widget.mjs +36 -0
  83. package/esm2022/core/extension/register-data-table-component.mjs +50 -0
  84. package/esm2022/core/extension/register-form-input-component.mjs +60 -0
  85. package/esm2022/core/extension/register-history-entry-component.mjs +21 -0
  86. package/esm2022/core/extension/register-route-component.mjs +44 -0
  87. package/esm2022/core/extension/types.mjs +2 -0
  88. package/esm2022/core/providers/component-registry/component-registry.service.mjs +3 -3
  89. package/esm2022/core/providers/custom-detail-component/custom-detail-component-types.mjs +1 -1
  90. package/esm2022/core/providers/custom-detail-component/custom-detail-component.service.mjs +2 -19
  91. package/esm2022/core/providers/custom-history-entry-component/history-entry-component.service.mjs +2 -20
  92. package/esm2022/core/providers/dashboard-widget/dashboard-widget-types.mjs +1 -1
  93. package/esm2022/core/providers/data-table/data-table-filter-collection.mjs +1 -8
  94. package/esm2022/core/providers/data-table/data-table-filter.mjs +1 -1
  95. package/esm2022/core/providers/modal/modal.service.mjs +5 -7
  96. package/esm2022/core/providers/nav-builder/nav-builder.service.mjs +2 -113
  97. package/esm2022/core/public_api.mjs +17 -4
  98. package/esm2022/core/shared/components/action-bar-items/action-bar-items.component.mjs +3 -3
  99. package/esm2022/core/shared/components/asset-gallery/asset-gallery.component.mjs +3 -3
  100. package/esm2022/core/shared/components/card/card.component.mjs +3 -3
  101. package/esm2022/core/shared/components/chip/chip.component.mjs +2 -2
  102. package/esm2022/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.mjs +13 -9
  103. package/esm2022/core/shared/components/data-table-2/data-table-column.component.mjs +5 -6
  104. package/esm2022/core/shared/components/data-table-2/data-table-custom-component.service.mjs +26 -0
  105. package/esm2022/core/shared/components/data-table-2/data-table-custom-field-column.component.mjs +2 -4
  106. package/esm2022/core/shared/components/data-table-2/data-table2.component.mjs +23 -10
  107. package/esm2022/core/shared/components/data-table-filter-label/data-table-filter-label.component.mjs +3 -3
  108. package/esm2022/core/shared/components/data-table-filter-presets/add-filter-preset-button.component.mjs +2 -2
  109. package/esm2022/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.mjs +3 -3
  110. package/esm2022/core/shared/components/data-table-filter-presets/filter-preset.service.mjs +1 -1
  111. package/esm2022/core/shared/components/data-table-filter-presets/rename-filter-preset-dialog.component.mjs +3 -3
  112. package/esm2022/core/shared/components/data-table-filters/data-table-filters.component.mjs +6 -4
  113. package/esm2022/core/shared/components/facet-value-chip/facet-value-chip.component.mjs +2 -2
  114. package/esm2022/core/shared/components/modal-dialog/dialog-component-outlet.component.mjs +6 -8
  115. package/esm2022/core/shared/components/page-title/page-title.component.mjs +3 -3
  116. package/esm2022/core/shared/components/rich-text-editor/rich-text-editor.component.mjs +2 -2
  117. package/esm2022/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.mjs +2 -2
  118. package/esm2022/core/shared/components/ui-extension-point/ui-extension-point.component.mjs +97 -5
  119. package/esm2022/core/shared/dynamic-form-inputs/default-form-inputs.mjs +44 -0
  120. package/esm2022/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +20 -16
  121. package/esm2022/core/shared/shared.module.mjs +14 -13
  122. package/esm2022/customer/components/customer-detail/customer-detail.component.mjs +5 -5
  123. package/esm2022/customer/components/customer-group-detail/customer-group-detail.component.mjs +3 -3
  124. package/esm2022/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.mjs +3 -2
  125. package/esm2022/customer/components/customer-group-list/customer-group-list.component.mjs +3 -3
  126. package/esm2022/customer/components/customer-group-member-list/customer-group-member-list.component.mjs +3 -3
  127. package/esm2022/customer/components/customer-history/customer-history-entry-host.component.mjs +5 -7
  128. package/esm2022/customer/components/customer-list/customer-list.component.mjs +10 -7
  129. package/esm2022/dashboard/components/dashboard-widget/dashboard-widget.component.mjs +4 -7
  130. package/esm2022/dashboard/widgets/latest-orders-widget/latest-orders-widget.component.mjs +3 -3
  131. package/esm2022/marketing/components/promotion-detail/promotion-detail.component.mjs +3 -3
  132. package/esm2022/marketing/components/promotion-list/promotion-list.component.mjs +3 -3
  133. package/esm2022/order/components/order-data-table/order-data-table.component.mjs +2 -2
  134. package/esm2022/order/components/order-detail/order-detail.component.mjs +3 -3
  135. package/esm2022/order/components/order-history/order-history-entry-host.component.mjs +7 -9
  136. package/esm2022/order/components/order-list/order-list.component.mjs +3 -3
  137. package/esm2022/order/components/order-table/order-table.component.mjs +3 -3
  138. package/esm2022/react/components/react-custom-column.component.mjs +25 -0
  139. package/esm2022/react/components/react-custom-detail.component.mjs +23 -0
  140. package/esm2022/react/components/react-form-input.component.mjs +24 -0
  141. package/esm2022/react/components/react-route.component.mjs +26 -0
  142. package/esm2022/react/directives/react-component-host.directive.mjs +54 -0
  143. package/esm2022/react/public_api.mjs +19 -0
  144. package/esm2022/react/react-components/Card.mjs +28 -0
  145. package/esm2022/react/react-components/Link.mjs +30 -0
  146. package/esm2022/react/react-hooks/use-detail-component-data.mjs +48 -0
  147. package/esm2022/react/react-hooks/use-form-control.mjs +66 -0
  148. package/esm2022/react/react-hooks/use-injector.mjs +33 -0
  149. package/esm2022/react/react-hooks/use-page-metadata.mjs +41 -0
  150. package/esm2022/react/react-hooks/use-query.mjs +124 -0
  151. package/esm2022/react/register-react-custom-detail-component.mjs +33 -0
  152. package/esm2022/react/register-react-data-table-component.mjs +62 -0
  153. package/esm2022/react/register-react-form-input-component.mjs +27 -0
  154. package/esm2022/react/register-react-route-component.mjs +25 -0
  155. package/esm2022/react/types.mjs +2 -0
  156. package/esm2022/react/vendure-admin-ui-react.mjs +5 -0
  157. package/esm2022/settings/components/admin-detail/admin-detail.component.mjs +3 -3
  158. package/esm2022/settings/components/administrator-list/administrator-list.component.mjs +3 -3
  159. package/esm2022/settings/components/channel-detail/channel-detail.component.mjs +10 -10
  160. package/esm2022/settings/components/channel-list/channel-list.component.mjs +3 -3
  161. package/esm2022/settings/components/country-detail/country-detail.component.mjs +3 -3
  162. package/esm2022/settings/components/country-list/country-list.component.mjs +3 -3
  163. package/esm2022/settings/components/global-settings/global-settings.component.mjs +3 -3
  164. package/esm2022/settings/components/payment-method-detail/payment-method-detail.component.mjs +3 -3
  165. package/esm2022/settings/components/payment-method-list/payment-method-list.component.mjs +3 -3
  166. package/esm2022/settings/components/profile/profile.component.mjs +3 -3
  167. package/esm2022/settings/components/role-list/role-list.component.mjs +3 -3
  168. package/esm2022/settings/components/seller-detail/seller-detail.component.mjs +3 -3
  169. package/esm2022/settings/components/seller-list/seller-list.component.mjs +3 -3
  170. package/esm2022/settings/components/shipping-method-detail/shipping-method-detail.component.mjs +3 -3
  171. package/esm2022/settings/components/shipping-method-list/shipping-method-list.component.mjs +3 -3
  172. package/esm2022/settings/components/tax-category-detail/tax-category-detail.component.mjs +3 -3
  173. package/esm2022/settings/components/tax-category-list/tax-category-list.component.mjs +3 -3
  174. package/esm2022/settings/components/tax-rate-detail/tax-rate-detail.component.mjs +3 -3
  175. package/esm2022/settings/components/tax-rate-list/tax-rate-list.component.mjs +3 -3
  176. package/esm2022/settings/components/zone-detail/zone-detail.component.mjs +3 -3
  177. package/esm2022/settings/components/zone-list/zone-list.component.mjs +3 -3
  178. package/esm2022/settings/components/zone-member-list/zone-member-list.component.mjs +3 -3
  179. package/esm2022/settings/settings.routes.mjs +1 -1
  180. package/esm2022/system/components/job-list/job-list.component.mjs +3 -3
  181. package/fesm2022/vendure-admin-ui-catalog.mjs +34 -31
  182. package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
  183. package/fesm2022/vendure-admin-ui-core.mjs +659 -346
  184. package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
  185. package/fesm2022/vendure-admin-ui-customer.mjs +19 -18
  186. package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
  187. package/fesm2022/vendure-admin-ui-dashboard.mjs +5 -8
  188. package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
  189. package/fesm2022/vendure-admin-ui-marketing.mjs +4 -4
  190. package/fesm2022/vendure-admin-ui-marketing.mjs.map +1 -1
  191. package/fesm2022/vendure-admin-ui-order.mjs +14 -16
  192. package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
  193. package/fesm2022/vendure-admin-ui-react.mjs +641 -0
  194. package/fesm2022/vendure-admin-ui-react.mjs.map +1 -0
  195. package/fesm2022/vendure-admin-ui-settings.mjs +41 -41
  196. package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
  197. package/fesm2022/vendure-admin-ui-system.mjs +2 -2
  198. package/fesm2022/vendure-admin-ui-system.mjs.map +1 -1
  199. package/marketing/components/promotion-detail/promotion-detail.component.d.ts +3 -1
  200. package/order/components/order-detail/order-detail.component.d.ts +3 -1
  201. package/order/components/order-history/order-history-entry-host.component.d.ts +2 -3
  202. package/package.json +21 -13
  203. package/react/components/react-custom-column.component.d.ts +17 -0
  204. package/react/components/react-custom-detail.component.d.ts +24 -0
  205. package/react/components/react-form-input.component.d.ts +20 -0
  206. package/react/components/react-route.component.d.ts +10 -0
  207. package/react/directives/react-component-host.directive.d.ts +23 -0
  208. package/react/index.d.ts +5 -0
  209. package/react/public_api.d.ts +17 -0
  210. package/react/react-components/Card.d.ts +24 -0
  211. package/react/react-components/Link.d.ts +22 -0
  212. package/react/react-hooks/use-detail-component-data.d.ts +32 -0
  213. package/react/react-hooks/use-form-control.d.ts +29 -0
  214. package/react/react-hooks/use-injector.d.ts +24 -0
  215. package/react/react-hooks/use-page-metadata.d.ts +30 -0
  216. package/react/react-hooks/use-query.d.ts +92 -0
  217. package/react/register-react-custom-detail-component.d.ts +38 -0
  218. package/react/register-react-data-table-component.d.ts +81 -0
  219. package/react/register-react-form-input-component.d.ts +9 -0
  220. package/react/register-react-route-component.d.ts +26 -0
  221. package/react/types.d.ts +17 -0
  222. package/settings/components/admin-detail/admin-detail.component.d.ts +3 -1
  223. package/settings/components/channel-detail/channel-detail.component.d.ts +5 -3
  224. package/settings/components/country-detail/country-detail.component.d.ts +3 -1
  225. package/settings/components/global-settings/global-settings.component.d.ts +3 -1
  226. package/settings/components/payment-method-detail/payment-method-detail.component.d.ts +3 -1
  227. package/settings/components/profile/profile.component.d.ts +3 -1
  228. package/settings/components/seller-detail/seller-detail.component.d.ts +3 -1
  229. package/settings/components/shipping-method-detail/shipping-method-detail.component.d.ts +3 -1
  230. package/settings/components/tax-category-detail/tax-category-detail.component.d.ts +3 -1
  231. package/settings/components/tax-rate-detail/tax-rate-detail.component.d.ts +3 -1
  232. package/settings/components/zone-detail/zone-detail.component.d.ts +3 -1
  233. package/static/i18n-messages/cs.json +789 -789
  234. package/static/i18n-messages/de.json +789 -789
  235. package/static/i18n-messages/en.json +789 -789
  236. package/static/i18n-messages/es.json +789 -789
  237. package/static/i18n-messages/fr.json +789 -789
  238. package/static/i18n-messages/he.json +789 -789
  239. package/static/i18n-messages/it.json +789 -789
  240. package/static/i18n-messages/pl.json +789 -789
  241. package/static/i18n-messages/pt_BR.json +789 -789
  242. package/static/i18n-messages/pt_PT.json +789 -789
  243. package/static/i18n-messages/ru.json +789 -789
  244. package/static/i18n-messages/uk.json +789 -789
  245. package/static/i18n-messages/zh_Hans.json +789 -789
  246. package/static/i18n-messages/zh_Hant.json +789 -789
  247. package/static/styles/_mixins.scss +4 -4
  248. package/static/styles/global/_forms.scss +2 -2
  249. package/static/styles/rtl.scss +1 -1
  250. package/static/styles/theme/dark.scss +1 -16
  251. package/static/styles/theme/default.scss +1 -0
  252. package/static/theme.min.css +1 -1
  253. package/esm2022/core/providers/bulk-action-registry/register-bulk-action.mjs +0 -63
  254. package/esm2022/core/providers/dashboard-widget/register-dashboard-widget.mjs +0 -32
  255. package/esm2022/core/shared/dynamic-form-inputs/register-dynamic-input-components.mjs +0 -102
@@ -20,7 +20,9 @@ export declare class CollectionDetailComponent extends TypedBaseDetailComponent<
20
20
  visible: import("@angular/forms").FormControl<boolean | null>;
21
21
  inheritFilters: import("@angular/forms").FormControl<boolean | null>;
22
22
  filters: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
23
- customFields: import("@angular/forms").FormGroup<{}>;
23
+ customFields: import("@angular/forms").FormGroup<{
24
+ [x: string]: import("@angular/forms").FormControl<false | "" | 0 | Date | null>;
25
+ }>;
24
26
  }>;
25
27
  assetChanges: {
26
28
  assets?: Asset[];
@@ -1,19 +1,21 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormBuilder, FormControl } from '@angular/forms';
3
- import { CreateProductVariantInput, Dialog, GetProductVariantOptionsQuery } from '@vendure/admin-ui/core';
2
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { CreateProductVariantInput, CurrencyCode, Dialog, GetProductVariantOptionsQuery } from '@vendure/admin-ui/core';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CreateProductVariantDialogComponent implements Dialog<CreateProductVariantInput>, OnInit {
6
6
  private formBuilder;
7
7
  resolveWith: (result?: CreateProductVariantInput) => void;
8
8
  product: NonNullable<GetProductVariantOptionsQuery['product']>;
9
- form: import("@angular/forms").FormGroup<{
9
+ form: FormGroup<{
10
10
  name: FormControl<string | null>;
11
11
  sku: FormControl<string | null>;
12
- options: import("@angular/forms").FormGroup<{
12
+ price: FormControl<string | null>;
13
+ options: FormGroup<{
13
14
  [key: string]: FormControl<string | null>;
14
15
  }>;
15
16
  }>;
16
17
  existingVariant: NonNullable<GetProductVariantOptionsQuery['product']>['variants'][number] | undefined;
18
+ currencyCode: CurrencyCode;
17
19
  constructor(formBuilder: FormBuilder);
18
20
  ngOnInit(): void;
19
21
  confirm(): void;
@@ -16,7 +16,9 @@ export declare class FacetDetailComponent extends TypedBaseDetailComponent<typeo
16
16
  code: import("@angular/forms").FormControl<string | null>;
17
17
  name: import("@angular/forms").FormControl<string | null>;
18
18
  visible: import("@angular/forms").FormControl<boolean | null>;
19
- customFields: import("@angular/forms").FormGroup<{}>;
19
+ customFields: import("@angular/forms").FormGroup<{
20
+ [x: string]: import("@angular/forms").FormControl<false | "" | 0 | Date | null>;
21
+ }>;
20
22
  }>;
21
23
  values: import("@angular/forms").FormArray<import("@angular/forms").FormControl<{
22
24
  id: string;
@@ -26,7 +26,9 @@ export declare class ProductDetailComponent extends TypedBaseDetailComponent<typ
26
26
  slug: import("@angular/forms").FormControl<string | null>;
27
27
  description: import("@angular/forms").FormControl<string | null>;
28
28
  facetValueIds: import("@angular/forms").FormControl<string[] | null>;
29
- customFields: import("@angular/forms").FormGroup<{}>;
29
+ customFields: import("@angular/forms").FormGroup<{
30
+ [x: string]: import("@angular/forms").FormControl<false | "" | 0 | Date | null>;
31
+ }>;
30
32
  }>;
31
33
  assetChanges: SelectedAssets;
32
34
  productChannels$: Observable<ProductDetailFragment['channels']>;
@@ -14,7 +14,9 @@ export declare class StockLocationDetailComponent extends TypedBaseDetailCompone
14
14
  detailForm: import("@angular/forms").FormGroup<{
15
15
  name: import("@angular/forms").FormControl<string | null>;
16
16
  description: import("@angular/forms").FormControl<string | null>;
17
- customFields: import("@angular/forms").FormGroup<{}>;
17
+ customFields: import("@angular/forms").FormGroup<{
18
+ [x: string]: import("@angular/forms").FormControl<false | "" | 0 | Date | null>;
19
+ }>;
18
20
  }>;
19
21
  constructor(changeDetector: ChangeDetectorRef, dataService: DataService, formBuilder: FormBuilder, notificationService: NotificationService);
20
22
  ngOnInit(): void;
@@ -126,9 +126,19 @@ export declare function detailComponentWithResolver<T extends TypedDocumentNode<
126
126
  variables?: T extends TypedDocumentNode<any, infer V> ? Omit<V, 'id'> : never;
127
127
  }): {
128
128
  resolveFn: ResolveFn<{
129
- entity: Observable<ResultOf<T>[Field] | null>;
129
+ entity: Observable<ResultOf<T>[keyof ResultOf<T>] | null>;
130
130
  result?: ResultOf<T> | undefined;
131
131
  }>;
132
132
  breadcrumbFn: (result: any) => string | import("../providers/breadcrumb/breadcrumb.service").BreadcrumbLabelLinkPair | BreadcrumbValue[];
133
133
  component: Type<TypedBaseDetailComponent<T, Field>>;
134
134
  };
135
+ export declare function createBaseDetailResolveFn<T extends TypedDocumentNode<any, {
136
+ id: string;
137
+ }>, Field extends keyof ResultOf<T>, R extends Field>(config: {
138
+ query: T;
139
+ entityKey: R;
140
+ variables?: T extends TypedDocumentNode<any, infer V> ? Omit<V, 'id'> : never;
141
+ }): ResolveFn<{
142
+ entity: Observable<ResultOf<T>[Field] | null>;
143
+ result?: ResultOf<T>;
144
+ }>;
@@ -1,4 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { DataTableLocationId } from '../shared/components/data-table-2/data-table-custom-component.service';
2
3
  /**
3
4
  * @description
4
5
  * This interface should be implemented by any component being used as a custom input. For example,
@@ -60,4 +61,4 @@ export type ActionBarLocationId = PageLocationId;
60
61
  * @docsCategory custom-detail-components
61
62
  */
62
63
  export type CustomDetailComponentLocationId = 'administrator-profile' | 'administrator-detail' | 'channel-detail' | 'collection-detail' | 'country-detail' | 'customer-detail' | 'customer-group-detail' | 'draft-order-detail' | 'facet-detail' | 'global-settings-detail' | 'order-detail' | 'payment-method-detail' | 'product-detail' | 'product-variant-detail' | 'promotion-detail' | 'seller-detail' | 'shipping-method-detail' | 'stock-location-detail' | 'tax-category-detail' | 'tax-rate-detail' | 'zone-detail';
63
- export type UIExtensionLocationId = ActionBarLocationId | CustomDetailComponentLocationId;
64
+ export type UIExtensionLocationId = ActionBarLocationId | CustomDetailComponentLocationId | DataTableLocationId;
@@ -0,0 +1,6 @@
1
+ import { CustomFieldType } from '@vendure/common/lib/shared-types';
2
+ import { CustomFieldConfig } from '../generated-types';
3
+ export declare function getCustomFieldsDefaults(customFieldConfig: CustomFieldConfig[]): {
4
+ [key: string]: ReturnType<typeof getDefaultValue>;
5
+ };
6
+ export declare function getDefaultValue(type: CustomFieldType, isNullable?: boolean): false | 0 | "" | Date | null;
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "2.1.0-next.2";
1
+ export declare const ADMIN_UI_VERSION = "2.1.0-next.3";
@@ -17,6 +17,7 @@ export declare class AppShellComponent implements OnInit {
17
17
  private modalService;
18
18
  private localStorageService;
19
19
  private breadcrumbService;
20
+ version: string;
20
21
  userName$: Observable<string>;
21
22
  uiLanguageAndLocale$: Observable<[LanguageCode, string | undefined]>;
22
23
  direction$: Observable<'ltr' | 'rtl'>;
@@ -24,6 +25,7 @@ export declare class AppShellComponent implements OnInit {
24
25
  hideVendureBranding: boolean | undefined;
25
26
  pageTitle$: Observable<string>;
26
27
  mainNavExpanded$: Observable<boolean>;
28
+ devMode: boolean;
27
29
  constructor(authService: AuthService, dataService: DataService, router: Router, i18nService: I18nService, modalService: ModalService, localStorageService: LocalStorageService, breadcrumbService: BreadcrumbService);
28
30
  ngOnInit(): void;
29
31
  selectUiLanguage(): void;
@@ -0,0 +1,28 @@
1
+ import { Provider } from '@angular/core';
2
+ import { ActionBarItem } from '../providers/nav-builder/nav-builder-types';
3
+ /**
4
+ * @description
5
+ * Adds a button to the ActionBar at the top right of each list or detail view. The locationId can
6
+ * be determined by inspecting the DOM and finding the <vdr-action-bar> element and its
7
+ * `data-location-id` attribute.
8
+ *
9
+ * This should be used in the NgModule `providers` array of your ui extension module.
10
+ *
11
+ * @example
12
+ * ```TypeScript
13
+ * \@NgModule({
14
+ * imports: [SharedModule],
15
+ * providers: [
16
+ * addActionBarItem({
17
+ * id: 'print-invoice'
18
+ * label: 'Print Invoice',
19
+ * locationId: 'order-detail',
20
+ * routerLink: ['/extensions/invoicing'],
21
+ * }),
22
+ * ],
23
+ * })
24
+ * export class MyUiExtensionModule {}
25
+ * ```
26
+ * @docsCategory action-bar
27
+ */
28
+ export declare function addActionBarItem(config: ActionBarItem): Provider;
@@ -0,0 +1,60 @@
1
+ import { Provider } from '@angular/core';
2
+ import { NavMenuItem, NavMenuSection } from '../providers/nav-builder/nav-builder-types';
3
+ /**
4
+ * @description
5
+ * Add a section to the main nav menu. Providing the `before` argument will
6
+ * move the section before any existing section with the specified id. If
7
+ * omitted (or if the id is not found) the section will be appended to the
8
+ * existing set of sections.
9
+ * This should be used in the NgModule `providers` array of your ui extension module.
10
+ *
11
+ * @example
12
+ * ```TypeScript
13
+ * \@NgModule({
14
+ * imports: [SharedModule],
15
+ * providers: [
16
+ * addNavMenuSection({
17
+ * id: 'reports',
18
+ * label: 'Reports',
19
+ * items: [{
20
+ * // ...
21
+ * }],
22
+ * },
23
+ * 'settings'),
24
+ * ],
25
+ * })
26
+ * export class MyUiExtensionModule {}
27
+ * ```
28
+ * @docsCategory nav-menu
29
+ */
30
+ export declare function addNavMenuSection(config: NavMenuSection, before?: string): Provider;
31
+ /**
32
+ * @description
33
+ * Add a menu item to an existing section specified by `sectionId`. The id of the section
34
+ * can be found by inspecting the DOM and finding the `data-section-id` attribute.
35
+ * Providing the `before` argument will move the item before any existing item with the specified id.
36
+ * If omitted (or if the name is not found) the item will be appended to the
37
+ * end of the section.
38
+ *
39
+ * This should be used in the NgModule `providers` array of your ui extension module.
40
+ *
41
+ * @example
42
+ * ```TypeScript
43
+ * \@NgModule({
44
+ * imports: [SharedModule],
45
+ * providers: [
46
+ * addNavMenuItem({
47
+ * id: 'reviews',
48
+ * label: 'Product Reviews',
49
+ * routerLink: ['/extensions/reviews'],
50
+ * icon: 'star',
51
+ * },
52
+ * 'marketing'),
53
+ * ],
54
+ * })
55
+ * export class MyUiExtensionModule {}
56
+ * ``
57
+ *
58
+ * @docsCategory nav-menu
59
+ */
60
+ export declare function addNavMenuItem(config: NavMenuItem, sectionId: string, before?: string): Provider;
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AngularRouteComponent {
3
+ protected component: import("@angular/core").Type<any>;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularRouteComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<AngularRouteComponent, "vdr-angular-route-component", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,13 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { Observable } from 'rxjs';
4
+ import { AngularRouteComponentOptions } from '../types';
5
+ import * as i0 from "@angular/core";
6
+ export declare const ROUTE_COMPONENT_OPTIONS: InjectionToken<AngularRouteComponentOptions>;
7
+ export declare class RouteComponent {
8
+ private route;
9
+ protected title$: Observable<string | undefined>;
10
+ constructor(route: ActivatedRoute);
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouteComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouteComponent, "vdr-route-component", never, {}, {}, never, ["*"], true, never>;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { BreadcrumbValue } from '../../providers/breadcrumb/breadcrumb.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PageMetadataService {
4
+ private readonly routeComponentOptions;
5
+ setTitle(title: string): void;
6
+ setBreadcrumbs(value: BreadcrumbValue): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageMetadataService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<PageMetadataService>;
9
+ }
@@ -1,5 +1,5 @@
1
1
  import { FactoryProvider } from '@angular/core';
2
- import { BulkAction } from './bulk-action-types';
2
+ import { BulkAction } from '../providers/bulk-action-registry/bulk-action-types';
3
3
  /**
4
4
  * @description
5
5
  * Registers a custom {@link BulkAction} which can be invoked from the bulk action menu
@@ -0,0 +1,10 @@
1
+ import { Provider } from '@angular/core';
2
+ import { CustomDetailComponentConfig } from '../providers/custom-detail-component/custom-detail-component-types';
3
+ /**
4
+ * @description
5
+ * Registers a {@link CustomDetailComponent} to be placed in a given location. This allows you
6
+ * to embed any type of custom Angular component in the entity detail pages of the Admin UI.
7
+ *
8
+ * @docsCategory custom-detail-components
9
+ */
10
+ export declare function registerCustomDetailComponent(config: CustomDetailComponentConfig): Provider;
@@ -1,13 +1,17 @@
1
1
  import { FactoryProvider } from '@angular/core';
2
- import { DashboardWidgetConfig, WidgetLayoutDefinition } from './dashboard-widget-types';
2
+ import { DashboardWidgetConfig, WidgetLayoutDefinition } from '../providers/dashboard-widget/dashboard-widget-types';
3
3
  /**
4
4
  * @description
5
5
  * Registers a dashboard widget. Once registered, the widget can be set as part of the default
6
6
  * (using {@link setDashboardWidgetLayout}).
7
+ *
8
+ * @docsCategory dashboard-widgets
7
9
  */
8
10
  export declare function registerDashboardWidget(id: string, config: DashboardWidgetConfig): FactoryProvider;
9
11
  /**
10
12
  * @description
11
13
  * Sets the default widget layout for the Admin UI dashboard.
14
+ *
15
+ * @docsCategory dashboard-widgets
12
16
  */
13
17
  export declare function setDashboardWidgetLayout(layoutDef: WidgetLayoutDefinition): FactoryProvider;
@@ -0,0 +1,44 @@
1
+ import { DataTableComponentConfig, DataTableCustomComponentService } from '../shared/components/data-table-2/data-table-custom-component.service';
2
+ /**
3
+ * @description
4
+ * Allows you to override the default component used to render the data of a particular column in a DataTable.
5
+ * The component should implement the {@link CustomDataTableColumnComponent} interface.
6
+ *
7
+ * @example
8
+ * ```ts title="components/custom-table.component.ts"
9
+ * import { Component, Input } from '\@angular/core';
10
+ * import { CustomColumnComponent } from '\@vendure/admin-ui/core';
11
+ *
12
+ * @Component({
13
+ * selector: 'custom-slug-component',
14
+ * template: `
15
+ * <a [href]="'https://example.com/products/' + rowItem.slug" target="_blank">{{ rowItem.slug }}</a>
16
+ * `,
17
+ * standalone: true,
18
+ * })
19
+ * export class CustomTableComponent implements CustomColumnComponent {
20
+ * \@Input() rowItem: any;
21
+ * }
22
+ * ```
23
+ *
24
+ * ```ts title="providers.ts"
25
+ * import { registerDataTableComponent } from '\@vendure/admin-ui/core';
26
+ * import { CustomTableComponent } from './components/custom-table.component';
27
+ *
28
+ * export default [
29
+ * registerDataTableComponent({
30
+ * component: CustomTableComponent,
31
+ * tableId: 'product-list',
32
+ * columnId: 'slug',
33
+ * }),
34
+ * ];
35
+ * ```
36
+ *
37
+ * @docsCategory custom-table-components
38
+ */
39
+ export declare function registerDataTableComponent(config: DataTableComponentConfig): {
40
+ provide: import("@angular/core").InjectionToken<readonly (() => void | import("rxjs").Observable<unknown> | Promise<unknown>)[]>;
41
+ multi: boolean;
42
+ useFactory: (dataTableCustomComponentService: DataTableCustomComponentService) => () => void;
43
+ deps: (typeof DataTableCustomComponentService)[];
44
+ };
@@ -0,0 +1,50 @@
1
+ import { FactoryProvider, Type } from '@angular/core';
2
+ import { FormInputComponent } from '../common/component-registry-types';
3
+ /**
4
+ * @description
5
+ * Registers a custom FormInputComponent which can be used to control the argument inputs
6
+ * of a {@link ConfigurableOperationDef} (e.g. CollectionFilter, ShippingMethod etc) or for
7
+ * a custom field.
8
+ *
9
+ * @example
10
+ * ```TypeScript
11
+ * \@NgModule({
12
+ * imports: [SharedModule],
13
+ * declarations: [MyCustomFieldControl],
14
+ * providers: [
15
+ * registerFormInputComponent('my-custom-input', MyCustomFieldControl),
16
+ * ],
17
+ * })
18
+ * export class MyUiExtensionModule {}
19
+ * ```
20
+ *
21
+ * This input component can then be used in a custom field:
22
+ *
23
+ * @example
24
+ * ```TypeScript
25
+ * const config = {
26
+ * // ...
27
+ * customFields: {
28
+ * ProductVariant: [
29
+ * {
30
+ * name: 'rrp',
31
+ * type: 'int',
32
+ * ui: { component: 'my-custom-input' },
33
+ * },
34
+ * ]
35
+ * }
36
+ * }
37
+ * ```
38
+ *
39
+ * or with an argument of a {@link ConfigurableOperationDef}:
40
+ *
41
+ * @example
42
+ * ```TypeScript
43
+ * args: {
44
+ * rrp: { type: 'int', ui: { component: 'my-custom-input' } },
45
+ * }
46
+ * ```
47
+ *
48
+ * @docsCategory custom-input-components
49
+ */
50
+ export declare function registerFormInputComponent(id: string, component: Type<FormInputComponent>): FactoryProvider;
@@ -0,0 +1,11 @@
1
+ import { Provider } from '@angular/core';
2
+ import { HistoryEntryConfig } from '../providers/custom-history-entry-component/history-entry-component-types';
3
+ /**
4
+ * @description
5
+ * Registers a {@link HistoryEntryComponent} for displaying history entries in the Order/Customer
6
+ * history timeline.
7
+ *
8
+ * @since 1.9.0
9
+ * @docsCategory custom-history-entry-components
10
+ */
11
+ export declare function registerHistoryEntryComponent(config: HistoryEntryConfig): Provider;
@@ -0,0 +1,59 @@
1
+ import { Type } from '@angular/core';
2
+ import { ResolveFn, Route } from '@angular/router';
3
+ import { ResultOf, TypedDocumentNode } from '@graphql-typed-document-node/core';
4
+ import { DocumentNode } from 'graphql';
5
+ import { BehaviorSubject, Observable } from 'rxjs';
6
+ import { BaseDetailComponent } from '../common/base-detail.component';
7
+ import { BreadcrumbValue } from '../providers/breadcrumb/breadcrumb.service';
8
+ import { RouteComponent } from './components/route.component';
9
+ export type RegisterRouteComponentOptions<Component extends any | BaseDetailComponent<Entity>, Entity extends {
10
+ id: string;
11
+ updatedAt?: string;
12
+ }, T extends DocumentNode | TypedDocumentNode<any, {
13
+ id: string;
14
+ }>, Field extends keyof ResultOf<T>, R extends Field> = {
15
+ component: Type<Component> | Component;
16
+ title?: string;
17
+ breadcrumb?: BreadcrumbValue;
18
+ path?: string;
19
+ query?: T;
20
+ getBreadcrumbs?: (entity: Exclude<ResultOf<T>[R], 'Query'>) => BreadcrumbValue;
21
+ entityKey?: Component extends BaseDetailComponent<Entity> ? R : undefined;
22
+ variables?: T extends TypedDocumentNode<any, infer V> ? Omit<V, 'id'> : never;
23
+ routeConfig?: Route;
24
+ } & (Component extends BaseDetailComponent<Entity> ? {
25
+ entityKey: R;
26
+ } : unknown);
27
+ export declare function registerRouteComponent<Component extends any | BaseDetailComponent<Entity>, Entity extends {
28
+ id: string;
29
+ updatedAt?: string;
30
+ }, T extends DocumentNode | TypedDocumentNode<any, {
31
+ id: string;
32
+ }>, Field extends keyof ResultOf<T>, R extends Field>(options: RegisterRouteComponentOptions<Component, Entity, T, Field, R>): {
33
+ resolve: {
34
+ detail?: ResolveFn<{
35
+ entity: Observable<ResultOf<T>[Field] | null>;
36
+ result?: ResultOf<T> | undefined;
37
+ }> | undefined;
38
+ };
39
+ data: {
40
+ breadcrumb: BehaviorSubject<BreadcrumbValue> | ((data: any) => any);
41
+ };
42
+ component: typeof RouteComponent;
43
+ title?: string | Type<import("@angular/router").Resolve<string>> | ResolveFn<string> | undefined;
44
+ path: string;
45
+ pathMatch?: "prefix" | "full" | undefined;
46
+ matcher?: import("@angular/router").UrlMatcher | undefined;
47
+ loadComponent?: (() => Type<unknown> | Observable<Type<unknown> | import("@angular/router").DefaultExport<Type<unknown>>> | Promise<Type<unknown> | import("@angular/router").DefaultExport<Type<unknown>>>) | undefined;
48
+ redirectTo?: string | undefined;
49
+ outlet?: string | undefined;
50
+ canActivate?: any[] | undefined;
51
+ canMatch?: any[] | undefined;
52
+ canActivateChild?: any[] | undefined;
53
+ canDeactivate?: any[] | undefined;
54
+ canLoad?: any[] | undefined;
55
+ children?: import("@angular/router").Routes | undefined;
56
+ loadChildren?: import("@angular/router").LoadChildrenCallback | undefined;
57
+ runGuardsAndResolvers?: import("@angular/router").RunGuardsAndResolvers | undefined;
58
+ providers: (import("@angular/core").Provider | import("@angular/core").EnvironmentProviders)[];
59
+ };
@@ -0,0 +1,11 @@
1
+ import { Type } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import { BreadcrumbValue } from '../providers/breadcrumb/breadcrumb.service';
4
+ export interface RouteComponentOptions {
5
+ component: any;
6
+ title$: Subject<string | undefined>;
7
+ breadcrumb$: Subject<BreadcrumbValue>;
8
+ }
9
+ export interface AngularRouteComponentOptions extends RouteComponentOptions {
10
+ component: Type<any>;
11
+ }
@@ -1,10 +1,13 @@
1
- import { Type } from '@angular/core';
1
+ import { Provider, Type } from '@angular/core';
2
2
  import { FormInputComponent } from '../../common/component-registry-types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ComponentRegistryService {
5
5
  private inputComponentMap;
6
- registerInputComponent(id: string, component: Type<FormInputComponent<any>>): void;
7
- getInputComponent(id: string): Type<FormInputComponent<any>> | undefined;
6
+ registerInputComponent(id: string, component: Type<FormInputComponent<any>>, providers?: Provider[]): void;
7
+ getInputComponent(id: string): {
8
+ type: Type<FormInputComponent<any>>;
9
+ providers: Provider[];
10
+ } | undefined;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentRegistryService, never>;
9
12
  static ɵprov: i0.ɵɵInjectableDeclaration<ComponentRegistryService>;
10
13
  }
@@ -1,4 +1,4 @@
1
- import { Type } from '@angular/core';
1
+ import { Provider, Type } 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';
@@ -22,4 +22,5 @@ export interface CustomDetailComponent {
22
22
  export interface CustomDetailComponentConfig {
23
23
  locationId: CustomDetailComponentLocationId;
24
24
  component: Type<CustomDetailComponent>;
25
+ providers?: Provider[];
25
26
  }
@@ -1,14 +1,5 @@
1
- import { Provider } from '@angular/core';
2
1
  import { CustomDetailComponentConfig } from './custom-detail-component-types';
3
2
  import * as i0 from "@angular/core";
4
- /**
5
- * @description
6
- * Registers a {@link CustomDetailComponent} to be placed in a given location. This allows you
7
- * to embed any type of custom Angular component in the entity detail pages of the Admin UI.
8
- *
9
- * @docsCategory custom-detail-components
10
- */
11
- export declare function registerCustomDetailComponent(config: CustomDetailComponentConfig): Provider;
12
3
  export declare class CustomDetailComponentService {
13
4
  private customDetailComponents;
14
5
  registerCustomDetailComponent(config: CustomDetailComponentConfig): void;
@@ -1,15 +1,6 @@
1
- import { Provider, Type } from '@angular/core';
1
+ import { Type } from '@angular/core';
2
2
  import { HistoryEntryComponent, HistoryEntryConfig } from './history-entry-component-types';
3
3
  import * as i0 from "@angular/core";
4
- /**
5
- * @description
6
- * Registers a {@link HistoryEntryComponent} for displaying history entries in the Order/Customer
7
- * history timeline.
8
- *
9
- * @since 1.9.0
10
- * @docsCategory custom-history-entry-components
11
- */
12
- export declare function registerHistoryEntryComponent(config: HistoryEntryConfig): Provider;
13
4
  export declare class HistoryEntryComponentService {
14
5
  private customEntryComponents;
15
6
  registerComponent(config: HistoryEntryConfig): void;
@@ -1,10 +1,17 @@
1
1
  import { Type } from '@angular/core';
2
2
  export type DashboardWidgetWidth = 3 | 4 | 6 | 8 | 12;
3
+ /**
4
+ * @description
5
+ * A configuration object for a dashboard widget.
6
+ *
7
+ * @docsCategory dashboard-widgets
8
+ */
3
9
  export interface DashboardWidgetConfig {
4
10
  /**
11
+ * @description
5
12
  * Used to specify the widget component. Supports both eager- and lazy-loading.
6
13
  * @example
7
- * ```TypeScript
14
+ * ```ts
8
15
  * // eager-loading
9
16
  * loadComponent: () => MyWidgetComponent,
10
17
  *
@@ -14,21 +21,30 @@ export interface DashboardWidgetConfig {
14
21
  */
15
22
  loadComponent: () => Promise<Type<any>> | Type<any>;
16
23
  /**
24
+ * @description
17
25
  * The title of the widget. Can be a translation token as it will get passed
18
26
  * through the `translate` pipe.
19
27
  */
20
28
  title?: string;
21
29
  /**
30
+ * @description
22
31
  * The supported widths of the widget, in terms of a Bootstrap-style 12-column grid.
23
32
  * If omitted, then it is assumed the widget supports all widths.
24
33
  */
25
34
  supportedWidths?: DashboardWidgetWidth[];
26
35
  /**
36
+ * @description
27
37
  * If set, the widget will only be displayed if the current user has all the
28
38
  * specified permissions.
29
39
  */
30
40
  requiresPermissions?: string[];
31
41
  }
42
+ /**
43
+ * @description
44
+ * A configuration object for the default dashboard widget layout.
45
+ *
46
+ * @docsCategory dashboard-widgets
47
+ */
32
48
  export type WidgetLayoutDefinition = Array<{
33
49
  id: string;
34
50
  width: DashboardWidgetWidth;
@@ -1,4 +1,3 @@
1
- import { ComponentFactoryResolver } from '@angular/core';
2
1
  import { Type } from '@vendure/common/lib/shared-types';
3
2
  import { Observable } from 'rxjs';
4
3
  import { OverlayHostService } from '../overlay-host/overlay-host.service';
@@ -14,9 +13,8 @@ import * as i0 from "@angular/core";
14
13
  * @docsWeight 0
15
14
  */
16
15
  export declare class ModalService {
17
- private componentFactoryResolver;
18
16
  private overlayHostService;
19
- constructor(componentFactoryResolver: ComponentFactoryResolver, overlayHostService: OverlayHostService);
17
+ constructor(overlayHostService: OverlayHostService);
20
18
  /**
21
19
  * @description
22
20
  * Create a modal from a component. The component must implement the {@link Dialog} interface.