@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.
Files changed (252) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +87 -162
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +2022 -404
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-customer.umd.js +79 -57
  6. package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
  7. package/bundles/vendure-admin-ui-marketing.umd.js +11 -1
  8. package/bundles/vendure-admin-ui-marketing.umd.js.map +1 -1
  9. package/bundles/vendure-admin-ui-order.umd.js +10 -2
  10. package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
  11. package/bundles/vendure-admin-ui-settings.umd.js +156 -153
  12. package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
  13. package/catalog/components/collection-detail/collection-detail.component.d.ts +0 -1
  14. package/catalog/components/collection-list/collection-list.component.d.ts +3 -0
  15. package/catalog/components/facet-detail/facet-detail.component.d.ts +0 -1
  16. package/catalog/components/facet-list/facet-list.component.d.ts +3 -5
  17. package/catalog/components/product-detail/product-detail.component.d.ts +0 -1
  18. package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
  19. package/core/app.component.d.ts +1 -0
  20. package/core/common/base-detail.component.d.ts +42 -1
  21. package/core/common/base-entity-resolver.d.ts +28 -1
  22. package/core/common/base-list.component.d.ts +75 -1
  23. package/core/common/component-registry-types.d.ts +46 -0
  24. package/core/common/generated-types.d.ts +282 -23
  25. package/core/common/utilities/get-default-ui-language.d.ts +1 -0
  26. package/core/common/version.d.ts +1 -1
  27. package/core/components/app-shell/app-shell.component.d.ts +1 -1
  28. package/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.d.ts +17 -4
  29. package/core/components/user-menu/user-menu.component.d.ts +1 -1
  30. package/core/data/client-state/client-defaults.d.ts +1 -1
  31. package/core/data/definitions/client-definitions.d.ts +3 -1
  32. package/core/data/definitions/customer-definitions.d.ts +1 -0
  33. package/core/data/definitions/settings-definitions.d.ts +1 -0
  34. package/core/data/providers/client-data.service.d.ts +3 -1
  35. package/core/data/providers/data.service.d.ts +54 -12
  36. package/core/data/providers/settings-data.service.d.ts +3 -0
  37. package/core/data/query-result.d.ts +11 -2
  38. package/core/providers/custom-detail-component/custom-detail-component-types.d.ts +25 -0
  39. package/core/providers/custom-detail-component/custom-detail-component.service.d.ts +15 -0
  40. package/core/providers/custom-field-component/custom-field-component.service.d.ts +3 -3
  41. package/core/providers/local-storage/local-storage.service.d.ts +1 -0
  42. package/core/providers/modal/modal.service.d.ts +41 -12
  43. package/core/providers/nav-builder/nav-builder-types.d.ts +19 -1
  44. package/core/providers/nav-builder/nav-builder.service.d.ts +14 -10
  45. package/core/providers/notification/notification.service.d.ts +37 -0
  46. package/core/public_api.d.ts +8 -0
  47. package/core/shared/components/action-bar-items/action-bar-items.component.d.ts +2 -1
  48. package/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.d.ts +18 -0
  49. package/core/shared/components/asset-preview/asset-preview.component.d.ts +0 -1
  50. package/core/shared/components/chip/chip.component.d.ts +20 -0
  51. package/core/shared/components/currency-input/currency-input.component.d.ts +11 -0
  52. package/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.d.ts +17 -0
  53. package/core/shared/components/data-table/data-table.component.d.ts +59 -0
  54. package/core/shared/components/datetime-picker/datetime-picker.component.d.ts +17 -0
  55. package/core/shared/components/dropdown/dropdown.component.d.ts +25 -0
  56. package/core/shared/components/extension-host/extension-host.service.d.ts +3 -1
  57. package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +22 -0
  58. package/core/shared/components/modal-dialog/modal-dialog.component.d.ts +1 -1
  59. package/core/shared/components/object-tree/object-tree.component.d.ts +8 -0
  60. package/core/shared/components/order-state-label/order-state-label.component.d.ts +10 -0
  61. package/core/shared/components/product-selector/product-selector.component.d.ts +12 -0
  62. package/core/shared/components/rich-text-editor/rich-text-editor.component.d.ts +12 -1
  63. package/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.d.ts +21 -0
  64. package/core/shared/components/ui-extension-point/ui-extension-point.component.d.ts +15 -0
  65. package/core/shared/directives/if-multichannel.directive.d.ts +14 -0
  66. package/core/shared/directives/if-permissions.directive.d.ts +3 -0
  67. package/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.d.ts +7 -0
  68. package/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.d.ts +32 -0
  69. package/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.d.ts +7 -0
  70. package/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.d.ts +8 -0
  71. package/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.d.ts +10 -0
  72. package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +8 -0
  73. package/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.d.ts +12 -0
  74. package/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.d.ts +7 -0
  75. package/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.d.ts +8 -0
  76. package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +40 -3
  77. package/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.d.ts +9 -0
  78. package/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.d.ts +16 -0
  79. package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +9 -0
  80. package/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.d.ts +12 -3
  81. package/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.d.ts +7 -0
  82. package/core/shared/pipes/asset-preview.pipe.d.ts +14 -0
  83. package/core/shared/pipes/duration.pipe.d.ts +8 -0
  84. package/core/shared/pipes/file-size.pipe.d.ts +8 -0
  85. package/core/shared/pipes/has-permission.pipe.d.ts +3 -1
  86. package/core/shared/pipes/locale-currency-name.pipe.d.ts +8 -0
  87. package/core/shared/pipes/locale-currency.pipe.d.ts +12 -0
  88. package/core/shared/pipes/locale-date.pipe.d.ts +7 -0
  89. package/core/shared/pipes/locale-language-name.pipe.d.ts +9 -1
  90. package/core/shared/pipes/locale-region-name.pipe.d.ts +18 -0
  91. package/core/shared/pipes/time-ago.pipe.d.ts +8 -0
  92. package/core/vendure-admin-ui-core.metadata.json +1 -1
  93. package/customer/components/customer-detail/customer-detail.component.d.ts +2 -3
  94. package/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.d.ts +14 -3
  95. package/customer/vendure-admin-ui-customer.metadata.json +1 -1
  96. package/esm2015/catalog/catalog.module.js +29 -28
  97. package/esm2015/catalog/components/asset-detail/asset-detail.component.js +2 -10
  98. package/esm2015/catalog/components/collection-detail/collection-detail.component.js +3 -16
  99. package/esm2015/catalog/components/collection-list/collection-list.component.js +23 -5
  100. package/esm2015/catalog/components/facet-detail/facet-detail.component.js +3 -15
  101. package/esm2015/catalog/components/facet-list/facet-list.component.js +24 -9
  102. package/esm2015/catalog/components/product-assets/product-assets.component.js +2 -2
  103. package/esm2015/catalog/components/product-detail/product-detail.component.js +5 -27
  104. package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +3 -3
  105. package/esm2015/catalog/components/update-product-option-dialog/update-product-option-dialog.component.js +2 -2
  106. package/esm2015/catalog/components/variant-price-detail/variant-price-detail.component.js +2 -2
  107. package/esm2015/core/app.component.js +20 -2
  108. package/esm2015/core/common/base-detail.component.js +53 -1
  109. package/esm2015/core/common/base-entity-resolver.js +29 -2
  110. package/esm2015/core/common/base-list.component.js +76 -2
  111. package/esm2015/core/common/component-registry-types.js +1 -1
  112. package/esm2015/core/common/generated-types.js +1 -1
  113. package/esm2015/core/common/introspection-result.js +249 -183
  114. package/esm2015/core/common/utilities/get-default-ui-language.js +9 -1
  115. package/esm2015/core/common/version.js +2 -2
  116. package/esm2015/core/components/app-shell/app-shell.component.js +12 -7
  117. package/esm2015/core/components/main-nav/main-nav.component.js +2 -2
  118. package/esm2015/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.js +281 -5
  119. package/esm2015/core/components/user-menu/user-menu.component.js +3 -3
  120. package/esm2015/core/data/client-state/client-defaults.js +5 -2
  121. package/esm2015/core/data/client-state/client-resolvers.js +32 -33
  122. package/esm2015/core/data/definitions/client-definitions.js +18 -3
  123. package/esm2015/core/data/definitions/customer-definitions.js +21 -25
  124. package/esm2015/core/data/definitions/settings-definitions.js +50 -5
  125. package/esm2015/core/data/providers/client-data.service.js +15 -4
  126. package/esm2015/core/data/providers/data.service.js +44 -2
  127. package/esm2015/core/data/providers/settings-data.service.js +12 -4
  128. package/esm2015/core/data/query-result.js +14 -4
  129. package/esm2015/core/providers/custom-detail-component/custom-detail-component-types.js +2 -0
  130. package/esm2015/core/providers/custom-detail-component/custom-detail-component.service.js +44 -0
  131. package/esm2015/core/providers/custom-field-component/custom-field-component.service.js +6 -6
  132. package/esm2015/core/providers/local-storage/local-storage.service.js +1 -1
  133. package/esm2015/core/providers/modal/modal.service.js +20 -12
  134. package/esm2015/core/providers/nav-builder/nav-builder-types.js +1 -1
  135. package/esm2015/core/providers/nav-builder/nav-builder.service.js +15 -11
  136. package/esm2015/core/providers/notification/notification.service.js +24 -1
  137. package/esm2015/core/public_api.js +9 -1
  138. package/esm2015/core/shared/components/action-bar/action-bar.component.js +1 -1
  139. package/esm2015/core/shared/components/action-bar-items/action-bar-items.component.js +3 -3
  140. package/esm2015/core/shared/components/address-form/address-form.component.js +2 -2
  141. package/esm2015/core/shared/components/asset-picker-dialog/asset-picker-dialog.component.js +19 -1
  142. package/esm2015/core/shared/components/asset-preview/asset-preview.component.js +2 -6
  143. package/esm2015/core/shared/components/chip/chip.component.js +12 -1
  144. package/esm2015/core/shared/components/currency-input/currency-input.component.js +12 -1
  145. package/esm2015/core/shared/components/custom-detail-component-host/custom-detail-component-host.component.js +44 -0
  146. package/esm2015/core/shared/components/data-table/data-table.component.js +60 -1
  147. package/esm2015/core/shared/components/datetime-picker/datetime-picker.component.js +17 -1
  148. package/esm2015/core/shared/components/dropdown/dropdown.component.js +26 -1
  149. package/esm2015/core/shared/components/extension-host/extension-host.component.js +3 -3
  150. package/esm2015/core/shared/components/extension-host/extension-host.service.js +16 -2
  151. package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +23 -1
  152. package/esm2015/core/shared/components/modal-dialog/modal-dialog.component.js +2 -2
  153. package/esm2015/core/shared/components/object-tree/object-tree.component.js +9 -1
  154. package/esm2015/core/shared/components/order-state-label/order-state-label.component.js +11 -1
  155. package/esm2015/core/shared/components/product-selector/product-selector.component.js +13 -1
  156. package/esm2015/core/shared/components/rich-text-editor/rich-text-editor.component.js +14 -3
  157. package/esm2015/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +48 -0
  158. package/esm2015/core/shared/components/title-input/title-input.component.js +1 -1
  159. package/esm2015/core/shared/components/ui-extension-point/ui-extension-point.component.js +31 -0
  160. package/esm2015/core/shared/directives/if-multichannel.directive.js +15 -1
  161. package/esm2015/core/shared/directives/if-permissions.directive.js +4 -1
  162. package/esm2015/core/shared/dynamic-form-inputs/boolean-form-input/boolean-form-input.component.js +8 -1
  163. package/esm2015/core/shared/dynamic-form-inputs/code-editor-form-input/json-editor-form-input.component.js +125 -0
  164. package/esm2015/core/shared/dynamic-form-inputs/currency-form-input/currency-form-input.component.js +8 -1
  165. package/esm2015/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.js +9 -1
  166. package/esm2015/core/shared/dynamic-form-inputs/date-form-input/date-form-input.component.js +21 -2
  167. package/esm2015/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +4 -3
  168. package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +9 -1
  169. package/esm2015/core/shared/dynamic-form-inputs/number-form-input/number-form-input.component.js +29 -2
  170. package/esm2015/core/shared/dynamic-form-inputs/password-form-input/password-form-input.component.js +8 -1
  171. package/esm2015/core/shared/dynamic-form-inputs/product-selector-form-input/product-selector-form-input.component.js +9 -1
  172. package/esm2015/core/shared/dynamic-form-inputs/register-dynamic-input-components.js +42 -2
  173. package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +10 -1
  174. package/esm2015/core/shared/dynamic-form-inputs/rich-text-form-input/rich-text-form-input.component.js +20 -0
  175. package/esm2015/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +14 -2
  176. package/esm2015/core/shared/dynamic-form-inputs/text-form-input/text-form-input.component.js +17 -2
  177. package/esm2015/core/shared/dynamic-form-inputs/textarea-form-input/textarea-form-input.component.js +8 -1
  178. package/esm2015/core/shared/pipes/asset-preview.pipe.js +15 -1
  179. package/esm2015/core/shared/pipes/duration.pipe.js +9 -1
  180. package/esm2015/core/shared/pipes/file-size.pipe.js +9 -1
  181. package/esm2015/core/shared/pipes/has-permission.pipe.js +4 -2
  182. package/esm2015/core/shared/pipes/locale-base.pipe.js +7 -4
  183. package/esm2015/core/shared/pipes/locale-currency-name.pipe.js +9 -1
  184. package/esm2015/core/shared/pipes/locale-currency.pipe.js +13 -1
  185. package/esm2015/core/shared/pipes/locale-date.pipe.js +8 -1
  186. package/esm2015/core/shared/pipes/locale-language-name.pipe.js +10 -2
  187. package/esm2015/core/shared/pipes/locale-region-name.pipe.js +48 -0
  188. package/esm2015/core/shared/pipes/time-ago.pipe.js +9 -1
  189. package/esm2015/core/shared/shared.module.js +13 -1
  190. package/esm2015/customer/components/customer-detail/customer-detail.component.js +5 -16
  191. package/esm2015/customer/components/customer-group-detail-dialog/customer-group-detail-dialog.component.js +32 -3
  192. package/esm2015/customer/components/customer-group-list/customer-group-list.component.js +22 -18
  193. package/esm2015/marketing/components/promotion-detail/promotion-detail.component.js +9 -2
  194. package/esm2015/order/components/order-detail/order-detail.component.js +11 -3
  195. package/esm2015/settings/components/admin-detail/admin-detail.component.js +3 -14
  196. package/esm2015/settings/components/channel-detail/channel-detail.component.js +3 -14
  197. package/esm2015/settings/components/country-detail/country-detail.component.js +11 -3
  198. package/esm2015/settings/components/country-list/country-list.component.js +19 -7
  199. package/esm2015/settings/components/global-settings/global-settings.component.js +3 -14
  200. package/esm2015/settings/components/payment-method-detail/payment-method-detail.component.js +9 -2
  201. package/esm2015/settings/components/profile/profile.component.js +3 -14
  202. package/esm2015/settings/components/shipping-method-detail/shipping-method-detail.component.js +3 -16
  203. package/esm2015/settings/components/tax-category-detail/tax-category-detail.component.js +13 -3
  204. package/esm2015/settings/components/tax-rate-detail/tax-rate-detail.component.js +9 -2
  205. package/esm2015/settings/components/zone-detail-dialog/zone-detail-dialog.component.js +32 -3
  206. package/esm2015/settings/components/zone-list/zone-list.component.js +19 -8
  207. package/fesm2015/vendure-admin-ui-catalog.js +83 -102
  208. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  209. package/fesm2015/vendure-admin-ui-core.js +1865 -341
  210. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  211. package/fesm2015/vendure-admin-ui-customer.js +54 -34
  212. package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
  213. package/fesm2015/vendure-admin-ui-marketing.js +8 -1
  214. package/fesm2015/vendure-admin-ui-marketing.js.map +1 -1
  215. package/fesm2015/vendure-admin-ui-order.js +10 -2
  216. package/fesm2015/vendure-admin-ui-order.js.map +1 -1
  217. package/fesm2015/vendure-admin-ui-settings.js +110 -85
  218. package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
  219. package/marketing/components/promotion-detail/promotion-detail.component.d.ts +2 -1
  220. package/marketing/vendure-admin-ui-marketing.metadata.json +1 -1
  221. package/order/vendure-admin-ui-order.metadata.json +1 -1
  222. package/package.json +6 -5
  223. package/settings/components/admin-detail/admin-detail.component.d.ts +0 -1
  224. package/settings/components/channel-detail/channel-detail.component.d.ts +0 -1
  225. package/settings/components/country-detail/country-detail.component.d.ts +2 -1
  226. package/settings/components/country-list/country-list.component.d.ts +7 -2
  227. package/settings/components/global-settings/global-settings.component.d.ts +0 -1
  228. package/settings/components/payment-method-detail/payment-method-detail.component.d.ts +2 -1
  229. package/settings/components/profile/profile.component.d.ts +0 -1
  230. package/settings/components/shipping-method-detail/shipping-method-detail.component.d.ts +0 -1
  231. package/settings/components/tax-category-detail/tax-category-detail.component.d.ts +2 -1
  232. package/settings/components/tax-rate-detail/tax-rate-detail.component.d.ts +2 -1
  233. package/settings/components/zone-detail-dialog/zone-detail-dialog.component.d.ts +14 -3
  234. package/settings/components/zone-list/zone-list.component.d.ts +6 -2
  235. package/settings/vendure-admin-ui-settings.metadata.json +1 -1
  236. package/static/i18n-messages/cs.json +7 -0
  237. package/static/i18n-messages/de.json +7 -0
  238. package/static/i18n-messages/en.json +7 -0
  239. package/static/i18n-messages/es.json +8 -1
  240. package/static/i18n-messages/fr.json +7 -0
  241. package/static/i18n-messages/it.json +7 -0
  242. package/static/i18n-messages/pl.json +7 -0
  243. package/static/i18n-messages/pt_BR.json +7 -0
  244. package/static/i18n-messages/pt_PT.json +7 -0
  245. package/static/i18n-messages/ru.json +7 -0
  246. package/static/i18n-messages/uk.json +7 -0
  247. package/static/i18n-messages/zh_Hans.json +7 -0
  248. package/static/i18n-messages/zh_Hant.json +7 -0
  249. package/static/styles/global/_utilities.scss +3 -1
  250. package/static/styles/theme/dark.scss +9 -0
  251. package/static/styles/theme/default.scss +8 -0
  252. package/static/theme.min.css +1 -1
@@ -1,2 +1,3 @@
1
1
  import { LanguageCode } from '../generated-types';
2
2
  export declare function getDefaultUiLanguage(): LanguageCode;
3
+ export declare function getDefaultUiLocale(): string | undefined;
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "1.3.4";
1
+ export declare const ADMIN_UI_VERSION = "1.4.2";
@@ -15,7 +15,7 @@ export declare class AppShellComponent implements OnInit {
15
15
  private modalService;
16
16
  private localStorageService;
17
17
  userName$: Observable<string>;
18
- uiLanguage$: Observable<LanguageCode>;
18
+ uiLanguageAndLocale$: Observable<[LanguageCode, string | undefined]>;
19
19
  availableLanguages: LanguageCode[];
20
20
  constructor(authService: AuthService, dataService: DataService, router: Router, i18nService: I18nService, modalService: ModalService, localStorageService: LocalStorageService);
21
21
  ngOnInit(): void;
@@ -1,8 +1,21 @@
1
- import { LanguageCode } from '../../common/generated-types';
1
+ import { OnInit } from '@angular/core';
2
+ import { CurrencyCode, LanguageCode } from '../../common/generated-types';
2
3
  import { Dialog } from '../../providers/modal/modal.service';
3
- export declare class UiLanguageSwitcherDialogComponent implements Dialog<LanguageCode> {
4
- resolveWith: (result?: LanguageCode) => void;
4
+ export declare class UiLanguageSwitcherDialogComponent implements Dialog<[LanguageCode, string | undefined]>, OnInit {
5
+ resolveWith: (result?: [LanguageCode, string | undefined]) => void;
5
6
  currentLanguage: LanguageCode;
6
7
  availableLanguages: LanguageCode[];
7
- setLanguage(languageCode: LanguageCode): void;
8
+ currentLocale: string | undefined;
9
+ availableLocales: string[];
10
+ availableCurrencyCodes: CurrencyCode[];
11
+ selectedCurrencyCode: string;
12
+ previewLocale: string;
13
+ readonly browserDefaultLocale: string | undefined;
14
+ readonly now: string;
15
+ constructor();
16
+ ngOnInit(): void;
17
+ updatePreviewLocale(): void;
18
+ setLanguage(): void;
19
+ cancel(): void;
20
+ private createLocaleString;
8
21
  }
@@ -3,7 +3,7 @@ import { LanguageCode } from '../../common/generated-types';
3
3
  export declare class UserMenuComponent {
4
4
  userName: string;
5
5
  availableLanguages: LanguageCode[];
6
- uiLanguage: LanguageCode;
6
+ uiLanguageAndLocale: [LanguageCode, string | undefined];
7
7
  logOut: EventEmitter<void>;
8
8
  selectUiLanguage: EventEmitter<void>;
9
9
  }
@@ -14,5 +14,5 @@ export declare function getClientDefaults(localStorageService: LocalStorageServi
14
14
  };
15
15
  uiState: {
16
16
  __typename?: "UiState" | undefined;
17
- } & Pick<import("../../common/generated-types").UiState, "language" | "contentLanguage" | "theme">;
17
+ } & Pick<import("../../common/generated-types").UiState, "language" | "locale" | "contentLanguage" | "theme" | "displayUiExtensionPoints">;
18
18
  };
@@ -3,7 +3,9 @@ export declare const REQUEST_COMPLETED: import("graphql").DocumentNode;
3
3
  export declare const USER_STATUS_FRAGMENT: import("graphql").DocumentNode;
4
4
  export declare const SET_AS_LOGGED_IN: import("graphql").DocumentNode;
5
5
  export declare const SET_AS_LOGGED_OUT: import("graphql").DocumentNode;
6
- export declare const SET_UI_LANGUAGE: import("graphql").DocumentNode;
6
+ export declare const SET_UI_LANGUAGE_AND_LOCALE: import("graphql").DocumentNode;
7
+ export declare const SET_UI_LOCALE: import("graphql").DocumentNode;
8
+ export declare const SET_DISPLAY_UI_EXTENSION_POINTS: import("graphql").DocumentNode;
7
9
  export declare const SET_CONTENT_LANGUAGE: import("graphql").DocumentNode;
8
10
  export declare const SET_UI_THEME: import("graphql").DocumentNode;
9
11
  export declare const GET_NEWTORK_STATUS: import("graphql").DocumentNode;
@@ -1,5 +1,6 @@
1
1
  export declare const ADDRESS_FRAGMENT: import("graphql").DocumentNode;
2
2
  export declare const CUSTOMER_FRAGMENT: import("graphql").DocumentNode;
3
+ export declare const CUSTOMER_GROUP_FRAGMENT: import("graphql").DocumentNode;
3
4
  export declare const GET_CUSTOMER_LIST: import("graphql").DocumentNode;
4
5
  export declare const GET_CUSTOMER: import("graphql").DocumentNode;
5
6
  export declare const CREATE_CUSTOMER: import("graphql").DocumentNode;
@@ -21,6 +21,7 @@ export declare const UPDATE_TAX_CATEGORY: import("graphql").DocumentNode;
21
21
  export declare const DELETE_TAX_CATEGORY: import("graphql").DocumentNode;
22
22
  export declare const TAX_RATE_FRAGMENT: import("graphql").DocumentNode;
23
23
  export declare const GET_TAX_RATE_LIST: import("graphql").DocumentNode;
24
+ export declare const GET_TAX_RATE_LIST_SIMPLE: import("graphql").DocumentNode;
24
25
  export declare const GET_TAX_RATE: import("graphql").DocumentNode;
25
26
  export declare const CREATE_TAX_RATE: import("graphql").DocumentNode;
26
27
  export declare const UPDATE_TAX_RATE: import("graphql").DocumentNode;
@@ -14,9 +14,11 @@ export declare class ClientDataService {
14
14
  logOut(): import("rxjs").Observable<unknown>;
15
15
  userStatus(): import("../query-result").QueryResult<import("../../common/generated-types").GetUserStatusQuery, Record<string, any>>;
16
16
  uiState(): import("../query-result").QueryResult<import("../../common/generated-types").GetUiStateQuery, Record<string, any>>;
17
- setUiLanguage(languageCode: LanguageCode): import("rxjs").Observable<import("../../common/generated-types").SetUiLanguageMutation>;
17
+ setUiLanguage(languageCode: LanguageCode, locale?: string): import("rxjs").Observable<import("../../common/generated-types").SetUiLanguageMutation>;
18
+ setUiLocale(locale: string | undefined): import("rxjs").Observable<import("../../common/generated-types").SetUiLocaleMutation>;
18
19
  setContentLanguage(languageCode: LanguageCode): import("rxjs").Observable<import("../../common/generated-types").SetContentLanguageMutation>;
19
20
  setUiTheme(theme: string): import("rxjs").Observable<import("../../common/generated-types").SetUiThemeMutation>;
21
+ setDisplayUiExtensionPoints(display: boolean): import("rxjs").Observable<import("../../common/generated-types").SetDisplayUiExtensionPointsMutation>;
20
22
  setActiveChannel(channelId: string): import("rxjs").Observable<import("../../common/generated-types").SetActiveChannelMutation>;
21
23
  updateUserChannels(channels: CurrentUserChannelInput[]): import("rxjs").Observable<import("../../common/generated-types").UpdateUserChannelsMutation>;
22
24
  }
@@ -14,26 +14,68 @@ import { ProductDataService } from './product-data.service';
14
14
  import { PromotionDataService } from './promotion-data.service';
15
15
  import { SettingsDataService } from './settings-data.service';
16
16
  import { ShippingMethodDataService } from './shipping-method-data.service';
17
+ /**
18
+ * @description
19
+ * Used to interact with the Admin API via GraphQL queries. Internally this service uses the
20
+ * Apollo Client, which means it maintains a normalized entity cache. For this reason, it is
21
+ * advisable to always select the `id` field of any entity, which will allow the returned data
22
+ * to be effectively cached.
23
+ *
24
+ * @docsCategory providers
25
+ * @docsPage DataService
26
+ * @docsWeight 0
27
+ */
17
28
  export declare class DataService {
18
29
  private baseDataService;
19
- promotion: PromotionDataService;
20
- administrator: AdministratorDataService;
21
- auth: AuthDataService;
22
- collection: CollectionDataService;
23
- product: ProductDataService;
24
- client: ClientDataService;
25
- facet: FacetDataService;
26
- order: OrderDataService;
27
- settings: SettingsDataService;
28
- customer: CustomerDataService;
29
- shippingMethod: ShippingMethodDataService;
30
+ /** @internal */ promotion: PromotionDataService;
31
+ /** @internal */ administrator: AdministratorDataService;
32
+ /** @internal */ auth: AuthDataService;
33
+ /** @internal */ collection: CollectionDataService;
34
+ /** @internal */ product: ProductDataService;
35
+ /** @internal */ client: ClientDataService;
36
+ /** @internal */ facet: FacetDataService;
37
+ /** @internal */ order: OrderDataService;
38
+ /** @internal */ settings: SettingsDataService;
39
+ /** @internal */ customer: CustomerDataService;
40
+ /** @internal */ shippingMethod: ShippingMethodDataService;
41
+ /** @internal */
30
42
  constructor(baseDataService: BaseDataService);
31
43
  /**
32
- * Perform a GraphQL query.
44
+ * @description
45
+ * Perform a GraphQL query. Returns a {@link QueryResult} which allows further control over
46
+ * they type of result returned, e.g. stream of values, single value etc.
47
+ *
48
+ * @example
49
+ * ```TypeScript
50
+ * const result$ = this.dataService.query(gql`
51
+ * query MyQuery($id: ID!) {
52
+ * product(id: $id) {
53
+ * id
54
+ * name
55
+ * slug
56
+ * }
57
+ * },
58
+ * { id: 123 },
59
+ * ).mapSingle(data => data.product);
60
+ * ```
33
61
  */
34
62
  query<T, V = Record<string, any>>(query: DocumentNode, variables?: V, fetchPolicy?: WatchQueryFetchPolicy): QueryResult<T, V>;
35
63
  /**
64
+ * @description
36
65
  * Perform a GraphQL mutation.
66
+ *
67
+ * @example
68
+ * ```TypeScript
69
+ * const result$ = this.dataService.mutate(gql`
70
+ * mutation MyMutation($input: UpdateEntityInput!) {
71
+ * updateEntity(input: $input) {
72
+ * id
73
+ * name
74
+ * }
75
+ * },
76
+ * { input: updateEntityInput },
77
+ * );
78
+ * ```
37
79
  */
38
80
  mutate<T, V = Record<string, any>>(mutation: DocumentNode, variables?: V, update?: MutationUpdaterFn<T>): Observable<T>;
39
81
  }
@@ -33,6 +33,9 @@ export declare class SettingsDataService {
33
33
  getTaxRates(take?: number, skip?: number, fetchPolicy?: FetchPolicy): import("../query-result").QueryResult<import("../../common/generated-types").GetTaxRateListQuery, import("../../common/generated-types").Exact<{
34
34
  options?: import("../../common/generated-types").Maybe<import("../../common/generated-types").TaxRateListOptions> | undefined;
35
35
  }>>;
36
+ getTaxRatesSimple(take?: number, skip?: number, fetchPolicy?: FetchPolicy): import("../query-result").QueryResult<import("../../common/generated-types").GetTaxRateListSimpleQuery, import("../../common/generated-types").Exact<{
37
+ options?: import("../../common/generated-types").Maybe<import("../../common/generated-types").TaxRateListOptions> | undefined;
38
+ }>>;
36
39
  getTaxRate(id: string): import("../query-result").QueryResult<import("../../common/generated-types").GetTaxRateQuery, import("../../common/generated-types").Exact<{
37
40
  id: string;
38
41
  }>>;
@@ -1,8 +1,12 @@
1
1
  import { Apollo, QueryRef } from 'apollo-angular';
2
2
  import { Observable, Subject } from 'rxjs';
3
3
  /**
4
+ * @description
4
5
  * This class wraps the Apollo Angular QueryRef object and exposes some getters
5
6
  * for convenience.
7
+ *
8
+ * @docsCategory providers
9
+ * @docsPage DataService
6
10
  */
7
11
  export declare class QueryResult<T, V = Record<string, any>> {
8
12
  private queryRef;
@@ -11,23 +15,28 @@ export declare class QueryResult<T, V = Record<string, any>> {
11
15
  completed$: Subject<unknown>;
12
16
  private valueChanges;
13
17
  /**
14
- * Refetch this query whenever the active Channel changes.
18
+ * @description
19
+ * Re-fetch this query whenever the active Channel changes.
15
20
  */
16
- refetchOnChannelChange(): this;
21
+ refetchOnChannelChange(): QueryResult<T, V>;
17
22
  /**
23
+ * @description
18
24
  * Returns an Observable which emits a single result and then completes.
19
25
  */
20
26
  get single$(): Observable<T>;
21
27
  /**
28
+ * @description
22
29
  * Returns an Observable which emits until unsubscribed.
23
30
  */
24
31
  get stream$(): Observable<T>;
25
32
  get ref(): QueryRef<T, V>;
26
33
  /**
34
+ * @description
27
35
  * Returns a single-result Observable after applying the map function.
28
36
  */
29
37
  mapSingle<R>(mapFn: (item: T) => R): Observable<R>;
30
38
  /**
39
+ * @description
31
40
  * Returns a multiple-result Observable after applying the map function.
32
41
  */
33
42
  mapStream<R>(mapFn: (item: T) => R): Observable<R>;
@@ -0,0 +1,25 @@
1
+ import { Type } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { CustomDetailComponentLocationId } from '../../common/component-registry-types';
5
+ /**
6
+ * @description
7
+ * CustomDetailComponents allow any arbitrary Angular components to be embedded in entity detail
8
+ * pages of the Admin UI.
9
+ *
10
+ * @docsCategory custom-detail-components
11
+ */
12
+ export interface CustomDetailComponent {
13
+ entity$: Observable<any>;
14
+ detailForm: FormGroup;
15
+ }
16
+ /**
17
+ * @description
18
+ * Configures a {@link CustomDetailComponent} to be placed in the given location.
19
+ *
20
+ * @docsCategory custom-detail-components
21
+ */
22
+ export interface CustomDetailComponentConfig {
23
+ locationId: CustomDetailComponentLocationId;
24
+ component: Type<CustomDetailComponent>;
25
+ }
@@ -0,0 +1,15 @@
1
+ import { Provider } from '@angular/core';
2
+ import { CustomDetailComponentConfig } from './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;
11
+ export declare class CustomDetailComponentService {
12
+ private customDetailComponents;
13
+ registerCustomDetailComponent(config: CustomDetailComponentConfig): void;
14
+ getCustomDetailComponentsFor(locationId: string): CustomDetailComponentConfig[];
15
+ }
@@ -1,4 +1,3 @@
1
- import { ComponentFactoryResolver } from '@angular/core';
2
1
  import { Type } from '@vendure/common/lib/shared-types';
3
2
  import { FormInputComponent } from '../../common/component-registry-types';
4
3
  import { CustomFields, CustomFieldsFragment } from '../../common/generated-types';
@@ -9,11 +8,12 @@ export interface CustomFieldControl extends FormInputComponent<CustomFieldConfig
9
8
  export declare type CustomFieldEntityName = Exclude<keyof CustomFields, '__typename'>;
10
9
  /**
11
10
  * This service allows the registration of custom controls for customFields.
11
+ *
12
+ * @deprecated The ComponentRegistryService now handles custom field components directly.
12
13
  */
13
14
  export declare class CustomFieldComponentService {
14
- private componentFactoryResolver;
15
15
  private componentRegistryService;
16
- constructor(componentFactoryResolver: ComponentFactoryResolver, componentRegistryService: ComponentRegistryService);
16
+ constructor(componentRegistryService: ComponentRegistryService);
17
17
  /**
18
18
  * Register a CustomFieldControl component to be used with the specified customField and entity.
19
19
  */
@@ -5,6 +5,7 @@ export declare type LocalStorageTypeMap = {
5
5
  activeChannelToken: string;
6
6
  authToken: string;
7
7
  uiLanguageCode: LanguageCode;
8
+ uiLocale: string | undefined;
8
9
  contentLanguageCode: LanguageCode;
9
10
  orderListLastCustomFilters: any;
10
11
  dashboardWidgetLayout: WidgetLayoutDefinition;
@@ -3,11 +3,16 @@ import { Type } from '@vendure/common/lib/shared-types';
3
3
  import { Observable } from 'rxjs';
4
4
  import { OverlayHostService } from '../overlay-host/overlay-host.service';
5
5
  /**
6
+ * @description
6
7
  * Any component intended to be used with the ModalService.fromComponent() method must implement
7
8
  * this interface.
9
+ *
10
+ * @docsCategory providers
11
+ * @docsPage ModalService
8
12
  */
9
13
  export interface Dialog<R = any> {
10
14
  /**
15
+ * @description
11
16
  * Function to be invoked in order to close the dialog when the action is complete.
12
17
  * The Observable returned from the .fromComponent() method will emit the value passed
13
18
  * to this method and then complete.
@@ -20,7 +25,11 @@ export interface DialogButtonConfig<T> {
20
25
  returnValue?: T;
21
26
  }
22
27
  /**
28
+ * @description
23
29
  * Configures a generic modal dialog.
30
+ *
31
+ * @docsCategory providers
32
+ * @docsPage ModalService
24
33
  */
25
34
  export interface DialogConfig<T> {
26
35
  title: string;
@@ -31,38 +40,56 @@ export interface DialogConfig<T> {
31
40
  buttons: Array<DialogButtonConfig<T>>;
32
41
  }
33
42
  /**
43
+ * @description
34
44
  * Options to configure the behaviour of the modal.
45
+ *
46
+ * @docsCategory providers
47
+ * @docsPage ModalService
35
48
  */
36
49
  export interface ModalOptions<T> {
37
- /** Sets the width of the dialog */
50
+ /**
51
+ * @description
52
+ * Sets the width of the dialog
53
+ */
38
54
  size?: 'sm' | 'md' | 'lg' | 'xl';
39
- /** Sets the vertical alignment of the dialog */
55
+ /**
56
+ * @description
57
+ * Sets the vertical alignment of the dialog
58
+ */
40
59
  verticalAlign?: 'top' | 'center' | 'bottom';
41
60
  /**
61
+ * @description
42
62
  * When true, the "x" icon is shown
43
63
  * and clicking it or the mask will close the dialog
44
64
  */
45
65
  closable?: boolean;
46
66
  /**
47
- * Values to be passed directly to the component.
67
+ * @description
68
+ * Values to be passed directly to the component being instantiated inside the dialog.
48
69
  */
49
70
  locals?: Partial<T>;
50
71
  }
51
72
  /**
73
+ * @description
52
74
  * This service is responsible for instantiating a ModalDialog component and
53
75
  * embedding the specified component within.
76
+ *
77
+ * @docsCategory providers
78
+ * @docsPage ModalService
79
+ * @docsWeight 0
54
80
  */
55
81
  export declare class ModalService {
56
82
  private componentFactoryResolver;
57
83
  private overlayHostService;
58
84
  constructor(componentFactoryResolver: ComponentFactoryResolver, overlayHostService: OverlayHostService);
59
85
  /**
86
+ * @description
60
87
  * Create a modal from a component. The component must implement the {@link Dialog} interface.
61
88
  * Additionally, the component should include templates for the title and the buttons to be
62
89
  * displayed in the modal dialog. See example:
63
90
  *
64
91
  * @example
65
- * ```
92
+ * ```HTML
66
93
  * class MyDialog implements Dialog {
67
94
  * resolveWith: (result?: any) => void;
68
95
  *
@@ -78,25 +105,27 @@ export declare class ModalService {
78
105
  * }
79
106
  * ```
80
107
  *
81
- * ```
108
+ * @example
109
+ * ```HTML
82
110
  * <ng-template vdrDialogTitle>Title of the modal</ng-template>
83
111
  *
84
112
  * <p>
85
- * My Content
113
+ * My Content
86
114
  * </p>
87
115
  *
88
116
  * <ng-template vdrDialogButtons>
89
- * <button type="button"
90
- * class="btn"
91
- * (click)="cancel()">Cancel</button>
92
- * <button type="button"
93
- * class="btn btn-primary"
94
- * (click)="okay()">Okay</button>
117
+ * <button type="button"
118
+ * class="btn"
119
+ * (click)="cancel()">Cancel</button>
120
+ * <button type="button"
121
+ * class="btn btn-primary"
122
+ * (click)="okay()">Okay</button>
95
123
  * </ng-template>
96
124
  * ```
97
125
  */
98
126
  fromComponent<T extends Dialog<any>, R>(component: Type<T> & Type<Dialog<R>>, options?: ModalOptions<T>): Observable<R | undefined>;
99
127
  /**
128
+ * @description
100
129
  * Displays a modal dialog with the provided title, body and buttons.
101
130
  */
102
131
  dialog<T>(config: DialogConfig<T>): Observable<T | undefined>;
@@ -1,15 +1,21 @@
1
1
  import { ActivatedRoute } from '@angular/router';
2
2
  import { Observable } from 'rxjs';
3
+ import { ActionBarLocationId } from '../../common/component-registry-types';
3
4
  import { DataService } from '../../data/providers/data.service';
4
5
  import { NotificationService } from '../notification/notification.service';
5
6
  export declare type NavMenuBadgeType = 'none' | 'info' | 'success' | 'warning' | 'error';
6
7
  /**
8
+ * @description
7
9
  * A color-coded notification badge which will be displayed by the
8
10
  * NavMenuItem's icon.
11
+ *
12
+ * @docsCategory nav-menu
13
+ * @docsPage navigation-types
9
14
  */
10
15
  export interface NavMenuBadge {
11
16
  type: NavMenuBadgeType;
12
17
  /**
18
+ * @description
13
19
  * If true, the badge will propagate to the NavMenuItem's
14
20
  * parent section, displaying a notification badge next
15
21
  * to the section name.
@@ -17,8 +23,11 @@ export interface NavMenuBadge {
17
23
  propagateToSection?: boolean;
18
24
  }
19
25
  /**
26
+ * @description
20
27
  * A NavMenuItem is a menu item in the main (left-hand side) nav
21
28
  * bar.
29
+ *
30
+ * @docsCategory nav-menu
22
31
  */
23
32
  export interface NavMenuItem {
24
33
  id: string;
@@ -33,8 +42,11 @@ export interface NavMenuItem {
33
42
  statusBadge?: Observable<NavMenuBadge>;
34
43
  }
35
44
  /**
45
+ * @description
36
46
  * A NavMenuSection is a grouping of links in the main
37
47
  * (left-hand side) nav bar.
48
+ *
49
+ * @docsCategory nav-menu
38
50
  */
39
51
  export interface NavMenuSection {
40
52
  id: string;
@@ -48,7 +60,10 @@ export interface NavMenuSection {
48
60
  collapsedByDefault?: boolean;
49
61
  }
50
62
  /**
63
+ * @description
51
64
  * Utilities available to the onClick handler of an ActionBarItem.
65
+ *
66
+ * @docsCategory action-bar
52
67
  */
53
68
  export interface OnClickContext {
54
69
  route: ActivatedRoute;
@@ -56,12 +71,15 @@ export interface OnClickContext {
56
71
  notificationService: NotificationService;
57
72
  }
58
73
  /**
74
+ * @description
59
75
  * A button in the ActionBar area at the top of one of the list or detail views.
76
+ *
77
+ * @docsCategory action-bar
60
78
  */
61
79
  export interface ActionBarItem {
62
80
  id: string;
63
81
  label: string;
64
- locationId: string;
82
+ locationId: ActionBarLocationId;
65
83
  disabled?: Observable<boolean>;
66
84
  onClick?: (event: MouseEvent, context: OnClickContext) => void;
67
85
  routerLink?: RouterLinkDefinition;
@@ -16,16 +16,18 @@ import { ActionBarItem, NavMenuBadgeType, NavMenuItem, NavMenuSection, RouterLin
16
16
  * imports: [SharedModule],
17
17
  * providers: [
18
18
  * addNavMenuSection({
19
- * id: 'reviews',
20
- * label: 'Product Reviews',
21
- * routerLink: ['/extensions/reviews'],
22
- * icon: 'star',
19
+ * id: 'reports',
20
+ * label: 'Reports',
21
+ * items: [{
22
+ * // ...
23
+ * }],
23
24
  * },
24
25
  * 'settings'),
25
26
  * ],
26
27
  * })
27
28
  * export class MyUiExtensionModule {}
28
29
  * ```
30
+ * @docsCategory nav-menu
29
31
  */
30
32
  export declare function addNavMenuSection(config: NavMenuSection, before?: string): Provider;
31
33
  /**
@@ -44,17 +46,18 @@ export declare function addNavMenuSection(config: NavMenuSection, before?: strin
44
46
  * imports: [SharedModule],
45
47
  * providers: [
46
48
  * addNavMenuItem({
47
- * id: 'reports',
48
- * label: 'Reports',
49
- * items: [{
50
- * // ...
51
- * }],
49
+ * id: 'reviews',
50
+ * label: 'Product Reviews',
51
+ * routerLink: ['/extensions/reviews'],
52
+ * icon: 'star',
52
53
  * },
53
54
  * 'marketing'),
54
55
  * ],
55
56
  * })
56
57
  * export class MyUiExtensionModule {}
57
- * ```
58
+ * ``
59
+ *
60
+ * @docsCategory nav-menu
58
61
  */
59
62
  export declare function addNavMenuItem(config: NavMenuItem, sectionId: string, before?: string): Provider;
60
63
  /**
@@ -80,6 +83,7 @@ export declare function addNavMenuItem(config: NavMenuItem, sectionId: string, b
80
83
  * })
81
84
  * export class MyUiExtensionModule {}
82
85
  * ```
86
+ * @docsCategory action-bar
83
87
  */
84
88
  export declare function addActionBarItem(config: ActionBarItem): Provider;
85
89
  /**
@@ -1,7 +1,21 @@
1
1
  import { ComponentFactoryResolver } from '@angular/core';
2
2
  import { I18nService } from '../i18n/i18n.service';
3
3
  import { OverlayHostService } from '../overlay-host/overlay-host.service';
4
+ /**
5
+ * @description
6
+ * The types of notification available.
7
+ *
8
+ * @docsCategory providers
9
+ * @docsPage NotificationService
10
+ */
4
11
  export declare type NotificationType = 'info' | 'success' | 'error' | 'warning';
12
+ /**
13
+ * @description
14
+ * Configuration for a toast notification.
15
+ *
16
+ * @docsCategory providers
17
+ * @docsPage NotificationService
18
+ */
5
19
  export interface ToastConfig {
6
20
  message: string;
7
21
  translationVars?: {
@@ -11,7 +25,25 @@ export interface ToastConfig {
11
25
  duration?: number;
12
26
  }
13
27
  /**
28
+ * @description
14
29
  * Provides toast notification functionality.
30
+ *
31
+ * @example
32
+ * ```TypeScript
33
+ * class MyComponent {
34
+ * constructor(private notificationService: NotificationService) {}
35
+ *
36
+ * save() {
37
+ * this.notificationService
38
+ * .success(_('asset.notify-create-assets-success'), {
39
+ * count: successCount,
40
+ * });
41
+ * }
42
+ * }
43
+ *
44
+ * @docsCategory providers
45
+ * @docsPage NotificationService
46
+ * @docsWeight 0
15
47
  */
16
48
  export declare class NotificationService {
17
49
  private i18nService;
@@ -21,30 +53,35 @@ export declare class NotificationService {
21
53
  private openToastRefs;
22
54
  constructor(i18nService: I18nService, resolver: ComponentFactoryResolver, overlayHostService: OverlayHostService);
23
55
  /**
56
+ * @description
24
57
  * Display a success toast notification
25
58
  */
26
59
  success(message: string, translationVars?: {
27
60
  [key: string]: string | number;
28
61
  }): void;
29
62
  /**
63
+ * @description
30
64
  * Display an info toast notification
31
65
  */
32
66
  info(message: string, translationVars?: {
33
67
  [key: string]: string | number;
34
68
  }): void;
35
69
  /**
70
+ * @description
36
71
  * Display a warning toast notification
37
72
  */
38
73
  warning(message: string, translationVars?: {
39
74
  [key: string]: string | number;
40
75
  }): void;
41
76
  /**
77
+ * @description
42
78
  * Display an error toast notification
43
79
  */
44
80
  error(message: string, translationVars?: {
45
81
  [key: string]: string | number;
46
82
  }): void;
47
83
  /**
84
+ * @description
48
85
  * Display a toast notification.
49
86
  */
50
87
  notify(config: ToastConfig): void;